@kontur.candy/generator 4.245.0-lazy-loading.16 → 4.245.0-lazy-loading-test.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +32 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -114258,6 +114258,22 @@ class PathUtils {
114258
114258
  return fullPathTokens.slice(0, i + 1).join("/");
114259
114259
  }
114260
114260
 
114261
+ static getFirstInstancePathWithMaskTail(fullPath, mask) {
114262
+ const fullPathTokens = this.split(fullPath);
114263
+ const maskTokens = this.split(mask);
114264
+ let i = 0;
114265
+
114266
+ while (maskTokens[i] && fullPathTokens[i] === maskTokens[i]) {
114267
+ i++;
114268
+ }
114269
+
114270
+ if (maskTokens[i] !== "*") {
114271
+ return null;
114272
+ }
114273
+
114274
+ return fullPathTokens.slice(0, i + 1).concat(maskTokens.slice(i + 1)).join("/");
114275
+ }
114276
+
114261
114277
  static isPicklistFieldValueName(valueName) {
114262
114278
  return valueName.startsWith("picklist@");
114263
114279
  }
@@ -153236,6 +153252,11 @@ class MultilineFieldConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODU
153236
153252
  }), context.addPathSectionDeclarationEntry(node), context.addVisibilityPathDeclEntryNew(node));
153237
153253
  }
153238
153254
 
153255
+ *doBuildNormalizeRules(builder) {
153256
+ const node = this.getCurrentNodeAs(_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_3__.MultilineFieldNode);
153257
+ yield* builder.childrenInitializer(node, false);
153258
+ }
153259
+
153239
153260
  buildChildrenDataDeclaration(context) {
153240
153261
  const node = this.getCurrentNodeAs(_MultilineFieldNode__WEBPACK_IMPORTED_MODULE_3__.MultilineFieldNode);
153241
153262
  return context.processChildrenDataDeclaration(node.children);
@@ -156885,6 +156906,17 @@ class TabsConverter extends _SugarNodeConverter__WEBPACK_IMPORTED_MODULE_2__.Sug
156885
156906
  return context.mergeDataDeclaration(context.addPathDeclEntry(node, [["children", context.initSequenceFactory.children((_node$optional = node.optional) !== null && _node$optional !== void 0 ? _node$optional : false)]]), context.addPathSectionDeclarationEntry(node));
156886
156907
  }
156887
156908
 
156909
+ *doBuildNormalizeRules(builder) {
156910
+ var _node$optional2;
156911
+
156912
+ const node = this.getCurrentNodeAs(_TabsNode__WEBPACK_IMPORTED_MODULE_4__.TabsNode);
156913
+ yield* builder.childrenInitializer(node, (_node$optional2 = node.optional) !== null && _node$optional2 !== void 0 ? _node$optional2 : false);
156914
+ yield* builder.specialFieldsInitializer(node, {
156915
+ optional: node.optional,
156916
+ disabled: undefined
156917
+ });
156918
+ }
156919
+
156888
156920
  buildChildrenDataDeclaration(context) {
156889
156921
  var _node$title$children, _node$title, _node$content$childre, _node$content;
156890
156922
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "4.245.0-lazy-loading.16",
3
+ "version": "4.245.0-lazy-loading-test.19",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,