cleek 2.3.52 → 2.3.53
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/cleek.es.js +21 -20
- package/dist/cleek.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -2685,6 +2685,7 @@ var defaultCleekOptions = {
|
|
|
2685
2685
|
basePath: ""
|
|
2686
2686
|
}
|
|
2687
2687
|
};
|
|
2688
|
+
var style = "";
|
|
2688
2689
|
var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
2689
2690
|
var _export_sfc = (sfc, props) => {
|
|
2690
2691
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -3126,9 +3127,9 @@ function insertCss(css2) {
|
|
|
3126
3127
|
if (!css2 || !IS_DOM) {
|
|
3127
3128
|
return;
|
|
3128
3129
|
}
|
|
3129
|
-
var
|
|
3130
|
-
|
|
3131
|
-
|
|
3130
|
+
var style2 = DOCUMENT.createElement("style");
|
|
3131
|
+
style2.setAttribute("type", "text/css");
|
|
3132
|
+
style2.innerHTML = css2;
|
|
3132
3133
|
var headChildren = DOCUMENT.head.childNodes;
|
|
3133
3134
|
var beforeChild = null;
|
|
3134
3135
|
for (var i = headChildren.length - 1; i > -1; i--) {
|
|
@@ -3138,7 +3139,7 @@ function insertCss(css2) {
|
|
|
3138
3139
|
beforeChild = child;
|
|
3139
3140
|
}
|
|
3140
3141
|
}
|
|
3141
|
-
DOCUMENT.head.insertBefore(
|
|
3142
|
+
DOCUMENT.head.insertBefore(style2, beforeChild);
|
|
3142
3143
|
return css2;
|
|
3143
3144
|
}
|
|
3144
3145
|
var idPool = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
@@ -3409,8 +3410,8 @@ function getIconName(familyPrefix, cls) {
|
|
|
3409
3410
|
}
|
|
3410
3411
|
var build = function build2() {
|
|
3411
3412
|
var lookup = function lookup2(reducer) {
|
|
3412
|
-
return reduce(styles, function(o,
|
|
3413
|
-
o[prefix] = reduce(
|
|
3413
|
+
return reduce(styles, function(o, style2, prefix) {
|
|
3414
|
+
o[prefix] = reduce(style2, reducer, {});
|
|
3414
3415
|
return o;
|
|
3415
3416
|
}, {});
|
|
3416
3417
|
};
|
|
@@ -3518,8 +3519,8 @@ var emptyCanonicalIcon = function emptyCanonicalIcon2() {
|
|
|
3518
3519
|
};
|
|
3519
3520
|
};
|
|
3520
3521
|
function getCanonicalPrefix(styleOrPrefix) {
|
|
3521
|
-
var
|
|
3522
|
-
var prefix = STYLE_TO_PREFIX[styleOrPrefix] || STYLE_TO_PREFIX[
|
|
3522
|
+
var style2 = PREFIX_TO_STYLE[styleOrPrefix];
|
|
3523
|
+
var prefix = STYLE_TO_PREFIX[styleOrPrefix] || STYLE_TO_PREFIX[style2];
|
|
3523
3524
|
var defined = styleOrPrefix in namespace.styles ? styleOrPrefix : null;
|
|
3524
3525
|
return prefix || defined || null;
|
|
3525
3526
|
}
|
|
@@ -4243,11 +4244,11 @@ function disconnect() {
|
|
|
4243
4244
|
mo.disconnect();
|
|
4244
4245
|
}
|
|
4245
4246
|
function styleParser(node) {
|
|
4246
|
-
var
|
|
4247
|
+
var style2 = node.getAttribute("style");
|
|
4247
4248
|
var val = [];
|
|
4248
|
-
if (
|
|
4249
|
-
val =
|
|
4250
|
-
var styles2 =
|
|
4249
|
+
if (style2) {
|
|
4250
|
+
val = style2.split(";").reduce(function(acc, style3) {
|
|
4251
|
+
var styles2 = style3.split(":");
|
|
4251
4252
|
var prop = styles2[0];
|
|
4252
4253
|
var value = styles2.slice(1);
|
|
4253
4254
|
if (prop && value.length > 0) {
|
|
@@ -18712,8 +18713,8 @@ var toConsumableArray = function(arr) {
|
|
|
18712
18713
|
return Array.from(arr);
|
|
18713
18714
|
}
|
|
18714
18715
|
};
|
|
18715
|
-
function styleToObject(
|
|
18716
|
-
return
|
|
18716
|
+
function styleToObject(style2) {
|
|
18717
|
+
return style2.split(";").map(function(s) {
|
|
18717
18718
|
return s.trim();
|
|
18718
18719
|
}).filter(function(s) {
|
|
18719
18720
|
return s;
|
|
@@ -22121,13 +22122,13 @@ function isShadowRoot(node) {
|
|
|
22121
22122
|
function applyStyles(_ref2) {
|
|
22122
22123
|
var state = _ref2.state;
|
|
22123
22124
|
Object.keys(state.elements).forEach(function(name) {
|
|
22124
|
-
var
|
|
22125
|
+
var style2 = state.styles[name] || {};
|
|
22125
22126
|
var attributes = state.attributes[name] || {};
|
|
22126
22127
|
var element = state.elements[name];
|
|
22127
22128
|
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
22128
22129
|
return;
|
|
22129
22130
|
}
|
|
22130
|
-
Object.assign(element.style,
|
|
22131
|
+
Object.assign(element.style, style2);
|
|
22131
22132
|
Object.keys(attributes).forEach(function(name2) {
|
|
22132
22133
|
var value = attributes[name2];
|
|
22133
22134
|
if (value === false) {
|
|
@@ -22162,14 +22163,14 @@ function effect$2(_ref2) {
|
|
|
22162
22163
|
var element = state.elements[name];
|
|
22163
22164
|
var attributes = state.attributes[name] || {};
|
|
22164
22165
|
var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
|
|
22165
|
-
var
|
|
22166
|
-
|
|
22167
|
-
return
|
|
22166
|
+
var style2 = styleProperties.reduce(function(style3, property) {
|
|
22167
|
+
style3[property] = "";
|
|
22168
|
+
return style3;
|
|
22168
22169
|
}, {});
|
|
22169
22170
|
if (!isHTMLElement(element) || !getNodeName(element)) {
|
|
22170
22171
|
return;
|
|
22171
22172
|
}
|
|
22172
|
-
Object.assign(element.style,
|
|
22173
|
+
Object.assign(element.style, style2);
|
|
22173
22174
|
Object.keys(attributes).forEach(function(attribute) {
|
|
22174
22175
|
element.removeAttribute(attribute);
|
|
22175
22176
|
});
|