cleek 2.8.1 → 2.8.3

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
@@ -3231,10 +3231,10 @@ const _hoisted_2$1$2 = {
3231
3231
  ref: "inner",
3232
3232
  class: "v-popper__inner"
3233
3233
  };
3234
- const _hoisted_3$c = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
3234
+ const _hoisted_3$b = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-outer" }, null, -1);
3235
3235
  const _hoisted_4$8 = /* @__PURE__ */ createElementVNode("div", { class: "v-popper__arrow-inner" }, null, -1);
3236
3236
  const _hoisted_5$5 = [
3237
- _hoisted_3$c,
3237
+ _hoisted_3$b,
3238
3238
  _hoisted_4$8
3239
3239
  ];
3240
3240
  function _sfc_render$2$1(_ctx, _cache, $props, $setup, $data, $options) {
@@ -3523,7 +3523,7 @@ const _sfc_main$z = defineComponent$1({
3523
3523
  }
3524
3524
  });
3525
3525
  const _hoisted_1$q = ["innerHTML"];
3526
- const _hoisted_2$g = ["textContent"];
3526
+ const _hoisted_2$f = ["textContent"];
3527
3527
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
3528
3528
  const _component_PopperContent = resolveComponent$1("PopperContent");
3529
3529
  const _component_Popper = resolveComponent$1("Popper");
@@ -3569,7 +3569,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
3569
3569
  }, null, 8, _hoisted_1$q)) : (openBlock$1(), createElementBlock$1("div", {
3570
3570
  key: 1,
3571
3571
  textContent: toDisplayString(_ctx.finalContent)
3572
- }, null, 8, _hoisted_2$g))
3572
+ }, null, 8, _hoisted_2$f))
3573
3573
  ]),
3574
3574
  _: 2
3575
3575
  }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
@@ -46393,7 +46393,7 @@ const _hoisted_1$p = {
46393
46393
  key: 0,
46394
46394
  class: "help-text"
46395
46395
  };
46396
- const _hoisted_2$f = {
46396
+ const _hoisted_2$e = {
46397
46397
  key: 0,
46398
46398
  class: "pl-1"
46399
46399
  };
@@ -46430,7 +46430,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent$1({
46430
46430
  onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
46431
46431
  }, [
46432
46432
  createTextVNode$1(toDisplayString(unref$2(computedDate)) + " ", 1),
46433
- unref$2(computedTime) ? (openBlock$1(), createElementBlock$1("span", _hoisted_2$f, " | " + toDisplayString(unref$2(computedTime)), 1)) : createCommentVNode$1("", true)
46433
+ unref$2(computedTime) ? (openBlock$1(), createElementBlock$1("span", _hoisted_2$e, " | " + toDisplayString(unref$2(computedTime)), 1)) : createCommentVNode$1("", true)
46434
46434
  ])) : withDirectives((openBlock$1(), createElementBlock$1("div", {
46435
46435
  key: 2,
46436
46436
  class: "ck-datetime-shower",
@@ -46445,9 +46445,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent$1({
46445
46445
  });
46446
46446
  var ckDatetimeShower = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-4dcd4d84"]]);
46447
46447
  var ckTimeShower_vue_vue_type_style_index_0_scoped_true_lang = "";
46448
- const _withScopeId$5 = (n) => (pushScopeId$1("data-v-4d15db47"), n = n(), popScopeId$1(), n);
46448
+ const _withScopeId$4 = (n) => (pushScopeId$1("data-v-4d15db47"), n = n(), popScopeId$1(), n);
46449
46449
  const _hoisted_1$o = { class: "ck-time-shower" };
46450
- const _hoisted_2$e = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ createElementVNode("span", { class: "hs-text" }, " hs ", -1));
46450
+ const _hoisted_2$d = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("span", { class: "hs-text" }, " hs ", -1));
46451
46451
  const _sfc_main$x = /* @__PURE__ */ defineComponent$1({
46452
46452
  props: {
46453
46453
  time: null,
@@ -46461,7 +46461,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent$1({
46461
46461
  ], 64)) : (openBlock$1(), createElementBlock$1(Fragment$1, { key: 1 }, [
46462
46462
  createTextVNode$1(" | " + toDisplayString(unref$2(qmDate).presentTime(__props.time)), 1)
46463
46463
  ], 64)),
46464
- _hoisted_2$e
46464
+ _hoisted_2$d
46465
46465
  ]);
46466
46466
  };
46467
46467
  }
@@ -47158,7 +47158,6 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent$1({
47158
47158
  } else if (props.color && hooks9.isColorTemplateVariable(props.color)) {
47159
47159
  classes.push(`ck-component__color-background--${props.color}`);
47160
47160
  }
47161
- console.log("TAMA\xD1O", props.icon, props.size);
47162
47161
  if (props.size)
47163
47162
  classes.push(`ck-icon__cleek-small`);
47164
47163
  if (props.size === "m")
@@ -47190,7 +47189,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent$1({
47190
47189
  };
47191
47190
  }
47192
47191
  });
47193
- var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-0dd0559c"]]);
47192
+ var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-f10bef6e"]]);
47194
47193
  var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
