@crystaldesign/diva-backoffice 25.10.0-beta.2 → 25.10.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/build/esm/index.js +1625 -835
  2. package/build/types/backoffice/src/store/ContextStore.d.ts.map +1 -1
  3. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +6 -4
  4. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  5. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +4 -3
  6. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  7. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +3 -3
  8. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
  13. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/ExportModal.d.ts +12 -0
  15. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/ExportModal.d.ts.map +1 -0
  16. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/Modals.d.ts +13 -0
  17. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/Modals.d.ts.map +1 -0
  18. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/index.d.ts +14 -0
  19. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/index.d.ts.map +1 -0
  20. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/menuUtils.d.ts +12 -0
  21. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/menuUtils.d.ts.map +1 -0
  22. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/types.d.ts +79 -0
  23. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/types.d.ts.map +1 -0
  24. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/useModalOpenState.d.ts +11 -0
  25. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/useModalOpenState.d.ts.map +1 -0
  26. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Checkbox/index.d.ts +12 -0
  27. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Checkbox/index.d.ts.map +1 -0
  28. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/DraggerComponent.d.ts +37 -0
  29. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/DraggerComponent.d.ts.map +1 -0
  30. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/index.d.ts +16 -0
  31. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/index.d.ts.map +1 -0
  32. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/utils.d.ts +28 -0
  33. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/utils.d.ts.map +1 -0
  34. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Input/index.d.ts +13 -0
  35. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Input/index.d.ts.map +1 -0
  36. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/index.d.ts +22 -0
  37. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/index.d.ts.map +1 -0
  38. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/types.d.ts +57 -0
  39. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/types.d.ts.map +1 -0
  40. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/useForm.d.ts +23 -0
  41. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/useForm.d.ts.map +1 -0
  42. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/utils.d.ts +10 -0
  43. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/utils.d.ts.map +1 -0
  44. package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts +7 -0
  45. package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts.map +1 -1
  46. package/build/types/backoffice/src/ui/IDMCommonComponents/Setting/index.d.ts +18 -0
  47. package/build/types/backoffice/src/ui/IDMCommonComponents/Setting/index.d.ts.map +1 -0
  48. package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  49. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/index.d.ts +21 -0
  50. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/index.d.ts.map +1 -0
  51. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/types.d.ts +42 -0
  52. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/types.d.ts.map +1 -0
  53. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/useUploadState.d.ts +36 -0
  54. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/useUploadState.d.ts.map +1 -0
  55. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModalbutton/index.d.ts +22 -0
  56. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModalbutton/index.d.ts.map +1 -0
  57. package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts +42 -0
  58. package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts.map +1 -1
  59. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +13 -0
  60. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -1
  61. package/build/types/backoffice/src/ui/IDMCommonComponents/useLoadingModal.d.ts +18 -0
  62. package/build/types/backoffice/src/ui/IDMCommonComponents/useLoadingModal.d.ts.map +1 -1
  63. package/build/types/backoffice/src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.d.ts +13 -0
  64. package/build/types/backoffice/src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.d.ts.map +1 -1
  65. package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts +29 -0
  66. package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -1
  67. package/package.json +9 -9
  68. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadForm.d.ts +0 -10
  69. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadForm.d.ts.map +0 -1
  70. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadModal.d.ts +0 -10
  71. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadModal.d.ts.map +0 -1
  72. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/index.d.ts +0 -9
  73. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/index.d.ts.map +0 -1
  74. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/useUploadState.d.ts +0 -19
  75. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/useUploadState.d.ts.map +0 -1
  76. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +0 -8
  77. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ContextStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContextStore.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAGnB,OAAO,CAAC,IAAI;IAFxB,OAAO,CAAC,QAAQ,CAA+B;gBAE3B,IAAI,EAAE,SAAS;IAUnC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,CAAW,GAAG,CAAC;IAQ9D,aAAa,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAM9D,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAGtC"}
