cleek 2.1.9 → 2.1.13

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.
@@ -1,7 +1,8 @@
1
1
  *
2
- box-sizing border-box
2
+ h1, h2, h3, h4, h5, h6, div, span
3
3
  margin 0
4
4
  padding 0
5
+ box-sizing border-box
5
6
  a
6
7
  color unset
7
8
  text-decoration unset
package/dist/cleek.es.js CHANGED
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, onMounted, getCurrentInstance, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, withCtx, createTextVNode, toDisplayString, withDirectives, isRef as isRef$1, vModelDynamic, createVNode, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
20
+ import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, renderSlot, normalizeClass, createCommentVNode, computed as computed$2, normalizeStyle, unref as unref$1, watch, h, createBlock, Teleport, createVNode, createTextVNode, toDisplayString, onMounted, getCurrentInstance, mergeProps, withKeys, withModifiers, pushScopeId, popScopeId, withCtx, withDirectives, isRef as isRef$1, vModelDynamic, Fragment, renderList, vModelRadio, vModelSelect, vModelCheckbox, vModelText } from "vue";
21
21
  var ckDropdown_vue_vue_type_style_index_0_scoped_true_lang = "";
22
22
  var _export_sfc = (sfc, props) => {
23
23
  const target = sfc.__vccOpts || sfc;
@@ -26,8 +26,8 @@ var _export_sfc = (sfc, props) => {
26
26
  }
27
27
  return target;
28
28
  };
29
- const _hoisted_1$j = { class: "ck-dropdown" };
30
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
29
+ const _hoisted_1$k = { class: "ck-dropdown" };
30
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
31
31
  props: {
32
32
  triggerType: { type: String, default: "click" },
33
33
  dark: { type: Boolean, default: false }
@@ -49,7 +49,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
49
49
  isOpen.value = true;
50
50
  }
51
51
  return (_ctx, _cache) => {
52
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
52
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
53
53
  createElementVNode("div", {
54
54
  class: "ck-dropdown__trigger",
55
55
  onClick: _cache[0] || (_cache[0] = ($event) => openClose())
@@ -71,9 +71,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
71
71
  };
72
72
  }
73
73
  });
74
- var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-64a91fb4"]]);
74
+ var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-64a91fb4"]]);
75
75
  var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
76
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
76
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
77
77
  props: {
78
78
  padding: { type: String, default: 0 },
79
79
  position: { type: String, default: "fixed" }
@@ -108,77 +108,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
108
108
  };
109
109
  }
110
110
  });
