@symbo.ls/create 2.11.497 → 2.11.499
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 +28 -11
- package/dist/cjs/prepare.js +2 -1
- package/package.json +4 -4
- package/src/prepare.js +2 -1
package/dist/cjs/bundle/index.js
CHANGED
|
@@ -1736,6 +1736,22 @@ var require_component = __commonJS({
|
|
|
1736
1736
|
tag,
|
|
1737
1737
|
props: { ...element }
|
|
1738
1738
|
});
|
|
1739
|
+
if (newElem.props.data) {
|
|
1740
|
+
newElem.data = newElem.props.data;
|
|
1741
|
+
delete newElem.props.data;
|
|
1742
|
+
}
|
|
1743
|
+
if (newElem.props.state) {
|
|
1744
|
+
newElem.state = newElem.props.state;
|
|
1745
|
+
delete newElem.props.state;
|
|
1746
|
+
}
|
|
1747
|
+
if (newElem.props.attr) {
|
|
1748
|
+
newElem.attr = newElem.props.attr;
|
|
1749
|
+
delete newElem.props.attr;
|
|
1750
|
+
}
|
|
1751
|
+
if (newElem.props.if) {
|
|
1752
|
+
newElem.if = newElem.props.if;
|
|
1753
|
+
delete newElem.props.if;
|
|
1754
|
+
}
|
|
1739
1755
|
if (childExtends)
|
|
1740
1756
|
newElem.childExtend = childExtends;
|
|
1741
1757
|
return newElem;
|
|
@@ -11546,9 +11562,10 @@ var require_on = __commonJS({
|
|
|
11546
11562
|
module2.exports = __toCommonJS2(on_exports);
|
|
11547
11563
|
var import_utils25 = require_cjs();
|
|
11548
11564
|
var getOnOrPropsEvent = (param, element) => {
|
|
11549
|
-
var _a;
|
|
11565
|
+
var _a, _b;
|
|
11550
11566
|
const onEvent = (_a = element.on) == null ? void 0 : _a[param];
|
|
11551
|
-
|
|
11567
|
+
const onPropEvent = (_b = element.props) == null ? void 0 : _b["on" + param.slice(0, 1).toUpperCase() + param.slice(1)];
|
|
11568
|
+
return onEvent || onPropEvent;
|
|
11552
11569
|
};
|
|
11553
11570
|
var applyEvent = (param, element, state, context, options) => {
|
|
11554
11571
|
return param.call(element, element, state || element.state, context || element.context, options);
|
|
@@ -11806,7 +11823,8 @@ var require_cjs7 = __commonJS({
|
|
|
11806
11823
|
contentElementKey: "content",
|
|
11807
11824
|
scrollToOptions: { behavior: "smooth" }
|
|
11808
11825
|
};
|
|
11809
|
-
var router = (path,
|
|
11826
|
+
var router = (path, el, state = {}, options = {}) => {
|
|
11827
|
+
const element = el || void 0;
|
|
11810
11828
|
const win = element.context.window || import_utils25.window;
|
|
11811
11829
|
const doc = element.context.document || import_utils25.document;
|
|
11812
11830
|
const opts = { ...defaultOptions, ...element.context.routerOptions, ...options };
|
|
@@ -13565,8 +13583,8 @@ var require_updateState = __commonJS({
|
|
|
13565
13583
|
var hoistStateUpdate = (state, obj, options) => {
|
|
13566
13584
|
const element = state.__element;
|
|
13567
13585
|
const { parent, __ref: ref } = element;
|
|
13568
|
-
const stateKey = ref.__state;
|
|
13569
|
-
const stateType = ref.__stateType;
|
|
13586
|
+
const stateKey = ref == null ? void 0 : ref.__state;
|
|
13587
|
+
const stateType = ref == null ? void 0 : ref.__stateType;
|
|
13570
13588
|
if (!stateKey)
|
|
13571
13589
|
return;
|
|
13572
13590
|
const asksForInherit = (0, import_inherit.checkIfInherits)(element);
|
|
@@ -14963,9 +14981,6 @@ var init_Select = __esm({
|
|
|
14963
14981
|
cursor: "pointer",
|
|
14964
14982
|
childProps: {
|
|
14965
14983
|
tag: "option",
|
|
14966
|
-
value: "",
|
|
14967
|
-
selected: "",
|
|
14968
|
-
disabled: "",
|
|
14969
14984
|
attr: {
|
|
14970
14985
|
value: ({ props: props4 }) => props4.value,
|
|
14971
14986
|
selected: ({ props: props4 }) => props4.selected,
|
|
@@ -16692,7 +16707,6 @@ var require_component2 = __commonJS({
|
|
|
16692
16707
|
};
|
|
16693
16708
|
for (const k in el) {
|
|
16694
16709
|
const prop = el[k];
|
|
16695
|
-
console.log(k);
|
|
16696
16710
|
const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
|
|
16697
16711
|
if (isDefine) {
|
|
16698
16712
|
newElem.define[k] = prop;
|
|
@@ -17010,12 +17024,14 @@ var require_set = __commonJS({
|
|
|
17010
17024
|
return;
|
|
17011
17025
|
}
|
|
17012
17026
|
if (params) {
|
|
17013
|
-
|
|
17027
|
+
let { childExtend, childProps, props: props4 } = params;
|
|
17014
17028
|
if (!childExtend && element.childExtend)
|
|
17015
17029
|
params.childExtend = element.childExtend;
|
|
17016
17030
|
if (!childProps && element.childProps)
|
|
17017
17031
|
params.childProps = element.childProps;
|
|
17018
17032
|
if (!(props4 == null ? void 0 : props4.childProps) && ((_a = element.props) == null ? void 0 : _a.childProps)) {
|
|
17033
|
+
if (!props4)
|
|
17034
|
+
props4 = params.props = {};
|
|
17019
17035
|
props4.childProps = element.props.childProps;
|
|
17020
17036
|
}
|
|
17021
17037
|
if (lazyLoad) {
|
|
@@ -27185,6 +27201,7 @@ var initEmotion = (key, options = {}) => {
|
|
|
27185
27201
|
|
|
27186
27202
|
// src/prepare.js
|
|
27187
27203
|
init_uikit();
|
|
27204
|
+
var routerUtils = __toESM(require_cjs7(), 1);
|
|
27188
27205
|
var ENV2 = "development";
|
|
27189
27206
|
var prepareWindow = (context) => {
|
|
27190
27207
|
if (typeof window === "undefined")
|
|
@@ -27217,7 +27234,7 @@ var prepareComponents = (context) => {
|
|
|
27217
27234
|
return context.components ? { ...UIkitWithPrefix(), ...context.components } : UIkitWithPrefix();
|
|
27218
27235
|
};
|
|
27219
27236
|
var prepareUtils = (context) => {
|
|
27220
|
-
return { ...utilImports_exports, ...import_scratch2.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
27237
|
+
return { ...utilImports_exports, ...routerUtils, ...import_scratch2.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
27221
27238
|
};
|
|
27222
27239
|
var prepareMethods = (context) => {
|
|
27223
27240
|
return {
|
package/dist/cjs/prepare.js
CHANGED
|
@@ -45,6 +45,7 @@ var import_utils = require("@domql/utils");
|
|
|
45
45
|
var import_initEmotion = require("./initEmotion");
|
|
46
46
|
var uikit = __toESM(require("@symbo.ls/uikit"), 1);
|
|
47
47
|
var utils = __toESM(require("./utilImports"), 1);
|
|
48
|
+
var routerUtils = __toESM(require("@domql/router"), 1);
|
|
48
49
|
const ENV = "development";
|
|
49
50
|
const prepareWindow = (context) => {
|
|
50
51
|
if (typeof window === "undefined")
|
|
@@ -77,7 +78,7 @@ const prepareComponents = (context) => {
|
|
|
77
78
|
return context.components ? { ...UIkitWithPrefix(), ...context.components } : UIkitWithPrefix();
|
|
78
79
|
};
|
|
79
80
|
const prepareUtils = (context) => {
|
|
80
|
-
return { ...utils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
81
|
+
return { ...utils, ...routerUtils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions };
|
|
81
82
|
};
|
|
82
83
|
const prepareMethods = (context) => {
|
|
83
84
|
return {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.499",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "f4de4fba03a8a03e68a7e4d072dbbfed0e98df67",
|
|
6
6
|
"files": [
|
|
7
7
|
"src",
|
|
8
8
|
"dist"
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@symbo.ls/fetch": "^2.11.475",
|
|
38
38
|
"@symbo.ls/init": "^2.11.497",
|
|
39
39
|
"@symbo.ls/scratch": "^2.11.497",
|
|
40
|
-
"@symbo.ls/sync": "^2.11.
|
|
41
|
-
"@symbo.ls/uikit": "^2.11.
|
|
40
|
+
"@symbo.ls/sync": "^2.11.499",
|
|
41
|
+
"@symbo.ls/uikit": "^2.11.499",
|
|
42
42
|
"@symbo.ls/utils": "^2.11.497",
|
|
43
43
|
"domql": "^2.5.158"
|
|
44
44
|
},
|
package/src/prepare.js
CHANGED
|
@@ -11,6 +11,7 @@ import { initEmotion } from './initEmotion'
|
|
|
11
11
|
|
|
12
12
|
import * as uikit from '@symbo.ls/uikit'
|
|
13
13
|
import * as utils from './utilImports'
|
|
14
|
+
import * as routerUtils from '@domql/router'
|
|
14
15
|
|
|
15
16
|
const ENV = process.env.NODE_ENV
|
|
16
17
|
|
|
@@ -47,7 +48,7 @@ export const prepareComponents = context => {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export const prepareUtils = context => {
|
|
50
|
-
return { ...utils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions }
|
|
51
|
+
return { ...utils, ...routerUtils, ...utils.scratchUtils, ...context.utils, ...context.snippets, ...context.functions }
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
export const prepareMethods = (context) => {
|