@crystaldesign/diva-backoffice 26.13.0-beta.14 → 26.13.0-beta.16

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 (102) hide show
  1. package/build/esm/index.js +4412 -3055
  2. package/build/types/backoffice/src/layout/DataEngine/views.d.ts.map +1 -1
  3. package/build/types/backoffice/src/layout/Detail.d.ts.map +1 -1
  4. package/build/types/backoffice/src/layout/Navigation/types.d.ts +2 -0
  5. package/build/types/backoffice/src/layout/Navigation/types.d.ts.map +1 -1
  6. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts +20 -0
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -1
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/index.d.ts.map +1 -1
  9. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts.map +1 -1
  10. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts +14 -0
  11. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
  12. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts +8 -2
  13. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts.map +1 -1
  14. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/useWysiwygContentItem.d.ts.map +1 -1
  15. package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
  16. package/build/types/backoffice/src/store/DetailStore.d.ts +29 -2
  17. package/build/types/backoffice/src/store/DetailStore.d.ts.map +1 -1
  18. package/build/types/backoffice/src/store/ToolBarStore.d.ts +25 -1
  19. package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
  20. package/build/types/backoffice/src/tests/unit/agentBridge/expectedPath.test.d.ts +2 -0
  21. package/build/types/backoffice/src/tests/unit/agentBridge/expectedPath.test.d.ts.map +1 -0
  22. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/approvalWithdrawn.test.d.ts +2 -0
  23. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/approvalWithdrawn.test.d.ts.map +1 -0
  24. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/backofficeSelectionFacts.test.d.ts +2 -0
  25. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/backofficeSelectionFacts.test.d.ts.map +1 -0
  26. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +8 -0
  27. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -1
  28. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigateToPaths.test.d.ts +2 -0
  29. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/navigateToPaths.test.d.ts.map +1 -0
  30. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readColumnOptionsRow.test.d.ts +2 -0
  31. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/readColumnOptionsRow.test.d.ts.map +1 -0
  32. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/reloadSelection.test.d.ts +2 -0
  33. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/reloadSelection.test.d.ts.map +1 -0
  34. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageAfterRemount.test.d.ts +2 -0
  35. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/stageAfterRemount.test.d.ts.map +1 -0
  36. package/build/types/backoffice/src/tests/unit/store/DetailStore.replaceRightDetail.test.d.ts +2 -0
  37. package/build/types/backoffice/src/tests/unit/store/DetailStore.replaceRightDetail.test.d.ts.map +1 -0
  38. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.borrowTools.test.d.ts +2 -0
  39. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.borrowTools.test.d.ts.map +1 -0
  40. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.order.test.d.ts +2 -0
  41. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.order.test.d.ts.map +1 -0
  42. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.previewSettings.test.d.ts +2 -0
  43. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.previewSettings.test.d.ts.map +1 -0
  44. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/updateConfirmationReview.test.d.ts +2 -0
  45. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/updateConfirmationReview.test.d.ts.map +1 -0
  46. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts +2 -0
  47. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts.map +1 -1
  48. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +3 -0
  49. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  50. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts +44 -0
  51. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts.map +1 -0
  52. package/build/types/backoffice/src/ui/CommonComponents/useBorrowedTools.d.ts +8 -0
  53. package/build/types/backoffice/src/ui/CommonComponents/useBorrowedTools.d.ts.map +1 -0
  54. package/build/types/backoffice/src/ui/ContentItems/ContentItemPanel.d.ts +22 -0
  55. package/build/types/backoffice/src/ui/ContentItems/ContentItemPanel.d.ts.map +1 -0
  56. package/build/types/backoffice/src/ui/ContentItems/api.d.ts +18 -0
  57. package/build/types/backoffice/src/ui/ContentItems/api.d.ts.map +1 -0
  58. package/build/types/backoffice/src/ui/ContentItems/editor.d.ts +21 -0
  59. package/build/types/backoffice/src/ui/ContentItems/editor.d.ts.map +1 -0
  60. package/build/types/backoffice/src/ui/ContentItems/useContentItem.d.ts +11 -0
  61. package/build/types/backoffice/src/ui/ContentItems/useContentItem.d.ts.map +1 -0
  62. package/build/types/backoffice/src/ui/Form/Fields/Translation/useTranslationForm.d.ts +2 -0
  63. package/build/types/backoffice/src/ui/Form/Fields/Translation/useTranslationForm.d.ts.map +1 -1
  64. package/build/types/backoffice/src/ui/Form/index.d.ts +4 -0
  65. package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
  66. package/build/types/backoffice/src/ui/Form/useFormData.d.ts +3 -1
  67. package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
  68. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.d.ts +13 -0
  69. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.d.ts.map +1 -0
  70. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.d.ts +10 -0
  71. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.d.ts.map +1 -0
  72. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts +27 -0
  73. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts.map +1 -0
  74. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.d.ts +9 -0
  75. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.d.ts.map +1 -0
  76. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map +1 -1
  77. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts +13 -20
  78. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts.map +1 -1
  79. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.d.ts +14 -0
  80. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.d.ts.map +1 -0
  81. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts +20 -0
  82. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts.map +1 -0
  83. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.d.ts +16 -0
  84. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.d.ts.map +1 -0
  85. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.d.ts +11 -0
  86. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.d.ts.map +1 -0
  87. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.d.ts.map +1 -1
  88. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts +5 -0
  89. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts.map +1 -1
  90. package/build/types/backoffice/src/ui/JsonEditor/useJsonEditorData.d.ts +4 -0
  91. package/build/types/backoffice/src/ui/JsonEditor/useJsonEditorData.d.ts.map +1 -1
  92. package/package.json +16 -12
  93. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts +0 -16
  94. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts.map +0 -1
  95. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts +0 -22
  96. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts.map +0 -1
  97. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts +0 -3
  98. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts.map +0 -1
  99. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.d.ts +0 -15
  100. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.d.ts.map +0 -1
  101. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts +0 -3
  102. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +0 -1
