@crystaldesign/diva-backoffice 25.10.0-beta.9 → 25.11.0-beta.1

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 (112) hide show
  1. package/build/esm/index.js +2205 -1120
  2. package/build/types/backoffice/src/Configuration.d.ts +3 -2
  3. package/build/types/backoffice/src/Configuration.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Content/index.d.ts.map +1 -1
  5. package/build/types/backoffice/src/layout/Navigation/types.d.ts +1 -0
  6. package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
  7. package/build/types/backoffice/src/store/ContentStore.d.ts.map +1 -1
  8. package/build/types/backoffice/src/store/ContextStore.d.ts.map +1 -1
  9. package/build/types/backoffice/src/ui/AssetMananger/MediaItem.d.ts.map +1 -1
  10. package/build/types/backoffice/src/ui/Form/Fields/Media/index.d.ts +2 -1
  11. package/build/types/backoffice/src/ui/Form/Fields/Media/index.d.ts.map +1 -1
  12. package/build/types/backoffice/src/ui/Form/types.d.ts +1 -1
  13. package/build/types/backoffice/src/ui/Form/types.d.ts.map +1 -1
  14. package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
  15. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts +4 -3
  16. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Features.d.ts.map +1 -1
  17. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +6 -4
  18. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  19. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts +4 -3
  20. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Options.d.ts.map +1 -1
  21. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +3 -3
  22. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
  23. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts +2 -0
  24. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogContext.d.ts.map +1 -1
  25. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts +2 -0
  26. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
  27. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  28. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatures/index.d.ts.map +1 -1
  30. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  31. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.d.ts.map +1 -1
  32. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptions/index.d.ts.map +1 -1
  33. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  34. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  35. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePrices/index.d.ts.map +1 -1
  36. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  37. package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
  38. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/ExportModal.d.ts +12 -0
  39. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/ExportModal.d.ts.map +1 -0
  40. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/Modals.d.ts +13 -0
  41. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/components/Modals.d.ts.map +1 -0
  42. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/index.d.ts +14 -0
  43. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/index.d.ts.map +1 -0
  44. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/menuUtils.d.ts +12 -0
  45. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/menuUtils.d.ts.map +1 -0
  46. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/types.d.ts +92 -0
  47. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/types.d.ts.map +1 -0
  48. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/useModalOpenState.d.ts +11 -0
  49. package/build/types/backoffice/src/ui/IDMCommonComponents/ActionMenu/useModalOpenState.d.ts.map +1 -0
  50. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Checkbox/index.d.ts +12 -0
  51. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Checkbox/index.d.ts.map +1 -0
  52. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/DraggerComponent.d.ts +37 -0
  53. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/DraggerComponent.d.ts.map +1 -0
  54. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/index.d.ts +16 -0
  55. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/index.d.ts.map +1 -0
  56. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/utils.d.ts +28 -0
  57. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Dragger/utils.d.ts.map +1 -0
  58. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Input/index.d.ts +13 -0
  59. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/elements/Input/index.d.ts.map +1 -0
  60. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/index.d.ts +22 -0
  61. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/index.d.ts.map +1 -0
  62. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/types.d.ts +57 -0
  63. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/types.d.ts.map +1 -0
  64. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/useForm.d.ts +23 -0
  65. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/useForm.d.ts.map +1 -0
  66. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/utils.d.ts +10 -0
  67. package/build/types/backoffice/src/ui/IDMCommonComponents/Form/utils.d.ts.map +1 -0
  68. package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts +7 -0
  69. package/build/types/backoffice/src/ui/IDMCommonComponents/InformationButton.d.ts.map +1 -1
  70. package/build/types/backoffice/src/ui/IDMCommonComponents/Setting/index.d.ts +18 -0
  71. package/build/types/backoffice/src/ui/IDMCommonComponents/Setting/index.d.ts.map +1 -0
  72. package/build/types/backoffice/src/ui/IDMCommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  73. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/index.d.ts +21 -0
  74. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/index.d.ts.map +1 -0
  75. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/types.d.ts +42 -0
  76. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/types.d.ts.map +1 -0
  77. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/useUploadState.d.ts +36 -0
  78. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModal/useUploadState.d.ts.map +1 -0
  79. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModalbutton/index.d.ts +22 -0
  80. package/build/types/backoffice/src/ui/IDMCommonComponents/UploadModalbutton/index.d.ts.map +1 -0
  81. package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts +42 -0
  82. package/build/types/backoffice/src/ui/IDMCommonComponents/commonEnums.d.ts.map +1 -1
  83. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts +13 -0
  84. package/build/types/backoffice/src/ui/IDMCommonComponents/createTranslatedColumnConfig.d.ts.map +1 -1
  85. package/build/types/backoffice/src/ui/IDMCommonComponents/useLoadingModal.d.ts +18 -0
  86. package/build/types/backoffice/src/ui/IDMCommonComponents/useLoadingModal.d.ts.map +1 -1
  87. package/build/types/backoffice/src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.d.ts +13 -0
  88. package/build/types/backoffice/src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.d.ts.map +1 -1
  89. package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts +29 -0
  90. package/build/types/backoffice/src/ui/IDMCommonComponents/useTools.d.ts.map +1 -1
  91. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableRenaming/tableConfiguration/optionsConfig.d.ts.map +1 -1
  92. package/build/types/backoffice/src/ui/IDMFeaturesEditor/Tables/Features.d.ts +5 -0
  93. package/build/types/backoffice/src/ui/IDMFeaturesEditor/Tables/Features.d.ts.map +1 -0
  94. package/build/types/backoffice/src/ui/IDMFeaturesEditor/index.d.ts +9 -0
  95. package/build/types/backoffice/src/ui/IDMFeaturesEditor/index.d.ts.map +1 -0
  96. package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts +5 -0
  97. package/build/types/backoffice/src/ui/IDMFeaturesEditor/modules/TableFeatures/index.d.ts.map +1 -0
  98. package/build/types/backoffice/src/ui/IDMFeaturesEditor/types.d.ts +5 -0
  99. package/build/types/backoffice/src/ui/IDMFeaturesEditor/types.d.ts.map +1 -0
  100. package/build/types/backoffice/src/ui/IDMFeaturesEditor/useNavigation.d.ts +6 -0
  101. package/build/types/backoffice/src/ui/IDMFeaturesEditor/useNavigation.d.ts.map +1 -0
  102. package/package.json +9 -9
  103. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadForm.d.ts +0 -10
  104. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadForm.d.ts.map +0 -1
  105. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadModal.d.ts +0 -10
  106. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/UploadModal.d.ts.map +0 -1
  107. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/index.d.ts +0 -9
  108. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/index.d.ts.map +0 -1
  109. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/useUploadState.d.ts +0 -19
  110. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/UploadModalButton/useUploadState.d.ts.map +0 -1
  111. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts +0 -8
  112. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/Setting/index.d.ts.map +0 -1
