cleek 2.4.55 → 2.4.58

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
@@ -29,7 +29,7 @@ var __objRest = (source2, exclude) => {
29
29
  }
30
30
  return target;
31
31
  };
32
- import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelDynamic, renderList, vModelText, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
32
+ import { watch, reactive, pushScopeId, popScopeId, defineComponent, nextTick as nextTick$1, openBlock, createBlock, withScopeId, resolveComponent, createElementBlock, normalizeClass, normalizeStyle, withKeys, createElementVNode, Fragment, renderSlot, createCommentVNode, mergeProps, withCtx, createVNode, ref, createApp, h, toDisplayString, computed as computed$2, onMounted, getCurrentInstance, unref as unref$1, createTextVNode, onBeforeUnmount, withDirectives, isRef as isRef$1, vModelText, vModelDynamic, renderList, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
33
33
  function getDevtoolsGlobalHook() {
34
34
  return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
35
35
  }
@@ -3520,7 +3520,7 @@ const _sfc_main$s = defineComponent({
3520
3520
  }
3521
3521
  });
3522
3522
  const _hoisted_1$m = ["innerHTML"];
3523
- const _hoisted_2$c = ["textContent"];
3523
+ const _hoisted_2$d = ["textContent"];
3524
3524
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3525
3525
  const _component_PopperContent = resolveComponent("PopperContent");
3526
3526
  const _component_Popper = resolveComponent("Popper");
@@ -3566,7 +3566,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3566
3566
  }, null, 8, _hoisted_1$m)) : (openBlock(), createElementBlock("div", {
3567
3567
  key: 1,
3568
3568
  textContent: toDisplayString(_ctx.finalContent)
3569
- }, null, 8, _hoisted_2$c))
3569
+ }, null, 8, _hoisted_2$d))
3570
3570
  ]),
3571
3571
  _: 2
3572
3572
  }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
@@ -21919,7 +21919,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
21919
21919
  });
21920
21920
  var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-a4566770"]]);
21921
21921
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
21922
- const _hoisted_1$g = ["autocomplete", "type", "placeholder", "disabled"];
21922
+ const _hoisted_1$g = ["autocomplete", "placeholder", "disabled"];
21923
+ const _hoisted_2$c = ["autocomplete", "type", "placeholder", "disabled"];
21923
21924
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
21924
21925
  props: {
21925
21926
  modelValue: null,
@@ -21947,7 +21948,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
21947
21948
  autoSelect: { type: Boolean },
21948
21949
  delayChangeTime: null
21949
21950
  },
21950
- emits: ["update:modelValue", "click", "input", "change", "delayChange"],
21951
+ emits: ["update:modelValue", "click", "input", "change", "focus", "blur", "delayChange"],
21951
21952
  setup(__props, { expose, emit: emits }) {
21952
21953
  const props = __props;
21953
21954
  expose({ setFocus, setSelect });
@@ -21955,6 +21956,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
21955
21956
  const defaultType = "text";
21956
21957
  const defaultDelayChangeTime = 300;
21957
21958
  const realInput = ref(null);
21959
+ const isShowingPassword = ref(false);
21958
21960
  const { windowWidth } = useWindowWidth();
21959
21961
  const value = computed$2({
21960
21962
  get() {
@@ -22082,12 +22084,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22082
22084
  icon: __props.icon,
22083
22085
  "icon-pack": __props.iconPack
22084
22086
  }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
22085
- withDirectives(createElementVNode("input", {
22087
+ isShowingPassword.value ? withDirectives((openBlock(), createElementBlock("input", {
22088
+ key: 2,
22089
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
22086
22090
  ref_key: "realInput",
22087
22091
  ref: realInput,
22088
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
22092
+ type: "text",
22089
22093
  autocomplete: __props.autocomplete ? "on" : "off",
22090
- type: __props.type || defaultType,
22091
22094
  placeholder: __props.placeholder,
22092
22095
  class: normalizeClass(unref$1(computedClassInput)),
22093
22096
  style: normalizeStyle(unref$1(computedStyleInput)),
@@ -22095,11 +22098,36 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22095
22098
  onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
22096
22099
  onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
22097
22100
  onClick: _cache[3] || (_cache[3] = ($event) => onClick2($event))
22098
- }, null, 46, _hoisted_1$g), [
22101
+ }, null, 46, _hoisted_1$g)), [
22102
+ [vModelText, unref$1(value)]
22103
+ ]) : withDirectives((openBlock(), createElementBlock("input", {
22104
+ key: 3,
22105
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef$1(value) ? value.value = $event : null),
22106
+ ref_key: "realInput",
22107
+ ref: realInput,
22108
+ autocomplete: __props.autocomplete ? "on" : "off",
22109
+ type: __props.type || defaultType,
22110
+ placeholder: __props.placeholder,
22111
+ class: normalizeClass(unref$1(computedClassInput)),
22112
+ style: normalizeStyle(unref$1(computedStyleInput)),
22113
+ disabled: __props.disabled,
22114
+ onChange: _cache[5] || (_cache[5] = ($event) => onChange2($event)),
22115
+ onInput: _cache[6] || (_cache[6] = ($event) => onInput($event)),
22116
+ onClick: _cache[7] || (_cache[7] = ($event) => onClick2($event))
22117
+ }, null, 46, _hoisted_2$c)), [
22099
22118
  [vModelDynamic, unref$1(value)]
22100
22119
  ]),
22101
- __props.iconRight ? (openBlock(), createBlock(CkIcon, {
22102
- key: 2,
22120
+ __props.type === "password" ? (openBlock(), createElementBlock("div", {
22121
+ key: 4,
22122
+ class: "show-password",
22123
+ onClick: _cache[8] || (_cache[8] = ($event) => isShowingPassword.value = !isShowingPassword.value)
22124
+ }, [
22125
+ createVNode(CkIcon, {
22126
+ icon: isShowingPassword.value ? "eye-slash" : "eye"
22127
+ }, null, 8, ["icon"])
22128
+ ])) : createCommentVNode("", true),
22129
+ __props.iconRight && __props.type !== "password" ? (openBlock(), createBlock(CkIcon, {
22130
+ key: 5,
22103
22131
  class: "ck-input__icon-right",
22104
22132
  color: "lightgrey",
22105
22133
  icon: __props.iconRight,
@@ -22109,7 +22137,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22109
22137
  };
22110
22138
  }
22111
22139
  });
22112
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-bd6a630e"]]);
22140
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-a97832ca"]]);
22113
22141
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
22114
22142
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
22115
22143
  props: {
@@ -23542,6 +23570,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23542
23570
  showRefreshBtn: { type: Boolean },
23543
23571
  hideItemsPerPage: { type: Boolean },
23544
23572
  notFullWidth: { type: Boolean },
23573
+ striped: { type: Boolean },
23545
23574
  cellPadding: null,
23546
23575
  cellPaddingY: null,
23547
23576
  noResultsText: null,
@@ -23629,6 +23658,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23629
23658
  list.push(`table__cell-padding-y--${props.cellPaddingY}`);
23630
23659
  if (props.notFullWidth)
23631
23660
  list.push("not-full-width");
23661
+ if (props.striped)
23662
+ list.push("striped-table");
23632
23663
  return list;
23633
23664
  });
23634
23665
  onMounted(() => {
@@ -23740,7 +23771,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23740
23771
  };
23741
23772
  }
23742
23773
  });
23743
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-577dcdfc"]]);
23774
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-6d9f4aad"]]);
23744
23775
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
23745
23776
  const _hoisted_1$a = ["color"];
23746
23777
  const _sfc_main$b = /* @__PURE__ */ defineComponent({