@@ -0,0 +1,22 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { ContentItem } from './api';
3
+ /**
4
+ * Id of the ContentItem tab - the id of the content item editors' preview, so an open editor lends this tab its live
5
+ * data (see ToolBarStore.borrowTools) instead of opening a tab of its own.
6
+ */
7
+ export declare const CONTENT_ITEM_TAB = "WYSIWYG_ContentItem";
8
+ export interface ContentItemPanelProps {
9
+ /** The item to preview: undefined while it loads, null when there is none. */
10
+ item: ContentItem | null | undefined;
11
+ /** Shown in the frame where the preview would be. */
12
+ hint?: string;
13
+ /** The buttons under the preview while no editor is open, e.g. to edit or create the item. */
14
+ buttons?: ReactNode;
15
+ }
16
+ /**
17
+ * The ContentItem tab: the preview of a content item and the buttons for it. The editor slides in next to it (see
18
+ * openContentItemEditor); while it is open, the preview follows the editor and the buttons save or cancel it.
19
+ */
20
+ declare const ContentItemPanel: React.FunctionComponent<ContentItemPanelProps>;
21
+ export default ContentItemPanel;
22
+ //# sourceMappingURL=ContentItemPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContentItemPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ContentItems/ContentItemPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAQlD,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC;;;GAGG;AACH,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,qDAAqD;IACrD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8FAA8F;IAC9F,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;GAGG;AACH,QAAA,MAAM,gBAAgB,gDA4CpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import RootStore from '../../store/RootStore';
2
+ /** A content item as the catalog service returns it. */
3
+ export interface ContentItem {
4
+ _id: string;
5
+ codex?: string;
6
+ description?: string;
7
+ organizationId?: string;
8
+ template?: boolean;
9
+ content?: unknown[];
10
+ catalogName?: string;
11
+ supplierName?: string;
12
+ }
13
+ /**
14
+ * The content item with the id or key, or undefined when there is none or the user cannot read it. The catalog service
15
+ * resolves a key without regard to the organization.
16
+ */
17
+ export declare function loadContentItem(root: RootStore, idOrCodex: string): Promise<ContentItem | undefined>;
18
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ContentItems/api.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAG9C,wDAAwD;AACxD,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID;;;GAGG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAO1G"}
@@ -0,0 +1,21 @@
1
+ import type { TFunction } from 'i18next';
2
+ import RootStore from '../../store/RootStore';
3
+ import { DetailEditor } from '../../store/DetailStore';
4
+ import { ContentItem } from './api';
5
+ export type ContentItemEditorType = DetailEditor['type'];
6
+ export interface ContentItemEditorOptions {
7
+ title: string;
8
+ /** The item to edit, or - without an _id - the one to create. */
9
+ data: Partial<ContentItem>;
10
+ /** The editor the drawer opens with. */
11
+ start: ContentItemEditorType;
12
+ /** Offers switching between the form and the JSON in the drawer's header. */
13
+ switchable: boolean;
14
+ }
15
+ /**
16
+ * Opens the drawer with a content item editor and resolves to the saved item, or to undefined when it was cancelled.
17
+ * Save and cancel are not in the drawer but under the preview of the ContentItem tab (ContentItemPanel). Cancelling a
18
+ * new item closes the tab the editor showed it in, as nothing is left to preview; an existing item's stays.
19
+ */
20
+ export declare function openContentItemEditor(root: RootStore, t: TFunction, { title, data, start, switchable }: ContentItemEditorOptions): Promise<ContentItem | undefined>;
21
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ContentItems/editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;AAQzD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,IAAI,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC3B,wCAAwC;IACxC,KAAK,EAAE,qBAAqB,CAAC;IAC7B,6EAA6E;IAC7E,UAAU,EAAE,OAAO,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,SAAS,EACf,CAAC,EAAE,SAAS,EACZ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE,wBAAwB,GAC3D,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAuBlC"}
@@ -0,0 +1,11 @@
1
+ import { ContentItem } from './api';
2
+ /**
3
+ * The content item with the id or key: undefined while it loads, null when there is none or `accept` turns it down.
4
+ * `show` displays an item the caller already holds - one just saved - also once the id or key turns to it, so the
5
+ * preview does not flicker through an empty state to the reloaded item.
6
+ */
7
+ export declare function useContentItem(idOrCodex: string | undefined, accept?: (item: ContentItem) => boolean): {
8
+ item: ContentItem | null | undefined;
9
+ show: (saved: ContentItem) => void;
10
+ };
11
+ //# sourceMappingURL=useContentItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useContentItem.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/ContentItems/useContentItem.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAmB,MAAM,OAAO,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,GAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAoB;;kBA4B9E,WAAW;EAM7C"}
@@ -1,5 +1,7 @@
1
1
  import { FormState } from '../../useFormData';
