cleek 2.4.71 → 2.4.75

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
@@ -24510,7 +24510,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
24510
24510
  };
24511
24511
  }
24512
24512
  });
24513
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6afd22ad"]]);
24513
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-3db58510"]]);
24514
24514
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
24515
24515
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
24516
24516
  props: {
@@ -26420,7 +26420,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
26420
26420
  });
26421
26421
  var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-eed7a2c0"]]);
26422
26422
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
26423
- const _withScopeId$2 = (n) => (pushScopeId("data-v-2e09b238"), n = n(), popScopeId(), n);
26423
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-dc40a9c2"), n = n(), popScopeId(), n);
26424
26424
  const _hoisted_1$8 = ["onKeyup"];
26425
26425
  const _hoisted_2$6 = ["name", "value", "disabled"];
26426
26426
  const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
@@ -26432,8 +26432,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
26432
26432
  props: {
26433
26433
  modelValue: null,
26434
26434
  name: null,
26435
+ vertical: { type: Boolean },
26435
26436
  options: null,
26436
- disabled: { type: Boolean }
26437
+ disabled: { type: Boolean },
26438
+ value: null,
26439
+ label: null
26437
26440
  },
26438
26441
  emits: ["update:modelValue", "change"],
26439
26442
  setup(__props, { emit: emits }) {
@@ -26452,16 +26455,32 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
26452
26455
  tabindex: props.disabled ? void 0 : "0"
26453
26456
  };
26454
26457
  });
26458
+ const computedOptions = computed$2(() => {
26459
+ if (props.options)
26460
+ return props.options;
26461
+ if (typeof props.value !== void 0) {
26462
+ const label = props.label || props.value;
26463
+ return [{ value: props.value, label }];
26464
+ }
26465
+ return [];
26466
+ });
26467
+ const computedClass = computed$2(() => {
26468
+ const list = [];
26469
+ if (props.vertical)
26470
+ list.push("vertical");
26471
+ return list;
26472
+ });
26455
26473
  function handleChange(option, event) {
26456
26474
  option.value = value;
26457
26475
  emits("change", event);
26458
26476
  }
26459
26477
  return (_ctx, _cache) => {
26460
- return openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
26478
+ return openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(computedOptions), (option, index) => {
26461
26479
  return openBlock(), createElementBlock("label", mergeProps({
26462
- key: `radio-${index}`,
26463
- class: "c-Radio"
26480
+ class: "ck-radio",
26481
+ key: `radio-${index}`
26464
26482
  }, unref$1(radioAttributes), {
26483
+ class: unref$1(computedClass),
26465
26484
  onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(() => {
26466
26485
  }, ["prevent"]), ["space"])),
26467
26486
  onKeyup: [
@@ -26487,14 +26506,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
26487
26506
  };
26488
26507
  }
26489
26508
  });
26490
- var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-2e09b238"]]);
26509
+ var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-dc40a9c2"]]);
26491
26510
  var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
26492
- const _hoisted_1$7 = {
26511
+ const _hoisted_1$7 = ["disabled"];
26512
+ const _hoisted_2$5 = ["value"];
26513
+ const _hoisted_3$3 = {
26493
26514
  key: 4,
26494
26515
  class: "ck-select--placeholder"
26495
26516
  };
26496
- const _hoisted_2$5 = ["disabled"];
26497
- const _hoisted_3$3 = ["value"];
26498
26517
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
26499
26518
  props: {
26500
26519
  modelValue: null,
@@ -26733,7 +26752,6 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
26733
26752
  ]),
26734
26753
  _: 1
26735
26754
  }, 8, ["align"])) : createCommentVNode("", true),
26736
- unref$1(isPlaceholderVisible) ? (openBlock(), createElementBlock("span", _hoisted_1$7, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true),
26737
26755
  withDirectives(createElementVNode("select", {
26738
26756
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef$1(value) ? value.value = $event : null),
26739
26757
  class: normalizeClass(unref$1(computedClassSelect)),
@@ -26745,16 +26763,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
26745
26763
  return openBlock(), createElementBlock("option", {
26746
26764
  value: getOptionValue(option),
26747
26765
  key: option
26748
- }, toDisplayString(getOptionName(option)), 9, _hoisted_3$3);
26766
+ }, toDisplayString(getOptionName(option)), 9, _hoisted_2$5);
26749
26767
  }), 128))
26750
- ], 14, _hoisted_2$5), [
26768
+ ], 14, _hoisted_1$7), [
26751
26769
  [vModelSelect, unref$1(value)]
26752
- ])
26770
+ ]),
26771
+ unref$1(isPlaceholderVisible) ? (openBlock(), createElementBlock("span", _hoisted_3$3, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true)
26753
26772
  ], 6);
26754
26773
  };
26755
26774
  }
26756
26775
  });
26757
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-98e25dcc"]]);
26776
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-7483bed4"]]);
26758
26777
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
26759
26778
  const _hoisted_1$6 = {
26760
26779
  key: 0,