cleek 2.4.53 → 2.4.56

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, vModelRadio, vModelSelect, vModelCheckbox, Teleport } 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, vModelDynamic, renderList, vModelText, withModifiers, Teleport, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
33
33
  function getDevtoolsGlobalHook() {
34
34
  return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
35
35
  }
@@ -23215,10 +23215,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23215
23215
  });
23216
23216
  var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-113ac83f"]]);
23217
23217
  var ckPopup_vue_vue_type_style_index_0_lang = "";
23218
- const _hoisted_1$d = {
23219
- key: 0,
23220
- class: "ck-popup"
23221
- };
23218
+ const _hoisted_1$d = { class: "ck-popup" };
23222
23219
  const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
23223
23220
  const _hoisted_3$5 = {
23224
23221
  key: 0,
@@ -23377,62 +23374,67 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
23377
23374
  cleekOptions2.value = hooks8.getCleekOptions(getCurrentInstance);
23378
23375
  });
23379
23376
  return (_ctx, _cache) => {
23380
- return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
23381
- _hoisted_2$9,
23382
- createElementVNode("div", {
23383
- class: "popup-container",
23384
- onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
23385
- }, [
23377
+ return unref$1(isActive) ? (openBlock(), createBlock(Teleport, {
23378
+ key: 0,
23379
+ to: "body"
23380
+ }, [
23381
+ createElementVNode("div", _hoisted_1$d, [
23382
+ _hoisted_2$9,
23386
23383
  createElementVNode("div", {
23387
- class: normalizeClass(["ck-popup__content", unref$1(computedClassContent)]),
23388
- onClick: _cache[3] || (_cache[3] = withModifiers(() => {
23389
- }, ["stop"])),
23390
- style: normalizeStyle(unref$1(computedStyleContent))
23384
+ class: "popup-container",
23385
+ onClick: _cache[4] || (_cache[4] = ($event) => onBgClick())
23391
23386
  }, [
23392
23387
  createElementVNode("div", {
23393
- class: normalizeClass(["ck-popup__slot-header", unref$1(computedClassHeader)]),
23394
- style: normalizeStyle(unref$1(computedStyleHeader))
23388
+ class: normalizeClass(["ck-popup__content", unref$1(computedClassContent)]),
23389
+ onClick: _cache[3] || (_cache[3] = withModifiers(() => {
23390
+ }, ["stop"])),
23391
+ style: normalizeStyle(unref$1(computedStyleContent))
23395
23392
  }, [
23396
- __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
23397
- renderSlot(_ctx.$slots, "header"),
23398
- unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
23399
- key: 1,
23400
- class: "icon-close",
23401
- icon: "times",
23402
- onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
23403
- })) : createCommentVNode("", true)
23404
- ], 6),
23405
- createElementVNode("div", _hoisted_4$5, [
23406
- renderSlot(_ctx.$slots, "default")
23407
- ]),
23408
- _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
23409
- renderSlot(_ctx.$slots, "footer"),
23410
- __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
23411
- __props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
23412
- key: 0,
23413
- class: "cancel-button",
23414
- color: "danger",
23415
- type: unref$1(realCancelBtnType),
23416
- onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
23417
- }, {
23418
- default: withCtx(() => [
23419
- createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
23420
- ]),
23421
- _: 1
23422
- }, 8, ["type"])) : createCommentVNode("", true),
23423
- __props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
23393
+ createElementVNode("div", {
23394
+ class: normalizeClass(["ck-popup__slot-header", unref$1(computedClassHeader)]),
23395
+ style: normalizeStyle(unref$1(computedStyleHeader))
23396
+ }, [
23397
+ __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3$5, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
23398
+ renderSlot(_ctx.$slots, "header"),
23399
+ unref$1(isCloseBtnVisible) ? (openBlock(), createBlock(CkIcon, {
23424
23400
  key: 1,
23425
- type: unref$1(realAcceptBtnType),
23426
- onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
23427
- }, {
23428
- default: withCtx(() => [
23429
- createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
23430
- ]),
23431
- _: 1
23432
- }, 8, ["type"])) : createCommentVNode("", true)
23401
+ class: "icon-close",
23402
+ icon: "times",
23403
+ onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
23404
+ })) : createCommentVNode("", true)
23405
+ ], 6),
23406
+ createElementVNode("div", _hoisted_4$5, [
23407
+ renderSlot(_ctx.$slots, "default")
23408
+ ]),
23409
+ _ctx.$slots.footer || __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
23410
+ renderSlot(_ctx.$slots, "footer"),
23411
+ __props.confirmButtons || __props.acceptButton || __props.cancelButton ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
23412
+ __props.confirmButtons || __props.cancelButton ? (openBlock(), createBlock(CkButton, {
23413
+ key: 0,
23414
+ class: "cancel-button",
23415
+ color: "danger",
23416
+ type: unref$1(realCancelBtnType),
23417
+ onClick: _cache[1] || (_cache[1] = ($event) => onCancel())
23418
+ }, {
23419
+ default: withCtx(() => [
23420
+ createTextVNode(toDisplayString(unref$1(realCancelBtnText)), 1)
23421
+ ]),
23422
+ _: 1
23423
+ }, 8, ["type"])) : createCommentVNode("", true),
23424
+ __props.confirmButtons || __props.acceptButton ? (openBlock(), createBlock(CkButton, {
23425
+ key: 1,
23426
+ type: unref$1(realAcceptBtnType),
23427
+ onClick: _cache[2] || (_cache[2] = ($event) => onAccept())
23428
+ }, {
23429
+ default: withCtx(() => [
23430
+ createTextVNode(toDisplayString(unref$1(realAcceptBtnText)), 1)
23431
+ ]),
23432
+ _: 1
23433
+ }, 8, ["type"])) : createCommentVNode("", true)
23434
+ ])) : createCommentVNode("", true)
23433
23435
  ])) : createCommentVNode("", true)
23434
- ])) : createCommentVNode("", true)
23435
- ], 6)
23436
+ ], 6)
23437
+ ])
23436
23438
  ])
23437
23439
  ])) : createCommentVNode("", true);
23438
23440
  };
@@ -23540,6 +23542,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23540
23542
  showRefreshBtn: { type: Boolean },
23541
23543
  hideItemsPerPage: { type: Boolean },
23542
23544
  notFullWidth: { type: Boolean },
23545
+ striped: { type: Boolean },
23543
23546
  cellPadding: null,
23544
23547
  cellPaddingY: null,
23545
23548
  noResultsText: null,
@@ -23627,6 +23630,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23627
23630
  list.push(`table__cell-padding-y--${props.cellPaddingY}`);
23628
23631
  if (props.notFullWidth)
23629
23632
  list.push("not-full-width");
23633
+ if (props.striped)
23634
+ list.push("striped-table");
23630
23635
  return list;
23631
23636
  });
23632
23637
  onMounted(() => {
@@ -23738,7 +23743,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
23738
23743
  };
23739
23744
  }
23740
23745
  });
23741
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-64f91af6"]]);
23746
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-b3f534b4"]]);
23742
23747
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
23743
23748
  const _hoisted_1$a = ["color"];
23744
23749
  const _sfc_main$b = /* @__PURE__ */ defineComponent({