@@ -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"}
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { UploadModalProps } from './types';
3
+ export * from './types';
4
+ /**
5
+ * Modal component for file uploads with progress tracking and form support
6
+ *
7
+ * @param props - The component props
8
+ * @param props.authToken - Authentication token for the upload request
9
+ * @param props.additionalFields - Additional form fields to include
10
+ * @param props.acceptedFileTypes - Comma-separated list of accepted file types
11
+ * @param props.queryParams - Query parameters for the upload request
12
+ * @param props.endpoint - Endpoint URL for the upload request
13
+ * @param props.onUploadComplete - Callback when upload completes
14
+ * @param props.modalTitle - Title text for the modal
15
+ * @param props.isOpen - Whether the modal is currently open
16
+ * @param props.onClose - Callback to close the modal
17
+ * @param props.uploadHint - Hint text for the upload area
18
+ * @returns JSX element representing the upload modal
19
+ */
20
+ export default function UploadModal({ authToken, additionalFields, acceptedFileTypes, queryParams, endpoint, onUploadComplete, modalTitle, isOpen, onClose, uploadHint, }: UploadModalProps): React.JSX.Element;
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/UploadModal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,cAAc,SAAS,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,MAAM,EACN,OAAO,EACP,UAAU,GACX,EAAE,gBAAgB,qBAyClB"}
@@ -0,0 +1,42 @@
1
+ import { FormRef } from '../Form';
2
+ import { FormItemProps } from '../Form/types';
3
+ /**
4
+ * Base props for upload modal functionality
5
+ */
6
+ export interface BaseUploadModalProps {
7
+ /** Authentication token for the upload request */
8
+ authToken: string;
9
+ /** Additional form fields to include in the upload modal */
10
+ additionalFields?: FormItemProps[];
11
+ /** Comma-separated list of accepted file types */
12
+ acceptedFileTypes: string;
13
+ /** Query parameters to include in the upload request */
14
+ queryParams?: Record<string, string>;
15
+ /** Endpoint URL for the upload request */
16
+ endpoint: string;
17
+ /** Callback function when upload is completed successfully */
18
+ onUploadComplete?: (response: any) => void;
19
+ /** Callback function to close the modal */
20
+ onClose: () => void;
21
+ /** Hint text to display in the upload area */
22
+ uploadHint: string;
23
+ /** Whether to automatically zip files before upload */
24
+ autoZip?: boolean;
25
+ }
26
+ /**
27
+ * Props for the UploadModal component
28
+ */
29
+ export interface UploadModalProps extends BaseUploadModalProps {
30
+ /** Title text for the modal */
31
+ modalTitle: string;
32
+ /** Whether the modal is currently open */
33
+ isOpen: boolean;
34
+ }
35
+ /**
36
+ * Props for the useUploadModal hook
37
+ */
38
+ export interface UploadModalHookProps extends BaseUploadModalProps {
39
+ /** Reference to the form component */
40
+ formRef: React.RefObject<FormRef>;
41
+ }
42
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/UploadModal/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,aAAa,EAAE,CAAC;IACnC,kDAAkD;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3C,2CAA2C;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,oBAAoB;IAC5D,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,oBAAoB;IAChE,sCAAsC;IACtC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;CACnC"}
@@ -0,0 +1,36 @@
1
+ import { FormItemProps } from '../Form/types';
2
+ import { RcFile } from 'antd/es/upload';
3
+ import { UploadModalHookProps } from './types';
4
+ /**
5
+ * Custom hook for managing upload modal state and functionality
6
+ *
7
+ * @param props - The hook props
8
+ * @param props.authToken - Authentication token for the upload request
9
+ * @param props.additionalFields - Additional form fields to include
10
+ * @param props.acceptedFileTypes - Comma-separated list of accepted file types
11
+ * @param props.queryParams - Query parameters for the upload request
12
+ * @param props.endpoint - Endpoint URL for the upload request
13
+ * @param props.onUploadComplete - Callback when upload completes
14
+ * @param props.formRef - Reference to the form component
15
+ * @param props.onClose - Callback to close the modal
16
+ * @param props.uploadHint - Hint text for the upload area
17
+ * @param props.autoZip - Whether to automatically zip files
18
+ * @returns Object containing upload state and handlers
19
+ * @returns {boolean} loading - Whether an upload is currently in progress
20
+ * @returns {number} progress - Current upload progress percentage
21
+ * @returns {string|undefined} error - Current error message if any
22
+ * @returns {Function} onSave - Handler for form submission and upload
23
+ * @returns {FormItemProps[]} fields - Form field configurations
24
+ * @returns {RcFile|undefined} currentFile - Currently selected file
25
+ * @returns {Function} onModalClose - Handler to close the modal and reset state
26
+ */
27
+ export default function useUploadModal({ authToken, additionalFields, acceptedFileTypes, queryParams, endpoint, onUploadComplete, formRef, onClose, uploadHint, autoZip, }: UploadModalHookProps): {
28
+ loading: boolean;
29
+ progress: number;
30
+ error: string | undefined;
31
+ onSave: (values: any) => Promise<void>;
32
+ fields: FormItemProps[];
33
+ currentFile: RcFile | undefined;
34
+ onModalClose: () => void;
35
+ };
36
+ //# sourceMappingURL=useUploadState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUploadState.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/UploadModal/useUploadState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,OAAO,EACP,OAAO,EACP,UAAU,EACV,OAAO,GACR,EAAE,oBAAoB;;;;qBAmCS,GAAG;;;;EA+ElC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { UploadModalProps } from '../UploadModal';
3
+ /**
4
+ * Props for the UploadModalButton component
5
+ */
6
+ export interface UploadModalButtonProps extends Omit<UploadModalProps, 'isOpen' | 'onClose'> {
7
+ /** Button text to display */
8
+ buttonText: string;
9
+ /** Callback when modal is closed */
10
+ onClose?: () => void;
11
+ }
12
+ /**
13
+ * Button component that opens an upload modal when clicked
14
+ *
15
+ * @param props - The component props
16
+ * @param props.buttonText - Text to display on the button
17
+ * @param props.onClose - Optional callback when modal is closed
18
+ * @param props - Additional props passed to the UploadModal component
19
+ * @returns JSX element representing the upload modal button
20
+ */
21
+ export default function UploadModalButton({ buttonText, onClose, ...props }: UploadModalButtonProps): React.JSX.Element;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCommonComponents/UploadModalbutton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAoB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC1F,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,qBAiBlG"}
@@ -1,28 +1,70 @@
1
1
  import { TFunction } from 'i18next';
