@symbo.ls/uikit 2.11.78 → 2.11.81

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/dist/index.cjs.js CHANGED
@@ -89,13 +89,13 @@ var require_cjs = __commonJS({
89
89
  document: () => document4,
90
90
  global: () => global,
91
91
  self: () => self,
92
- window: () => window3
92
+ window: () => window2
93
93
  });
94
94
  module22.exports = __toCommonJS22(globals_exports);
95
95
  var global = globalThis;
96
96
  var self = globalThis;
97
- var window3 = globalThis;
98
- var document4 = window3.document;
97
+ var window2 = globalThis;
98
+ var document4 = window2.document;
99
99
  }
100
100
  });
101
101
  var require_cjs22 = __commonJS2({
@@ -505,6 +505,41 @@ var require_cjs = __commonJS({
505
505
  };
506
506
  }
507
507
  });
508
+ var require_string2 = __commonJS2({
509
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
510
+ "use strict";
511
+ var __defProp22 = Object.defineProperty;
512
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
513
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
514
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
515
+ var __export22 = (target, all) => {
516
+ for (var name in all)
517
+ __defProp22(target, name, { get: all[name], enumerable: true });
518
+ };
519
+ var __copyProps22 = (to, from2, except, desc) => {
520
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
521
+ for (let key of __getOwnPropNames22(from2))
522
+ if (!__hasOwnProp22.call(to, key) && key !== except)
523
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
524
+ }
525
+ return to;
526
+ };
527
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
528
+ var string_exports = {};
529
+ __export22(string_exports, {
530
+ stringIncludesAny: () => stringIncludesAny
531
+ });
532
+ module22.exports = __toCommonJS22(string_exports);
533
+ var stringIncludesAny = (str, characters2) => {
534
+ for (const char2 of characters2) {
535
+ if (str.includes(char2)) {
536
+ return true;
537
+ }
538
+ }
539
+ return false;
540
+ };
541
+ }
542
+ });
508
543
  var require_object2 = __commonJS2({
509
544
  "../../node_modules/@domql/utils/dist/cjs/object.js"(exports2, module22) {
510
545
  "use strict";
@@ -544,15 +579,18 @@ var require_cjs = __commonJS({
544
579
  merge: () => merge5,
545
580
  mergeArrayExclude: () => mergeArrayExclude,
546
581
  mergeIfExisted: () => mergeIfExisted,
582
+ objectToString: () => objectToString,
547
583
  overwrite: () => overwrite,
548
584
  overwriteDeep: () => overwriteDeep2,
549
585
  overwriteShallow: () => overwriteShallow4,
550
- removeFromObject: () => removeFromObject
586
+ removeFromObject: () => removeFromObject,
587
+ stringToObject: () => stringToObject
551
588
  });
552
589
  module22.exports = __toCommonJS22(object_exports);
553
590
  var import_globals3 = require_cjs11();
554
591
  var import_types = require_types2();
555
592
  var import_array = require_array2();
593
+ var import_string = require_string2();
556
594
  var exec4 = (param, element, state, context) => {
557
595
  if ((0, import_types.isFunction)(param)) {
558
596
  return param(
@@ -669,6 +707,40 @@ var require_cjs = __commonJS({
669
707
  }
670
708
  return stringified;
671
709
  };
710
+ var objectToString = (obj, indent = 0) => {
711
+ const spaces = " ".repeat(indent);
712
+ let str = "{\n";
713
+ for (const [key, value] of Object.entries(obj)) {
714
+ const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
715
+ const stringedKey = keyAllowdChars ? `'${key}'` : key;
716
+ str += `${spaces} ${stringedKey}: `;
717
+ if ((0, import_types.isArray)(value)) {
718
+ str += "[\n";
719
+ for (const element of value) {
720
+ if ((0, import_types.isObject)(element) && element !== null) {
721
+ str += `${spaces} ${objectToString(element, indent + 2)},
722
+ `;
723
+ } else if ((0, import_types.isString)(element)) {
724
+ str += `${spaces} '${element}',
725
+ `;
726
+ } else {
727
+ str += `${spaces} ${element},
728
+ `;
729
+ }
730
+ }
731
+ str += `${spaces} ]`;
732
+ } else if ((0, import_types.isObject)(value)) {
733
+ str += objectToString(value, indent + 1);
734
+ } else if ((0, import_types.isString)(value)) {
735
+ str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
736
+ } else {
737
+ str += value;
738
+ }
739
+ str += ",\n";
740
+ }
741
+ str += `${spaces}}`;
742
+ return str;
743
+ };
672
744
  var detachFunctionsFromObject = (obj, detached = {}) => {
673
745
  for (const prop in obj) {
674
746
  const objProp = obj[prop];
@@ -739,6 +811,16 @@ var require_cjs = __commonJS({
739
811
  }
740
812
  return stringified;
741
813
  };
814
+ var stringToObject = (str) => {
815
+ let obj;
816
+ try {
817
+ obj = import_globals3.window.eval("(" + str + ")");
818
+ } catch (e) {
819
+ console.warn(e);
820
+ }
821
+ if (obj)
822
+ return obj;
823
+ };
742
824
  var diffObjects = (original, objToDiff, cache) => {
743
825
  for (const e in objToDiff) {
744
826
  if (e === "ref")
@@ -980,6 +1062,7 @@ var require_cjs = __commonJS({
980
1062
  __reExport(utils_exports2, require_array2(), module22.exports);
981
1063
  __reExport(utils_exports2, require_node2(), module22.exports);
982
1064
  __reExport(utils_exports2, require_log2(), module22.exports);
1065
+ __reExport(utils_exports2, require_string2(), module22.exports);
983
1066
  }
984
1067
  });
985
1068
  var src_exports = {};
@@ -3042,7 +3125,7 @@ var require_types = __commonJS({
3042
3125
  isNumber: () => isNumber,
3043
3126
  isObject: () => isObject7,
3044
3127
  isObjectLike: () => isObjectLike4,
3045
- isString: () => isString4,
3128
+ isString: () => isString5,
3046
3129
  isUndefined: () => isUndefined,
3047
3130
  isValidHtmlTag: () => isValidHtmlTag
3048
3131
  });
@@ -3055,7 +3138,7 @@ var require_types = __commonJS({
3055
3138
  return false;
3056
3139
  return typeof arg === "object" && arg.constructor === Object;
3057
3140
  };
3058
- var isString4 = (arg) => typeof arg === "string";
3141
+ var isString5 = (arg) => typeof arg === "string";
3059
3142
  var isNumber = (arg) => typeof arg === "number";
3060
3143
  var isFunction3 = (arg) => typeof arg === "function";
3061
3144
  var isBoolean = (arg) => arg === true || arg === false;
@@ -3067,7 +3150,7 @@ var require_types = __commonJS({
3067
3150
  return typeof arg === "object";
3068
3151
  };
3069
3152
  var isDefined = (arg) => {
3070
- return isObject7(arg) || isObjectLike4(arg) || isString4(arg) || isNumber(arg) || isFunction3(arg) || isArray7(arg) || isObjectLike4(arg) || isBoolean(arg) || isNull(arg);
3153
+ return isObject7(arg) || isObjectLike4(arg) || isString5(arg) || isNumber(arg) || isFunction3(arg) || isArray7(arg) || isObjectLike4(arg) || isBoolean(arg) || isNull(arg);
3071
3154
  };
3072
3155
  var isUndefined = (arg) => {
3073
3156
  return arg === void 0;
@@ -3076,7 +3159,7 @@ var require_types = __commonJS({
3076
3159
  boolean: isBoolean,
3077
3160
  array: isArray7,
3078
3161
  object: isObject7,
3079
- string: isString4,
3162
+ string: isString5,
3080
3163
  number: isNumber,
3081
3164
  null: isNull,
3082
3165
  function: isFunction3,
@@ -3164,6 +3247,43 @@ var require_array = __commonJS({
3164
3247
  }
3165
3248
  });
3166
3249
 
3250
+ // ../../node_modules/@domql/utils/dist/cjs/string.js
3251
+ var require_string = __commonJS({
3252
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports, module2) {
3253
+ "use strict";
3254
+ var __defProp2 = Object.defineProperty;
3255
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
3256
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
3257
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
3258
+ var __export2 = (target, all) => {
3259
+ for (var name in all)
3260
+ __defProp2(target, name, { get: all[name], enumerable: true });
3261
+ };
3262
+ var __copyProps2 = (to, from2, except, desc) => {
3263
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
3264
+ for (let key of __getOwnPropNames2(from2))
3265
+ if (!__hasOwnProp2.call(to, key) && key !== except)
3266
+ __defProp2(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc2(from2, key)) || desc.enumerable });
3267
+ }
3268
+ return to;
3269
+ };
3270
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
3271
+ var string_exports = {};
3272
+ __export2(string_exports, {
3273
+ stringIncludesAny: () => stringIncludesAny
3274
+ });
3275
+ module2.exports = __toCommonJS2(string_exports);
3276
+ var stringIncludesAny = (str, characters2) => {
3277
+ for (const char2 of characters2) {
3278
+ if (str.includes(char2)) {
3279
+ return true;
3280
+ }
3281
+ }
3282
+ return false;
3283
+ };
3284
+ }
3285
+ });
3286
+
3167
3287
  // ../../node_modules/@domql/utils/dist/cjs/object.js
3168
3288
  var require_object = __commonJS({
3169
3289
  "../../node_modules/@domql/utils/dist/cjs/object.js"(exports, module2) {
@@ -3204,15 +3324,18 @@ var require_object = __commonJS({
3204
3324
  merge: () => merge5,
3205
3325
  mergeArrayExclude: () => mergeArrayExclude,
3206
3326
  mergeIfExisted: () => mergeIfExisted,
3327
+ objectToString: () => objectToString,
3207
3328
  overwrite: () => overwrite,
3208
3329
  overwriteDeep: () => overwriteDeep,
3209
3330
  overwriteShallow: () => overwriteShallow4,
3210
- removeFromObject: () => removeFromObject
3331
+ removeFromObject: () => removeFromObject,
3332
+ stringToObject: () => stringToObject
3211
3333
  });
3212
3334
  module2.exports = __toCommonJS2(object_exports);
3213
3335
  var import_globals = require_cjs4();
3214
3336
  var import_types = require_types();
3215
3337
  var import_array = require_array();
3338
+ var import_string = require_string();
3216
3339
  var exec4 = (param, element, state, context) => {
3217
3340
  if ((0, import_types.isFunction)(param)) {
3218
3341
  return param(
@@ -3329,6 +3452,40 @@ var require_object = __commonJS({
3329
3452
  }
3330
3453
  return stringified;
3331
3454
  };
3455
+ var objectToString = (obj, indent = 0) => {
3456
+ const spaces = " ".repeat(indent);
3457
+ let str = "{\n";
3458
+ for (const [key, value] of Object.entries(obj)) {
3459
+ const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
3460
+ const stringedKey = keyAllowdChars ? `'${key}'` : key;
3461
+ str += `${spaces} ${stringedKey}: `;
3462
+ if ((0, import_types.isArray)(value)) {
3463
+ str += "[\n";
3464
+ for (const element of value) {
3465
+ if ((0, import_types.isObject)(element) && element !== null) {
3466
+ str += `${spaces} ${objectToString(element, indent + 2)},
3467
+ `;
3468
+ } else if ((0, import_types.isString)(element)) {
3469
+ str += `${spaces} '${element}',
3470
+ `;
3471
+ } else {
3472
+ str += `${spaces} ${element},
3473
+ `;
3474
+ }
3475
+ }
3476
+ str += `${spaces} ]`;
3477
+ } else if ((0, import_types.isObject)(value)) {
3478
+ str += objectToString(value, indent + 1);
3479
+ } else if ((0, import_types.isString)(value)) {
3480
+ str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
3481
+ } else {
3482
+ str += value;
3483
+ }
3484
+ str += ",\n";
3485
+ }
3486
+ str += `${spaces}}`;
3487
+ return str;
3488
+ };
3332
3489
  var detachFunctionsFromObject = (obj, detached = {}) => {
3333
3490
  for (const prop in obj) {
3334
3491
  const objProp = obj[prop];
@@ -3399,6 +3556,16 @@ var require_object = __commonJS({
3399
3556
  }
3400
3557
  return stringified;
3401
3558
  };
3559
+ var stringToObject = (str) => {
3560
+ let obj;
3561
+ try {
3562
+ obj = import_globals.window.eval("(" + str + ")");
3563
+ } catch (e) {
3564
+ console.warn(e);
3565
+ }
3566
+ if (obj)
3567
+ return obj;
3568
+ };
3402
3569
  var diffObjects = (original, objToDiff, cache) => {
3403
3570
  for (const e in objToDiff) {
3404
3571
  if (e === "ref")
@@ -3646,6 +3813,7 @@ var require_cjs5 = __commonJS({
3646
3813
  __reExport(utils_exports, require_array(), module2.exports);
3647
3814
  __reExport(utils_exports, require_node(), module2.exports);
3648
3815
  __reExport(utils_exports, require_log(), module2.exports);
3816
+ __reExport(utils_exports, require_string(), module2.exports);
3649
3817
  }
3650
3818
  });
3651
3819
 
@@ -4082,7 +4250,7 @@ var require_inherit = __commonJS({
4082
4250
  createChangesByKey: () => createChangesByKey,
4083
4251
  createInheritedState: () => createInheritedState,
4084
4252
  findInheritedState: () => findInheritedState,
4085
- getChildStateInKey: () => getChildStateInKey,
4253
+ getChildStateInKey: () => getChildStateInKey2,
4086
4254
  getParentStateInKey: () => getParentStateInKey,
4087
4255
  isState: () => isState4
4088
4256
  });
@@ -4101,7 +4269,7 @@ var require_inherit = __commonJS({
4101
4269
  }
4102
4270
  return parentState;
4103
4271
  };
4104
- var getChildStateInKey = (stateKey, parentState, options) => {
4272
+ var getChildStateInKey2 = (stateKey, parentState, options = {}) => {
4105
4273
  const arr = stateKey.split("/");
4106
4274
  const arrLength = arr.length - 1;
4107
4275
  for (let i = 0; i < arrLength; i++) {
@@ -4131,7 +4299,7 @@ var require_inherit = __commonJS({
4131
4299
  }
4132
4300
  if (!parentState)
4133
4301
  return;
4134
- return getChildStateInKey(stateKey, parentState, options);
4302
+ return getChildStateInKey2(stateKey, parentState, options);
4135
4303
  };
4136
4304
  var createInheritedState = (element, parent) => {
4137
4305
  const ref = element.__ref;
@@ -4281,7 +4449,7 @@ var require_updateState = __commonJS({
4281
4449
  preventUpdate: options.preventHoistElementUpdate,
4282
4450
  overwrite: !options.replace
4283
4451
  });
4284
- const hasNotUpdated = !options.preventUpdate || !options.preventHoistElementUpdate;
4452
+ const hasNotUpdated = options.preventUpdate !== true || !options.preventHoistElementUpdate;
4285
4453
  if (!options.preventStateUpdateListener && hasNotUpdated) {
4286
4454
  (0, import_event.triggerEventOnUpdate)("stateUpdated", obj, element, options);
4287
4455
  }
@@ -4297,7 +4465,7 @@ var require_updateState = __commonJS({
4297
4465
  };
4298
4466
  var applyElementUpdate = (state, obj, options) => {
4299
4467
  const element = state.__element;
4300
- if (!options.preventUpdate) {
4468
+ if (options.preventUpdate !== true) {
4301
4469
  element.update({}, {
4302
4470
  ...options,
4303
4471
  updateByState: true
@@ -6941,11 +7109,11 @@ var require_moment = __commonJS({
6941
7109
  }
6942
7110
  }
6943
7111
  var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
6944
- function isString4(input) {
7112
+ function isString5(input) {
6945
7113
  return typeof input === "string" || input instanceof String;
6946
7114
  }
6947
7115
  function isMomentInput(input) {
6948
- return isMoment(input) || isDate(input) || isString4(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
7116
+ return isMoment(input) || isDate(input) || isString5(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
6949
7117
  }
6950
7118
  function isMomentInputObject(input) {
6951
7119
  var objectTest = isObject7(input) && !isObjectEmpty(input), propertyTest = false, properties = [
@@ -6984,7 +7152,7 @@ var require_moment = __commonJS({
6984
7152
  var arrayTest = isArray7(input), dataTypeTest = false;
6985
7153
  if (arrayTest) {
6986
7154
  dataTypeTest = input.filter(function(item) {
6987
- return !isNumber(item) && isString4(input);
7155
+ return !isNumber(item) && isString5(input);
6988
7156
  }).length === 0;
6989
7157
  }
6990
7158
  return arrayTest && dataTypeTest;
@@ -8661,8 +8829,12 @@ var require_cjs9 = __commonJS({
8661
8829
  });
8662
8830
  module2.exports = __toCommonJS2(router_exports);
8663
8831
  var import_globals = require_cjs4();
8664
- var import_utils16 = require_cjs5();
8665
- var getActiveRoute = (route = import_globals.window.location.pathname, level) => `/${route.split("/")[level + 1]}`;
8832
+ var getActiveRoute = (level = 0, route = import_globals.window.location.pathname) => {
8833
+ const routeArray = route.split("/");
8834
+ const activeRoute = routeArray[level + 1];
8835
+ if (activeRoute)
8836
+ return `/${activeRoute}`;
8837
+ };
8666
8838
  var lastPathname;
8667
8839
  var lastLevel = 0;
8668
8840
  var defaultOptions = {
@@ -8673,52 +8845,52 @@ var require_cjs9 = __commonJS({
8673
8845
  scrollToNode: false,
8674
8846
  scrollNode: import_globals.document && import_globals.document.documentElement,
8675
8847
  scrollBody: false,
8676
- scrollDocument: true,
8677
8848
  useFragment: false,
8678
8849
  updateState: true,
8679
8850
  scrollToOffset: 0,
8680
8851
  scrollToOptions: { behavior: "smooth" }
8681
8852
  };
8682
- var router = (path, element, state = {}, options = defaultOptions) => {
8683
- (0, import_utils16.merge)(options, defaultOptions);
8853
+ var router = (path, element, state = {}, passedOptions = {}) => {
8854
+ const options = { ...defaultOptions, ...passedOptions };
8684
8855
  lastLevel = options.lastLevel;
8685
8856
  const [pathname, hash2] = path.split("#");
8686
8857
  const rootNode = element.node;
8687
- const route = getActiveRoute(pathname, options.level);
8688
- const content = element.routes[route] || element.routes["/*"];
8689
- const scrollNode = options.scrollDocument ? import_globals.document.documentElement : rootNode;
8858
+ const route = getActiveRoute(options.level, pathname);
8859
+ const content = element.routes[route || "/"] || element.routes["/*"];
8860
+ const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
8690
8861
  const hashChanged = hash2 && hash2 !== import_globals.window.location.hash.slice(1);
8691
8862
  const pathChanged = pathname !== lastPathname;
8692
8863
  lastPathname = pathname;
8693
- if (content) {
8694
- if (options.pushState)
8695
- import_globals.window.history.pushState(state, null, route + (hash2 ? `#${hash2}` : ""));
8696
- if (pathChanged || !hashChanged) {
8697
- element.set({ tag: options.useFragment && "fragment", extend: content });
8698
- if (options.updateState) {
8699
- element.state.update({ route, hash: hash2 }, {
8700
- preventContentUpdate: !options.stateContentUpdate
8701
- });
8702
- }
8703
- }
8704
- if (options.scrollToTop) {
8705
- scrollNode.scrollTo({
8706
- ...options.scrollToOptions || {},
8707
- top: 0,
8708
- left: 0
8709
- });
8710
- }
8711
- if (options.scrollToNode) {
8712
- content.content.node.scrollTo({
8713
- ...options.scrollToOptions || {},
8714
- top: 0,
8715
- left: 0
8716
- });
8864
+ if (!content)
8865
+ return;
8866
+ if (options.pushState) {
8867
+ import_globals.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
8868
+ }
8869
+ if (pathChanged || !hashChanged) {
8870
+ if (options.updateState) {
8871
+ element.state.update({ route, hash: hash2 }, { preventContentUpdate: true });
8717
8872
  }
8873
+ element.set({
8874
+ tag: options.useFragment && "fragment",
8875
+ extend: content
8876
+ });
8877
+ }
8878
+ if (options.scrollToTop) {
8879
+ scrollNode.scrollTo({
8880
+ ...options.scrollToOptions || {},
8881
+ top: 0,
8882
+ left: 0
8883
+ });
8884
+ }
8885
+ if (options.scrollToNode) {
8886
+ content.content.node.scrollTo({
8887
+ ...options.scrollToOptions || {},
8888
+ top: 0,
8889
+ left: 0
8890
+ });
8718
8891
  }
8719
8892
  if (hash2) {
8720
8893
  const activeNode = import_globals.document.getElementById(hash2);
8721
- console.log(hash2, activeNode);
8722
8894
  if (activeNode) {
8723
8895
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
8724
8896
  scrollNode.scrollTo({
@@ -9248,7 +9420,7 @@ var require_cjs10 = __commonJS({
9248
9420
  mergeArrayExclude: () => mergeArrayExclude,
9249
9421
  mergeIfExisted: () => mergeIfExisted,
9250
9422
  overwrite: () => overwrite,
9251
- overwriteDeep: () => overwriteDeep,
9423
+ overwriteDeep: () => overwriteDeep2,
9252
9424
  overwriteShallow: () => overwriteShallow4,
9253
9425
  removeFromObject: () => removeFromObject
9254
9426
  });
@@ -9506,14 +9678,14 @@ var require_cjs10 = __commonJS({
9506
9678
  }
9507
9679
  return obj;
9508
9680
  };
9509
- var overwriteDeep = (obj, params, excludeFrom = []) => {
9681
+ var overwriteDeep2 = (obj, params, excludeFrom = []) => {
9510
9682
  for (const e in params) {
9511
9683
  if (excludeFrom.includes(e) || e.includes("__"))
9512
9684
  continue;
9513
9685
  const objProp = obj[e];
9514
9686
  const paramsProp = params[e];
9515
9687
  if ((0, import_types.isObjectLike)(objProp) && (0, import_types.isObjectLike)(paramsProp)) {
9516
- overwriteDeep(objProp, paramsProp);
9688
+ overwriteDeep2(objProp, paramsProp);
9517
9689
  } else if (paramsProp !== void 0) {
9518
9690
  obj[e] = paramsProp;
9519
9691
  }
@@ -11179,6 +11351,9 @@ var require_cjs10 = __commonJS({
11179
11351
  configReset.h6 = configTemplates.h6;
11180
11352
  }
11181
11353
  const { body, ...templates } = TYPOGRAPHY2.templates;
11354
+ const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme4("document", `@${CONFIG22.globalTheme}`) : {};
11355
+ if (RESET2.html)
11356
+ (0, import_utils24.overwriteDeep)(RESET2.html, globalTheme);
11182
11357
  return (0, import_utils24.deepMerge)((0, import_utils24.merge)(RESET2, reset), {
11183
11358
  html: {
11184
11359
  position: "absolute",
@@ -11190,8 +11365,8 @@ var require_cjs10 = __commonJS({
11190
11365
  margin: "0",
11191
11366
  WebkitFontSmoothing: "subpixel-antialiased",
11192
11367
  scrollBehavior: "smooth",
11368
+ ...globalTheme,
11193
11369
  fontSize: TYPOGRAPHY2.browserDefault + "px",
11194
- ...CONFIG22.useDocumentTheme ? getMediaTheme4("document", `@${CONFIG22.globalTheme}`) : {},
11195
11370
  fontFamily: DOCUMENT2.fontFamily,
11196
11371
  lineHeight: DOCUMENT2.lineHeight
11197
11372
  },
@@ -12366,6 +12541,12 @@ var Collection = {
12366
12541
  $setCollection: (param, el, state) => {
12367
12542
  if (!param)
12368
12543
  return;
12544
+ if ((0, import_utils2.isString)(param)) {
12545
+ if (param === "state")
12546
+ param = state.parse();
12547
+ else
12548
+ param = (0, import_state.getChildStateInKey)(param, state);
12549
+ }
12369
12550
  let data = (0, import_utils2.isArray)(param) ? param : [];
12370
12551
  if ((0, import_utils2.isObject)(param)) {
12371
12552
  for (const obj in param) {
@@ -12386,6 +12567,12 @@ var Collection = {
12386
12567
  $setStateCollection: (param, el, state) => {
12387
12568
  if (!param)
12388
12569
  return;
12570
+ if ((0, import_utils2.isString)(param)) {
12571
+ if (param === "state")
12572
+ param = state.parse();
12573
+ else
12574
+ param = (0, import_state.getChildStateInKey)(param, state);
12575
+ }
12389
12576
  if ((0, import_state.isState)(param))
12390
12577
  param = param.parse();
12391
12578
  if ((0, import_utils2.isNot)(param)("array", "object"))
@@ -12409,6 +12596,12 @@ var Collection = {
12409
12596
  $setPropsCollection: (param, el, state) => {
12410
12597
  if (!param)
12411
12598
  return;
12599
+ if ((0, import_utils2.isString)(param)) {
12600
+ if (param === "state")
12601
+ param = state.parse();
12602
+ else
12603
+ param = (0, import_state.getChildStateInKey)(param, state);
12604
+ }
12412
12605
  if ((0, import_state.isState)(param))
12413
12606
  param = param.parse();
12414
12607
  if ((0, import_utils2.isNot)(param)("array", "object"))
@@ -14917,7 +15110,6 @@ var Checkbox = {
14917
15110
  on: {
14918
15111
  render: ({ parent, node: node2 }) => {
14919
15112
  const { indeterminate } = parent.props;
14920
- console.log(indeterminate);
14921
15113
  node2.indeterminate = indeterminate;
14922
15114
  },
14923
15115
  update: ({ parent, node: node2 }) => {
@@ -15093,7 +15285,13 @@ var IconText2 = {
15093
15285
  props: {},
15094
15286
  if: ({ props: props7 }) => props7.name || props7.icon
15095
15287
  },
15096
- text: ({ props: props7 }) => props7.text
15288
+ text: ({ props: props7 }) => props7.text,
15289
+ ".reversed": {
15290
+ props: { flow: "row-reverse" }
15291
+ },
15292
+ ".vertical": {
15293
+ props: { flow: "column" }
15294
+ }
15097
15295
  };
15098
15296
 
15099
15297
  // Link/index.js