@crystaldesign/diva-backoffice 26.12.0-beta.11 → 26.12.0-beta.13

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 (122) hide show
  1. package/build/esm/index.js +47485 -41205
  2. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/index.d.ts +11 -0
  3. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/index.d.ts.map +1 -0
  4. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/plannerSemantics.d.ts +21 -0
  5. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/plannerSemantics.d.ts.map +1 -0
  6. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/primitives.d.ts +47 -0
  7. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/primitives.d.ts.map +1 -0
  8. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/recipes.d.ts +21 -0
  9. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/recipes.d.ts.map +1 -0
  10. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/render.d.ts +40 -0
  11. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/render.d.ts.map +1 -0
  12. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/style.d.ts +147 -0
  13. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/style.d.ts.map +1 -0
  14. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/templates.d.ts +20 -0
  15. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/templates.d.ts.map +1 -0
  16. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/types.d.ts +129 -0
  17. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/types.d.ts.map +1 -0
  18. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/backofficeToolset.d.ts.map +1 -1
  19. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts +4 -0
  20. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts.map +1 -1
  21. package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
  22. package/build/types/backoffice/src/store/GridRegistry.d.ts +21 -1
  23. package/build/types/backoffice/src/store/GridRegistry.d.ts.map +1 -1
  24. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.d.ts +2 -0
  25. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.d.ts.map +1 -0
  26. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.d.ts +2 -0
  27. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.d.ts.map +1 -0
  28. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsReceipt.test.d.ts +2 -0
  29. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsReceipt.test.d.ts.map +1 -0
  30. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.d.ts +2 -0
  31. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.d.ts.map +1 -0
  32. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.d.ts +2 -0
  33. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.d.ts.map +1 -0
  34. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.d.ts +2 -0
  35. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.d.ts.map +1 -0
  36. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.d.ts +2 -0
  37. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.d.ts.map +1 -0
  38. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.d.ts +2 -0
  39. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.d.ts.map +1 -0
  40. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.d.ts +2 -0
  41. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.d.ts.map +1 -0
  42. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.d.ts +2 -0
  43. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.d.ts.map +1 -0
  44. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.d.ts +2 -0
  45. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.d.ts.map +1 -0
  46. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +19 -3
  47. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -1
  48. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/partlistposActions.test.d.ts +2 -0
  49. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/partlistposActions.test.d.ts.map +1 -0
  50. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/recordIdAsRowId.test.d.ts +2 -0
  51. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/recordIdAsRowId.test.d.ts.map +1 -0
  52. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.d.ts +2 -0
  53. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.d.ts.map +1 -0
  54. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/subtableParentBinding.test.d.ts +2 -0
  55. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/subtableParentBinding.test.d.ts.map +1 -0
  56. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.d.ts +2 -0
  57. package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.d.ts.map +1 -0
  58. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.d.ts +2 -0
  59. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.d.ts.map +1 -0
  60. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.d.ts +2 -0
  61. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.d.ts.map +1 -0
  62. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.d.ts +2 -0
  63. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.d.ts.map +1 -0
  64. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts +2 -0
  65. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts.map +1 -0
  66. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.d.ts +2 -0
  67. package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.d.ts.map +1 -0
  68. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts +3 -1
  69. package/build/types/backoffice/src/ui/CommonComponents/SpreadsheetWrapper/index.d.ts.map +1 -1
  70. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts +3 -0
  71. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/CatalogVersions.d.ts.map +1 -1
  72. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts +16 -0
  73. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts.map +1 -0
  74. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts +3 -0
  75. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.d.ts.map +1 -1
  76. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts +3 -0
  77. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/Items.d.ts.map +1 -1
  78. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +5 -2
  79. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
  80. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.d.ts +7 -1
  81. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.d.ts.map +1 -1
  82. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.d.ts +4 -1
  83. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.d.ts.map +1 -1
  84. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +5 -2
  85. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
  86. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts +5 -2
  87. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
  88. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts +5 -2
  89. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
  90. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts +59 -0
  91. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts.map +1 -0
  92. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/partlistPosColumns.d.ts +66 -0
  93. package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/partlistPosColumns.d.ts.map +1 -0
  94. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts +13 -0
  95. package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts.map +1 -0
  96. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogRows.d.ts +24 -0
  97. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogRows.d.ts.map +1 -0
  98. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.d.ts +8 -0
  99. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.d.ts.map +1 -0
  100. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
  101. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.d.ts +8 -0
  102. package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.d.ts.map +1 -0
  103. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts +11 -0
  104. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts.map +1 -0
  105. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts +11 -0
  106. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts.map +1 -0
  107. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableCatalogs/index.d.ts.map +1 -1
  108. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
  109. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableFeatureClasses/index.d.ts.map +1 -1
  110. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
  111. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableOptionGroups/index.d.ts.map +1 -1
  112. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
  113. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
  114. package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableSeries/index.d.ts.map +1 -1
  115. package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts.map +1 -1
  116. package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts +4 -1
  117. package/build/types/backoffice/src/ui/IDMCollectionEditor/Tables/CollectionMembers.d.ts.map +1 -1
  118. package/build/types/backoffice/src/ui/IDMCollectionEditor/modules/TableCollections/index.d.ts.map +1 -1
  119. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts +4 -1
  120. package/build/types/backoffice/src/ui/IDMEnricherEditor/Tables/Prices/index.d.ts.map +1 -1
  121. package/build/types/backoffice/src/ui/IDMEnricherEditor/modules/TablePriceList/index.d.ts.map +1 -1
  122. package/package.json +10 -10
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addRowsRowRule.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=addRowsTsv.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addRowsTsv.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=articleSvgMatrix.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"articleSvgMatrix.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=articleSvgPlannerIntegration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"articleSvgPlannerIntegration.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=articleSvgStyle.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"articleSvgStyle.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=articleSvgTemplates.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"articleSvgTemplates.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dryRunNeverWrites.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dryRunNeverWrites.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=failedReceipt.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"failedReceipt.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.ts"],"names":[],"mappings":""}
@@ -6,6 +6,7 @@
6
6
  * AG Grid api subset, the CRUD handle, the approval bar and the RootStore slices the toolset reads.