2
+ /**
3
+ * Returns an array of currency options with translated names
4
+ *
5
+ * @param t - Translation function from i18next
6
+ * @returns Array of currency objects with name and value properties
7
+ */
2
8
  export declare const getCurrencyKey: (t: TFunction) => {
3
9
  name: string;
4
10
  value: string;
5
11
  }[];
12
+ /**
13
+ * Returns an array of language options with translated names
14
+ *
15
+ * @param t - Translation function from i18next
16
+ * @returns Array of language objects with name and value properties
17
+ */
6
18
  export declare const getLanguageKey: (t: TFunction) => {
7
19
  name: string;
8
20
  value: string;
9
21
  }[];
22
+ /**
23
+ * Returns an array of country options with translated names
24
+ *
25
+ * @param t - Translation function from i18next
26
+ * @returns Array of country objects with name and value properties
27
+ */
10
28
  export declare const getCountryKey: (t: TFunction) => {
11
29
  name: string;
12
30
  value: string;
13
31
  }[];
32
+ /**
33
+ * Returns an array of form of address options with translated names
34
+ *
35
+ * @param t - Translation function from i18next
36
+ * @returns Array of form of address objects with name and value properties
37
+ */
14
38
  export declare const getFormOfAddressKey: (t: TFunction) => {
15
39
  name: string;
16
40
  value: number;
17
41
  }[];
