@crystaldesign/web-planner-logic 26.13.0-beta.3 → 26.13.0-beta.31
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/cjs/{DivaBoxPlanner-09506958.js → DivaBoxPlanner-f9f577b0.js} +4 -3
- package/build/cjs/{DivaStandardPlanner-3afaa9dc.js → DivaStandardPlanner-fd71c557.js} +52 -42
- package/build/cjs/{DoorPlanner-b7dc9d75.js → DoorPlanner-1e941d6e.js} +3 -2
- package/build/cjs/{Host3DSignalR-af1273a3.js → Host3DSignalR-7aa4d347.js} +63 -19
- package/build/cjs/{LiviqueWWSHandler-f90e47e8.js → LiviqueWWSHandler-c8f83739.js} +3 -2
- package/build/cjs/{PfisterWWSHandler-44e98549.js → PfisterWWSHandler-d3fd59c5.js} +3 -2
- package/build/cjs/{PlannerHandler2D-8655bcdb.js → PlannerHandler2D-e6d1cebc.js} +1 -1
- package/build/cjs/{SeriousBasketHandler-da58bfd5.js → SeriousBasketHandler-c8abdb16.js} +3 -2
- package/build/cjs/{ShelfPlanner-fa17b8ac.js → ShelfPlanner-173ee746.js} +137 -36
- package/build/cjs/{StandardWWSHandler-84ff60ba.js → StandardWWSHandler-e31f5446.js} +3 -2
- package/build/cjs/{index-0075f2cf.js → index-76d3a1ec.js} +1856 -1217
- package/build/cjs/index.js +3 -7
- package/build/esm/{DivaBoxPlanner-f98e012b.js → DivaBoxPlanner-086b4c02.js} +4 -3
- package/build/esm/{DivaStandardPlanner-9436f998.js → DivaStandardPlanner-9864a9dd.js} +52 -42
- package/build/esm/{DoorPlanner-5725f710.js → DoorPlanner-d29bc13e.js} +3 -2
- package/build/esm/{Host3DSignalR-d160a5ff.js → Host3DSignalR-dbe6624e.js} +63 -19
- package/build/esm/{LiviqueWWSHandler-1bef5d2e.js → LiviqueWWSHandler-60691979.js} +3 -2
- package/build/esm/{PfisterWWSHandler-967a27ec.js → PfisterWWSHandler-1fe8accd.js} +3 -2
- package/build/esm/{PlannerHandler2D-00b50d01.js → PlannerHandler2D-88b9a108.js} +1 -1
- package/build/esm/{SeriousBasketHandler-7563dbf3.js → SeriousBasketHandler-0a3966d6.js} +3 -2
- package/build/esm/{ShelfPlanner-58042ac8.js → ShelfPlanner-614b7281.js} +137 -36
- package/build/esm/{StandardWWSHandler-25e8eec4.js → StandardWWSHandler-12b16709.js} +3 -2
- package/build/esm/{index-6188684c.js → index-8d311c4b.js} +1856 -1213
- package/build/esm/index.js +3 -2
- package/build/types/web-planner-logic/src/index.d.ts +1 -7
- package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +4 -2
- package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts +6 -2
- package/build/types/web-planner-logic/src/interface/Articles/AccessoireItemType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
- package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -0
- package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -3
- package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/Planner/IDM3DTranslation.d.ts +20 -0
- package/build/types/web-planner-logic/src/interface/Planner/IDM3DTranslation.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts +3 -0
- package/build/types/web-planner-logic/src/interface/ShelfPlanner/plannerData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -1
- package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +30 -0
- package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +5 -0
- package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts +8 -0
- package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/mandatoryAccessories.d.ts +3 -1
- package/build/types/web-planner-logic/src/logic/Article/mandatoryAccessories.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Article/measureUnit.d.ts +2 -0
- package/build/types/web-planner-logic/src/logic/Article/measureUnit.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts +26 -0
- package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +5 -1
- package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/IDM3D/idm3dTranslation.d.ts +33 -0
- package/build/types/web-planner-logic/src/logic/Planner/IDM3D/idm3dTranslation.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Host3DSignalR.d.ts +1 -0
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/Host3DSignalR.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Planner/Rendering/PlannerHandler3D.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +4 -0
- package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
- package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts +3 -0
- package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts +4 -2
- package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -3
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +12 -0
- package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Properties/propertySchemaRegistry.d.ts +23 -11
- package/build/types/web-planner-logic/src/model/Properties/propertySchemaRegistry.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Properties/propertyValueCodec.d.ts +1 -34
- package/build/types/web-planner-logic/src/model/Properties/propertyValueCodec.d.ts.map +1 -1
- package/build/types/web-planner-logic/src/model/Properties/propertyValues.d.ts +42 -0
- package/build/types/web-planner-logic/src/model/Properties/propertyValues.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/bundleRulesOwnPartlist.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/bundleRulesOwnPartlist.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/classificationRepairFreeText.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/classificationRepairFreeText.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/decisionFeatureRefOp.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/decisionFeatureRefOp.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/getConfigStepKeyOfAccessoire.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/getConfigStepKeyOfAccessoire.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/host3DSignalRReconnect.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/host3DSignalRReconnect.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/orderNumberTemplates.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/orderNumberTemplates.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/partlistChangeReevaluatesOptionTree.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/partlistChangeReevaluatesOptionTree.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/plannerElementHeightChange.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/plannerElementHeightChange.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/plannerHandler3DRoomListQueue.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/plannerHandler3DRoomListQueue.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/propertyParsers.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/propertyParsers.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/propertyValues.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/propertyValues.test.d.ts.map +1 -0
- package/build/types/web-planner-logic/src/test/shelfStashInheritedOptions.test.d.ts +2 -0
- package/build/types/web-planner-logic/src/test/shelfStashInheritedOptions.test.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { MetaData } from '../../interface/AdditionalModelInfos';
|
|
2
2
|
import { CatalogOptionDataType, OptionLayoutType, PropertyObj } from '../../interface/OptionTypes/CatalogOptionDataTypes';
|
|
3
3
|
import DivaCatalogData from '../Catalog/CatalogData';
|
|
4
|
-
import { ContentItemTeaser } from '../../interface/ViewTypes';
|
|
5
4
|
export default class OptionCatalogData {
|
|
6
5
|
private opt;
|
|
7
6
|
constructor(opt: CatalogOptionDataType, catalogData: DivaCatalogData);
|
|
@@ -59,7 +58,7 @@ export default class OptionCatalogData {
|
|
|
59
58
|
get isMainColor(): boolean | undefined;
|
|
60
59
|
get sendToPIM(): boolean | undefined;
|
|
61
60
|
get contentItemId(): string | undefined;
|
|
62
|
-
get contentItemTeaser(): ContentItemTeaser | undefined;
|
|
61
|
+
get contentItemTeaser(): import("../..").ContentItemTeaser | undefined;
|
|
63
62
|
get partOfGroup(): {
|
|
64
63
|
groupName: string;
|
|
65
64
|
position: "l" | "r" | undefined;
|
|
@@ -69,7 +68,7 @@ export default class OptionCatalogData {
|
|
|
69
68
|
get sequenceNo(): number | undefined;
|
|
70
69
|
get ignoreGroups(): boolean | undefined;
|
|
71
70
|
get ignorePgrGroupPosition(): boolean | undefined;
|
|
72
|
-
get additionalGroupFilter(): import("
|
|
71
|
+
get additionalGroupFilter(): import("../..").AdditionalGroupFilter[] | undefined;
|
|
73
72
|
get requiredOption(): boolean | undefined;
|
|
74
73
|
get suggestedOption(): boolean | undefined;
|
|
75
74
|
get description(): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogOptionData.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Options/CatalogOptionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAC1H,OAAO,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CatalogOptionData.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Options/CatalogOptionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAC1H,OAAO,eAAe,MAAM,wBAAwB,CAAC;AAIrD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,GAAG,CAAwB;gBACvB,GAAG,EAAE,qBAAqB,EAAE,WAAW,EAAE,eAAe;IAKpE,8GAA8G;IAC9G,IAAI,KAAK,WAER;IACD,mIAAmI;IACnI,IAAI,QAAQ,UAEX;IACD,IAAI,IAAI,WAEP;IACD,IAAI,QAAQ,WAEX;IACD,IAAI,YAAY;;MAEf;IACD,IAAI,sBAAsB,gCAEzB;IACD,IAAI,eAAe,uBAElB;IACD,IAAI,KAAK,uBAER;IACD,IAAI,WAAW,YAEd;IACD,IAAI,gCAAgC,YAEnC;IACD,IAAI,iBAAiB,uBAEpB;IACD,IAAI,wBAAwB,wBAE3B;IACD,IAAI,eAAe,wBAElB;IAED,IAAI,kBAAkB,uBAErB;IAED,IAAI,oBAAoB,uBAEvB;IACD,IAAI,YAAY,wBAEf;IACD,IAAI,kBAAkB,wBAErB;IACD,IAAI,kBAAkB,wBAErB;IACD,IAAI,aAAa,wBAEhB;IACD,IAAI,sBAAsB,uBAEzB;IACD,IAAI,MAAM,IAGS,gBAAgB,CADlC;IACD,IAAI,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAElC;IACD,IAAI,UAAU,uBAEb;IACD,IAAI,iBAAiB,wBAEpB;IAED,IAAI,iBAAiB,wBAEpB;IAED,IAAI,wBAAwB,wBAE3B;IAED,IAAI,aAAa,uBAEhB;IAED,IAAI,sBAAsB,wBAGzB;IAED,IAAI,yBAAyB,wBAE5B;IACD,IAAI,sBAAsB,wBAEzB;IAED,IAAI,wBAAwB,uBAE3B;IAED,IAAI,gBAAgB;;;kBAEnB;IAED,IAAI,oBAAoB,uBAEvB;IACD,IAAI,GAAG,uBAEN;IACD,IAAI,aAAa,wBAEhB;IACD,IAAI,UAAU,wBAEb;IACD,IAAI,MAAM,uBAET;IACD,IAAI,QAAQ,wBAEX;IACD,IAAI,oBAAoB,wBAEvB;IACD,IAAI,YAAY,uBAEf;IACD,IAAI,qBAAqB,uBAExB;IACD,IAAI,OAAO,wBAEV;IACD,IAAI,oCAAoC,uBAEvC;IACD,IAAI,QAAQ,wBAEX;IACD,IAAI,WAAW,wBAEd;IACD,IAAI,SAAS,wBAEZ;IACD,IAAI,aAAa,uBAEhB;IACD,IAAI,iBAAiB,kDAEpB;IACD,IAAI,WAAW;;;kBAEd;IACD,IAAI,eAAe,wBAElB;IACD,IAAI,mBAAmB,uBAEtB;IACD,IAAI,UAAU,uBAEb;IACD,IAAI,YAAY,wBAEf;IACD,IAAI,sBAAsB,wBAEzB;IACD,IAAI,qBAAqB,wDAExB;IACD,IAAI,cAAc,wBAEjB;IACD,IAAI,eAAe,wBAElB;IAED,IAAI,WAAW,uBAEd;CACF;AAED,eAAO,MAAM,oBAAoB,gBAAiB,eAAe,OAAO,WAAW,cAAc,QAAQ,EAAE,SAyI1G,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogOptionValueData.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Options/CatalogOptionValueData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACnH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,iDAAiD,CAAC;AAIjF,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CatalogOptionValueData.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Options/CatalogOptionValueData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACnH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,iDAAiD,CAAC;AAIjF,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,QAAQ,IAAI,GAAG,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,eAAe,MAAM,wBAAwB,CAAC;AAMrD,MAAM,CAAC,OAAO,OAAO,sBAAsB;IACzC,OAAO,CAAC,GAAG,CAA6B;IACxC,OAAO,CAAC,WAAW,CAAU;gBACjB,GAAG,EAAE,0BAA0B,EAAE,WAAW,EAAE,eAAe;IAWzE,+GAA+G;IAC/G,IAAI,KAAK,WAER;IACD,IAAI,MAAM,uBAET;IAED,IAAI,IAAI,WAEP;IACD,IAAI,QAAQ,WAEX;IACD,IAAI,YAAY;;MAEf;IACD,IAAI,WAAW,uBAEd;IACD,IAAI,mBAAmB;;kBAEtB;IACD,IAAI,SAAS,IAMM,MAAM,GAAG,SAAS,CAJpC;IACD,IAAI,aAAa,uBAEhB;IACD,IAAI,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAEpC;IACD,IAAI,iBAAiB;;kBAEpB;IAED,IAAI,KAAK,uBAER;IACD,IAAI,QAAQ,uBAEX;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ACD,IAAI,kBAAkB,wBAErB;IACD;;;OAGG;IACH,OAAO,CAAC,kBAAkB,CAkCxB;CACH;AAED,eAAO,MAAM,wBAAwB,gBAAiB,eAAe,OAAO,iBAAiB,cAAc,GAAG,EAAE,SAkI/G,CAAC"}
|
|
@@ -8,6 +8,7 @@ export default class PlannerElementData {
|
|
|
8
8
|
private tempDockingPoints;
|
|
9
9
|
private plannerType;
|
|
10
10
|
private readonly basketId;
|
|
11
|
+
private placedHeight?;
|
|
11
12
|
constructor(setId: string, basketId: string, _elementId: number, plannerType: 'STD' | 'BOX');
|
|
12
13
|
destroy(): void;
|
|
13
14
|
getTempDockingPoints(): DockingPoint[];
|
|
@@ -71,6 +72,17 @@ export default class PlannerElementData {
|
|
|
71
72
|
get WorldPosCornerIgnoreOLF(): Vector3;
|
|
72
73
|
set WorldPosCornerIgnoreOLF(cornerPos: Vector3);
|
|
73
74
|
set WorldPosCenter(pos: Vector3);
|
|
75
|
+
/**
|
|
76
|
+
* Keeps an element that stands on the floor (worldPosCenter.y == height / 2) on the floor after its height changed,
|
|
77
|
+
* e.g. a bed configured without headboard: the 3D host centers the article on worldPosCenter.y. Elements placed
|
|
78
|
+
* otherwise keep their y.
|
|
79
|
+
*/
|
|
80
|
+
keepOnFloorOnHeightChange(): void;
|
|
81
|
+
/**
|
|
82
|
+
* Whether an element whose center is at centerY and that is height high stands on the floor (centerY == height / 2).
|
|
83
|
+
* The one rule for height changes and article switches, so both keep the same elements on the floor.
|
|
84
|
+
*/
|
|
85
|
+
static standsOnFloor(centerY: number, height?: number): boolean;
|
|
74
86
|
set WorldPosCorner(cornerPos: Vector3);
|
|
75
87
|
/**
|
|
76
88
|
* This function updates the world position and rotation of the element based of some delta Elements
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlannerElementData.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Planner/PlannerElementData.ts"],"names":[],"mappings":"AACA,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,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wB,IAAI,OAAO;IAInC,kBAAkB,IAAI,MAAM,GAAG,SAAS;IAIxC,YAAY,IAAI,MAAM;IAItB,WAAW,IAAI,MAAM;IAIrB,QAAQ,IAAI,MAAM;IAIlB,iBAAiB,IAAI,OAAO;IAInC;;;;OAIG;IACI,oBAAoB,IAAI,OAAO;IAetC;;OAEG;IACI,iBAAiB,IAAI,OAAO;IAI5B,SAAS,IAAI,MAAM;IAGnB,SAAS,IAAI,MAAM;IAGnB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,SAAS,IAAI,OAAO;IAIpB,YAAY,IAAI,MAAM,EAAE;IAGxB,YAAY;IAGZ,gBAAgB;IAGhB,gBAAgB;IAIhB,cAAc;IAIrB;;OAEG;IACI,UAAU,IAAI,MAAM;IAIpB,QAAQ;IAGR,SAAS;IAGT,QAAQ;IAIR,YAAY;IAIZ,WAAW;IAIX,QAAQ;IAIR,kBAAkB,IAAI,OAAO;IAG7B,kBAAkB,IAAI,iBAAiB;IAIvC,mBAAmB,IAAI,OAAO;IAI9B,mBAAmB,IAAI,MAAM;IAI7B,cAAc;IAGd,kBAAkB;IAGzB,gIAAgI;IACzH,UAAU,IAAI,MAAM;IAGpB,SAAS,IAAI,MAAM;IAInB,uCAAuC;;;IAGvC,sBAAsB;CAG9B"}
|
|
@@ -1,31 +1,43 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The VALUE ENCODING of every catalog/article/option/option-value property, keyed by codex
|
|
2
|
+
* The VALUE ENCODING of every catalog/article/option/option-value property, keyed by codex: the type the planner reads
|
|
3
|
+
* the value as, and how a legacy TEXT of it is read.
|
|
3
4
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Enricher values are typed (a flag, a number, a list, JSON - stored under ALL) and taken as they are. A text - of a
|
|
6
|
+
* CE catalog or mask, or the legacy text the enricher renders for old configurators - is read the way the parsers read
|
|
7
|
+
* it before values were typed: '1' for one flag, 'true' for the next, a ';' list for a third (readPropertyValue,
|
|
8
|
+
* propertyValues.ts). The agent's property-encodings knowhow doc is generated from this table
|
|
9
|
+
* (scripts/generatePropertyEncodingsDoc.py).
|
|
7
10
|
*
|
|
8
|
-
*
|
|
11
|
+
* Hand-maintained: add the codex here when one of the four parsers gets a `case` for it
|
|
9
12
|
* CatalogData.ts | CatalogArticleData.ts | CatalogOptionData.ts | CatalogOptionValueData.ts
|
|
10
13
|
* `propertyValueCodec.test.ts` fails when a parser case has no entry here.
|
|
11
14
|
*/
|
|
12
15
|
/** The entity a property hangs on; the same codex can mean different things on different entities. */
|
|
13
16
|
export type PropertyEntity = 'catalog' | 'article' | 'option' | 'optionValue';
|
|
14
17
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
+
* The type a property is read as, and how its legacy text is read. The boolean dialects are NOT interchangeable: a
|
|
19
|
+
* text 'true' where the dialect is `boolean:1` reads as false.
|
|
20
|
+
* - `string`: a text, as it is. `opaque`: a text in a format of its own, which the property's parser reads.
|
|
21
|
+
* - `number`: Number(text).
|
|
22
|
+
* - `boolean:1`: true for '1' only. `boolean:1|true`: for '1' or 'true' (any case). `boolean:on`: isPropertyOn - false
|
|
23
|
+
* for empty, '0' and 'false'. `boolean:not-0`: false for '0' only.
|
|
24
|
+
* - `list:;` / `list:,`: a list of texts, the text split at ';' / ','.
|
|
25
|
+
* - `all-or-list:;`: `{ all: true }` for '1', else `{ only: [...] }` split at ';'. `boolean-or-list:;`: the same, and
|
|
26
|
+
* `{ all: false }` for '0'.
|
|
27
|
+
* - `json`: a JSON value, JSON.parse(text). `shape`: a JSON value of a fixed shape whose text has a format of its own.
|
|
28
|
+
* - `ignored`: recognised by the parser and deliberately not read.
|
|
18
29
|
*/
|
|
19
|
-
export type PropertyEncoding = 'string' | 'number' | 'boolean:1' | 'boolean:1|true' | 'boolean:
|
|
30
|
+
export type PropertyEncoding = 'string' | 'opaque' | 'number' | 'boolean:1' | 'boolean:1|true' | 'boolean:on' | 'boolean:not-0' | 'list:;' | 'list:,' | 'all-or-list:;' | 'boolean-or-list:;' | 'json' | 'shape' | 'ignored';
|
|
20
31
|
/** The encoding per property codex, for one entity. */
|
|
21
32
|
export interface PropertyEncodingByCodex {
|
|
22
33
|
[codex: string]: PropertyEncoding;
|
|
23
34
|
}
|
|
24
35
|
export declare const PROPERTY_SCHEMAS: Record<PropertyEntity, PropertyEncodingByCodex>;
|
|
36
|
+
/** A catalog-prefixed codex ('MYCAT__USEBOXPLANNER') in its bare form, the same way the parsers strip the prefix. */
|
|
37
|
+
export declare const bareCodex: (codex: string) => string;
|
|
25
38
|
/**
|
|
26
39
|
* The encoding of one property, or undefined when the codex is not one the engine parses - an organization's own
|
|
27
|
-
* key, which stays free text. A catalog-prefixed codex
|
|
28
|
-
* same way the parsers strip it.
|
|
40
|
+
* key, which stays free text. A catalog-prefixed codex resolves to its bare form (bareCodex).
|
|
29
41
|
*/
|
|
30
42
|
export declare function propertyEncodingOf(codex: string, entity?: PropertyEntity): PropertyEncoding | undefined;
|
|
31
43
|
//# sourceMappingURL=propertySchemaRegistry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertySchemaRegistry.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Properties/propertySchemaRegistry.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"propertySchemaRegistry.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Properties/propertySchemaRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,sGAAsG;AACtG,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,SAAS,CAAC;AAEd,uDAAuD;AACvD,MAAM,WAAW,uBAAuB;IACtC,CAAC,KAAK,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACnC;AAyND,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,cAAc,EAAE,uBAAuB,CAK5E,CAAC;AAEF,qHAAqH;AACrH,eAAO,MAAM,SAAS,UAAW,MAAM,WAA0E,CAAC;AAElH;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,gBAAgB,GAAG,SAAS,CAUvG"}
|
|
@@ -1,39 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reading and writing a property VALUE in the encoding its own parser expects.
|
|
3
|
-
*
|
|
4
|
-
* Every property travels as a string and each one decides how that string is read (see propertySchemaRegistry).
|
|
5
|
-
* An editor therefore cannot write "a boolean" - it has to write the dialect of THAT property, or the parser reads
|
|
6
|
-
* the opposite of what the user chose. These two functions are that translation:
|
|
7
|
-
*
|
|
8
|
-
* - `decodePropertyValue` is DELIBERATELY TOLERANT. Stored values are a decade of history: the raw strings the
|
|
9
|
-
* parsers document, real booleans and numbers written by editors that typed them natively, and the '.ToString()'
|
|
10
|
-
* spellings those turn into on the way out ('True'). All of them must display as what they mean, or an editor
|
|
11
|
-
* would show a flag as off and silently turn it off on the next save.
|
|
12
|
-
* - `encodePropertyValue` is STRICT. It emits exactly one spelling per encoding - the one the parser reads.
|
|
13
|
-
*/
|
|
14
|
-
import { PropertyEncoding } from './propertySchemaRegistry';
|
|
15
|
-
/** What a decoded property value can be, before an editor renders it. */
|
|
16
|
-
export type PropertyValue = string | number | boolean | string[] | Record<string, unknown> | unknown[] | undefined;
|
|
17
1
|
/**
|
|
18
2
|
* Whether a flag property is switched on: empty, '0' and 'false' (any case, trimmed) are OFF, any other value is ON.
|
|
19
|
-
* Every flag parser reads its value through this
|
|
3
|
+
* Every flag parser reads its value through this.
|
|
20
4
|
*/
|
|
21
5
|
export declare function isPropertyOn(value: unknown): boolean;
|
|
22
|
-
/** The raw string a stored value amounts to - what `.ToString()` would hand the parser. */
|
|
23
|
-
export declare function rawStringOf(stored: unknown): string;
|
|
24
|
-
/**
|
|
25
|
-
* The value an editor should show for a stored property. `stored` is what the record holds - a string in the
|
|
26
|
-
* normal case, or a natively-typed value from an editor that wrote one.
|
|
27
|
-
*/
|
|
28
|
-
export declare function decodePropertyValue(encoding: PropertyEncoding, stored: unknown): PropertyValue;
|
|
29
|
-
/**
|
|
30
|
-
* The string to store for an edited value - exactly the spelling the property's parser reads.
|
|
31
|
-
* `undefined` means the property should be REMOVED rather than written empty, which is how a `boolean:on` flag is
|
|
32
|
-
* switched off.
|
|
33
|
-
*/
|
|
34
|
-
export declare function encodePropertyValue(encoding: PropertyEncoding, value: PropertyValue): string | undefined;
|
|
35
|
-
/** Whether a value can be stored for this encoding at all - what an editor blocks saving on. */
|
|
36
|
-
export declare function propertyValueProblem(encoding: PropertyEncoding, value: PropertyValue): string | undefined;
|
|
37
|
-
/** The control an editor should render for an encoding. */
|
|
38
|
-
export declare function editorKindOf(encoding: PropertyEncoding): 'checkbox' | 'number' | 'list' | 'json' | 'allOrList' | 'boolOrList' | 'text';
|
|
39
6
|
//# sourceMappingURL=propertyValueCodec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"propertyValueCodec.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Properties/propertyValueCodec.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"propertyValueCodec.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Properties/propertyValueCodec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMpD"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PropertyEntity } from './propertySchemaRegistry';
|
|
2
|
+
/** A JSON value: an object or an array. */
|
|
3
|
+
export type PropertyJson = {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
} | unknown[];
|
|
6
|
+
/**
|
|
7
|
+
* A property value as the planner reads it, in the type of its definition: a flag, a number, a list of texts, a JSON
|
|
8
|
+
* value or a text.
|
|
9
|
+
*/
|
|
10
|
+
export type PropertyValue = string | number | boolean | string[] | PropertyJson;
|
|
11
|
+
/** What an IDM / enricher property carries: a typed value under ALL, or a text per language. */
|
|
12
|
+
export interface StoredPropertyValues {
|
|
13
|
+
[lang: string]: PropertyValue;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The value of a JSON property with a fixed shape; undefined for a value of another shape - set elsewhere, or left from
|
|
17
|
+
* before its definition's type changed - which is logged and ignored instead of failing the whole catalog.
|
|
18
|
+
*/
|
|
19
|
+
export declare function shapedJsonOf(codex: string, value: PropertyValue | undefined): any;
|
|
20
|
+
/**
|
|
21
|
+
* The value of a property as the planner reads it. `stored` is what the property carries: the values per language of
|
|
22
|
+
* an IDM / enricher property, or the text of a CE property. A typed value (under ALL) is taken as it is; a text - of a
|
|
23
|
+
* CE catalog or mask, of a text property, or the legacy text the enricher renders for old configurators - is read in
|
|
24
|
+
* the encoding the entity parses the codex with. A codex the planner does not parse keeps its text.
|
|
25
|
+
*/
|
|
26
|
+
export declare function readPropertyValue(entity: PropertyEntity, codex: string, stored: unknown, lang: string): PropertyValue | undefined;
|
|
27
|
+
/** A text property's text; undefined for any other value. */
|
|
28
|
+
export declare const textOf: (value: PropertyValue | undefined) => string | undefined;
|
|
29
|
+
/** A list property's entries; an empty list for any other value. */
|
|
30
|
+
export declare const listOf: (value: PropertyValue | undefined) => string[];
|
|
31
|
+
/**
|
|
32
|
+
* A JSON property's value - handed on unchecked, as `JSON.parse` handed on the text before: its structure is the
|
|
33
|
+
* property's own (bundle rules, notifications, a fixed shape, ...). Undefined for any other value.
|
|
34
|
+
*/
|
|
35
|
+
export declare const jsonOf: (value: PropertyValue | undefined) => any;
|
|
36
|
+
/**
|
|
37
|
+
* The texts the basket's MetaData carries for a property the planner does not parse (`values: string[]`): a text split
|
|
38
|
+
* at ';' as before, a list of plain values its entries (a list's schema may make them numbers or flags), a flag '1' or
|
|
39
|
+
* '0', a number its text, a JSON value its JSON text.
|
|
40
|
+
*/
|
|
41
|
+
export declare function propertyTexts(value: PropertyValue | undefined): string[];
|
|
42
|
+
//# sourceMappingURL=propertyValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyValues.d.ts","sourceRoot":"","sources":["../../../../../../src/model/Properties/propertyValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAA+B,cAAc,EAAsB,MAAM,0BAA0B,CAAC;AAI3G,2CAA2C;AAC3C,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,GAAG,OAAO,EAAE,CAAC;AAElE;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,YAAY,CAAC;AAEhF,gGAAgG;AAChG,MAAM,WAAW,oBAAoB;IACnC,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAAC;CAC/B;AAkFD;;;GAGG;AAEH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,GAAG,CAIjF;AAgCD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAOjI;AAED,6DAA6D;AAC7D,eAAO,MAAM,MAAM,UAAW,aAAa,GAAG,SAAS,uBAAoD,CAAC;AAE5G,oEAAoE;AACpE,eAAO,MAAM,MAAM,UAAW,aAAa,GAAG,SAAS,aAAoD,CAAC;AAE5G;;;GAGG;AAEH,eAAO,MAAM,MAAM,UAAW,aAAa,GAAG,SAAS,KAAG,GAAsD,CAAC;AAOjH;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,EAAE,CASxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundleRulesOwnPartlist.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/bundleRulesOwnPartlist.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classificationRepairFreeText.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/classificationRepairFreeText.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decisionFeatureRefOp.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/decisionFeatureRefOp.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfigStepKeyOfAccessoire.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/getConfigStepKeyOfAccessoire.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host3DSignalRReconnect.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/host3DSignalRReconnect.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orderNumberTemplates.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/orderNumberTemplates.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
package/build/types/web-planner-logic/src/test/partlistChangeReevaluatesOptionTree.test.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partlistChangeReevaluatesOptionTree.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/partlistChangeReevaluatesOptionTree.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plannerElementHeightChange.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/plannerElementHeightChange.test.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plannerHandler3DRoomListQueue.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/plannerHandler3DRoomListQueue.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyParsers.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/propertyParsers.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyValues.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/propertyValues.test.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shelfStashInheritedOptions.test.d.ts","sourceRoot":"","sources":["../../../../../src/test/shelfStashInheritedOptions.test.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/web-planner-logic",
|
|
3
|
-
"version": "26.13.0-beta.
|
|
3
|
+
"version": "26.13.0-beta.31",
|
|
4
4
|
"description": "Headless web planner: session, geometry, render orders and product structure logic.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"jest-junit": "^16.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@crystaldesign/planner-2d-core": "26.13.0-beta.
|
|
17
|
+
"@crystaldesign/planner-2d-core": "26.13.0-beta.31",
|
|
18
18
|
"@microsoft/signalr": "^8.0.7",
|
|
19
19
|
"@microsoft/signalr-protocol-msgpack": "^8.0.7",
|
|
20
20
|
"axios": "^1.7.7",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"types": "./build/types/web-planner-logic/src/index.d.ts",
|
|
41
41
|
"module": "build/esm/index.js",
|
|
42
42
|
"main": "build/cjs/index.js",
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "388119cf1908e5d05dfbbd767e41e328ed080555"
|
|
44
44
|
}
|