cleek 2.6.96 → 2.6.98

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
@@ -82456,6 +82456,8 @@ const _sfc_main$t = defineComponent$2({
82456
82456
  const defaultPackage = "font-awesome";
82457
82457
  if (!props.iconPack)
82458
82458
  return defaultPackage;
82459
+ if (props.iconPack === "cleek")
82460
+ return props.iconPack;
82459
82461
  if (props.iconPack === "feather")
82460
82462
  return props.iconPack;
82461
82463
  return defaultPackage;
@@ -82477,6 +82479,25 @@ const _sfc_main$t = defineComponent$2({
82477
82479
  function onClick(event) {
82478
82480
  emits("click", event);
82479
82481
  }
82482
+ const iconMask = computed$3(() => {
82483
+ const src = `/src/assets/icons/${props.icon}.svg`;
82484
+ return `mask: url(${src}) no-repeat center; -webkit-mask: url(${src}) no-repeat center;`;
82485
+ });
82486
+ const ckIconComputedClass = computed$3(() => {
82487
+ const classes = [];
82488
+ if (!props.color) {
82489
+ classes.push(`ck-component__color--primary`);
82490
+ } else if (props.color && hooks9.isColorTemplateVariable(props.color)) {
82491
+ classes.push(`ck-component__color-background--${props.color}`);
82492
+ }
82493
+ if (props.size)
82494
+ classes.push(`ck-icon__cleek-small`);
82495
+ if (props.size === "m")
82496
+ classes.push(`ck-icon__cleek-medium`);
82497
+ if (props.size === "l")
82498
+ classes.push(`ck-icon__cleek-large`);
82499
+ return classes;
82500
+ });
82480
82501
  return (_ctx, _cache) => {
82481
82502
  return openBlock$2(), createElementBlock$2("div", {
82482
82503
  class: normalizeClass$2(["ck-icon", computedClass.value]),
@@ -82491,13 +82512,17 @@ const _sfc_main$t = defineComponent$2({
82491
82512
  flip: _ctx.flip,
82492
82513
  spin: _ctx.spin,
82493
82514
  pulse: _ctx.pulse,
82494
- "fixed-width": _ctx.fixedWidth
82495
- }, null, 8, ["icon", "size", "rotation", "flip", "spin", "pulse", "fixed-width"])) : createCommentVNode$2("", true)
82515
+ fixedWidth: _ctx.fixedWidth
82516
+ }, null, 8, ["icon", "size", "rotation", "flip", "spin", "pulse", "fixedWidth"])) : computediconPack.value === "cleek" ? (openBlock$2(), createElementBlock$2("div", {
82517
+ key: 1,
82518
+ style: normalizeStyle$2(iconMask.value),
82519
+ class: normalizeClass$2([ckIconComputedClass.value, "ck-icon__cleek"])
82520
+ }, null, 6)) : createCommentVNode$2("", true)
82496
82521
  ], 6);
82497
82522
  };
82498
82523
  }
82499
82524
  });
82500
- var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-c8902898"]]);
82525
+ var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-6ceab692"]]);
82501
82526
  var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
82502
82527
  const _sfc_main$s = {};
82503
82528
  const _hoisted_1$m = { class: "ck-tr" };
@@ -89463,6 +89488,7 @@ const _sfc_main$e = defineComponent$2({
89463
89488
  const computedClass = computed$3(() => {
89464
89489
  const classes = [];
89465
89490
  classes.push(hooks9.getGroupClass(props, windowWidth.value));
89491
+ console.log("classes", classes);
89466
89492
  isOnPopup.value = document.querySelector(".ck-popup__content") ? true : false;
89467
89493
  if (isOnPopup.value)
89468
89494
  classes.push("ck-picker-popup");
@@ -89480,6 +89506,30 @@ const _sfc_main$e = defineComponent$2({
89480
89506
  const day = qmStr.padZeros(date.getDate(), 2);
89481
89507
  return `${year}-${month}-${day}`;
89482
89508
  }
89509
+ function setOpenStatus() {
89510
+ const container = document.querySelector(".ck-input-date");
89511
+ const pickerPopupElement = document.querySelector(".ck-picker-popup");
89512
+ const pickerCalendar = document.querySelector(".v3dp__popout-day");
89513
+ let rect = { y: 0 };
89514
+ const popupContent = document.querySelector(".ck-popup__slot-body");
89515
+ if (popupContent instanceof HTMLElement) {
89516
+ popupContent.style.overflow = "hidden";
89517
+ }
89518
+ if (container) {
89519
+ rect = container.getBoundingClientRect();
89520
+ }
89521
+ window.innerHeight - rect.y;
89522
+ if (pickerPopupElement && pickerCalendar) {
89523
+ pickerCalendar.setAttribute("style", `top: ${rect.y + 60}px;`);
89524
+ pickerPopupElement.setAttribute("style", `overflow: hidden;`);
89525
+ }
89526
+ }
89527
+ function setClosedStatus() {
89528
+ const popupContent = document.querySelector(".ck-popup__slot-body");
89529
+ if (popupContent instanceof HTMLElement) {
89530
+ popupContent.style.overflow = "auto";
89531
+ }
89532
+ }
89483
89533
  return (_ctx, _cache) => {
89484
89534
  const _component_ck_label = resolveComponent$2("ck-label");
89485
89535
  const _component_ck_div = resolveComponent$2("ck-div");
@@ -89504,6 +89554,8 @@ const _sfc_main$e = defineComponent$2({
89504
89554
  modelValue: inputValue.value,
89505
89555
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputValue.value = $event),
89506
89556
  onChange: _cache[1] || (_cache[1] = ($event) => emits("change", inputValue.value)),
89557
+ onOpened: setOpenStatus,
89558
+ onClosed: setClosedStatus,
89507
89559
  inputFormat: "dd-MM-yyyy"
89508
89560
  }, null, 8, ["modelValue"])
89509
89561
  ])
@@ -89514,7 +89566,7 @@ const _sfc_main$e = defineComponent$2({
89514
89566
  };
89515
89567
  }
89516
89568
  });
89517
- var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-6d447a03"]]);
89569
+ var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-09299fcb"]]);
89518
89570
  const _sfc_main$d = defineComponent$2({
89519
89571
  __name: "ck-input-time",
89520
89572
  props: {
@@ -89718,12 +89770,16 @@ const _sfc_main$a = defineComponent$2({
89718
89770
  const { windowWidth } = useWindowWidth();
89719
89771
  let cleekOptions2 = ref$1();
89720
89772
  const computedStyle = computed$3(() => {
89773
+ var _a;
89721
89774
  const list = [];
89722
89775
  if (props.widthBreaks) {
89723
89776
  const width = hooks9.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
89724
89777
  if (width)
89725
89778
  list.push({ width });
89726
89779
  }
89780
+ const gap = props.gap || ((_a = cleekOptions2.value) == null ? void 0 : _a.div.gap);
89781
+ if (gap)
89782
+ list.push({ gap });
89727
89783
  if (props.block)
89728
89784
  list.push({ display: "block" });
89729
89785
  return list;
@@ -90234,7 +90290,7 @@ const _sfc_main$7 = defineComponent$2({
90234
90290
  };
90235
90291
  }
90236
90292
  });
90237
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5356813e"]]);
90293
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-29788932"]]);
90238
90294
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
90239
90295
  const _hoisted_1$6 = {
90240
90296
  key: 0,