@crystaldesign/diva-backoffice 26.12.0-beta.12 → 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.
- package/build/esm/index.js +47452 -41603
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/index.d.ts +11 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/index.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/plannerSemantics.d.ts +21 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/plannerSemantics.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/primitives.d.ts +47 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/primitives.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/recipes.d.ts +21 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/recipes.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/render.d.ts +40 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/render.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/style.d.ts +147 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/style.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/templates.d.ts +20 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/templates.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/types.d.ts +129 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/articleSvg/types.d.ts.map +1 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts +4 -0
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/mediaToolset.d.ts.map +1 -1
- package/build/types/backoffice/src/layout/Toolbar/Tools/DivaAgent/navigationToolset.d.ts.map +1 -1
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsDryRun.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsLookupReuse.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsRowRule.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/addRowsTsv.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgMatrix.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgPlannerIntegration.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgStyle.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/articleSvgTemplates.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/dryRunNeverWrites.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/failedReceipt.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts +10 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/fakeGridEnvironment.d.ts.map +1 -1
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/layout/Toolbar/Tools/DivaAgent/writeRowLimit.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/Tables/partlistPosColumns.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/components/SvgGeneratorTool.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts.map +1 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.d.ts +2 -0
- package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts +16 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.d.ts +7 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/optionsSetRefCodec.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PartlistPos.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupPercentageSurcharge.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts +59 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/partlistPosColumns.d.ts +66 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/partlistPosColumns.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts +13 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogRows.d.ts +24 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useCatalogRows.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/useModule.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.d.ts +8 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts +11 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts.map +1 -0
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableItems/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/IDMCatalogEditor/views.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -27,7 +27,12 @@ export interface FakeColumnDef {
|
|
|
27
27
|
name: string;
|
|
28
28
|
}[];
|
|
29
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;
|
|
30
32
|
};
|
|
33
|
+
headerName?: string;
|
|
34
|
+
/** What the column header offers, e.g. `onRemove` for a removable feature column. */
|
|
35
|
+
headerComponentParams?: Record<string, unknown>;
|
|
31
36
|
}
|
|
32
37
|
export interface FakeGridOptions {
|
|
33
38
|
/** Table label the grid is registered under (default 'items'). */
|
|
@@ -72,6 +77,8 @@ export interface FakeGridOptions {
|
|
|
72
77
|
savedBeforeDecision?: boolean;
|
|
73
78
|
/** What the user answers on the approval bar; without it the changes are approved. */
|
|
74
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;
|
|
75
82
|
/** Adds a COMPUTED column: no field of its own, stored through cellEditToRowUpdate (the accessory matrix). */
|
|
76
83
|
computedColumn?: boolean;
|
|
77
84
|
/** Actions the VIEW declares on this table (runTableAction hands them the input and the approval). */
|
|
@@ -123,6 +130,7 @@ export declare function fakeEnvironment(options?: FakeGridOptions): {
|
|
|
123
130
|
removed: string[][];
|
|
124
131
|
added: Record<string, unknown>[];
|
|
125
132
|
rolledBack: () => number;
|
|
133
|
+
lookupFetches: () => number;
|
|
126
134
|
commitCalls: () => number;
|
|
127
135
|
refreshed: () => number;
|
|
128
136
|
headerAdds: {
|
|
@@ -154,6 +162,8 @@ export declare function fakeEnvironment(options?: FakeGridOptions): {
|
|
|
154
162
|
rows: {
|
|
155
163
|
[rowId: string]: any;
|
|
156
164
|
};
|
|
165
|
+
/** The live column list — a test removes a column from it the way a view rebuild would. */
|
|
166
|
+
columnDefs: FakeColumnDef[];
|
|
157
167
|
};
|
|
158
168
|
/** Serie 0 is the components serie the view auto-selects. */
|
|
159
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;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;
|
|
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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","sources":["../../../../../../../../../../src/tests/unit/layout/Toolbar/Tools/DivaAgent/removeColumn.test.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"optionCombinationColumns.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/Tables/optionCombinationColumns.test.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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"}
|
package/build/types/backoffice/src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRows.test.d.ts.map
ADDED
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"useCatalogRowsJwt.test.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/tests/unit/ui/IDMCatalogEditor/hooks/useCatalogRowsJwt.test.ts"],"names":[],"mappings":""}
|
|
@@ -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
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/DecisionCellRenderer/index.d.ts.map
ADDED
|
@@ -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"}
|
|
@@ -6,7 +6,7 @@ export default function OptionCombinations({ decision, catalogId, defaultLanguag
|
|
|
6
6
|
catalogId: string;
|
|
7
7
|
defaultLanguage?: string;
|
|
8
8
|
apiConfig: ApiConfig;
|
|
9
|
-
setNodeDataValue: (data: Record<string, any>) => void;
|
|
9
|
+
setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
|
|
10
10
|
/** Set by the module that opens this subtable: the parent row it is bound to. */
|
|
11
11
|
agentBoundParent?: AgentBoundParent;
|
|
12
12
|
}): React.JSX.Element;
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/OptionCombinations/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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.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/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"}
|
|
@@ -8,7 +8,7 @@ export default function PartlistPos({ organizationId, catalog, partlist, apiConf
|
|
|
8
8
|
partlist: any;
|
|
9
9
|
apiConfig: ApiConfig;
|
|
10
10
|
hooks?: DivaSpreadsheetHooks<any>;
|
|
11
|
-
setNodeDataValue: (data: Record<string, any>) => void;
|
|
11
|
+
setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
|
|
12
12
|
/** Refreshes partlists, reloads the partlist from the API (featureRefs etc.), remounts the PartlistPos grid. */
|
|
13
13
|
onPartlistPosExcelImportComplete?: () => void | Promise<void>;
|
|
14
14
|
/** Changing this value remounts the partlistpos Spreadsheet (e.g. after Excel import). */
|
|
@@ -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,
|
|
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,EAAsC,MAAM,4BAA4B,CAAC;AAMtG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,cAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,KAAK,EACL,gBAAgB,EAChB,gCAAgC,EAChC,uBAA2B,EAC3B,gBAAgB,GACjB,EAAE;IACD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAClC,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IACzE,gHAAgH;IAChH,gCAAgC,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,0FAA0F;IAC1F,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,qBAgNA"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export default function PriceFeatureGroupFinishes({ priceFeatureGroup, catalogId
|
|
|
6
6
|
catalogId: string;
|
|
7
7
|
defaultLanguage?: string;
|
|
8
8
|
apiConfig: ApiConfig;
|
|
9
|
-
setNodeDataValue: (data: Record<string, any>) => void;
|
|
9
|
+
setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
|
|
10
10
|
setIsPercentage: (isPercentage?: boolean) => void;
|
|
11
11
|
/** Set by the module that opens this subtable: the parent row it is bound to. */
|
|
12
12
|
agentBoundParent?: AgentBoundParent;
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/PriceFeatureGroupFinishes.d.ts.map
CHANGED
|
@@ -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;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,IAAI,CAAC;
|
|
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"}
|
|
@@ -6,7 +6,7 @@ export default function PriceFeatureGroupPercentageSurcharge({ priceFeatureGroup
|
|
|
6
6
|
catalogId: string;
|
|
7
7
|
defaultLanguage?: string;
|
|
8
8
|
apiConfig: ApiConfig;
|
|
9
|
-
setNodeDataValue: (data: Record<string, any>) => void;
|
|
9
|
+
setNodeDataValue: (data: Record<string, any>) => Promise<boolean> | void;
|
|
10
10
|
setIsPercentage: (isPercentage?: boolean) => void;
|
|
11
11
|
/** Set by the module that opens this subtable: the parent row it is bound to. */
|
|
12
12
|
agentBoundParent?: AgentBoundParent;
|
|
@@ -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;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,IAAI,CAAC;
|
|
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"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { DivaColDef } from '@crystaldesign/spreadsheet';
|
|
2
|
+
import { DecisionParts } from './DecisionCellRenderer';
|
|
3
|
+
/** What the combination columns need to know about the catalog they are shown in. */
|
|
4
|
+
export interface OptionCombinationColumnContext {
|
|
5
|
+
idmService: string;
|
|
6
|
+
catalog: {
|
|
7
|
+
_id: string;
|
|
8
|
+
};
|
|
9
|
+
/** Translates the messages the columns show the user, e.g. why a cell is refused. */
|
|
10
|
+
t: (key: string, options?: {
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
}) => string;
|
|
13
|
+
}
|
|
14
|
+
/** The decision fields the catalog-wide combination table needs from every decision of the catalog. */
|
|
15
|
+
export interface DecisionFeatureRefs {
|
|
16
|
+
_id: string;
|
|
17
|
+
decisionNo: number;
|
|
18
|
+
decisionType?: number;
|
|
19
|
+
decisionText?: Record<string, string>;
|
|
20
|
+
featureRefs?: string[];
|
|
21
|
+
featureRefsDisplayTexts?: Record<string, string>[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A decision as its cell shows it: the text in the UI language (else its first text) and, in brackets, its number
|
|
25
|
+
* and type — `(#12 · T2)`, the type left out when the catalog does not know the decision.
|
|
26
|
+
*/
|
|
27
|
+
export declare function decisionParts(decision: DecisionFeatureRefs | undefined, decisionNo: unknown, language: string): DecisionParts;
|
|
28
|
+
/** The decision as one string: the cell's formatted value, which the filter, the export and the agent's reads see. */
|
|
29
|
+
export declare function decisionLabel(decision: DecisionFeatureRefs | undefined, decisionNo: unknown, language: string): string;
|
|
30
|
+
/**
|
|
31
|
+
* The feature columns of the flat table: every feature any decision of the catalog references, in order of first
|
|
32
|
+
* appearance, with the header text of the first decision that names it.
|
|
33
|
+
*/
|
|
34
|
+
export declare function unionDecisionFeatureRefs(decisions: DecisionFeatureRefs[], language: string): {
|
|
35
|
+
featureRef: string;
|
|
36
|
+
headerName: string;
|
|
37
|
+
}[];
|
|
38
|
+
/**
|
|
39
|
+
* The decision of a row: a lookup over the catalog's decisions, shown as its text with the number and type in a tag
|
|
40
|
+
* that stays visible when the text is cut short, and the type itself as a hidden column — it belongs to the decision
|
|
41
|
+
* and says which columns the row may carry, so it is read with every row but never shown on its own.
|
|
42
|
+
*/
|
|
43
|
+
export declare function decisionColumns(ctx: OptionCombinationColumnContext, decisions: DecisionFeatureRefs[]): DivaColDef<any>[];
|
|
44
|
+
/**
|
|
45
|
+
* Editability of a condition cell in the flat table: only where the row's decision references the feature, so a
|
|
46
|
+
* condition cannot land in a column the decision does not have — the server refuses exactly that. A new row that has
|
|
47
|
+
* not named its decision yet stays open; the rule takes hold as soon as the decision is known.
|
|
48
|
+
*/
|
|
49
|
+
export declare function decisionConditionCellEditable(featureRef: string, decisions: DecisionFeatureRefs[]): DivaColDef<any>['editable'];
|
|
50
|
+
/**
|
|
51
|
+
* The action column of the flat table. It takes the shape the per-decision subtable gives the column per decision,
|
|
52
|
+
* here per row: a rule (type 2) holds an action list with the expanded action editor, a quantity decision (type 3)
|
|
53
|
+
* shows and takes the bare count behind its one SET_POS_COUNT_VALUE action, and a row of any other type accepts
|
|
54
|
+
* nothing. A new row that has not named its decision yet stays open.
|
|
55
|
+
*/
|
|
56
|
+
export declare function actionsColumn(ctx: OptionCombinationColumnContext, decisions: DecisionFeatureRefs[]): DivaColDef<any>;
|
|
57
|
+
/** The columns every combination row shows after its conditions and actions, from the sequence to the hidden ids. */
|
|
58
|
+
export declare function optionCombinationColumns(): DivaColDef<any>[];
|
|
59
|
+
//# sourceMappingURL=optionCombinationColumns.d.ts.map
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optionCombinationColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/optionCombinationColumns.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAA6B,EAAE,a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H;AAED;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAM/H;AAUD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,8BAA8B,EAAE,SAAS,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CA4DpH;AAED,qHAAqH;AACrH,wBAAgB,wBAAwB,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAoD5D"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { DivaColDef, DivaColGroupDef } from '@crystaldesign/spreadsheet';
|
|
2
|
+
/** Resolves a translated dictionary value (e.g. `{ DE: '...', FR: '...' }`) to a plain string for the given language, falling back to German. */
|
|
3
|
+
export declare function resolveTranslatedText(value: any, language: string): string;
|
|
4
|
+
export interface EnumEntry {
|
|
5
|
+
name: string;
|
|
6
|
+
value: number;
|
|
7
|
+
}
|
|
8
|
+
/** What the position columns need to know about the catalog they are shown in. */
|
|
9
|
+
export interface PartlistPosColumnContext {
|
|
10
|
+
idmService: string;
|
|
11
|
+
catalog: {
|
|
12
|
+
_id: string;
|
|
13
|
+
major?: number;
|
|
14
|
+
};
|
|
15
|
+
/** posInvisibility values (IDM 4 catalogs know two, IDM 3 catalogs three). */
|
|
16
|
+
visibility: EnumEntry[];
|
|
17
|
+
configurationMode: EnumEntry[];
|
|
18
|
+
}
|
|
19
|
+
/** The partlist fields the flat table needs from every partlist of the catalog. */
|
|
20
|
+
export interface PartlistFeatureRefs {
|
|
21
|
+
_id: string;
|
|
22
|
+
partlistKey: string;
|
|
23
|
+
featureRefs?: string[];
|
|
24
|
+
featureRefsDisplayTexts?: Record<string, string>[];
|
|
25
|
+
}
|
|
26
|
+
export interface ConditionColumnOptions {
|
|
27
|
+
/** Overrides the default of every cell being editable — the flat table's rows do not all carry the same features. */
|
|
28
|
+
editable?: DivaColDef<any>['editable'];
|
|
29
|
+
headerComponentParams?: Record<string, unknown>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The condition column of one feature: the cell optionsSetRefs.<featureNo> of every row. The parent it belongs to
|
|
33
|
+
* does not matter - positions and option combinations carry the same cell - so it asks only for what it reads.
|
|
34
|
+
*/
|
|
35
|
+
export declare function conditionColumn(featureRef: string, headerName: string, ctx: {
|
|
36
|
+
idmService: string;
|
|
37
|
+
catalog: {
|
|
38
|
+
_id: string;
|
|
39
|
+
};
|
|
40
|
+
}, options?: ConditionColumnOptions): DivaColDef<any>;
|
|
41
|
+
/** A feature of a flat table's condition union: its number and the header text of the first parent that names it. */
|
|
42
|
+
export interface ConditionFeature {
|
|
43
|
+
featureRef: string;
|
|
44
|
+
headerName: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The condition columns as one collapsible group: open, the column of every feature; closed, one read-only cell that
|
|
48
|
+
* reads the row's conditions as the rule they form - every feature's condition (`Farbe = ROT`, a list as OR in
|
|
49
|
+
* brackets) joined with AND, in column order - so a table with many features stays readable without losing the
|
|
50
|
+
* conditions from view.
|
|
51
|
+
*/
|
|
52
|
+
export declare function conditionColumnGroup(headerName: string, ruleHeaderName: string, features: ConditionFeature[], columns: DivaColDef<any>[]): DivaColGroupDef<any>;
|
|
53
|
+
/**
|
|
54
|
+
* The feature columns of the flat table: every feature any partlist of the catalog carries, in order of first
|
|
55
|
+
* appearance, with the header text of the first partlist that names it.
|
|
56
|
+
*/
|
|
57
|
+
export declare function unionFeatureRefs(partlists: PartlistFeatureRefs[], language: string): ConditionFeature[];
|
|
58
|
+
/**
|
|
59
|
+
* Editability of a condition cell in the flat table: only where the row's partlist carries the feature, so a value
|
|
60
|
+
* cannot land in a column the partlist does not have. The partlist is read from the row's id or its key, and a new
|
|
61
|
+
* row that has not named its partlist yet stays open — the rule takes hold as soon as the partlist is known.
|
|
62
|
+
*/
|
|
63
|
+
export declare function conditionCellEditable(featureRef: string, partlists: PartlistFeatureRefs[]): DivaColDef<any>['editable'];
|
|
64
|
+
/** The position columns both the per-partlist subtable and the catalog-wide table show, from the count action to the hidden ids. */
|
|
65
|
+
export declare function partlistPosColumns(ctx: PartlistPosColumnContext): DivaColDef<any>[];
|
|
66
|
+
//# sourceMappingURL=partlistPosColumns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partlistPosColumns.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/Tables/partlistPosColumns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAe,MAAM,4BAA4B,CAAC;AAKtF,iJAAiJ;AACjJ,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAI1E;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,kFAAkF;AAClF,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACzC,8EAA8E;IAC9E,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,iBAAiB,EAAE,SAAS,EAAE,CAAC;CAChC;AAED,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;CACpD;AAED,MAAM,WAAW,sBAAsB;IACrC,qHAAqH;IACrH,QAAQ,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,EACrD,OAAO,GAAE,sBAA2B,GACnC,UAAU,CAAC,GAAG,CAAC,CAkBjB;AAED,qHAAqH;AACrH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,gBAAgB,EAAE,EAC5B,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,GACzB,eAAe,CAAC,GAAG,CAAC,CAoCtB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,mBAAmB,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB,EAAE,CASvG;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,CAOvH;AAED,oIAAoI;AACpI,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,wBAAwB,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAqOnF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SvgGeneratorToolProps {
|
|
3
|
+
/** The item selected in the items table — target of "upload & attach". */
|
|
4
|
+
item?: {
|
|
5
|
+
typeNo?: string | number;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Playground for the parameterized article top-view SVGs: live preview with the planner's technical
|
|
10
|
+
* markers made visible, plus upload & attach to the selected item's svgs.
|
|
11
|
+
*/
|
|
12
|
+
export default function SvgGeneratorTool({ item }: SvgGeneratorToolProps): React.JSX.Element;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/components/SvgGeneratorTool/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAkBjD,MAAM,WAAW,qBAAqB;IACpC,0EAA0E;IAC1E,IAAI,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACrC;AAwCD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE,qBAAqB,qBA6cvE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface CatalogRowsContext {
|
|
2
|
+
idmService: string;
|
|
3
|
+
catalogId?: string;
|
|
4
|
+
jwt?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CatalogRows<T> {
|
|
7
|
+
/** Undefined while loading and after a failed load. */
|
|
8
|
+
rows?: T[];
|
|
9
|
+
/** Why the last load failed; cleared when the next one starts. */
|
|
10
|
+
error?: string;
|
|
11
|
+
/** Loads again, e.g. from a retry button. */
|
|
12
|
+
reload: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Loads the given fields of every `resource` of the catalog — again when the catalog or the resource changes, or on
|
|
16
|
+
* reload(). A failed load is reported as `error`, not as an empty list: the flat tables build their condition columns
|
|
17
|
+
* and cell locks from these rows, and an empty list would render a table that looks complete but is not.
|
|
18
|
+
*
|
|
19
|
+
* The JWT is read through a ref and is NOT a reason to load again: it is renewed a few minutes before it expires, and
|
|
20
|
+
* a reload would take the rows away for as long as it runs — which unmounts the table the rows configure, together
|
|
21
|
+
* with the edits staged in it and the agent approval waiting on it.
|
|
22
|
+
*/
|
|
23
|
+
export default function useCatalogRows<T>(ctx: CatalogRowsContext, resource: string, fields: string): CatalogRows<T>;
|
|
24
|
+
//# sourceMappingURL=useCatalogRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCatalogRows.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useCatalogRows.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,uDAAuD;IACvD,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAkCnH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DecisionFeatureRefs } from '../Tables/optionCombinationColumns';
|
|
2
|
+
import { CatalogRows, CatalogRowsContext } from './useCatalogRows';
|
|
3
|
+
/**
|
|
4
|
+
* Loads id, number, type, text and feature columns of every decision of the catalog. The flat combination table needs
|
|
5
|
+
* them for its decision lookup, its condition columns and the per-row shape of those columns.
|
|
6
|
+
*/
|
|
7
|
+
export default function useDecisionsOfCatalog(ctx: CatalogRowsContext): CatalogRows<DecisionFeatureRefs>;
|
|
8
|
+
//# sourceMappingURL=useDecisionsOfCatalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDecisionsOfCatalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useDecisionsOfCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAuB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEnF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,GAAG,EAAE,kBAAkB,GAAG,WAAW,CAAC,mBAAmB,CAAC,CAEvG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useModule.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/useModule.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,WAAW,cAAc,EAAE,MAAM,EAAE;;;;;;;;;;;;EAkNhD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PartlistFeatureRefs } from '../Tables/partlistPosColumns';
|
|
2
|
+
import { CatalogRows, CatalogRowsContext } from './useCatalogRows';
|
|
3
|
+
/**
|
|
4
|
+
* Loads id, key and feature columns of every partlist of the catalog. The flat position table needs them for its
|
|
5
|
+
* partlist lookup, its feature columns and the per-row editability of those columns.
|
|
6
|
+
*/
|
|
7
|
+
export default function usePartlistsOfCatalog(ctx: CatalogRowsContext): CatalogRows<PartlistFeatureRefs>;
|
|
8
|
+
//# sourceMappingURL=usePartlistsOfCatalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePartlistsOfCatalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/IDMCatalogEditor/hooks/usePartlistsOfCatalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAuB,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEnF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,GAAG,EAAE,kBAAkB,GAAG,WAAW,CAAC,mBAAmB,CAAC,CAEvG"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The option combinations of every decision of the catalog as one flat table: the decision is a column of the row
|
|
4
|
+
* instead of a selection above the table, so combinations can be filtered, read and written across decisions in one
|
|
5
|
+
* batch. Adding a feature column to a decision stays on the decisions view — here the condition columns are the union
|
|
6
|
+
* over all decisions, editable only where the row's decision references the feature.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TableAllOptionCombinations: (() => React.JSX.Element) & {
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableAllOptionCombinations/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAuB/C;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;CA6HrC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The positions of every partlist of the catalog as one flat table: the partlist is a column of the row instead of
|
|
4
|
+
* a selection above the table, so positions can be filtered, read and written across partlists in one batch. Adding
|
|
5
|
+
* a feature column to a partlist stays on the partlists view — here the feature columns are the union over all
|
|
6
|
+
* partlists, editable only where the row's partlist carries the feature.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TableAllPartlistPos: (() => React.JSX.Element) & {
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableAllPartlistPos/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAsB/C;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;CAyL9B,CAAC"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TableDecisions/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,eAAO,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableDecisions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAcvE,eAAO,MAAM,cAAc;;CAoPzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TableItems/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAgB/C;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU;;CAuGrB,CAAC"}
|
package/build/types/backoffice/src/ui/IDMCatalogEditor/modules/TablePartlists/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,eAAO,MAAM,cAAc;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePartlists/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,eAAO,MAAM,cAAc;;CAgPzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/IDMCatalogEditor/modules/TablePriceFeatureGroups/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAgBvE,eAAO,MAAM,uBAAuB;;CA6PlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/views.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/IDMCatalogEditor/views.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAiBhE,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,EAAE,aAAa,EAgInD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.12.0-beta.
|
|
3
|
+
"version": "26.12.0-beta.13",
|
|
4
4
|
"description": "Ant Design backoffice shell: configuration plus the IDM and enricher editors.",
|
|
5
5
|
"license": "COMMERCIAL",
|
|
6
6
|
"devDependencies": {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@ant-design/icons": "6.3.4",
|
|
18
18
|
"@babel/runtime": "7.24.7",
|
|
19
|
-
"@crystaldesign/content-box": "26.12.0-beta.
|
|
20
|
-
"@crystaldesign/content-item": "26.12.0-beta.
|
|
21
|
-
"@crystaldesign/diva-agent": "26.12.0-beta.
|
|
22
|
-
"@crystaldesign/diva-core": "26.12.0-beta.
|
|
23
|
-
"@crystaldesign/diva-utils": "26.12.0-beta.
|
|
24
|
-
"@crystaldesign/media-upload": "26.12.0-beta.
|
|
25
|
-
"@crystaldesign/rtf-editor": "26.12.0-beta.
|
|
26
|
-
"@crystaldesign/spreadsheet": "26.12.0-beta.
|
|
19
|
+
"@crystaldesign/content-box": "26.12.0-beta.13",
|
|
20
|
+
"@crystaldesign/content-item": "26.12.0-beta.13",
|
|
21
|
+
"@crystaldesign/diva-agent": "26.12.0-beta.13",
|
|
22
|
+
"@crystaldesign/diva-core": "26.12.0-beta.13",
|
|
23
|
+
"@crystaldesign/diva-utils": "26.12.0-beta.13",
|
|
24
|
+
"@crystaldesign/media-upload": "26.12.0-beta.13",
|
|
25
|
+
"@crystaldesign/rtf-editor": "26.12.0-beta.13",
|
|
26
|
+
"@crystaldesign/spreadsheet": "26.12.0-beta.13",
|
|
27
27
|
"@dnd-kit/core": "^6.1.0",
|
|
28
28
|
"@dnd-kit/sortable": "^8.0.0",
|
|
29
29
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
},
|
|
58
58
|
"module": "build/esm/index.js",
|
|
59
59
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "28cab84b3e9372632bc4cfd379864d3335dad06a"
|
|
61
61
|
}
|