cleek 2.2.1 → 2.2.4
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
|
@@ -11449,37 +11449,37 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11449
11449
|
}
|
|
11450
11450
|
});
|
|
11451
11451
|
var functions = {
|
|
11452
|
-
getGroupClass({ group = "", groupVertical = "",
|
|
11452
|
+
getGroupClass({ group = "", groupVertical = "", lineBreak = "" } = {}) {
|
|
11453
11453
|
const classList2 = [];
|
|
11454
11454
|
if (group)
|
|
11455
11455
|
classList2.push(`ck-component__group--${group}`);
|
|
11456
11456
|
if (groupVertical)
|
|
11457
11457
|
classList2.push(`ck-component__group-vertical--${groupVertical}`);
|
|
11458
|
-
if (
|
|
11459
|
-
if (
|
|
11460
|
-
classList2.push(`ck-
|
|
11458
|
+
if (lineBreak) {
|
|
11459
|
+
if (lineBreak === "s") {
|
|
11460
|
+
classList2.push(`ck-component__line-break--${lineBreak}`);
|
|
11461
11461
|
}
|
|
11462
11462
|
}
|
|
11463
11463
|
return classList2;
|
|
11464
11464
|
},
|
|
11465
|
-
getGroupClassContainer({
|
|
11465
|
+
getGroupClassContainer({ lineBreak = "" } = "") {
|
|
11466
11466
|
const classList2 = [];
|
|
11467
|
-
if (
|
|
11468
|
-
if (
|
|
11469
|
-
classList2.push(`ck-
|
|
11467
|
+
if (lineBreak) {
|
|
11468
|
+
if (lineBreak === "s") {
|
|
11469
|
+
classList2.push(`ck-component__line-break-container--${lineBreak}`);
|
|
11470
11470
|
}
|
|
11471
11471
|
}
|
|
11472
11472
|
return classList2;
|
|
11473
11473
|
},
|
|
11474
|
-
|
|
11475
|
-
if (windowWidth <=
|
|
11474
|
+
getlineBreakStyleContainer({ lineBreak } = {}, windowWidth) {
|
|
11475
|
+
if (windowWidth <= lineBreak) {
|
|
11476
11476
|
return [
|
|
11477
11477
|
{ width: "100%" }
|
|
11478
11478
|
];
|
|
11479
11479
|
}
|
|
11480
11480
|
},
|
|
11481
|
-
|
|
11482
|
-
if (windowWidth <=
|
|
11481
|
+
getlineBreakStyle({ lineBreak } = {}, windowWidth) {
|
|
11482
|
+
if (windowWidth <= lineBreak) {
|
|
11483
11483
|
return [
|
|
11484
11484
|
{ width: "100%" },
|
|
11485
11485
|
{ borderRadius: "4px !important" },
|
|
@@ -11553,7 +11553,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11553
11553
|
label: { type: String, default: void 0 },
|
|
11554
11554
|
labelAlign: { type: String, default: void 0 },
|
|
11555
11555
|
group: { type: String, default: void 0, validator: validators.group },
|
|
11556
|
-
|
|
11556
|
+
lineBreak: { type: [String, Number], default: "" },
|
|
11557
11557
|
groupVertical: { type: String, default: void 0, validator: validators.groupVertical }
|
|
11558
11558
|
},
|
|
11559
11559
|
emits: ["click"],
|
|
@@ -11586,9 +11586,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11586
11586
|
});
|
|
11587
11587
|
const computedStyle = computed$2(() => {
|
|
11588
11588
|
const list = [];
|
|
11589
|
-
if (props.width)
|
|
11589
|
+
if (props.width && !props.lineBreak)
|
|
11590
11590
|
list.push({ width: props.width });
|
|
11591
|
-
list.push(functions.
|
|
11591
|
+
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
11592
11592
|
return list;
|
|
11593
11593
|
});
|
|
11594
11594
|
function onClick(event) {
|
|
@@ -11625,7 +11625,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11625
11625
|
};
|
|
11626
11626
|
}
|
|
11627
11627
|
});
|
|
11628
|
-
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
11628
|
+
var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6a5f73e9"]]);
|
|
11629
11629
|
var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11630
11630
|
const _hoisted_1$f = ["for"];
|
|
11631
11631
|
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
@@ -11669,7 +11669,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11669
11669
|
iconPack: { type: String, default: void 0 },
|
|
11670
11670
|
iconRight: { type: String, default: void 0 },
|
|
11671
11671
|
group: { type: String, default: void 0 },
|
|
11672
|
-
|
|
11672
|
+
lineBreak: { type: [String, Number], default: "" },
|
|
11673
11673
|
groupVertical: { type: String, default: void 0 },
|
|
11674
11674
|
hideBorder: { type: Boolean, default: false },
|
|
11675
11675
|
width: { type: String, default: void 0 },
|
|
@@ -11721,14 +11721,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11721
11721
|
});
|
|
11722
11722
|
const computedStyle = computed$2(() => {
|
|
11723
11723
|
const list = [];
|
|
11724
|
-
list.push(functions.
|
|
11724
|
+
list.push(functions.getlineBreakStyleContainer(props, windowWidth.value));
|
|
11725
11725
|
return list;
|
|
11726
11726
|
});
|
|
11727
11727
|
const computedStyleInput = computed$2(() => {
|
|
11728
11728
|
const list = [];
|
|
11729
|
-
if (props.width)
|
|
11729
|
+
if (props.width || !props.lineBreak)
|
|
11730
11730
|
list.push({ width: props.width });
|
|
11731
|
-
list.push(functions.
|
|
11731
|
+
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
11732
11732
|
return list;
|
|
11733
11733
|
});
|
|
11734
11734
|
function setFocus() {
|
|
@@ -11786,7 +11786,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
11786
11786
|
};
|
|
11787
11787
|
}
|
|
11788
11788
|
});
|
|
11789
|
-
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
11789
|
+
var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-77e1fa0a"]]);
|
|
11790
11790
|
var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
11791
11791
|
const _hoisted_1$d = { class: "ck-table__header-items" };
|
|
11792
11792
|
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
@@ -13791,7 +13791,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13791
13791
|
bgTransparent: { type: Boolean, default: false },
|
|
13792
13792
|
disabled: { type: [Boolean, Number], default: false },
|
|
13793
13793
|
group: { type: String, default: "" },
|
|
13794
|
-
|
|
13794
|
+
lineBreak: { type: [String, Number], default: "" },
|
|
13795
13795
|
groupVertical: { type: String, default: "" },
|
|
13796
13796
|
label: { type: String, default: "" },
|
|
13797
13797
|
labelAlign: { type: String, default: "" }
|
|
@@ -13830,7 +13830,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13830
13830
|
});
|
|
13831
13831
|
const computedStyleSelect = computed$2(() => {
|
|
13832
13832
|
const list = [];
|
|
13833
|
-
list.push(functions.
|
|
13833
|
+
list.push(functions.getlineBreakStyle(props, windowWidth.value));
|
|
13834
13834
|
return list;
|
|
13835
13835
|
});
|
|
13836
13836
|
const computedClass = computed$2(() => {
|
|
@@ -13842,7 +13842,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13842
13842
|
const list = [];
|
|
13843
13843
|
if (props.minWidth)
|
|
13844
13844
|
list.push({ "min-width": props.minWidth });
|
|
13845
|
-
list.push(functions.
|
|
13845
|
+
list.push(functions.getlineBreakStyleContainer(props, windowWidth.value));
|
|
13846
13846
|
return list;
|
|
13847
13847
|
});
|
|
13848
13848
|
computed$2(() => {
|
|
@@ -13940,7 +13940,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13940
13940
|
};
|
|
13941
13941
|
}
|
|
13942
13942
|
});
|
|
13943
|
-
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
13943
|
+
var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-6217135d"]]);
|
|
13944
13944
|
var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
13945
13945
|
const _withScopeId = (n) => (pushScopeId("data-v-b6a4dfaa"), n = n(), popScopeId(), n);
|
|
13946
13946
|
const _hoisted_1$3 = ["disabled"];
|
|
@@ -14055,7 +14055,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14055
14055
|
label: { type: String, default: "" },
|
|
14056
14056
|
labelAlign: { type: String, default: "" },
|
|
14057
14057
|
group: { type: String, default: "" },
|
|
14058
|
-
|
|
14058
|
+
lineBreak: { type: [String, Number], default: "" },
|
|
14059
14059
|
groupVertical: { type: String, default: "" },
|
|
14060
14060
|
sameWidthOptions: { type: Boolean, default: false }
|
|
14061
14061
|
},
|
|
@@ -14114,7 +14114,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
14114
14114
|
};
|
|
14115
14115
|
}
|
|
14116
14116
|
});
|
|
14117
|
-
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
14117
|
+
var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-55ea866f"]]);
|
|
14118
14118
|
var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
14119
14119
|
const _hoisted_1$1 = { class: "ck-textarea" };
|
|
14120
14120
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|