47195
47194
  const _sfc_main$t = {};
47196
47195
  const _hoisted_1$m = { class: "ck-tr" };
@@ -47574,8 +47573,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent$1({
47574
47573
  var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-3eb67ac4"]]);
47575
47574
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
47576
47575
  const _hoisted_1$i = { class: "ck-input__content" };
47577
- const _hoisted_2$d = ["autocomplete", "placeholder", "disabled"];
47578
- const _hoisted_3$b = ["autocomplete", "type", "placeholder", "disabled"];
47576
+ const _hoisted_2$c = ["autocomplete", "placeholder", "disabled"];
47577
+ const _hoisted_3$a = ["autocomplete", "type", "placeholder", "disabled"];
47579
47578
  const _sfc_main$n = /* @__PURE__ */ defineComponent$1({
47580
47579
  props: {
47581
47580
  modelValue: null,
@@ -47801,7 +47800,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent$1({
47801
47800
  onClick: _cache[4] || (_cache[4] = ($event) => onClick2($event)),
47802
47801
  onFocus: _cache[5] || (_cache[5] = ($event) => emits("focus", $event)),
47803
47802
  onBlur: _cache[6] || (_cache[6] = ($event) => emits("blur", $event))
47804
- }, null, 46, _hoisted_2$d)), [
47803
+ }, null, 46, _hoisted_2$c)), [
47805
47804
  [vModelText, unref$2(value)]
47806
47805
  ]) : withDirectives((openBlock$1(), createElementBlock$1("input", {
47807
47806
  key: 3,
@@ -47819,7 +47818,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent$1({
47819
47818
  onClick: _cache[10] || (_cache[10] = ($event) => onClick2($event)),
47820
47819
  onFocus: _cache[11] || (_cache[11] = ($event) => emits("focus", $event)),
47821
47820
  onBlur: _cache[12] || (_cache[12] = ($event) => emits("blur", $event))
47822
- }, null, 46, _hoisted_3$b)), [
47821
+ }, null, 46, _hoisted_3$a)), [
47823
47822
  [vModelDynamic, unref$2(value)]
47824
47823
  ]),
47825
47824
  __props.type === "password" ? (openBlock$1(), createElementBlock$1("div", {
@@ -47984,12 +47983,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
47984
47983
  });
47985
47984
  var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-64173368"]]);
47986
47985
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
47987
- const _withScopeId$4 = (n) => (pushScopeId$1("data-v-27c654d0"), n = n(), popScopeId$1(), n);
47986
+ const _withScopeId$3 = (n) => (pushScopeId$1("data-v-27c654d0"), n = n(), popScopeId$1(), n);
47988
47987
  const _hoisted_1$h = { class: "ck-table__pagination" };
47989
- const _hoisted_2$c = { class: "ck-table__pagination--numbers-container" };
47990
- const _hoisted_3$a = ["onClick"];
47988
+ const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
47989
+ const _hoisted_3$9 = ["onClick"];
47991
47990
  const _hoisted_4$7 = { class: "ck-table__pagination-input-container" };
47992
- const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
47991
+ const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
47993
47992
  const _hoisted_6$2 = ["onClick"];
47994
47993
  const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
47995
47994
  props: {
@@ -48101,12 +48100,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
48101
48100
  icon: unref$2(hasArrowLeft) ? "angle-left" : "grip-lines-vertical"
48102
48101
  }, null, 8, ["icon"])
48103
48102
  ], 2),
