@crystaldesign/diva-backoffice 26.13.0-beta.15 → 26.13.0-beta.17

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 (83) hide show
  1. package/build/esm/index.js +3152 -2157
  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/navigationToolset.d.ts.map +1 -1
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts +8 -2
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/index.d.ts.map +1 -1
  9. package/build/types/backoffice/src/layout/Toolbar/Tools/WYSIWYG_ContentItem/useWysiwygContentItem.d.ts.map +1 -1
  10. package/build/types/backoffice/src/layout/Toolbar/index.d.ts.map +1 -1
  11. package/build/types/backoffice/src/store/DetailStore.d.ts +29 -2
  12. package/build/types/backoffice/src/store/DetailStore.d.ts.map +1 -1
  13. package/build/types/backoffice/src/store/ToolBarStore.d.ts +25 -1
  14. package/build/types/backoffice/src/store/ToolBarStore.d.ts.map +1 -1
  15. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +2 -0
  16. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -1
  17. package/build/types/backoffice/src/tests/unit/store/DetailStore.replaceRightDetail.test.d.ts +2 -0
  18. package/build/types/backoffice/src/tests/unit/store/DetailStore.replaceRightDetail.test.d.ts.map +1 -0
  19. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.borrowTools.test.d.ts +2 -0
  20. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.borrowTools.test.d.ts.map +1 -0
  21. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.order.test.d.ts +2 -0
  22. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.order.test.d.ts.map +1 -0
  23. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.previewSettings.test.d.ts +2 -0
  24. package/build/types/backoffice/src/tests/unit/store/ToolBarStore.previewSettings.test.d.ts.map +1 -0
  25. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/updateConfirmationReview.test.d.ts +2 -0
  26. package/build/types/backoffice/src/tests/unit/ui/CommonComponents/updateConfirmationReview.test.d.ts.map +1 -0
  27. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts +2 -0
  28. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/inUseDeleteReview.d.ts.map +1 -1
  29. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +3 -0
  30. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  31. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts +44 -0
  32. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/updateConfirmationReview.d.ts.map +1 -0
  33. package/build/types/backoffice/src/ui/CommonComponents/useBorrowedTools.d.ts +8 -0
  34. package/build/types/backoffice/src/ui/CommonComponents/useBorrowedTools.d.ts.map +1 -0
  35. package/build/types/backoffice/src/ui/ContentItems/ContentItemPanel.d.ts +22 -0
  36. package/build/types/backoffice/src/ui/ContentItems/ContentItemPanel.d.ts.map +1 -0
  37. package/build/types/backoffice/src/ui/ContentItems/api.d.ts +18 -0
  38. package/build/types/backoffice/src/ui/ContentItems/api.d.ts.map +1 -0
  39. package/build/types/backoffice/src/ui/ContentItems/editor.d.ts +21 -0
  40. package/build/types/backoffice/src/ui/ContentItems/editor.d.ts.map +1 -0
  41. package/build/types/backoffice/src/ui/ContentItems/useContentItem.d.ts +11 -0
  42. package/build/types/backoffice/src/ui/ContentItems/useContentItem.d.ts.map +1 -0
  43. package/build/types/backoffice/src/ui/Form/Fields/Translation/useTranslationForm.d.ts +2 -0
  44. package/build/types/backoffice/src/ui/Form/Fields/Translation/useTranslationForm.d.ts.map +1 -1
  45. package/build/types/backoffice/src/ui/Form/index.d.ts +4 -0
  46. package/build/types/backoffice/src/ui/Form/index.d.ts.map +1 -1
  47. package/build/types/backoffice/src/ui/Form/useFormData.d.ts +3 -1
  48. package/build/types/backoffice/src/ui/Form/useFormData.d.ts.map +1 -1
  49. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.d.ts +13 -0
  50. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/MismatchedValueCell.d.ts.map +1 -0
  51. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.d.ts +10 -0
  52. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyInfo.d.ts.map +1 -0
  53. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts +27 -0
  54. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyListPanel.d.ts.map +1 -0
  55. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.d.ts +9 -0
  56. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/RemovePropertyButton.d.ts.map +1 -0
  57. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/index.d.ts.map +1 -1
  58. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts +13 -20
  59. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/propertyColumn.d.ts.map +1 -1
  60. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.d.ts +14 -0
  61. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/usePropertyInfoDrawer.d.ts.map +1 -0
  62. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts +20 -0
  63. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts.map +1 -0
  64. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.d.ts +16 -0
  65. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/Tables/globalContentItem.d.ts.map +1 -0
  66. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.d.ts +11 -0
  67. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/PropertyContentItemPanel.d.ts.map +1 -0
  68. package/build/types/backoffice/src/ui/IDMGlobalPropertyDefinitionsEditor/modules/TableGlobalPropertyDefinitions/index.d.ts.map +1 -1
  69. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts +5 -0
  70. package/build/types/backoffice/src/ui/JsonEditor/index.d.ts.map +1 -1
  71. package/build/types/backoffice/src/ui/JsonEditor/useJsonEditorData.d.ts +4 -0
  72. package/build/types/backoffice/src/ui/JsonEditor/useJsonEditorData.d.ts.map +1 -1
  73. package/package.json +12 -12
  74. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts +0 -16
  75. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TableEnrichment/PropertyValueExpandedEditor.d.ts.map +0 -1
  76. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts +0 -22
  77. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/Tables/PropertyDefinitions.d.ts.map +0 -1
  78. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts +0 -3
  79. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/index.d.ts.map +0 -1
  80. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.d.ts +0 -15
  81. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/AdoptGlobalModal.d.ts.map +0 -1
  82. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts +0 -3
  83. package/build/types/backoffice/src/ui/IDMPropertyDefinitionsEditor/modules/TablePropertyDefinitions/index.d.ts.map +0 -1
