cleek 1.8.12 → 2.0.0
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
CHANGED
|
@@ -11363,8 +11363,8 @@ const _sfc_main$i = {
|
|
|
11363
11363
|
}
|
|
11364
11364
|
}
|
|
11365
11365
|
};
|
|
11366
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", render$d], ["__scopeId", "data-v-
|
|
11367
|
-
const _withScopeId$2 = (n) => (pushScopeId("data-v-
|
|
11366
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", render$d], ["__scopeId", "data-v-a687842a"]]);
|
|
11367
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-69dfa524"), n = n(), popScopeId(), n);
|
|
11368
11368
|
const _hoisted_1$f = ["disabled", "checked"];
|
|
11369
11369
|
const _hoisted_2$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
|
|
11370
11370
|
const _hoisted_3$5 = {
|
|
@@ -11431,7 +11431,7 @@ const _sfc_main$h = {
|
|
|
11431
11431
|
}
|
|
11432
11432
|
}
|
|
11433
11433
|
};
|
|
11434
|
-
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$c], ["__scopeId", "data-v-
|
|
11434
|
+
var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", render$c], ["__scopeId", "data-v-69dfa524"]]);
|
|
11435
11435
|
const _hoisted_1$e = ["src"];
|
|
11436
11436
|
function render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11437
11437
|
return openBlock(), createElementBlock("div", {
|
|
@@ -11668,7 +11668,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11668
11668
|
};
|
|
11669
11669
|
}
|
|
11670
11670
|
});
|
|
11671
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
11671
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-61fababc"]]);
|
|
11672
11672
|
var ckPopup_vue_vue_type_style_index_0_lang = "";
|
|
11673
11673
|
const _hoisted_1$b = {
|
|
11674
11674
|
key: 0,
|
|
@@ -12039,8 +12039,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12039
12039
|
};
|
|
12040
12040
|
}
|
|
12041
12041
|
});
|
|
12042
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
12043
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12042
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-02fab5ba"]]);
|
|
12043
|
+
const _withScopeId = (n) => (pushScopeId("data-v-022b9f3c"), n = n(), popScopeId(), n);
|
|
12044
12044
|
const _hoisted_1$8 = ["disabled"];
|
|
12045
12045
|
const _hoisted_2$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
|
|
12046
12046
|
const _hoisted_3$2 = {
|
|
@@ -12113,7 +12113,7 @@ const _sfc_main$a = {
|
|
|
12113
12113
|
}
|
|
12114
12114
|
}
|
|
12115
12115
|
};
|
|
12116
|
-
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$8], ["__scopeId", "data-v-
|
|
12116
|
+
var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", render$8], ["__scopeId", "data-v-022b9f3c"]]);
|
|
12117
12117
|
const _hoisted_1$7 = { class: "ck-switch-options__container-exterior" };
|
|
12118
12118
|
const _hoisted_2$2 = ["onClick"];
|
|
12119
12119
|
function render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -12191,7 +12191,7 @@ const _sfc_main$9 = {
|
|
|
12191
12191
|
}
|
|
12192
12192
|
}
|
|
12193
12193
|
};
|
|
12194
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$7], ["__scopeId", "data-v-
|
|
12194
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", render$7], ["__scopeId", "data-v-f0c51430"]]);
|
|
12195
12195
|
const _hoisted_1$6 = { class: "ck-tr" };
|
|
12196
12196
|
function render$6(_ctx, _cache) {
|
|
12197
12197
|
return openBlock(), createElementBlock("tr", _hoisted_1$6, [
|
|
@@ -12329,7 +12329,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
12329
12329
|
};
|
|
12330
12330
|
}
|
|
12331
12331
|
});
|
|
12332
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
12332
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-5c48aabc"]]);
|
|
12333
12333
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12334
12334
|
const _hoisted_1$3 = { class: "ck-table__pagination" };
|
|
12335
12335
|
const _hoisted_2$1 = ["onClick"];
|
|
@@ -12457,7 +12457,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
|
|
|
12457
12457
|
};
|
|
12458
12458
|
}
|
|
12459
12459
|
}));
|
|
12460
|
-
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
12460
|
+
var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7ad6042e"]]);
|
|
12461
12461
|
var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
12462
12462
|
const _hoisted_1$2 = { class: "ck-table" };
|
|
12463
12463
|
const _hoisted_2 = {
|
|
@@ -12653,7 +12653,7 @@ const _sfc_main$1 = {
|
|
|
12653
12653
|
}
|
|
12654
12654
|
}
|
|
12655
12655
|
};
|
|
12656
|
-
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", render$2], ["__scopeId", "data-v-
|
|
12656
|
+
var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", render$2], ["__scopeId", "data-v-ec889100"]]);
|
|
12657
12657
|
var top = "top";
|
|
12658
12658
|
var bottom = "bottom";
|
|
12659
12659
|
var right = "right";
|
|
@@ -15274,8 +15274,30 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
15274
15274
|
lockScroll,
|
|
15275
15275
|
unlockScroll
|
|
15276
15276
|
});
|
|
15277
|
+
function setDefaultColors(options) {
|
|
15278
|
+
var r = document.querySelector(":root");
|
|
15279
|
+
const colorList = [
|
|
15280
|
+
"primary",
|
|
15281
|
+
"secondary",
|
|
15282
|
+
"primary",
|
|
15283
|
+
"secondary",
|
|
15284
|
+
"success",
|
|
15285
|
+
"warning",
|
|
15286
|
+
"danger",
|
|
15287
|
+
"dark",
|
|
15288
|
+
"light"
|
|
15289
|
+
];
|
|
15290
|
+
if (options.colors) {
|
|
15291
|
+
colorList.forEach((colorName) => {
|
|
15292
|
+
const colorValue = options.colors[colorName];
|
|
15293
|
+
if (colorValue)
|
|
15294
|
+
r.style.setProperty(`--${colorName}`, colorValue);
|
|
15295
|
+
});
|
|
15296
|
+
}
|
|
15297
|
+
}
|
|
15277
15298
|
const install = function installCleek(app, options) {
|
|
15278
15299
|
console.log("arranco paquete", options);
|
|
15300
|
+
setDefaultColors(options);
|
|
15279
15301
|
Object.entries(components).forEach(([componentName, component]) => {
|
|
15280
15302
|
app.component(componentName, component);
|
|
15281
15303
|
});
|