@symbo.ls/uikit 2.11.221 → 2.11.225
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 +250 -110
- package/dist/index.cjs.js.map +4 -4
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -99,7 +99,7 @@ var require_cjs = __commonJS({
|
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
var require_key2 = __commonJS2({
|
|
102
|
-
"
|
|
102
|
+
"../../../domql/packages/utils/dist/cjs/key.js"(exports2, module22) {
|
|
103
103
|
"use strict";
|
|
104
104
|
var __defProp22 = Object.defineProperty;
|
|
105
105
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -136,7 +136,7 @@ var require_cjs = __commonJS({
|
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
138
|
var require_env2 = __commonJS2({
|
|
139
|
-
"
|
|
139
|
+
"../../../domql/packages/utils/dist/cjs/env.js"(exports2, module22) {
|
|
140
140
|
"use strict";
|
|
141
141
|
var __defProp22 = Object.defineProperty;
|
|
142
142
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -172,7 +172,7 @@ var require_cjs = __commonJS({
|
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
var require_globals2 = __commonJS2({
|
|
175
|
-
"
|
|
175
|
+
"../../../domql/packages/utils/dist/cjs/globals.js"(exports2, module22) {
|
|
176
176
|
"use strict";
|
|
177
177
|
var __defProp22 = Object.defineProperty;
|
|
178
178
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -206,7 +206,7 @@ var require_cjs = __commonJS({
|
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
var require_node2 = __commonJS2({
|
|
209
|
-
"
|
|
209
|
+
"../../../domql/packages/utils/dist/cjs/node.js"(exports2, module22) {
|
|
210
210
|
"use strict";
|
|
211
211
|
var __defProp22 = Object.defineProperty;
|
|
212
212
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -241,7 +241,7 @@ var require_cjs = __commonJS({
|
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
243
|
var require_types2 = __commonJS2({
|
|
244
|
-
"
|
|
244
|
+
"../../../domql/packages/utils/dist/cjs/types.js"(exports2, module22) {
|
|
245
245
|
"use strict";
|
|
246
246
|
var __defProp22 = Object.defineProperty;
|
|
247
247
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -264,8 +264,9 @@ var require_cjs = __commonJS({
|
|
|
264
264
|
__export22(types_exports, {
|
|
265
265
|
TYPES: () => TYPES,
|
|
266
266
|
is: () => is,
|
|
267
|
-
isArray: () =>
|
|
267
|
+
isArray: () => isArray8,
|
|
268
268
|
isBoolean: () => isBoolean,
|
|
269
|
+
isDate: () => isDate,
|
|
269
270
|
isDefined: () => isDefined2,
|
|
270
271
|
isFunction: () => isFunction22,
|
|
271
272
|
isNot: () => isNot2,
|
|
@@ -288,23 +289,25 @@ var require_cjs = __commonJS({
|
|
|
288
289
|
var isFunction22 = (arg) => typeof arg === "function";
|
|
289
290
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
290
291
|
var isNull = (arg) => arg === null;
|
|
291
|
-
var
|
|
292
|
+
var isArray8 = (arg) => Array.isArray(arg);
|
|
293
|
+
var isDate = (d) => d instanceof Date;
|
|
292
294
|
var isObjectLike3 = (arg) => {
|
|
293
295
|
if (arg === null)
|
|
294
296
|
return false;
|
|
295
297
|
return typeof arg === "object";
|
|
296
298
|
};
|
|
297
299
|
var isDefined2 = (arg) => {
|
|
298
|
-
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) ||
|
|
300
|
+
return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber2(arg) || isFunction22(arg) || isArray8(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
299
301
|
};
|
|
300
302
|
var isUndefined2 = (arg) => {
|
|
301
303
|
return arg === void 0;
|
|
302
304
|
};
|
|
303
305
|
var TYPES = {
|
|
304
306
|
boolean: isBoolean,
|
|
305
|
-
array:
|
|
307
|
+
array: isArray8,
|
|
306
308
|
object: isObject8,
|
|
307
309
|
string: isString10,
|
|
310
|
+
date: isDate,
|
|
308
311
|
number: isNumber2,
|
|
309
312
|
null: isNull,
|
|
310
313
|
function: isFunction22,
|
|
@@ -326,7 +329,7 @@ var require_cjs = __commonJS({
|
|
|
326
329
|
}
|
|
327
330
|
});
|
|
328
331
|
var require_array2 = __commonJS2({
|
|
329
|
-
"
|
|
332
|
+
"../../../domql/packages/utils/dist/cjs/array.js"(exports2, module22) {
|
|
330
333
|
"use strict";
|
|
331
334
|
var __defProp22 = Object.defineProperty;
|
|
332
335
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -355,6 +358,8 @@ var require_cjs = __commonJS({
|
|
|
355
358
|
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
356
359
|
mergeArray: () => mergeArray,
|
|
357
360
|
removeFromArray: () => removeFromArray,
|
|
361
|
+
removeValueFromArray: () => removeValueFromArray,
|
|
362
|
+
removeValueFromArrayAll: () => removeValueFromArrayAll,
|
|
358
363
|
swapItemsInArray: () => swapItemsInArray
|
|
359
364
|
});
|
|
360
365
|
module22.exports = __toCommonJS22(array_exports);
|
|
@@ -420,10 +425,22 @@ var require_cjs = __commonJS({
|
|
|
420
425
|
}, nestedObject);
|
|
421
426
|
return nestedObject;
|
|
422
427
|
};
|
|
428
|
+
var removeValueFromArray = (arr, value) => {
|
|
429
|
+
const index = arr.indexOf(value);
|
|
430
|
+
if (index > -1) {
|
|
431
|
+
const newArray = [...arr];
|
|
432
|
+
newArray.splice(index, 1);
|
|
433
|
+
return newArray;
|
|
434
|
+
}
|
|
435
|
+
return arr.slice();
|
|
436
|
+
};
|
|
437
|
+
var removeValueFromArrayAll = (arr, value) => {
|
|
438
|
+
return arr.filter((item) => item !== value);
|
|
439
|
+
};
|
|
423
440
|
}
|
|
424
441
|
});
|
|
425
442
|
var require_string2 = __commonJS2({
|
|
426
|
-
"
|
|
443
|
+
"../../../domql/packages/utils/dist/cjs/string.js"(exports2, module22) {
|
|
427
444
|
"use strict";
|
|
428
445
|
var __defProp22 = Object.defineProperty;
|
|
429
446
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -481,7 +498,7 @@ var require_cjs = __commonJS({
|
|
|
481
498
|
}
|
|
482
499
|
});
|
|
483
500
|
var require_object2 = __commonJS2({
|
|
484
|
-
"
|
|
501
|
+
"../../../domql/packages/utils/dist/cjs/object.js"(exports2, module22) {
|
|
485
502
|
"use strict";
|
|
486
503
|
var __defProp22 = Object.defineProperty;
|
|
487
504
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -507,6 +524,7 @@ var require_cjs = __commonJS({
|
|
|
507
524
|
deepCloneExclude: () => deepCloneExclude,
|
|
508
525
|
deepContains: () => deepContains,
|
|
509
526
|
deepDestringify: () => deepDestringify,
|
|
527
|
+
deepDiff: () => deepDiff2,
|
|
510
528
|
deepMerge: () => deepMerge3,
|
|
511
529
|
deepStringify: () => deepStringify,
|
|
512
530
|
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
@@ -515,7 +533,11 @@ var require_cjs = __commonJS({
|
|
|
515
533
|
diffObjects: () => diffObjects,
|
|
516
534
|
exec: () => exec2,
|
|
517
535
|
flattenRecursive: () => flattenRecursive,
|
|
536
|
+
hasOwnProperty: () => hasOwnProperty,
|
|
537
|
+
isEmpty: () => isEmpty,
|
|
538
|
+
isEmptyObject: () => isEmptyObject,
|
|
518
539
|
isEqualDeep: () => isEqualDeep,
|
|
540
|
+
makeObjectWithoutPrototype: () => makeObjectWithoutPrototype,
|
|
519
541
|
map: () => map,
|
|
520
542
|
merge: () => merge5,
|
|
521
543
|
mergeArrayExclude: () => mergeArrayExclude,
|
|
@@ -549,8 +571,8 @@ var require_cjs = __commonJS({
|
|
|
549
571
|
};
|
|
550
572
|
var merge5 = (element, obj, excludeFrom = []) => {
|
|
551
573
|
for (const e in obj) {
|
|
552
|
-
const
|
|
553
|
-
if (!
|
|
574
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
|
|
575
|
+
if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
|
|
554
576
|
continue;
|
|
555
577
|
const elementProp = element[e];
|
|
556
578
|
const objProp = obj[e];
|
|
@@ -562,8 +584,8 @@ var require_cjs = __commonJS({
|
|
|
562
584
|
};
|
|
563
585
|
var deepMerge3 = (element, extend, excludeFrom = []) => {
|
|
564
586
|
for (const e in extend) {
|
|
565
|
-
const
|
|
566
|
-
if (!
|
|
587
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
|
|
588
|
+
if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
|
|
567
589
|
continue;
|
|
568
590
|
const elementProp = element[e];
|
|
569
591
|
const extendProp = extend[e];
|
|
@@ -578,8 +600,8 @@ var require_cjs = __commonJS({
|
|
|
578
600
|
var clone = (obj, excludeFrom = []) => {
|
|
579
601
|
const o = {};
|
|
580
602
|
for (const prop in obj) {
|
|
581
|
-
const
|
|
582
|
-
if (!
|
|
603
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
604
|
+
if (!hasOwnProperty2 || excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
583
605
|
continue;
|
|
584
606
|
o[prop] = obj[prop];
|
|
585
607
|
}
|
|
@@ -591,8 +613,8 @@ var require_cjs = __commonJS({
|
|
|
591
613
|
}
|
|
592
614
|
const o = {};
|
|
593
615
|
for (const k in obj) {
|
|
594
|
-
const
|
|
595
|
-
if (!
|
|
616
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, k);
|
|
617
|
+
if (!hasOwnProperty2 || excludeFrom.includes(k) || k.startsWith("__"))
|
|
596
618
|
continue;
|
|
597
619
|
let v = obj[k];
|
|
598
620
|
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
@@ -610,7 +632,7 @@ var require_cjs = __commonJS({
|
|
|
610
632
|
var mergeArrayExclude = (arr, excl = []) => {
|
|
611
633
|
return arr.reduce((acc, curr) => deepMerge3(acc, deepCloneExclude(curr, excl)), {});
|
|
612
634
|
};
|
|
613
|
-
var deepClone22 = (obj, excludeFrom = []) => {
|
|
635
|
+
var deepClone22 = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
614
636
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
615
637
|
for (const prop in obj) {
|
|
616
638
|
if (prop === "__proto__")
|
|
@@ -618,11 +640,13 @@ var require_cjs = __commonJS({
|
|
|
618
640
|
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
619
641
|
continue;
|
|
620
642
|
let objProp = obj[prop];
|
|
643
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
644
|
+
continue;
|
|
621
645
|
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
622
646
|
objProp = (0, import_array.mergeArray)(objProp);
|
|
623
647
|
}
|
|
624
648
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
625
|
-
o[prop] = deepClone22(objProp, excludeFrom);
|
|
649
|
+
o[prop] = deepClone22(objProp, excludeFrom, cleanUndefined);
|
|
626
650
|
} else
|
|
627
651
|
o[prop] = objProp;
|
|
628
652
|
}
|
|
@@ -676,7 +700,7 @@ var require_cjs = __commonJS({
|
|
|
676
700
|
}
|
|
677
701
|
}
|
|
678
702
|
str += `${spaces} ]`;
|
|
679
|
-
} else if ((0, import_types.
|
|
703
|
+
} else if ((0, import_types.isObjectLike)(value)) {
|
|
680
704
|
str += objectToString(value, indent + 1);
|
|
681
705
|
} else if ((0, import_types.isString)(value)) {
|
|
682
706
|
str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
|
|
@@ -716,8 +740,8 @@ var require_cjs = __commonJS({
|
|
|
716
740
|
};
|
|
717
741
|
var deepDestringify = (obj, destringified = {}) => {
|
|
718
742
|
for (const prop in obj) {
|
|
719
|
-
const
|
|
720
|
-
if (!
|
|
743
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
744
|
+
if (!hasOwnProperty2)
|
|
721
745
|
continue;
|
|
722
746
|
const objProp = obj[prop];
|
|
723
747
|
if ((0, import_types.isString)(objProp)) {
|
|
@@ -810,6 +834,39 @@ var require_cjs = __commonJS({
|
|
|
810
834
|
}
|
|
811
835
|
return cache;
|
|
812
836
|
};
|
|
837
|
+
var hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
|
|
838
|
+
var isEmpty = (o) => Object.keys(o).length === 0;
|
|
839
|
+
var isEmptyObject = (o) => (0, import_types.isObject)(o) && isEmpty(o);
|
|
840
|
+
var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
|
|
841
|
+
var deepDiff2 = (lhs, rhs) => {
|
|
842
|
+
if (lhs === rhs)
|
|
843
|
+
return {};
|
|
844
|
+
if (!(0, import_types.isObjectLike)(lhs) || !(0, import_types.isObjectLike)(rhs))
|
|
845
|
+
return rhs;
|
|
846
|
+
const deletedValues = Object.keys(lhs).reduce((acc, key) => {
|
|
847
|
+
if (!hasOwnProperty(rhs, key)) {
|
|
848
|
+
acc[key] = void 0;
|
|
849
|
+
}
|
|
850
|
+
return acc;
|
|
851
|
+
}, makeObjectWithoutPrototype());
|
|
852
|
+
if ((0, import_types.isDate)(lhs) || (0, import_types.isDate)(rhs)) {
|
|
853
|
+
if (lhs.valueOf() === rhs.valueOf())
|
|
854
|
+
return {};
|
|
855
|
+
return rhs;
|
|
856
|
+
}
|
|
857
|
+
return Object.keys(rhs).reduce((acc, key) => {
|
|
858
|
+
if (!hasOwnProperty(lhs, key)) {
|
|
859
|
+
acc[key] = rhs[key];
|
|
860
|
+
return acc;
|
|
861
|
+
}
|
|
862
|
+
const difference = diff(lhs[key], rhs[key]);
|
|
863
|
+
if (isEmptyObject(difference) && !(0, import_types.isDate)(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) {
|
|
864
|
+
return acc;
|
|
865
|
+
}
|
|
866
|
+
acc[key] = difference;
|
|
867
|
+
return acc;
|
|
868
|
+
}, deletedValues);
|
|
869
|
+
};
|
|
813
870
|
var overwrite = (element, params, excludeFrom = []) => {
|
|
814
871
|
const { ref } = element;
|
|
815
872
|
const changes = {};
|
|
@@ -905,8 +962,8 @@ var require_cjs = __commonJS({
|
|
|
905
962
|
}
|
|
906
963
|
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
|
|
907
964
|
for (const key in obj1) {
|
|
908
|
-
const
|
|
909
|
-
if (!
|
|
965
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj2, key);
|
|
966
|
+
if (!hasOwnProperty2 || !deepContains(obj1[key], obj2[key])) {
|
|
910
967
|
return false;
|
|
911
968
|
}
|
|
912
969
|
}
|
|
@@ -931,7 +988,7 @@ var require_cjs = __commonJS({
|
|
|
931
988
|
}
|
|
932
989
|
});
|
|
933
990
|
var require_function2 = __commonJS2({
|
|
934
|
-
"
|
|
991
|
+
"../../../domql/packages/utils/dist/cjs/function.js"(exports2, module22) {
|
|
935
992
|
"use strict";
|
|
936
993
|
var __defProp22 = Object.defineProperty;
|
|
937
994
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1004,7 +1061,7 @@ var require_cjs = __commonJS({
|
|
|
1004
1061
|
}
|
|
1005
1062
|
});
|
|
1006
1063
|
var require_log2 = __commonJS2({
|
|
1007
|
-
"
|
|
1064
|
+
"../../../domql/packages/utils/dist/cjs/log.js"(exports2, module22) {
|
|
1008
1065
|
"use strict";
|
|
1009
1066
|
var __defProp22 = Object.defineProperty;
|
|
1010
1067
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1043,7 +1100,7 @@ var require_cjs = __commonJS({
|
|
|
1043
1100
|
}
|
|
1044
1101
|
});
|
|
1045
1102
|
var require_cookie2 = __commonJS2({
|
|
1046
|
-
"
|
|
1103
|
+
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports2, module22) {
|
|
1047
1104
|
"use strict";
|
|
1048
1105
|
var __defProp22 = Object.defineProperty;
|
|
1049
1106
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1097,7 +1154,7 @@ var require_cjs = __commonJS({
|
|
|
1097
1154
|
}
|
|
1098
1155
|
});
|
|
1099
1156
|
var require_tags2 = __commonJS2({
|
|
1100
|
-
"
|
|
1157
|
+
"../../../domql/packages/utils/dist/cjs/tags.js"(exports2, module22) {
|
|
1101
1158
|
"use strict";
|
|
1102
1159
|
var __defProp22 = Object.defineProperty;
|
|
1103
1160
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1260,7 +1317,7 @@ var require_cjs = __commonJS({
|
|
|
1260
1317
|
}
|
|
1261
1318
|
});
|
|
1262
1319
|
var require_cjs22 = __commonJS2({
|
|
1263
|
-
"
|
|
1320
|
+
"../../../domql/packages/utils/dist/cjs/index.js"(exports2, module22) {
|
|
1264
1321
|
"use strict";
|
|
1265
1322
|
var __defProp22 = Object.defineProperty;
|
|
1266
1323
|
var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
|
|
@@ -1567,15 +1624,17 @@ var require_cjs = __commonJS({
|
|
|
1567
1624
|
const arr = colorStringToRgbaArray(color);
|
|
1568
1625
|
if (!arr) {
|
|
1569
1626
|
if (ENV === "test" || ENV === "development")
|
|
1570
|
-
console.warn(color + "color is not rgba");
|
|
1627
|
+
console.warn(color + " color is not rgba");
|
|
1571
1628
|
return;
|
|
1572
1629
|
}
|
|
1573
1630
|
arr[3] = opacity;
|
|
1574
1631
|
return `rgba(${arr})`;
|
|
1575
1632
|
};
|
|
1576
1633
|
var getRgbTone = (rgb, tone) => {
|
|
1634
|
+
if ((0, import_utils14.isString)(rgb) && rgb.includes("rgb"))
|
|
1635
|
+
rgb = colorStringToRgbaArray(rgb).join(", ");
|
|
1577
1636
|
if ((0, import_utils14.isString)(rgb))
|
|
1578
|
-
rgb = rgb.split(",
|
|
1637
|
+
rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
|
|
1579
1638
|
if ((0, import_utils14.isNumber)(tone))
|
|
1580
1639
|
tone += "";
|
|
1581
1640
|
const toHex = rgbArrayToHex(rgb);
|
|
@@ -2501,6 +2560,8 @@ var require_cjs = __commonJS({
|
|
|
2501
2560
|
var import_utils122 = __toESM2(require_cjs22(), 1);
|
|
2502
2561
|
var setFont = (val, key) => {
|
|
2503
2562
|
const CSSvar = `--font-${key}`;
|
|
2563
|
+
if (!val || (0, import_utils122.isArray)(val) && !val[0])
|
|
2564
|
+
return;
|
|
2504
2565
|
const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
|
|
2505
2566
|
return { var: CSSvar, value: val, fontFace };
|
|
2506
2567
|
};
|
|
@@ -3122,9 +3183,9 @@ var require_cjs = __commonJS({
|
|
|
3122
3183
|
}
|
|
3123
3184
|
});
|
|
3124
3185
|
|
|
3125
|
-
//
|
|
3186
|
+
// ../../../domql/packages/utils/dist/cjs/key.js
|
|
3126
3187
|
var require_key = __commonJS({
|
|
3127
|
-
"
|
|
3188
|
+
"../../../domql/packages/utils/dist/cjs/key.js"(exports, module2) {
|
|
3128
3189
|
"use strict";
|
|
3129
3190
|
var __defProp2 = Object.defineProperty;
|
|
3130
3191
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3161,9 +3222,9 @@ var require_key = __commonJS({
|
|
|
3161
3222
|
}
|
|
3162
3223
|
});
|
|
3163
3224
|
|
|
3164
|
-
//
|
|
3225
|
+
// ../../../domql/packages/utils/dist/cjs/env.js
|
|
3165
3226
|
var require_env = __commonJS({
|
|
3166
|
-
"
|
|
3227
|
+
"../../../domql/packages/utils/dist/cjs/env.js"(exports, module2) {
|
|
3167
3228
|
"use strict";
|
|
3168
3229
|
var __defProp2 = Object.defineProperty;
|
|
3169
3230
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3199,9 +3260,9 @@ var require_env = __commonJS({
|
|
|
3199
3260
|
}
|
|
3200
3261
|
});
|
|
3201
3262
|
|
|
3202
|
-
//
|
|
3263
|
+
// ../../../domql/packages/utils/dist/cjs/globals.js
|
|
3203
3264
|
var require_globals = __commonJS({
|
|
3204
|
-
"
|
|
3265
|
+
"../../../domql/packages/utils/dist/cjs/globals.js"(exports, module2) {
|
|
3205
3266
|
"use strict";
|
|
3206
3267
|
var __defProp2 = Object.defineProperty;
|
|
3207
3268
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3235,9 +3296,9 @@ var require_globals = __commonJS({
|
|
|
3235
3296
|
}
|
|
3236
3297
|
});
|
|
3237
3298
|
|
|
3238
|
-
//
|
|
3299
|
+
// ../../../domql/packages/utils/dist/cjs/node.js
|
|
3239
3300
|
var require_node = __commonJS({
|
|
3240
|
-
"
|
|
3301
|
+
"../../../domql/packages/utils/dist/cjs/node.js"(exports, module2) {
|
|
3241
3302
|
"use strict";
|
|
3242
3303
|
var __defProp2 = Object.defineProperty;
|
|
3243
3304
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3272,9 +3333,9 @@ var require_node = __commonJS({
|
|
|
3272
3333
|
}
|
|
3273
3334
|
});
|
|
3274
3335
|
|
|
3275
|
-
//
|
|
3336
|
+
// ../../../domql/packages/utils/dist/cjs/types.js
|
|
3276
3337
|
var require_types = __commonJS({
|
|
3277
|
-
"
|
|
3338
|
+
"../../../domql/packages/utils/dist/cjs/types.js"(exports, module2) {
|
|
3278
3339
|
"use strict";
|
|
3279
3340
|
var __defProp2 = Object.defineProperty;
|
|
3280
3341
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3299,6 +3360,7 @@ var require_types = __commonJS({
|
|
|
3299
3360
|
is: () => is,
|
|
3300
3361
|
isArray: () => isArray3,
|
|
3301
3362
|
isBoolean: () => isBoolean,
|
|
3363
|
+
isDate: () => isDate,
|
|
3302
3364
|
isDefined: () => isDefined2,
|
|
3303
3365
|
isFunction: () => isFunction3,
|
|
3304
3366
|
isNot: () => isNot2,
|
|
@@ -3322,13 +3384,14 @@ var require_types = __commonJS({
|
|
|
3322
3384
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
3323
3385
|
var isNull = (arg) => arg === null;
|
|
3324
3386
|
var isArray3 = (arg) => Array.isArray(arg);
|
|
3387
|
+
var isDate = (d) => d instanceof Date;
|
|
3325
3388
|
var isObjectLike2 = (arg) => {
|
|
3326
3389
|
if (arg === null)
|
|
3327
3390
|
return false;
|
|
3328
3391
|
return typeof arg === "object";
|
|
3329
3392
|
};
|
|
3330
3393
|
var isDefined2 = (arg) => {
|
|
3331
|
-
return isObject4(arg) || isObjectLike2(arg) || isString6(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isNull(arg);
|
|
3394
|
+
return isObject4(arg) || isObjectLike2(arg) || isString6(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
3332
3395
|
};
|
|
3333
3396
|
var isUndefined2 = (arg) => {
|
|
3334
3397
|
return arg === void 0;
|
|
@@ -3338,6 +3401,7 @@ var require_types = __commonJS({
|
|
|
3338
3401
|
array: isArray3,
|
|
3339
3402
|
object: isObject4,
|
|
3340
3403
|
string: isString6,
|
|
3404
|
+
date: isDate,
|
|
3341
3405
|
number: isNumber,
|
|
3342
3406
|
null: isNull,
|
|
3343
3407
|
function: isFunction3,
|
|
@@ -3359,9 +3423,9 @@ var require_types = __commonJS({
|
|
|
3359
3423
|
}
|
|
3360
3424
|
});
|
|
3361
3425
|
|
|
3362
|
-
//
|
|
3426
|
+
// ../../../domql/packages/utils/dist/cjs/array.js
|
|
3363
3427
|
var require_array = __commonJS({
|
|
3364
|
-
"
|
|
3428
|
+
"../../../domql/packages/utils/dist/cjs/array.js"(exports, module2) {
|
|
3365
3429
|
"use strict";
|
|
3366
3430
|
var __defProp2 = Object.defineProperty;
|
|
3367
3431
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3390,6 +3454,8 @@ var require_array = __commonJS({
|
|
|
3390
3454
|
mergeAndCloneIfArray: () => mergeAndCloneIfArray,
|
|
3391
3455
|
mergeArray: () => mergeArray,
|
|
3392
3456
|
removeFromArray: () => removeFromArray,
|
|
3457
|
+
removeValueFromArray: () => removeValueFromArray,
|
|
3458
|
+
removeValueFromArrayAll: () => removeValueFromArrayAll,
|
|
3393
3459
|
swapItemsInArray: () => swapItemsInArray
|
|
3394
3460
|
});
|
|
3395
3461
|
module2.exports = __toCommonJS2(array_exports);
|
|
@@ -3455,12 +3521,24 @@ var require_array = __commonJS({
|
|
|
3455
3521
|
}, nestedObject);
|
|
3456
3522
|
return nestedObject;
|
|
3457
3523
|
};
|
|
3524
|
+
var removeValueFromArray = (arr, value) => {
|
|
3525
|
+
const index = arr.indexOf(value);
|
|
3526
|
+
if (index > -1) {
|
|
3527
|
+
const newArray = [...arr];
|
|
3528
|
+
newArray.splice(index, 1);
|
|
3529
|
+
return newArray;
|
|
3530
|
+
}
|
|
3531
|
+
return arr.slice();
|
|
3532
|
+
};
|
|
3533
|
+
var removeValueFromArrayAll = (arr, value) => {
|
|
3534
|
+
return arr.filter((item) => item !== value);
|
|
3535
|
+
};
|
|
3458
3536
|
}
|
|
3459
3537
|
});
|
|
3460
3538
|
|
|
3461
|
-
//
|
|
3539
|
+
// ../../../domql/packages/utils/dist/cjs/string.js
|
|
3462
3540
|
var require_string = __commonJS({
|
|
3463
|
-
"
|
|
3541
|
+
"../../../domql/packages/utils/dist/cjs/string.js"(exports, module2) {
|
|
3464
3542
|
"use strict";
|
|
3465
3543
|
var __defProp2 = Object.defineProperty;
|
|
3466
3544
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3518,9 +3596,9 @@ var require_string = __commonJS({
|
|
|
3518
3596
|
}
|
|
3519
3597
|
});
|
|
3520
3598
|
|
|
3521
|
-
//
|
|
3599
|
+
// ../../../domql/packages/utils/dist/cjs/object.js
|
|
3522
3600
|
var require_object = __commonJS({
|
|
3523
|
-
"
|
|
3601
|
+
"../../../domql/packages/utils/dist/cjs/object.js"(exports, module2) {
|
|
3524
3602
|
"use strict";
|
|
3525
3603
|
var __defProp2 = Object.defineProperty;
|
|
3526
3604
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -3546,6 +3624,7 @@ var require_object = __commonJS({
|
|
|
3546
3624
|
deepCloneExclude: () => deepCloneExclude,
|
|
3547
3625
|
deepContains: () => deepContains,
|
|
3548
3626
|
deepDestringify: () => deepDestringify,
|
|
3627
|
+
deepDiff: () => deepDiff2,
|
|
3549
3628
|
deepMerge: () => deepMerge2,
|
|
3550
3629
|
deepStringify: () => deepStringify,
|
|
3551
3630
|
detachFunctionsFromObject: () => detachFunctionsFromObject,
|
|
@@ -3554,7 +3633,11 @@ var require_object = __commonJS({
|
|
|
3554
3633
|
diffObjects: () => diffObjects,
|
|
3555
3634
|
exec: () => exec2,
|
|
3556
3635
|
flattenRecursive: () => flattenRecursive,
|
|
3636
|
+
hasOwnProperty: () => hasOwnProperty,
|
|
3637
|
+
isEmpty: () => isEmpty,
|
|
3638
|
+
isEmptyObject: () => isEmptyObject,
|
|
3557
3639
|
isEqualDeep: () => isEqualDeep,
|
|
3640
|
+
makeObjectWithoutPrototype: () => makeObjectWithoutPrototype,
|
|
3558
3641
|
map: () => map,
|
|
3559
3642
|
merge: () => merge3,
|
|
3560
3643
|
mergeArrayExclude: () => mergeArrayExclude,
|
|
@@ -3588,8 +3671,8 @@ var require_object = __commonJS({
|
|
|
3588
3671
|
};
|
|
3589
3672
|
var merge3 = (element, obj, excludeFrom = []) => {
|
|
3590
3673
|
for (const e in obj) {
|
|
3591
|
-
const
|
|
3592
|
-
if (!
|
|
3674
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, e);
|
|
3675
|
+
if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
|
|
3593
3676
|
continue;
|
|
3594
3677
|
const elementProp = element[e];
|
|
3595
3678
|
const objProp = obj[e];
|
|
@@ -3601,8 +3684,8 @@ var require_object = __commonJS({
|
|
|
3601
3684
|
};
|
|
3602
3685
|
var deepMerge2 = (element, extend, excludeFrom = []) => {
|
|
3603
3686
|
for (const e in extend) {
|
|
3604
|
-
const
|
|
3605
|
-
if (!
|
|
3687
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(extend, e);
|
|
3688
|
+
if (!hasOwnProperty2 || excludeFrom.includes(e) || e.startsWith("__"))
|
|
3606
3689
|
continue;
|
|
3607
3690
|
const elementProp = element[e];
|
|
3608
3691
|
const extendProp = extend[e];
|
|
@@ -3617,8 +3700,8 @@ var require_object = __commonJS({
|
|
|
3617
3700
|
var clone = (obj, excludeFrom = []) => {
|
|
3618
3701
|
const o = {};
|
|
3619
3702
|
for (const prop in obj) {
|
|
3620
|
-
const
|
|
3621
|
-
if (!
|
|
3703
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3704
|
+
if (!hasOwnProperty2 || excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
3622
3705
|
continue;
|
|
3623
3706
|
o[prop] = obj[prop];
|
|
3624
3707
|
}
|
|
@@ -3630,8 +3713,8 @@ var require_object = __commonJS({
|
|
|
3630
3713
|
}
|
|
3631
3714
|
const o = {};
|
|
3632
3715
|
for (const k in obj) {
|
|
3633
|
-
const
|
|
3634
|
-
if (!
|
|
3716
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, k);
|
|
3717
|
+
if (!hasOwnProperty2 || excludeFrom.includes(k) || k.startsWith("__"))
|
|
3635
3718
|
continue;
|
|
3636
3719
|
let v = obj[k];
|
|
3637
3720
|
if (k === "extend" && (0, import_types.isArray)(v)) {
|
|
@@ -3649,7 +3732,7 @@ var require_object = __commonJS({
|
|
|
3649
3732
|
var mergeArrayExclude = (arr, excl = []) => {
|
|
3650
3733
|
return arr.reduce((acc, curr) => deepMerge2(acc, deepCloneExclude(curr, excl)), {});
|
|
3651
3734
|
};
|
|
3652
|
-
var deepClone3 = (obj, excludeFrom = []) => {
|
|
3735
|
+
var deepClone3 = (obj, excludeFrom = [], cleanUndefined = false) => {
|
|
3653
3736
|
const o = (0, import_types.isArray)(obj) ? [] : {};
|
|
3654
3737
|
for (const prop in obj) {
|
|
3655
3738
|
if (prop === "__proto__")
|
|
@@ -3657,11 +3740,13 @@ var require_object = __commonJS({
|
|
|
3657
3740
|
if (excludeFrom.includes(prop) || prop.startsWith("__"))
|
|
3658
3741
|
continue;
|
|
3659
3742
|
let objProp = obj[prop];
|
|
3743
|
+
if (cleanUndefined && (0, import_types.isUndefined)(objProp))
|
|
3744
|
+
continue;
|
|
3660
3745
|
if (prop === "extend" && (0, import_types.isArray)(objProp)) {
|
|
3661
3746
|
objProp = (0, import_array.mergeArray)(objProp);
|
|
3662
3747
|
}
|
|
3663
3748
|
if ((0, import_types.isObjectLike)(objProp)) {
|
|
3664
|
-
o[prop] = deepClone3(objProp, excludeFrom);
|
|
3749
|
+
o[prop] = deepClone3(objProp, excludeFrom, cleanUndefined);
|
|
3665
3750
|
} else
|
|
3666
3751
|
o[prop] = objProp;
|
|
3667
3752
|
}
|
|
@@ -3715,7 +3800,7 @@ var require_object = __commonJS({
|
|
|
3715
3800
|
}
|
|
3716
3801
|
}
|
|
3717
3802
|
str += `${spaces} ]`;
|
|
3718
|
-
} else if ((0, import_types.
|
|
3803
|
+
} else if ((0, import_types.isObjectLike)(value)) {
|
|
3719
3804
|
str += objectToString(value, indent + 1);
|
|
3720
3805
|
} else if ((0, import_types.isString)(value)) {
|
|
3721
3806
|
str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
|
|
@@ -3755,8 +3840,8 @@ var require_object = __commonJS({
|
|
|
3755
3840
|
};
|
|
3756
3841
|
var deepDestringify = (obj, destringified = {}) => {
|
|
3757
3842
|
for (const prop in obj) {
|
|
3758
|
-
const
|
|
3759
|
-
if (!
|
|
3843
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj, prop);
|
|
3844
|
+
if (!hasOwnProperty2)
|
|
3760
3845
|
continue;
|
|
3761
3846
|
const objProp = obj[prop];
|
|
3762
3847
|
if ((0, import_types.isString)(objProp)) {
|
|
@@ -3849,6 +3934,39 @@ var require_object = __commonJS({
|
|
|
3849
3934
|
}
|
|
3850
3935
|
return cache;
|
|
3851
3936
|
};
|
|
3937
|
+
var hasOwnProperty = (o, ...args) => Object.prototype.hasOwnProperty.call(o, ...args);
|
|
3938
|
+
var isEmpty = (o) => Object.keys(o).length === 0;
|
|
3939
|
+
var isEmptyObject = (o) => (0, import_types.isObject)(o) && isEmpty(o);
|
|
3940
|
+
var makeObjectWithoutPrototype = () => /* @__PURE__ */ Object.create(null);
|
|
3941
|
+
var deepDiff2 = (lhs, rhs) => {
|
|
3942
|
+
if (lhs === rhs)
|
|
3943
|
+
return {};
|
|
3944
|
+
if (!(0, import_types.isObjectLike)(lhs) || !(0, import_types.isObjectLike)(rhs))
|
|
3945
|
+
return rhs;
|
|
3946
|
+
const deletedValues = Object.keys(lhs).reduce((acc, key) => {
|
|
3947
|
+
if (!hasOwnProperty(rhs, key)) {
|
|
3948
|
+
acc[key] = void 0;
|
|
3949
|
+
}
|
|
3950
|
+
return acc;
|
|
3951
|
+
}, makeObjectWithoutPrototype());
|
|
3952
|
+
if ((0, import_types.isDate)(lhs) || (0, import_types.isDate)(rhs)) {
|
|
3953
|
+
if (lhs.valueOf() === rhs.valueOf())
|
|
3954
|
+
return {};
|
|
3955
|
+
return rhs;
|
|
3956
|
+
}
|
|
3957
|
+
return Object.keys(rhs).reduce((acc, key) => {
|
|
3958
|
+
if (!hasOwnProperty(lhs, key)) {
|
|
3959
|
+
acc[key] = rhs[key];
|
|
3960
|
+
return acc;
|
|
3961
|
+
}
|
|
3962
|
+
const difference = diff(lhs[key], rhs[key]);
|
|
3963
|
+
if (isEmptyObject(difference) && !(0, import_types.isDate)(difference) && (isEmptyObject(lhs[key]) || !isEmptyObject(rhs[key]))) {
|
|
3964
|
+
return acc;
|
|
3965
|
+
}
|
|
3966
|
+
acc[key] = difference;
|
|
3967
|
+
return acc;
|
|
3968
|
+
}, deletedValues);
|
|
3969
|
+
};
|
|
3852
3970
|
var overwrite = (element, params, excludeFrom = []) => {
|
|
3853
3971
|
const { ref } = element;
|
|
3854
3972
|
const changes = {};
|
|
@@ -3944,8 +4062,8 @@ var require_object = __commonJS({
|
|
|
3944
4062
|
}
|
|
3945
4063
|
} else if ((0, import_types.isObjectLike)(obj1) && obj2 !== null) {
|
|
3946
4064
|
for (const key in obj1) {
|
|
3947
|
-
const
|
|
3948
|
-
if (!
|
|
4065
|
+
const hasOwnProperty2 = Object.prototype.hasOwnProperty.call(obj2, key);
|
|
4066
|
+
if (!hasOwnProperty2 || !deepContains(obj1[key], obj2[key])) {
|
|
3949
4067
|
return false;
|
|
3950
4068
|
}
|
|
3951
4069
|
}
|
|
@@ -3970,9 +4088,9 @@ var require_object = __commonJS({
|
|
|
3970
4088
|
}
|
|
3971
4089
|
});
|
|
3972
4090
|
|
|
3973
|
-
//
|
|
4091
|
+
// ../../../domql/packages/utils/dist/cjs/function.js
|
|
3974
4092
|
var require_function = __commonJS({
|
|
3975
|
-
"
|
|
4093
|
+
"../../../domql/packages/utils/dist/cjs/function.js"(exports, module2) {
|
|
3976
4094
|
"use strict";
|
|
3977
4095
|
var __defProp2 = Object.defineProperty;
|
|
3978
4096
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4045,9 +4163,9 @@ var require_function = __commonJS({
|
|
|
4045
4163
|
}
|
|
4046
4164
|
});
|
|
4047
4165
|
|
|
4048
|
-
//
|
|
4166
|
+
// ../../../domql/packages/utils/dist/cjs/log.js
|
|
4049
4167
|
var require_log = __commonJS({
|
|
4050
|
-
"
|
|
4168
|
+
"../../../domql/packages/utils/dist/cjs/log.js"(exports, module2) {
|
|
4051
4169
|
"use strict";
|
|
4052
4170
|
var __defProp2 = Object.defineProperty;
|
|
4053
4171
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4086,9 +4204,9 @@ var require_log = __commonJS({
|
|
|
4086
4204
|
}
|
|
4087
4205
|
});
|
|
4088
4206
|
|
|
4089
|
-
//
|
|
4207
|
+
// ../../../domql/packages/utils/dist/cjs/cookie.js
|
|
4090
4208
|
var require_cookie = __commonJS({
|
|
4091
|
-
"
|
|
4209
|
+
"../../../domql/packages/utils/dist/cjs/cookie.js"(exports, module2) {
|
|
4092
4210
|
"use strict";
|
|
4093
4211
|
var __defProp2 = Object.defineProperty;
|
|
4094
4212
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4142,9 +4260,9 @@ var require_cookie = __commonJS({
|
|
|
4142
4260
|
}
|
|
4143
4261
|
});
|
|
4144
4262
|
|
|
4145
|
-
//
|
|
4263
|
+
// ../../../domql/packages/utils/dist/cjs/tags.js
|
|
4146
4264
|
var require_tags = __commonJS({
|
|
4147
|
-
"
|
|
4265
|
+
"../../../domql/packages/utils/dist/cjs/tags.js"(exports, module2) {
|
|
4148
4266
|
"use strict";
|
|
4149
4267
|
var __defProp2 = Object.defineProperty;
|
|
4150
4268
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4307,9 +4425,9 @@ var require_tags = __commonJS({
|
|
|
4307
4425
|
}
|
|
4308
4426
|
});
|
|
4309
4427
|
|
|
4310
|
-
//
|
|
4428
|
+
// ../../../domql/packages/utils/dist/cjs/index.js
|
|
4311
4429
|
var require_cjs2 = __commonJS({
|
|
4312
|
-
"
|
|
4430
|
+
"../../../domql/packages/utils/dist/cjs/index.js"(exports, module2) {
|
|
4313
4431
|
"use strict";
|
|
4314
4432
|
var __defProp2 = Object.defineProperty;
|
|
4315
4433
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4342,9 +4460,9 @@ var require_cjs2 = __commonJS({
|
|
|
4342
4460
|
}
|
|
4343
4461
|
});
|
|
4344
4462
|
|
|
4345
|
-
//
|
|
4463
|
+
// ../../../domql/packages/state/dist/cjs/ignore.js
|
|
4346
4464
|
var require_ignore = __commonJS({
|
|
4347
|
-
"
|
|
4465
|
+
"../../../domql/packages/state/dist/cjs/ignore.js"(exports, module2) {
|
|
4348
4466
|
"use strict";
|
|
4349
4467
|
var __defProp2 = Object.defineProperty;
|
|
4350
4468
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4379,6 +4497,7 @@ var require_ignore = __commonJS({
|
|
|
4379
4497
|
"remove",
|
|
4380
4498
|
"apply",
|
|
4381
4499
|
"set",
|
|
4500
|
+
"reset",
|
|
4382
4501
|
"rootUpdate",
|
|
4383
4502
|
"parentUpdate",
|
|
4384
4503
|
"parent",
|
|
@@ -4391,9 +4510,9 @@ var require_ignore = __commonJS({
|
|
|
4391
4510
|
}
|
|
4392
4511
|
});
|
|
4393
4512
|
|
|
4394
|
-
//
|
|
4513
|
+
// ../../../domql/packages/event/dist/cjs/on.js
|
|
4395
4514
|
var require_on = __commonJS({
|
|
4396
|
-
"
|
|
4515
|
+
"../../../domql/packages/event/dist/cjs/on.js"(exports, module2) {
|
|
4397
4516
|
"use strict";
|
|
4398
4517
|
var __defProp2 = Object.defineProperty;
|
|
4399
4518
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4447,17 +4566,19 @@ var require_on = __commonJS({
|
|
|
4447
4566
|
continue;
|
|
4448
4567
|
const appliedFunction = element.on[param];
|
|
4449
4568
|
if ((0, import_utils14.isFunction)(appliedFunction)) {
|
|
4450
|
-
|
|
4451
|
-
|
|
4569
|
+
node2.addEventListener(param, (event) => {
|
|
4570
|
+
const { state, context } = element;
|
|
4571
|
+
appliedFunction(event, element, state, context);
|
|
4572
|
+
});
|
|
4452
4573
|
}
|
|
4453
4574
|
}
|
|
4454
4575
|
};
|
|
4455
4576
|
}
|
|
4456
4577
|
});
|
|
4457
4578
|
|
|
4458
|
-
//
|
|
4579
|
+
// ../../../domql/plugins/report/dist/cjs/index.js
|
|
4459
4580
|
var require_cjs3 = __commonJS({
|
|
4460
|
-
"
|
|
4581
|
+
"../../../domql/plugins/report/dist/cjs/index.js"(exports, module2) {
|
|
4461
4582
|
"use strict";
|
|
4462
4583
|
var __defProp2 = Object.defineProperty;
|
|
4463
4584
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4552,9 +4673,9 @@ ${element}` : ""
|
|
|
4552
4673
|
}
|
|
4553
4674
|
});
|
|
4554
4675
|
|
|
4555
|
-
//
|
|
4676
|
+
// ../../../domql/packages/event/dist/cjs/can.js
|
|
4556
4677
|
var require_can = __commonJS({
|
|
4557
|
-
"
|
|
4678
|
+
"../../../domql/packages/event/dist/cjs/can.js"(exports, module2) {
|
|
4558
4679
|
"use strict";
|
|
4559
4680
|
var __defProp2 = Object.defineProperty;
|
|
4560
4681
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4587,9 +4708,9 @@ var require_can = __commonJS({
|
|
|
4587
4708
|
}
|
|
4588
4709
|
});
|
|
4589
4710
|
|
|
4590
|
-
//
|
|
4711
|
+
// ../../../domql/packages/event/dist/cjs/index.js
|
|
4591
4712
|
var require_cjs4 = __commonJS({
|
|
4592
|
-
"
|
|
4713
|
+
"../../../domql/packages/event/dist/cjs/index.js"(exports, module2) {
|
|
4593
4714
|
"use strict";
|
|
4594
4715
|
var __defProp2 = Object.defineProperty;
|
|
4595
4716
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4612,9 +4733,9 @@ var require_cjs4 = __commonJS({
|
|
|
4612
4733
|
}
|
|
4613
4734
|
});
|
|
4614
4735
|
|
|
4615
|
-
//
|
|
4736
|
+
// ../../../domql/packages/state/dist/cjs/methods.js
|
|
4616
4737
|
var require_methods = __commonJS({
|
|
4617
|
-
"
|
|
4738
|
+
"../../../domql/packages/state/dist/cjs/methods.js"(exports, module2) {
|
|
4618
4739
|
"use strict";
|
|
4619
4740
|
var __defProp2 = Object.defineProperty;
|
|
4620
4741
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4642,6 +4763,7 @@ var require_methods = __commonJS({
|
|
|
4642
4763
|
parentUpdate: () => parentUpdate,
|
|
4643
4764
|
parse: () => parse2,
|
|
4644
4765
|
remove: () => remove,
|
|
4766
|
+
reset: () => reset,
|
|
4645
4767
|
rootUpdate: () => rootUpdate,
|
|
4646
4768
|
set: () => set3,
|
|
4647
4769
|
toggle: () => toggle
|
|
@@ -4671,7 +4793,7 @@ var require_methods = __commonJS({
|
|
|
4671
4793
|
}
|
|
4672
4794
|
}
|
|
4673
4795
|
if (!options.preventStateUpdate) {
|
|
4674
|
-
state.update(state, { replace: true, options });
|
|
4796
|
+
state.update(state, { replace: true, ...options });
|
|
4675
4797
|
}
|
|
4676
4798
|
return state;
|
|
4677
4799
|
};
|
|
@@ -4692,7 +4814,19 @@ var require_methods = __commonJS({
|
|
|
4692
4814
|
for (const key in state.__children) {
|
|
4693
4815
|
const child = state.__children[key];
|
|
4694
4816
|
if (child.state) {
|
|
4695
|
-
child.
|
|
4817
|
+
if ((0, import_utils14.isArray)(child.state)) {
|
|
4818
|
+
Object.defineProperty(child.state, "parent", {
|
|
4819
|
+
value: state.parent,
|
|
4820
|
+
enumerable: false,
|
|
4821
|
+
// Set this to true if you want the method to appear in for...in loops
|
|
4822
|
+
configurable: true,
|
|
4823
|
+
// Set this to true if you want to allow redefining/removing the property later
|
|
4824
|
+
writable: true
|
|
4825
|
+
// Set this to true if you want to allow changing the function later
|
|
4826
|
+
});
|
|
4827
|
+
} else {
|
|
4828
|
+
Object.setPrototypeOf(child, { parent: state.parent });
|
|
4829
|
+
}
|
|
4696
4830
|
}
|
|
4697
4831
|
}
|
|
4698
4832
|
}
|
|
@@ -4734,23 +4868,29 @@ var require_methods = __commonJS({
|
|
|
4734
4868
|
(0, import_utils14.removeFromObject)(state, key);
|
|
4735
4869
|
return state.update(state.parse(), { replace: true, ...options });
|
|
4736
4870
|
};
|
|
4737
|
-
var set3 = function(
|
|
4871
|
+
var set3 = function(val, options = {}) {
|
|
4872
|
+
const state = this;
|
|
4873
|
+
const value = (0, import_utils14.deepClone)(val);
|
|
4874
|
+
return state.clean({ preventStateUpdate: true, ...options }).update(value, { replace: true, ...options });
|
|
4875
|
+
};
|
|
4876
|
+
var reset = function(options = {}) {
|
|
4738
4877
|
const state = this;
|
|
4739
|
-
|
|
4878
|
+
const value = (0, import_utils14.deepClone)(state.parse());
|
|
4879
|
+
return state.set(value, { replace: true, ...options });
|
|
4740
4880
|
};
|
|
4741
4881
|
var apply = function(func, options = {}) {
|
|
4742
4882
|
const state = this;
|
|
4743
4883
|
if ((0, import_utils14.isFunction)(func)) {
|
|
4744
4884
|
func(state);
|
|
4745
|
-
return state.update(state, { replace: true, ...options });
|
|
4885
|
+
return state.update(state.parse(), { replace: true, ...options });
|
|
4746
4886
|
}
|
|
4747
4887
|
};
|
|
4748
4888
|
}
|
|
4749
4889
|
});
|
|
4750
4890
|
|
|
4751
|
-
//
|
|
4891
|
+
// ../../../domql/packages/state/dist/cjs/inherit.js
|
|
4752
4892
|
var require_inherit = __commonJS({
|
|
4753
|
-
"
|
|
4893
|
+
"../../../domql/packages/state/dist/cjs/inherit.js"(exports, module2) {
|
|
4754
4894
|
"use strict";
|
|
4755
4895
|
var __defProp2 = Object.defineProperty;
|
|
4756
4896
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4870,9 +5010,9 @@ var require_inherit = __commonJS({
|
|
|
4870
5010
|
}
|
|
4871
5011
|
});
|
|
4872
5012
|
|
|
4873
|
-
//
|
|
5013
|
+
// ../../../domql/packages/state/dist/cjs/updateState.js
|
|
4874
5014
|
var require_updateState = __commonJS({
|
|
4875
|
-
"
|
|
5015
|
+
"../../../domql/packages/state/dist/cjs/updateState.js"(exports, module2) {
|
|
4876
5016
|
"use strict";
|
|
4877
5017
|
var __defProp2 = Object.defineProperty;
|
|
4878
5018
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -4906,8 +5046,7 @@ var require_updateState = __commonJS({
|
|
|
4906
5046
|
preventHoistElementUpdate: false,
|
|
4907
5047
|
updateByState: true,
|
|
4908
5048
|
isHoisted: true,
|
|
4909
|
-
execStateFunction: true
|
|
4910
|
-
stateFunctionOverwrite: true
|
|
5049
|
+
execStateFunction: true
|
|
4911
5050
|
};
|
|
4912
5051
|
var updateState = function(obj, options = STATE_UPDATE_OPTIONS) {
|
|
4913
5052
|
const state = this;
|
|
@@ -4968,10 +5107,10 @@ var require_updateState = __commonJS({
|
|
|
4968
5107
|
const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
|
|
4969
5108
|
const targetParent = findGrandParentState || parent.state;
|
|
4970
5109
|
if (options.replace)
|
|
4971
|
-
targetParent
|
|
5110
|
+
(0, import_utils14.overwriteDeep)(targetParent, changesValue || value);
|
|
5111
|
+
console.log(changesValue);
|
|
4972
5112
|
targetParent.update(changesValue, {
|
|
4973
5113
|
execStateFunction: false,
|
|
4974
|
-
stateFunctionOverwrite: false,
|
|
4975
5114
|
isHoisted: true,
|
|
4976
5115
|
...options,
|
|
4977
5116
|
preventUpdate: options.preventHoistElementUpdate,
|
|
@@ -5010,9 +5149,9 @@ var require_updateState = __commonJS({
|
|
|
5010
5149
|
}
|
|
5011
5150
|
});
|
|
5012
5151
|
|
|
5013
|
-
//
|
|
5152
|
+
// ../../../domql/packages/state/dist/cjs/create.js
|
|
5014
5153
|
var require_create = __commonJS({
|
|
5015
|
-
"
|
|
5154
|
+
"../../../domql/packages/state/dist/cjs/create.js"(exports, module2) {
|
|
5016
5155
|
"use strict";
|
|
5017
5156
|
var __defProp2 = Object.defineProperty;
|
|
5018
5157
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -5123,6 +5262,7 @@ var require_create = __commonJS({
|
|
|
5123
5262
|
remove: import_methods.remove.bind(state),
|
|
5124
5263
|
apply: import_methods.apply.bind(state),
|
|
5125
5264
|
set: import_methods.set.bind(state),
|
|
5265
|
+
reset: import_methods.reset.bind(state),
|
|
5126
5266
|
parent: element.parent.state,
|
|
5127
5267
|
__element: element,
|
|
5128
5268
|
__children: {},
|
|
@@ -5140,9 +5280,9 @@ var require_create = __commonJS({
|
|
|
5140
5280
|
}
|
|
5141
5281
|
});
|
|
5142
5282
|
|
|
5143
|
-
//
|
|
5283
|
+
// ../../../domql/packages/state/dist/cjs/index.js
|
|
5144
5284
|
var require_cjs5 = __commonJS({
|
|
5145
|
-
"
|
|
5285
|
+
"../../../domql/packages/state/dist/cjs/index.js"(exports, module2) {
|
|
5146
5286
|
"use strict";
|
|
5147
5287
|
var __defProp2 = Object.defineProperty;
|
|
5148
5288
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
@@ -8772,10 +8912,9 @@ var Textarea = {
|
|
|
8772
8912
|
props: {
|
|
8773
8913
|
variant: "outlined",
|
|
8774
8914
|
round: "Z2",
|
|
8775
|
-
|
|
8915
|
+
width: "H",
|
|
8776
8916
|
minHeight: "E",
|
|
8777
8917
|
placeholder: "Leave us a message...",
|
|
8778
|
-
fontSize: "Z1",
|
|
8779
8918
|
padding: "A",
|
|
8780
8919
|
color: "white",
|
|
8781
8920
|
style: { resize: "none" }
|
|
@@ -8793,7 +8932,8 @@ var Textarea = {
|
|
|
8793
8932
|
props: {
|
|
8794
8933
|
border: "1px solid #3F3F43",
|
|
8795
8934
|
background: "transparent",
|
|
8796
|
-
|
|
8935
|
+
round: "Y+W",
|
|
8936
|
+
//
|
|
8797
8937
|
width: "G1",
|
|
8798
8938
|
height: "D2+W",
|
|
8799
8939
|
lineHeight: 1.4,
|