@crystaldesign/diva-backoffice 26.12.0-beta.36 → 26.12.0-beta.37
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 +43 -22
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts +2 -1
- package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/HeaderField/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts +6 -0
- package/build/types/backoffice/src/ui/AssortmentManager/config/fields.d.ts.map +1 -1
- package/build/types/backoffice/src/ui/AssortmentManager/tests/useDropdownEnumData.test.d.ts +2 -0
- package/build/types/backoffice/src/ui/AssortmentManager/tests/useDropdownEnumData.test.d.ts.map +1 -0
- package/package.json +10 -10
package/build/esm/index.js
CHANGED
|
@@ -47006,6 +47006,12 @@ function useUnsavedChanges(dirty, texts) {
|
|
|
47006
47006
|
};
|
|
47007
47007
|
}
|
|
47008
47008
|
|
|
47009
|
+
/**
|
|
47010
|
+
* The SAP "X or blank" flag — `dropDownKey: 'X'` is not a key of the dropdownItems collection. Its
|
|
47011
|
+
* list is fixed (the single entry `X`) and served without a request, so the flag fields render as
|
|
47012
|
+
* selects everywhere: the header form and the grids.
|
|
47013
|
+
*/
|
|
47014
|
+
var FLAG_DROPDOWN_KEY = 'X';
|
|
47009
47015
|
var ASSORTMENT_MANAGER_FIELDS = [
|
|
47010
47016
|
// LOCKED
|
|
47011
47017
|
{
|
|
@@ -48357,6 +48363,12 @@ var LOG$8 = getLogger('Backoffice', 'AssortmentManager');
|
|
|
48357
48363
|
|
|
48358
48364
|
var PAGE_SIZE$1 = 100;
|
|
48359
48365
|
|
|
48366
|
+
/** The fixed list of the SAP flag ({@link FLAG_DROPDOWN_KEY}) — served without a request. */
|
|
48367
|
+
var FLAG_DROPDOWN_ITEMS = [{
|
|
48368
|
+
valueKey: 'X',
|
|
48369
|
+
value: 'X'
|
|
48370
|
+
}];
|
|
48371
|
+
|
|
48360
48372
|
// the dropdown lists are static per organization — fetch each key once per session, shared by all tabs
|
|
48361
48373
|
var listCache = new Map();
|
|
48362
48374
|
function createDropdownApiHandler(root) {
|
|
@@ -48562,7 +48574,7 @@ function _loadDropdownLists() {
|
|
|
48562
48574
|
return "".concat(root.dataStore.organizationId, ":").concat(key);
|
|
48563
48575
|
};
|
|
48564
48576
|
missing = dropdownKeys.filter(function (key) {
|
|
48565
|
-
return !listCache.has(cacheKeyOf(key));
|
|
48577
|
+
return key !== FLAG_DROPDOWN_KEY && !listCache.has(cacheKeyOf(key));
|
|
48566
48578
|
});
|
|
48567
48579
|
if (!(missing.length > 0)) {
|
|
48568
48580
|
_context5.next = 20;
|
|
@@ -48629,7 +48641,7 @@ function _loadDropdownLists() {
|
|
|
48629
48641
|
case 20:
|
|
48630
48642
|
_context5.next = 22;
|
|
48631
48643
|
return Promise.all(dropdownKeys.map(function (key) {
|
|
48632
|
-
return listCache.get(cacheKeyOf(key));
|
|
48644
|
+
return key === FLAG_DROPDOWN_KEY ? FLAG_DROPDOWN_ITEMS : listCache.get(cacheKeyOf(key));
|
|
48633
48645
|
}));
|
|
48634
48646
|
case 22:
|
|
48635
48647
|
lists = _context5.sent;
|
|
@@ -48942,9 +48954,6 @@ var Text$2 = Typography.Text;
|
|
|
48942
48954
|
var SAP_DATE_FORMAT$1 = 'YYYYMMDD';
|
|
48943
48955
|
var DISPLAY_DATE_FORMAT$1 = 'DD.MM.YYYY';
|
|
48944
48956
|
|
|
48945
|
-
/** The SAP "X or blank" flag — `dropDownKey: 'X'` is not a key of the dropdownItems collection. */
|
|
48946
|
-
var FLAG_DROPDOWN_KEY = 'X';
|
|
48947
|
-
|
|
48948
48957
|
/**
|
|
48949
48958
|
* SAP dates are stored either as `yyyyMMdd` or as an ISO string, see `SAPCustomData` in diva-pfister-article.
|
|
48950
48959
|
* Returns undefined for anything unparsable so a broken value does not crash the picker.
|
|
@@ -49801,11 +49810,13 @@ function buildItemGroupColDefs(group, enumLists, t) {
|
|
|
49801
49810
|
} : {});
|
|
49802
49811
|
var enumData = field.dropDownKey ? enumLists[field.dropDownKey] : undefined;
|
|
49803
49812
|
if (enumData && enumData.length > 0) {
|
|
49813
|
+
// the SAP flag's fixed list names the code itself — its cells and options show the bare "X"
|
|
49814
|
+
var displayLabelTemplate = field.dropDownKey === FLAG_DROPDOWN_KEY ? '${value}' : '${name} (${value})';
|
|
49804
49815
|
return _objectSpread$16(_objectSpread$16({}, base), {}, {
|
|
49805
49816
|
cellDataType: 'enum',
|
|
49806
49817
|
customParams: {
|
|
49807
49818
|
enumData: enumData,
|
|
49808
|
-
displayLabelTemplate:
|
|
49819
|
+
displayLabelTemplate: displayLabelTemplate
|
|
49809
49820
|
}
|
|
49810
49821
|
});
|
|
49811
49822
|
}
|
|
@@ -49878,11 +49889,11 @@ function ItemGroupTable(_ref) {
|
|
|
49878
49889
|
t = _useTranslation.t;
|
|
49879
49890
|
var root = useStore();
|
|
49880
49891
|
|
|
49881
|
-
// distinct dropdown lists the visible columns of this group need; the 'X' flag
|
|
49882
|
-
// (dotted) keys stay plain text, like in the header form
|
|
49892
|
+
// distinct dropdown lists the visible columns of this group need; the 'X' flag is served by the
|
|
49893
|
+
// hook, row-derived (dotted) keys stay plain text, like in the header form
|
|
49883
49894
|
var dropdownKeys = useMemo(function () {
|
|
49884
49895
|
return _toConsumableArray(new Set(group.fields.flatMap(function (field) {
|
|
49885
|
-
return (level === 'article' ? field.showOnArticle : field.showOnHeaderValues) && field.dropDownKey &&
|
|
49896
|
+
return (level === 'article' ? field.showOnArticle : field.showOnHeaderValues) && field.dropDownKey && !field.dropDownKey.includes('.') ? [field.dropDownKey] : [];
|
|
49886
49897
|
})));
|
|
49887
49898
|
}, [group, level]);
|
|
49888
49899
|
var enumLists = useDropdownEnumData(root, dropdownKeys);
|
|
@@ -51226,10 +51237,11 @@ var ARTICLE_LANGUAGES = ['de', 'fr', 'it'];
|
|
|
51226
51237
|
|
|
51227
51238
|
/**
|
|
51228
51239
|
* Distinct dropdown lists the article columns need — they become the `enumData` of the enum cells.
|
|
51229
|
-
* The 'X' flag
|
|
51240
|
+
* The 'X' flag is among them (the hook serves its fixed list); row-derived (dotted) keys stay plain
|
|
51241
|
+
* text, like on the header page.
|
|
51230
51242
|
*/
|
|
51231
51243
|
var ARTICLE_DROPDOWN_KEYS = _toConsumableArray(new Set(ASSORTMENT_MANAGER_FIELDS.flatMap(function (entry) {
|
|
51232
|
-
return entry.type !== 'ITEM_GROUP' && entry.showOnArticle && entry.dropDownKey &&
|
|
51244
|
+
return entry.type !== 'ITEM_GROUP' && entry.showOnArticle && entry.dropDownKey && !entry.dropDownKey.includes('.') ? [entry.dropDownKey] : [];
|
|
51233
51245
|
})));
|
|
51234
51246
|
|
|
51235
51247
|
/**
|
|
@@ -51284,6 +51296,14 @@ var ARTICLE_LABEL_COMPANIONS = ASSORTMENT_MANAGER_FIELDS.flatMap(function (entry
|
|
|
51284
51296
|
/** The label of a dropdown value in cells, editors and exports — the IDM shape "code - name". */
|
|
51285
51297
|
var ENUM_LABEL_TEMPLATE = '${value} - ${name}';
|
|
51286
51298
|
|
|
51299
|
+
/**
|
|
51300
|
+
* The label template of a field's list: the SAP flag has no descriptive text (its fixed list names
|
|
51301
|
+
* the code itself), so its cells and options show the bare "X" like the header form's select.
|
|
51302
|
+
*/
|
|
51303
|
+
function labelTemplateOf(field) {
|
|
51304
|
+
return field.dropDownKey === FLAG_DROPDOWN_KEY ? '${value}' : ENUM_LABEL_TEMPLATE;
|
|
51305
|
+
}
|
|
51306
|
+
|
|
51287
51307
|
/**
|
|
51288
51308
|
* Resolves what reaches an inheritable dropdown column — a pick (the code), a typed name, or a
|
|
51289
51309
|
* pasted label — to the stored code, through the spreadsheet's own enum resolution. The
|
|
@@ -51370,19 +51390,20 @@ function labelCompanionResets(oldData, data) {
|
|
|
51370
51390
|
}
|
|
51371
51391
|
|
|
51372
51392
|
/**
|
|
51373
|
-
*
|
|
51393
|
+
* Formatter of one list in the given label template (the "code - name" shape as a rule), with a
|
|
51394
|
+
* lookup Map built once per column. The spreadsheet's own
|
|
51374
51395
|
* enum formatter copies and scans the whole list on every call, and its editor formats every option
|
|
51375
51396
|
* on open — quadratic in the list size, which froze the browser on the 36k product hierarchy. The
|
|
51376
51397
|
* output mirrors that formatter exactly: arrays join with ", ", an unknown code labels as "code - code".
|
|
51377
51398
|
*/
|
|
51378
|
-
function enumLabelFormatter(enumData) {
|
|
51399
|
+
function enumLabelFormatter(enumData, template) {
|
|
51379
51400
|
var names = new Map(enumData.map(function (entry) {
|
|
51380
51401
|
return [entry.value, entry.name];
|
|
51381
51402
|
}));
|
|
51382
51403
|
var labelOf = function labelOf(value) {
|
|
51383
51404
|
var _names$get;
|
|
51384
51405
|
var code = String(value);
|
|
51385
|
-
return
|
|
51406
|
+
return template.replace('${name}', (_names$get = names.get(code)) !== null && _names$get !== void 0 ? _names$get : code).replace('${value}', code);
|
|
51386
51407
|
};
|
|
51387
51408
|
return function (value) {
|
|
51388
51409
|
return (Array.isArray(value) ? value : [value]).map(labelOf).join(', ');
|
|
@@ -51390,8 +51411,8 @@ function enumLabelFormatter(enumData) {
|
|
|
51390
51411
|
}
|
|
51391
51412
|
|
|
51392
51413
|
/** `valueFormatter` of a plain enum column — null and undefined stay blank, like the enum type's own formatter. */
|
|
51393
|
-
function enumColumnFormatter(enumData) {
|
|
51394
|
-
var label = enumLabelFormatter(enumData);
|
|
51414
|
+
function enumColumnFormatter(enumData, template) {
|
|
51415
|
+
var label = enumLabelFormatter(enumData, template);
|
|
51395
51416
|
return function (_ref5) {
|
|
51396
51417
|
var value = _ref5.value;
|
|
51397
51418
|
return value === undefined || value === null ? '' : label(value);
|
|
@@ -51403,8 +51424,8 @@ function enumColumnFormatter(enumData) {
|
|
|
51403
51424
|
* header value, else the empty string — the placeholder type's own resolution, labelled through the
|
|
51404
51425
|
* lookup formatter.
|
|
51405
51426
|
*/
|
|
51406
|
-
function placeholderEnumColumnFormatter(enumData, placeHolderField) {
|
|
51407
|
-
var label = enumLabelFormatter(enumData);
|
|
51427
|
+
function placeholderEnumColumnFormatter(enumData, placeHolderField, template) {
|
|
51428
|
+
var label = enumLabelFormatter(enumData, template);
|
|
51408
51429
|
var isSet = function isSet(candidate) {
|
|
51409
51430
|
return candidate !== undefined && candidate !== null && candidate !== '';
|
|
51410
51431
|
};
|
|
@@ -51532,9 +51553,9 @@ function plainColumn(field, t, enumLists) {
|
|
|
51532
51553
|
cellDataType: 'enum',
|
|
51533
51554
|
customParams: {
|
|
51534
51555
|
enumData: enumData,
|
|
51535
|
-
displayLabelTemplate:
|
|
51556
|
+
displayLabelTemplate: labelTemplateOf(field)
|
|
51536
51557
|
},
|
|
51537
|
-
valueFormatter: enumColumnFormatter(enumData)
|
|
51558
|
+
valueFormatter: enumColumnFormatter(enumData, labelTemplateOf(field))
|
|
51538
51559
|
} : _objectSpread$10({
|
|
51539
51560
|
cellDataType: CELL_DATA_TYPES[field.type]
|
|
51540
51561
|
}, field.type === 'string' && field.maxLength ? {
|
|
@@ -51570,7 +51591,7 @@ function inheritedColumn(field, t, enumLists) {
|
|
|
51570
51591
|
} : isNumber ? {
|
|
51571
51592
|
type: ['withPlaceholderNumber']
|
|
51572
51593
|
} : {}), enumData ? {
|
|
51573
|
-
valueFormatter: placeholderEnumColumnFormatter(enumData, placeHolderField)
|
|
51594
|
+
valueFormatter: placeholderEnumColumnFormatter(enumData, placeHolderField, labelTemplateOf(field))
|
|
51574
51595
|
} : {}), enumData ? {
|
|
51575
51596
|
valueParser: companion ? companionValueParser(enumData, colId, columnFieldOf(companion), placeHolderField) : placeholderEnumValueParser(enumData, placeHolderField)
|
|
51576
51597
|
} : {}), {}, {
|
|
@@ -51582,7 +51603,7 @@ function inheritedColumn(field, t, enumLists) {
|
|
|
51582
51603
|
combinedField: combinedField
|
|
51583
51604
|
}, enumData ? {
|
|
51584
51605
|
enumData: enumData,
|
|
51585
|
-
displayLabelTemplate:
|
|
51606
|
+
displayLabelTemplate: labelTemplateOf(field)
|
|
51586
51607
|
} : {})
|
|
51587
51608
|
}, enumData && field.filter ? {
|
|
51588
51609
|
filterParams: enumSetFilterParams(enumData)
|
package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ type ArticleColumn = DivaColDef<ArticleRow> | DivaColGroupDef<ArticleRow>;
|
|
|
12
12
|
export declare const ARTICLE_LANGUAGES: string[];
|
|
13
13
|
/**
|
|
14
14
|
* Distinct dropdown lists the article columns need — they become the `enumData` of the enum cells.
|
|
15
|
-
* The 'X' flag
|
|
15
|
+
* The 'X' flag is among them (the hook serves its fixed list); row-derived (dotted) keys stay plain
|
|
16
|
+
* text, like on the header page.
|
|
16
17
|
*/
|
|
17
18
|
export declare const ARTICLE_DROPDOWN_KEYS: string[];
|
|
18
19
|
/**
|
package/build/types/backoffice/src/ui/AssortmentManager/ArticleData/logic/articleColumns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"articleColumns.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/ArticleData/logic/articleColumns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAoB,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAA0B,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAIvE,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1C,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAqB,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"articleColumns.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/ArticleData/logic/articleColumns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAoB,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAA0B,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAIvE,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1C,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAqB,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UAMjC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UAIjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,8BAG/B,CAAC;AAoBF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,aAAa,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAIvF,CAAC;AA+DH;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,EAAE,IAAI,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAOjH;AAmRD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,CAAC,EAAE,SAAS,EACZ,wBAAwB,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,EACjE,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAM,GAC1C,aAAa,EAAE,CAkFjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/HeaderField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,EAA0B,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/HeaderField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAWnD,OAAO,EAA0B,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AA4HtF;;;;;;;GAOG;AACH,UAAU,gBAAgB;IACxB,KAAK,EAAE,4BAA4B,CAAC;IACpC,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,WAAW,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,gBAAgB,4BA2ExD;;;;AAED,wBAAqC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAuC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAItG,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAS5D,UAAU,mBAAmB;IAC3B,KAAK,EAAE,0BAA0B,CAAC;IAClC;;;OAGG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC7D,0GAA0G;IAC1G,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,oGAAoG;IACpG,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACjG,+GAA+G;IAC/G,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,KAAgB,EAAE,QAAgB,EAAE,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/ui/AssortmentManager/HeaderData/components/ItemGroupTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAuC,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAItG,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAS5D,UAAU,mBAAmB;IAC3B,KAAK,EAAE,0BAA0B,CAAC;IAClC;;;OAGG;IACH,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC7D,0GAA0G;IAC1G,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,oGAAoG;IACpG,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,IAAI,KAAK,IAAI,CAAC;IACjG,+GAA+G;IAC/G,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,mGAAmG;IACnG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;GAKG;AACH,iBAAS,cAAc,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,KAAgB,EAAE,QAAgB,EAAE,EAAE,mBAAmB,qBAgElI;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDropdownEnumData.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"useDropdownEnumData.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/hooks/useDropdownEnumData.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAMpD,gEAAgE;AAChE,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,sIAAsI;AACtI,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;CACvC;AAED,2EAA2E;AAC3E,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,SAAS,MAAM,CAAC;AA+B7B;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAanD;AAKD;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CA4BzH;AAiDD,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,EAAE;;;;IAExD;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,SAAS,CAmB5H"}
|
package/build/types/backoffice/src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemGroupColumns.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"itemGroupColumns.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/AssortmentManager/HeaderData/logic/itemGroupColumns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAExD,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAQzD,yFAAyF;AACzF,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAEhD,2EAA2E;AAC3E,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,0BAA0B,EAAE,MAAM,CAMtE,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKlE;AAYD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,SAAS,eAC7B;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,wBAEtC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,0BAA0B,EACjC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,EACtC,CAAC,EAAE,SAAS,EACZ,KAAK,GAAE,QAAQ,GAAG,SAAoB,GACrC,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,CAmCvC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { AssortmentManagerFieldConfig } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* The SAP "X or blank" flag — `dropDownKey: 'X'` is not a key of the dropdownItems collection. Its
|
|
4
|
+
* list is fixed (the single entry `X`) and served without a request, so the flag fields render as
|
|
5
|
+
* selects everywhere: the header form and the grids.
|
|
6
|
+
*/
|
|
7
|
+
export declare const FLAG_DROPDOWN_KEY = "X";
|
|
2
8
|
export declare const ASSORTMENT_MANAGER_FIELDS: AssortmentManagerFieldConfig[];
|
|
3
9
|
//# sourceMappingURL=fields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/config/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,yBAAyB,EAAE,4BAA4B,EAo7CnE,CAAC"}
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/config/fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,eAAO,MAAM,yBAAyB,EAAE,4BAA4B,EAo7CnE,CAAC"}
|
package/build/types/backoffice/src/ui/AssortmentManager/tests/useDropdownEnumData.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDropdownEnumData.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/AssortmentManager/tests/useDropdownEnumData.test.tsx"],"names":[],"mappings":""}
|
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.37",
|
|
4
4
|
"description": "Ant Design backoffice shell (configuration modules) and the Diva Data Engine component hosting 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.37",
|
|
20
|
+
"@crystaldesign/content-item": "26.12.0-beta.37",
|
|
21
|
+
"@crystaldesign/diva-agent": "26.12.0-beta.37",
|
|
22
|
+
"@crystaldesign/diva-core": "26.12.0-beta.37",
|
|
23
|
+
"@crystaldesign/diva-utils": "26.12.0-beta.37",
|
|
24
|
+
"@crystaldesign/media-upload": "26.12.0-beta.37",
|
|
25
|
+
"@crystaldesign/rtf-editor": "26.12.0-beta.37",
|
|
26
|
+
"@crystaldesign/spreadsheet": "26.12.0-beta.37",
|
|
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": "f0825560bafb1ec1eba339e5e8d32e0db066fbb4"
|
|
61
61
|
}
|