2
2
  import { TranslationItem } from '../../types';
3
+ /** The languages a translation field edits - also the ones the content item preview offers. */
4
+ export declare const TRANSLATION_LANGUAGES: string[];
3
5
  export default function (item: TranslationItem, state: FormState): {
4
6
  currentLang: string;
5
7
  onChange: (value: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useTranslationForm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/Translation/useTranslationForm.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAQ,eAAe,EAAE,MAAM,aAAa,CAAC;AAIpD,MAAM,CAAC,OAAO,WAAW,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS;;sBA8FrC,MAAM;;;;;;EAMhC"}
1
+ {"version":3,"file":"useTranslationForm.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/Translation/useTranslationForm.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAQ,eAAe,EAAE,MAAM,aAAa,CAAC;AAIpD,+FAA+F;AAC/F,eAAO,MAAM,qBAAqB,UAA2B,CAAC;AAE9D,MAAM,CAAC,OAAO,WAAW,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS;;sBAsGrC,MAAM;;;;;;EAMhC"}
@@ -6,6 +6,8 @@ import { FormConfiguration } from './types';
6
6
  export interface Props {
7
7
  id?: string;
8
8
  data?: any;
9
+ /** The stored state an update is computed against when the form opens with another one (an editor switched to); defaults to data. */
10
+ origData?: any;
9
11
  onChange?: (data: any) => any;
10
12
  onError?: (error: string, showTrace?: boolean) => void;
11
13
  skipApi?: boolean;
@@ -21,8 +23,10 @@ export interface Props {
21
23
  export declare function getLabel(item: Item, t: any): any;
22
24
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & React.RefAttributes<{
23
25
  submit: () => void;
26
+ getData?: () => any;
24
27
  }>, "ref"> & React.RefAttributes<{
25
28
  submit: () => void;
29
+ getData?: () => any;
26
30
  }>>>;
27
31
  export default _default;
28
32
  export * from './types';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,EAAiB,YAAY,EAAgC,MAAM,MAAM,CAAC;AAGjF,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAMnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAe5C,MAAM,WAAW,KAAK;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,IAAI,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA+UD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,OAG1C;;YA9U0B,MAAM,IAAI;;YAAV,MAAM,IAAI;;AAgVrC,wBAAuD;AAEvD,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/index.tsx"],"names":[],"mappings":"AA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  data?: any;
12
+ /** The stored state an update is computed against; defaults to data. */
13
+ origData?: any;
12
14
  skipApi?: boolean;
13
15
  mappingData?: any;
14
16
  apiInterface?: ApiInterface;
@@ -58,6 +60,6 @@ interface HiddenRequiredDisabledStateType {
58
60
  disabled: boolean;
59
61
  };
60
62
  }
61
- export default function ({ id, data: inboundData, skipApi, mappingData, apiInterface, form, setCanSave, configuration: configurationOverride, namePrefix, }: Props): FormState;
63
+ export default function ({ id, data: inboundData, origData: storedData, skipApi, mappingData, apiInterface, form, setCanSave, configuration: configurationOverride, namePrefix, }: Props): FormState;
62
64
  export {};
63
65
  //# sourceMappingURL=useFormData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFormData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/useFormData.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,iBAAiB,EAA2C,MAAM,SAAS,CAAC;AAEhG,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAKpC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA8BvD,UAAU,KAAK;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,IAAI,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,i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;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;CAC3E;AAED,MAAM,CAAC,OAAO,WAAW,EACvB,EAAE,EACF,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,UAAU,EACpB,OAAO,EACP,WAAW,EACX,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,aAAa,EAAE,qBAAqB,EACpC,UAAU,GACX,EAAE,KAAK,GAAG,SAAS,CA+iBnB"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface MismatchedValueCellProps {
3
+ /** The stored value as a text. */
4
+ text: string;
5
+ /** The type of the property's definition. */
6
+ type: string;
7
+ }
8
+ /**
9
+ * A property value that does not fit the type of its definition - the type changed after the value was stored. It shows
10
+ * with a warning until an edit replaces it with a value of the type.
11
+ */
12
+ export declare function MismatchedValueCell({ text, type }: MismatchedValueCellProps): React.JSX.Element;
13
+ //# sourceMappingURL=MismatchedValueCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MismatchedValueCell.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,wBAAwB;IACvC,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,wBAAwB,qBAc3E"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ /**
3
+ * A property's content item, loaded by its key in the portal's language and shown in the backoffice's theme - without
4
+ * one, a hint in the same frame.
5
+ */
6
+ declare const PropertyInfo: React.FunctionComponent<{
7
+ codexKey?: string;
8
+ }>;
9
+ export default PropertyInfo;
10
+ //# sourceMappingURL=PropertyInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyInfo.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAUzC;;;GAGG;AACH,QAAA,MAAM,YAAY;eAA6D,MAAM;EAuBnF,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ /** Id of the Properties tab of the enrichment tables. */
3
+ export declare const PROPERTY_LIST_TAB = "ENRICHMENT_PROPERTIES";
4
+ export interface PropertyListEntry {
5
+ key: string;
6
+ description?: string;
7
+ codexKey?: string;
8
+ type?: string;
9
+ }
10
+ export interface PropertyListPanelProps {
11
+ /** The properties the table's "add property" picker offers. */
12
+ properties: PropertyListEntry[];
13
+ /** The keys that are a column of the table, in the table's order. */
14
+ shownKeys: string[];
15
+ selectedKey?: string;
16
+ onSelect: (key: string) => void;
17
+ /** Adds the property as a column; missing in a view-only table. */
18
+ onAdd?: (property: PropertyListEntry) => void;
19
+ /** Removes the property's column and its values in every row; missing in a view-only table. */
20
+ onRemove?: (key: string) => void;
21
+ }
22
+ /**
23
+ * The Properties tab of an enrichment table: the properties that are a column of the table, and the ones it can add -
24
+ * with what each is for, searchable by key and description.
25
+ */
26
+ export default function PropertyListPanel({ properties, shownKeys, selectedKey, onSelect, onAdd, onRemove }: PropertyListPanelProps): React.JSX.Element;
27
+ //# sourceMappingURL=PropertyListPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyListPanel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAU5D,yDAAyD;AACzD,eAAO,MAAM,iBAAiB,0BAA0B,CAAC;AAEzD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,UAAU,EAAE,iBAAiB,EAAE,CAAC;IAChC,qEAAqE;IACrE,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,+FAA+F;IAC/F,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,qBA2DlI"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ /**
3
+ * Removes a property from an enrichment table after a confirmation - which deletes its values in every row of the
4
+ * table. Clicks stay with the button, so a column header under it does not sort.
5
+ */
6
+ export default function RemovePropertyButton({ onConfirm }: {
7
+ onConfirm: () => void;
8
+ }): React.JSX.Element;
9
+ //# sourceMappingURL=RemovePropertyButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemovePropertyButton.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,IAAI,CAAA;CAAE,qBA2BpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAuEjF,QAAA,MAAM,oBAAoB,yBAEzB,CAAC;AACF,QAAA,MAAM,iBAAiB,yBAEtB,CAAC;AAEF,QAAA,MAAM,cAAc,yBAEnB,CAAC;AAEF,QAAA,MAAM,gBAAgB,yBAErB,CAAC;AAEF,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAqDjF,QAAA,MAAM,oBAAoB,yBAEzB,CAAC;AACF,QAAA,MAAM,iBAAiB,yBAEtB,CAAC;AAEF,QAAA,MAAM,cAAc,yBAEnB,CAAC;AAEF,QAAA,MAAM,gBAAgB,yBAErB,CAAC;AAEF,QAAA,MAAM,eAAe,yBAEpB,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,CAAC"}
@@ -1,27 +1,20 @@
1
- import { TFunction } from 'i18next';
2
- import { DivaColDef } from '@crystaldesign/spreadsheet';
3
- import { type PropertyEncoding } from '@crystaldesign/web-planner-logic';
4
- /** Column tooltip telling the user the exact text format a non-text property expects: translation key and English default per editor kind. */
5
- export declare const PROPERTY_FORMAT_HINT: {
6
- [kind: string]: {
7
- key: string;
8
- defaultValue: string;
9
- };
10
- };
1
+ import { DivaColDef, DivaColGroupDef } from '@crystaldesign/spreadsheet';
2
+ /** The language key of a value that is the same in every language - every type but a text (see the enricher service). */
3
+ export declare const LANGUAGE_NEUTRAL_KEY = "ALL";
11
4
  export interface PropertyColumnArgs {
12
- /** The property key: its own value lives under `translatedProp.<key>.<lang>`, the inherited one under `prop.<key>.<lang>`. */
13
5
  key: string;
14
- lang: string;
15
- encoding: PropertyEncoding;
16
- headerLabel: string;
6
+ /** The definition's type: string, boolean, number, list or object. A key without a definition is a text. */
7
+ type?: string;
8
+ /** The package's languages, the leading one first: a text gets a column per language. */
9
+ languages: string[];
17
10
  viewOnly?: boolean;
18
- t: TFunction;
19
11
  }
20
12
  /**
21
- * The column of a parsed (non-text) property. Every cell reads through the codec and writes back through it, so a
22
- * value stored in ANY historic spelling still displays correctly and a save emits the one spelling this property's
23
- * parser reads - writing 'true' where it tests `== '1'` would silently mean false. A boolean encoding is a checkbox,
24
- * every other kind a text cell with the expanded editor.
13
+ * The column of a property in an enrichment table, as the type of its definition says. A text has a column per
14
+ * language (translatedProp.<key>.<LANG>), every other type one column for all languages (translatedProp.<key>.ALL) with
15
+ * the spreadsheet's standard cell, which stores the value as that type. The cell shows the value in force - the pack's
16
+ * own, else the inherited one - and an edit writes the pack's own. A value stored before its definition's type changed
17
+ * shows with a warning, and an edit replaces it with a value of the type.
25
18
  */
26
- export declare function buildPropertyColumn({ key, lang, encoding, headerLabel, viewOnly, t }: PropertyColumnArgs): DivaColDef<any>;
19
+ export declare function buildPropertyColumn({ key, type, languages, viewOnly }: PropertyColumnArgs): DivaColDef<any> | DivaColGroupDef<any>;
27
20
  //# sourceMappingURL=propertyColumn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAgC,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAML,KAAK,gBAAgB,EAEtB,MAAM,kCAAkC,CAAC;AAG1C,8IAA8I;AAC9I,eAAO,MAAM,oBAAoB,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CASzF,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,8HAA8H;IAC9H,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,EAAE,SAAS,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,CAyE1H"}
1
+ {"version":3,"file":"propertyColumn.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAItH,yHAAyH;AACzH,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AA4C1C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,4GAA4G;IAC5G,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yFAAyF;IACzF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,GAAG,CAAC,CAgDlI"}
@@ -0,0 +1,14 @@
1
+ export interface PropertyInfoSelection {
2
+ key: string;
3
+ codexKey?: string;
4
+ }
5
+ /**
6
+ * Shows the content item of the selected property in a drawer left of the Properties tab. Selecting another property
7
+ * swaps the drawer's content instead of opening another drawer; no selection closes the drawer, and so does leaving
8
+ * the table.
9
+ *
10
+ * @param selection - the selected property
11
+ * @param onClose - called when the user closes the drawer
12
+ */
13
+ export declare function usePropertyInfoDrawer(selection: PropertyInfoSelection | undefined, onClose: () => void): void;
14
+ //# sourceMappingURL=usePropertyInfoDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usePropertyInfoDrawer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,qBAAqB,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,IAAI,QAkCtG"}
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
3
+ /** The selected definition, as far as its content item is concerned. */
4
+ export interface SelectedDefinition {
5
+ /** The grid's row node, to write the content item key into. */
6
+ nodeId: string;
7
+ key?: string;
8
+ codexKey?: string;
9
+ }
10
+ interface Props {
11
+ /** Called with the selected definition - and again when that row changes, e.g. its content item key. */
12
+ onSelectionChange?: (selection: SelectedDefinition | undefined) => void;
13
+ }
14
+ /**
15
+ * The property definition registry, shared by every organization: a definition is either global or released to the
16
+ * chosen organizations, and a release reaches their sub-organizations too - the same way a package release does.
17
+ */
18
+ declare const PropertyDefinitions: React.ForwardRefExoticComponent<Props & React.RefAttributes<SpreadsheetRefProps>>;
19
+ export default PropertyDefinitions;
20
+ //# sourceMappingURL=PropertyDefinitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAuC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAiCtG,wEAAwE;AACxE,MAAM,WAAW,kBAAkB;IACjC,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,KAAK;IACb,wGAAwG;IACxG,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,kBAAkB,GAAG,SAAS,KAAK,IAAI,CAAC;CACzE;AAKD;;;GAGG;AACH,QAAA,MAAM,mBAAmB,mFA8LvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import type { TFunction } from 'i18next';
2
+ import RootStore from '../../../store/RootStore';
3
+ import { ContentItem } from '../../ContentItems/api';
4
+ /**
5
+ * Key of the content item template a property's content item starts from. It is maintained among the content item
6
+ * templates, so the layout of the property help changes without a deployment.
7
+ */
8
+ export declare const PROPERTY_INFO_TEMPLATE_CODEX = "PROPERTY_INFO_TEMPLATE";
9
+ /**
10
+ * Creates a GLOBAL content item, prefilled with the given key. With the template the content item form opens with its
11
+ * blocks - the form the content items table copies a template in; without it, the JSON editor the global content
12
+ * items table creates them in. A second item under a key that is already taken would make the info window show either
13
+ * of them, so a taken key is refused. Resolves to the created item, or to undefined when nothing was created.
14
+ */
15
+ export declare function createGlobalContentItem(root: RootStore, codex: string, t: TFunction): Promise<ContentItem | undefined>;
16
+ //# sourceMappingURL=globalContentItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalContentItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,WAAW,EAAmB,MAAM,wBAAwB,CAAC;AAGtE;;;GAGG;AACH,eAAO,MAAM,4BAA4B,2BAA2B,CAAC;AAYrE;;;;;GAKG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAgC5H"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { SelectedDefinition } from '../../Tables/PropertyDefinitions';
3
+ export interface PropertyContentItemPanelProps {
4
+ selection?: SelectedDefinition;
5
+ /** Stores the key of a content item created here on the definition it was created for. */
6
+ onContentItemCreated: (selection: SelectedDefinition, codex: string) => void;
7
+ }
8
+ /** The ContentItem tab of the property definitions: the selected definition's content item, to create or edit. */
9
+ declare const PropertyContentItemPanel: React.FunctionComponent<PropertyContentItemPanelProps>;
10
+ export default PropertyContentItemPanel;
11
+ //# sourceMappingURL=PropertyContentItemPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyContentItemPanel.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,0FAA0F;IAC1F,oBAAoB,EAAE,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9E;AAED,kHAAkH;AAClH,QAAA,MAAM,wBAAwB,wDAoD5B,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,CAAC,OAAO,gCASb"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAStE,MAAM,CAAC,OAAO,gCAoCb"}
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
2
  import 'jsoneditor/dist/jsoneditor.css';
3
3
  import { BaseModulConfiguration } from '../../Configuration';
4
+ import { Tool } from '../../layout/Navigation/types';
4
5
  export interface JsonEditorConfiguration extends BaseModulConfiguration {
5
6
  type: 'JsonEditor';
6
7
  preview?: string;
7
8
  default?: any;
9
+ /** Tools of the right toolbar that show the edited data, like a form's (parameters: data, submit). */
10
+ tools?: Tool[];
8
11
  }
9
12
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<{
10
13
  id: string;
@@ -16,8 +19,10 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
16
19
  height?: number | string;
17
20
  } & React.RefAttributes<{
18
21
  submit: () => void;
22
+ getData?: () => any;
19
23
  }>, "ref"> & React.RefAttributes<{
20
24
  submit: () => void;
25
+ getData?: () => any;
21
26
  }>>>;
22
27
  export default _default;
23
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAK7D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;;QAYO,MAAM;YACF,GAAG;cACD,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;iBACpB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WAChC,GAAG;aACD,MAAM,GAAG,MAAM;;YAED,MAAM,IAAI;;YAAV,MAAM,IAAI;;AAgErC,wBAAsD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAC/E,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAOrD,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;IACrE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,sGAAsG;IACtG,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;;QAYO,MAAM;YACF,GAAG;cACD,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI;cACpB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;iBACpB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;WAChC,GAAG;aACD,MAAM,GAAG,MAAM;;YAED,MAAM,IAAI;cAAY,MAAM,GAAG;;YAA/B,MAAM,IAAI;cAAY,MAAM,GAAG;;AAiF1D,wBAAsD"}
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { JsonEditorConfiguration } from '.';
2
3
  export default function (id: string, setCanSave?: (canSave: boolean) => void, onChange?: (data?: any) => void, onError?: (error: string) => void): {
3
4
  save: (original: any) => Promise<void>;
4
5
  init: (div: HTMLDivElement) => void;
6
+ destroy: () => void;
5
7
  previewMode: () => Promise<void>;
6
8
  editMode: () => Promise<void>;
7
9
  counter: number;
@@ -9,5 +11,7 @@ export default function (id: string, setCanSave?: (canSave: boolean) => void, on
9
11
  hasErrors: boolean;
10
12
  setCounter: React.Dispatch<React.SetStateAction<number>>;
11
13
  setData: (data: any) => void;
14
+ curData: any;
15
+ configuration: JsonEditorConfiguration;
12
16
  };
13
17
  //# sourceMappingURL=useJsonEditorData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useJsonEditorData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/useJsonEditorData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAUzD,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;qBA2ChH,GAAG;gBA1Bd,cAAc;;;;;;;oBAoBV,GAAG;EA6D3B"}
1
+ {"version":3,"file":"useJsonEditorData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/JsonEditor/useJsonEditorData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AAS5C,MAAM,CAAC,OAAO,WAAW,EAAE,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;qBAgDhH,GAAG;gBA/Bd,cAAc;;;;;;;;oBAyBV,GAAG;;;EAgE3B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "26.13.0-beta.14",
3
+ "version": "26.13.0-beta.16",
4
4
  "description": "Ant Design backoffice shell (configuration modules), the Diva Data Engine component hosting the IDM and enricher editors, and the Produkt Onboarding component hosting the Assortment Manager.",
5
5
  "license": "COMMERCIAL",
6
6
  "devDependencies": {
@@ -16,16 +16,16 @@
16
16
  "dependencies": {
17
17
  "@ant-design/icons": "6.3.4",
18
18
  "@babel/runtime": "7.24.7",
19
- "@crystaldesign/classification": "26.13.0-beta.14",
20
- "@crystaldesign/content-box": "26.13.0-beta.14",
21
- "@crystaldesign/content-item": "26.13.0-beta.14",
22
- "@crystaldesign/diva-agent": "26.13.0-beta.14",
23
- "@crystaldesign/diva-core": "26.13.0-beta.14",
24
- "@crystaldesign/diva-utils": "26.13.0-beta.14",
25
- "@crystaldesign/mass-configurator": "26.13.0-beta.14",
26
- "@crystaldesign/media-upload": "26.13.0-beta.14",
27
- "@crystaldesign/rtf-editor": "26.13.0-beta.14",
28
- "@crystaldesign/spreadsheet": "26.13.0-beta.14",
19
+ "@crystaldesign/classification": "26.13.0-beta.16",
20
+ "@crystaldesign/content-box": "26.13.0-beta.16",
21
+ "@crystaldesign/content-item": "26.13.0-beta.16",
22
+ "@crystaldesign/diva-agent": "26.13.0-beta.16",
23
+ "@crystaldesign/diva-core": "26.13.0-beta.16",
24
+ "@crystaldesign/diva-utils": "26.13.0-beta.16",
25
+ "@crystaldesign/mass-configurator": "26.13.0-beta.16",
26
+ "@crystaldesign/media-upload": "26.13.0-beta.16",
27
+ "@crystaldesign/rtf-editor": "26.13.0-beta.16",
28
+ "@crystaldesign/spreadsheet": "26.13.0-beta.16",
29
29
  "@dnd-kit/core": "^6.1.0",
30
30
  "@dnd-kit/sortable": "^8.0.0",
31
31
  "@dnd-kit/utilities": "^3.2.2",
@@ -59,5 +59,9 @@
59
59
  },
60
60
  "module": "build/esm/index.js",
61
61
  "types": "./build/types/backoffice/src/index.d.ts",
62
- "gitHead": "c60c01f6c0e8f63ca885815d363121c293bbc27e"
62
+ "jest-junit": {
63
+ "suiteName": "diva-backoffice",
64
+ "outputDirectory": "./test-reports"
65
+ },
66
+ "gitHead": "72f48114c826c81e308a04a1ac0fdc82b1be900b"
63
67
  }
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import type { ExpandedComponentProps } from '@crystaldesign/spreadsheet';
3
- import { type PropertyEncoding } from '@crystaldesign/web-planner-logic';
4
- import 'jsoneditor/dist/jsoneditor.css';
5
- /**
6
- * Props of the expanded property editor: the grid's own expanded-cell contract plus what this editor needs
7
- * to store the value in the encoding the property's parser reads back.
8
- */
9
- export interface PropertyValueExpandedEditorProps extends ExpandedComponentProps<unknown> {
10
- /** How this property's string is read - decides the control and what counts as invalid. */
11
- encoding?: PropertyEncoding;
12
- /** One line telling the user the exact format, shown above the editor. */
13
- formatHint?: string;
14
- }
15
- export default function PropertyValueExpandedEditor({ value, onValueChange, onClose, encoding, formatHint, }: PropertyValueExpandedEditorProps): React.JSX.Element;
16
- //# sourceMappingURL=PropertyValueExpandedEditor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PropertyValueExpandedEditor.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAkE,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGzI,OAAO,gCAAgC,CAAC;AAwCxC;;;GAGG;AACH,MAAM,WAAW,gCAAiC,SAAQ,sBAAsB,CAAC,OAAO,CAAC;IACvF,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,KAAK,EACL,aAAa,EACb,OAAO,EACP,QAAmB,EACnB,UAAU,GACX,EAAE,gCAAgC,qBAwGlC"}
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
3
- /**
4
- * The enrichment views a property can be offered on - the PropertyEntityType names the enricher service filters the
5
- * "add property" picker by. A definition naming NONE is offered on all of them, which is what every definition
6
- * written before this field looks like.
7
- */
8
- export declare const ENTITY_TYPES: {
9
- value: string;
10
- label: string;
11
- fallback: string;
12
- }[];
13
- interface Props {
14
- /**
15
- * Maintain the GLOBAL definitions (no organization) instead of the current organization's ones. The backend scopes
16
- * by the presence of the organizationId query parameter, so the global variant simply omits it.
17
- */
18
- global?: boolean;
19
- }
20
- declare const PropertyDefinitions: React.ForwardRefExoticComponent<Props & React.RefAttributes<SpreadsheetRefProps>>;
21
- export default PropertyDefinitions;
22
- //# sourceMappingURL=PropertyDefinitions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PropertyDefinitions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,YAAY;;;;GAKxB,CAAC;AAEF,UAAU,KAAK;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,QAAA,MAAM,mBAAmB,mFAwIvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export default function IDMPropertyDefinitionsEditor(): React.JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMPropertyDefinitionsEditor/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,OAAO,UAAU,4BAA4B,sBAMnD"}
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- open: boolean;
4
- onClose: () => void;
5
- /** Called when at least one definition was copied into the organization, so the caller can refresh its grid. */
6
- onAdopted: () => void;
7
- }
8
- /**
9
- * Lets the user pick GLOBAL property definitions and copy the marked ones into the current organization. Definitions
10
- * whose key already exists in the organization cannot be selected - adoption is a snapshot copy and the key is unique
11
- * per organization.
12
- */
13
- export default function AdoptGlobalModal({ open, onClose, onAdopted }: Props): React.JSX.Element;
14
- export {};
15
- //# sourceMappingURL=AdoptGlobalModal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AdoptGlobalModal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAsBnD,UAAU,KAAK;IACb,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gHAAgH;IAChH,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,KAAK,qBA+L3E"}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export default function (): React.JSX.Element;
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAWhD,MAAM,CAAC,OAAO,gCAyBb"}