42
+ /**
43
+ * Returns an array of layer ID options with translated names
44
+ *
45
+ * @param t - Translation function from i18next
46
+ * @returns Array of layer ID objects with name and value properties
47
+ */
18
48
  export declare const getLayerIdKey: (t: TFunction) => {
19
49
  name: string;
20
50
  value: number;
21
51
  }[];
52
+ /**
53
+ * Returns an array of info type options with translated names
54
+ *
55
+ * @param t - Translation function from i18next
56
+ * @returns Array of info type objects with name and value properties
57
+ */
22
58
  export declare const getInfoTypeKey: (t: TFunction) => {
23
59
  name: string;
24
60
  value: number;
25
61
  }[];
62
+ /**
63
+ * Returns an array of item type options with translated names
64
+ *
65
+ * @param t - Translation function from i18next
66
+ * @returns Array of item type objects with name and value properties
67
+ */
26
68
  export declare const getItemTypeKey: (t: TFunction) => {
27
69
  name: string;
28
70
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"commonEnums.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/commonEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAQzC,CAAC;AAEF,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GAG/C,CAAC;AAEF,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAOzC,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAe1C,CAAC;AAEF,eAAO,MAAM,cAAc,MAAO,SAAS;;;GA2B1C,CAAC"}
1
+ {"version":3,"file":"commonEnums.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/commonEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAK1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAQzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAO,SAAS;;;GAG/C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,MAAO,SAAS;;;GAOzC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GAe1C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,cAAc,MAAO,SAAS;;;GA2B1C,CAAC"}
@@ -1,4 +1,17 @@
1
1
  import { CellDataTypes } from '@crystaldesign/spreadsheet';