111
- var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5024db6a"]]);
112
- var validators = {
113
- size: (type) => {
114
- return ["", "xs", "s", "m", "l", "xl"].includes(type);
115
- },
116
- group: (type) => {
117
- return ["", "left", "right", "center"].includes(type);
118
- },
119
- groupVertical: (type) => {
120
- return ["top", "bottom", "center"].includes(type);
121
- },
122
- align: (type) => {
123
- return ["left", "center", "right"].includes(type);
124
- },
125
- buttonType: (type) => {
126
- return ["filled", "outlined", "flat"].includes(type);
127
- },
128
- inputType: (type) => {
129
- return ["text", "number", "date", "time", "password"].includes(type);
130
- },
131
- radioOptions: (options) => {
132
- let isValid = true;
133
- options.forEach((option) => {
134
- isValid = isValid && "label" in option && "value" in option;
135
- });
136
- return isValid;
137
- }
138
- };
139
- var functions$1 = {
140
- getGroupClass({ group = "", groupVertical = "", groupBreak = "" } = {}) {
141
- const _screenSize = "";
142
- if (groupBreak && groupBreak === _screenSize)
143
- return [];
144
- const classList2 = [];
145
- if (group)
146
- classList2.push(`ck-component__group--${group}`);
147
- if (groupVertical)
148
- classList2.push(`ck-component__group-vertical--${groupVertical}`);
149
- return classList2;
150
- },
151
- isColorTemplateVariable(color) {
152
- if (color === "primary")
153
- return true;
154
- if (color === "secondary")
155
- return true;
156
- if (color === "success")
157
- return true;
158
- if (color === "warning")
159
- return true;
160
- if (color === "danger")
161
- return true;
162
- if (color === "dark")
163
- return true;
164
- if (color === "light")
165
- return true;
166
- return false;
167
- },
168
- isColumnDisplayed(column) {
169
- if (column.isDisplayed === false)
170
- return false;
171
- if (column.unchangeable) {
172
- if (column.isDisplayed === true)
173
- return true;
174
- return false;
175
- }
176
- return true;
177
- },
178
- getCleekOptions(getCurrentInstance2) {
179
- return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
180
- }
181
- };
111
+ var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5024db6a"]]);
182
112
  /*!
183
113
  * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
184
114
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -384,11 +314,11 @@ if (!w[NAMESPACE_IDENTIFIER].hooks)
384
314
  if (!w[NAMESPACE_IDENTIFIER].shims)
385
315
  w[NAMESPACE_IDENTIFIER].shims = [];
386
316
  var namespace = w[NAMESPACE_IDENTIFIER];
387
- var functions = [];
317
+ var functions$1 = [];
388
318
  var listener = function listener2() {
389
319
  DOCUMENT.removeEventListener("DOMContentLoaded", listener2);
390
320
  loaded = 1;
391
- functions.map(function(fn2) {
321
+ functions$1.map(function(fn2) {
392
322
  return fn2();
393
323
  });
394
324
  };
@@ -11299,7 +11229,7 @@ defineComponent({
11299
11229
  }
11300
11230
  });
11301
11231
  var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
11302
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
11232
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
11303
11233
  props: {
11304
11234
  icon: { type: [String, Array], default: "" },
11305
11235
  color: { type: String, default: "" },
@@ -11359,7 +11289,147 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
11359
11289
  };
11360
11290
  }
11361
11291
  });
11362
- var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-25801d7b"]]);
11292
+ var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-25801d7b"]]);
11293
+ var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
11294
+ const _hoisted_1$j = { class: "ck-notify__container" };
11295
+ const _hoisted_2$9 = { class: "ck-notify__title" };
11296
+ const _hoisted_3$6 = { class: "close-btn" };
11297
+ const _hoisted_4$4 = { class: "ck-notify__text" };
11298
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
11299
+ setup(__props, { expose }) {
11300
+ expose({
11301
+ ckNotify: ckNotify2,
11302
+ ckNotifySuccess,
11303
+ ckNotifyDanger,
11304
+ ckNotifyWarning
11305
+ });
11306
+ const isActive = ref(false);
11307
+ const globalTitle = ref("");
11308
+ const globalText = ref("");
11309
+ const globalColor = ref("");
11310
+ const defaultDuration = ref(2e3);
11311
+ function closeNotification() {
11312
+ isActive.value = false;
11313
+ }
11314
+ function ckNotify2({ text: text3 = "", title = "", color = "#ccc", duration = defaultDuration.value }) {
11315
+ console.log("openNotify", title);
11316
+ globalTitle.value = title;
11317
+ globalText.value = text3;
11318
+ globalColor.value = color;
11319
+ isActive.value = true;
11320
+ setTimeout(() => {
11321
+ closeNotification();
11322
+ }, duration);
11323
+ }
11324
+ function ckNotifySuccess(text3 = "", title = "\xC9xito") {
11325
+ ckNotify2({
11326
+ text: text3,
11327
+ title,
11328
+ color: "#66CC00"
11329
+ });
11330
+ }
11331
+ function ckNotifyDanger(text3 = "", title = "Error") {
11332
+ ckNotify2({ text: text3, title, color: "#FF3333" });
11333
+ }
11334
+ function ckNotifyWarning(text3 = "", title = "Atenci\xF3n") {
11335
+ ckNotify2({ text: text3, title, color: "#FFDD33" });
11336
+ }
11337
+ return (_ctx, _cache) => {
11338
+ return isActive.value ? (openBlock(), createBlock(Teleport, {
11339
+ key: 0,
11340
+ to: "body"
11341
+ }, [
11342
+ createElementVNode("div", _hoisted_1$j, [
11343
+ createElementVNode("div", {
11344
+ class: "ck-notify",
11345
+ style: normalizeStyle({ "background-color": globalColor.value }),
11346
+ onClick: _cache[0] || (_cache[0] = ($event) => closeNotification())
11347
+ }, [
11348
+ createElementVNode("div", _hoisted_2$9, [
11349
+ createElementVNode("div", _hoisted_3$6, [
11350
+ createVNode(ckIcon, { icon: "times" })
11351
+ ]),
11352
+ createTextVNode(toDisplayString(globalTitle.value), 1)
11353
+ ]),
11354
+ createElementVNode("div", _hoisted_4$4, toDisplayString(globalText.value), 1)
11355
+ ], 4)
11356
+ ])
11357
+ ])) : createCommentVNode("", true);
11358
+ };
11359
+ }
11360
+ });
11361
+ var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-33c8c0d8"]]);
11362
+ var validators = {
11363
+ size: (type) => {
11364
+ return ["", "xs", "s", "m", "l", "xl"].includes(type);
11365
+ },
11366
+ group: (type) => {
11367
+ return ["", "left", "right", "center"].includes(type);
11368
+ },
11369
+ groupVertical: (type) => {
11370
+ return ["top", "bottom", "center"].includes(type);
11371
+ },
11372
+ align: (type) => {
11373
+ return ["left", "center", "right"].includes(type);
11374
+ },
11375
+ buttonType: (type) => {
11376
+ return ["filled", "outlined", "flat"].includes(type);
11377
+ },
11378
+ inputType: (type) => {
11379
+ return ["text", "number", "date", "time", "password"].includes(type);
11380
+ },
11381
+ radioOptions: (options) => {
11382
+ let isValid = true;
11383
+ options.forEach((option) => {
11384
+ isValid = isValid && "label" in option && "value" in option;
11385
+ });
11386
+ return isValid;
11387
+ }
11388
+ };
11389
+ var functions = {
11390
+ getGroupClass({ group = "", groupVertical = "", groupBreak = "" } = {}) {
11391
+ const _screenSize = "";
11392
+ if (groupBreak && groupBreak === _screenSize)
11393
+ return [];
11394
+ const classList2 = [];
11395
+ if (group)
11396
+ classList2.push(`ck-component__group--${group}`);
11397
+ if (groupVertical)
11398
+ classList2.push(`ck-component__group-vertical--${groupVertical}`);
11399
+ return classList2;
11400
+ },
11401
+ isColorTemplateVariable(color) {
11402
+ if (color === "primary")
11403
+ return true;
11404
+ if (color === "secondary")
11405
+ return true;
11406
+ if (color === "success")
11407
+ return true;
11408
+ if (color === "warning")
11409
+ return true;
11410
+ if (color === "danger")
11411
+ return true;
11412
+ if (color === "dark")
11413
+ return true;
11414
+ if (color === "light")
11415
+ return true;
11416
+ return false;
11417
+ },
11418
+ isColumnDisplayed(column) {
11419
+ if (column.isDisplayed === false)
11420
+ return false;
11421
+ if (column.unchangeable) {
11422
+ if (column.isDisplayed === true)
11423
+ return true;
11424
+ return false;
11425
+ }
11426
+ return true;
11427
+ },
11428
+ getCleekOptions(getCurrentInstance2) {
11429
+ console.log("getCurrentInstance", getCurrentInstance2);
11430
+ return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
11431
+ }
11432
+ };
11363
11433
  var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
11364
11434
  const _hoisted_1$i = ["title", "aria-label", "disabled"];
11365
11435
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
@@ -11385,7 +11455,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
11385
11455
  const isMounted = ref(false);
11386
11456
  const computedClass = computed$2(() => {
11387
11457
  const classList2 = [];
11388
- classList2.push(functions$1.getGroupClass(props));
11458
+ classList2.push(functions.getGroupClass(props));
11389
11459
  if (props.color !== "primary") {
11390
11460
  if (props.type === "filled") {
11391
11461
  classList2.push(`ck-component__bg-color--${props.color}`);
@@ -12380,7 +12450,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12380
12450
  classList2.push("is-rounded");
12381
12451
  if (props.hasBorder) {
12382
12452
  classList2.push("ck-img__has-border");
12383
- if (functions$1.isColorTemplateVariable(realBorderColor.value)) {
12453
+ if (functions.isColorTemplateVariable(realBorderColor.value)) {
12384
12454
  classList2.push(`ck-component__border-color--${realBorderColor.value}`);
12385
12455
  }
12386
12456
  }
@@ -12397,7 +12467,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12397
12467
  if (props.radius)
12398
12468
  styleList.push({ "border-radius": props.radius });
12399
12469
  if (props.hasBorder) {
12400
- if (!functions$1.isColorTemplateVariable(realBorderColor.value)) {
12470
+ if (!functions.isColorTemplateVariable(realBorderColor.value)) {
12401
12471
  styleList.push({ "border-color": realBorderColor.value });
12402
12472
  }
12403
12473
  }
@@ -12424,7 +12494,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
12424
12494
  }
12425
12495
  function getImg(src) {
12426
12496
  let path = "";
12427
- const $cleekOptions = functions$1.getCleekOptions(getCurrentInstance);
12497
+ const $cleekOptions = functions.getCleekOptions(getCurrentInstance);
12428
12498
  if ($cleekOptions) {
12429
12499
  if ($cleekOptions.imgPath)
12430
12500
  path = $cleekOptions.imgPath;
@@ -12503,8 +12573,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12503
12573
  autoSelect: { type: Boolean, default: false }
12504
12574
  },
12505
12575
  emits: ["update:modelValue", "click", "input", "change"],
12506
- setup(__props, { emit: emits }) {
12576
+ setup(__props, { expose, emit: emits }) {
12507
12577
  const props = __props;
12578
+ expose({ setFocus, setSelect });
12579
+ const realInput = ref(null);
12508
12580
  const value = computed$2({
12509
12581
  get() {
12510
12582
  return props.modelValue;
@@ -12532,7 +12604,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12532
12604
  });
12533
12605
  const computedClassInput = computed$2(() => {
12534
12606
  const list = [];
12535
- list.push(functions$1.getGroupClass(props));
12607
+ list.push(functions.getGroupClass(props));
12536
12608
  if (props.icon)
12537
12609
  list.push("has-icon-left");
12538
12610
  if (props.iconRight)
@@ -12543,6 +12615,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12543
12615
  list.push("no-border");
12544
12616
  return list;
12545
12617
  });
12618
+ function setFocus() {
12619
+ realInput.value.focus();
12620
+ }
12621
+ function setSelect() {
12622
+ realInput.value.select();
12623
+ }
12546
12624
  return (_ctx, _cache) => {
12547
12625
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
12548
12626
  __props.label ? (openBlock(), createBlock(ckLabel, {
@@ -12563,6 +12641,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12563
12641
  "icon-pack": __props.iconPack
12564
12642
  }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
12565
12643
  withDirectives(createElementVNode("input", {
12644
+ ref_key: "realInput",
12645
+ ref: realInput,
12566
12646
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
12567
12647
  type: __props.type,
12568
12648
  placeholder: __props.placeholder,
@@ -12587,7 +12667,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
12587
12667
  };
12588
12668
  }
12589
12669
  });
12590
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-5db08b1e"]]);
12670
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-19dca096"]]);
12591
12671
  var ckPopup_vue_vue_type_style_index_0_lang = "";
12592
12672
  const _hoisted_1$c = {
12593
12673
  key: 0,
@@ -12622,7 +12702,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
12622
12702
  emits: ["update:modelValue", "cancel", "accept"],
12623
12703
  setup(__props, { emit: emits }) {
12624
12704
  const props = __props;
12625
- const value = computed$2({
12705
+ const isActive = computed$2({
12626
12706
  get() {
12627
12707
  return props.modelValue;
12628
12708
  },
@@ -12633,7 +12713,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
12633
12713
  function onCancel() {
12634
12714
  emits("cancel");
12635
12715
  if (!props.preventCloseOnCancel)
12636
- value.value = false;
12716
+ isActive.value = false;
12637
12717
  }
12638
12718
  function onAccept() {
12639
12719
  emits("accept");
@@ -12641,10 +12721,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
12641
12721
  function onBgClick() {
12642
12722
  if (props.notCloseByBg)
12643
12723
  return;
12644
- value.value = false;
12724
+ isActive.value = false;
12645
12725
  }
12646
12726
  return (_ctx, _cache) => {
12647
- return unref$1(value) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
12727
+ return unref$1(isActive) ? (openBlock(), createElementBlock("div", _hoisted_1$c, [
12648
12728
  _hoisted_2$6,
12649
12729
  createElementVNode("div", {
12650
12730
  class: "popup-container",
@@ -12657,12 +12737,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
12657
12737
  }, [
12658
12738
  createElementVNode("div", _hoisted_3$4, [
12659
12739
  __props.title ? (openBlock(), createElementBlock("h3", _hoisted_4$3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
12660
- renderSlot(_ctx.$slots, "header", { class: "ml-3" }),
12740
+ renderSlot(_ctx.$slots, "header"),
12661
12741
  !__props.notCloseBtn ? (openBlock(), createBlock(ckIcon, {
12662
12742
  key: 1,
12663
- class: "mr-3 close",
12743
+ class: "close",
12664
12744
  icon: "times",
12665
- onClick: _cache[0] || (_cache[0] = ($event) => value.value = false)
12745
+ onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
12666
12746
  })) : createCommentVNode("", true)
12667
12747
  ]),
12668
12748
  createElementVNode("div", _hoisted_5$1, [
@@ -12674,7 +12754,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
12674
12754
  createVNode(ckButton, {
12675
12755
  class: "cancel-button",
12676
12756
  onClick: _cache[1] || (_cache[1] = ($event) => onCancel()),
12677
- color: "danger"
12757
+ color: "danger",
12758
+ type: "flat"
12678
12759
  }, {
12679
12760
  default: withCtx(() => [
12680
12761
  _hoisted_8
@@ -13090,7 +13171,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13090
13171
  });
13091
13172
  const computedClass = computed$2(() => {
13092
13173
  const classList2 = [];
13093
- classList2.push(functions$1.getGroupClass(props));
13174
+ classList2.push(functions.getGroupClass(props));
13094
13175
  return classList2;
13095
13176
  });
13096
13177
  const computedStyle = computed$2(() => {
@@ -13193,7 +13274,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
13193
13274
  });
13194
13275
  var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-31af160a"]]);
13195
13276
  var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
13196
- const _withScopeId = (n) => (pushScopeId("data-v-35213eec"), n = n(), popScopeId(), n);
13277
+ const _withScopeId = (n) => (pushScopeId("data-v-b6a4dfaa"), n = n(), popScopeId(), n);
13197
13278
  const _hoisted_1$9 = ["disabled"];
13198
13279
  const _hoisted_2$4 = { class: "ck-switch__slider-container" };
13199
13280
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
@@ -13207,6 +13288,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13207
13288
  disabled: { type: Boolean, default: false },
13208
13289
  outlined: { type: Boolean, default: false },
13209
13290
  squared: { type: Boolean, default: false },
13291
+ size: { type: String, default: "m" },
13210
13292
  icon: { type: String, default: void 0 },
13211
13293
  iconPack: { type: String, default: void 0 }
13212
13294
  },
@@ -13227,6 +13309,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13227
13309
  list.push("is-squared");
13228
13310
  if (props.outlined)
13229
13311
  list.push("is-outlined");
13312
+ let size = "s";
13313
+ if (props.size === "m" || props.size === "l")
13314
+ size = props.size;
13315
+ list.push(`ck-switch--size-${size}`);
13230
13316
  return list;
13231
13317
  });
13232
13318
  const computedAttributes = computed$2(() => {
@@ -13235,6 +13321,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13235
13321
  tabindex: props.disabled ? void 0 : "0"
13236
13322
  };
13237
13323
  });
13324
+ const iconClass = computed$2(() => {
13325
+ const list = [];
13326
+ if (props.size && props.size !== "m") {
13327
+ list.push(`ck-switch__icon-size--${props.size}`);
13328
+ }
13329
+ return list;
13330
+ });
13238
13331
  function onTrigger2() {
13239
13332
  value.value = !value.value;
13240
13333
  }
@@ -13262,16 +13355,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13262
13355
  _hoisted_3$2,
13263
13356
  __props.icon && unref$1(value) ? (openBlock(), createBlock(ckIcon, {
13264
13357
  key: 0,
13265
- class: "ck-switch__icon-left",
13358
+ class: normalizeClass(["ck-switch__icon-left", unref$1(iconClass)]),
13266
13359
  icon: __props.icon,
13267
13360
  "icon-pack": __props.iconPack
13268
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true),
13361
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true),
13269
13362
  __props.icon && !unref$1(value) ? (openBlock(), createBlock(ckIcon, {
13270
13363
  key: 1,
13271
- class: "ck-switch__icon-right",
13364
+ class: normalizeClass(["ck-switch__icon-right", unref$1(iconClass)]),
13272
13365
  icon: __props.icon,
13273
13366
  "icon-pack": __props.iconPack
13274
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
13367
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode("", true)
13275
13368
  ]),
13276
13369
  _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_4$1, [
13277
13370
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -13280,7 +13373,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
13280
13373
  };
13281
13374
  }
13282
13375
  });
13283
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-35213eec"]]);
13376
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b6a4dfaa"]]);
13284
13377
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
13285
13378
  const _hoisted_1$8 = { class: "ck-switch-options__container-exterior" };
13286
13379
  const _hoisted_2$3 = ["onClick"];
@@ -13312,7 +13405,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
13312
13405
  });
13313
13406
  const computedClass = computed$2(() => {
13314
13407
  const classList2 = [];
13315
- classList2.push(functions$1.getGroupClass(props));
13408
+ classList2.push(functions.getGroupClass(props));
13316
13409
  return classList2;
13317
13410
  });
13318
13411
  const computedItemStyle = computed$2(() => {
@@ -13422,7 +13515,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13422
13515
  props: {
13423
13516
  search: { type: String, default: void 0 },
13424
13517
  hasColumnsManager: { type: Boolean, default: false },
13425
- hideRefreshBtn: { type: Boolean, required: true },
13518
+ showRefreshBtn: { type: Boolean, required: true },
13426
13519
  hideItemsPerPage: { type: Boolean, required: true },
13427
13520
  currentPage: { type: Number, required: true },
13428
13521
  itemsPerPage: { type: Number, required: true },
@@ -13454,6 +13547,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13454
13547
  const itemsPerPageIsVisible = computed$2(() => {
13455
13548
  return !props.hideItemsPerPage && props.listLength && props.currentPage;
13456
13549
  });
13550
+ const refreshBtnIsVisible = computed$2(() => {
13551
+ return itemsPerPageIsVisible.value || props.showRefreshBtn;
13552
+ });
13457
13553
  const searchGroupValue = computed$2(() => {
13458
13554
  if (itemsPerPageIsVisible.value && props.hasColumnsManager) {
13459
13555
  return "center";
@@ -13474,7 +13570,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13474
13570
  }
13475
13571
  return (_ctx, _cache) => {
13476
13572
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
13477
- !__props.hideRefreshBtn ? (openBlock(), createBlock(ckButton, {
13573
+ unref$1(refreshBtnIsVisible) ? (openBlock(), createBlock(ckButton, {
13478
13574
  key: 0,
13479
13575
  type: "flat",
13480
13576
  icon: "redo-alt",
@@ -13506,7 +13602,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
13506
13602
  };
13507
13603
  }
13508
13604
  });
13509
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-4f5cca80"]]);
13605
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-15c7bf13"]]);
13510
13606
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
13511
13607
  const _hoisted_1$4 = { class: "ck-table__pagination" };
13512
13608
  const _hoisted_2$2 = ["onClick"];
@@ -13669,7 +13765,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
13669
13765
  list.push({
13670
13766
  name: col.name,
13671
13767
  title: col.title,
13672
- value: functions$1.isColumnDisplayed(col)
13768
+ value: functions.isColumnDisplayed(col)
13673
13769
  });
13674
13770
  }
13675
13771
  });
@@ -13731,7 +13827,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13731
13827
  paginationAlign: { type: String, default: "center", validator: validators.align },
13732
13828
  search: { type: String, default: void 0 },
13733
13829
  hideHeaderActions: { type: Boolean, default: false },
13734
- hideRefreshBtn: { type: Boolean, default: false },
13830
+ showRefreshBtn: { type: Boolean, default: false },
13735
13831
  hideItemsPerPage: { type: Boolean, default: false },
13736
13832
  notFullWidth: { type: Boolean, default: false }
13737
13833
  },
@@ -13755,7 +13851,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13755
13851
  return arr;
13756
13852
  });
13757
13853
  const filteredColumnsList = computed$2(() => {
13758
- return columnsArray.value.filter(functions$1.isColumnDisplayed);
13854
+ return columnsArray.value.filter(functions.isColumnDisplayed);
13759
13855
  });
13760
13856
  const searchLocal = computed$2({
13761
13857
  get() {
@@ -13802,11 +13898,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13802
13898
  hasColumnsManager: __props.hasColumnsManager,
13803
13899
  itemsPerPage: __props.itemsPerPage,
13804
13900
  listLength: __props.listLength,
13805
- hideRefreshBtn: __props.hideRefreshBtn,
13901
+ showRefreshBtn: __props.showRefreshBtn,
13806
13902
  hideItemsPerPage: __props.hideItemsPerPage,
13807
13903
  onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
13808
13904
  onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
13809
- }, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "hideRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true),
13905
+ }, null, 8, ["search", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage"])) : createCommentVNode("", true),
13810
13906
  _ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_3, [
13811
13907
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
13812
13908
  ])) : createCommentVNode("", true)
@@ -13850,7 +13946,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
13850
13946
  };
13851
13947
  }
13852
13948
  });
13853
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-a5722810"]]);
13949
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-2c108c86"]]);
13854
13950
  var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
13855
13951
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13856
13952
  props: {
@@ -13909,7 +14005,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13909
14005
  const isColumnDisplayed = computed$2(() => {
13910
14006
  if (!props.col)
13911
14007
  return true;
13912
- return functions$1.isColumnDisplayed(props.col);
14008
+ return functions.isColumnDisplayed(props.col);
13913
14009
  });
13914
14010
  return (_ctx, _cache) => {
13915
14011
  return unref$1(isColumnDisplayed) ? (openBlock(), createElementBlock("td", {
@@ -16569,6 +16665,7 @@ var components = /* @__PURE__ */ Object.freeze({
16569
16665
  [Symbol.toStringTag]: "Module",
16570
16666
  ckDropdown,
16571
16667
  ckNavbar,
16668
+ ckNotify,
16572
16669
  ckButton,
16573
16670
  ckCheckbox,
16574
16671
  ckChip,
@@ -16623,4 +16720,4 @@ const install = function installCleek(app, options) {
16623
16720
  app.component(componentName, component);
16624
16721
  });
16625
16722
  };
16626
- export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
16723
+ export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$e as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };