@symbo.ls/create 2.11.450 → 2.11.451
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 +43 -39
- package/package.json +4 -4
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -604,7 +604,7 @@ var require_object = __commonJS({
|
|
|
604
604
|
diff: () => diff,
|
|
605
605
|
diffArrays: () => diffArrays,
|
|
606
606
|
diffObjects: () => diffObjects,
|
|
607
|
-
exec: () =>
|
|
607
|
+
exec: () => exec7,
|
|
608
608
|
flattenRecursive: () => flattenRecursive,
|
|
609
609
|
hasOwnProperty: () => hasOwnProperty,
|
|
610
610
|
isCyclic: () => isCyclic,
|
|
@@ -631,7 +631,7 @@ var require_object = __commonJS({
|
|
|
631
631
|
var import_string = require_string();
|
|
632
632
|
var import_node = require_node();
|
|
633
633
|
var ENV3 = "development";
|
|
634
|
-
var
|
|
634
|
+
var exec7 = (param, element, state, context) => {
|
|
635
635
|
if ((0, import_types.isFunction)(param)) {
|
|
636
636
|
return param.call(
|
|
637
637
|
element,
|
|
@@ -644,7 +644,7 @@ var require_object = __commonJS({
|
|
|
644
644
|
};
|
|
645
645
|
var map = (obj, extention, element) => {
|
|
646
646
|
for (const e in extention) {
|
|
647
|
-
obj[e] =
|
|
647
|
+
obj[e] = exec7(extention[e], element);
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
650
|
var merge6 = (element, obj, excludeFrom = []) => {
|
|
@@ -2477,7 +2477,7 @@ var require_cjs2 = __commonJS({
|
|
|
2477
2477
|
diff: () => diff,
|
|
2478
2478
|
diffArrays: () => diffArrays,
|
|
2479
2479
|
diffObjects: () => diffObjects,
|
|
2480
|
-
exec: () =>
|
|
2480
|
+
exec: () => exec7,
|
|
2481
2481
|
flattenRecursive: () => flattenRecursive,
|
|
2482
2482
|
hasOwnProperty: () => hasOwnProperty,
|
|
2483
2483
|
isCyclic: () => isCyclic,
|
|
@@ -2504,7 +2504,7 @@ var require_cjs2 = __commonJS({
|
|
|
2504
2504
|
var import_string = require_string3();
|
|
2505
2505
|
var import_node = require_node4();
|
|
2506
2506
|
var ENV22 = "development";
|
|
2507
|
-
var
|
|
2507
|
+
var exec7 = (param, element, state, context) => {
|
|
2508
2508
|
if ((0, import_types.isFunction)(param)) {
|
|
2509
2509
|
return param.call(
|
|
2510
2510
|
element,
|
|
@@ -2517,7 +2517,7 @@ var require_cjs2 = __commonJS({
|
|
|
2517
2517
|
};
|
|
2518
2518
|
var map = (obj, extention, element) => {
|
|
2519
2519
|
for (const e in extention) {
|
|
2520
|
-
obj[e] =
|
|
2520
|
+
obj[e] = exec7(extention[e], element);
|
|
2521
2521
|
}
|
|
2522
2522
|
};
|
|
2523
2523
|
var merge52 = (element, obj, excludeFrom = []) => {
|
|
@@ -4302,7 +4302,7 @@ var require_cjs2 = __commonJS({
|
|
|
4302
4302
|
diff: () => diff,
|
|
4303
4303
|
diffArrays: () => diffArrays,
|
|
4304
4304
|
diffObjects: () => diffObjects,
|
|
4305
|
-
exec: () =>
|
|
4305
|
+
exec: () => exec7,
|
|
4306
4306
|
flattenRecursive: () => flattenRecursive,
|
|
4307
4307
|
hasOwnProperty: () => hasOwnProperty,
|
|
4308
4308
|
isEmpty: () => isEmpty,
|
|
@@ -4328,7 +4328,7 @@ var require_cjs2 = __commonJS({
|
|
|
4328
4328
|
var import_string = require_string22();
|
|
4329
4329
|
var import_node = require_node22();
|
|
4330
4330
|
var ENV22 = "development";
|
|
4331
|
-
var
|
|
4331
|
+
var exec7 = (param, element, state, context) => {
|
|
4332
4332
|
if ((0, import_types.isFunction)(param)) {
|
|
4333
4333
|
return param.call(
|
|
4334
4334
|
element,
|
|
@@ -4341,7 +4341,7 @@ var require_cjs2 = __commonJS({
|
|
|
4341
4341
|
};
|
|
4342
4342
|
var map = (obj, extention, element) => {
|
|
4343
4343
|
for (const e in extention) {
|
|
4344
|
-
obj[e] =
|
|
4344
|
+
obj[e] = exec7(extention[e], element);
|
|
4345
4345
|
}
|
|
4346
4346
|
};
|
|
4347
4347
|
var merge52 = (element, obj, excludeFrom = []) => {
|
|
@@ -8317,7 +8317,7 @@ var require_cjs3 = __commonJS({
|
|
|
8317
8317
|
diff: () => diff,
|
|
8318
8318
|
diffArrays: () => diffArrays,
|
|
8319
8319
|
diffObjects: () => diffObjects,
|
|
8320
|
-
exec: () =>
|
|
8320
|
+
exec: () => exec7,
|
|
8321
8321
|
flattenRecursive: () => flattenRecursive,
|
|
8322
8322
|
hasOwnProperty: () => hasOwnProperty,
|
|
8323
8323
|
isEmpty: () => isEmpty,
|
|
@@ -8343,7 +8343,7 @@ var require_cjs3 = __commonJS({
|
|
|
8343
8343
|
var import_string = require_string3();
|
|
8344
8344
|
var import_node = require_node4();
|
|
8345
8345
|
var ENV3 = "development";
|
|
8346
|
-
var
|
|
8346
|
+
var exec7 = (param, element, state, context) => {
|
|
8347
8347
|
if ((0, import_types.isFunction)(param)) {
|
|
8348
8348
|
return param.call(
|
|
8349
8349
|
element,
|
|
@@ -8356,7 +8356,7 @@ var require_cjs3 = __commonJS({
|
|
|
8356
8356
|
};
|
|
8357
8357
|
var map = (obj, extention, element) => {
|
|
8358
8358
|
for (const e in extention) {
|
|
8359
|
-
obj[e] =
|
|
8359
|
+
obj[e] = exec7(extention[e], element);
|
|
8360
8360
|
}
|
|
8361
8361
|
};
|
|
8362
8362
|
var merge6 = (element, obj, excludeFrom = []) => {
|
|
@@ -12992,8 +12992,8 @@ var require_methods2 = __commonJS({
|
|
|
12992
12992
|
if (v === param)
|
|
12993
12993
|
return childElem;
|
|
12994
12994
|
else if ((0, import_utils32.isFunction)(param)) {
|
|
12995
|
-
const
|
|
12996
|
-
if (childElem.state &&
|
|
12995
|
+
const exec7 = param(childElem, childElem.state, childElem.context);
|
|
12996
|
+
if (childElem.state && exec7) {
|
|
12997
12997
|
return childElem;
|
|
12998
12998
|
}
|
|
12999
12999
|
}
|
|
@@ -13014,8 +13014,8 @@ var require_methods2 = __commonJS({
|
|
|
13014
13014
|
if (v === param)
|
|
13015
13015
|
results.push(childElem);
|
|
13016
13016
|
else if ((0, import_utils32.isFunction)(param)) {
|
|
13017
|
-
const
|
|
13018
|
-
if (childElem.state &&
|
|
13017
|
+
const exec7 = param(childElem, childElem.state, childElem.context);
|
|
13018
|
+
if (childElem.state && exec7)
|
|
13019
13019
|
results.push(childElem);
|
|
13020
13020
|
}
|
|
13021
13021
|
(_a = childElem == null ? void 0 : childElem.lookdownAll) == null ? void 0 : _a.call(childElem, param, results);
|
|
@@ -14835,7 +14835,7 @@ var require_object3 = __commonJS({
|
|
|
14835
14835
|
diff: () => diff,
|
|
14836
14836
|
diffArrays: () => diffArrays,
|
|
14837
14837
|
diffObjects: () => diffObjects,
|
|
14838
|
-
exec: () =>
|
|
14838
|
+
exec: () => exec7,
|
|
14839
14839
|
flattenRecursive: () => flattenRecursive,
|
|
14840
14840
|
hasOwnProperty: () => hasOwnProperty,
|
|
14841
14841
|
isEmpty: () => isEmpty,
|
|
@@ -14858,7 +14858,7 @@ var require_object3 = __commonJS({
|
|
|
14858
14858
|
var import_types = require_types2();
|
|
14859
14859
|
var import_array = require_array2();
|
|
14860
14860
|
var import_string = require_string2();
|
|
14861
|
-
var
|
|
14861
|
+
var exec7 = (param, element, state, context) => {
|
|
14862
14862
|
if ((0, import_types.isFunction)(param)) {
|
|
14863
14863
|
return param(
|
|
14864
14864
|
element,
|
|
@@ -14870,7 +14870,7 @@ var require_object3 = __commonJS({
|
|
|
14870
14870
|
};
|
|
14871
14871
|
var map = (obj, extention, element) => {
|
|
14872
14872
|
for (const e in extention) {
|
|
14873
|
-
obj[e] =
|
|
14873
|
+
obj[e] = exec7(extention[e], element);
|
|
14874
14874
|
}
|
|
14875
14875
|
};
|
|
14876
14876
|
var merge6 = (element, obj, excludeFrom = []) => {
|
|
@@ -17719,8 +17719,8 @@ var Img = {
|
|
|
17719
17719
|
attr: {
|
|
17720
17720
|
src: (el) => {
|
|
17721
17721
|
const { props: props2, context } = el;
|
|
17722
|
-
const { exec:
|
|
17723
|
-
let src = (props2.preSrc || "") +
|
|
17722
|
+
const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
|
|
17723
|
+
let src = (props2.preSrc || "") + exec7(props2.src, el);
|
|
17724
17724
|
if (isString13(src) && src.includes("{{")) {
|
|
17725
17725
|
src = replaceLiteralsWithObjectFields3(src, el.state);
|
|
17726
17726
|
}
|
|
@@ -17805,8 +17805,8 @@ var getComputedBackgroundColor = ({ props: props2 }) => {
|
|
|
17805
17805
|
return (0, import_scratch6.getColor)(props2.shapeDirectionColor) || (0, import_scratch6.getColor)(props2.borderColor) || (0, import_scratch6.getColor)(props2.backgroundColor) || (0, import_scratch6.getColor)(props2.background);
|
|
17806
17806
|
};
|
|
17807
17807
|
var inheritTransition = ({ props: props2, deps }) => {
|
|
17808
|
-
const
|
|
17809
|
-
return
|
|
17808
|
+
const exec7 = Timing.class.transition({ props: props2, deps });
|
|
17809
|
+
return exec7 && exec7.transition;
|
|
17810
17810
|
};
|
|
17811
17811
|
var SHAPES = {
|
|
17812
17812
|
rectangle: {},
|
|
@@ -19004,20 +19004,22 @@ var Circle = {
|
|
|
19004
19004
|
|
|
19005
19005
|
// ../uikit/Icon/index.js
|
|
19006
19006
|
var import_utils15 = __toESM(require_cjs());
|
|
19007
|
-
var getIconName = (
|
|
19008
|
-
|
|
19007
|
+
var getIconName = (el, s) => {
|
|
19008
|
+
const { key, props: props2, deps } = el;
|
|
19009
|
+
let iconName = (0, import_utils15.exec)(props2.name || props2.icon || key, el);
|
|
19009
19010
|
if ((0, import_utils15.isString)(iconName) && iconName.includes("{{")) {
|
|
19010
|
-
iconName = deps.replaceLiteralsWithObjectFields(iconName,
|
|
19011
|
+
iconName = deps.replaceLiteralsWithObjectFields(iconName, s);
|
|
19011
19012
|
}
|
|
19012
19013
|
return deps.isString(iconName) ? iconName : key;
|
|
19013
19014
|
};
|
|
19014
19015
|
var Icon = {
|
|
19015
19016
|
extend: "Svg",
|
|
19016
19017
|
deps: { isString: import_utils15.isString, replaceLiteralsWithObjectFields: import_utils15.replaceLiteralsWithObjectFields },
|
|
19017
|
-
props: (
|
|
19018
|
+
props: (el, s) => {
|
|
19019
|
+
const { props: props2, parent, context, deps, state } = el;
|
|
19018
19020
|
const { ICONS, SEMANTIC_ICONS, useIconSprite, verbose } = context && context.designSystem;
|
|
19019
19021
|
const { toCamelCase } = context && context.utils;
|
|
19020
|
-
let iconName = getIconName(
|
|
19022
|
+
let iconName = getIconName(el, s);
|
|
19021
19023
|
const camelCase = toCamelCase(iconName);
|
|
19022
19024
|
const isArray5 = camelCase.split(/([a-z])([A-Z])/g);
|
|
19023
19025
|
const semanticIconRootName = isArray5[1] ? isArray5[0] : iconName.split(".")[0].split(" ")[0];
|
|
@@ -19045,11 +19047,14 @@ var Icon = {
|
|
|
19045
19047
|
};
|
|
19046
19048
|
}
|
|
19047
19049
|
let activeIconName;
|
|
19048
|
-
if (props2.
|
|
19049
|
-
activeIconName = props2[".
|
|
19050
|
+
if (props2.isActive) {
|
|
19051
|
+
activeIconName = props2[".isActive"].name || props2[".isActive"].icon;
|
|
19050
19052
|
}
|
|
19051
|
-
if (parent && parent.props && parent.props.
|
|
19052
|
-
activeIconName =
|
|
19053
|
+
if (parent && parent.props && parent.props.isActive && parent.props[".isActive"] && parent.props[".isActive"].icon) {
|
|
19054
|
+
activeIconName = (0, import_utils15.exec)(
|
|
19055
|
+
parent.props[".isActive"].icon.name || parent.props[".isActive"].icon.icon || parent.props[".isActive"].icon,
|
|
19056
|
+
el
|
|
19057
|
+
);
|
|
19053
19058
|
}
|
|
19054
19059
|
if ((0, import_utils15.isString)(activeIconName) && activeIconName.includes("{{")) {
|
|
19055
19060
|
activeIconName = deps.replaceLiteralsWithObjectFields(activeIconName, state);
|
|
@@ -19087,10 +19092,9 @@ var IconText = {
|
|
|
19087
19092
|
lineHeight: 1
|
|
19088
19093
|
},
|
|
19089
19094
|
Icon: {
|
|
19090
|
-
props: ({ parent
|
|
19095
|
+
props: ({ parent }) => ({ icon: parent.props.icon }),
|
|
19091
19096
|
if: ({ parent, props: props2 }) => {
|
|
19092
|
-
|
|
19093
|
-
return doesExist;
|
|
19097
|
+
return parent.props.icon || parent.props.Icon || props2.name || props2.icon || props2.sfSymbols || parent.props.sfSymbols;
|
|
19094
19098
|
}
|
|
19095
19099
|
},
|
|
19096
19100
|
text: ({ props: props2 }) => props2.text,
|
|
@@ -19382,8 +19386,8 @@ var Link = {
|
|
|
19382
19386
|
},
|
|
19383
19387
|
attr: {
|
|
19384
19388
|
href: (el, s, ctx) => {
|
|
19385
|
-
const { isString: isString13, exec:
|
|
19386
|
-
const href =
|
|
19389
|
+
const { isString: isString13, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = ctx.utils;
|
|
19390
|
+
const href = exec7(el.props.href, el) || exec7(exec7(el.props, el).href, el);
|
|
19387
19391
|
if (isString13(href) && href.includes("{{")) {
|
|
19388
19392
|
return replaceLiteralsWithObjectFields3(href, s);
|
|
19389
19393
|
}
|
|
@@ -19399,8 +19403,8 @@ var RouterLink = {
|
|
|
19399
19403
|
click: (event, el, s) => {
|
|
19400
19404
|
const { props: props2, context: ctx } = el;
|
|
19401
19405
|
const { href: h, scrollToTop, stopPropagation } = props2;
|
|
19402
|
-
const { exec:
|
|
19403
|
-
let href =
|
|
19406
|
+
const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
|
|
19407
|
+
let href = exec7(h, el, s);
|
|
19404
19408
|
if (isString13(href) && href.includes("{{")) {
|
|
19405
19409
|
href = replaceLiteralsWithObjectFields3(href, s);
|
|
19406
19410
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.451",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "f3a8fdc4c82ba34580bd324cd1c922f2041506e3",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@symbo.ls/fetch": "^2.11.450",
|
|
38
38
|
"@symbo.ls/init": "^2.11.450",
|
|
39
39
|
"@symbo.ls/scratch": "^2.11.450",
|
|
40
|
-
"@symbo.ls/sync": "^2.11.
|
|
41
|
-
"@symbo.ls/uikit": "^2.11.
|
|
40
|
+
"@symbo.ls/sync": "^2.11.451",
|
|
41
|
+
"@symbo.ls/uikit": "^2.11.451",
|
|
42
42
|
"@symbo.ls/utils": "^2.11.446",
|
|
43
43
|
"domql": "^2.5.0"
|
|
44
44
|
},
|