cleek 2.7.2 → 2.7.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
@@ -82908,7 +82908,7 @@ var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
82908
82908
  const _hoisted_1$i = ["autocomplete", "placeholder", "disabled"];
82909
82909
  const _hoisted_2$c = ["autocomplete", "type", "placeholder", "disabled"];
82910
82910
  const defaultType = "text";
82911
- const defaultDelayChangeTime = 300;
82911
+ const defaultDelayChangeTime$1 = 300;
82912
82912
  const _sfc_main$n = defineComponent$2({
82913
82913
  __name: "ck-input",
82914
82914
  props: {
@@ -83051,10 +83051,9 @@ const _sfc_main$n = defineComponent$2({
83051
83051
  }
83052
83052
  function checkSearchTime(oldValue) {
83053
83053
  setTimeout(() => {
83054
- if (value.value === oldValue) {
83054
+ if (value.value === oldValue)
83055
83055
  emits("delayChange", oldValue);
83056
- }
83057
- }, props.delayChangeTime || defaultDelayChangeTime);
83056
+ }, props.delayChangeTime || defaultDelayChangeTime$1);
83058
83057
  }
83059
83058
  onMounted$1(() => {
83060
83059
  cleekOptions2.value = hooks9.getCleekOptions(getCurrentInstance$1);
@@ -83143,7 +83142,7 @@ const _sfc_main$n = defineComponent$2({
83143
83142
  };
83144
83143
  }
83145
83144
  });
83146
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-8e1a7a6a"]]);
83145
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4fa8d186"]]);
83147
83146
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
83148
83147
  const _sfc_main$m = defineComponent$2({
83149
83148
  __name: "ck-table__header-items",
@@ -90410,21 +90409,19 @@ const _sfc_main$7 = defineComponent$2({
90410
90409
  const valueIsDefault = computed$3(() => {
90411
90410
  if (logicClearValue.value !== "auto")
90412
90411
  return value.value === logicClearValue.value;
90413
- switch (typeof props.modelValue) {
90414
- case "number":
90415
- return props.modelValue === 0;
90416
- case "string":
90417
- return props.modelValue === "";
90418
- case "object":
90419
- if (!props.modelValue)
90420
- return null;
90421
- if (props.modelValue.constructor === Array) {
90422
- return props.modelValue.length === 0;
90423
- }
90424
- return Object.keys(props.modelValue).length === 0;
90425
- default:
90426
- return props.modelValue === null;
90427
- }
90412
+ const currentValue = props.modelValue;
90413
+ if (typeof currentValue === "number")
90414
+ return currentValue === 0;
90415
+ if (typeof currentValue === "string")
90416
+ return currentValue === "";
90417
+ if (typeof currentValue === "object") {
90418
+ if (!currentValue)
90419
+ return currentValue === null;
90420
+ if (Array.isArray(currentValue))
90421
+ return currentValue.length === 0;
90422
+ return Object.keys(currentValue).length === 0;
90423
+ }
90424
+ return currentValue === null;
90428
90425
  });
90429
90426
  const isPlaceholderVisible = computed$3(() => {
90430
90427
  if (!props.placeholder)
@@ -90468,6 +90465,7 @@ const _sfc_main$7 = defineComponent$2({
90468
90465
  class: normalizeClass$2(["ck-select", computedClass.value]),
90469
90466
  style: normalizeStyle$2(computedStyle.value)
90470
90467
  }, [
90468
+ createTextVNode$2(" valueIsDefault " + toDisplayString$1(valueIsDefault.value) + " ", 1),
90471
90469
  _ctx.icon ? (openBlock$2(), createBlock$2(CkIcon, {
90472
90470
  key: 0,
90473
90471
  class: "ck-select__icon-left",
@@ -90521,7 +90519,7 @@ const _sfc_main$7 = defineComponent$2({
90521
90519
  };
90522
90520
  }
90523
90521
  });
90524
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-67c25d6a"]]);
90522
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-1b63c4b8"]]);
90525
90523
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
90526
90524
  const _hoisted_1$6 = {
90527
90525
  key: 0,
@@ -90815,6 +90813,7 @@ var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "d
90815
90813
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
90816
90814
  const _hoisted_1$3 = { class: "ck-textarea" };
90817
90815
  const _hoisted_2$2 = ["placeholder", "disabled"];
90816
+ const defaultDelayChangeTime = 300;
90818
90817
  const _sfc_main$3 = defineComponent$2({
90819
90818
  __name: "ck-textarea",
90820
90819
  props: {
@@ -90834,10 +90833,11 @@ const _sfc_main$3 = defineComponent$2({
90834
90833
  height: {},
90835
90834
  capitalize: { type: Boolean },
90836
90835
  autoSelect: { type: Boolean },
90836
+ delayChangeTime: {},
90837
90837
  label: {},
90838
90838
  labelAlign: {}
90839
90839
  },
90840
- emits: ["update:modelValue", "input", "change", "click"],
90840
+ emits: ["update:modelValue", "input", "change", "click", "delayChange"],
90841
90841
  setup(__props, { emit: emits }) {
90842
90842
  const props = __props;
90843
90843
  let cleekOptions2 = ref$1();
@@ -90851,6 +90851,7 @@ const _sfc_main$3 = defineComponent$2({
90851
90851
  if (props.capitalize)
90852
90852
  val = qmStr.capitalize(val);
90853
90853
  emits("update:modelValue", val);
90854
+ checkSearchTime(val);
90854
90855
  }
90855
90856
  });
90856
90857
  const computedClassTextarea = computed$3(() => {
@@ -90902,6 +90903,12 @@ const _sfc_main$3 = defineComponent$2({
90902
90903
  const onChange2 = (event) => {
90903
90904
  emits("change", event);
90904
90905
  };
90906
+ function checkSearchTime(oldValue) {
90907
+ setTimeout(() => {
90908
+ if (inputValue.value === oldValue)
90909
+ emits("delayChange", oldValue);
90910
+ }, props.delayChangeTime || defaultDelayChangeTime);
90911
+ }
90905
90912
  onMounted$1(() => {
90906
90913
  cleekOptions2.value = hooks9.getCleekOptions(getCurrentInstance$1);
90907
90914
  });
@@ -90934,7 +90941,7 @@ const _sfc_main$3 = defineComponent$2({
90934
90941
  };
90935
90942
  }
90936
90943
  });
90937
- var ckTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-5814a9c1"]]);
90944
+ var ckTextarea = /* @__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