2
+ /**
3
+ * Creates a column configuration for translated fields in a spreadsheet
4
+ *
5
+ * @param field - The base field name for the translated column
6
+ * @param headerName - The header name to display for the column
7
+ * @param languages - Array of language codes to create columns for (defaults to ['DE'])
8
+ * @param required - Whether the field is required
9
+ * @param cellDataType - The data type for the cell
10
+ * @param customParams - Custom parameters to be applied to each language variant
11
+ * @param additionalFields - Additional fields to be included with each language variant
12
+ * @param editable - Whether the field is editable
13
+ * @returns Column configuration object for the spreadsheet
14
+ */
2
15
  export default function createTranslatedColumnConfig(field: string, headerName: string, languages?: string[], required?: boolean, cellDataType?: CellDataTypes, customParams?: any, additionalFields?: string[], editable?: boolean): {
3
16
  headerName: string;
4
17
  field: string;
@@ -1 +1 @@
1
- {"version":3,"file":"createTranslatedColumnConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/createTranslatedColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,QAAQ,GAAE,OAAe,EACzB,YAAY,CAAC,EAAE,aAAa,EAC5B,YAAY,CAAC,EAAE,GAAG,EAClB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAC3B,QAAQ,GAAE,OAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCzB"}
1
+ {"version":3,"file":"createTranslatedColumnConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/createTranslatedColumnConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAClD,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,SAAS,CAAC,EAAE,MAAM,EAAE,EACpB,QAAQ,GAAE,OAAe,EACzB,YAAY,CAAC,EAAE,aAAa,EAC5B,YAAY,CAAC,EAAE,GAAG,EAClB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAC3B,QAAQ,GAAE,OAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCzB"}
@@ -1,10 +1,28 @@
1
1
  import React from 'react';
2
+ /**
3
+ * State interface for the loading modal hook
4
+ */
2
5
  export interface LoadingModalState {
6
+ /** Function to show a loading modal with text */
3
7
  showLoadingModal: (text: string) => void;
8
+ /** Function to show an error modal with error message */
4
9
  showErrorModal: (error: string) => void;
10
+ /** Function to show a warning modal with warning message */
5
11
  showWarningModal: (warning: string) => void;
12
+ /** Function to close the current modal */
6
13
  closeModal: () => void;
14
+ /** Context holder element for the modal */
7
15
  contextHolder: React.ReactElement;
8
16
  }
17
+ /**
18
+ * Custom hook for managing loading, error, and warning modals
19
+ *
20
+ * @returns Object containing modal management functions and context holder
21
+ * @returns {Function} showLoadingModal - Function to show a loading modal
22
+ * @returns {Function} showErrorModal - Function to show an error modal
23
+ * @returns {Function} showWarningModal - Function to show a warning modal
24
+ * @returns {Function} closeModal - Function to close the current modal
25
+ * @returns {React.ReactElement} contextHolder - Context holder element
26
+ */
9
27
  export declare const useLoadingModal: () => LoadingModalState;
10
28
  //# sourceMappingURL=useLoadingModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadingModal.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/useLoadingModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;CACnC;AAED,eAAO,MAAM,eAAe,QAAO,iBAuElC,CAAC"}
1
+ {"version":3,"file":"useLoadingModal.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/useLoadingModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,yDAAyD;IACzD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,4DAA4D;IAC5D,gBAAgB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,0CAA0C;IAC1C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,2CAA2C;IAC3C,aAAa,EAAE,KAAK,CAAC,YAAY,CAAC;CACnC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,QAAO,iBAuElC,CAAC"}
@@ -1,8 +1,21 @@
1
+ /**
2
+ * Interface for price feature group data
3
+ */
1
4
  export interface PriceFeatureGroup {
5
+ /** Unique identifier for the price feature group */
2
6
  id: string;
7
+ /** Display text for the price feature group */
3
8
  displayText: string;
9
+ /** Array of price feature keys */
4
10
  keys: string[];
11
+ /** Array of display texts for the price feature keys */
5
12
  keysDisplayTexts: (string | undefined)[];
6
13
  }
14
+ /**
15
+ * Custom hook that extracts and formats price feature groups from a serie
16
+ *
17
+ * @param serie - The serie object containing price feature group data
18
+ * @returns Array of PriceFeatureGroup objects
19
+ */
7
20
  export default function usePriceFeatureGroupsFromSerie(serie: any): PriceFeatureGroup[];
8
21
  //# sourceMappingURL=usePriceFeatureGroupsFromSerie.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePriceFeatureGroupsFromSerie.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,gBAAgB,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;CAC1C;AACD,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,KAAK,EAAE,GAAG,uBAGhE"}
1
+ {"version":3,"file":"usePriceFeatureGroupsFromSerie.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCommonComponents/usePriceFeatureGroupsFromSerie.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAC;IACpB,kCAAkC;IAClC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,wDAAwD;IACxD,gBAAgB,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;CAC1C;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,KAAK,EAAE,GAAG,uBAGhE"}