@@ -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.15",
3
+ "version": "26.13.0-beta.17",
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.15",
20
- "@crystaldesign/content-box": "26.13.0-beta.15",
21
- "@crystaldesign/content-item": "26.13.0-beta.15",
22
- "@crystaldesign/diva-agent": "26.13.0-beta.15",
23
- "@crystaldesign/diva-core": "26.13.0-beta.15",
24
- "@crystaldesign/diva-utils": "26.13.0-beta.15",
25
- "@crystaldesign/mass-configurator": "26.13.0-beta.15",
26
- "@crystaldesign/media-upload": "26.13.0-beta.15",
27
- "@crystaldesign/rtf-editor": "26.13.0-beta.15",
28
- "@crystaldesign/spreadsheet": "26.13.0-beta.15",
19
+ "@crystaldesign/classification": "26.13.0-beta.17",
20
+ "@crystaldesign/content-box": "26.13.0-beta.17",
21
+ "@crystaldesign/content-item": "26.13.0-beta.17",
22
+ "@crystaldesign/diva-agent": "26.13.0-beta.17",
23
+ "@crystaldesign/diva-core": "26.13.0-beta.17",
24
+ "@crystaldesign/diva-utils": "26.13.0-beta.17",
25
+ "@crystaldesign/mass-configurator": "26.13.0-beta.17",
26
+ "@crystaldesign/media-upload": "26.13.0-beta.17",
27
+ "@crystaldesign/rtf-editor": "26.13.0-beta.17",
28
+ "@crystaldesign/spreadsheet": "26.13.0-beta.17",
29
29
  "@dnd-kit/core": "^6.1.0",
30
30
  "@dnd-kit/sortable": "^8.0.0",
31
31
  "@dnd-kit/utilities": "^3.2.2",
@@ -63,5 +63,5 @@
63
63
  "suiteName": "diva-backoffice",
64
64
  "outputDirectory": "./test-reports"
65
65
  },
66
- "gitHead": "b7394f7129aba94788881b09d0167a74f531c299"
66
+ "gitHead": "176ab43b0f2c6d5ee0327a85c53c60a7d62981ce"
67
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"}