From 5723c2a4a1d1c68b6537f67a8684e90499d0c5d6 Mon Sep 17 00:00:00 2001 From: Roger Batista Date: Mon, 17 Jun 2024 13:29:04 +0200 Subject: [PATCH] Switched old references to @irontec/ivoz-ui --- library/hygen/README.md | 4 ++-- library/hygen/templates/entity/new/Entity.ejs.t | 8 ++++---- library/hygen/templates/entity/new/EntityProperties.ejs.t | 4 ++-- library/hygen/templates/entity/new/ForeignKeyGetter.ejs.t | 4 ++-- .../hygen/templates/entity/new/ForeignKeyResolver.ejs.t | 4 ++-- library/hygen/templates/entity/new/Form.ejs.t | 8 ++++---- library/hygen/templates/entity/new/SelectOptions.ejs.t | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/library/hygen/README.md b/library/hygen/README.md index 9a622e8d..459fb4e2 100644 --- a/library/hygen/README.md +++ b/library/hygen/README.md @@ -3,10 +3,10 @@ Create in the root project a file named .hygen.js, following the next structure: ```javascript -const helpers = require("@irontec/ivoz-ui/hygen/lib"); +const helpers = require("@irontec-voip/ivoz-ui/hygen/lib"); module.exports = { - templates: `${__dirname}/node_modules/@irontec/ivoz-ui/hygen/templates`, + templates: `${__dirname}/node_modules/@irontec-voip/ivoz-ui/hygen/templates`, helpers: { ...helpers, url: () => "https://10.189.2.23/isbc/api/docs.json", diff --git a/library/hygen/templates/entity/new/Entity.ejs.t b/library/hygen/templates/entity/new/Entity.ejs.t index 15b2857f..37dd75a6 100644 --- a/library/hygen/templates/entity/new/Entity.ejs.t +++ b/library/hygen/templates/entity/new/Entity.ejs.t @@ -2,10 +2,10 @@ to: src/entities/<%= Name %>/<%= Name %>.tsx --- import AccountTreeIcon from '@mui/icons-material/AccountTree'; -import EntityInterface from '@irontec/ivoz-ui/entities/EntityInterface'; -import _ from '@irontec/ivoz-ui/services/translations/translate'; -import defaultEntityBehavior from '@irontec/ivoz-ui/entities/DefaultEntityBehavior'; -import { EntityValue } from '@irontec/ivoz-ui'; +import EntityInterface from '@irontec-voip/ivoz-ui/entities/EntityInterface'; +import _ from '@irontec-voip/ivoz-ui/services/translations/translate'; +import defaultEntityBehavior from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior'; +import { EntityValue } from '@irontec-voip/ivoz-ui'; import selectOptions from './SelectOptions'; import { <%= Name %>Properties, <%= Name %>PropertyList } from './<%= Name %>Properties'; diff --git a/library/hygen/templates/entity/new/EntityProperties.ejs.t b/library/hygen/templates/entity/new/EntityProperties.ejs.t index 7d44dca5..aebb8498 100644 --- a/library/hygen/templates/entity/new/EntityProperties.ejs.t +++ b/library/hygen/templates/entity/new/EntityProperties.ejs.t @@ -1,8 +1,8 @@ --- to: src/entities/<%= Name %>/<%= Name %>Properties.ts --- -import { PropertySpec } from '@irontec/ivoz-ui/services/api/ParsedApiSpecInterface'; -import { EntityValue, EntityValues } from '@irontec/ivoz-ui/services/entity/EntityService'; +import { PropertySpec } from '@irontec-voip/ivoz-ui/services/api/ParsedApiSpecInterface'; +import { EntityValue, EntityValues } from '@irontec-voip/ivoz-ui/services/entity/EntityService'; export type <%= Name %>PropertyList = { <%- h.formattedEntityProperties(h.url(), Name)%> diff --git a/library/hygen/templates/entity/new/ForeignKeyGetter.ejs.t b/library/hygen/templates/entity/new/ForeignKeyGetter.ejs.t index d0caf941..4c016edb 100644 --- a/library/hygen/templates/entity/new/ForeignKeyGetter.ejs.t +++ b/library/hygen/templates/entity/new/ForeignKeyGetter.ejs.t @@ -1,8 +1,8 @@ --- to: src/entities/<%= Name %>/ForeignKeyGetter.tsx --- -import { ForeignKeyGetterType } from '@irontec/ivoz-ui/entities/EntityInterface'; -import { autoSelectOptions } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior'; +import { ForeignKeyGetterType } from '@irontec-voip/ivoz-ui/entities/EntityInterface'; +import { autoSelectOptions } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior'; import { <%= Name %>PropertyList } from './<%= Name %>Properties'; /** TODO remove this file unless you need to change default behaviour **/ diff --git a/library/hygen/templates/entity/new/ForeignKeyResolver.ejs.t b/library/hygen/templates/entity/new/ForeignKeyResolver.ejs.t index b2ba5357..e6db114a 100644 --- a/library/hygen/templates/entity/new/ForeignKeyResolver.ejs.t +++ b/library/hygen/templates/entity/new/ForeignKeyResolver.ejs.t @@ -1,8 +1,8 @@ --- to: src/entities/<%= Name %>/ForeignKeyResolver.tsx --- -import { autoForeignKeyResolver } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior'; -import { foreignKeyResolverType } from '@irontec/ivoz-ui/entities/EntityInterface'; +import { autoForeignKeyResolver } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior'; +import { foreignKeyResolverType } from '@irontec-voip/ivoz-ui/entities/EntityInterface'; import { <%= Name %>PropertiesList } from './<%= Name %>Properties'; /** TODO remove this file unless you need to change default behaviour **/ diff --git a/library/hygen/templates/entity/new/Form.ejs.t b/library/hygen/templates/entity/new/Form.ejs.t index 3b6d8808..df28f5b3 100644 --- a/library/hygen/templates/entity/new/Form.ejs.t +++ b/library/hygen/templates/entity/new/Form.ejs.t @@ -1,10 +1,10 @@ --- to: src/entities/<%= Name %>/Form.tsx --- -import useFkChoices from '@irontec/ivoz-ui/entities/data/useFkChoices'; -import defaultEntityBehavior, { EntityFormProps, FieldsetGroups } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior'; -import _ from '@irontec/ivoz-ui/services/translations/translate'; -import { Form as DefaultEntityForm } from '@irontec/ivoz-ui/entities/DefaultEntityBehavior/Form'; +import useFkChoices from '@irontec-voip/ivoz-ui/entities/data/useFkChoices'; +import defaultEntityBehavior, { EntityFormProps, FieldsetGroups } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior'; +import _ from '@irontec-voip/ivoz-ui/services/translations/translate'; +import { Form as DefaultEntityForm } from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior/Form'; import { foreignKeyGetter } from './ForeignKeyGetter'; const Form = (props: EntityFormProps): JSX.Element => { diff --git a/library/hygen/templates/entity/new/SelectOptions.ejs.t b/library/hygen/templates/entity/new/SelectOptions.ejs.t index b26e6af8..b9b5e178 100644 --- a/library/hygen/templates/entity/new/SelectOptions.ejs.t +++ b/library/hygen/templates/entity/new/SelectOptions.ejs.t @@ -1,10 +1,10 @@ --- to: src/entities/<%= Name %>/SelectOptions.ts --- -import defaultEntityBehavior from '@irontec/ivoz-ui/entities/DefaultEntityBehavior'; -import { SelectOptionsType } from '@irontec/ivoz-ui/entities/EntityInterface'; +import defaultEntityBehavior from '@irontec-voip/ivoz-ui/entities/DefaultEntityBehavior'; +import { SelectOptionsType } from '@irontec-voip/ivoz-ui/entities/EntityInterface'; import { <%= Name %>PropertiesList } from './<%= Name %>Properties'; -import { DropdownChoices } from '@irontec/ivoz-ui'; +import { DropdownChoices } from '@irontec-voip/ivoz-ui'; import store from 'store'; const <%= Name %>SelectOptions: SelectOptionsType = ({ callback, cancelToken }): Promise => {