cleek 2.1.21 → 2.2.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 +129 -56
- package/dist/cleek.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/cleek.es.js
CHANGED
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId,
|
|
20
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, withCtx, onMounted, nextTick as nextTick$1, onBeforeUnmount, getCurrentInstance, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
|
|
21
21
|
var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
22
22
|
var _export_sfc = (sfc, props) => {
|
|
23
23
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -11292,7 +11292,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
11292
11292
|
var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-25801d7b"]]);
|
|
11293
11293
|
var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11294
11294
|
const _hoisted_1$j = { class: "ck-notify__container" };
|
|
11295
|
-
const _hoisted_2$
|
|
11295
|
+
const _hoisted_2$8 = { class: "ck-notify__title" };
|
|
11296
11296
|
const _hoisted_3$6 = { class: "close-btn" };
|
|
11297
11297
|
const _hoisted_4$4 = { class: "ck-notify__text" };
|
|
11298
11298
|
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
@@ -11345,7 +11345,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
11345
11345
|
style: normalizeStyle({ "background-color": globalColor.value }),
|
|
11346
11346
|
onClick: _cache[0] || (_cache[0] = ($event) => closeNotification())
|
|
11347
11347
|
}, [
|
|
11348
|
-
createElementVNode("div", _hoisted_2$
|
|
11348
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
11349
11349
|
createElementVNode("div", _hoisted_3$6, [
|
|
11350
11350
|
createVNode(ckIcon, { icon: "times" })
|
|
11351
11351
|
]),
|
|
@@ -11450,16 +11450,43 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11450
11450
|
});
|
|
11451
11451
|
var functions = {
|
|
11452
11452
|
getGroupClass({ group = "", groupVertical = "", groupBreak = "" } = {}) {
|
|
11453
|
-
const _screenSize = "";
|
|
11454
|
-
if (groupBreak && groupBreak === _screenSize)
|
|
11455
|
-
return [];
|
|
11456
11453
|
const classList2 = [];
|
|
11457
11454
|
if (group)
|
|
11458
11455
|
classList2.push(`ck-component__group--${group}`);
|
|
11459
11456
|
if (groupVertical)
|
|
11460
11457
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
11458
|
+
if (groupBreak) {
|
|
11459
|
+
if (groupBreak === "s") {
|
|
11460
|
+
classList2.push(`ck-component__group-break--${groupBreak}`);
|
|
11461
|
+
}
|
|
11462
|
+
}
|
|
11461
11463
|
return classList2;
|
|
11462
11464
|
},
|
|
11465
|
+
getGroupClassContainer({ groupBreak = "" } = "") {
|
|
11466
|
+
const classList2 = [];
|
|
11467
|
+
if (groupBreak) {
|
|
11468
|
+
if (groupBreak === "s") {
|
|
11469
|
+
classList2.push(`ck-component__group-break-container--${groupBreak}`);
|
|
11470
|
+
}
|
|
11471
|
+
}
|
|
11472
|
+
return classList2;
|
|
11473
|
+
},
|
|
11474
|
+
getGroupBreakStyleContainer({ groupBreak } = {}, windowWidth) {
|
|
11475
|
+
if (windowWidth <= groupBreak) {
|
|
11476
|
+
return [
|
|
11477
|
+
{ width: "100%" }
|
|
11478
|
+
];
|
|
11479
|
+
}
|
|
11480
|
+
},
|
|
11481
|
+
getGroupBreakStyle({ groupBreak } = {}, windowWidth) {
|
|
11482
|
+
if (windowWidth <= groupBreak) {
|
|
11483
|
+
return [
|
|
11484
|
+
{ width: "100%" },
|
|
11485
|
+
{ borderRadius: "4px !important" },
|
|
11486
|
+
{ border: "1px solid #DAE1E7 !important" }
|
|
11487
|
+
];
|
|
11488
|
+
}
|
|
11489
|
+
},
|
|
11463
11490
|
isColorTemplateVariable(color) {
|
|
11464
11491
|
if (color === "primary")
|
|
11465
11492
|
return true;
|
|
@@ -11488,10 +11515,27 @@ var functions = {
|
|
|
11488
11515
|
return true;
|
|
11489
11516
|
},
|
|
11490
11517
|
getCleekOptions(getCurrentInstance2) {
|
|
11491
|
-
console.log("getCurrentInstance", getCurrentInstance2);
|
|
11492
11518
|
return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
|
|
11493
11519
|
}
|
|
11494
11520
|
};
|
|
11521
|
+
function useWindowWidth() {
|
|
11522
|
+
const windowWidth = ref(0);
|
|
11523
|
+
function handleWindowResize(event) {
|
|
11524
|
+
windowWidth.value = event.currentTarget.innerWidth;
|
|
11525
|
+
}
|
|
11526
|
+
onMounted(() => {
|
|
11527
|
+
nextTick$1(() => {
|
|
11528
|
+
window.addEventListener("resize", handleWindowResize);
|
|
11529
|
+
});
|
|
11530
|
+
windowWidth.value = window.innerWidth;
|
|
11531
|
+
});
|
|
11532
|
+
onBeforeUnmount(() => {
|
|
11533
|
+
window.removeEventListener("resize", handleWindowResize);
|
|
11534
|
+
});
|
|
11535
|
+
return {
|
|
11536
|
+
windowWidth
|
|
11537
|
+
};
|
|
11538
|
+
}
|
|
11495
11539
|
var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11496
11540
|
const _hoisted_1$g = ["title", "aria-label", "disabled"];
|
|
11497
11541
|
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
@@ -11502,18 +11546,20 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11502
11546
|
color: { type: String, default: "primary" },
|
|
11503
11547
|
align: { type: String, default: "left", validator: validators.align },
|
|
11504
11548
|
size: { type: String, default: "m", validator: validators.size },
|
|
11549
|
+
width: { type: String, default: "" },
|
|
11505
11550
|
icon: { type: [String, Array], default: void 0 },
|
|
11506
11551
|
iconPack: { type: String, default: void 0 },
|
|
11507
11552
|
iconRight: { type: String, default: void 0 },
|
|
11508
11553
|
label: { type: String, default: void 0 },
|
|
11509
11554
|
labelAlign: { type: String, default: void 0 },
|
|
11510
11555
|
group: { type: String, default: void 0, validator: validators.group },
|
|
11511
|
-
groupBreak: { type: String, default: "
|
|
11556
|
+
groupBreak: { type: String, default: "" },
|
|
11512
11557
|
groupVertical: { type: String, default: void 0, validator: validators.groupVertical }
|
|
11513
11558
|
},
|
|
11514
11559
|
emits: ["click"],
|
|
11515
11560
|
setup(__props, { emit: emits }) {
|
|
11516
11561
|
const props = __props;
|
|
11562
|
+
const { windowWidth } = useWindowWidth();
|
|
11517
11563
|
const isMounted = ref(false);
|
|
11518
11564
|
const computedClass = computed$2(() => {
|
|
11519
11565
|
const classList2 = [];
|
|
@@ -11525,7 +11571,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11525
11571
|
classList2.push(`ck-component__border-color--${props.color}`);
|
|
11526
11572
|
}
|
|
11527
11573
|
}
|
|
11528
|
-
if (props.align
|
|
11574
|
+
if (props.align === "center" || props.align === "right") {
|
|
11529
11575
|
classList2.push(`ck-button__align--${props.align}`);
|
|
11530
11576
|
}
|
|
11531
11577
|
if (isMounted.value)
|
|
@@ -11538,6 +11584,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11538
11584
|
classList2.push(`rs-component-size__${props.size}`);
|
|
11539
11585
|
return classList2;
|
|
11540
11586
|
});
|
|
11587
|
+
const computedStyle = computed$2(() => {
|
|
11588
|
+
const list = [];
|
|
11589
|
+
list.push(functions.getGroupBreakStyle(props, windowWidth.value));
|
|
11590
|
+
if (props.width)
|
|
11591
|
+
list.push({ width: props.width });
|
|
11592
|
+
return list;
|
|
11593
|
+
});
|
|
11541
11594
|
function onClick(event) {
|
|
11542
11595
|
emits("click", event);
|
|
11543
11596
|
}
|
|
@@ -11552,6 +11605,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11552
11605
|
title: __props.title,
|
|
11553
11606
|
"aria-label": __props.title,
|
|
11554
11607
|
disabled: __props.disabled,
|
|
11608
|
+
style: normalizeStyle(unref$1(computedStyle)),
|
|
11555
11609
|
onClick: _cache[0] || (_cache[0] = ($event) => onClick($event))
|
|
11556
11610
|
}, [
|
|
11557
11611
|
__props.icon ? (openBlock(), createBlock(ckIcon, {
|
|
@@ -11567,11 +11621,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11567
11621
|
icon: __props.iconRight,
|
|
11568
11622
|
"icon-pack": __props.iconPack
|
|
11569
11623
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11570
|
-
],
|
|
11624
|
+
], 14, _hoisted_1$g);
|
|
11571
11625
|
};
|
|
11572
11626
|
}
|
|
11573
11627
|
});
|
|
11574
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
11628
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-69b236d6"]]);
|
|
11575
11629
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11576
11630
|
const _hoisted_1$f = ["for"];
|
|
11577
11631
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -11601,8 +11655,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11601
11655
|
});
|
|
11602
11656
|
var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-ef74ea02"]]);
|
|
11603
11657
|
var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11604
|
-
const _hoisted_1$e =
|
|
11605
|
-
const _hoisted_2$8 = ["autocomplete", "type", "placeholder", "id", "disabled"];
|
|
11658
|
+
const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
|
|
11606
11659
|
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
11607
11660
|
props: {
|
|
11608
11661
|
modelValue: {},
|
|
@@ -11616,7 +11669,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11616
11669
|
iconPack: { type: String, default: void 0 },
|
|
11617
11670
|
iconRight: { type: String, default: void 0 },
|
|
11618
11671
|
group: { type: String, default: void 0 },
|
|
11619
|
-
groupBreak: { type: String, default: "
|
|
11672
|
+
groupBreak: { type: String, default: "" },
|
|
11620
11673
|
groupVertical: { type: String, default: void 0 },
|
|
11621
11674
|
hideBorder: { type: Boolean, default: false },
|
|
11622
11675
|
width: { type: String, default: void 0 },
|
|
@@ -11626,6 +11679,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11626
11679
|
emits: ["update:modelValue", "click", "input", "change"],
|
|
11627
11680
|
setup(__props, { expose, emit: emits }) {
|
|
11628
11681
|
const props = __props;
|
|
11682
|
+
const { windowWidth } = useWindowWidth();
|
|
11629
11683
|
expose({ setFocus, setSelect });
|
|
11630
11684
|
const realInput = ref(null);
|
|
11631
11685
|
const value = computed$2({
|
|
@@ -11647,10 +11701,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11647
11701
|
const onChange = (event) => {
|
|
11648
11702
|
emits("change", event);
|
|
11649
11703
|
};
|
|
11650
|
-
const
|
|
11704
|
+
const computedClass = computed$2(() => {
|
|
11651
11705
|
const list = [];
|
|
11652
|
-
|
|
11653
|
-
list.push({ width: props.width });
|
|
11706
|
+
list.push(functions.getGroupClassContainer(props));
|
|
11654
11707
|
return list;
|
|
11655
11708
|
});
|
|
11656
11709
|
const computedClassInput = computed$2(() => {
|
|
@@ -11666,6 +11719,18 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11666
11719
|
list.push("no-border");
|
|
11667
11720
|
return list;
|
|
11668
11721
|
});
|
|
11722
|
+
const computedStyle = computed$2(() => {
|
|
11723
|
+
const list = [];
|
|
11724
|
+
list.push(functions.getGroupBreakStyleContainer(props, windowWidth.value));
|
|
11725
|
+
return list;
|
|
11726
|
+
});
|
|
11727
|
+
const computedStyleInput = computed$2(() => {
|
|
11728
|
+
const list = [];
|
|
11729
|
+
list.push(functions.getGroupBreakStyle(props, windowWidth.value));
|
|
11730
|
+
if (props.width)
|
|
11731
|
+
list.push({ width: props.width });
|
|
11732
|
+
return list;
|
|
11733
|
+
});
|
|
11669
11734
|
function setFocus() {
|
|
11670
11735
|
realInput.value.focus();
|
|
11671
11736
|
}
|
|
@@ -11673,7 +11738,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11673
11738
|
realInput.value.select();
|
|
11674
11739
|
}
|
|
11675
11740
|
return (_ctx, _cache) => {
|
|
11676
|
-
return openBlock(), createElementBlock("div",
|
|
11741
|
+
return openBlock(), createElementBlock("div", {
|
|
11742
|
+
class: normalizeClass(["ck-input", unref$1(computedClass)]),
|
|
11743
|
+
style: normalizeStyle(unref$1(computedStyle))
|
|
11744
|
+
}, [
|
|
11677
11745
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
11678
11746
|
key: 0,
|
|
11679
11747
|
align: __props.labelAlign,
|
|
@@ -11695,17 +11763,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11695
11763
|
ref_key: "realInput",
|
|
11696
11764
|
ref: realInput,
|
|
11697
11765
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
11698
|
-
autocomplete: __props.autocomplete,
|
|
11766
|
+
autocomplete: __props.autocomplete ? "on" : "off",
|
|
11699
11767
|
type: __props.type,
|
|
11700
11768
|
placeholder: __props.placeholder,
|
|
11701
11769
|
class: normalizeClass(unref$1(computedClassInput)),
|
|
11702
11770
|
style: normalizeStyle(unref$1(computedStyleInput)),
|
|
11703
|
-
id: __props.label ? "ck-input" : "",
|
|
11704
11771
|
disabled: __props.disabled,
|
|
11705
11772
|
onChange: _cache[1] || (_cache[1] = ($event) => onChange($event)),
|
|
11706
11773
|
onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
|
|
11707
11774
|
onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
|
|
11708
|
-
}, null, 46,
|
|
11775
|
+
}, null, 46, _hoisted_1$e), [
|
|
11709
11776
|
[vModelDynamic, unref$1(value)]
|
|
11710
11777
|
]),
|
|
11711
11778
|
__props.iconRight ? (openBlock(), createBlock(ckIcon, {
|
|
@@ -11715,11 +11782,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11715
11782
|
icon: __props.iconRight,
|
|
11716
11783
|
"icon-pack": __props.iconPack
|
|
11717
11784
|
}, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
|
|
11718
|
-
]);
|
|
11785
|
+
], 6);
|
|
11719
11786
|
};
|
|
11720
11787
|
}
|
|
11721
11788
|
});
|
|
11722
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
11789
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-459e2aaf"]]);
|
|
11723
11790
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11724
11791
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
11725
11792
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
@@ -11813,7 +11880,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11813
11880
|
};
|
|
11814
11881
|
}
|
|
11815
11882
|
});
|
|
11816
|
-
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-
|
|
11883
|
+
var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-be0cc8e8"]]);
|
|
11817
11884
|
var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11818
11885
|
const _hoisted_1$c = { class: "ck-table__pagination" };
|
|
11819
11886
|
const _hoisted_2$7 = ["onClick"];
|
|
@@ -13282,6 +13349,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13282
13349
|
setup(__props, { emit: emits }) {
|
|
13283
13350
|
const props = __props;
|
|
13284
13351
|
const { qmObj: qmObj2 } = main$1;
|
|
13352
|
+
const { windowWidth } = useWindowWidth();
|
|
13285
13353
|
const IsPopupActive = ref({
|
|
13286
13354
|
columnsManager: false
|
|
13287
13355
|
});
|
|
@@ -13317,7 +13385,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13317
13385
|
}
|
|
13318
13386
|
});
|
|
13319
13387
|
const isMobileVisible = computed$2(() => {
|
|
13320
|
-
return
|
|
13388
|
+
return windowWidth.value <= +props.mobileMaxWidth;
|
|
13321
13389
|
});
|
|
13322
13390
|
function refreshList(pageChange = false) {
|
|
13323
13391
|
emits("refreshList", pageChange);
|
|
@@ -13329,19 +13397,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13329
13397
|
console.log("ERROR ck-table", "The columns list should be an object");
|
|
13330
13398
|
}
|
|
13331
13399
|
}
|
|
13332
|
-
const realWindowWidth = ref(0);
|
|
13333
|
-
function handleWindowResize(event) {
|
|
13334
|
-
realWindowWidth.value = event.currentTarget.innerWidth;
|
|
13335
|
-
}
|
|
13336
|
-
onMounted(() => {
|
|
13337
|
-
nextTick$1(() => {
|
|
13338
|
-
window.addEventListener("resize", handleWindowResize);
|
|
13339
|
-
});
|
|
13340
|
-
realWindowWidth.value = window.innerWidth;
|
|
13341
|
-
});
|
|
13342
|
-
onBeforeUnmount(() => {
|
|
13343
|
-
window.removeEventListener("resize", handleWindowResize);
|
|
13344
|
-
});
|
|
13345
13400
|
return (_ctx, _cache) => {
|
|
13346
13401
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
13347
13402
|
__props.hasColumnsManager && unref$1(columnsAreObj) ? (openBlock(), createBlock(TableColumnsManager, {
|
|
@@ -13411,7 +13466,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
13411
13466
|
};
|
|
13412
13467
|
}
|
|
13413
13468
|
});
|
|
13414
|
-
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
13469
|
+
var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-79775e25"]]);
|
|
13415
13470
|
var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13416
13471
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
13417
13472
|
props: {
|
|
@@ -13742,9 +13797,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13742
13797
|
labelAlign: { type: String, default: "" }
|
|
13743
13798
|
},
|
|
13744
13799
|
emits: ["update:modelValue", "click", "change"],
|
|
13745
|
-
setup(__props, { emit: emits }) {
|
|
13800
|
+
setup(__props, { expose, emit: emits }) {
|
|
13746
13801
|
const props = __props;
|
|
13747
13802
|
const { qmStr: qmStr2 } = main$1;
|
|
13803
|
+
const { windowWidth } = useWindowWidth();
|
|
13804
|
+
expose({
|
|
13805
|
+
setFocus
|
|
13806
|
+
});
|
|
13748
13807
|
const search = ref("");
|
|
13749
13808
|
ref(null);
|
|
13750
13809
|
const value = computed$2({
|
|
@@ -13764,15 +13823,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13764
13823
|
});
|
|
13765
13824
|
return list;
|
|
13766
13825
|
});
|
|
13767
|
-
const
|
|
13826
|
+
const computedClassSelect = computed$2(() => {
|
|
13768
13827
|
const classList2 = [];
|
|
13769
13828
|
classList2.push(functions.getGroupClass(props));
|
|
13770
13829
|
return classList2;
|
|
13771
13830
|
});
|
|
13831
|
+
const computedStyleSelect = computed$2(() => {
|
|
13832
|
+
const list = [];
|
|
13833
|
+
list.push(functions.getGroupBreakStyle(props, windowWidth.value));
|
|
13834
|
+
return list;
|
|
13835
|
+
});
|
|
13836
|
+
const computedClass = computed$2(() => {
|
|
13837
|
+
const classList2 = [];
|
|
13838
|
+
classList2.push(functions.getGroupClassContainer(props));
|
|
13839
|
+
return classList2;
|
|
13840
|
+
});
|
|
13772
13841
|
const computedStyle = computed$2(() => {
|
|
13773
13842
|
const list = [];
|
|
13774
13843
|
if (props.minWidth)
|
|
13775
13844
|
list.push({ "min-width": props.minWidth });
|
|
13845
|
+
list.push(functions.getGroupBreakStyleContainer(props, windowWidth.value));
|
|
13776
13846
|
return list;
|
|
13777
13847
|
});
|
|
13778
13848
|
computed$2(() => {
|
|
@@ -13817,25 +13887,27 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13817
13887
|
function onClick(event) {
|
|
13818
13888
|
emits("click", event);
|
|
13819
13889
|
}
|
|
13820
|
-
|
|
13890
|
+
function onChange(event) {
|
|
13821
13891
|
emits("change", event);
|
|
13822
|
-
}
|
|
13823
|
-
|
|
13892
|
+
}
|
|
13893
|
+
function getOptionKey(option) {
|
|
13824
13894
|
return realReduceFunction(option);
|
|
13825
|
-
}
|
|
13826
|
-
|
|
13895
|
+
}
|
|
13896
|
+
function getOptionName(option) {
|
|
13827
13897
|
if (!props.prop)
|
|
13828
13898
|
return option;
|
|
13829
13899
|
return option[props.prop];
|
|
13830
|
-
}
|
|
13831
|
-
|
|
13900
|
+
}
|
|
13901
|
+
function realReduceFunction(option) {
|
|
13832
13902
|
if (props.notReduce)
|
|
13833
13903
|
return option;
|
|
13834
13904
|
return props.reduceFunction(option);
|
|
13835
|
-
}
|
|
13905
|
+
}
|
|
13906
|
+
function setFocus() {
|
|
13907
|
+
}
|
|
13836
13908
|
return (_ctx, _cache) => {
|
|
13837
13909
|
return openBlock(), createElementBlock("div", {
|
|
13838
|
-
class: "ck-select",
|
|
13910
|
+
class: normalizeClass(["ck-select", unref$1(computedClass)]),
|
|
13839
13911
|
style: normalizeStyle(unref$1(computedStyle))
|
|
13840
13912
|
}, [
|
|
13841
13913
|
__props.label ? (openBlock(), createBlock(ckLabel, {
|
|
@@ -13850,7 +13922,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13850
13922
|
}, 8, ["align"])) : createCommentVNode("", true),
|
|
13851
13923
|
withDirectives(createElementVNode("select", {
|
|
13852
13924
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
|
|
13853
|
-
class: normalizeClass(unref$1(
|
|
13925
|
+
class: normalizeClass(unref$1(computedClassSelect)),
|
|
13926
|
+
style: normalizeStyle(unref$1(computedStyleSelect)),
|
|
13854
13927
|
onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
|
|
13855
13928
|
onChange: _cache[2] || (_cache[2] = ($event) => onChange($event))
|
|
13856
13929
|
}, [
|
|
@@ -13860,14 +13933,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13860
13933
|
key: option
|
|
13861
13934
|
}, toDisplayString(getOptionName(option)), 9, _hoisted_1$4);
|
|
13862
13935
|
}), 128))
|
|
13863
|
-
],
|
|
13936
|
+
], 38), [
|
|
13864
13937
|
[vModelSelect, unref$1(value)]
|
|
13865
13938
|
])
|
|
13866
|
-
],
|
|
13939
|
+
], 6);
|
|
13867
13940
|
};
|
|
13868
13941
|
}
|
|
13869
13942
|
});
|
|
13870
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
13943
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-66f00b4a"]]);
|
|
13871
13944
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13872
13945
|
const _withScopeId = (n) => (pushScopeId("data-v-b6a4dfaa"), n = n(), popScopeId(), n);
|
|
13873
13946
|
const _hoisted_1$3 = ["disabled"];
|
|
@@ -13982,7 +14055,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
13982
14055
|
label: { type: String, default: "" },
|
|
13983
14056
|
labelAlign: { type: String, default: "" },
|
|
13984
14057
|
group: { type: String, default: "" },
|
|
13985
|
-
groupBreak: { type: String, default: "
|
|
14058
|
+
groupBreak: { type: String, default: "" },
|
|
13986
14059
|
groupVertical: { type: String, default: "" },
|
|
13987
14060
|
sameWidthOptions: { type: Boolean, default: false }
|
|
13988
14061
|
},
|
|
@@ -14041,7 +14114,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14041
14114
|
};
|
|
14042
14115
|
}
|
|
14043
14116
|
});
|
|
14044
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
14117
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b49d8f8e"]]);
|
|
14045
14118
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14046
14119
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
14047
14120
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|