48104
- createElementVNode("div", _hoisted_2$c, [
48103
+ createElementVNode("div", _hoisted_2$b, [
48105
48104
  (openBlock$1(true), createElementBlock$1(Fragment$1, null, renderList(unref$2(listLeft), (num) => {
48106
48105
  return openBlock$1(), createElementBlock$1("div", {
48107
48106
  class: "ck-table__pagination-item--left",
48108
48107
  onClick: ($event) => currentPageLocal.value = num
48109
- }, toDisplayString(num), 9, _hoisted_3$a);
48108
+ }, toDisplayString(num), 9, _hoisted_3$9);
48110
48109
  }), 256)),
48111
48110
  createElementVNode("div", _hoisted_4$7, [
48112
48111
  withDirectives(createElementVNode("input", {
@@ -48912,18 +48911,14 @@ const computed = (getterOrOptions, debugOptions) => {
48912
48911
  return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
48913
48912
  };
48914
48913
  var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
48915
- const _withScopeId$3 = (n) => (pushScopeId$1("data-v-1fffee96"), n = n(), popScopeId$1(), n);
48916
48914
  const _hoisted_1$g = ["disabled", "checked"];
48917
- const _hoisted_2$b = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
48918
- const _hoisted_3$9 = {
48919
- key: 0,
48920
- class: "c-Checkbox__label"
48921
- };
48922
48915
  const _sfc_main$k = /* @__PURE__ */ defineComponent$1({
48923
48916
  props: {
48924
48917
  modelValue: { type: Boolean },
48925
48918
  label: null,
48926
- disabled: { type: Boolean }
48919
+ disabled: { type: Boolean },
48920
+ color: null,
48921
+ colorText: null
48927
48922
  },
48928
48923
  emits: ["update:modelValue", "change"],
48929
48924
  setup(__props, { emit: emits }) {
@@ -48942,6 +48937,34 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent$1({
48942
48937
  tabindex: props.disabled ? void 0 : "0"
48943
48938
  };
48944
48939
  });
48940
+ const computedClass = computed(() => {
48941
+ const list = [];
48942
+ if (props.color && hooks9.isColorTemplateVariable(props.color)) {
48943
+ list.push(`ck-component__border-color--${props.color}`);
48944
+ }
48945
+ return list;
48946
+ });
48947
+ const computedStyle = computed(() => {
48948
+ const list = [];
48949
+ if (props.color && !hooks9.isColorTemplateVariable(props.color)) {
48950
+ list.push({ borderColor: props.color });
48951
+ }
48952
+ return list;
48953
+ });
48954
+ const computedClassLabel = computed(() => {
48955
+ const list = [];
48956
+ if (props.colorText && hooks9.isColorTemplateVariable(props.colorText)) {
48957
+ list.push(`ck-component__color--${props.colorText}`);
48958
+ }
48959
+ return list;
48960
+ });
48961
+ const computedStyleLabel = computed(() => {
48962
+ const list = [];
48963
+ if (props.colorText && !hooks9.isColorTemplateVariable(props.colorText)) {
48964
+ list.push({ color: props.colorText });
48965
+ }
48966
+ return list;
48967
+ });
48945
48968
  function onChange2(event) {
48946
48969
  emits("change", event);
48947
48970
  }
@@ -48969,15 +48992,22 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent$1({
48969
48992
  onChange2($event);
48970
48993
  })
48971
48994
  }, null, 40, _hoisted_1$g),
48972
- _hoisted_2$b,
48973
- _ctx.$slots.default ? (openBlock$1(), createElementBlock$1("span", _hoisted_3$9, [
48995
+ createElementVNode("div", {
48996
+ class: normalizeClass$1(["ck-checkbox__element", unref$2(computedClass)]),
48997
+ style: normalizeStyle$1(unref$2(computedStyle))
48998
+ }, null, 6),
48999
+ _ctx.$slots.default ? (openBlock$1(), createElementBlock$1("span", {
49000
+ key: 0,
49001
+ class: normalizeClass$1(["c-Checkbox__label", unref$2(computedClassLabel)]),
49002
+ style: normalizeStyle$1(unref$2(computedStyleLabel))
49003
+ }, [
48974
49004
  renderSlot$1(_ctx.$slots, "default", {}, void 0, true)
48975
- ])) : createCommentVNode$1("", true)
49005
+ ], 6)) : createCommentVNode$1("", true)
48976
49006
  ], 16);
48977
49007
  };
48978
49008
  }
48979
49009
  });
48980
- var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1fffee96"]]);
49010
+ var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-335d1bdf"]]);
48981
49011
  var ckPopup_vue_vue_type_style_index_0_lang = "";
48982
49012
  const _hoisted_1$f = { class: "ck-popup" };
48983
49013
  const _hoisted_2$a = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
@@ -58545,7 +58575,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
58545
58575
  static: { type: Boolean },
58546
58576
  dynamic: { type: Boolean }
58547
58577
  },
58548
- setup(__props) {
58578
+ emits: ["click"],
58579
+ setup(__props, { emit: emits }) {
58549
58580
  const props = __props;
58550
58581
  let cleekOptions2 = ref();
58551
58582
  const altNeeded = ref(false);
@@ -58611,10 +58642,6 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
58611
58642
  return props.borderColor;
58612
58643
  return globalVariables.defaultImgBorderColor;
58613
58644
  });
58614
- function clickImg() {
58615
- if (props.zoom)
58616
- ;
58617
- }
58618
58645
  function getImg(src) {
58619
58646
  var _a, _b, _c, _d, _e;
58620
58647
  let basePath = (_a = cleekOptions2.value) == null ? void 0 : _a.img.basePath;
@@ -58634,7 +58661,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
58634
58661
  return openBlock$1(), createElementBlock$1("div", {
58635
58662
  class: normalizeClass$1(["ck-img", unref$2(computedClass)]),
58636
58663
  style: normalizeStyle$1(unref$2(computedStyle)),
58637
- onClick: _cache[1] || (_cache[1] = ($event) => clickImg())
58664
+ onClick: _cache[1] || (_cache[1] = ($event) => emits("click", $event))
58638
58665
  }, [
58639
58666
  createElementVNode("img", {
58640
58667
  src: unref$2(imageUrl),
@@ -58646,7 +58673,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
58646
58673
  };
58647
58674
  }
58648
58675
  });
58649
- var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-24eb46e8"]]);
58676
+ var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-0310a72e"]]);
58650
58677
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
58651
58678
  const _withScopeId$2 = (n) => (pushScopeId$1("data-v-494ed67e"), n = n(), popScopeId$1(), n);
58652
58679
  const _hoisted_1$8 = ["onKeyup"];