1
+ {"version":3,"file":"ContextStore.d.ts","sourceRoot":"","sources":["../../../../../src/store/ContextStore.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,aAAa,CAAC;AAKpC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAGnB,OAAO,CAAC,IAAI;IAFxB,OAAO,CAAC,QAAQ,CAA+B;gBAE3B,IAAI,EAAE,SAAS;IAUnC,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,GAAE,CAAW,GAAG,CAAC;IAQ9D,aAAa,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAQ9D,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAGtC"}
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- import { DivaSpreadsheetHooks } from '@crystaldesign/spreadsheet';
3
+ import { DivaSpreadsheetHooks, SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
4
4
  import { CatalogData } from '../types';
5
- export default function Items({ organizationId, selectedCatalog, apiConfig, selectedSerie, hooks, }: {
5
+ interface ItemsProps {
6
6
  organizationId: string;
7
7
  selectedCatalog: CatalogData;
8
- selectedSerie: string;
8
+ selectedSerie: any;
9
9
  apiConfig: ApiConfig;
10
10
  hooks?: DivaSpreadsheetHooks<any>;
11
- }): React.JSX.Element;
11
+ }
12
+ declare const Items: React.ForwardRefExoticComponent<ItemsProps & React.RefAttributes<SpreadsheetRefProps>>;
13
+ export default Items;
12
14
  //# sourceMappingURL=Items.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAoC,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,aAAa,EACb,KAAK,GACN,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBA8TA"}
1
+ {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC;AAED,QAAA,MAAM,KAAK,wFAyUT,CAAC;AAIH,eAAe,KAAK,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- import { DivaSpreadsheetHooks } from '@crystaldesign/spreadsheet';
3
+ import { DivaSpreadsheetHooks, SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
4
4
  import { CatalogData } from '../types';
5
- export default function Options({ organizationId, selectedCatalog, apiConfig, hooks, }: {
5
+ declare const Options: React.ForwardRefExoticComponent<{
6
6
  organizationId: string;
7
7
  selectedCatalog: CatalogData;
8
8
  apiConfig: ApiConfig;
9
9
  hooks?: DivaSpreadsheetHooks<any>;
10
- }): React.JSX.Element;
10
+ } & React.RefAttributes<SpreadsheetRefProps>>;
11
+ export default Options;
11
12
  //# sourceMappingURL=Options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAoC,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,cAAc,EACd,eAAe,EACf,SAAS,EACT,KAAK,GACN,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBAkLA"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAoC,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,OAAO;oBAGO,MAAM;qBACL,WAAW;eACjB,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAoLnC,CAAC;AAEH,eAAe,OAAO,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
3
  import { DivaSpreadsheetHooks } from '@crystaldesign/spreadsheet';
4
- export default function PartlistPos({ organizationId, catalogId, partlistId, apiConfig, hooks, }: {
4
+ export default function PartlistPos({ organizationId, catalog, partlist, apiConfig, hooks, }: {
5
5
  organizationId: string;
6
- catalogId: string;
7
- partlistId?: string;
6
+ catalog: any;
7
+ partlist: any;
8
8
  apiConfig: ApiConfig;
9
9
  hooks?: DivaSpreadsheetHooks<any>;
10
10
  }): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,MAAM,4BAA4B,CAAC;AAEjF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,SAAS,EACT,UAAU,EACV,SAAS,EACT,KAAK,GACN,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBAsMA"}
1
+ {"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAE/C,OAAO,EAAE,SAAS,EAA+B,MAAM,0BAA0B,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAsC,MAAM,4BAA4B,CAAC;AAMtG,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;CACnC,qBAwPA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCatalogContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useCatalogContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAiBjG,eAAO,MAAM,iBAAiB,oBAAoB,MAAM,EAAE;8BAqD9C,GAAG,GAAG,SAAS;4BAOhB,GAAG,GAAG,SAAS;kCAOZ,GAAG,GAAG,SAAS;kCAOf,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;eAvFvF,MAAM;qBACA,GAAG;gBACR,MAAM;oBACF,MAAM;0BACA,iBAAiB;oBACvB,GAAG;yBACE,iBAAiB;mBACvB,GAAG;uBACC,iBAAiB;sBAClB,GAAG;0BACC,iBAAiB;CA+IxC,CAAC"}
1
+ {"version":3,"file":"useCatalogContext.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useCatalogContext.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AAiBjG,eAAO,MAAM,iBAAiB,oBAAoB,MAAM,EAAE;8BAqD9C,GAAG,GAAG,SAAS;4BAOhB,GAAG,GAAG,SAAS;kCAOZ,GAAG,GAAG,SAAS;kCAOf,GAAG,GAAG,MAAM,YAAW,MAAM,EAAE,SAAyB,MAAM,UAAiB,OAAO;eAvFvF,MAAM;qBACA,GAAG;gBACR,MAAM;oBACF,MAAM;0BACA,iBAAiB;oBACvB,GAAG;yBACE,iBAAiB;mBACvB,GAAG;uBACC,iBAAiB;sBAClB,GAAG;0BACC,iBAAiB;CA0IxC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAqBvE,eAAO,MAAM,aAAa;;CA0xBxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableCatalogs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAuBvE,eAAO,MAAM,aAAa;;CAu0BxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,eAAO,MAAM,UAAU;;CAiDrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAc/C,eAAO,MAAM,UAAU;;CAmFrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAWvC,eAAO,MAAM,YAAY;;CAkCvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableOptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAa/C,eAAO,MAAM,YAAY;;CAmEvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePrices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAcvC,eAAO,MAAM,WAAW;;CAuItB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePrices/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAgB/C,eAAO,MAAM,WAAW;;CAwKtB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ExportModalProps } from '../types';
3
+ /**
4
+ * Modal component that displays a loading spinner during export operations
5
+ *
6
+ * @param props - The component props
7
+ * @param props.isOpen - Whether the modal is currently open
8
+ * @param props.onClose - Callback function to close the modal
9
+ * @returns JSX element representing the export modal
10
+ */
11
+ export declare function ExportModal({ isOpen, onClose }: ExportModalProps): React.JSX.Element;
12
+ //# sourceMappingURL=ExportModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExportModal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCommonComponents/ActionMenu/components/ExportModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,gBAAgB,qBAgBhE"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ModalsProps } from '../types';
3
+ /**
4
+ * Component that renders multiple modal components based on action items
5
+ *
6
+ * @param props - The component props
7
+ * @param props.openStates - Object mapping modal keys to their open/closed state
8
+ * @param props.closeModal - Function to close a modal by key
9
+ * @param props.items - Array of action items that may contain modal configurations
10
+ * @returns JSX element containing the rendered modals
11
+ */
12
+ export declare function Modals({ openStates, closeModal, items }: ModalsProps): React.JSX.Element;
13
+ //# sourceMappingURL=Modals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modals.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCommonComponents/ActionMenu/components/Modals.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,WAAW,qBAepE"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { ActionMenuProps } from './types';
3
+ /**
4
+ * ActionMenu component that renders a dropdown button with various action items
5
+ * including upload modals and export functionality
6
+ *
7
+ * @param props - The component props
8
+ * @param props.title - The title displayed on the action menu button
9
+ * @param props.items - Array of action items to display in the dropdown menu
10
+ * @param props.disabled - Whether the action menu is disabled
11
+ * @returns JSX element representing the action menu
12
+ */
13
+ export default function ActionMenu({ title, items, disabled }: ActionMenuProps): React.JSX.Element;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/ActionMenu/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK1C;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,eAAe,qBAa7E"}
@@ -0,0 +1,12 @@
1
+ import { MenuProps } from 'antd';
2
+ import { Action } from './types';
3
+ /**
4
+ * Creates menu properties for the dropdown menu based on action items
5
+ *
6
+ * @param items - Array of action items to convert to menu items
7
+ * @param openModal - Function to open a modal by key
8
+ * @param closeModal - Function to close a modal by key
9
+ * @returns MenuProps object for the Ant Design Dropdown component
10
+ */
11
+ export declare function getMenuProps(items: Action[], openModal: (key: string) => void, closeModal: (key: string) => void): MenuProps;
12
+ //# sourceMappingURL=menuUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menuUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/ActionMenu/menuUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EAAE,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,SAAS,CAqB5H"}
@@ -0,0 +1,79 @@
1
+ import React from 'react';
2
+ import { UploadModalProps } from '../UploadModal';
3
+ import { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
4
+ /**
5
+ * Props for the ActionMenu component
6
+ */
7
+ export interface ActionMenuProps {
8
+ /** The title displayed on the action menu button */
9
+ title: string;
10
+ /** Array of action items to display in the dropdown menu */
11
+ items: Action[];
12
+ /** Whether the action menu is disabled */
13
+ disabled?: boolean;
14
+ }
15
+ /** Union type for all possible action types */
16
+ export type Action = UploadModalAction | ExportAction;
17
+ /**
18
+ * Base interface for all action types
19
+ */
20
+ export interface BaseAction {
21
+ /** Unique identifier for the action */
22
+ key: string;
23
+ /** Text to display on the action button */
24
+ buttonText: string;
25
+ /** Optional icon to display next to the button text */
26
+ buttonIcon?: React.ReactNode;
27
+ }
28
+ /**
29
+ * Action type for opening an upload modal
30
+ */
31
+ export interface UploadModalAction extends Omit<UploadModalProps, 'isOpen' | 'onClose'>, BaseAction {
32
+ /** Type discriminator for upload modal actions */
33
+ type: 'uploadModal';
34
+ }
35
+ /**
36
+ * Action type for triggering an export operation
37
+ */
38
+ export interface ExportAction extends BaseAction {
39
+ /** Type discriminator for export actions */
40
+ type: 'export';
41
+ /** Optional filename for the exported file */
42
+ fileName?: string;
43
+ /** Type of export to perform */
44
+ exportType: 'excel';
45
+ /** Reference to the spreadsheet component for export functionality */
46
+ ref: React.RefObject<SpreadsheetRefProps>;
47
+ }
48
+ /**
49
+ * State management interface for modal open/close functionality
50
+ */
51
+ export interface ModalOpenState {
52
+ /** Object mapping modal keys to their open/closed state */
53
+ openStates: Record<string, boolean>;
54
+ /** Function to open a modal by key */
55
+ openModal: (key: string) => void;
56
+ /** Function to close a modal by key */
57
+ closeModal: (key: string) => void;
58
+ }
59
+ /**
60
+ * Props for the Modals component
61
+ */
62
+ export interface ModalsProps {
63
+ /** Object mapping modal keys to their open/closed state */
64
+ openStates: Record<string, boolean>;
65
+ /** Function to close a modal by key */
66
+ closeModal: (key: string) => void;
67
+ /** Array of action items that may contain modal configurations */
68
+ items: Action[];
69
+ }
70
+ /**
71
+ * Props for the ExportModal component
72
+ */
73
+ export interface ExportModalProps {
74
+ /** Whether the export modal is currently open */
75
+ isOpen: boolean;
76
+ /** Callback function to close the export modal */
77
+ onClose: () => void;
78
+ }
79
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/ActionMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG,YAAY,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,SAAS,CAAC,EAAE,UAAU;IACjG,kDAAkD;IAClD,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,4CAA4C;IAC5C,IAAI,EAAE,QAAQ,CAAC;IACf,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,sEAAsE;IACtE,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;CAC3C;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,sCAAsC;IACtC,SAAS,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,uCAAuC;IACvC,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,uCAAuC;IACvC,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kEAAkE;IAClE,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB"}
@@ -0,0 +1,11 @@
1
+ import { ModalOpenState } from './types';
2
+ /**
3
+ * Custom hook for managing modal open/close state
4
+ *
5
+ * @returns Object containing modal state management functions and current state
6
+ * @returns {ModalOpenState.openStates} openStates - Object mapping modal keys to their open/closed state
7
+ * @returns {ModalOpenState.openModal} openModal - Function to open a modal by key
8
+ * @returns {ModalOpenState.closeModal} closeModal - Function to close a modal by key
9
+ */
10
+ export declare function useModalOpenState(): ModalOpenState;
11
+ //# sourceMappingURL=useModalOpenState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useModalOpenState.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/ActionMenu/useModalOpenState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAYlD"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { CheckboxFormItemProps } from '../../types';
3
+ /**
4
+ * Checkbox form element component
5
+ *
6
+ * @param props - The component props
7
+ * @param props.disabled - Whether the checkbox is disabled
8
+ * @param props - Additional props passed to the form item
9
+ * @returns JSX element representing the checkbox form item
10
+ */
11
+ export default function Checkbox({ disabled, ...props }: CheckboxFormItemProps): React.JSX.Element;
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMCommonComponents/Form/elements/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBAM7E"}
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import { RcFile } from 'antd/es/upload/interface';
3
+ /**
4
+ * Props for the DraggerComponent
5
+ */
6
+ interface DraggerProps {
7
+ /** Comma-separated list of accepted file types */
8
+ acceptedFileTypes: string;
9
+ /** Whether the dragger is disabled */
10
+ disabled?: boolean;
11
+ /** Whether to automatically zip files */
12
+ autoZip?: boolean;
13
+ /** Whether the field is required */
14
+ required?: boolean;
15
+ /** Callback function when file selection changes */
16
+ onChange?: (file?: RcFile) => void;
17
+ /** Currently selected file */
18
+ value?: RcFile;
19
+ /** Hint text to display in the dragger */
20
+ hint: string;
21
+ }
22
+ /**
23
+ * File dragger component for file upload functionality
24
+ *
25
+ * @param props - The component props
26
+ * @param props.acceptedFileTypes - Comma-separated list of accepted file types
27
+ * @param props.disabled - Whether the dragger is disabled
28
+ * @param props.autoZip - Whether to automatically zip files
29
+ * @param props.onChange - Callback function when file selection changes
30
+ * @param props.value - Currently selected file
31
+ * @param props.hint - Hint text to display in the dragger
32
+ * @param ref - Forwarded ref to the dragger container
33
+ * @returns JSX element representing the file dragger
34
+ */
35
+ export declare const DraggerComponent: React.ForwardRefExoticComponent<DraggerProps & React.RefAttributes<HTMLDivElement>>;
36
+ export {};
37
+ //# sourceMappingURL=DraggerComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraggerComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMCommonComponents/Form/elements/Dragger/DraggerComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,MAAM,EAAc,MAAM,0BAA0B,CAAC;AAG9D;;GAEG;AACH,UAAU,YAAY;IACpB,kDAAkD;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,gBAAgB,qFAkC5B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { DraggerFormItemProps } from '../../types';
3
+ /**
4
+ * Dragger form element component for file uploads
5
+ *
6
+ * @param props - The component props
7
+ * @param props.acceptedFileTypes - Comma-separated list of accepted file types
8
+ * @param props.disabled - Whether the dragger is disabled
9
+ * @param props.autoZip - Whether to automatically zip files
10
+ * @param props.required - Whether the field is required
11
+ * @param props.hint - Hint text to display in the dragger
12
+ * @param props - Additional props passed to the form item
13
+ * @returns JSX element representing the dragger form item
14
+ */
15
+ export default function Dragger({ acceptedFileTypes, disabled, autoZip, required, hint, ...props }: DraggerFormItemProps): React.JSX.Element;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMCommonComponents/Form/elements/Dragger/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,iBAAiB,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,qBAevH"}
@@ -0,0 +1,28 @@
1
+ import { RcFile, UploadFile } from 'antd/es/upload/interface';
2
+ import { TFunction } from 'i18next';
3
+ /**
4
+ * Handles file selection and optional auto-zipping
5
+ *
6
+ * @param file - The file to be processed
7
+ * @param autoZip - Whether to automatically zip the file
8
+ * @param onChange - Callback function to handle the selected file
9
+ * @returns Promise that resolves to false to prevent automatic upload
10
+ */
11
+ export declare function selectFile(file: RcFile, autoZip?: boolean, onChange?: (file?: RcFile) => void): Promise<boolean>;
12
+ /**
13
+ * Validates if a file matches the accepted file types
14
+ *
15
+ * @param acceptedFileTypes - Comma-separated list of accepted file types
16
+ * @param t - Translation function for error messages
17
+ * @param file - The file to validate
18
+ * @throws Error if the file type is not accepted
19
+ */
20
+ export declare function validateFile(acceptedFileTypes: string, t: TFunction, file?: RcFile): Promise<void>;
21
+ /**
22
+ * Converts an RcFile to an UploadFile object for Ant Design Upload component
23
+ *
24
+ * @param file - The RcFile to convert
25
+ * @returns UploadFile object with proper metadata
26
+ */
27
+ export declare function toUploadFile(file: RcFile): UploadFile;
28
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMCommonComponents/Form/elements/Dragger/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,oBAgBnG;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,iBAAiB,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,iBAgBxF;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAQrD"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { InputFormItemProps } from '../../types';
3
+ /**
4
+ * Input form element component
5
+ *
6
+ * @param props - The component props
7
+ * @param props.disabled - Whether the input is disabled
8
+ * @param props.placeholder - Placeholder text for the input
9
+ * @param props - Additional props passed to the form item
10
+ * @returns JSX element representing the input form item
11
+ */
12
+ export default function Input({ disabled, placeholder, ...props }: InputFormItemProps): React.JSX.Element;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/IDMCommonComponents/Form/elements/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,qBAMpF"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { FormProps } from './types';
3
+ /**
4
+ * Reference interface for the Form component
5
+ */
6
+ export interface FormRef {
7
+ /** Resets all form fields to their initial values */
8
+ reset: () => void;
9
+ }
10
+ /**
11
+ * Form component that renders form fields based on configuration
12
+ *
13
+ * @param props - The component props
14
+ * @param props.fields - Array of form field configurations
15
+ * @param props.children - Additional form content
16
+ * @param props.onFinish - Callback function when form is submitted
17
+ * @param ref - Forwarded ref to access form methods
18
+ * @returns JSX element representing the form
19
+ */
20
+ declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<FormRef>>;
21
+ export default Form;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAiB,MAAM,SAAS,CAAC;AAMnD;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,qDAAqD;IACrD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,IAAI,2EAiBR,CAAC;AAIH,eAAe,IAAI,CAAC"}
@@ -0,0 +1,57 @@
1
+ import { FormItemProps as AntdFormItemProps } from 'antd';
2
+ /**
3
+ * Base interface for all form item props
4
+ */
5
+ export interface FormItemBaseProps extends AntdFormItemProps {
6
+ /** Whether the form item is disabled */
7
+ disabled?: boolean;
8
+ /** Callback function for field value changes */
9
+ onFieldChange?: (changedField: string, changedValue: any, allValues: any, oldValues: any) => {
10
+ [key: string]: any;
11
+ } | undefined;
12
+ /** Whether this field should be treated as a query parameter */
13
+ isQueryParam?: boolean;
14
+ }
15
+ /**
16
+ * Props for dragger form items
17
+ */
18
+ export interface DraggerFormItemProps extends FormItemBaseProps {
19
+ /** Type discriminator for dragger form items */
20
+ type: 'dragger';
21
+ /** Comma-separated list of accepted file types */
22
+ acceptedFileTypes: string;
23
+ /** Whether to automatically zip files */
24
+ autoZip?: boolean;
25
+ /** Hint text to display in the dragger */
26
+ hint: string;
27
+ }
28
+ /**
29
+ * Props for checkbox form items
30
+ */
31
+ export interface CheckboxFormItemProps extends FormItemBaseProps {
32
+ /** Type discriminator for checkbox form items */
33
+ type: 'checkbox';
34
+ }
35
+ /**
36
+ * Props for input form items
37
+ */
38
+ export interface InputFormItemProps extends FormItemBaseProps {
39
+ /** Type discriminator for input form items */
40
+ type: 'input';
41
+ /** Placeholder text for the input */
42
+ placeholder?: string;
43
+ }
44
+ /** Union type for all form item types */
45
+ export type FormItemProps = DraggerFormItemProps | CheckboxFormItemProps | InputFormItemProps;
46
+ /**
47
+ * Props for the Form component
48
+ */
49
+ export interface FormProps {
50
+ /** Array of form field configurations */
51
+ fields: FormItemProps[];
52
+ /** Additional form content */
53
+ children: React.ReactNode;
54
+ /** Callback function when form is submitted */
55
+ onFinish: (values: any) => void;
56
+ }
57
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/Form/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,wCAAwC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gDAAgD;IAChD,aAAa,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAChI,gEAAgE;IAChE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,gDAAgD;IAChD,IAAI,EAAE,SAAS,CAAC;IAChB,kDAAkD;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yCAAyC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,0CAA0C;IAC1C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,iDAAiD;IACjD,IAAI,EAAE,UAAU,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,8CAA8C;IAC9C,IAAI,EAAE,OAAO,CAAC;IACd,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,yCAAyC;AACzC,MAAM,MAAM,aAAa,GAAG,oBAAoB,GAAG,qBAAqB,GAAG,kBAAkB,CAAC;AAE9F;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,yCAAyC;IACzC,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,8BAA8B;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+CAA+C;IAC/C,QAAQ,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;CACjC"}
@@ -0,0 +1,23 @@
1
+ import { FormItemProps } from './types';
2
+ /**
3
+ * Props for the useForm hook
4
+ */
5
+ interface UseFormProps {
6
+ /** Array of form field configurations */
7
+ fields: FormItemProps[];
8
+ }
9
+ /**
10
+ * Custom hook for managing form state and field changes
11
+ *
12
+ * @param props - The hook props
13
+ * @param props.fields - Array of form field configurations
14
+ * @returns Object containing form instance and change handler
15
+ * @returns {any} form - The Ant Design form instance
16
+ * @returns {Function} onValuesChange - Handler for form value changes
17
+ */
18
+ export default function useForm({ fields }: UseFormProps): {
19
+ form: import("antd").FormInstance<any>;
20
+ onValuesChange: (changedValues: any, allValues: any) => void;
21
+ };
22
+ export {};
23
+ //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/Form/useForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC;;GAEG;AACH,UAAU,YAAY;IACpB,yCAAyC;IACzC,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,YAAY;;oCAIf,GAAG,aAAa,GAAG;EAiC3D"}
@@ -0,0 +1,10 @@
1
+ import { FormItemProps as AntFormItemProps } from 'antd';
2
+ import { FormItemProps } from './types';
3
+ /**
4
+ * Extracts Ant Design form item props from custom form item props
5
+ *
6
+ * @param props - The form item props to process
7
+ * @returns Filtered props suitable for Ant Design Form.Item component
8
+ */
9
+ export declare function getFormItemProps(props: Partial<FormItemProps>): Partial<AntFormItemProps>;
10
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/Form/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAGzF"}
@@ -1,4 +1,11 @@
1
1
  import React from 'react';
2
+ /**
3
+ * Button component that opens an information window when clicked
4
+ *
5
+ * @param props - The component props
6
+ * @param props.codex - The codex identifier for the information content
7
+ * @returns JSX element representing the information button
8
+ */
2
9
  export default function InformationButton({ codex }: {
3
10
  codex: string;
4
11
  }): React.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"InformationButton.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/InformationButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,qBAYrE"}
1
+ {"version":3,"file":"InformationButton.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/InformationButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,qBAYrE"}
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ /**
3
+ * Setting component that wraps content with optional title and tooltip, also makes sure that the element are aligned
4
+ *
5
+ * @param props - The component props
6
+ * @param props.title - Optional title text to display above the content
7
+ * @param props.tooltip - Optional tooltip text for the content
8
+ * @param props.className - Optional CSS class name for styling
9
+ * @param props.children - The content to be wrapped
10
+ * @returns JSX element representing the setting wrapper
11
+ */
12
+ export default function Setting({ title, tooltip, className, children, }: {
13
+ title?: string;
14
+ tooltip?: string;
15
+ className?: string;
16
+ children: React.ReactNode;
17
+ }): React.JSX.Element;
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/Setting/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAK,EACL,OAAO,EACP,SAAS,EACT,QAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,qBASA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/SpreadsheetWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAe,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEhG,OAAO,KAAqB,MAAM,OAAO,CAAC;;AAoB1C,wBAA4C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/SpreadsheetWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAe,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEhG,OAAO,KAAqB,MAAM,OAAO,CAAC;;AA2B1C,wBAA4C"}