7
7
  */
8
8
  import type RootStore from '../../../../../../store/RootStore';
9
+ import type { AgentBoundParent } from '../../../../../../store/GridRegistry';
9
10
  export declare const CATALOG = "6a7482dbbc0dbae27f20eb5c";
10
11
  export declare const SERIE_ID = "6a74000000000000000000a1";
11
12
  /** Column the fake grid knows; a write to anything else is an unknown column, as in a real table. */
@@ -26,7 +27,12 @@ export interface FakeColumnDef {
26
27
  name: string;
27
28
  }[];
28
29
  multiple?: boolean;
30
+ /** Marks the rows where this column is the position COUNT — the flat combination table's `actions`. */
31
+ isPosCount?: (data: Record<string, unknown>) => boolean;
29
32
  };
33
+ headerName?: string;
34
+ /** What the column header offers, e.g. `onRemove` for a removable feature column. */
35
+ headerComponentParams?: Record<string, unknown>;
30
36
  }
31
37
  export interface FakeGridOptions {
32
38
  /** Table label the grid is registered under (default 'items'). */
@@ -41,6 +47,7 @@ export interface FakeGridOptions {
41
47
  [rowId: string]: Record<string, unknown>;
42
48
  };
43
49
  /** What the commit reports back. */
50
+ /** `createdIds` is what the server answered for created rows — the receipt reads it before it looks at the grid node. */
44
51
  commit?: {
45
52
  committed?: string[];
46
53
  failed?: {
@@ -48,6 +55,7 @@ export interface FakeGridOptions {
48
55
  errors: string[];
49
56
  }[];
50
57
  skipped?: string[];
58
+ createdIds?: Record<string, string>;
51
59
  };
52
60
  /** Serie record the catalog editor's context holds. */
53
61
  selectedSerie?: Record<string, unknown>;
@@ -69,6 +77,8 @@ export interface FakeGridOptions {
69
77
  savedBeforeDecision?: boolean;
70
78
  /** What the user answers on the approval bar; without it the changes are approved. */
71
79
  approveDecision?: boolean;
80
+ /** Runs while the approval bar is open — what the user does to the table meanwhile (a re-render, an added column). */
81
+ duringApproval?: () => void;
72
82
  /** Adds a COMPUTED column: no field of its own, stored through cellEditToRowUpdate (the accessory matrix). */
73
83
  computedColumn?: boolean;
74
84
  /** Actions the VIEW declares on this table (runTableAction hands them the input and the approval). */
@@ -97,6 +107,8 @@ export interface FakeGridOptions {
97
107
  value: string | number;
98
108
  label: string;
99
109
  }[]>;
110
+ /** Declares this grid a SUBTABLE bound to that parent row (`value` unset = bound to none), as its opening module does. */
111
+ boundParent?: AgentBoundParent;
100
112
  }
101
113
  /** The computed column's colId - a matrix cell is addressed by that, never by a field. */
102
114
  export declare const MATRIX_CELL = "10-T110.mandatoryQuantity";
@@ -108,8 +120,8 @@ export declare const ITEMS_COLUMN_DEFS: FakeColumnDef[];
108
120
  * suites assert on (`rolledBack`, `commitCalls`, the recorded stage calls). See `FakeGridOptions` for the knobs.
109
121
  */
110
122
  export declare function fakeEnvironment(options?: FakeGridOptions): {
111
- /** Runs any navigation tool against this environment. */
112
- dispatch: (name: string, input: unknown) => Promise<any>;
123
+ /** Runs any navigation tool against this environment; `signal` is the bridge's abort (its call timeout). */
124
+ dispatch: (name: string, input: unknown, signal?: AbortSignal) => Promise<any>;
113
125
  stage: (input: unknown) => Promise<any>;
114
126
  staged: {
115
127
  rowId: string;
@@ -118,6 +130,7 @@ export declare function fakeEnvironment(options?: FakeGridOptions): {
118
130
  removed: string[][];
119
131
  added: Record<string, unknown>[];
120
132
  rolledBack: () => number;
133
+ lookupFetches: () => number;
121
134
  commitCalls: () => number;
122
135
  refreshed: () => number;
123
136
  headerAdds: {
@@ -126,6 +139,8 @@ export declare function fakeEnvironment(options?: FakeGridOptions): {
126
139
  }[];
127
140
  /** The registry entry of this grid — pushed into ANOTHER environment's registry to model a second grid. */
128
141
  entry: {
142
+ requestAgentApproval: (changeCount: number, actionLabel?: string) => Promise<boolean>;
143
+ getBoundParent?: (() => AgentBoundParent | undefined) | undefined;
129
144
  id: number;
130
145
  label: string;
131
146
  gridId: string;
@@ -137,7 +152,6 @@ export declare function fakeEnvironment(options?: FakeGridOptions): {
137
152
  mutating?: boolean;
138
153
  run: (input: string) => Promise<string>;
139
154
  }[];
140
- requestAgentApproval: (changeCount: number, actionLabel?: string) => Promise<boolean>;
141
155
  };
142
156
  /** The fake store, for tests that stage what the store does between calls (toolbars, grid registration). */
143
157
  root: RootStore;
@@ -148,6 +162,8 @@ export declare function fakeEnvironment(options?: FakeGridOptions): {
148
162
  rows: {
149
163
  [rowId: string]: any;
150
164
  };
165
+ /** The live column list — a test removes a column from it the way a view rebuild would. */
166
+ columnDefs: FakeColumnDef[];
151
167
  };
152
168
  /** Serie 0 is the components serie the view auto-selects. */
153
169
  export declare const KOMPONENTEN: {
@@ -1 +1 @@
1
- {"version":3,"file":"fakeGridEnvironment.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,SAAS,MAAM,mCAAmC,CAAC;AAG/D,eAAO,MAAM,OAAO,6BAA6B,CAAC;AAClD,eAAO,MAAM,QAAQ,6BAA6B,CAAC;AAEnD,qGAAqG;AACrG,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACtD,yDAAyD;IACzD,IAAI,CAAC,EAAE,O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;mBAC1E,OAAO;;eAzRN,MAAM;eAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;eASlC,MAAM;aAAO,MAAM;;IA4R5C,2GAA2G;;;;;;;;kBArU3F,MAAM;yBAAe,MAAM;uBAAa,OAAO;iBAAO,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC;;4CAmS9D,MAAM,gBAAgB,MAAM;;IAoCtE,4GAA4G;;;qBA1R1E,MAAM;sBAAgB,MAAM;;;;;EA+RjE;AAED,6DAA6D;AAC7D,eAAO,MAAM,WAAW;;;;;;;CAAqF,CAAC"}
1
+ {"version":3,"file":"fakeGridEnvironment.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,SAAS,MAAM,mCAAmC,CAAC;AAE/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAE7E,eAAO,MAAM,OAAO,6BAA6B,CAAC;AAClD,eAAO,MAAM,QAAQ,6BAA6B,CAAC;AAEnD,qGAAqG;AACrG,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACtD,yDAAyD;IACzD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC,CAAC;IAC9E,gHAAgH;IAChH,YAAY,CAAC,EAAE;QACb,QAAQ,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MA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OF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,GAAE,eAAoB;IA4SzD,4GAA4G;qBAHtF,MAAM,SAAS,OAAO,WAAW,WAAW,KAA8C,OAAO,CAAC,GAAG,CAAC;mBACxG,OAAO;;eAxSN,MAAM;eAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;eASlC,MAAM;aAAO,MAAM;;IA4S5C,2GAA2G;;4CApCjE,MAAM,gBAAgB,MAAM;;;;;;;;kBAtTtD,MAAM;yBAAe,MAAM;uBAAa,OAAO;iBAAO,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC;;;IA4VxG,4GAA4G;;;qBAxS1E,MAAM;sBAAgB,MAAM;;;;;IA4S9D,2FAA2F;;EAG9F;AAED,6DAA6D;AAC7D,eAAO,MAAM,WAAW;;;;;;;CAAqF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=partlistposActions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partlistposActions.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/partlistposActions.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=recordIdAsRowId.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordIdAsRowId.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/recordIdAsRowId.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=removeColumn.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeColumn.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=subtableParentBinding.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subtableParentBinding.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/subtableParentBinding.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=writeRowLimit.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeRowLimit.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=optionCombinationColumns.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optionCombinationColumns.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=partlistPosColumns.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partlistPosColumns.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import '@testing-library/jest-dom';
2
+ //# sourceMappingURL=SvgGeneratorTool.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SvgGeneratorTool.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.tsx"],"names":[],"mappings":"AAMA,OAAO,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useCatalogRows.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCatalogRows.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=useCatalogRowsJwt.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCatalogRowsJwt.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { Configuration, SpreadsheetProps, SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
2
- import type { AgentGridAction } from '../../../store/GridRegistry';
2
+ import type { AgentBoundParent, AgentGridAction } from '../../../store/GridRegistry';
3
3
  import React from 'react';
4
4
  /** Spreadsheet configuration plus the agent-addressing fields consumed only by this wrapper's grid registry. */
5
5
  export type AgentGridConfiguration<TData = any> = Configuration<TData> & {
@@ -14,6 +14,8 @@ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponen
14
14
  configuration: AgentGridConfiguration;
15
15
  /** Set when this grid lives inside a right-toolbar tool (see GridEntry.toolbarToolId). */
16
16
  toolbarToolId?: string;
17
+ /** Set on a SUBTABLE: the parent row its endpoint is scoped by (see GridEntry.getBoundParent). */
18
+ agentBoundParent?: AgentBoundParent;
17
19
  } & React.RefAttributes<SpreadsheetRefProps>, "ref"> & React.RefAttributes<SpreadsheetRefProps>>>;
18
20
  export default _default;
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAe,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE/G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,gHAAgH;AAEhH,MAAM,MAAM,sBAAsB,CAAC,KAAK,GAAG,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,GAAG;IACvE,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wGAAwG;IACxG,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;;mBAGe,sBAAsB;IACrC,0FAA0F;oBAC1E,MAAM;;AA0HxB,wBAA4C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/CommonComponents/SpreadsheetWrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAe,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAE/G,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,gHAAgH;AAEhH,MAAM,MAAM,sBAAsB,CAAC,KAAK,GAAG,GAAG,IAAI,aAAa,CAAC,KAAK,CAAC,GAAG;IACvE,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iGAAiG;IACjG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wGAAwG;IACxG,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;CAClC,CAAC;;mBAGe,sBAAsB;IACrC,0FAA0F;oBAC1E,MAAM;IACtB,kGAAkG;uBAC/E,gBAAgB;;AA+HrC,wBAA4C"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
2
3
  import { ApiConfig } from '@crystaldesign/diva-core';
3
4
  import { SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
4
5
  export type SetSelectedCatalogFn = (catalogId: string, modules: string[], path: string, replace?: boolean) => void;
@@ -20,6 +21,8 @@ declare const Catalogs: React.ForwardRefExoticComponent<{
20
21
  onActualChange?: () => void;
21
22
  /** When changed, this grid refreshes (used to sync refresh from the other table) */
22
23
  refreshTrigger?: number;
24
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
25
+ agentBoundParent?: AgentBoundParent;
23
26
  } & React.RefAttributes<SpreadsheetRefProps>>;
24
27
  export default Catalogs;
25
28
  //# sourceMappingURL=CatalogVersions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAYlG,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;6CA63BzB,CAAC;AAEH,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CatalogVersions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/CatalogVersions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAiB,mBAAmB,EAAoB,MAAM,4BAA4B,CAAC;AAYlG,MAAM,MAAM,oBAAoB,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;AAEnH,MAAM,MAAM,UAAU,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEhI,QAAA,MAAM,QAAQ;oBAGM,MAAM;eACX,SAAS;aACX,UAAU;eACR,OAAO;yBACG,oBAAoB;IACzC,mEAAmE;qBAClD,MAAM,IAAI;IAC3B,oFAAoF;qBACnE,MAAM;IACvB,iFAAiF;uBAC9D,gBAAgB;6CAi4BrC,CAAC;AAEH,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { CustomCellRendererProps } from 'ag-grid-react';
3
+ import { DivaContext } from '@crystaldesign/spreadsheet';
4
+ export interface DecisionParts {
5
+ /** The decision's text; cut short with an ellipsis when the cell is too narrow. */
6
+ text: string;
7
+ /** Its number and type in brackets; always visible. */
8
+ tag: string;
9
+ }
10
+ export interface DecisionCellRendererProps extends CustomCellRendererProps<unknown, unknown, DivaContext> {
11
+ /** Splits the row's decision (by its decisionNo) into the text and the tag, in the UI language. */
12
+ decisionParts: (decisionNo: unknown, language: string) => DecisionParts;
13
+ }
14
+ /** The decision of a row: its text, cut short when the cell is narrow, and its number and type, which stay visible. */
15
+ export default function DecisionCellRenderer({ value, decisionParts, context }: DecisionCellRendererProps): React.JSX.Element | null;
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,MAAM,WAAW,aAAa;IAC5B,mFAAmF;IACnF,IAAI,EAAE,MAAM,CAAC;IACb,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,yBAA0B,SAAQ,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC;IACvG,mGAAmG;IACnG,aAAa,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,aAAa,CAAC;CACzE;AAED,uHAAuH;AACvH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,yBAAyB,4BASxG"}
@@ -2,12 +2,15 @@ import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
3
  import { DivaSpreadsheetHooks, SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
4
4
  import { CatalogData } from '../types';
5
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
5
6
  declare const FeaturesWithFeatureClass: React.ForwardRefExoticComponent<{
6
7
  organizationId: string;
7
8
  selectedCatalog: CatalogData;
8
9
  featureClassId: string;
9
10
  apiConfig: ApiConfig;
10
11
  hooks?: DivaSpreadsheetHooks<any>;
12
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
13
+ agentBoundParent?: AgentBoundParent;
11
14
  } & React.RefAttributes<SpreadsheetRefProps>>;
12
15
  export default FeaturesWithFeatureClass;
13
16
  //# sourceMappingURL=FeaturesWithFeatureClass.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;6CAiKnC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"FeaturesWithFeatureClass.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/FeaturesWithFeatureClass.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAiB,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,QAAA,MAAM,wBAAwB;oBAGV,MAAM;qBACL,WAAW;oBACZ,MAAM;eACX,SAAS;YACZ,oBAAoB,CAAC,GAAG,CAAC;IACjC,iFAAiF;uBAC9D,gBAAgB;6CAkKrC,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
3
  import { DivaSpreadsheetHooks, SpreadsheetRefProps } from '@crystaldesign/spreadsheet';
4
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
4
5
  import { CatalogData } from '../types';
5
6
  interface ItemsProps {
6
7
  organizationId: string;
@@ -12,6 +13,8 @@ interface ItemsProps {
12
13
  serieRunActive?: boolean;
13
14
  /** Bumped by the owner whenever something outside this component changed the items' classification (e.g. a serie run just settled) - included in the grid's key so it remounts and refetches instead of showing stale rows. */
14
15
  refreshToken?: string | number;
16
+ /** Set by the module that opens this table as a subtable: the parent row it is bound to. */
17
+ agentBoundParent?: AgentBoundParent;
15
18
  }
16
19
  declare const Items: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<ItemsProps & React.RefAttributes<SpreadsheetRefProps>, "ref"> & React.RefAttributes<SpreadsheetRefProps>>>;
17
20
  export default Items;
@@ -1 +1 @@
1
- {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAA4C,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjI,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAwBvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,sLAAsL;IACtL,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+NAA+N;IAC/N,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AA+oBD,QAAA,MAAM,KAAK,2KAAuB,CAAC;AAEnC,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Items.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/Items.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAGxE,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAA4C,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAwBvC,UAAU,UAAU;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,sLAAsL;IACtL,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+NAA+N;IAC/N,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAgpBD,QAAA,MAAM,KAAK,2KAAuB,CAAC;AAEnC,eAAe,KAAK,CAAC"}
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- export default function OptionCombinations({ decision, catalogId, defaultLanguage, apiConfig, setNodeDataValue, }: {
3
+ import type { AgentBoundParent } from '../../../../store/GridRegistry';
4
+ export default function OptionCombinations({ decision, catalogId, defaultLanguage, apiConfig, setNodeDataValue, agentBoundParent, }: {
4
5
  decision: any;
5
6
  catalogId: string;
6
7
  defaultLanguage?: string;
7
8
  apiConfig: ApiConfig;
8
- setNodeDataValue: (data: Record<string, any>) => void;
9
+ setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
10
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
11
+ agentBoundParent?: AgentBoundParent;
9
12
  }): React.JSX.Element;
10
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AASrE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CACvD,qBA0MA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAOrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,QAAQ,EACR,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,EAAE;IACD,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBA4NA"}
@@ -53,7 +53,7 @@ export type ParsedOptionsSetRef = {
53
53
  refLevel?: number;
54
54
  };
55
55
  /** Stable codes from `parseOptionsSetRefString` when `ok` is false — use for i18n keys under `optionsSetRef.parseError`. */
56
- export type ParseFailureReason = 'empty' | 'invalid_operator' | 'invalid_feature_ref_op' | 'invalid_measure_value' | 'invalid_measure_interval' | 'invalid_option_interval' | 'option_key_must_not_contain_pipe';
56
+ export type ParseFailureReason = 'empty' | 'invalid_operator' | 'invalid_feature_ref_op' | 'invalid_measure_value' | 'invalid_measure_interval' | 'invalid_option_interval' | 'option_key_must_not_contain_pipe' | 'invalid_ref_level';
57
57
  export type ParseResult = {
58
58
  ok: true;
59
59
  value: ParsedOptionsSetRef;
@@ -63,4 +63,10 @@ export type ParseResult = {
63
63
  };
64
64
  export declare function parseOptionsSetRefString(contentOSR: string | null | undefined): ParseResult;
65
65
  export declare function serializeOptionsSetRef(model: ParsedOptionsSetRef): string;
66
+ /**
67
+ * One feature's condition as the expression a rule reads like: `Farbe = ROT`, `(Farbe = ROT OR Farbe = BLAU)`,
68
+ * `(Farbe ≠ ROT AND Farbe ≠ BLAU)`, `Breite ≥ 120`, `Breite IN [100..200]`. The referenced article's level stays on
69
+ * the feature as the cell writes it (`Farbe§2`). A cell the codec cannot parse keeps its stored text.
70
+ */
71
+ export declare function describeOptionsSetRef(feature: string, contentOSR: string): string;
66
72
  //# sourceMappingURL=optionsSetRefCodec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"optionsSetRefCodec.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GA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MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/G,4HAA4H;AAC5H,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,kBAAkB,GAClB,wBAAwB,GACxB,uBAAuB,GACvB,0BAA0B,GAC1B,yBAAyB,GACzB,kCAAkC,GAClC,mBAAmB,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,mBAAmB,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,kBAAkB,CAAA;CAAE,CAAC;AAgD/G,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CA4H3F;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAoCzE;AAOD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CA+BjF"}
@@ -1,10 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
3
  import { CatalogData } from '../types';
4
- export default function Items({ organizationId, selectedCatalog, apiConfig, selectedOptionGroup, }: {
4
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
5
+ export default function Items({ organizationId, selectedCatalog, apiConfig, selectedOptionGroup, agentBoundParent, }: {
5
6
  organizationId: string;
6
7
  selectedCatalog: CatalogData;
7
8
  selectedOptionGroup: string;
8
9
  apiConfig: ApiConfig;
10
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
11
+ agentBoundParent?: AgentBoundParent;
9
12
  }): React.JSX.Element;
10
13
  //# sourceMappingURL=OptionGroupOptions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OptionGroupOptions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,mBAAmB,GACpB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,SAAS,CAAC;CACtB,qBAkEA"}
1
+ {"version":3,"file":"OptionGroupOptions.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/OptionGroupOptions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,cAAc,EACd,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,gBAAgB,GACjB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,WAAW,CAAC;IAC7B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,SAAS,CAAC;IACrB,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAwEA"}
@@ -1,16 +1,19 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
3
  import { DivaSpreadsheetHooks } from '@crystaldesign/spreadsheet';
4
- export default function PartlistPos({ organizationId, catalog, partlist, apiConfig, hooks, setNodeDataValue, onPartlistPosExcelImportComplete, spreadsheetRemountNonce, }: {
4
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
5
+ export default function PartlistPos({ organizationId, catalog, partlist, apiConfig, hooks, setNodeDataValue, onPartlistPosExcelImportComplete, spreadsheetRemountNonce, agentBoundParent, }: {
5
6
  organizationId: string;
6
7
  catalog: any;
7
8
  partlist: any;
8
9
  apiConfig: ApiConfig;
9
10
  hooks?: DivaSpreadsheetHooks<any>;
10
- setNodeDataValue: (data: Record<string, any>) => void;
11
+ setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
11
12
  /** Refreshes partlists, reloads the partlist from the API (featureRefs etc.), remounts the PartlistPos grid. */
12
13
  onPartlistPosExcelImportComplete?: () => void | Promise<void>;
13
14
  /** Changing this value remounts the partlistpos Spreadsheet (e.g. after Excel import). */
14
15
  spreadsheetRemountNonce?: number;
16
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
17
+ agentBoundParent?: AgentBoundParent;
15
18
  }): React.JSX.Element;
16
19
  //# sourceMappingURL=PartlistPos.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PartlistPos.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PartlistPos.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAqC,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAmD,MAAM,4BAA4B,CAAC;AAgBnH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,GAC5B,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBA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B,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAgNA"}
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- export default function PriceFeatureGroupFinishes({ priceFeatureGroup, catalogId, defaultLanguage, apiConfig, setNodeDataValue, setIsPercentage, }: {
3
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
4
+ export default function PriceFeatureGroupFinishes({ priceFeatureGroup, catalogId, defaultLanguage, apiConfig, setNodeDataValue, setIsPercentage, agentBoundParent, }: {
4
5
  priceFeatureGroup: any;
5
6
  catalogId: string;
6
7
  defaultLanguage?: string;
7
8
  apiConfig: ApiConfig;
8
- setNodeDataValue: (data: Record<string, any>) => void;
9
+ setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
9
10
  setIsPercentage: (isPercentage?: boolean) => void;
11
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
12
+ agentBoundParent?: AgentBoundParent;
10
13
  }): React.JSX.Element;
11
14
  //# sourceMappingURL=PriceFeatureGroupFinishes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAOrE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAyNA"}
1
+ {"version":3,"file":"PriceFeatureGroupFinishes.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBA6NA"}
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  import { ApiConfig } from '@crystaldesign/diva-core';
3
- export default function PriceFeatureGroupPercentageSurcharge({ priceFeatureGroup, catalogId, defaultLanguage, apiConfig, setNodeDataValue, setIsPercentage, }: {
3
+ import type { AgentBoundParent } from '../../../store/GridRegistry';
4
+ export default function PriceFeatureGroupPercentageSurcharge({ priceFeatureGroup, catalogId, defaultLanguage, apiConfig, setNodeDataValue, setIsPercentage, agentBoundParent, }: {
4
5
  priceFeatureGroup: any;
5
6
  catalogId: string;
6
7
  defaultLanguage?: string;
7
8
  apiConfig: ApiConfig;
8
- setNodeDataValue: (data: Record<string, any>) => void;
9
+ setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
9
10
  setIsPercentage: (isPercentage?: boolean) => void;
11
+ /** Set by the module that opens this subtable: the parent row it is bound to. */
12
+ agentBoundParent?: AgentBoundParent;
10
13
  }): React.JSX.Element;
11
14
  //# sourceMappingURL=PriceFeatureGroupPercentageSurcharge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAOrE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,GAChB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACtD,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CACnD,qBAsNA"}
1
+ {"version":3,"file":"PriceFeatureGroupPercentageSurcharge.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAkB,MAAM,0BAA0B,CAAC;AAMrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,oCAAoC,CAAC,EAC3D,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,EAAE;IACD,iBAAiB,EAAE,GAAG,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,eAAe,EAAE,CAAC,YAAY,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBA0NA"}