@symbo.ls/create 2.11.353 → 2.11.360
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/cjs/bundle/index.js +473 -456
- package/dist/cjs/createDomql.js +1 -0
- package/dist/cjs/prepare.js +10 -5
- package/dist/cjs/syncExtend.js +1 -1
- package/package.json +2 -2
- package/src/createDomql.js +1 -0
- package/src/prepare.js +8 -5
- package/src/syncExtend.js +1 -1
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -209,17 +209,17 @@ var require_types = __commonJS({
|
|
|
209
209
|
__export12(types_exports, {
|
|
210
210
|
TYPES: () => TYPES,
|
|
211
211
|
is: () => is,
|
|
212
|
-
isArray: () =>
|
|
212
|
+
isArray: () => isArray7,
|
|
213
213
|
isBoolean: () => isBoolean,
|
|
214
214
|
isDate: () => isDate,
|
|
215
|
-
isDefined: () =>
|
|
215
|
+
isDefined: () => isDefined2,
|
|
216
216
|
isFunction: () => isFunction4,
|
|
217
217
|
isNot: () => isNot2,
|
|
218
218
|
isNull: () => isNull,
|
|
219
219
|
isNumber: () => isNumber2,
|
|
220
220
|
isObject: () => isObject12,
|
|
221
221
|
isObjectLike: () => isObjectLike3,
|
|
222
|
-
isString: () =>
|
|
222
|
+
isString: () => isString14,
|
|
223
223
|
isUndefined: () => isUndefined9
|
|
224
224
|
});
|
|
225
225
|
module2.exports = __toCommonJS12(types_exports);
|
|
@@ -229,29 +229,29 @@ var require_types = __commonJS({
|
|
|
229
229
|
return false;
|
|
230
230
|
return typeof arg === "object" && arg.constructor === Object;
|
|
231
231
|
};
|
|
232
|
-
var
|
|
232
|
+
var isString14 = (arg) => typeof arg === "string";
|
|
233
233
|
var isNumber2 = (arg) => typeof arg === "number";
|
|
234
234
|
var isFunction4 = (arg) => typeof arg === "function";
|
|
235
235
|
var isBoolean = (arg) => arg === true || arg === false;
|
|
236
236
|
var isNull = (arg) => arg === null;
|
|
237
|
-
var
|
|
237
|
+
var isArray7 = (arg) => Array.isArray(arg);
|
|
238
238
|
var isDate = (d) => d instanceof Date;
|
|
239
239
|
var isObjectLike3 = (arg) => {
|
|
240
240
|
if (arg === null)
|
|
241
241
|
return false;
|
|
242
242
|
return typeof arg === "object";
|
|
243
243
|
};
|
|
244
|
-
var
|
|
245
|
-
return isObject12(arg) || isObjectLike3(arg) ||
|
|
244
|
+
var isDefined2 = (arg) => {
|
|
245
|
+
return isObject12(arg) || isObjectLike3(arg) || isString14(arg) || isNumber2(arg) || isFunction4(arg) || isArray7(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
|
|
246
246
|
};
|
|
247
247
|
var isUndefined9 = (arg) => {
|
|
248
248
|
return arg === void 0;
|
|
249
249
|
};
|
|
250
250
|
var TYPES = {
|
|
251
251
|
boolean: isBoolean,
|
|
252
|
-
array:
|
|
252
|
+
array: isArray7,
|
|
253
253
|
object: isObject12,
|
|
254
|
-
string:
|
|
254
|
+
string: isString14,
|
|
255
255
|
date: isDate,
|
|
256
256
|
number: isNumber2,
|
|
257
257
|
null: isNull,
|
|
@@ -259,7 +259,7 @@ var require_types = __commonJS({
|
|
|
259
259
|
objectLike: isObjectLike3,
|
|
260
260
|
node: import_node.isNode,
|
|
261
261
|
htmlElement: import_node.isHtmlElement,
|
|
262
|
-
defined:
|
|
262
|
+
defined: isDefined2
|
|
263
263
|
};
|
|
264
264
|
var is = (arg) => {
|
|
265
265
|
return (...args) => {
|
|
@@ -498,7 +498,7 @@ var require_object = __commonJS({
|
|
|
498
498
|
diff: () => diff,
|
|
499
499
|
diffArrays: () => diffArrays,
|
|
500
500
|
diffObjects: () => diffObjects,
|
|
501
|
-
exec: () =>
|
|
501
|
+
exec: () => exec4,
|
|
502
502
|
flattenRecursive: () => flattenRecursive,
|
|
503
503
|
hasOwnProperty: () => hasOwnProperty,
|
|
504
504
|
isEmpty: () => isEmpty,
|
|
@@ -521,7 +521,7 @@ var require_object = __commonJS({
|
|
|
521
521
|
var import_types = require_types();
|
|
522
522
|
var import_array = require_array();
|
|
523
523
|
var import_string = require_string();
|
|
524
|
-
var
|
|
524
|
+
var exec4 = (param, element, state, context) => {
|
|
525
525
|
if ((0, import_types.isFunction)(param)) {
|
|
526
526
|
return param(
|
|
527
527
|
element,
|
|
@@ -533,7 +533,7 @@ var require_object = __commonJS({
|
|
|
533
533
|
};
|
|
534
534
|
var map2 = (obj, extention, element) => {
|
|
535
535
|
for (const e in extention) {
|
|
536
|
-
obj[e] =
|
|
536
|
+
obj[e] = exec4(extention[e], element);
|
|
537
537
|
}
|
|
538
538
|
};
|
|
539
539
|
var merge5 = (element, obj, excludeFrom = []) => {
|
|
@@ -1584,7 +1584,7 @@ var require_cjs2 = __commonJS({
|
|
|
1584
1584
|
isArray: () => isArray9,
|
|
1585
1585
|
isBoolean: () => isBoolean,
|
|
1586
1586
|
isDate: () => isDate,
|
|
1587
|
-
isDefined: () =>
|
|
1587
|
+
isDefined: () => isDefined2,
|
|
1588
1588
|
isFunction: () => isFunction22,
|
|
1589
1589
|
isNot: () => isNot2,
|
|
1590
1590
|
isNull: () => isNull2,
|
|
@@ -1613,7 +1613,7 @@ var require_cjs2 = __commonJS({
|
|
|
1613
1613
|
return false;
|
|
1614
1614
|
return typeof arg === "object";
|
|
1615
1615
|
};
|
|
1616
|
-
var
|
|
1616
|
+
var isDefined2 = (arg) => {
|
|
1617
1617
|
return isObject82(arg) || isObjectLike3(arg) || isString102(arg) || isNumber3(arg) || isFunction22(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull2(arg);
|
|
1618
1618
|
};
|
|
1619
1619
|
var isUndefined22 = (arg) => {
|
|
@@ -1631,7 +1631,7 @@ var require_cjs2 = __commonJS({
|
|
|
1631
1631
|
objectLike: isObjectLike3,
|
|
1632
1632
|
node: import_node.isNode,
|
|
1633
1633
|
htmlElement: import_node.isHtmlElement,
|
|
1634
|
-
defined:
|
|
1634
|
+
defined: isDefined2
|
|
1635
1635
|
};
|
|
1636
1636
|
var is = (arg) => {
|
|
1637
1637
|
return (...args) => {
|
|
@@ -1864,7 +1864,7 @@ var require_cjs2 = __commonJS({
|
|
|
1864
1864
|
diff: () => diff,
|
|
1865
1865
|
diffArrays: () => diffArrays,
|
|
1866
1866
|
diffObjects: () => diffObjects,
|
|
1867
|
-
exec: () =>
|
|
1867
|
+
exec: () => exec4,
|
|
1868
1868
|
flattenRecursive: () => flattenRecursive,
|
|
1869
1869
|
hasOwnProperty: () => hasOwnProperty,
|
|
1870
1870
|
isEmpty: () => isEmpty,
|
|
@@ -1887,7 +1887,7 @@ var require_cjs2 = __commonJS({
|
|
|
1887
1887
|
var import_types = require_types2();
|
|
1888
1888
|
var import_array = require_array2();
|
|
1889
1889
|
var import_string = require_string2();
|
|
1890
|
-
var
|
|
1890
|
+
var exec4 = (param, element, state, context) => {
|
|
1891
1891
|
if ((0, import_types.isFunction)(param)) {
|
|
1892
1892
|
return param(
|
|
1893
1893
|
element,
|
|
@@ -1899,7 +1899,7 @@ var require_cjs2 = __commonJS({
|
|
|
1899
1899
|
};
|
|
1900
1900
|
var map2 = (obj, extention, element) => {
|
|
1901
1901
|
for (const e in extention) {
|
|
1902
|
-
obj[e] =
|
|
1902
|
+
obj[e] = exec4(extention[e], element);
|
|
1903
1903
|
}
|
|
1904
1904
|
};
|
|
1905
1905
|
var merge5 = (element, obj, excludeFrom = []) => {
|
|
@@ -2877,7 +2877,7 @@ var require_cjs2 = __commonJS({
|
|
|
2877
2877
|
return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
|
|
2878
2878
|
};
|
|
2879
2879
|
var import_globals2 = __toESM6(require_cjs13(), 1);
|
|
2880
|
-
var
|
|
2880
|
+
var import_utils37 = __toESM6(require_cjs22(), 1);
|
|
2881
2881
|
var ENV2 = "development";
|
|
2882
2882
|
var colorStringToRgbaArray = (color) => {
|
|
2883
2883
|
if (color === "")
|
|
@@ -3009,11 +3009,11 @@ var require_cjs2 = __commonJS({
|
|
|
3009
3009
|
return `rgba(${arr})`;
|
|
3010
3010
|
};
|
|
3011
3011
|
var getRgbTone = (rgb, tone) => {
|
|
3012
|
-
if ((0,
|
|
3012
|
+
if ((0, import_utils37.isString)(rgb) && rgb.includes("rgb"))
|
|
3013
3013
|
rgb = colorStringToRgbaArray(rgb).join(", ");
|
|
3014
|
-
if ((0,
|
|
3014
|
+
if ((0, import_utils37.isString)(rgb))
|
|
3015
3015
|
rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
|
|
3016
|
-
if ((0,
|
|
3016
|
+
if ((0, import_utils37.isNumber)(tone))
|
|
3017
3017
|
tone += "";
|
|
3018
3018
|
const toHex = rgbArrayToHex(rgb);
|
|
3019
3019
|
const abs2 = tone.slice(0, 1);
|
|
@@ -3077,7 +3077,7 @@ var require_cjs2 = __commonJS({
|
|
|
3077
3077
|
return keys.map((key) => getFontFaceEachString(key, LIBRARY[key].value));
|
|
3078
3078
|
};
|
|
3079
3079
|
var import_utils52 = __toESM6(require_cjs22(), 1);
|
|
3080
|
-
var
|
|
3080
|
+
var import_utils38 = __toESM6(require_cjs22());
|
|
3081
3081
|
var import_utils210 = __toESM6(require_cjs22());
|
|
3082
3082
|
var toCamelCase2 = (str) => {
|
|
3083
3083
|
return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
|
|
@@ -3086,13 +3086,13 @@ var require_cjs2 = __commonJS({
|
|
|
3086
3086
|
};
|
|
3087
3087
|
var toDashCase2 = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
3088
3088
|
var arrayzeValue2 = (val) => {
|
|
3089
|
-
if ((0,
|
|
3089
|
+
if ((0, import_utils38.isArray)(val))
|
|
3090
3090
|
return val;
|
|
3091
|
-
if ((0,
|
|
3091
|
+
if ((0, import_utils38.isString)(val))
|
|
3092
3092
|
return val.split(" ");
|
|
3093
|
-
if ((0,
|
|
3093
|
+
if ((0, import_utils38.isObject)(val))
|
|
3094
3094
|
return Object.values(val);
|
|
3095
|
-
if ((0,
|
|
3095
|
+
if ((0, import_utils38.isNumber)(val))
|
|
3096
3096
|
return [val];
|
|
3097
3097
|
};
|
|
3098
3098
|
var import_utils42 = __toESM6(require_cjs22(), 1);
|
|
@@ -6557,12 +6557,12 @@ var require_on = __commonJS({
|
|
|
6557
6557
|
triggerEventOnUpdate: () => triggerEventOnUpdate
|
|
6558
6558
|
});
|
|
6559
6559
|
module2.exports = __toCommonJS12(on_exports);
|
|
6560
|
-
var
|
|
6560
|
+
var import_utils37 = require_cjs();
|
|
6561
6561
|
var applyEvent = (param, element, state, context, options) => {
|
|
6562
6562
|
return param(element, state || element.state, context || element.context, options);
|
|
6563
6563
|
};
|
|
6564
6564
|
var triggerEventOn = (param, element, options) => {
|
|
6565
|
-
if (element.on && (0,
|
|
6565
|
+
if (element.on && (0, import_utils37.isFunction)(element.on[param])) {
|
|
6566
6566
|
const { state, context } = element;
|
|
6567
6567
|
return applyEvent(element.on[param], element, state, context, options);
|
|
6568
6568
|
}
|
|
@@ -6571,7 +6571,7 @@ var require_on = __commonJS({
|
|
|
6571
6571
|
return param(updatedObj, element, state || element.state, context || element.context, options);
|
|
6572
6572
|
};
|
|
6573
6573
|
var triggerEventOnUpdate = (param, updatedObj, element, options) => {
|
|
6574
|
-
if (element.on && (0,
|
|
6574
|
+
if (element.on && (0, import_utils37.isFunction)(element.on[param])) {
|
|
6575
6575
|
const { state, context } = element;
|
|
6576
6576
|
return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
|
|
6577
6577
|
}
|
|
@@ -6582,7 +6582,7 @@ var require_on = __commonJS({
|
|
|
6582
6582
|
if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdate" || param === "stateUpdate" || param === "initUpdate" || param === "update")
|
|
6583
6583
|
continue;
|
|
6584
6584
|
const appliedFunction = element.on[param];
|
|
6585
|
-
if ((0,
|
|
6585
|
+
if ((0, import_utils37.isFunction)(appliedFunction)) {
|
|
6586
6586
|
node2.addEventListener(param, (event) => {
|
|
6587
6587
|
const { state, context } = element;
|
|
6588
6588
|
appliedFunction(event, element, state, context, options);
|
|
@@ -6620,9 +6620,9 @@ var require_can = __commonJS({
|
|
|
6620
6620
|
});
|
|
6621
6621
|
module2.exports = __toCommonJS12(can_exports);
|
|
6622
6622
|
var import_report = require_cjs3();
|
|
6623
|
-
var
|
|
6623
|
+
var import_utils37 = require_cjs();
|
|
6624
6624
|
var canRenderTag = (tag) => {
|
|
6625
|
-
return (0,
|
|
6625
|
+
return (0, import_utils37.isValidHtmlTag)(tag || "div") || (0, import_report.report)("HTMLInvalidTag");
|
|
6626
6626
|
};
|
|
6627
6627
|
}
|
|
6628
6628
|
});
|
|
@@ -6683,8 +6683,8 @@ var require_cjs5 = __commonJS({
|
|
|
6683
6683
|
});
|
|
6684
6684
|
module2.exports = __toCommonJS12(router_exports3);
|
|
6685
6685
|
var import_event = require_cjs4();
|
|
6686
|
-
var
|
|
6687
|
-
var getActiveRoute = (level = 0, route =
|
|
6686
|
+
var import_utils37 = require_cjs();
|
|
6687
|
+
var getActiveRoute = (level = 0, route = import_utils37.window.location.pathname) => {
|
|
6688
6688
|
const routeArray = route.split("/");
|
|
6689
6689
|
const activeRoute = routeArray[level + 1];
|
|
6690
6690
|
if (activeRoute)
|
|
@@ -6698,7 +6698,7 @@ var require_cjs5 = __commonJS({
|
|
|
6698
6698
|
initialRender: false,
|
|
6699
6699
|
scrollToTop: true,
|
|
6700
6700
|
scrollToNode: false,
|
|
6701
|
-
scrollNode:
|
|
6701
|
+
scrollNode: import_utils37.document && import_utils37.document.documentElement,
|
|
6702
6702
|
scrollBody: false,
|
|
6703
6703
|
useFragment: false,
|
|
6704
6704
|
updateState: true,
|
|
@@ -6714,13 +6714,13 @@ var require_cjs5 = __commonJS({
|
|
|
6714
6714
|
const route = getActiveRoute(options.level, pathname);
|
|
6715
6715
|
const content = element.routes[route || "/"] || element.routes["/*"];
|
|
6716
6716
|
const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
|
|
6717
|
-
const hashChanged = hash2 && hash2 !==
|
|
6717
|
+
const hashChanged = hash2 && hash2 !== import_utils37.window.location.hash.slice(1);
|
|
6718
6718
|
const pathChanged = pathname !== lastPathname;
|
|
6719
6719
|
lastPathname = pathname;
|
|
6720
6720
|
if (!content)
|
|
6721
6721
|
return;
|
|
6722
6722
|
if (options.pushState) {
|
|
6723
|
-
|
|
6723
|
+
import_utils37.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
|
|
6724
6724
|
}
|
|
6725
6725
|
if (pathChanged || !hashChanged) {
|
|
6726
6726
|
if (options.updateState) {
|
|
@@ -6749,7 +6749,7 @@ var require_cjs5 = __commonJS({
|
|
|
6749
6749
|
});
|
|
6750
6750
|
}
|
|
6751
6751
|
if (hash2) {
|
|
6752
|
-
const activeNode =
|
|
6752
|
+
const activeNode = import_utils37.document.getElementById(hash2);
|
|
6753
6753
|
if (activeNode) {
|
|
6754
6754
|
const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
|
|
6755
6755
|
scrollNode.scrollTo({
|
|
@@ -7107,8 +7107,13 @@ var init_Img = __esm({
|
|
|
7107
7107
|
Img = {
|
|
7108
7108
|
tag: "img",
|
|
7109
7109
|
attr: {
|
|
7110
|
-
src: (
|
|
7111
|
-
const
|
|
7110
|
+
src: (el) => {
|
|
7111
|
+
const { props: props4, context } = el;
|
|
7112
|
+
const { exec: exec4, isString: isString14, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = context.utils;
|
|
7113
|
+
let src = exec4(props4.src, el);
|
|
7114
|
+
if (isString14(src) && src.includes("{{")) {
|
|
7115
|
+
src = replaceLiteralsWithObjectFields2(src, el.state);
|
|
7116
|
+
}
|
|
7112
7117
|
let isUrl;
|
|
7113
7118
|
try {
|
|
7114
7119
|
isUrl = new URL(src);
|
|
@@ -11790,21 +11795,37 @@ var init_client = __esm({
|
|
|
11790
11795
|
function findComponent(el) {
|
|
11791
11796
|
if (!el || !el.__ref)
|
|
11792
11797
|
return;
|
|
11793
|
-
const components = el.context
|
|
11794
|
-
const
|
|
11795
|
-
|
|
11798
|
+
const { components, editor } = el.context;
|
|
11799
|
+
const componentKey = getComponentKey(el);
|
|
11800
|
+
if (editor && editor.onInitInspect) {
|
|
11801
|
+
const initInspectReturns = editor.onInitInspect(componentKey, el, el.state);
|
|
11802
|
+
if (!initInspectReturns)
|
|
11803
|
+
return findComponent(el.parent);
|
|
11804
|
+
}
|
|
11796
11805
|
if (componentKey && components[componentKey]) {
|
|
11797
11806
|
return el;
|
|
11798
11807
|
}
|
|
11799
11808
|
return findComponent(el.parent);
|
|
11800
11809
|
}
|
|
11801
|
-
var import_utils9, DevFocus, inspectOnKey;
|
|
11810
|
+
var import_utils9, returnStringExtend, getComponentKey, DevFocus, inspectOnKey;
|
|
11802
11811
|
var init_devFocus = __esm({
|
|
11803
11812
|
"../socket-ui/devFocus.js"() {
|
|
11804
11813
|
"use strict";
|
|
11805
11814
|
init_uikit();
|
|
11806
11815
|
import_utils9 = __toESM(require_cjs());
|
|
11807
11816
|
init_client();
|
|
11817
|
+
returnStringExtend = (extend) => {
|
|
11818
|
+
return (0, import_utils9.isString)(extend) ? extend : (0, import_utils9.isArray)(extend) ? extend.find((extItem) => (0, import_utils9.isString)(extItem)) : "";
|
|
11819
|
+
};
|
|
11820
|
+
getComponentKey = (el) => {
|
|
11821
|
+
var _a, _b;
|
|
11822
|
+
if (!el)
|
|
11823
|
+
return;
|
|
11824
|
+
const __componentKey = el.__ref.__componentKey;
|
|
11825
|
+
const extendStr = el.extend && returnStringExtend(el.extend);
|
|
11826
|
+
const parentChildExtendStr = ((_a = el.parent) == null ? void 0 : _a.childExtend) && returnStringExtend((_b = el.parent) == null ? void 0 : _b.childExtend);
|
|
11827
|
+
return (__componentKey || extendStr || parentChildExtendStr || "").split("_")[0].split(".")[0].split("+")[0];
|
|
11828
|
+
};
|
|
11808
11829
|
DevFocus = {
|
|
11809
11830
|
props: {
|
|
11810
11831
|
".preventSelect": {
|
|
@@ -11814,29 +11835,16 @@ var init_devFocus = __esm({
|
|
|
11814
11835
|
focus: {
|
|
11815
11836
|
state: {},
|
|
11816
11837
|
props: (el, s) => ({
|
|
11838
|
+
transition: "all, defaultBezier, X",
|
|
11817
11839
|
position: "fixed",
|
|
11818
|
-
hide: !s.area
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
return;
|
|
11825
|
-
const { x, y, width, height } = area;
|
|
11826
|
-
return {
|
|
11827
|
-
top: y - 6 + "px",
|
|
11828
|
-
left: x - 6 + "px",
|
|
11829
|
-
width: width + 12 + "px",
|
|
11830
|
-
height: height + 12 + "px"
|
|
11831
|
-
};
|
|
11840
|
+
hide: !(s.area && s.parent.debugging),
|
|
11841
|
+
style: {
|
|
11842
|
+
boxShadow: "0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",
|
|
11843
|
+
zIndex: "9999999",
|
|
11844
|
+
borderRadius: "10px",
|
|
11845
|
+
pointerEvents: "none"
|
|
11832
11846
|
}
|
|
11833
|
-
},
|
|
11834
|
-
style: {
|
|
11835
|
-
boxShadow: "0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",
|
|
11836
|
-
zIndex: "9999999",
|
|
11837
|
-
borderRadius: "10px",
|
|
11838
|
-
pointerEvents: "none"
|
|
11839
|
-
},
|
|
11847
|
+
}),
|
|
11840
11848
|
span: {
|
|
11841
11849
|
props: {
|
|
11842
11850
|
position: "absolute",
|
|
@@ -11845,15 +11853,16 @@ var init_devFocus = __esm({
|
|
|
11845
11853
|
color: "text",
|
|
11846
11854
|
// color: 'blue',
|
|
11847
11855
|
zIndex: "99999999",
|
|
11856
|
+
transition: "all, defaultBezier, X",
|
|
11848
11857
|
textDecoration: "underline",
|
|
11849
11858
|
fontWeight: "500",
|
|
11850
|
-
top: "100%"
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11859
|
+
top: "100%",
|
|
11860
|
+
style: {
|
|
11861
|
+
boxShadow: "0 25px 10px 35px black",
|
|
11862
|
+
textShadow: "0 0 10px black"
|
|
11863
|
+
},
|
|
11864
|
+
text: "{{ focusKey }}"
|
|
11865
|
+
}
|
|
11857
11866
|
},
|
|
11858
11867
|
on: {
|
|
11859
11868
|
init: ({ context }) => {
|
|
@@ -11870,6 +11879,26 @@ var init_devFocus = __esm({
|
|
|
11870
11879
|
}
|
|
11871
11880
|
}
|
|
11872
11881
|
}
|
|
11882
|
+
},
|
|
11883
|
+
initUpdate: (ch, el, s) => {
|
|
11884
|
+
const { area } = s;
|
|
11885
|
+
const isDebugging = s.area && s.parent.debugging;
|
|
11886
|
+
let style2;
|
|
11887
|
+
if (!isDebugging) {
|
|
11888
|
+
style2 = "display: none !important";
|
|
11889
|
+
} else if (area) {
|
|
11890
|
+
const { x, y, width, height } = area;
|
|
11891
|
+
style2 = `
|
|
11892
|
+
display: block !important;
|
|
11893
|
+
top: ${y - 6}px;
|
|
11894
|
+
left: ${x - 6}px;
|
|
11895
|
+
width: ${width + 12}px;
|
|
11896
|
+
height: ${height + 12}px;
|
|
11897
|
+
`;
|
|
11898
|
+
}
|
|
11899
|
+
el.node.style = style2;
|
|
11900
|
+
el.span.node.innerText = s.focusKey;
|
|
11901
|
+
return false;
|
|
11873
11902
|
}
|
|
11874
11903
|
}
|
|
11875
11904
|
},
|
|
@@ -11877,11 +11906,12 @@ var init_devFocus = __esm({
|
|
|
11877
11906
|
mousemove: (ev, e, state) => {
|
|
11878
11907
|
const el = ev.target.ref;
|
|
11879
11908
|
const component = findComponent(el);
|
|
11880
|
-
if (!component || !state.debugging || !component.__ref)
|
|
11881
|
-
return;
|
|
11882
11909
|
const focusState = e.focus.state;
|
|
11910
|
+
if (!component || !state.debugging || !component.__ref)
|
|
11911
|
+
return focusState.update({ area: false });
|
|
11912
|
+
const componentKey = getComponentKey(component);
|
|
11883
11913
|
const updateValue = (area) => {
|
|
11884
|
-
focusState.update({ area, focusKey:
|
|
11914
|
+
focusState.update({ area, focusKey: componentKey });
|
|
11885
11915
|
};
|
|
11886
11916
|
const update = () => {
|
|
11887
11917
|
if (ev.altKey && ev.shiftKey) {
|
|
@@ -11903,29 +11933,37 @@ var init_devFocus = __esm({
|
|
|
11903
11933
|
click: (ev, elem, state) => {
|
|
11904
11934
|
const el = ev.target.ref;
|
|
11905
11935
|
const component = findComponent(el);
|
|
11906
|
-
|
|
11936
|
+
const componentKey = getComponentKey(component);
|
|
11937
|
+
if (!component || !componentKey || !state.debugging)
|
|
11907
11938
|
return;
|
|
11908
|
-
|
|
11909
|
-
|
|
11939
|
+
const editor = el.context.editor;
|
|
11940
|
+
if (editor && editor.onInspect) {
|
|
11941
|
+
return editor.onInspect(componentKey, el, el.state, { allowRouterWhileInspect: true });
|
|
11942
|
+
}
|
|
11943
|
+
send.call(el.context.socket, "route", JSON.stringify({
|
|
11944
|
+
componentKey: `${componentKey}`
|
|
11910
11945
|
}));
|
|
11911
11946
|
return false;
|
|
11912
11947
|
}
|
|
11913
11948
|
}
|
|
11914
11949
|
};
|
|
11915
|
-
inspectOnKey = (app) => {
|
|
11916
|
-
|
|
11950
|
+
inspectOnKey = (app, opts) => {
|
|
11951
|
+
const windowOpts = opts.window || window;
|
|
11952
|
+
windowOpts.onkeydown = (ev) => {
|
|
11917
11953
|
if (ev.altKey && ev.shiftKey) {
|
|
11918
11954
|
app.state.update({ debugging: true, preventSelect: true }, {
|
|
11955
|
+
preventUpdate: true,
|
|
11919
11956
|
preventContentUpdate: true,
|
|
11920
11957
|
preventRecursive: true
|
|
11921
11958
|
});
|
|
11922
11959
|
}
|
|
11923
11960
|
};
|
|
11924
|
-
|
|
11961
|
+
windowOpts.onkeyup = (ev) => {
|
|
11925
11962
|
if ((!ev.altKey || !ev.shiftKey) && app.state.debugging) {
|
|
11926
11963
|
app.focus.state.update({ area: false });
|
|
11927
11964
|
app.state.update({ debugging: false, preventSelect: false }, {
|
|
11928
11965
|
// TODO: does not update false
|
|
11966
|
+
preventUpdate: true,
|
|
11929
11967
|
preventContentUpdate: true,
|
|
11930
11968
|
preventRecursive: true,
|
|
11931
11969
|
preventPropsUpdate: true
|
|
@@ -12066,7 +12104,7 @@ var init_byld_socket = __esm({
|
|
|
12066
12104
|
},
|
|
12067
12105
|
on: {
|
|
12068
12106
|
render: (el, s, ctx) => {
|
|
12069
|
-
|
|
12107
|
+
ctx.socket = connect(ctx.key, {
|
|
12070
12108
|
source: isLocalhost ? "localhost" : "client",
|
|
12071
12109
|
socketUrl: isLocalhost ? "localhost:13336" : "socket.symbols.app",
|
|
12072
12110
|
location: import_globals.window.location.host,
|
|
@@ -12129,7 +12167,7 @@ var init_syncExtend = __esm({
|
|
|
12129
12167
|
return;
|
|
12130
12168
|
const inspect = (0, import_utils11.isUndefined)(editor.inspect) ? (0, import_utils11.isDevelopment)() : editor.inspect;
|
|
12131
12169
|
if (inspect)
|
|
12132
|
-
(0, import_socket_ui.inspectOnKey)(root);
|
|
12170
|
+
(0, import_socket_ui.inspectOnKey)(root, options);
|
|
12133
12171
|
};
|
|
12134
12172
|
}
|
|
12135
12173
|
});
|
|
@@ -12269,11 +12307,11 @@ var require_tree = __commonJS({
|
|
|
12269
12307
|
TREE: () => TREE
|
|
12270
12308
|
});
|
|
12271
12309
|
module2.exports = __toCommonJS12(tree_exports);
|
|
12272
|
-
var
|
|
12310
|
+
var import_utils37 = require_cjs();
|
|
12273
12311
|
var import_report = require_cjs3();
|
|
12274
12312
|
var ROOT = {
|
|
12275
12313
|
key: ":root",
|
|
12276
|
-
node:
|
|
12314
|
+
node: import_utils37.document ? import_utils37.document.body : (0, import_report.report)("DocumentNotDefined", import_utils37.document)
|
|
12277
12315
|
};
|
|
12278
12316
|
var TREE = ROOT;
|
|
12279
12317
|
}
|
|
@@ -12340,7 +12378,7 @@ var require_cache = __commonJS({
|
|
|
12340
12378
|
module2.exports = __toCommonJS12(cache_exports);
|
|
12341
12379
|
var import_report = require_cjs3();
|
|
12342
12380
|
var import_event = require_cjs4();
|
|
12343
|
-
var
|
|
12381
|
+
var import_utils37 = require_cjs();
|
|
12344
12382
|
var cache2 = {};
|
|
12345
12383
|
var createHTMLNode = (element) => {
|
|
12346
12384
|
const { tag } = element;
|
|
@@ -12359,16 +12397,16 @@ var require_cache = __commonJS({
|
|
|
12359
12397
|
};
|
|
12360
12398
|
var detectTag = (element) => {
|
|
12361
12399
|
let { tag, key, props: props4 } = element;
|
|
12362
|
-
tag = (0,
|
|
12400
|
+
tag = (0, import_utils37.exec)(tag, element);
|
|
12363
12401
|
if (tag === true)
|
|
12364
12402
|
tag = key;
|
|
12365
|
-
if ((0,
|
|
12366
|
-
const tagExists = (0,
|
|
12403
|
+
if ((0, import_utils37.isObject)(props4) && (0, import_utils37.isString)(props4.tag)) {
|
|
12404
|
+
const tagExists = (0, import_utils37.isValidHtmlTag)(props4.tag);
|
|
12367
12405
|
if (tagExists)
|
|
12368
12406
|
return props4.tag;
|
|
12369
12407
|
}
|
|
12370
|
-
if ((0,
|
|
12371
|
-
if ((0,
|
|
12408
|
+
if ((0, import_utils37.isString)(tag)) {
|
|
12409
|
+
if ((0, import_utils37.isValidHtmlTag)(tag))
|
|
12372
12410
|
return tag;
|
|
12373
12411
|
} else {
|
|
12374
12412
|
let keyAsTag = key.toLowerCase();
|
|
@@ -12376,7 +12414,7 @@ var require_cache = __commonJS({
|
|
|
12376
12414
|
keyAsTag = keyAsTag.split(".")[0];
|
|
12377
12415
|
if (keyAsTag.includes("_"))
|
|
12378
12416
|
keyAsTag = keyAsTag.split("_")[0];
|
|
12379
|
-
if ((0,
|
|
12417
|
+
if ((0, import_utils37.isValidHtmlTag)(keyAsTag))
|
|
12380
12418
|
return keyAsTag;
|
|
12381
12419
|
}
|
|
12382
12420
|
return "div";
|
|
@@ -12510,16 +12548,16 @@ var require_attr = __commonJS({
|
|
|
12510
12548
|
default: () => attr_default
|
|
12511
12549
|
});
|
|
12512
12550
|
module2.exports = __toCommonJS12(attr_exports);
|
|
12513
|
-
var
|
|
12551
|
+
var import_utils37 = require_cjs();
|
|
12514
12552
|
var import_report = require_cjs3();
|
|
12515
12553
|
var attr_default = (params, element, node2) => {
|
|
12516
12554
|
const { __ref } = element;
|
|
12517
12555
|
const { __attr } = __ref;
|
|
12518
|
-
if ((0,
|
|
12556
|
+
if ((0, import_utils37.isNot)("object"))
|
|
12519
12557
|
(0, import_report.report)("HTMLInvalidAttr", params);
|
|
12520
12558
|
if (params) {
|
|
12521
12559
|
for (const attr in params) {
|
|
12522
|
-
const val = (0,
|
|
12560
|
+
const val = (0, import_utils37.exec)(params[attr], element);
|
|
12523
12561
|
if (val && node2.setAttribute)
|
|
12524
12562
|
node2.setAttribute(attr, val);
|
|
12525
12563
|
else if (node2.removeAttribute)
|
|
@@ -12562,7 +12600,7 @@ var require_classList = __commonJS({
|
|
|
12562
12600
|
default: () => classList_default
|
|
12563
12601
|
});
|
|
12564
12602
|
module2.exports = __toCommonJS12(classList_exports);
|
|
12565
|
-
var
|
|
12603
|
+
var import_utils37 = require_cjs();
|
|
12566
12604
|
var assignKeyAsClassname = (element) => {
|
|
12567
12605
|
const { key } = element;
|
|
12568
12606
|
if (element.class === true)
|
|
@@ -12580,7 +12618,7 @@ var require_classList = __commonJS({
|
|
|
12580
12618
|
else if (typeof param === "string")
|
|
12581
12619
|
className += ` ${param}`;
|
|
12582
12620
|
else if (typeof param === "function") {
|
|
12583
|
-
className += ` ${(0,
|
|
12621
|
+
className += ` ${(0, import_utils37.exec)(param, element)}`;
|
|
12584
12622
|
}
|
|
12585
12623
|
}
|
|
12586
12624
|
return className;
|
|
@@ -12591,9 +12629,9 @@ var require_classList = __commonJS({
|
|
|
12591
12629
|
const { key } = element;
|
|
12592
12630
|
if (params === true)
|
|
12593
12631
|
params = element.class = { key };
|
|
12594
|
-
if ((0,
|
|
12632
|
+
if ((0, import_utils37.isString)(params))
|
|
12595
12633
|
params = element.class = { default: params };
|
|
12596
|
-
if ((0,
|
|
12634
|
+
if ((0, import_utils37.isObject)(params))
|
|
12597
12635
|
params = classify2(params, element);
|
|
12598
12636
|
const className = params.replace(/\s+/g, " ").trim();
|
|
12599
12637
|
if (element.ref)
|
|
@@ -12678,7 +12716,7 @@ var require_set = __commonJS({
|
|
|
12678
12716
|
resetElement: () => resetElement
|
|
12679
12717
|
});
|
|
12680
12718
|
module2.exports = __toCommonJS12(set_exports);
|
|
12681
|
-
var
|
|
12719
|
+
var import_utils37 = require_cjs();
|
|
12682
12720
|
var import_create = __toESM6(require_create4(), 1);
|
|
12683
12721
|
var import_options5 = __toESM6(require_options(), 1);
|
|
12684
12722
|
var import_mixins = require_mixins();
|
|
@@ -12701,7 +12739,7 @@ var require_set = __commonJS({
|
|
|
12701
12739
|
const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
|
|
12702
12740
|
if (options.preventContentUpdate === true && !hasCollection)
|
|
12703
12741
|
return;
|
|
12704
|
-
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0,
|
|
12742
|
+
if (ref.__noCollectionDifference || __contentRef && __contentRef.__cached && (0, import_utils37.deepContains)(params, content)) {
|
|
12705
12743
|
if (content == null ? void 0 : content.update)
|
|
12706
12744
|
content.update();
|
|
12707
12745
|
return;
|
|
@@ -12760,7 +12798,7 @@ var require_content = __commonJS({
|
|
|
12760
12798
|
updateContent: () => updateContent
|
|
12761
12799
|
});
|
|
12762
12800
|
module2.exports = __toCommonJS12(content_exports);
|
|
12763
|
-
var
|
|
12801
|
+
var import_utils37 = require_cjs();
|
|
12764
12802
|
var import_set = __toESM6(require_set(), 1);
|
|
12765
12803
|
var updateContent = function(params, options) {
|
|
12766
12804
|
const element = this;
|
|
@@ -12783,7 +12821,7 @@ var require_content = __commonJS({
|
|
|
12783
12821
|
if (__cached && __cached.content) {
|
|
12784
12822
|
if (__cached.content.tag === "fragment")
|
|
12785
12823
|
__cached.content.parent.node.innerHTML = "";
|
|
12786
|
-
else if (__cached.content && (0,
|
|
12824
|
+
else if (__cached.content && (0, import_utils37.isFunction)(__cached.content.remove))
|
|
12787
12825
|
__cached.content.remove();
|
|
12788
12826
|
}
|
|
12789
12827
|
delete element.content;
|
|
@@ -12828,15 +12866,15 @@ var require_data = __commonJS({
|
|
|
12828
12866
|
default: () => data_default
|
|
12829
12867
|
});
|
|
12830
12868
|
module2.exports = __toCommonJS12(data_exports);
|
|
12831
|
-
var
|
|
12869
|
+
var import_utils37 = require_cjs();
|
|
12832
12870
|
var import_report = require_cjs3();
|
|
12833
12871
|
var data_default = (params, element, node2) => {
|
|
12834
12872
|
if (params && params.showOnNode) {
|
|
12835
|
-
if (!(0,
|
|
12873
|
+
if (!(0, import_utils37.isObject)(params))
|
|
12836
12874
|
(0, import_report.report)("HTMLInvalidData", params);
|
|
12837
12875
|
for (const dataset in params) {
|
|
12838
12876
|
if (dataset !== "showOnNode") {
|
|
12839
|
-
node2.dataset[dataset] = (0,
|
|
12877
|
+
node2.dataset[dataset] = (0, import_utils37.exec)(params[dataset], element);
|
|
12840
12878
|
}
|
|
12841
12879
|
}
|
|
12842
12880
|
}
|
|
@@ -12870,9 +12908,9 @@ var require_html = __commonJS({
|
|
|
12870
12908
|
default: () => html_default
|
|
12871
12909
|
});
|
|
12872
12910
|
module2.exports = __toCommonJS12(html_exports);
|
|
12873
|
-
var
|
|
12911
|
+
var import_utils37 = require_cjs();
|
|
12874
12912
|
var html_default = (param, element, node2) => {
|
|
12875
|
-
const prop = (0,
|
|
12913
|
+
const prop = (0, import_utils37.exec)(param, element);
|
|
12876
12914
|
const { __ref } = element;
|
|
12877
12915
|
if (prop !== __ref.__html) {
|
|
12878
12916
|
if (node2.nodeName === "SVG")
|
|
@@ -12911,12 +12949,12 @@ var require_style = __commonJS({
|
|
|
12911
12949
|
default: () => style_default2
|
|
12912
12950
|
});
|
|
12913
12951
|
module2.exports = __toCommonJS12(style_exports);
|
|
12914
|
-
var
|
|
12952
|
+
var import_utils37 = require_cjs();
|
|
12915
12953
|
var import_report = require_cjs3();
|
|
12916
12954
|
var style_default2 = (params, element, node2) => {
|
|
12917
12955
|
if (params) {
|
|
12918
|
-
if ((0,
|
|
12919
|
-
(0,
|
|
12956
|
+
if ((0, import_utils37.isObject)(params))
|
|
12957
|
+
(0, import_utils37.map)(node2.style, params, element);
|
|
12920
12958
|
else
|
|
12921
12959
|
(0, import_report.report)("HTMLInvalidStyles", params);
|
|
12922
12960
|
}
|
|
@@ -12951,11 +12989,11 @@ var require_text = __commonJS({
|
|
|
12951
12989
|
});
|
|
12952
12990
|
module2.exports = __toCommonJS12(text_exports);
|
|
12953
12991
|
var import__ = require_cjs11();
|
|
12954
|
-
var
|
|
12992
|
+
var import_utils37 = require_cjs();
|
|
12955
12993
|
var text_default = (param, element, node2) => {
|
|
12956
|
-
let prop = (0,
|
|
12957
|
-
if ((0,
|
|
12958
|
-
prop = (0,
|
|
12994
|
+
let prop = (0, import_utils37.exec)(param, element);
|
|
12995
|
+
if ((0, import_utils37.isString)(prop) && prop.includes("{{")) {
|
|
12996
|
+
prop = (0, import_utils37.replaceLiteralsWithObjectFields)(prop, element.state);
|
|
12959
12997
|
}
|
|
12960
12998
|
if (element.tag === "string") {
|
|
12961
12999
|
node2.nodeValue = prop;
|
|
@@ -13059,11 +13097,11 @@ var require_methods = __commonJS({
|
|
|
13059
13097
|
toggle: () => toggle
|
|
13060
13098
|
});
|
|
13061
13099
|
module2.exports = __toCommonJS12(methods_exports);
|
|
13062
|
-
var
|
|
13100
|
+
var import_utils37 = require_cjs();
|
|
13063
13101
|
var import_ignore = require_ignore();
|
|
13064
13102
|
var parse3 = function() {
|
|
13065
13103
|
const state = this;
|
|
13066
|
-
if ((0,
|
|
13104
|
+
if ((0, import_utils37.isObject)(state)) {
|
|
13067
13105
|
const obj = {};
|
|
13068
13106
|
for (const param in state) {
|
|
13069
13107
|
if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
|
|
@@ -13071,7 +13109,7 @@ var require_methods = __commonJS({
|
|
|
13071
13109
|
}
|
|
13072
13110
|
}
|
|
13073
13111
|
return obj;
|
|
13074
|
-
} else if ((0,
|
|
13112
|
+
} else if ((0, import_utils37.isArray)(state)) {
|
|
13075
13113
|
return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
|
|
13076
13114
|
}
|
|
13077
13115
|
};
|
|
@@ -13091,7 +13129,7 @@ var require_methods = __commonJS({
|
|
|
13091
13129
|
const state = this;
|
|
13092
13130
|
const element = state.__element;
|
|
13093
13131
|
const stateKey = element.__ref.__state;
|
|
13094
|
-
if ((0,
|
|
13132
|
+
if ((0, import_utils37.isString)(stateKey)) {
|
|
13095
13133
|
element.parent.state.remove(stateKey, { isHoisted: true, ...options });
|
|
13096
13134
|
return element.state;
|
|
13097
13135
|
}
|
|
@@ -13104,7 +13142,7 @@ var require_methods = __commonJS({
|
|
|
13104
13142
|
for (const key in state.__children) {
|
|
13105
13143
|
const child = state.__children[key];
|
|
13106
13144
|
if (child.state) {
|
|
13107
|
-
if ((0,
|
|
13145
|
+
if ((0, import_utils37.isArray)(child.state)) {
|
|
13108
13146
|
Object.defineProperty(child.state, "parent", {
|
|
13109
13147
|
value: state.parent,
|
|
13110
13148
|
enumerable: false,
|
|
@@ -13138,10 +13176,10 @@ var require_methods = __commonJS({
|
|
|
13138
13176
|
};
|
|
13139
13177
|
var add = function(value2, options = {}) {
|
|
13140
13178
|
const state = this;
|
|
13141
|
-
if ((0,
|
|
13179
|
+
if ((0, import_utils37.isArray)(state)) {
|
|
13142
13180
|
state.push(value2);
|
|
13143
13181
|
state.update(state.parse(), { overwrite: true, ...options });
|
|
13144
|
-
} else if ((0,
|
|
13182
|
+
} else if ((0, import_utils37.isObject)(state)) {
|
|
13145
13183
|
const key = Object.keys(state).length;
|
|
13146
13184
|
state.update({ [key]: value2 }, options);
|
|
13147
13185
|
}
|
|
@@ -13157,17 +13195,17 @@ var require_methods = __commonJS({
|
|
|
13157
13195
|
};
|
|
13158
13196
|
var set3 = function(val, options = {}) {
|
|
13159
13197
|
const state = this;
|
|
13160
|
-
const value2 = (0,
|
|
13198
|
+
const value2 = (0, import_utils37.deepCloneWithExtend)(val);
|
|
13161
13199
|
return state.clean({ preventStateUpdate: true, ...options }).update(value2, { replace: true, ...options });
|
|
13162
13200
|
};
|
|
13163
13201
|
var reset = function(options = {}) {
|
|
13164
13202
|
const state = this;
|
|
13165
|
-
const value2 = (0,
|
|
13203
|
+
const value2 = (0, import_utils37.deepCloneWithExtend)(state.parse());
|
|
13166
13204
|
return state.set(value2, { replace: true, ...options });
|
|
13167
13205
|
};
|
|
13168
13206
|
var apply = function(func, options = {}) {
|
|
13169
13207
|
const state = this;
|
|
13170
|
-
if ((0,
|
|
13208
|
+
if ((0, import_utils37.isFunction)(func)) {
|
|
13171
13209
|
func(state);
|
|
13172
13210
|
return state.update(state.parse(), { replace: true, ...options });
|
|
13173
13211
|
}
|
|
@@ -13208,7 +13246,7 @@ var require_inherit = __commonJS({
|
|
|
13208
13246
|
isState: () => isState2
|
|
13209
13247
|
});
|
|
13210
13248
|
module2.exports = __toCommonJS12(inherit_exports);
|
|
13211
|
-
var
|
|
13249
|
+
var import_utils37 = require_cjs();
|
|
13212
13250
|
var import_ignore = require_ignore();
|
|
13213
13251
|
var getRootStateInKey = (stateKey, parentState) => {
|
|
13214
13252
|
if (!stateKey.includes("~/"))
|
|
@@ -13273,11 +13311,11 @@ var require_inherit = __commonJS({
|
|
|
13273
13311
|
var createInheritedState = (element, parent) => {
|
|
13274
13312
|
const ref = element.__ref;
|
|
13275
13313
|
const inheritedState = findInheritedState(element, parent);
|
|
13276
|
-
if ((0,
|
|
13314
|
+
if ((0, import_utils37.isUndefined)(inheritedState))
|
|
13277
13315
|
return element.state;
|
|
13278
|
-
if ((0,
|
|
13279
|
-
return (0,
|
|
13280
|
-
} else if ((0,
|
|
13316
|
+
if ((0, import_utils37.is)(inheritedState)("object", "array")) {
|
|
13317
|
+
return (0, import_utils37.deepCloneWithExtend)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
|
|
13318
|
+
} else if ((0, import_utils37.is)(inheritedState)("string", "number", "boolean")) {
|
|
13281
13319
|
ref.__stateType = typeof inheritedState;
|
|
13282
13320
|
return { value: inheritedState };
|
|
13283
13321
|
}
|
|
@@ -13286,12 +13324,12 @@ var require_inherit = __commonJS({
|
|
|
13286
13324
|
var checkIfInherits = (element) => {
|
|
13287
13325
|
const ref = element.__ref;
|
|
13288
13326
|
const stateKey = ref.__state;
|
|
13289
|
-
if (stateKey && (0,
|
|
13327
|
+
if (stateKey && (0, import_utils37.is)(stateKey)("number", "string", "boolean"))
|
|
13290
13328
|
return true;
|
|
13291
13329
|
return false;
|
|
13292
13330
|
};
|
|
13293
13331
|
var isState2 = function(state) {
|
|
13294
|
-
if (!(0,
|
|
13332
|
+
if (!(0, import_utils37.isObjectLike)(state))
|
|
13295
13333
|
return false;
|
|
13296
13334
|
return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
|
|
13297
13335
|
};
|
|
@@ -13340,7 +13378,7 @@ var require_updateState = __commonJS({
|
|
|
13340
13378
|
var import_report = require_cjs3();
|
|
13341
13379
|
var import_event = require_cjs4();
|
|
13342
13380
|
var import_ignore = require_ignore();
|
|
13343
|
-
var
|
|
13381
|
+
var import_utils37 = require_cjs();
|
|
13344
13382
|
var import_inherit = require_inherit();
|
|
13345
13383
|
var STATE_UPDATE_OPTIONS = {
|
|
13346
13384
|
overwrite: true,
|
|
@@ -13353,7 +13391,7 @@ var require_updateState = __commonJS({
|
|
|
13353
13391
|
const state = this;
|
|
13354
13392
|
const element = state.__element;
|
|
13355
13393
|
if (!options.updateByState)
|
|
13356
|
-
(0,
|
|
13394
|
+
(0, import_utils37.merge)(options, STATE_UPDATE_OPTIONS);
|
|
13357
13395
|
if (!state.__element)
|
|
13358
13396
|
(0, import_report.report)("ElementOnStateIsNotDefined");
|
|
13359
13397
|
if (options.preventInheritAtCurrentState === true) {
|
|
@@ -13383,10 +13421,10 @@ var require_updateState = __commonJS({
|
|
|
13383
13421
|
const shallow = overwrite === "shallow" || overwrite === "shallow-once";
|
|
13384
13422
|
const merge22 = overwrite === "merge";
|
|
13385
13423
|
if (merge22) {
|
|
13386
|
-
(0,
|
|
13424
|
+
(0, import_utils37.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
13387
13425
|
return;
|
|
13388
13426
|
}
|
|
13389
|
-
const overwriteFunc = shallow ?
|
|
13427
|
+
const overwriteFunc = shallow ? import_utils37.overwriteShallow : import_utils37.overwriteDeep;
|
|
13390
13428
|
if (options.overwrite === "shallow-once")
|
|
13391
13429
|
options.overwrite = true;
|
|
13392
13430
|
overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
|
|
@@ -13411,7 +13449,7 @@ var require_updateState = __commonJS({
|
|
|
13411
13449
|
const changesValue = (0, import_inherit.createNestedObjectByKeyPath)(stateKey, passedValue);
|
|
13412
13450
|
const targetParent = findRootState || findGrandParentState || parent.state;
|
|
13413
13451
|
if (options.replace)
|
|
13414
|
-
(0,
|
|
13452
|
+
(0, import_utils37.overwriteDeep)(targetParent, changesValue || value2);
|
|
13415
13453
|
targetParent.update(changesValue, {
|
|
13416
13454
|
execStateFunction: false,
|
|
13417
13455
|
isHoisted: true,
|
|
@@ -13480,7 +13518,7 @@ var require_create2 = __commonJS({
|
|
|
13480
13518
|
});
|
|
13481
13519
|
module2.exports = __toCommonJS12(create_exports);
|
|
13482
13520
|
var import_event = require_cjs4();
|
|
13483
|
-
var
|
|
13521
|
+
var import_utils37 = require_cjs();
|
|
13484
13522
|
var import_ignore = require_ignore();
|
|
13485
13523
|
var import_methods = require_methods();
|
|
13486
13524
|
var import_updateState = require_updateState();
|
|
@@ -13494,13 +13532,13 @@ var require_create2 = __commonJS({
|
|
|
13494
13532
|
if (objectizeState === false)
|
|
13495
13533
|
return parent.state || {};
|
|
13496
13534
|
else
|
|
13497
|
-
element.state = (0,
|
|
13535
|
+
element.state = (0, import_utils37.deepCloneWithExtend)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
|
|
13498
13536
|
const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
|
|
13499
13537
|
if (whatInitReturns === false)
|
|
13500
13538
|
return element.state;
|
|
13501
13539
|
if ((0, import_inherit.checkIfInherits)(element)) {
|
|
13502
13540
|
const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
|
|
13503
|
-
element.state = (0,
|
|
13541
|
+
element.state = (0, import_utils37.isUndefined)(inheritedState) ? {} : inheritedState;
|
|
13504
13542
|
}
|
|
13505
13543
|
const dependentState = applyDependentState(element, element.state);
|
|
13506
13544
|
if (dependentState)
|
|
@@ -13513,17 +13551,17 @@ var require_create2 = __commonJS({
|
|
|
13513
13551
|
const { __ref: ref } = state;
|
|
13514
13552
|
if (!ref)
|
|
13515
13553
|
return;
|
|
13516
|
-
const dependentState = (0,
|
|
13554
|
+
const dependentState = (0, import_utils37.deepCloneWithExtend)(ref, import_ignore.IGNORE_STATE_PARAMS);
|
|
13517
13555
|
const newDepends = { [element.key]: dependentState };
|
|
13518
|
-
ref.__depends = (0,
|
|
13556
|
+
ref.__depends = (0, import_utils37.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
|
|
13519
13557
|
return dependentState;
|
|
13520
13558
|
};
|
|
13521
13559
|
var checkForTypes = (element) => {
|
|
13522
13560
|
const { state, __ref: ref } = element;
|
|
13523
|
-
if ((0,
|
|
13561
|
+
if ((0, import_utils37.isFunction)(state)) {
|
|
13524
13562
|
ref.__state = state;
|
|
13525
|
-
return (0,
|
|
13526
|
-
} else if ((0,
|
|
13563
|
+
return (0, import_utils37.exec)(state, element);
|
|
13564
|
+
} else if ((0, import_utils37.is)(state)("string", "number")) {
|
|
13527
13565
|
ref.__state = state;
|
|
13528
13566
|
return {};
|
|
13529
13567
|
} else if (state === true) {
|
|
@@ -13571,7 +13609,7 @@ var require_create2 = __commonJS({
|
|
|
13571
13609
|
__children: {},
|
|
13572
13610
|
root: ref.root ? ref.root.state : state
|
|
13573
13611
|
};
|
|
13574
|
-
if ((0,
|
|
13612
|
+
if ((0, import_utils37.isArray)(state)) {
|
|
13575
13613
|
addProtoToArray(state, proto);
|
|
13576
13614
|
} else {
|
|
13577
13615
|
Object.setPrototypeOf(state, proto);
|
|
@@ -13639,10 +13677,10 @@ var require_state = __commonJS({
|
|
|
13639
13677
|
});
|
|
13640
13678
|
module2.exports = __toCommonJS12(state_exports);
|
|
13641
13679
|
var import_state2 = require_cjs9();
|
|
13642
|
-
var
|
|
13680
|
+
var import_utils37 = require_cjs();
|
|
13643
13681
|
var state = (params, element, node2) => {
|
|
13644
|
-
const state2 = (0,
|
|
13645
|
-
if ((0,
|
|
13682
|
+
const state2 = (0, import_utils37.exec)(params, element);
|
|
13683
|
+
if ((0, import_utils37.isObject)(state2)) {
|
|
13646
13684
|
for (const param in state2) {
|
|
13647
13685
|
if (import_state2.IGNORE_STATE_PARAMS.includes(param))
|
|
13648
13686
|
continue;
|
|
@@ -13682,13 +13720,13 @@ var require_scope = __commonJS({
|
|
|
13682
13720
|
default: () => scope_default
|
|
13683
13721
|
});
|
|
13684
13722
|
module2.exports = __toCommonJS12(scope_exports);
|
|
13685
|
-
var
|
|
13723
|
+
var import_utils37 = require_cjs();
|
|
13686
13724
|
var scope_default = (params, element, node2) => {
|
|
13687
|
-
if (!(0,
|
|
13725
|
+
if (!(0, import_utils37.isObject)(params))
|
|
13688
13726
|
return;
|
|
13689
13727
|
for (const scopeItem in params) {
|
|
13690
13728
|
const value2 = params[scopeItem];
|
|
13691
|
-
if ((0,
|
|
13729
|
+
if ((0, import_utils37.isFunction)(value2)) {
|
|
13692
13730
|
element.scope[scopeItem] = value2.bind(element);
|
|
13693
13731
|
} else {
|
|
13694
13732
|
element.scope[scopeItem] = value2;
|
|
@@ -13908,7 +13946,7 @@ var require_methods2 = __commonJS({
|
|
|
13908
13946
|
spotByPath: () => spotByPath
|
|
13909
13947
|
});
|
|
13910
13948
|
module2.exports = __toCommonJS12(methods_exports);
|
|
13911
|
-
var
|
|
13949
|
+
var import_utils37 = require_cjs();
|
|
13912
13950
|
var import_tree = require_tree();
|
|
13913
13951
|
var import_mixins = require_mixins();
|
|
13914
13952
|
var spotByPath = function(path) {
|
|
@@ -13941,9 +13979,9 @@ var require_methods2 = __commonJS({
|
|
|
13941
13979
|
};
|
|
13942
13980
|
var remove = function(params) {
|
|
13943
13981
|
const element = this;
|
|
13944
|
-
if ((0,
|
|
13982
|
+
if ((0, import_utils37.isFunction)(element.node.remove))
|
|
13945
13983
|
element.node.remove();
|
|
13946
|
-
else if (!(0,
|
|
13984
|
+
else if (!(0, import_utils37.isProduction)()) {
|
|
13947
13985
|
console.warn("This item cant be removed");
|
|
13948
13986
|
element.log();
|
|
13949
13987
|
}
|
|
@@ -13983,8 +14021,8 @@ var require_methods2 = __commonJS({
|
|
|
13983
14021
|
if (v === "state") {
|
|
13984
14022
|
if (element.__ref && !element.__ref.__hasRootState)
|
|
13985
14023
|
return;
|
|
13986
|
-
const parsedVal = (0,
|
|
13987
|
-
obj[v] = (0,
|
|
14024
|
+
const parsedVal = (0, import_utils37.isFunction)(val && val.parse) ? val.parse() : val;
|
|
14025
|
+
obj[v] = (0, import_utils37.isFunction)(parsedVal) ? parsedVal : JSON.parse(JSON.stringify(parsedVal || {}));
|
|
13988
14026
|
} else if (v === "scope") {
|
|
13989
14027
|
if (element.__ref && !element.__ref.__hasRootScope)
|
|
13990
14028
|
return;
|
|
@@ -13992,7 +14030,7 @@ var require_methods2 = __commonJS({
|
|
|
13992
14030
|
} else if (v === "props") {
|
|
13993
14031
|
const { __element, update, ...props4 } = element[v];
|
|
13994
14032
|
obj[v] = props4;
|
|
13995
|
-
} else if ((0,
|
|
14033
|
+
} else if ((0, import_utils37.isDefined)(val))
|
|
13996
14034
|
obj[v] = val;
|
|
13997
14035
|
});
|
|
13998
14036
|
return obj;
|
|
@@ -14003,7 +14041,7 @@ var require_methods2 = __commonJS({
|
|
|
14003
14041
|
for (const v in obj) {
|
|
14004
14042
|
if (excl.includes(v))
|
|
14005
14043
|
return;
|
|
14006
|
-
if ((0,
|
|
14044
|
+
if ((0, import_utils37.isObjectLike)(obj[v])) {
|
|
14007
14045
|
obj[v] = parseDeep.call(obj[v], excl);
|
|
14008
14046
|
}
|
|
14009
14047
|
}
|
|
@@ -14121,18 +14159,18 @@ var require_inherit2 = __commonJS({
|
|
|
14121
14159
|
inheritParentProps: () => inheritParentProps
|
|
14122
14160
|
});
|
|
14123
14161
|
module2.exports = __toCommonJS12(inherit_exports);
|
|
14124
|
-
var
|
|
14162
|
+
var import_utils37 = require_cjs();
|
|
14125
14163
|
var objectizeStringProperty = (propValue) => {
|
|
14126
|
-
if ((0,
|
|
14164
|
+
if ((0, import_utils37.is)(propValue)("string", "number")) {
|
|
14127
14165
|
return { inheritedString: propValue };
|
|
14128
14166
|
}
|
|
14129
14167
|
return propValue;
|
|
14130
14168
|
};
|
|
14131
14169
|
var inheritParentProps = (element, parent) => {
|
|
14132
14170
|
let propsStack = [];
|
|
14133
|
-
const parentProps = (0,
|
|
14171
|
+
const parentProps = (0, import_utils37.exec)(parent, parent.state).props;
|
|
14134
14172
|
const matchParent = parent.props && parentProps[element.key];
|
|
14135
|
-
const matchParentIsString = (0,
|
|
14173
|
+
const matchParentIsString = (0, import_utils37.isString)(matchParent);
|
|
14136
14174
|
const matchParentChildProps = parentProps && parentProps.childProps;
|
|
14137
14175
|
if (matchParent) {
|
|
14138
14176
|
if (matchParentIsString) {
|
|
@@ -14180,19 +14218,19 @@ var require_create3 = __commonJS({
|
|
|
14180
14218
|
syncProps: () => syncProps
|
|
14181
14219
|
});
|
|
14182
14220
|
module2.exports = __toCommonJS12(create_exports);
|
|
14183
|
-
var
|
|
14221
|
+
var import_utils37 = require_cjs();
|
|
14184
14222
|
var import_ignore = require_ignore2();
|
|
14185
14223
|
var import_inherit = require_inherit2();
|
|
14186
14224
|
var createPropsStack = (element, parent) => {
|
|
14187
14225
|
const { props: props4, __ref } = element;
|
|
14188
14226
|
const propsStack = __ref.__props = (0, import_inherit.inheritParentProps)(element, parent);
|
|
14189
|
-
if ((0,
|
|
14227
|
+
if ((0, import_utils37.isObject)(props4))
|
|
14190
14228
|
propsStack.push(props4);
|
|
14191
14229
|
else if (props4 === "inherit" && parent.props)
|
|
14192
14230
|
propsStack.push(parent.props);
|
|
14193
14231
|
else if (props4)
|
|
14194
14232
|
propsStack.push(props4);
|
|
14195
|
-
if ((0,
|
|
14233
|
+
if ((0, import_utils37.isArray)(__ref.__extend)) {
|
|
14196
14234
|
__ref.__extend.forEach((extend) => {
|
|
14197
14235
|
if (extend.props && extend.props !== props4)
|
|
14198
14236
|
propsStack.push(extend.props);
|
|
@@ -14207,10 +14245,10 @@ var require_create3 = __commonJS({
|
|
|
14207
14245
|
props4.forEach((v) => {
|
|
14208
14246
|
if (import_ignore.IGNORE_PROPS_PARAMS.includes(v))
|
|
14209
14247
|
return;
|
|
14210
|
-
const execProps = (0,
|
|
14211
|
-
element.props = (0,
|
|
14248
|
+
const execProps = (0, import_utils37.exec)(v, element);
|
|
14249
|
+
element.props = (0, import_utils37.deepMerge)(
|
|
14212
14250
|
mergedProps,
|
|
14213
|
-
(0,
|
|
14251
|
+
(0, import_utils37.deepClone)(execProps, import_ignore.IGNORE_PROPS_PARAMS),
|
|
14214
14252
|
import_ignore.IGNORE_PROPS_PARAMS
|
|
14215
14253
|
);
|
|
14216
14254
|
});
|
|
@@ -14358,11 +14396,11 @@ var require_object2 = __commonJS({
|
|
|
14358
14396
|
overwriteShallow: () => overwriteShallow2
|
|
14359
14397
|
});
|
|
14360
14398
|
module2.exports = __toCommonJS12(object_exports);
|
|
14361
|
-
var
|
|
14399
|
+
var import_utils37 = require_cjs();
|
|
14362
14400
|
var import_state2 = require_cjs9();
|
|
14363
14401
|
var import_props = require_props();
|
|
14364
14402
|
var import_methods = require_methods2();
|
|
14365
|
-
var METHODS_EXL = (0,
|
|
14403
|
+
var METHODS_EXL = (0, import_utils37.joinArrays)(
|
|
14366
14404
|
["node", "state", "context", "extend", "__element"],
|
|
14367
14405
|
import_methods.METHODS,
|
|
14368
14406
|
import_state2.IGNORE_STATE_PARAMS,
|
|
@@ -14376,7 +14414,7 @@ var require_object2 = __commonJS({
|
|
|
14376
14414
|
const extendProp = extend[e];
|
|
14377
14415
|
if (elementProp === void 0) {
|
|
14378
14416
|
element[e] = extendProp;
|
|
14379
|
-
} else if ((0,
|
|
14417
|
+
} else if ((0, import_utils37.isObjectLike)(elementProp) && (0, import_utils37.isObject)(extendProp)) {
|
|
14380
14418
|
deepMerge7(elementProp, extendProp);
|
|
14381
14419
|
}
|
|
14382
14420
|
}
|
|
@@ -14392,15 +14430,15 @@ var require_object2 = __commonJS({
|
|
|
14392
14430
|
return o;
|
|
14393
14431
|
};
|
|
14394
14432
|
var deepClone3 = (obj, exclude = METHODS_EXL) => {
|
|
14395
|
-
const o = (0,
|
|
14433
|
+
const o = (0, import_utils37.isArray)(obj) ? [] : {};
|
|
14396
14434
|
for (const e in obj) {
|
|
14397
14435
|
if (exclude.includes(e))
|
|
14398
14436
|
continue;
|
|
14399
14437
|
let objProp = obj[e];
|
|
14400
|
-
if (e === "extend" && (0,
|
|
14438
|
+
if (e === "extend" && (0, import_utils37.isArray)(objProp)) {
|
|
14401
14439
|
objProp = mergeArray(objProp, exclude);
|
|
14402
14440
|
}
|
|
14403
|
-
if ((0,
|
|
14441
|
+
if ((0, import_utils37.isObjectLike)(objProp)) {
|
|
14404
14442
|
o[e] = deepClone3(objProp, exclude);
|
|
14405
14443
|
} else
|
|
14406
14444
|
o[e] = objProp;
|
|
@@ -14439,7 +14477,7 @@ var require_object2 = __commonJS({
|
|
|
14439
14477
|
continue;
|
|
14440
14478
|
const objProp = obj[e];
|
|
14441
14479
|
const paramsProp = params[e];
|
|
14442
|
-
if ((0,
|
|
14480
|
+
if ((0, import_utils37.isObjectLike)(objProp) && (0, import_utils37.isObjectLike)(paramsProp)) {
|
|
14443
14481
|
overwriteDeep3(objProp, paramsProp);
|
|
14444
14482
|
} else if (paramsProp !== void 0) {
|
|
14445
14483
|
obj[e] = paramsProp;
|
|
@@ -14448,7 +14486,7 @@ var require_object2 = __commonJS({
|
|
|
14448
14486
|
return obj;
|
|
14449
14487
|
};
|
|
14450
14488
|
var mergeIfExisted = (a, b) => {
|
|
14451
|
-
if ((0,
|
|
14489
|
+
if ((0, import_utils37.isObjectLike)(a) && (0, import_utils37.isObjectLike)(b))
|
|
14452
14490
|
return deepMerge7(a, b);
|
|
14453
14491
|
return a || b;
|
|
14454
14492
|
};
|
|
@@ -14456,7 +14494,7 @@ var require_object2 = __commonJS({
|
|
|
14456
14494
|
return arr.reduce((a, c) => deepMerge7(a, deepClone3(c, exclude)), {});
|
|
14457
14495
|
};
|
|
14458
14496
|
var mergeAndCloneIfArray = (obj) => {
|
|
14459
|
-
return (0,
|
|
14497
|
+
return (0, import_utils37.isArray)(obj) ? mergeArray(obj) : deepClone3(obj);
|
|
14460
14498
|
};
|
|
14461
14499
|
var flattenRecursive = (param, prop, stack = []) => {
|
|
14462
14500
|
const objectized = mergeAndCloneIfArray(param);
|
|
@@ -14510,7 +14548,7 @@ var require_extendUtils = __commonJS({
|
|
|
14510
14548
|
setHashedExtend: () => setHashedExtend
|
|
14511
14549
|
});
|
|
14512
14550
|
module2.exports = __toCommonJS12(extendUtils_exports);
|
|
14513
|
-
var
|
|
14551
|
+
var import_utils37 = require_cjs();
|
|
14514
14552
|
var ENV2 = "development";
|
|
14515
14553
|
var generateHash = () => Math.random().toString(36).substring(2);
|
|
14516
14554
|
var extendStackRegistry = {};
|
|
@@ -14520,7 +14558,7 @@ var require_extendUtils = __commonJS({
|
|
|
14520
14558
|
};
|
|
14521
14559
|
var setHashedExtend = (extend, stack) => {
|
|
14522
14560
|
const hash2 = generateHash();
|
|
14523
|
-
if (!(0,
|
|
14561
|
+
if (!(0, import_utils37.isString)(extend)) {
|
|
14524
14562
|
extend.__hash = hash2;
|
|
14525
14563
|
}
|
|
14526
14564
|
extendStackRegistry[hash2] = stack;
|
|
@@ -14546,9 +14584,9 @@ var require_extendUtils = __commonJS({
|
|
|
14546
14584
|
var flattenExtend = (extend, stack, context) => {
|
|
14547
14585
|
if (!extend)
|
|
14548
14586
|
return stack;
|
|
14549
|
-
if ((0,
|
|
14587
|
+
if ((0, import_utils37.isArray)(extend))
|
|
14550
14588
|
return extractArrayExtend(extend, stack, context);
|
|
14551
|
-
if ((0,
|
|
14589
|
+
if ((0, import_utils37.isString)(extend))
|
|
14552
14590
|
extend = fallbackStringExtend(extend, context);
|
|
14553
14591
|
stack.push(extend);
|
|
14554
14592
|
if (extend.extend)
|
|
@@ -14563,14 +14601,14 @@ var require_extendUtils = __commonJS({
|
|
|
14563
14601
|
const extendProp = extend[e];
|
|
14564
14602
|
if (elementProp === void 0) {
|
|
14565
14603
|
element[e] = extendProp;
|
|
14566
|
-
} else if ((0,
|
|
14604
|
+
} else if ((0, import_utils37.isObject)(elementProp) && (0, import_utils37.isObject)(extendProp)) {
|
|
14567
14605
|
deepMergeExtend(elementProp, extendProp);
|
|
14568
|
-
} else if ((0,
|
|
14606
|
+
} else if ((0, import_utils37.isArray)(elementProp) && (0, import_utils37.isArray)(extendProp)) {
|
|
14569
14607
|
element[e] = elementProp.concat(extendProp);
|
|
14570
|
-
} else if ((0,
|
|
14608
|
+
} else if ((0, import_utils37.isArray)(elementProp) && (0, import_utils37.isObject)(extendProp)) {
|
|
14571
14609
|
const obj = deepMergeExtend({}, elementProp);
|
|
14572
14610
|
element[e] = deepMergeExtend(obj, extendProp);
|
|
14573
|
-
} else if (elementProp === void 0 && (0,
|
|
14611
|
+
} else if (elementProp === void 0 && (0, import_utils37.isFunction)(extendProp)) {
|
|
14574
14612
|
element[e] = extendProp;
|
|
14575
14613
|
}
|
|
14576
14614
|
}
|
|
@@ -14578,12 +14616,12 @@ var require_extendUtils = __commonJS({
|
|
|
14578
14616
|
};
|
|
14579
14617
|
var cloneAndMergeArrayExtend = (stack) => {
|
|
14580
14618
|
return stack.reduce((a, c) => {
|
|
14581
|
-
return deepMergeExtend(a, (0,
|
|
14619
|
+
return deepMergeExtend(a, (0, import_utils37.deepCloneWithExtend)(c));
|
|
14582
14620
|
}, {});
|
|
14583
14621
|
};
|
|
14584
14622
|
var fallbackStringExtend = (extend, context, options = {}) => {
|
|
14585
14623
|
const COMPONENTS = context && context.components || options.components;
|
|
14586
|
-
if ((0,
|
|
14624
|
+
if ((0, import_utils37.isString)(extend)) {
|
|
14587
14625
|
const componentExists = COMPONENTS[extend] || COMPONENTS["smbls." + extend];
|
|
14588
14626
|
if (COMPONENTS && componentExists) {
|
|
14589
14627
|
return componentExists;
|
|
@@ -14640,13 +14678,13 @@ var require_extend = __commonJS({
|
|
|
14640
14678
|
applyExtend: () => applyExtend
|
|
14641
14679
|
});
|
|
14642
14680
|
module2.exports = __toCommonJS12(extend_exports);
|
|
14643
|
-
var
|
|
14681
|
+
var import_utils37 = require_cjs();
|
|
14644
14682
|
var import_utils210 = require_utils();
|
|
14645
14683
|
var ENV2 = "development";
|
|
14646
14684
|
var mainExtend;
|
|
14647
14685
|
var applyExtend = (element, parent, options = {}) => {
|
|
14648
|
-
if ((0,
|
|
14649
|
-
element = (0,
|
|
14686
|
+
if ((0, import_utils37.isFunction)(element))
|
|
14687
|
+
element = (0, import_utils37.exec)(element, parent);
|
|
14650
14688
|
let { extend, props: props4, context, __ref } = element;
|
|
14651
14689
|
extend = (0, import_utils210.fallbackStringExtend)(extend, context, options);
|
|
14652
14690
|
const extendStack = (0, import_utils210.getExtendStack)(extend, context);
|
|
@@ -14691,7 +14729,7 @@ var require_extend = __commonJS({
|
|
|
14691
14729
|
__ref.__extend = stack;
|
|
14692
14730
|
let mergedExtend = (0, import_utils210.cloneAndMergeArrayExtend)(stack);
|
|
14693
14731
|
const COMPONENTS = context && context.components || options.components;
|
|
14694
|
-
const component = (0,
|
|
14732
|
+
const component = (0, import_utils37.exec)(element.component || mergedExtend.component, element);
|
|
14695
14733
|
if (component && COMPONENTS && COMPONENTS[component]) {
|
|
14696
14734
|
const componentExtend = (0, import_utils210.cloneAndMergeArrayExtend)((0, import_utils210.getExtendStack)(COMPONENTS[component]));
|
|
14697
14735
|
mergedExtend = (0, import_utils210.deepMergeExtend)(componentExtend, mergedExtend);
|
|
@@ -14738,7 +14776,7 @@ var require_component = __commonJS({
|
|
|
14738
14776
|
overwriteVariant: () => overwriteVariant
|
|
14739
14777
|
});
|
|
14740
14778
|
module2.exports = __toCommonJS12(component_exports);
|
|
14741
|
-
var
|
|
14779
|
+
var import_utils37 = require_cjs();
|
|
14742
14780
|
var import_extend = require_extend();
|
|
14743
14781
|
var ENV2 = "development";
|
|
14744
14782
|
var DOMQL_BUILTINS = [
|
|
@@ -14755,14 +14793,14 @@ var require_component = __commonJS({
|
|
|
14755
14793
|
"tag"
|
|
14756
14794
|
];
|
|
14757
14795
|
var checkIfKeyIsComponent3 = (key) => {
|
|
14758
|
-
const isFirstKeyString = (0,
|
|
14796
|
+
const isFirstKeyString = (0, import_utils37.isString)(key);
|
|
14759
14797
|
if (!isFirstKeyString)
|
|
14760
14798
|
return;
|
|
14761
14799
|
const firstCharKey = key.slice(0, 1);
|
|
14762
14800
|
return /^[A-Z]*$/.test(firstCharKey);
|
|
14763
14801
|
};
|
|
14764
14802
|
var checkIfKeyIsProperty = (key) => {
|
|
14765
|
-
const isFirstKeyString = (0,
|
|
14803
|
+
const isFirstKeyString = (0, import_utils37.isString)(key);
|
|
14766
14804
|
if (!isFirstKeyString)
|
|
14767
14805
|
return;
|
|
14768
14806
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -14770,9 +14808,9 @@ var require_component = __commonJS({
|
|
|
14770
14808
|
};
|
|
14771
14809
|
var addAdditionalExtend = (newExtend, element) => {
|
|
14772
14810
|
const { extend: elementExtend } = element;
|
|
14773
|
-
const originalArray = (0,
|
|
14774
|
-
const receivedArray = (0,
|
|
14775
|
-
const extend = (0,
|
|
14811
|
+
const originalArray = (0, import_utils37.isArray)(elementExtend) ? elementExtend : [elementExtend];
|
|
14812
|
+
const receivedArray = (0, import_utils37.isArray)(newExtend) ? newExtend : [newExtend];
|
|
14813
|
+
const extend = (0, import_utils37.joinArrays)(receivedArray, originalArray);
|
|
14776
14814
|
return { ...element, extend };
|
|
14777
14815
|
};
|
|
14778
14816
|
var replaceOnKeys = (key) => key.replace(/on\w+/g, (match2) => match2.substring(2));
|
|
@@ -14820,11 +14858,11 @@ var require_component = __commonJS({
|
|
|
14820
14858
|
};
|
|
14821
14859
|
} else if (extend) {
|
|
14822
14860
|
return addAdditionalExtend(extendFromKey, element);
|
|
14823
|
-
} else if ((0,
|
|
14861
|
+
} else if ((0, import_utils37.isFunction)(element)) {
|
|
14824
14862
|
return {
|
|
14825
14863
|
extend: extendFromKey,
|
|
14826
14864
|
tag,
|
|
14827
|
-
props: { ...(0,
|
|
14865
|
+
props: { ...(0, import_utils37.exec)(element, parent) }
|
|
14828
14866
|
};
|
|
14829
14867
|
}
|
|
14830
14868
|
};
|
|
@@ -14837,8 +14875,8 @@ var require_component = __commonJS({
|
|
|
14837
14875
|
return;
|
|
14838
14876
|
const { components } = context;
|
|
14839
14877
|
const { extend } = element;
|
|
14840
|
-
const execExtend = (0,
|
|
14841
|
-
if ((0,
|
|
14878
|
+
const execExtend = (0, import_utils37.exec)(extend, element);
|
|
14879
|
+
if ((0, import_utils37.isString)(execExtend)) {
|
|
14842
14880
|
const componentExists = components[execExtend] || components["smbls." + execExtend];
|
|
14843
14881
|
if (componentExists)
|
|
14844
14882
|
element.extend = componentExists;
|
|
@@ -14852,29 +14890,29 @@ var require_component = __commonJS({
|
|
|
14852
14890
|
}
|
|
14853
14891
|
};
|
|
14854
14892
|
var isVariant = (param) => {
|
|
14855
|
-
if (!(0,
|
|
14893
|
+
if (!(0, import_utils37.isString)(param))
|
|
14856
14894
|
return;
|
|
14857
14895
|
const firstCharKey = param.slice(0, 1);
|
|
14858
14896
|
return firstCharKey === ".";
|
|
14859
14897
|
};
|
|
14860
14898
|
var hasVariantProp = (element) => {
|
|
14861
14899
|
const { props: props4 } = element;
|
|
14862
|
-
if ((0,
|
|
14900
|
+
if ((0, import_utils37.isObject)(props4) && (0, import_utils37.isString)(props4.variant))
|
|
14863
14901
|
return true;
|
|
14864
14902
|
};
|
|
14865
14903
|
var overwriteVariant = (element, variant, variantProps) => {
|
|
14866
14904
|
let variantElement = element[variant];
|
|
14867
14905
|
if (!variantElement)
|
|
14868
14906
|
return;
|
|
14869
|
-
const props4 = (0,
|
|
14870
|
-
if ((0,
|
|
14907
|
+
const props4 = (0, import_utils37.isObject)(variantProps) ? variantProps : {};
|
|
14908
|
+
if ((0, import_utils37.isString)(variantElement)) {
|
|
14871
14909
|
variantElement = {
|
|
14872
14910
|
extend: [{ props: props4 }, variantElement]
|
|
14873
14911
|
};
|
|
14874
14912
|
} else if (variantElement.extend) {
|
|
14875
14913
|
variantElement = addAdditionalExtend({ props: props4 }, variantElement);
|
|
14876
14914
|
}
|
|
14877
|
-
return (0,
|
|
14915
|
+
return (0, import_utils37.overwriteDeep)(element, (0, import_extend.applyExtend)(variantElement));
|
|
14878
14916
|
};
|
|
14879
14917
|
var applyVariant = (element) => {
|
|
14880
14918
|
const { props: props4 } = element;
|
|
@@ -14949,7 +14987,7 @@ var require_iterate = __commonJS({
|
|
|
14949
14987
|
throughUpdatedExec: () => throughUpdatedExec
|
|
14950
14988
|
});
|
|
14951
14989
|
module2.exports = __toCommonJS12(iterate_exports);
|
|
14952
|
-
var
|
|
14990
|
+
var import_utils37 = require_cjs();
|
|
14953
14991
|
var import_utils210 = require_utils();
|
|
14954
14992
|
var import_methods = require_methods2();
|
|
14955
14993
|
var throughInitialExec = (element, exclude = {}) => {
|
|
@@ -14958,7 +14996,7 @@ var require_iterate = __commonJS({
|
|
|
14958
14996
|
if (exclude[param])
|
|
14959
14997
|
continue;
|
|
14960
14998
|
const prop = element[param];
|
|
14961
|
-
if ((0,
|
|
14999
|
+
if ((0, import_utils37.isFunction)(prop) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
|
|
14962
15000
|
ref.__exec[param] = prop;
|
|
14963
15001
|
element[param] = prop(element, element.state);
|
|
14964
15002
|
}
|
|
@@ -14973,7 +15011,7 @@ var require_iterate = __commonJS({
|
|
|
14973
15011
|
if (isDefinedParam)
|
|
14974
15012
|
continue;
|
|
14975
15013
|
const newExec = ref.__exec[param](element, element.state, element.context);
|
|
14976
|
-
const execReturnsString = (0,
|
|
15014
|
+
const execReturnsString = (0, import_utils37.isString)(newExec) || (0, import_utils37.isNumber)(newExec);
|
|
14977
15015
|
if (prop && prop.node && execReturnsString) {
|
|
14978
15016
|
(0, import_utils210.overwrite)(prop, { text: newExec }, options);
|
|
14979
15017
|
} else if (newExec !== prop) {
|
|
@@ -14991,16 +15029,16 @@ var require_iterate = __commonJS({
|
|
|
14991
15029
|
var throughInitialDefine = (element) => {
|
|
14992
15030
|
const { define, context, __ref: ref } = element;
|
|
14993
15031
|
let defineObj = {};
|
|
14994
|
-
const hasGlobalDefine = context && (0,
|
|
14995
|
-
if ((0,
|
|
15032
|
+
const hasGlobalDefine = context && (0, import_utils37.isObject)(context.define);
|
|
15033
|
+
if ((0, import_utils37.isObject)(define))
|
|
14996
15034
|
defineObj = { ...define };
|
|
14997
15035
|
if (hasGlobalDefine)
|
|
14998
15036
|
defineObj = { ...defineObj, ...context.define };
|
|
14999
15037
|
for (const param in defineObj) {
|
|
15000
15038
|
let elementProp = element[param];
|
|
15001
|
-
if ((0,
|
|
15039
|
+
if ((0, import_utils37.isFunction)(elementProp) && !(0, import_methods.isMethod)(param) && !(0, import_utils210.isVariant)(param)) {
|
|
15002
15040
|
ref.__exec[param] = elementProp;
|
|
15003
|
-
const execParam2 = elementProp = (0,
|
|
15041
|
+
const execParam2 = elementProp = (0, import_utils37.exec)(elementProp, element);
|
|
15004
15042
|
if (execParam2) {
|
|
15005
15043
|
elementProp = element[param] = execParam2.parse ? execParam2.parse() : execParam2;
|
|
15006
15044
|
ref.__defineCache[param] = elementProp;
|
|
@@ -15016,15 +15054,15 @@ var require_iterate = __commonJS({
|
|
|
15016
15054
|
const { context, define, __ref: ref } = element;
|
|
15017
15055
|
const changes = {};
|
|
15018
15056
|
let obj = {};
|
|
15019
|
-
if ((0,
|
|
15057
|
+
if ((0, import_utils37.isObject)(define))
|
|
15020
15058
|
obj = { ...define };
|
|
15021
|
-
if ((0,
|
|
15059
|
+
if ((0, import_utils37.isObject)(context && context.define))
|
|
15022
15060
|
obj = { ...obj, ...context.define };
|
|
15023
15061
|
for (const param in obj) {
|
|
15024
15062
|
const execParam = ref.__exec[param];
|
|
15025
15063
|
if (execParam)
|
|
15026
15064
|
ref.__defineCache[param] = execParam(element, element.state, element.context);
|
|
15027
|
-
const cached = (0,
|
|
15065
|
+
const cached = (0, import_utils37.exec)(ref.__defineCache[param], element);
|
|
15028
15066
|
const newExecParam = obj[param](cached, element, element.state, element.context);
|
|
15029
15067
|
if (newExecParam)
|
|
15030
15068
|
element[param] = newExecParam;
|
|
@@ -15060,7 +15098,7 @@ var require_applyParam = __commonJS({
|
|
|
15060
15098
|
applyParam: () => applyParam
|
|
15061
15099
|
});
|
|
15062
15100
|
module2.exports = __toCommonJS12(applyParam_exports);
|
|
15063
|
-
var
|
|
15101
|
+
var import_utils37 = require_cjs();
|
|
15064
15102
|
var import_mixins = require_mixins();
|
|
15065
15103
|
var applyParam = (param, element, options) => {
|
|
15066
15104
|
const { node: node2, context, __ref: ref } = element;
|
|
@@ -15073,7 +15111,7 @@ var require_applyParam = __commonJS({
|
|
|
15073
15111
|
if (!ref.__if)
|
|
15074
15112
|
return;
|
|
15075
15113
|
if (isGlobalTransformer && !hasContextDefine) {
|
|
15076
|
-
if ((0,
|
|
15114
|
+
if ((0, import_utils37.isFunction)(isGlobalTransformer)) {
|
|
15077
15115
|
isGlobalTransformer(prop, element, node2, options);
|
|
15078
15116
|
return;
|
|
15079
15117
|
}
|
|
@@ -15109,14 +15147,14 @@ var require_propEvents = __commonJS({
|
|
|
15109
15147
|
propagateEventsFromProps: () => propagateEventsFromProps
|
|
15110
15148
|
});
|
|
15111
15149
|
module2.exports = __toCommonJS12(propEvents_exports);
|
|
15112
|
-
var
|
|
15150
|
+
var import_utils37 = require_cjs();
|
|
15113
15151
|
var propagateEventsFromProps = (element) => {
|
|
15114
15152
|
const { props: props4, on: on2 } = element;
|
|
15115
15153
|
const eventKeysFromProps = Object.keys(props4).filter((key) => key.startsWith("on"));
|
|
15116
15154
|
eventKeysFromProps.forEach((v) => {
|
|
15117
|
-
const eventName = (0,
|
|
15155
|
+
const eventName = (0, import_utils37.lowercaseFirstLetter)(v.split("on")[1]);
|
|
15118
15156
|
const origEvent = on2[eventName];
|
|
15119
|
-
if ((0,
|
|
15157
|
+
if ((0, import_utils37.isFunction)(origEvent)) {
|
|
15120
15158
|
on2[eventName] = (...args) => {
|
|
15121
15159
|
const originalEventRetunrs = origEvent(...args);
|
|
15122
15160
|
if (originalEventRetunrs !== false)
|
|
@@ -15166,7 +15204,7 @@ var require_node2 = __commonJS({
|
|
|
15166
15204
|
default: () => node_default
|
|
15167
15205
|
});
|
|
15168
15206
|
module2.exports = __toCommonJS12(node_exports);
|
|
15169
|
-
var
|
|
15207
|
+
var import_utils37 = require_cjs();
|
|
15170
15208
|
var import_event = require_cjs4();
|
|
15171
15209
|
var import_render = require_cjs8();
|
|
15172
15210
|
var import_methods = require_methods2();
|
|
@@ -15192,27 +15230,27 @@ var require_node2 = __commonJS({
|
|
|
15192
15230
|
}
|
|
15193
15231
|
if (ENV2 === "test" || ENV2 === "development" || options.alowRefReference) {
|
|
15194
15232
|
node2.ref = element;
|
|
15195
|
-
if ((0,
|
|
15233
|
+
if ((0, import_utils37.isFunction)(node2.setAttribute))
|
|
15196
15234
|
node2.setAttribute("key", element.key);
|
|
15197
15235
|
}
|
|
15198
15236
|
(0, import_iterate.throughInitialDefine)(element);
|
|
15199
15237
|
(0, import_iterate.throughInitialExec)(element);
|
|
15200
15238
|
if (element.tag !== "string" && element.tag !== "fragment") {
|
|
15201
15239
|
(0, import_propEvents.propagateEventsFromProps)(element);
|
|
15202
|
-
if (isNewNode && (0,
|
|
15240
|
+
if (isNewNode && (0, import_utils37.isObject)(element.on))
|
|
15203
15241
|
(0, import_event.applyEventsOnNode)(element, options);
|
|
15204
15242
|
}
|
|
15205
15243
|
for (const param in element) {
|
|
15206
15244
|
const value2 = element[param];
|
|
15207
15245
|
if (!Object.hasOwnProperty.call(element, param))
|
|
15208
15246
|
continue;
|
|
15209
|
-
if ((0,
|
|
15247
|
+
if ((0, import_utils37.isUndefined)(value2) || (0, import_methods.isMethod)(param) || (0, import_utils210.isVariant)(param) || (0, import_utils37.isObject)(import_mixins.registry[param]))
|
|
15210
15248
|
continue;
|
|
15211
15249
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
15212
15250
|
if (isElement) {
|
|
15213
15251
|
const { hasDefine, hasContextDefine } = isElement;
|
|
15214
15252
|
if (element[param] && !hasDefine && !hasContextDefine) {
|
|
15215
|
-
const createAsync3 = () => (0, import_create.default)((0,
|
|
15253
|
+
const createAsync3 = () => (0, import_create.default)((0, import_utils37.exec)(value2, element), element, param, options);
|
|
15216
15254
|
if (element.props && element.props.lazyLoad || options.lazyLoad) {
|
|
15217
15255
|
window.requestAnimationFrame(() => createAsync3());
|
|
15218
15256
|
} else
|
|
@@ -15252,7 +15290,7 @@ var require_methods3 = __commonJS({
|
|
|
15252
15290
|
DEFAULT_METHODS: () => DEFAULT_METHODS
|
|
15253
15291
|
});
|
|
15254
15292
|
module2.exports = __toCommonJS12(methods_exports);
|
|
15255
|
-
var
|
|
15293
|
+
var import_utils37 = require_cjs();
|
|
15256
15294
|
var DEFAULT_METHODS = {
|
|
15257
15295
|
key: {},
|
|
15258
15296
|
tag: {},
|
|
@@ -15273,7 +15311,7 @@ var require_methods3 = __commonJS({
|
|
|
15273
15311
|
text: (element, state) => {
|
|
15274
15312
|
element.ref.text = {
|
|
15275
15313
|
tag: "text",
|
|
15276
|
-
text: (0,
|
|
15314
|
+
text: (0, import_utils37.exec)(element.text, element, state)
|
|
15277
15315
|
};
|
|
15278
15316
|
},
|
|
15279
15317
|
innerHTML: {},
|
|
@@ -15510,7 +15548,7 @@ var require_update2 = __commonJS({
|
|
|
15510
15548
|
default: () => update_default
|
|
15511
15549
|
});
|
|
15512
15550
|
module2.exports = __toCommonJS12(update_exports);
|
|
15513
|
-
var
|
|
15551
|
+
var import_utils37 = require_cjs();
|
|
15514
15552
|
var import_event = require_cjs4();
|
|
15515
15553
|
var import_methods = require_methods2();
|
|
15516
15554
|
var import_props = require_props();
|
|
@@ -15522,7 +15560,7 @@ var require_update2 = __commonJS({
|
|
|
15522
15560
|
var import_applyParam = require_applyParam();
|
|
15523
15561
|
var import_options5 = __toESM6(require_options(), 1);
|
|
15524
15562
|
var snapshot = {
|
|
15525
|
-
snapshotId:
|
|
15563
|
+
snapshotId: import_utils37.createSnapshotId
|
|
15526
15564
|
};
|
|
15527
15565
|
var UPDATE_DEFAULT_OPTIONS = {
|
|
15528
15566
|
stackChanges: false,
|
|
@@ -15544,14 +15582,14 @@ var require_update2 = __commonJS({
|
|
|
15544
15582
|
if (preventInheritAtCurrentState && preventInheritAtCurrentState.__element === element)
|
|
15545
15583
|
return;
|
|
15546
15584
|
if (!excludes)
|
|
15547
|
-
(0,
|
|
15585
|
+
(0, import_utils37.merge)(options, UPDATE_DEFAULT_OPTIONS);
|
|
15548
15586
|
let ref = element.__ref;
|
|
15549
15587
|
if (!ref)
|
|
15550
15588
|
ref = element.__ref = {};
|
|
15551
15589
|
const [snapshotOnCallee, calleeElement, snapshotHasUpdated] = captureSnapshot(element, options);
|
|
15552
15590
|
if (snapshotHasUpdated)
|
|
15553
15591
|
return;
|
|
15554
|
-
if ((0,
|
|
15592
|
+
if ((0, import_utils37.isString)(params) || (0, import_utils37.isNumber)(params)) {
|
|
15555
15593
|
params = { text: params };
|
|
15556
15594
|
}
|
|
15557
15595
|
const inheritState = inheritStateUpdates(element, options);
|
|
@@ -15562,7 +15600,7 @@ var require_update2 = __commonJS({
|
|
|
15562
15600
|
return;
|
|
15563
15601
|
if (ref.__if && !options.preventPropsUpdate) {
|
|
15564
15602
|
const hasParentProps = parent.props && (parent.props[key] || parent.props.childProps);
|
|
15565
|
-
const hasFunctionInProps = ref.__props.filter((v) => (0,
|
|
15603
|
+
const hasFunctionInProps = ref.__props.filter((v) => (0, import_utils37.isFunction)(v));
|
|
15566
15604
|
const props4 = params.props || hasParentProps || hasFunctionInProps.length;
|
|
15567
15605
|
if (props4)
|
|
15568
15606
|
(0, import_props.updateProps)(props4, element, parent);
|
|
@@ -15572,14 +15610,14 @@ var require_update2 = __commonJS({
|
|
|
15572
15610
|
if (initUpdateReturns === false)
|
|
15573
15611
|
return element;
|
|
15574
15612
|
}
|
|
15575
|
-
const overwriteChanges = (0,
|
|
15613
|
+
const overwriteChanges = (0, import_utils37.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
|
|
15576
15614
|
const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
|
|
15577
15615
|
const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
|
|
15578
15616
|
if (!options.isForced && !options.preventListeners) {
|
|
15579
15617
|
(0, import_event.triggerEventOn)("beforeClassAssign", element, options);
|
|
15580
15618
|
}
|
|
15581
15619
|
if (options.stackChanges && element.__stackChanges) {
|
|
15582
|
-
const stackChanges = (0,
|
|
15620
|
+
const stackChanges = (0, import_utils37.merge)(definedChanges, (0, import_utils37.merge)(execChanges, overwriteChanges));
|
|
15583
15621
|
element.__stackChanges.push(stackChanges);
|
|
15584
15622
|
}
|
|
15585
15623
|
if (!ref.__if)
|
|
@@ -15599,7 +15637,7 @@ var require_update2 = __commonJS({
|
|
|
15599
15637
|
preventUpdateAfterCount
|
|
15600
15638
|
} = options;
|
|
15601
15639
|
if (preventUpdateAfter) {
|
|
15602
|
-
if ((0,
|
|
15640
|
+
if ((0, import_utils37.isNumber)(preventUpdateAfterCount) && preventUpdateAfter <= preventUpdateAfterCount)
|
|
15603
15641
|
return;
|
|
15604
15642
|
else if (options.preventUpdateAfterCount === void 0)
|
|
15605
15643
|
options.preventUpdateAfterCount = 1;
|
|
@@ -15611,17 +15649,17 @@ var require_update2 = __commonJS({
|
|
|
15611
15649
|
if (!Object.hasOwnProperty.call(element, param))
|
|
15612
15650
|
continue;
|
|
15613
15651
|
const hasOnlyUpdateFalsy = onlyUpdate && (onlyUpdate !== param || !element.lookup(onlyUpdate));
|
|
15614
|
-
const isInPreventUpdate = (0,
|
|
15615
|
-
const isInPreventDefineUpdate = (0,
|
|
15652
|
+
const isInPreventUpdate = (0, import_utils37.isArray)(preventUpdate) && preventUpdate.includes(param);
|
|
15653
|
+
const isInPreventDefineUpdate = (0, import_utils37.isArray)(preventDefineUpdate) && preventDefineUpdate.includes(param);
|
|
15616
15654
|
const hasCollection = element.$collection || element.$stateCollection || element.$propsCollection;
|
|
15617
|
-
if ((0,
|
|
15655
|
+
if ((0, import_utils37.isUndefined)(prop) || hasOnlyUpdateFalsy || isInPreventUpdate || isInPreventDefineUpdate || preventDefineUpdate === true || preventDefineUpdate === param || preventContentUpdate && param === "content" && !hasCollection || (preventStateUpdate && param) === "state" || (0, import_methods.isMethod)(param) || (0, import_utils37.isObject)(import_mixins.registry[param]) || (0, import_utils210.isVariant)(param))
|
|
15618
15656
|
continue;
|
|
15619
15657
|
if (preventStateUpdate === "once")
|
|
15620
15658
|
options.preventStateUpdate = false;
|
|
15621
15659
|
const isElement = (0, import_applyParam.applyParam)(param, element, options);
|
|
15622
15660
|
if (isElement) {
|
|
15623
15661
|
const { hasDefine, hasContextDefine } = isElement;
|
|
15624
|
-
const canUpdate = (0,
|
|
15662
|
+
const canUpdate = (0, import_utils37.isObject)(prop) && !hasDefine && !hasContextDefine && !preventRecursive;
|
|
15625
15663
|
if (!canUpdate)
|
|
15626
15664
|
continue;
|
|
15627
15665
|
const lazyLoad = element.props.lazyLoad || options.lazyLoad;
|
|
@@ -15630,7 +15668,7 @@ var require_update2 = __commonJS({
|
|
|
15630
15668
|
currentSnapshot: snapshotOnCallee,
|
|
15631
15669
|
calleeElement
|
|
15632
15670
|
});
|
|
15633
|
-
lazyLoad ?
|
|
15671
|
+
lazyLoad ? import_utils37.window.requestAnimationFrame(() => childUpdateCall()) : childUpdateCall();
|
|
15634
15672
|
}
|
|
15635
15673
|
}
|
|
15636
15674
|
if (!preventUpdateListener)
|
|
@@ -15653,7 +15691,7 @@ var require_update2 = __commonJS({
|
|
|
15653
15691
|
};
|
|
15654
15692
|
var checkIfOnUpdate = (element, parent, options) => {
|
|
15655
15693
|
var _a;
|
|
15656
|
-
if (!(0,
|
|
15694
|
+
if (!(0, import_utils37.isFunction)(element.if) || !parent)
|
|
15657
15695
|
return;
|
|
15658
15696
|
const ref = element.__ref;
|
|
15659
15697
|
const ifPassed = element.if(element, element.state, element.context, options);
|
|
@@ -15693,7 +15731,7 @@ var require_update2 = __commonJS({
|
|
|
15693
15731
|
delete element.__ref;
|
|
15694
15732
|
delete element.parent;
|
|
15695
15733
|
const created = (0, import_create.default)(element, parent, element.key, import_options5.default.create, attachOptions);
|
|
15696
|
-
if (options.preventUpdate !== true && element.on && (0,
|
|
15734
|
+
if (options.preventUpdate !== true && element.on && (0, import_utils37.isFunction)(element.on.update)) {
|
|
15697
15735
|
(0, import_event.applyEvent)(element.on.update, created, created.state);
|
|
15698
15736
|
}
|
|
15699
15737
|
return created;
|
|
@@ -15714,9 +15752,9 @@ var require_update2 = __commonJS({
|
|
|
15714
15752
|
element.state = parent && parent.state || {};
|
|
15715
15753
|
return;
|
|
15716
15754
|
}
|
|
15717
|
-
const shouldForceFunctionState = (0,
|
|
15755
|
+
const shouldForceFunctionState = (0, import_utils37.isFunction)(stateKey) && !isHoisted && execStateFunction;
|
|
15718
15756
|
if (shouldForceFunctionState) {
|
|
15719
|
-
const execState = (0,
|
|
15757
|
+
const execState = (0, import_utils37.exec)(stateKey, element);
|
|
15720
15758
|
state.set(execState, { ...options, preventUpdate: true, preventStateUpdateListener: false, updatedByStateFunction: true });
|
|
15721
15759
|
return;
|
|
15722
15760
|
}
|
|
@@ -15784,7 +15822,7 @@ var require_set2 = __commonJS({
|
|
|
15784
15822
|
addMethods: () => addMethods
|
|
15785
15823
|
});
|
|
15786
15824
|
module2.exports = __toCommonJS12(set_exports);
|
|
15787
|
-
var
|
|
15825
|
+
var import_utils37 = require_cjs();
|
|
15788
15826
|
var import_set = __toESM6(require_set(), 1);
|
|
15789
15827
|
var import_update = __toESM6(require_update2(), 1);
|
|
15790
15828
|
var import__ = require_methods2();
|
|
@@ -15805,7 +15843,7 @@ var require_set2 = __commonJS({
|
|
|
15805
15843
|
nextElement: import__.nextElement.bind(element),
|
|
15806
15844
|
previousElement: import__.previousElement.bind(element)
|
|
15807
15845
|
};
|
|
15808
|
-
if ((0,
|
|
15846
|
+
if ((0, import_utils37.isDevelopment)())
|
|
15809
15847
|
proto.log = import__.log.bind(element);
|
|
15810
15848
|
Object.setPrototypeOf(element, proto);
|
|
15811
15849
|
};
|
|
@@ -15861,7 +15899,7 @@ var require_create4 = __commonJS({
|
|
|
15861
15899
|
var import_set = require_set2();
|
|
15862
15900
|
var import_classList = require_classList();
|
|
15863
15901
|
var import_iterate = require_iterate();
|
|
15864
|
-
var
|
|
15902
|
+
var import_utils37 = require_cjs();
|
|
15865
15903
|
var import_options5 = __toESM6(require_options(), 1);
|
|
15866
15904
|
var import_component = require_component();
|
|
15867
15905
|
var ENV2 = "development";
|
|
@@ -15874,7 +15912,7 @@ var require_create4 = __commonJS({
|
|
|
15874
15912
|
parent = redefineParent(element, parent, key);
|
|
15875
15913
|
key = createKey(element, parent, key);
|
|
15876
15914
|
const ref = addRef(element, parent, key);
|
|
15877
|
-
ref.__initialProps = (0,
|
|
15915
|
+
ref.__initialProps = (0, import_utils37.deepClone)(element.props, []);
|
|
15878
15916
|
applyContext(element, parent, options);
|
|
15879
15917
|
(0, import_component.applyComponentFromContext)(element, parent, options);
|
|
15880
15918
|
if (!ref.__skipCreate) {
|
|
@@ -15917,7 +15955,7 @@ var require_create4 = __commonJS({
|
|
|
15917
15955
|
}
|
|
15918
15956
|
return {};
|
|
15919
15957
|
}
|
|
15920
|
-
if ((0,
|
|
15958
|
+
if ((0, import_utils37.isString)(key) && key.slice(0, 2 === "__")) {
|
|
15921
15959
|
if (ENV2 === "test" || ENV2 === "development") {
|
|
15922
15960
|
console.warn(key, "seems like to be in __ref");
|
|
15923
15961
|
}
|
|
@@ -15950,7 +15988,7 @@ var require_create4 = __commonJS({
|
|
|
15950
15988
|
var redefineParent = (element, parent, key, options) => {
|
|
15951
15989
|
if (!parent)
|
|
15952
15990
|
return import_tree.ROOT;
|
|
15953
|
-
if ((0,
|
|
15991
|
+
if ((0, import_utils37.isNode)(parent)) {
|
|
15954
15992
|
const parentNodeWrapper = { key: ":root", node: parent };
|
|
15955
15993
|
import_tree.ROOT[`${key}_parent`] = parentNodeWrapper;
|
|
15956
15994
|
return parentNodeWrapper;
|
|
@@ -15964,7 +16002,7 @@ var require_create4 = __commonJS({
|
|
|
15964
16002
|
}
|
|
15965
16003
|
};
|
|
15966
16004
|
var createKey = (element, parent, key) => {
|
|
15967
|
-
return ((0,
|
|
16005
|
+
return ((0, import_utils37.exec)(key, element) || key || element.key || (0, import_utils37.generateKey)()).toString();
|
|
15968
16006
|
};
|
|
15969
16007
|
var addRef = (element, parent) => {
|
|
15970
16008
|
if (element.__ref)
|
|
@@ -16001,7 +16039,7 @@ var require_create4 = __commonJS({
|
|
|
16001
16039
|
(0, import_event.triggerEventOn)("render", element, options);
|
|
16002
16040
|
(0, import_event.triggerEventOn)("done", element, options);
|
|
16003
16041
|
};
|
|
16004
|
-
var checkIfPrimitive = (element) => (0,
|
|
16042
|
+
var checkIfPrimitive = (element) => (0, import_utils37.is)(element)("string", "number");
|
|
16005
16043
|
var applyValueAsText = (element, parent, key) => {
|
|
16006
16044
|
const extendTag = element.extend && element.extend.tag;
|
|
16007
16045
|
const childExtendTag = parent.childExtend && parent.childExtend.tag;
|
|
@@ -16025,7 +16063,7 @@ var require_create4 = __commonJS({
|
|
|
16025
16063
|
};
|
|
16026
16064
|
var createIfConditionFlag = (element, parent) => {
|
|
16027
16065
|
const { __ref: ref } = element;
|
|
16028
|
-
if ((0,
|
|
16066
|
+
if ((0, import_utils37.isFunction)(element.if) && !element.if(element, element.state)) {
|
|
16029
16067
|
delete ref.__if;
|
|
16030
16068
|
} else
|
|
16031
16069
|
ref.__if = true;
|
|
@@ -16086,7 +16124,7 @@ var require_create4 = __commonJS({
|
|
|
16086
16124
|
(0, import_iterate.throughInitialDefine)(element);
|
|
16087
16125
|
(0, import_iterate.throughInitialExec)(element);
|
|
16088
16126
|
for (const k in element) {
|
|
16089
|
-
if ((0,
|
|
16127
|
+
if ((0, import_utils37.isUndefined)(element[k]) || (0, import_methods.isMethod)(k) || (0, import_utils37.isObject)(import_mixins.registry[k]) || (0, import_component.isVariant)(k))
|
|
16090
16128
|
continue;
|
|
16091
16129
|
const hasDefine = element.define && element.define[k];
|
|
16092
16130
|
const contextHasDefine = element.context && element.context.define && element.context.define[k];
|
|
@@ -16094,7 +16132,7 @@ var require_create4 = __commonJS({
|
|
|
16094
16132
|
if (!ref.__skipCreate && import_mixins.registry[k] && !optionsHasDefine) {
|
|
16095
16133
|
continue;
|
|
16096
16134
|
} else if (element[k] && !hasDefine && !optionsHasDefine && !contextHasDefine) {
|
|
16097
|
-
create3((0,
|
|
16135
|
+
create3((0, import_utils37.exec)(element[k], element), element, k, options);
|
|
16098
16136
|
}
|
|
16099
16137
|
}
|
|
16100
16138
|
}
|
|
@@ -16512,12 +16550,13 @@ var init_prepare = __esm({
|
|
|
16512
16550
|
prepareUtils = (options) => {
|
|
16513
16551
|
return { ...utils2, ...utils2.scratchUtils, ...options.snippets || options.utils || {} };
|
|
16514
16552
|
};
|
|
16515
|
-
preparePackages = (packages,
|
|
16516
|
-
|
|
16517
|
-
|
|
16553
|
+
preparePackages = (packages, opts) => {
|
|
16554
|
+
const windowOpts = opts.window || window;
|
|
16555
|
+
if (windowOpts.packages) {
|
|
16556
|
+
windowOpts.packages = (0, import_utils15.merge)(windowOpts.packages, packages);
|
|
16518
16557
|
} else {
|
|
16519
|
-
|
|
16520
|
-
|
|
16558
|
+
windowOpts.packages = packages;
|
|
16559
|
+
windowOpts.require = (key) => windowOpts.packages[key];
|
|
16521
16560
|
}
|
|
16522
16561
|
};
|
|
16523
16562
|
prepareDesignSystem = (options, key) => {
|
|
@@ -16552,6 +16591,10 @@ var init_prepare = __esm({
|
|
|
16552
16591
|
window.document = { body: {} };
|
|
16553
16592
|
document = window.document;
|
|
16554
16593
|
}
|
|
16594
|
+
if (!options.window)
|
|
16595
|
+
options.window = window;
|
|
16596
|
+
if (!options.document)
|
|
16597
|
+
options.document = document;
|
|
16555
16598
|
return options.parent || options.document || document;
|
|
16556
16599
|
};
|
|
16557
16600
|
}
|
|
@@ -16637,6 +16680,7 @@ var init_createDomql = __esm({
|
|
|
16637
16680
|
registry,
|
|
16638
16681
|
emotion: emotion2,
|
|
16639
16682
|
routerOptions,
|
|
16683
|
+
socket: options.socket,
|
|
16640
16684
|
editor: options.editor,
|
|
16641
16685
|
document: doc
|
|
16642
16686
|
}
|
|
@@ -17037,8 +17081,8 @@ var init_style = __esm({
|
|
|
17037
17081
|
return (0, import_scratch7.getColor)(props4.shapeDirectionColor) || (0, import_scratch7.getColor)(props4.borderColor) || (0, import_scratch7.getColor)(props4.backgroundColor) || (0, import_scratch7.getColor)(props4.background);
|
|
17038
17082
|
};
|
|
17039
17083
|
inheritTransition = ({ props: props4, deps }) => {
|
|
17040
|
-
const
|
|
17041
|
-
return
|
|
17084
|
+
const exec4 = Timing.class.transition({ props: props4, deps });
|
|
17085
|
+
return exec4 && exec4.transition;
|
|
17042
17086
|
};
|
|
17043
17087
|
SHAPES = {
|
|
17044
17088
|
rectangle: {},
|
|
@@ -17743,14 +17787,15 @@ var init_Collection = __esm({
|
|
|
17743
17787
|
Collection = {
|
|
17744
17788
|
define: {
|
|
17745
17789
|
$collection: (param, el, state) => {
|
|
17746
|
-
var _a, _b, _c;
|
|
17790
|
+
var _a, _b, _c, _d;
|
|
17747
17791
|
const { __ref: ref } = el;
|
|
17748
17792
|
const hasChildren = (0, import_utils20.isArray)((_a = el.props) == null ? void 0 : _a.children);
|
|
17749
17793
|
if (hasChildren) {
|
|
17750
17794
|
param = (_b = el.props) == null ? void 0 : _b.children;
|
|
17751
17795
|
const childrenAs = (_c = el.props) == null ? void 0 : _c.childrenAs;
|
|
17796
|
+
const extend = (_d = el.props) == null ? void 0 : _d.childrenExtend;
|
|
17752
17797
|
if (childrenAs)
|
|
17753
|
-
param = param.map((v) => ({ [childrenAs]: v }));
|
|
17798
|
+
param = param.map((v) => ({ extend, [childrenAs]: v }));
|
|
17754
17799
|
} else if (!param)
|
|
17755
17800
|
return;
|
|
17756
17801
|
if ((0, import_utils20.isString)(param)) {
|
|
@@ -18377,17 +18422,16 @@ var import_utils25, Icon, IconText, FileIcon;
|
|
|
18377
18422
|
var init_Icon = __esm({
|
|
18378
18423
|
"../uikit/Icon/index.js"() {
|
|
18379
18424
|
"use strict";
|
|
18380
|
-
init_Atoms();
|
|
18381
18425
|
import_utils25 = __toESM(require_cjs());
|
|
18382
18426
|
Icon = {
|
|
18383
|
-
extend: Svg,
|
|
18427
|
+
extend: "Svg",
|
|
18384
18428
|
deps: { isString: import_utils25.isString },
|
|
18385
18429
|
props: ({ key, props: props4, parent, context, deps }) => {
|
|
18386
18430
|
const { ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
18387
18431
|
const { toCamelCase: toCamelCase2 } = context && context.utils;
|
|
18388
18432
|
const iconName = props4.name || props4.icon || key;
|
|
18389
18433
|
const camelCase = toCamelCase2(deps.isString(iconName) ? iconName : key);
|
|
18390
|
-
const
|
|
18434
|
+
const isArray7 = camelCase.split(/([a-z])([A-Z])/g);
|
|
18391
18435
|
let activeIconName;
|
|
18392
18436
|
if (props4.active) {
|
|
18393
18437
|
activeIconName = props4[".active"].name || props4[".active"].icon;
|
|
@@ -18400,10 +18444,10 @@ var init_Icon = __esm({
|
|
|
18400
18444
|
validIconName = activeIconName;
|
|
18401
18445
|
if (ICONS[camelCase])
|
|
18402
18446
|
validIconName = camelCase;
|
|
18403
|
-
else if (ICONS[
|
|
18404
|
-
validIconName =
|
|
18405
|
-
else if (ICONS[
|
|
18406
|
-
validIconName =
|
|
18447
|
+
else if (ICONS[isArray7[0] + isArray7[1]])
|
|
18448
|
+
validIconName = isArray7[0] + isArray7[1];
|
|
18449
|
+
else if (ICONS[isArray7[0]])
|
|
18450
|
+
validIconName = isArray7[0];
|
|
18407
18451
|
else {
|
|
18408
18452
|
if (verbose)
|
|
18409
18453
|
console.warn("Can't find icon:", iconName, validIconName);
|
|
@@ -18422,7 +18466,7 @@ var init_Icon = __esm({
|
|
|
18422
18466
|
attr: { viewBox: "0 0 24 24" }
|
|
18423
18467
|
};
|
|
18424
18468
|
IconText = {
|
|
18425
|
-
extend: Flex,
|
|
18469
|
+
extend: "Flex",
|
|
18426
18470
|
props: {
|
|
18427
18471
|
align: "center center",
|
|
18428
18472
|
lineHeight: 1
|
|
@@ -18443,7 +18487,7 @@ var init_Icon = __esm({
|
|
|
18443
18487
|
}
|
|
18444
18488
|
};
|
|
18445
18489
|
FileIcon = {
|
|
18446
|
-
extend: Flex,
|
|
18490
|
+
extend: "Flex",
|
|
18447
18491
|
props: {
|
|
18448
18492
|
theme: "tertiary",
|
|
18449
18493
|
boxSize: "C1",
|
|
@@ -18482,9 +18526,8 @@ var CheckIndicator, CheckIndicatorWithLabel;
|
|
|
18482
18526
|
var init_CheckIndicator = __esm({
|
|
18483
18527
|
"../uikit/Indicator/CheckIndicator.js"() {
|
|
18484
18528
|
"use strict";
|
|
18485
|
-
init_Atoms();
|
|
18486
18529
|
CheckIndicator = {
|
|
18487
|
-
extend: Flex,
|
|
18530
|
+
extend: "Flex",
|
|
18488
18531
|
props: {
|
|
18489
18532
|
padding: "Y1",
|
|
18490
18533
|
round: "100%",
|
|
@@ -18496,7 +18539,7 @@ var init_CheckIndicator = __esm({
|
|
|
18496
18539
|
}
|
|
18497
18540
|
};
|
|
18498
18541
|
CheckIndicatorWithLabel = {
|
|
18499
|
-
extend: Flex,
|
|
18542
|
+
extend: "Flex",
|
|
18500
18543
|
props: {
|
|
18501
18544
|
align: "center flex-start",
|
|
18502
18545
|
gap: "Z"
|
|
@@ -18515,9 +18558,8 @@ var CountIndicator;
|
|
|
18515
18558
|
var init_CountIndicator = __esm({
|
|
18516
18559
|
"../uikit/Indicator/CountIndicator.js"() {
|
|
18517
18560
|
"use strict";
|
|
18518
|
-
init_Atoms();
|
|
18519
18561
|
CountIndicator = {
|
|
18520
|
-
extend: Flex,
|
|
18562
|
+
extend: "Flex",
|
|
18521
18563
|
props: {
|
|
18522
18564
|
text: "2",
|
|
18523
18565
|
theme: "primary",
|
|
@@ -18538,7 +18580,6 @@ var RadioIndicator, RadioIndicatorWithLabel;
|
|
|
18538
18580
|
var init_RadioIndicator = __esm({
|
|
18539
18581
|
"../uikit/Indicator/RadioIndicator.js"() {
|
|
18540
18582
|
"use strict";
|
|
18541
|
-
init_Atoms();
|
|
18542
18583
|
RadioIndicator = {
|
|
18543
18584
|
props: {
|
|
18544
18585
|
padding: "Z+V",
|
|
@@ -18555,7 +18596,7 @@ var init_RadioIndicator = __esm({
|
|
|
18555
18596
|
}
|
|
18556
18597
|
};
|
|
18557
18598
|
RadioIndicatorWithLabel = {
|
|
18558
|
-
extend: Flex,
|
|
18599
|
+
extend: "Flex",
|
|
18559
18600
|
props: {
|
|
18560
18601
|
align: "center flex-start",
|
|
18561
18602
|
gap: "Z"
|
|
@@ -18689,9 +18730,8 @@ var UnitValue, DoubleUnitValue, UnitValueWithLabel, UnitValueWithTitle;
|
|
|
18689
18730
|
var init_UnitValue = __esm({
|
|
18690
18731
|
"../uikit/UnitValue/index.js"() {
|
|
18691
18732
|
"use strict";
|
|
18692
|
-
init_Atoms();
|
|
18693
18733
|
UnitValue = {
|
|
18694
|
-
extend: Flex,
|
|
18734
|
+
extend: "Flex",
|
|
18695
18735
|
props: {
|
|
18696
18736
|
color: "title",
|
|
18697
18737
|
align: "center flex-start",
|
|
@@ -18703,7 +18743,7 @@ var init_UnitValue = __esm({
|
|
|
18703
18743
|
Unit: { props: { text: "%" } }
|
|
18704
18744
|
};
|
|
18705
18745
|
DoubleUnitValue = {
|
|
18706
|
-
extend: Flex,
|
|
18746
|
+
extend: "Flex",
|
|
18707
18747
|
props: {
|
|
18708
18748
|
align: "center flex-start",
|
|
18709
18749
|
color: "caption",
|
|
@@ -18748,7 +18788,7 @@ var init_UnitValue = __esm({
|
|
|
18748
18788
|
}
|
|
18749
18789
|
};
|
|
18750
18790
|
UnitValueWithTitle = {
|
|
18751
|
-
extend: Flex,
|
|
18791
|
+
extend: "Flex",
|
|
18752
18792
|
props: {
|
|
18753
18793
|
align: "center flex-start",
|
|
18754
18794
|
gap: "Y",
|
|
@@ -18773,15 +18813,13 @@ var init_UnitValue = __esm({
|
|
|
18773
18813
|
});
|
|
18774
18814
|
|
|
18775
18815
|
// ../uikit/Link/index.js
|
|
18776
|
-
var import_router5,
|
|
18816
|
+
var import_router5, Link, RouterLink, RouteLink;
|
|
18777
18817
|
var init_Link = __esm({
|
|
18778
18818
|
"../uikit/Link/index.js"() {
|
|
18779
18819
|
"use strict";
|
|
18780
18820
|
import_router5 = __toESM(require_cjs5());
|
|
18781
|
-
import_utils26 = __toESM(require_cjs());
|
|
18782
|
-
init_Atoms();
|
|
18783
18821
|
Link = {
|
|
18784
|
-
extend: Focusable,
|
|
18822
|
+
extend: "Focusable",
|
|
18785
18823
|
tag: "a",
|
|
18786
18824
|
props: {
|
|
18787
18825
|
aria: {},
|
|
@@ -18793,8 +18831,8 @@ var init_Link = __esm({
|
|
|
18793
18831
|
attr: {
|
|
18794
18832
|
href: (el) => {
|
|
18795
18833
|
const { context: ctx } = el;
|
|
18796
|
-
const { exec:
|
|
18797
|
-
return
|
|
18834
|
+
const { exec: exec4 } = ctx.utils;
|
|
18835
|
+
return exec4(el.props.href, el) || exec4(el.props, el).href;
|
|
18798
18836
|
},
|
|
18799
18837
|
target: ({ props: props4 }) => props4.target,
|
|
18800
18838
|
"aria-label": ({ props: props4 }) => props4.aria ? props4.aria.label : props4.text,
|
|
@@ -18806,7 +18844,11 @@ var init_Link = __esm({
|
|
|
18806
18844
|
click: (event, el, s) => {
|
|
18807
18845
|
const { props: props4, context: ctx } = el;
|
|
18808
18846
|
const { href: h, scrollToTop, stopPropagation } = props4;
|
|
18809
|
-
const
|
|
18847
|
+
const { exec: exec4, isString: isString14, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2, isDefined: isDefined2 } = ctx.utils;
|
|
18848
|
+
let href = exec4(h, el, s);
|
|
18849
|
+
if (isString14(href) && href.includes("{{")) {
|
|
18850
|
+
href = replaceLiteralsWithObjectFields2(href, s);
|
|
18851
|
+
}
|
|
18810
18852
|
if (stopPropagation)
|
|
18811
18853
|
event.stopPropagation();
|
|
18812
18854
|
if (!href)
|
|
@@ -18818,7 +18860,7 @@ var init_Link = __esm({
|
|
|
18818
18860
|
try {
|
|
18819
18861
|
(snippets.router || utils4.router || import_router5.router)(href, root, {}, {
|
|
18820
18862
|
scrollToOptions: { behaviour: "instant" },
|
|
18821
|
-
scrollToTop: (
|
|
18863
|
+
scrollToTop: isDefined2(scrollToTop) ? scrollToTop : true,
|
|
18822
18864
|
...routerOptions,
|
|
18823
18865
|
...props4.routerOptions
|
|
18824
18866
|
});
|
|
@@ -18875,7 +18917,7 @@ var init_DoubleHr = __esm({
|
|
|
18875
18917
|
"use strict";
|
|
18876
18918
|
init_Atoms();
|
|
18877
18919
|
DoubleHr = {
|
|
18878
|
-
extend: Flex,
|
|
18920
|
+
extend: "Flex",
|
|
18879
18921
|
props: {
|
|
18880
18922
|
gap: "B",
|
|
18881
18923
|
fontSize: "Z1",
|
|
@@ -18900,15 +18942,15 @@ var init_DoubleHr = __esm({
|
|
|
18900
18942
|
});
|
|
18901
18943
|
|
|
18902
18944
|
// ../uikit/Input/Input.js
|
|
18903
|
-
var
|
|
18945
|
+
var import_utils26, Input;
|
|
18904
18946
|
var init_Input = __esm({
|
|
18905
18947
|
"../uikit/Input/Input.js"() {
|
|
18906
18948
|
"use strict";
|
|
18907
|
-
|
|
18949
|
+
import_utils26 = __toESM(require_cjs());
|
|
18908
18950
|
Input = {
|
|
18909
18951
|
extend: ["Focusable"],
|
|
18910
18952
|
tag: "input",
|
|
18911
|
-
deps: { isString:
|
|
18953
|
+
deps: { isString: import_utils26.isString, replaceLiteralsWithObjectFields: import_utils26.replaceLiteralsWithObjectFields },
|
|
18912
18954
|
props: {
|
|
18913
18955
|
border: "none",
|
|
18914
18956
|
type: "input",
|
|
@@ -18926,8 +18968,8 @@ var init_Input = __esm({
|
|
|
18926
18968
|
autocomplete: ({ props: props4 }) => props4.autocomplete,
|
|
18927
18969
|
placeholder: ({ props: props4 }) => props4.placeholder,
|
|
18928
18970
|
value: ({ props: props4, state, deps }) => {
|
|
18929
|
-
const { isString:
|
|
18930
|
-
if (
|
|
18971
|
+
const { isString: isString14, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields2 } = deps;
|
|
18972
|
+
if (isString14(props4.value) && props4.value.includes("{{")) {
|
|
18931
18973
|
return replaceLiteralsWithObjectFields2(props4.value, state);
|
|
18932
18974
|
}
|
|
18933
18975
|
return props4.value;
|
|
@@ -19163,7 +19205,7 @@ var init_Textarea = __esm({
|
|
|
19163
19205
|
html: (el, s) => el.props.value
|
|
19164
19206
|
};
|
|
19165
19207
|
TextareaWithButton = {
|
|
19166
|
-
extend: Flex,
|
|
19208
|
+
extend: "Flex",
|
|
19167
19209
|
props: { gap: "Y2" },
|
|
19168
19210
|
Textarea: {
|
|
19169
19211
|
height: "C2+W",
|
|
@@ -19238,10 +19280,8 @@ var CommonField, CommonFieldTemplate;
|
|
|
19238
19280
|
var init_CommonField = __esm({
|
|
19239
19281
|
"../uikit/Field/CommonField.js"() {
|
|
19240
19282
|
"use strict";
|
|
19241
|
-
init_Atoms();
|
|
19242
|
-
init_Icon();
|
|
19243
19283
|
CommonField = {
|
|
19244
|
-
extend: Flex,
|
|
19284
|
+
extend: "Flex",
|
|
19245
19285
|
tag: "label",
|
|
19246
19286
|
props: {
|
|
19247
19287
|
flow: "column",
|
|
@@ -19260,7 +19300,7 @@ var init_CommonField = __esm({
|
|
|
19260
19300
|
tag: "div"
|
|
19261
19301
|
},
|
|
19262
19302
|
Hint: {
|
|
19263
|
-
extend: IconText,
|
|
19303
|
+
extend: "IconText",
|
|
19264
19304
|
props: {
|
|
19265
19305
|
color: "caption",
|
|
19266
19306
|
align: "center flex-start",
|
|
@@ -19272,7 +19312,7 @@ var init_CommonField = __esm({
|
|
|
19272
19312
|
}
|
|
19273
19313
|
};
|
|
19274
19314
|
CommonFieldTemplate = {
|
|
19275
|
-
extend: CommonField,
|
|
19315
|
+
extend: "CommonField",
|
|
19276
19316
|
Title: {},
|
|
19277
19317
|
Field: {
|
|
19278
19318
|
Icon: { props: { name: "info" } },
|
|
@@ -19335,7 +19375,7 @@ var init_Field = __esm({
|
|
|
19335
19375
|
Button: { Icon: { name: "eye" } }
|
|
19336
19376
|
};
|
|
19337
19377
|
FieldWithTitle = {
|
|
19338
|
-
extend: Flex,
|
|
19378
|
+
extend: "Flex",
|
|
19339
19379
|
props: {
|
|
19340
19380
|
flow: "column",
|
|
19341
19381
|
boxSize: "fit-content fit-content",
|
|
@@ -19463,10 +19503,9 @@ var TextAreaField;
|
|
|
19463
19503
|
var init_TextAreaField = __esm({
|
|
19464
19504
|
"../uikit/Field/TextAreaField.js"() {
|
|
19465
19505
|
"use strict";
|
|
19466
|
-
init_Atoms();
|
|
19467
19506
|
TextAreaField = {
|
|
19468
19507
|
tag: "label",
|
|
19469
|
-
extend: Focusable,
|
|
19508
|
+
extend: "Focusable",
|
|
19470
19509
|
props: {
|
|
19471
19510
|
boxSize: "fit-content",
|
|
19472
19511
|
border: "solid, gray .45 +80",
|
|
@@ -19510,10 +19549,8 @@ var Button, SquareButton, CircleButton, KangorooButton, FlexButton, ButtonSet, C
|
|
|
19510
19549
|
var init_Button = __esm({
|
|
19511
19550
|
"../uikit/Button/index.js"() {
|
|
19512
19551
|
"use strict";
|
|
19513
|
-
init_Atoms();
|
|
19514
|
-
init_Icon();
|
|
19515
19552
|
Button = {
|
|
19516
|
-
extend: [IconText, FocusableComponent],
|
|
19553
|
+
extend: ["IconText", "FocusableComponent"],
|
|
19517
19554
|
tag: "button",
|
|
19518
19555
|
props: {
|
|
19519
19556
|
fontSize: "A",
|
|
@@ -19534,7 +19571,7 @@ var init_Button = __esm({
|
|
|
19534
19571
|
}
|
|
19535
19572
|
};
|
|
19536
19573
|
SquareButton = {
|
|
19537
|
-
extend: Button,
|
|
19574
|
+
extend: "Button",
|
|
19538
19575
|
props: {
|
|
19539
19576
|
fontSize: "A",
|
|
19540
19577
|
width: "A",
|
|
@@ -19548,15 +19585,15 @@ var init_Button = __esm({
|
|
|
19548
19585
|
}
|
|
19549
19586
|
};
|
|
19550
19587
|
CircleButton = {
|
|
19551
|
-
extend: SquareButton,
|
|
19588
|
+
extend: "SquareButton",
|
|
19552
19589
|
props: { round: "C" }
|
|
19553
19590
|
};
|
|
19554
19591
|
KangorooButton = {
|
|
19555
|
-
extend: Button,
|
|
19556
|
-
childExtend: IconText
|
|
19592
|
+
extend: "Button",
|
|
19593
|
+
childExtend: "IconText"
|
|
19557
19594
|
};
|
|
19558
19595
|
FlexButton = {
|
|
19559
|
-
extend: Button,
|
|
19596
|
+
extend: "Button",
|
|
19560
19597
|
props: {
|
|
19561
19598
|
boxSize: "fit-content",
|
|
19562
19599
|
padding: "Z2 A2",
|
|
@@ -19570,17 +19607,17 @@ var init_Button = __esm({
|
|
|
19570
19607
|
};
|
|
19571
19608
|
ButtonSet = {
|
|
19572
19609
|
tag: "nav",
|
|
19573
|
-
extend: Flex,
|
|
19574
|
-
childExtend: SquareButton
|
|
19610
|
+
extend: "Flex",
|
|
19611
|
+
childExtend: "SquareButton"
|
|
19575
19612
|
};
|
|
19576
19613
|
CancelConfirmButtons = {
|
|
19577
|
-
extend: Flex,
|
|
19614
|
+
extend: "Flex",
|
|
19578
19615
|
props: {
|
|
19579
19616
|
gap: "Z2",
|
|
19580
19617
|
maxWidth: "fit-content"
|
|
19581
19618
|
},
|
|
19582
19619
|
childExtend: {
|
|
19583
|
-
extend: FlexButton,
|
|
19620
|
+
extend: "FlexButton",
|
|
19584
19621
|
props: {
|
|
19585
19622
|
":first-child": {
|
|
19586
19623
|
theme: "transparent",
|
|
@@ -19594,7 +19631,7 @@ var init_Button = __esm({
|
|
|
19594
19631
|
]
|
|
19595
19632
|
};
|
|
19596
19633
|
IcontextButton = {
|
|
19597
|
-
extend: FlexButton,
|
|
19634
|
+
extend: "FlexButton",
|
|
19598
19635
|
props: {
|
|
19599
19636
|
position: "relative",
|
|
19600
19637
|
theme: "tertiary",
|
|
@@ -19603,7 +19640,7 @@ var init_Button = __esm({
|
|
|
19603
19640
|
}
|
|
19604
19641
|
};
|
|
19605
19642
|
DropDownButton = {
|
|
19606
|
-
extend: FlexButton,
|
|
19643
|
+
extend: "FlexButton",
|
|
19607
19644
|
props: {
|
|
19608
19645
|
gap: "X2",
|
|
19609
19646
|
boxSize: "fit-content fit-content",
|
|
@@ -19617,7 +19654,7 @@ var init_Button = __esm({
|
|
|
19617
19654
|
}
|
|
19618
19655
|
};
|
|
19619
19656
|
DropDownButtonWithAvatar = {
|
|
19620
|
-
extend: DropDownButton,
|
|
19657
|
+
extend: "DropDownButton",
|
|
19621
19658
|
props: {
|
|
19622
19659
|
gap: "Y",
|
|
19623
19660
|
padding: "Y",
|
|
@@ -19637,18 +19674,18 @@ var init_Button = __esm({
|
|
|
19637
19674
|
}
|
|
19638
19675
|
};
|
|
19639
19676
|
PlusMinusButtons = {
|
|
19640
|
-
extend: Flex,
|
|
19677
|
+
extend: "Flex",
|
|
19641
19678
|
props: {
|
|
19642
19679
|
alignItems: "center",
|
|
19643
19680
|
gap: "A"
|
|
19644
19681
|
},
|
|
19645
19682
|
Minus: {
|
|
19646
|
-
extend: SquareButton,
|
|
19683
|
+
extend: "SquareButton",
|
|
19647
19684
|
props: { icon: "minus" }
|
|
19648
19685
|
},
|
|
19649
19686
|
Value: { props: { text: "1" } },
|
|
19650
19687
|
Plus: {
|
|
19651
|
-
extend: SquareButton,
|
|
19688
|
+
extend: "SquareButton",
|
|
19652
19689
|
props: { icon: "plus" }
|
|
19653
19690
|
}
|
|
19654
19691
|
};
|
|
@@ -19660,7 +19697,6 @@ var ProgressLine, ProgressLineWithUnitValue;
|
|
|
19660
19697
|
var init_ProgressLine = __esm({
|
|
19661
19698
|
"../uikit/Progress/ProgressLine.js"() {
|
|
19662
19699
|
"use strict";
|
|
19663
|
-
init_Atoms();
|
|
19664
19700
|
ProgressLine = {
|
|
19665
19701
|
tag: "progress",
|
|
19666
19702
|
props: {
|
|
@@ -19685,7 +19721,7 @@ var init_ProgressLine = __esm({
|
|
|
19685
19721
|
}
|
|
19686
19722
|
};
|
|
19687
19723
|
ProgressLineWithUnitValue = {
|
|
19688
|
-
extend: Flex,
|
|
19724
|
+
extend: "Flex",
|
|
19689
19725
|
props: {
|
|
19690
19726
|
align: "center flex-start",
|
|
19691
19727
|
gap: "Z1"
|
|
@@ -19703,7 +19739,6 @@ var ProgressCircle, ProgressCircleWithIcon, ProgressCircleWithUnitValue, Progres
|
|
|
19703
19739
|
var init_ProgressCircle = __esm({
|
|
19704
19740
|
"../uikit/Progress/ProgressCircle.js"() {
|
|
19705
19741
|
"use strict";
|
|
19706
|
-
init_Atoms();
|
|
19707
19742
|
ProgressCircle = {
|
|
19708
19743
|
props: {
|
|
19709
19744
|
widthRange: "D",
|
|
@@ -19765,7 +19800,7 @@ var init_ProgressCircle = __esm({
|
|
|
19765
19800
|
}
|
|
19766
19801
|
};
|
|
19767
19802
|
ProgressCircleWithSideUnitValue = {
|
|
19768
|
-
extend: Flex,
|
|
19803
|
+
extend: "Flex",
|
|
19769
19804
|
props: {
|
|
19770
19805
|
align: "center flex-start",
|
|
19771
19806
|
boxSize: "fit-content",
|
|
@@ -19793,13 +19828,12 @@ var init_Progress = __esm({
|
|
|
19793
19828
|
});
|
|
19794
19829
|
|
|
19795
19830
|
// ../uikit/Range/index.js
|
|
19796
|
-
var
|
|
19831
|
+
var import_utils27, import_scratch13, props, returnPropertyValue, Range, RangeWithButtons;
|
|
19797
19832
|
var init_Range = __esm({
|
|
19798
19833
|
"../uikit/Range/index.js"() {
|
|
19799
19834
|
"use strict";
|
|
19800
|
-
|
|
19835
|
+
import_utils27 = __toESM(require_cjs());
|
|
19801
19836
|
import_scratch13 = __toESM(require_cjs2());
|
|
19802
|
-
init_Button();
|
|
19803
19837
|
props = {
|
|
19804
19838
|
appearance: "none",
|
|
19805
19839
|
width: "100%",
|
|
@@ -19861,7 +19895,7 @@ var init_Range = __esm({
|
|
|
19861
19895
|
};
|
|
19862
19896
|
returnPropertyValue = (el, property, def) => {
|
|
19863
19897
|
const val = el.props && el.props[property];
|
|
19864
|
-
const r = (0,
|
|
19898
|
+
const r = (0, import_utils27.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 0;
|
|
19865
19899
|
return r + "";
|
|
19866
19900
|
};
|
|
19867
19901
|
Range = {
|
|
@@ -19877,7 +19911,7 @@ var init_Range = __esm({
|
|
|
19877
19911
|
on: {
|
|
19878
19912
|
input: (ev, el, s) => {
|
|
19879
19913
|
const props4 = el.props;
|
|
19880
|
-
if ((0,
|
|
19914
|
+
if ((0, import_utils27.isFunction)(props4.onInput)) {
|
|
19881
19915
|
props4.onInput(ev, el, s);
|
|
19882
19916
|
} else {
|
|
19883
19917
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -19885,7 +19919,7 @@ var init_Range = __esm({
|
|
|
19885
19919
|
},
|
|
19886
19920
|
change: (ev, el, s) => {
|
|
19887
19921
|
const props4 = el.props;
|
|
19888
|
-
if ((0,
|
|
19922
|
+
if ((0, import_utils27.isFunction)(props4.onChange)) {
|
|
19889
19923
|
props4.onChange(ev, el, s);
|
|
19890
19924
|
} else {
|
|
19891
19925
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -19895,12 +19929,12 @@ var init_Range = __esm({
|
|
|
19895
19929
|
};
|
|
19896
19930
|
RangeWithButtons = {
|
|
19897
19931
|
minus: {
|
|
19898
|
-
extend: SquareButton,
|
|
19932
|
+
extend: "SquareButton",
|
|
19899
19933
|
props: { theme: "field", icon: "minus" },
|
|
19900
19934
|
on: {
|
|
19901
19935
|
click: (ev, el, s) => {
|
|
19902
19936
|
const parentProps = el.parent.props;
|
|
19903
|
-
if ((0,
|
|
19937
|
+
if ((0, import_utils27.isFunction)(parentProps.onDecrease)) {
|
|
19904
19938
|
parentProps.onDecrease(ev, el.parent, s);
|
|
19905
19939
|
} else {
|
|
19906
19940
|
const value2 = parseFloat(s.value);
|
|
@@ -19932,7 +19966,7 @@ var init_Range = __esm({
|
|
|
19932
19966
|
on: {
|
|
19933
19967
|
input: (ev, el, s) => {
|
|
19934
19968
|
const parentProps = el.parent.props;
|
|
19935
|
-
if ((0,
|
|
19969
|
+
if ((0, import_utils27.isFunction)(parentProps.onInput)) {
|
|
19936
19970
|
parentProps.onInput(ev, el, s);
|
|
19937
19971
|
} else {
|
|
19938
19972
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -19940,7 +19974,7 @@ var init_Range = __esm({
|
|
|
19940
19974
|
},
|
|
19941
19975
|
change: (ev, el, s) => {
|
|
19942
19976
|
const parentProps = el.parent.props;
|
|
19943
|
-
if ((0,
|
|
19977
|
+
if ((0, import_utils27.isFunction)(parentProps.onChange)) {
|
|
19944
19978
|
parentProps.onChange(ev, el, s);
|
|
19945
19979
|
} else {
|
|
19946
19980
|
s.update({ value: parseFloat(el.node.value) });
|
|
@@ -19949,12 +19983,12 @@ var init_Range = __esm({
|
|
|
19949
19983
|
}
|
|
19950
19984
|
},
|
|
19951
19985
|
plus: {
|
|
19952
|
-
extend: SquareButton,
|
|
19986
|
+
extend: "SquareButton",
|
|
19953
19987
|
props: { theme: "field", icon: "plus" },
|
|
19954
19988
|
on: {
|
|
19955
19989
|
click: (ev, el, s) => {
|
|
19956
19990
|
const parentProps = el.parent.props;
|
|
19957
|
-
if ((0,
|
|
19991
|
+
if ((0, import_utils27.isFunction)(parentProps.onIncrease)) {
|
|
19958
19992
|
parentProps.onIncrease(ev, el.parent, s);
|
|
19959
19993
|
} else {
|
|
19960
19994
|
const value2 = parseFloat(s.value);
|
|
@@ -19997,12 +20031,12 @@ var init_style2 = __esm({
|
|
|
19997
20031
|
});
|
|
19998
20032
|
|
|
19999
20033
|
// ../uikit/Slider/index.js
|
|
20000
|
-
var
|
|
20034
|
+
var import_utils28, RangeSlider, listenProp, Slider;
|
|
20001
20035
|
var init_Slider = __esm({
|
|
20002
20036
|
"../uikit/Slider/index.js"() {
|
|
20003
20037
|
"use strict";
|
|
20004
20038
|
init_style2();
|
|
20005
|
-
|
|
20039
|
+
import_utils28 = __toESM(require_cjs());
|
|
20006
20040
|
init_Button();
|
|
20007
20041
|
RangeSlider = {
|
|
20008
20042
|
props: {
|
|
@@ -20014,7 +20048,7 @@ var init_Slider = __esm({
|
|
|
20014
20048
|
};
|
|
20015
20049
|
listenProp = (el, prop, def) => {
|
|
20016
20050
|
const val = el && el.props && el.props[prop];
|
|
20017
|
-
const r = ((0,
|
|
20051
|
+
const r = ((0, import_utils28.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
|
|
20018
20052
|
return r;
|
|
20019
20053
|
};
|
|
20020
20054
|
Slider = {
|
|
@@ -20025,10 +20059,10 @@ var init_Slider = __esm({
|
|
|
20025
20059
|
},
|
|
20026
20060
|
on: {
|
|
20027
20061
|
click: (ev, el, s) => {
|
|
20028
|
-
el.props && (0,
|
|
20062
|
+
el.props && (0, import_utils28.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
20029
20063
|
const input = el.parent.input;
|
|
20030
20064
|
const props4 = input.props;
|
|
20031
|
-
const value2 = (0,
|
|
20065
|
+
const value2 = (0, import_utils28.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
20032
20066
|
input.node.value = value2;
|
|
20033
20067
|
}
|
|
20034
20068
|
}
|
|
@@ -20051,8 +20085,8 @@ var init_Slider = __esm({
|
|
|
20051
20085
|
step: (el, s) => listenProp(el, "step", 1)
|
|
20052
20086
|
},
|
|
20053
20087
|
on: {
|
|
20054
|
-
input: (ev, el, s) => el.props && (0,
|
|
20055
|
-
change: (ev, el, s) => el.props && (0,
|
|
20088
|
+
input: (ev, el, s) => el.props && (0, import_utils28.isFunction)(el.props.input) && el.props.input(ev, el, s),
|
|
20089
|
+
change: (ev, el, s) => el.props && (0, import_utils28.isFunction)(el.props.change) && el.props.change(ev, el, s)
|
|
20056
20090
|
}
|
|
20057
20091
|
},
|
|
20058
20092
|
button1: {
|
|
@@ -20062,10 +20096,10 @@ var init_Slider = __esm({
|
|
|
20062
20096
|
},
|
|
20063
20097
|
on: {
|
|
20064
20098
|
click: (ev, el, s) => {
|
|
20065
|
-
el.props && (0,
|
|
20099
|
+
el.props && (0, import_utils28.isFunction)(el.props.click) && el.props.click(ev, el, s);
|
|
20066
20100
|
const input = el.parent.input;
|
|
20067
20101
|
const props4 = input.props;
|
|
20068
|
-
const value2 = (0,
|
|
20102
|
+
const value2 = (0, import_utils28.isFunction)(props4.value) ? props4.value() : props4.value;
|
|
20069
20103
|
input.node.value = value2;
|
|
20070
20104
|
}
|
|
20071
20105
|
}
|
|
@@ -20079,10 +20113,8 @@ var Label, LabelButton, CardLabel;
|
|
|
20079
20113
|
var init_Label = __esm({
|
|
20080
20114
|
"../uikit/Label/index.js"() {
|
|
20081
20115
|
"use strict";
|
|
20082
|
-
init_Atoms();
|
|
20083
|
-
init_Button();
|
|
20084
20116
|
Label = {
|
|
20085
|
-
extend: Flex,
|
|
20117
|
+
extend: "Flex",
|
|
20086
20118
|
props: {
|
|
20087
20119
|
text: "-2.902x",
|
|
20088
20120
|
fontSize: "Z",
|
|
@@ -20095,7 +20127,7 @@ var init_Label = __esm({
|
|
|
20095
20127
|
}
|
|
20096
20128
|
};
|
|
20097
20129
|
LabelButton = {
|
|
20098
|
-
extend: Button,
|
|
20130
|
+
extend: "Button",
|
|
20099
20131
|
props: {
|
|
20100
20132
|
theme: "tertiary",
|
|
20101
20133
|
fontSize: "Z2",
|
|
@@ -20129,9 +20161,8 @@ var Avatar;
|
|
|
20129
20161
|
var init_Avatar = __esm({
|
|
20130
20162
|
"../uikit/Avatar/Avatar.js"() {
|
|
20131
20163
|
"use strict";
|
|
20132
|
-
init_Atoms();
|
|
20133
20164
|
Avatar = {
|
|
20134
|
-
extend: Img,
|
|
20165
|
+
extend: "Img",
|
|
20135
20166
|
props: ({ key, props: props4 }) => ({
|
|
20136
20167
|
display: "block",
|
|
20137
20168
|
avatarType: "adventurer-neutral",
|
|
@@ -20170,10 +20201,9 @@ var AvatarBundle;
|
|
|
20170
20201
|
var init_AvatarBundle = __esm({
|
|
20171
20202
|
"../uikit/Avatar/AvatarBundle.js"() {
|
|
20172
20203
|
"use strict";
|
|
20173
|
-
init_Atoms();
|
|
20174
20204
|
init_Avatar();
|
|
20175
20205
|
AvatarBundle = {
|
|
20176
|
-
extend: Flex,
|
|
20206
|
+
extend: "Flex",
|
|
20177
20207
|
props: {
|
|
20178
20208
|
childProps: {
|
|
20179
20209
|
"@light": {
|
|
@@ -20198,9 +20228,8 @@ var AvatarChooser;
|
|
|
20198
20228
|
var init_AvatarChooser = __esm({
|
|
20199
20229
|
"../uikit/Avatar/AvatarChooser.js"() {
|
|
20200
20230
|
"use strict";
|
|
20201
|
-
init_Button();
|
|
20202
20231
|
AvatarChooser = {
|
|
20203
|
-
extend: Button,
|
|
20232
|
+
extend: "Button",
|
|
20204
20233
|
tag: "label",
|
|
20205
20234
|
state: { key: "am" },
|
|
20206
20235
|
props: {
|
|
@@ -20281,9 +20310,8 @@ var Notification, NotificationIndicator;
|
|
|
20281
20310
|
var init_Notification = __esm({
|
|
20282
20311
|
"../uikit/Notification/index.js"() {
|
|
20283
20312
|
"use strict";
|
|
20284
|
-
init_Atoms();
|
|
20285
20313
|
Notification = {
|
|
20286
|
-
extend: Flex,
|
|
20314
|
+
extend: "Flex",
|
|
20287
20315
|
props: {
|
|
20288
20316
|
theme: "alert",
|
|
20289
20317
|
padding: "Z1 B Z A",
|
|
@@ -20323,7 +20351,7 @@ var init_Notification = __esm({
|
|
|
20323
20351
|
}
|
|
20324
20352
|
};
|
|
20325
20353
|
NotificationIndicator = {
|
|
20326
|
-
extend: Flex,
|
|
20354
|
+
extend: "Flex",
|
|
20327
20355
|
props: {
|
|
20328
20356
|
text: "2",
|
|
20329
20357
|
fontSize: "Z",
|
|
@@ -20338,14 +20366,13 @@ var init_Notification = __esm({
|
|
|
20338
20366
|
});
|
|
20339
20367
|
|
|
20340
20368
|
// ../uikit/Tooltip/index.js
|
|
20341
|
-
var
|
|
20369
|
+
var import_utils29, Tooltip, TooltipHidden, TooltipParent;
|
|
20342
20370
|
var init_Tooltip = __esm({
|
|
20343
20371
|
"../uikit/Tooltip/index.js"() {
|
|
20344
20372
|
"use strict";
|
|
20345
|
-
|
|
20346
|
-
init_Atoms();
|
|
20373
|
+
import_utils29 = __toESM(require_cjs());
|
|
20347
20374
|
Tooltip = {
|
|
20348
|
-
extend: Flex,
|
|
20375
|
+
extend: "Flex",
|
|
20349
20376
|
props: {
|
|
20350
20377
|
theme: "dialog",
|
|
20351
20378
|
background: "black",
|
|
@@ -20362,7 +20389,7 @@ var init_Tooltip = __esm({
|
|
|
20362
20389
|
},
|
|
20363
20390
|
attr: { tooltip: true },
|
|
20364
20391
|
Title: {
|
|
20365
|
-
if: ({ parent, props: props4 }) => (0,
|
|
20392
|
+
if: ({ parent, props: props4 }) => (0, import_utils29.isDefined)(parent.props.title) || props4.text,
|
|
20366
20393
|
props: ({ parent }) => ({
|
|
20367
20394
|
width: "fit-content",
|
|
20368
20395
|
fontWeight: 500,
|
|
@@ -20371,7 +20398,7 @@ var init_Tooltip = __esm({
|
|
|
20371
20398
|
})
|
|
20372
20399
|
},
|
|
20373
20400
|
P: {
|
|
20374
|
-
if: ({ parent, props: props4 }) => (0,
|
|
20401
|
+
if: ({ parent, props: props4 }) => (0, import_utils29.isDefined)(parent.props.description) || props4.text,
|
|
20375
20402
|
props: ({ parent }) => ({
|
|
20376
20403
|
width: "fit-content",
|
|
20377
20404
|
fontSize: "Z2",
|
|
@@ -20460,9 +20487,8 @@ var Pills;
|
|
|
20460
20487
|
var init_Pills = __esm({
|
|
20461
20488
|
"../uikit/Pills/index.js"() {
|
|
20462
20489
|
"use strict";
|
|
20463
|
-
init_Atoms();
|
|
20464
20490
|
Pills = {
|
|
20465
|
-
extend: Flex,
|
|
20491
|
+
extend: "Flex",
|
|
20466
20492
|
props: {
|
|
20467
20493
|
gap: "Y2"
|
|
20468
20494
|
},
|
|
@@ -20531,9 +20557,8 @@ var CheckStep, CheckSteps;
|
|
|
20531
20557
|
var init_CheckSteps = __esm({
|
|
20532
20558
|
"../uikit/Steps/CheckSteps.js"() {
|
|
20533
20559
|
"use strict";
|
|
20534
|
-
init_Atoms();
|
|
20535
20560
|
CheckStep = {
|
|
20536
|
-
extend: Flex,
|
|
20561
|
+
extend: "Flex",
|
|
20537
20562
|
props: {
|
|
20538
20563
|
boxSize: "fit-content",
|
|
20539
20564
|
align: "center flex-start",
|
|
@@ -20559,7 +20584,7 @@ var init_CheckSteps = __esm({
|
|
|
20559
20584
|
}
|
|
20560
20585
|
};
|
|
20561
20586
|
CheckSteps = {
|
|
20562
|
-
extend: Flex,
|
|
20587
|
+
extend: "Flex",
|
|
20563
20588
|
props: {
|
|
20564
20589
|
boxSize: "fit-content fit-content",
|
|
20565
20590
|
align: "center flex-start",
|
|
@@ -20600,7 +20625,6 @@ var RadioStep, RadioSteps;
|
|
|
20600
20625
|
var init_RadioSteps = __esm({
|
|
20601
20626
|
"../uikit/Steps/RadioSteps.js"() {
|
|
20602
20627
|
"use strict";
|
|
20603
|
-
init_Atoms();
|
|
20604
20628
|
init_CheckSteps();
|
|
20605
20629
|
RadioStep = {
|
|
20606
20630
|
extend: CheckStep,
|
|
@@ -20619,7 +20643,7 @@ var init_RadioSteps = __esm({
|
|
|
20619
20643
|
ProgressLine: {}
|
|
20620
20644
|
};
|
|
20621
20645
|
RadioSteps = {
|
|
20622
|
-
extend: Flex,
|
|
20646
|
+
extend: "Flex",
|
|
20623
20647
|
props: {
|
|
20624
20648
|
boxSize: "fit-content fit-content",
|
|
20625
20649
|
align: "center flex-start",
|
|
@@ -20660,10 +20684,9 @@ var LineSteps, LineStepsWithHgroup;
|
|
|
20660
20684
|
var init_LineSteps = __esm({
|
|
20661
20685
|
"../uikit/Steps/LineSteps.js"() {
|
|
20662
20686
|
"use strict";
|
|
20663
|
-
init_Atoms();
|
|
20664
20687
|
init_Progress();
|
|
20665
20688
|
LineSteps = {
|
|
20666
|
-
extend: Flex,
|
|
20689
|
+
extend: "Flex",
|
|
20667
20690
|
props: {
|
|
20668
20691
|
boxSize: "fit-content",
|
|
20669
20692
|
gap: "Y1"
|
|
@@ -20684,7 +20707,7 @@ var init_LineSteps = __esm({
|
|
|
20684
20707
|
]
|
|
20685
20708
|
};
|
|
20686
20709
|
LineStepsWithHgroup = {
|
|
20687
|
-
extend: Flex,
|
|
20710
|
+
extend: "Flex",
|
|
20688
20711
|
props: {
|
|
20689
20712
|
flow: "column",
|
|
20690
20713
|
padding: "A A1",
|
|
@@ -20730,9 +20753,8 @@ var ParagraphButton, ParagraphButtonWithCheckbox;
|
|
|
20730
20753
|
var init_ParagraphButton = __esm({
|
|
20731
20754
|
"../uikit/ParagraphButton/index.js"() {
|
|
20732
20755
|
"use strict";
|
|
20733
|
-
init_Atoms();
|
|
20734
20756
|
ParagraphButton = {
|
|
20735
|
-
extend: Flex,
|
|
20757
|
+
extend: "Flex",
|
|
20736
20758
|
props: {
|
|
20737
20759
|
alignItems: "center",
|
|
20738
20760
|
gap: "Y2"
|
|
@@ -20754,7 +20776,7 @@ var init_ParagraphButton = __esm({
|
|
|
20754
20776
|
}
|
|
20755
20777
|
};
|
|
20756
20778
|
ParagraphButtonWithCheckbox = {
|
|
20757
|
-
extend: Flex,
|
|
20779
|
+
extend: "Flex",
|
|
20758
20780
|
tag: "label",
|
|
20759
20781
|
props: {
|
|
20760
20782
|
gap: "1ch",
|
|
@@ -21110,14 +21132,14 @@ var init_List = __esm({
|
|
|
21110
21132
|
}
|
|
21111
21133
|
};
|
|
21112
21134
|
DotList = {
|
|
21113
|
-
extend: Flex,
|
|
21135
|
+
extend: "Flex",
|
|
21114
21136
|
props: {
|
|
21115
21137
|
flow: "column",
|
|
21116
21138
|
gap: "Z2"
|
|
21117
21139
|
},
|
|
21118
21140
|
childExtend: {
|
|
21119
21141
|
tag: "caption",
|
|
21120
|
-
extend: Flex,
|
|
21142
|
+
extend: "Flex",
|
|
21121
21143
|
props: {
|
|
21122
21144
|
align: "center flex-start",
|
|
21123
21145
|
lineHeight: "1em",
|
|
@@ -21145,7 +21167,7 @@ var init_ListWithTitle = __esm({
|
|
|
21145
21167
|
init_Atoms();
|
|
21146
21168
|
init_List();
|
|
21147
21169
|
ListWithTitle = {
|
|
21148
|
-
extend: Flex,
|
|
21170
|
+
extend: "Flex",
|
|
21149
21171
|
props: {
|
|
21150
21172
|
flow: "column",
|
|
21151
21173
|
overflow: "hidden",
|
|
@@ -21200,7 +21222,7 @@ var init_GroupList = __esm({
|
|
|
21200
21222
|
init_Atoms();
|
|
21201
21223
|
init_ListWithTitle();
|
|
21202
21224
|
GroupList = {
|
|
21203
|
-
extend: Flex,
|
|
21225
|
+
extend: "Flex",
|
|
21204
21226
|
props: {
|
|
21205
21227
|
flow: "column",
|
|
21206
21228
|
overflow: "hidden",
|
|
@@ -21210,7 +21232,7 @@ var init_GroupList = __esm({
|
|
|
21210
21232
|
maxWidth: "G"
|
|
21211
21233
|
},
|
|
21212
21234
|
Header: {
|
|
21213
|
-
extend: Flex,
|
|
21235
|
+
extend: "Flex",
|
|
21214
21236
|
props: {
|
|
21215
21237
|
text: "Header",
|
|
21216
21238
|
padding: "Z2 A",
|
|
@@ -21239,7 +21261,7 @@ var init_GroupList = __esm({
|
|
|
21239
21261
|
}
|
|
21240
21262
|
},
|
|
21241
21263
|
Flex: {
|
|
21242
|
-
extend: Flex,
|
|
21264
|
+
extend: "Flex",
|
|
21243
21265
|
props: {
|
|
21244
21266
|
flow: "column",
|
|
21245
21267
|
maxHeight: "G2",
|
|
@@ -21358,7 +21380,7 @@ var init_GroupListWithSearch = __esm({
|
|
|
21358
21380
|
},
|
|
21359
21381
|
Header: {},
|
|
21360
21382
|
SearchContainer: {
|
|
21361
|
-
extend: Flex,
|
|
21383
|
+
extend: "Flex",
|
|
21362
21384
|
props: {
|
|
21363
21385
|
padding: "0 Z1 Y2 Z1",
|
|
21364
21386
|
background: "transparent"
|
|
@@ -21463,7 +21485,6 @@ var props2, TimePickerItem;
|
|
|
21463
21485
|
var init_TimePickerItem = __esm({
|
|
21464
21486
|
"../uikit/TimePicker/TimePickerItem.js"() {
|
|
21465
21487
|
"use strict";
|
|
21466
|
-
init_Atoms();
|
|
21467
21488
|
props2 = {
|
|
21468
21489
|
align: "center center",
|
|
21469
21490
|
flow: "column",
|
|
@@ -21477,7 +21498,7 @@ var init_TimePickerItem = __esm({
|
|
|
21477
21498
|
};
|
|
21478
21499
|
TimePickerItem = {
|
|
21479
21500
|
tag: "label",
|
|
21480
|
-
extend: Flex,
|
|
21501
|
+
extend: "Flex",
|
|
21481
21502
|
props: props2,
|
|
21482
21503
|
Button_plus: { icon: "plus" },
|
|
21483
21504
|
NumberInput: {
|
|
@@ -21510,7 +21531,6 @@ var props3, TimeSwitcher;
|
|
|
21510
21531
|
var init_TimeSwitcher = __esm({
|
|
21511
21532
|
"../uikit/TimePicker/TimeSwitcher.js"() {
|
|
21512
21533
|
"use strict";
|
|
21513
|
-
init_Atoms();
|
|
21514
21534
|
init_Button();
|
|
21515
21535
|
props3 = {
|
|
21516
21536
|
boxSize: "C B2",
|
|
@@ -21521,7 +21541,7 @@ var init_TimeSwitcher = __esm({
|
|
|
21521
21541
|
};
|
|
21522
21542
|
TimeSwitcher = {
|
|
21523
21543
|
props: props3,
|
|
21524
|
-
extend: Flex,
|
|
21544
|
+
extend: "Flex",
|
|
21525
21545
|
childExtend: {
|
|
21526
21546
|
extend: Button,
|
|
21527
21547
|
props: ({ state, key }) => ({
|
|
@@ -21707,7 +21727,6 @@ var CommonForm;
|
|
|
21707
21727
|
var init_CommonForm = __esm({
|
|
21708
21728
|
"../uikit/Form/CommonForm.js"() {
|
|
21709
21729
|
"use strict";
|
|
21710
|
-
init_Atoms();
|
|
21711
21730
|
init_Modal2();
|
|
21712
21731
|
init_Field2();
|
|
21713
21732
|
CommonForm = {
|
|
@@ -21728,7 +21747,7 @@ var init_CommonForm = __esm({
|
|
|
21728
21747
|
}
|
|
21729
21748
|
},
|
|
21730
21749
|
Form: {
|
|
21731
|
-
extend: Flex,
|
|
21750
|
+
extend: "Flex",
|
|
21732
21751
|
props: {
|
|
21733
21752
|
flow: "column",
|
|
21734
21753
|
"> div ~ button": { padding: "Z2+V1 -" },
|
|
@@ -21736,7 +21755,7 @@ var init_CommonForm = __esm({
|
|
|
21736
21755
|
"> div ~ div:last-child > button:first-child": { padding: "Z2+V Z" }
|
|
21737
21756
|
},
|
|
21738
21757
|
Fields: {
|
|
21739
|
-
extend: Grid,
|
|
21758
|
+
extend: "Grid",
|
|
21740
21759
|
props: {
|
|
21741
21760
|
columnGap: "A",
|
|
21742
21761
|
rowGap: "A1"
|
|
@@ -21806,7 +21825,7 @@ var init_VerificationCode = __esm({
|
|
|
21806
21825
|
}
|
|
21807
21826
|
}
|
|
21808
21827
|
// Form: {
|
|
21809
|
-
// extend: Flex,
|
|
21828
|
+
// extend: 'Flex',
|
|
21810
21829
|
// props: { flow: 'column' },
|
|
21811
21830
|
// NumberFields: {
|
|
21812
21831
|
// justifyContent: 'space-between',
|
|
@@ -21851,7 +21870,7 @@ var init_VerificationCode = __esm({
|
|
|
21851
21870
|
// gap: 'A2'
|
|
21852
21871
|
// },
|
|
21853
21872
|
// Fields: {
|
|
21854
|
-
// extend: Flex,
|
|
21873
|
+
// extend: 'Flex',
|
|
21855
21874
|
// props: {
|
|
21856
21875
|
// justifyContent: 'space-between',
|
|
21857
21876
|
// flex: '1'
|
|
@@ -22090,8 +22109,6 @@ var LogIn;
|
|
|
22090
22109
|
var init_LogIn = __esm({
|
|
22091
22110
|
"../uikit/Form/LogIn.js"() {
|
|
22092
22111
|
"use strict";
|
|
22093
|
-
init_Atoms();
|
|
22094
|
-
init_Button();
|
|
22095
22112
|
init_SocialLink();
|
|
22096
22113
|
init_CommonForm();
|
|
22097
22114
|
LogIn = {
|
|
@@ -22136,14 +22153,14 @@ var init_LogIn = __esm({
|
|
|
22136
22153
|
}
|
|
22137
22154
|
},
|
|
22138
22155
|
Submit: {
|
|
22139
|
-
extend:
|
|
22156
|
+
extend: "",
|
|
22140
22157
|
props: { margin: "A - - -" },
|
|
22141
22158
|
text: "Sign in"
|
|
22142
22159
|
}
|
|
22143
22160
|
},
|
|
22144
22161
|
DoubleHr: {},
|
|
22145
22162
|
ModalFooter: {
|
|
22146
|
-
extend: Flex,
|
|
22163
|
+
extend: "Flex",
|
|
22147
22164
|
props: {
|
|
22148
22165
|
flow: "column",
|
|
22149
22166
|
gap: "Z2"
|
|
@@ -22179,7 +22196,6 @@ var UploadImage, UploadIcon;
|
|
|
22179
22196
|
var init_UploadImage = __esm({
|
|
22180
22197
|
"../uikit/Upload/UploadImage.js"() {
|
|
22181
22198
|
"use strict";
|
|
22182
|
-
init_Atoms();
|
|
22183
22199
|
UploadImage = {
|
|
22184
22200
|
props: {
|
|
22185
22201
|
padding: "A+V",
|
|
@@ -22192,7 +22208,7 @@ var init_UploadImage = __esm({
|
|
|
22192
22208
|
}
|
|
22193
22209
|
};
|
|
22194
22210
|
UploadIcon = {
|
|
22195
|
-
extend: [Focusable, Flex],
|
|
22211
|
+
extend: ["Focusable", "Flex"],
|
|
22196
22212
|
tag: "label",
|
|
22197
22213
|
props: {
|
|
22198
22214
|
position: "relative",
|
|
@@ -22282,7 +22298,7 @@ var init_UploadLabel = __esm({
|
|
|
22282
22298
|
"use strict";
|
|
22283
22299
|
init_Atoms();
|
|
22284
22300
|
UploadLabel = {
|
|
22285
|
-
extend: Flex,
|
|
22301
|
+
extend: "Flex",
|
|
22286
22302
|
props: {
|
|
22287
22303
|
flow: "column",
|
|
22288
22304
|
align: "center flex-start",
|
|
@@ -22356,7 +22372,7 @@ var init_UploadModal = __esm({
|
|
|
22356
22372
|
init_UploadButton();
|
|
22357
22373
|
init_Modal2();
|
|
22358
22374
|
UploadFooter = {
|
|
22359
|
-
extend: Flex,
|
|
22375
|
+
extend: "Flex",
|
|
22360
22376
|
props: {
|
|
22361
22377
|
gap: "E",
|
|
22362
22378
|
align: "center space-between",
|
|
@@ -22692,9 +22708,8 @@ var User;
|
|
|
22692
22708
|
var init_User = __esm({
|
|
22693
22709
|
"../uikit/User/User.js"() {
|
|
22694
22710
|
"use strict";
|
|
22695
|
-
init_Atoms();
|
|
22696
22711
|
User = {
|
|
22697
|
-
extend: Flex,
|
|
22712
|
+
extend: "Flex",
|
|
22698
22713
|
props: {
|
|
22699
22714
|
boxSize: "fit-content",
|
|
22700
22715
|
theme: "dialog",
|
|
@@ -22733,7 +22748,6 @@ var ChatUser;
|
|
|
22733
22748
|
var init_ChatUser = __esm({
|
|
22734
22749
|
"../uikit/User/ChatUser.js"() {
|
|
22735
22750
|
"use strict";
|
|
22736
|
-
init_Atoms();
|
|
22737
22751
|
init_User2();
|
|
22738
22752
|
init_UnitValue();
|
|
22739
22753
|
ChatUser = {
|
|
@@ -22759,7 +22773,7 @@ var init_ChatUser = __esm({
|
|
|
22759
22773
|
Paragraph: {
|
|
22760
22774
|
props: { gap: "C1" },
|
|
22761
22775
|
p: {
|
|
22762
|
-
extend: Flex,
|
|
22776
|
+
extend: "Flex",
|
|
22763
22777
|
props: {
|
|
22764
22778
|
text: "Hey team, I\u2019ve finished the requirements document",
|
|
22765
22779
|
maxWidth: "F1",
|
|
@@ -22779,9 +22793,8 @@ var UserButtonSet, UserButtonSetCircle;
|
|
|
22779
22793
|
var init_UserButtonSet = __esm({
|
|
22780
22794
|
"../uikit/User/UserButtonSet.js"() {
|
|
22781
22795
|
"use strict";
|
|
22782
|
-
init_Atoms();
|
|
22783
22796
|
UserButtonSet = {
|
|
22784
|
-
extend: Flex,
|
|
22797
|
+
extend: "Flex",
|
|
22785
22798
|
props: {
|
|
22786
22799
|
boxSize: "fit-content",
|
|
22787
22800
|
theme: "dialog",
|
|
@@ -22895,10 +22908,9 @@ var UserWithButton;
|
|
|
22895
22908
|
var init_UserWithButton = __esm({
|
|
22896
22909
|
"../uikit/User/UserWithButton.js"() {
|
|
22897
22910
|
"use strict";
|
|
22898
|
-
init_Atoms();
|
|
22899
22911
|
init_User();
|
|
22900
22912
|
UserWithButton = {
|
|
22901
|
-
extend: Flex,
|
|
22913
|
+
extend: "Flex",
|
|
22902
22914
|
props: {
|
|
22903
22915
|
boxSize: "fit-content",
|
|
22904
22916
|
theme: "dialog",
|
|
@@ -23077,7 +23089,7 @@ var init_Card = __esm({
|
|
|
23077
23089
|
"use strict";
|
|
23078
23090
|
init_Atoms();
|
|
23079
23091
|
Card = {
|
|
23080
|
-
extend: Flex,
|
|
23092
|
+
extend: "Flex",
|
|
23081
23093
|
props: {
|
|
23082
23094
|
boxSize: "fit-content",
|
|
23083
23095
|
padding: "Z2 A",
|
|
@@ -23270,10 +23282,9 @@ var CurrencyConvert;
|
|
|
23270
23282
|
var init_CurrencyConvertCard = __esm({
|
|
23271
23283
|
"../uikit/Card/CurrencyConvertCard.js"() {
|
|
23272
23284
|
"use strict";
|
|
23273
|
-
init_Atoms();
|
|
23274
23285
|
init_ConvertCard();
|
|
23275
23286
|
CurrencyConvert = {
|
|
23276
|
-
extend: Flex,
|
|
23287
|
+
extend: "Flex",
|
|
23277
23288
|
props: {
|
|
23278
23289
|
boxSize: "fit-content",
|
|
23279
23290
|
gap: "Z",
|
|
@@ -23292,7 +23303,7 @@ var init_CurrencyConvertCard = __esm({
|
|
|
23292
23303
|
}
|
|
23293
23304
|
},
|
|
23294
23305
|
Cards: {
|
|
23295
|
-
extend: Flex,
|
|
23306
|
+
extend: "Flex",
|
|
23296
23307
|
props: {
|
|
23297
23308
|
flow: "column",
|
|
23298
23309
|
gap: "A"
|
|
@@ -23587,7 +23598,7 @@ __export(src_exports4, {
|
|
|
23587
23598
|
default: () => src_default3
|
|
23588
23599
|
});
|
|
23589
23600
|
module.exports = __toCommonJS(src_exports4);
|
|
23590
|
-
var
|
|
23601
|
+
var import_utils36 = __toESM(require_cjs(), 1);
|
|
23591
23602
|
|
|
23592
23603
|
// src/utilImports.js
|
|
23593
23604
|
var utilImports_exports = {};
|
|
@@ -23620,7 +23631,7 @@ __reExport(utilImports_exports, __toESM(require_cjs5(), 1));
|
|
|
23620
23631
|
|
|
23621
23632
|
// src/router.js
|
|
23622
23633
|
var import_router6 = __toESM(require_cjs5(), 1);
|
|
23623
|
-
var
|
|
23634
|
+
var import_utils30 = __toESM(require_cjs(), 1);
|
|
23624
23635
|
init_uikit();
|
|
23625
23636
|
var DEFAULT_ROUTING_OPTIONS2 = {
|
|
23626
23637
|
initRouter: true,
|
|
@@ -23633,16 +23644,16 @@ var initRouter2 = (element, options) => {
|
|
|
23633
23644
|
else if (options.router === true)
|
|
23634
23645
|
options.router = DEFAULT_ROUTING_OPTIONS2;
|
|
23635
23646
|
else
|
|
23636
|
-
(0,
|
|
23647
|
+
(0, import_utils30.merge)(options.router || {}, DEFAULT_ROUTING_OPTIONS2);
|
|
23637
23648
|
const routerOptions = options.router;
|
|
23638
23649
|
const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router6.router;
|
|
23639
23650
|
const onRouterRenderDefault = (el, s) => {
|
|
23640
|
-
const { pathname, hash: hash2 } =
|
|
23651
|
+
const { pathname, hash: hash2 } = import_utils30.window.location;
|
|
23641
23652
|
const url2 = pathname + hash2;
|
|
23642
23653
|
if (el.routes)
|
|
23643
23654
|
router2(url2, el, {}, { initialRender: true });
|
|
23644
23655
|
};
|
|
23645
|
-
const hasRenderRouter = element.on && !(0,
|
|
23656
|
+
const hasRenderRouter = element.on && !(0, import_utils30.isUndefined)(element.on.renderRouter);
|
|
23646
23657
|
if (routerOptions && routerOptions.initRouter && !hasRenderRouter) {
|
|
23647
23658
|
if (element.on) {
|
|
23648
23659
|
element.on.renderRouter = onRouterRenderDefault;
|
|
@@ -23664,20 +23675,20 @@ var popStateRouter2 = (element, options) => {
|
|
|
23664
23675
|
if (!routerOptions.popState)
|
|
23665
23676
|
return;
|
|
23666
23677
|
const router2 = options.snippets && options.snippets.router ? options.snippets.router : import_router6.router;
|
|
23667
|
-
|
|
23668
|
-
const { pathname, hash: hash2 } =
|
|
23678
|
+
import_utils30.window.onpopstate = (e) => {
|
|
23679
|
+
const { pathname, hash: hash2 } = import_utils30.window.location;
|
|
23669
23680
|
const url2 = pathname + hash2;
|
|
23670
23681
|
router2(url2, element, {}, { pushState: false, scrollToTop: false, level: 0 });
|
|
23671
23682
|
};
|
|
23672
23683
|
};
|
|
23673
23684
|
var injectRouterInLinkComponent2 = (routerOptions) => {
|
|
23674
23685
|
if (routerOptions && routerOptions.injectRouterInLinkComponent) {
|
|
23675
|
-
return (0,
|
|
23686
|
+
return (0, import_utils30.deepMerge)(Link, RouterLink);
|
|
23676
23687
|
}
|
|
23677
23688
|
};
|
|
23678
23689
|
|
|
23679
23690
|
// src/ferchOnCreate.js
|
|
23680
|
-
var
|
|
23691
|
+
var import_utils31 = __toESM(require_cjs(), 1);
|
|
23681
23692
|
var import_fetch2 = __toESM(require_cjs7(), 1);
|
|
23682
23693
|
var fetchSync2 = async (key, options) => {
|
|
23683
23694
|
if (key && options.editor) {
|
|
@@ -23694,10 +23705,10 @@ var fetchAsync2 = (app, key, options, callback) => {
|
|
|
23694
23705
|
try {
|
|
23695
23706
|
if (options.editor.async) {
|
|
23696
23707
|
(0, import_fetch2.fetchProjectAsync)(key, options, callback || ((data) => {
|
|
23697
|
-
if ((0,
|
|
23708
|
+
if ((0, import_utils31.isObject)(data.designsystem)) {
|
|
23698
23709
|
options.utils.init(data.designsystem);
|
|
23699
23710
|
}
|
|
23700
|
-
if ((0,
|
|
23711
|
+
if ((0, import_utils31.isObject)(data.state)) {
|
|
23701
23712
|
app.state.set(data.state);
|
|
23702
23713
|
}
|
|
23703
23714
|
}));
|
|
@@ -23710,15 +23721,15 @@ var fetchAsync2 = (app, key, options, callback) => {
|
|
|
23710
23721
|
|
|
23711
23722
|
// src/syncExtend.js
|
|
23712
23723
|
init_byld_socket();
|
|
23713
|
-
var
|
|
23724
|
+
var import_utils32 = __toESM(require_cjs(), 1);
|
|
23714
23725
|
var applySyncDebug2 = (extend, options) => {
|
|
23715
23726
|
const { editor } = options;
|
|
23716
23727
|
if (!editor)
|
|
23717
23728
|
return extend;
|
|
23718
|
-
const inspect = (0,
|
|
23729
|
+
const inspect = (0, import_utils32.isUndefined)(editor.inspect) ? (0, import_utils32.isDevelopment)() : editor.inspect;
|
|
23719
23730
|
if (inspect)
|
|
23720
23731
|
extend.push(DevFocus);
|
|
23721
|
-
const liveSync = (0,
|
|
23732
|
+
const liveSync = (0, import_utils32.isUndefined)(editor.liveSync) ? (0, import_utils32.isDevelopment)() : editor.liveSync;
|
|
23722
23733
|
if (liveSync)
|
|
23723
23734
|
extend.push(Sync);
|
|
23724
23735
|
return extend;
|
|
@@ -23727,9 +23738,9 @@ var applyInspectListener2 = (root, options) => {
|
|
|
23727
23738
|
const { editor } = options;
|
|
23728
23739
|
if (!editor)
|
|
23729
23740
|
return;
|
|
23730
|
-
const inspect = (0,
|
|
23741
|
+
const inspect = (0, import_utils32.isUndefined)(editor.inspect) ? (0, import_utils32.isDevelopment)() : editor.inspect;
|
|
23731
23742
|
if (inspect)
|
|
23732
|
-
inspectOnKey(root);
|
|
23743
|
+
inspectOnKey(root, options);
|
|
23733
23744
|
};
|
|
23734
23745
|
|
|
23735
23746
|
// src/define.js
|
|
@@ -23784,17 +23795,17 @@ var import_dynamic3 = __toESM(require_dynamic(), 1);
|
|
|
23784
23795
|
|
|
23785
23796
|
// src/createDomql.js
|
|
23786
23797
|
var import_domql2 = __toESM(require_cjs12(), 1);
|
|
23787
|
-
var
|
|
23798
|
+
var import_utils35 = __toESM(require_cjs(), 1);
|
|
23788
23799
|
init_uikit();
|
|
23789
23800
|
|
|
23790
23801
|
// src/prepare.js
|
|
23791
|
-
var
|
|
23802
|
+
var import_utils34 = __toESM(require_cjs(), 1);
|
|
23792
23803
|
|
|
23793
23804
|
// src/initEmotion.js
|
|
23794
23805
|
init_emotion2();
|
|
23795
23806
|
init_emotion();
|
|
23796
23807
|
init_init();
|
|
23797
|
-
var
|
|
23808
|
+
var import_utils33 = __toESM(require_cjs(), 1);
|
|
23798
23809
|
init_src2();
|
|
23799
23810
|
var initEmotion2 = (key, options = {}) => {
|
|
23800
23811
|
const doc = options.parent || options.document || document;
|
|
@@ -23803,8 +23814,8 @@ var initEmotion2 = (key, options = {}) => {
|
|
|
23803
23814
|
if (!initOptions.emotion)
|
|
23804
23815
|
initOptions.emotion = emotion;
|
|
23805
23816
|
const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
|
|
23806
|
-
const defaultDesignSystem = (0,
|
|
23807
|
-
const designSystem = initOptions.useDefaultConfig || options.useDefaultConfig ? (0,
|
|
23817
|
+
const defaultDesignSystem = (0, import_utils33.deepClone)(src_default);
|
|
23818
|
+
const designSystem = initOptions.useDefaultConfig || options.useDefaultConfig ? (0, import_utils33.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
|
|
23808
23819
|
const scratchSystem2 = init(designSystem, {
|
|
23809
23820
|
key,
|
|
23810
23821
|
emotion: emotion2,
|
|
@@ -23819,7 +23830,7 @@ var initEmotion2 = (key, options = {}) => {
|
|
|
23819
23830
|
// src/prepare.js
|
|
23820
23831
|
init_uikit();
|
|
23821
23832
|
var checkIfKeyIsComponent2 = (key) => {
|
|
23822
|
-
const isFirstKeyString = (0,
|
|
23833
|
+
const isFirstKeyString = (0, import_utils34.isString)(key);
|
|
23823
23834
|
if (!isFirstKeyString)
|
|
23824
23835
|
return;
|
|
23825
23836
|
const firstCharKey = key.slice(0, 1);
|
|
@@ -23844,12 +23855,13 @@ var prepareComponents2 = (options) => {
|
|
|
23844
23855
|
var prepareUtils2 = (options) => {
|
|
23845
23856
|
return { ...utilImports_exports, ...import_scratch2.scratchUtils, ...options.snippets || options.utils || {} };
|
|
23846
23857
|
};
|
|
23847
|
-
var preparePackages2 = (packages,
|
|
23848
|
-
|
|
23849
|
-
|
|
23858
|
+
var preparePackages2 = (packages, opts) => {
|
|
23859
|
+
const windowOpts = opts.window || window;
|
|
23860
|
+
if (windowOpts.packages) {
|
|
23861
|
+
windowOpts.packages = (0, import_utils34.merge)(windowOpts.packages, packages);
|
|
23850
23862
|
} else {
|
|
23851
|
-
|
|
23852
|
-
|
|
23863
|
+
windowOpts.packages = packages;
|
|
23864
|
+
windowOpts.require = (key) => windowOpts.packages[key];
|
|
23853
23865
|
}
|
|
23854
23866
|
};
|
|
23855
23867
|
var prepareDesignSystem2 = (options, key) => {
|
|
@@ -23861,8 +23873,8 @@ var prepareState2 = (options, App) => {
|
|
|
23861
23873
|
if (options.state)
|
|
23862
23874
|
utilImports_exports.deepMerge(state, options.state);
|
|
23863
23875
|
if (App && App.state)
|
|
23864
|
-
(0,
|
|
23865
|
-
return (0,
|
|
23876
|
+
(0, import_utils34.deepMerge)(state, App.state);
|
|
23877
|
+
return (0, import_utils34.deepCloneWithExtend)(state);
|
|
23866
23878
|
};
|
|
23867
23879
|
var preparePages2 = (options) => {
|
|
23868
23880
|
const pages = options.pages;
|
|
@@ -23884,15 +23896,19 @@ var prepareDocument2 = (options) => {
|
|
|
23884
23896
|
window.document = { body: {} };
|
|
23885
23897
|
document = window.document;
|
|
23886
23898
|
}
|
|
23899
|
+
if (!options.window)
|
|
23900
|
+
options.window = window;
|
|
23901
|
+
if (!options.document)
|
|
23902
|
+
options.document = document;
|
|
23887
23903
|
return options.parent || options.document || document;
|
|
23888
23904
|
};
|
|
23889
23905
|
|
|
23890
23906
|
// src/createDomql.js
|
|
23891
23907
|
var SYMBOLS_KEY3 = process.env.SYMBOLS_KEY;
|
|
23892
23908
|
var createDomqlElement2 = (App, options) => {
|
|
23893
|
-
const key = options.key || SYMBOLS_KEY3 || ((0,
|
|
23909
|
+
const key = options.key || SYMBOLS_KEY3 || ((0, import_utils35.isString)(App) ? App : "");
|
|
23894
23910
|
const [scratcDesignSystem, emotion2, registry] = prepareDesignSystem2(options, key);
|
|
23895
|
-
if ((0,
|
|
23911
|
+
if ((0, import_utils35.isString)(App))
|
|
23896
23912
|
App = {};
|
|
23897
23913
|
const doc = prepareDocument2(options);
|
|
23898
23914
|
const state = prepareState2(options, App);
|
|
@@ -23923,6 +23939,7 @@ var createDomqlElement2 = (App, options) => {
|
|
|
23923
23939
|
registry,
|
|
23924
23940
|
emotion: emotion2,
|
|
23925
23941
|
routerOptions,
|
|
23942
|
+
socket: options.socket,
|
|
23926
23943
|
editor: options.editor,
|
|
23927
23944
|
document: doc
|
|
23928
23945
|
}
|
|
@@ -23935,9 +23952,9 @@ var createDomqlElement2 = (App, options) => {
|
|
|
23935
23952
|
|
|
23936
23953
|
// src/index.js
|
|
23937
23954
|
var SYMBOLS_KEY4 = process.env.SYMBOLS_KEY;
|
|
23938
|
-
var mergeWithLocalFile3 = (options, optionsExternalFile) => (0,
|
|
23955
|
+
var mergeWithLocalFile3 = (options, optionsExternalFile) => (0, import_utils36.deepMerge)(
|
|
23939
23956
|
options,
|
|
23940
|
-
(0,
|
|
23957
|
+
(0, import_utils36.isObject)(optionsExternalFile) ? optionsExternalFile : import_dynamic3.default || {}
|
|
23941
23958
|
);
|
|
23942
23959
|
var create2 = (App, options = options_default2, optionsExternalFile) => {
|
|
23943
23960
|
const redefinedOptions = { ...options_default2, ...mergeWithLocalFile3(options, optionsExternalFile) };
|
|
@@ -23967,7 +23984,7 @@ var createSync2 = async (App, options = options_default2, optionsExternalFile) =
|
|
|
23967
23984
|
var createSkeleton2 = (App, options = options_default2, optionsExternalFile) => {
|
|
23968
23985
|
return create2(
|
|
23969
23986
|
App,
|
|
23970
|
-
(0,
|
|
23987
|
+
(0, import_utils36.deepMerge)({ domqlOptions: { onlyResolveExtends: true } }, options),
|
|
23971
23988
|
optionsExternalFile
|
|
23972
23989
|
);
|
|
23973
23990
|
};
|