cleek 2.6.99 → 2.6.102

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
@@ -83179,10 +83179,11 @@ const _sfc_main$l = defineComponent$2({
83179
83179
  layout: _ctx.layout,
83180
83180
  onClick: _cache[0] || (_cache[0] = ($event) => emits("refreshList", true))
83181
83181
  }, null, 8, ["layout"])) : createCommentVNode$2("", true),
83182
- createElementVNode("div", {
83182
+ _ctx.isLoading && _ctx.listLength === 0 || itemsPerPageIsVisible.value ? (openBlock$2(), createElementBlock$2("div", {
83183
+ key: 1,
83183
83184
  class: normalizeClass$2(["items-per-page", { "ck-component__group--left": isSearchVisible.value }])
83184
83185
  }, [
83185
- _ctx.isLoading !== false && _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkIcon, {
83186
+ _ctx.isLoading && _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkIcon, {
83186
83187
  key: 0,
83187
83188
  class: "px-2",
83188
83189
  icon: "spinner",
@@ -83190,9 +83191,9 @@ const _sfc_main$l = defineComponent$2({
83190
83191
  })) : itemsPerPageIsVisible.value ? (openBlock$2(), createElementBlock$2(Fragment$2, { key: 1 }, [
83191
83192
  createTextVNode$2(toDisplayString$1(itemsPerPageStart.value) + " - " + toDisplayString$1(itemsPerPageEnd.value) + " de " + toDisplayString$1(_ctx.listLength), 1)
83192
83193
  ], 64)) : createCommentVNode$2("", true)
83193
- ], 2),
83194
+ ], 2)) : createCommentVNode$2("", true),
83194
83195
  isSearchVisible.value ? (openBlock$2(), createBlock$2(CkInput, {
83195
- key: 1,
83196
+ key: 2,
83196
83197
  modelValue: searchLocal.value,
83197
83198
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchLocal.value = $event),
83198
83199
  class: "ck-table--search-input",
@@ -83204,7 +83205,7 @@ const _sfc_main$l = defineComponent$2({
83204
83205
  onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
83205
83206
  }, null, 8, ["modelValue", "group", "layout", "borderColor"])) : createCommentVNode$2("", true),
83206
83207
  _ctx.hasColumnsManager ? (openBlock$2(), createBlock$2(CkButton, {
83207
- key: 2,
83208
+ key: 3,
83208
83209
  icon: "columns",
83209
83210
  type: "filled",
83210
83211
  title: "Administrador de columnas",
@@ -83217,7 +83218,7 @@ const _sfc_main$l = defineComponent$2({
83217
83218
  };
83218
83219
  }
83219
83220
  });
83220
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-2c4ead89"]]);
83221
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-96a5a018"]]);
83221
83222
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
83222
83223
  const _withScopeId$4 = (n2) => (pushScopeId$2("data-v-708d6b7f"), n2 = n2(), popScopeId$2(), n2);
83223
83224
  const _hoisted_1$h = { class: "ck-table__pagination" };
@@ -84069,6 +84070,7 @@ const _sfc_main$g = defineComponent$2({
84069
84070
  hideHeaderActions: { type: Boolean },
84070
84071
  showRefreshBtn: { type: Boolean },
84071
84072
  hideItemsPerPage: { type: Boolean },
84073
+ darkMode: {},
84072
84074
  notFullWidth: { type: Boolean },
84073
84075
  striped: { type: Boolean },
84074
84076
  cellPadding: {},
@@ -84089,6 +84091,12 @@ const _sfc_main$g = defineComponent$2({
84089
84091
  const isPopupActive = ref$1({
84090
84092
  columnsManager: false
84091
84093
  });
84094
+ const isDarkModeActive = computed$3(() => {
84095
+ var _a;
84096
+ if (typeof props.darkMode !== "undefined")
84097
+ return props.darkMode;
84098
+ return (_a = cleekOptions2.value) == null ? void 0 : _a.darkMode;
84099
+ });
84092
84100
  const defaultLoadingText = computed$3(() => {
84093
84101
  var _a;
84094
84102
  if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
@@ -84111,8 +84119,13 @@ const _sfc_main$g = defineComponent$2({
84111
84119
  const realHeaderTextColor = computed$3(() => {
84112
84120
  if (props.headerTextColor)
84113
84121
  return props.headerTextColor;
84114
- if (cleekOptions2.value)
84115
- return cleekOptions2.value.table.headerTextColor;
84122
+ if (cleekOptions2.value) {
84123
+ if (cleekOptions2.value.table.headerTextColor) {
84124
+ return cleekOptions2.value.table.headerTextColor;
84125
+ }
84126
+ if (isDarkModeActive.value)
84127
+ return "#ccc";
84128
+ }
84116
84129
  });
84117
84130
  const realHeaderBackgroundColor = computed$3(() => {
84118
84131
  if (props.headerBackgroundColor)
@@ -84186,6 +84199,8 @@ const _sfc_main$g = defineComponent$2({
84186
84199
  list.push(`table__cell-padding-y--${props.cellPaddingY}`);
84187
84200
  if (props.notFullWidth)
84188
84201
  list.push("not-full-width");
84202
+ if (isDarkModeActive.value)
84203
+ list.push("dark-mode");
84189
84204
  const striped = props.striped || ((_b = (_a = cleekOptions2.value) == null ? void 0 : _a.table) == null ? void 0 : _b.striped);
84190
84205
  if (striped)
84191
84206
  list.push("striped-table");
@@ -84308,7 +84323,7 @@ const _sfc_main$g = defineComponent$2({
84308
84323
  };
84309
84324
  }
84310
84325
  });
84311
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-6bbd3c3e"]]);
84326
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-0142804e"]]);
84312
84327
  var ckPagination_vue_vue_type_style_index_0_lang = "";
84313
84328
  const _sfc_main$f = defineComponent$2({
84314
84329
  __name: "ck-pagination",
@@ -89588,7 +89603,7 @@ const _sfc_main$e = defineComponent$2({
89588
89603
  };
89589
89604
  }
89590
89605
  });
89591
- var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-5b945a48"]]);
89606
+ var ckInputDate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-32a61f84"]]);
89592
89607
  const _sfc_main$d = defineComponent$2({
89593
89608
  __name: "ck-input-time",
89594
89609
  props: {
@@ -90085,6 +90100,7 @@ const _sfc_main$7 = defineComponent$2({
90085
90100
  icon: {},
90086
90101
  iconRight: {},
90087
90102
  iconPack: {},
90103
+ iconColor: {},
90088
90104
  label: {},
90089
90105
  labelAlign: {},
90090
90106
  placeholder: {},
@@ -90263,17 +90279,17 @@ const _sfc_main$7 = defineComponent$2({
90263
90279
  _ctx.icon ? (openBlock$2(), createBlock$2(CkIcon, {
90264
90280
  key: 0,
90265
90281
  class: "ck-select__icon-left",
90266
- color: "lightgrey",
90267
90282
  icon: _ctx.icon,
90268
- "icon-pack": _ctx.iconPack
90269
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode$2("", true),
90283
+ "icon-pack": _ctx.iconPack,
90284
+ color: _ctx.iconColor ? _ctx.iconColor : "lightgrey"
90285
+ }, null, 8, ["icon", "icon-pack", "color"])) : createCommentVNode$2("", true),
90270
90286
  _ctx.iconRight ? (openBlock$2(), createBlock$2(CkIcon, {
90271
90287
  key: 1,
90272
90288
  class: "ck-select__icon-right",
90273
- color: "lightgrey",
90274
90289
  icon: _ctx.iconRight,
90275
- "icon-pack": _ctx.iconPack
90276
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode$2("", true),
90290
+ "icon-pack": _ctx.iconPack,
90291
+ color: _ctx.iconColor ? _ctx.iconColor : "lightgrey"
90292
+ }, null, 8, ["icon", "icon-pack", "color"])) : createCommentVNode$2("", true),
90277
90293
  isClearBtnVisible.value ? (openBlock$2(), createElementBlock$2("div", {
90278
90294
  key: 2,
90279
90295
  class: "ck-select__clear-btn",
@@ -90312,7 +90328,7 @@ const _sfc_main$7 = defineComponent$2({
90312
90328
  };
90313
90329
  }
90314
90330
  });
90315
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-29788932"]]);
90331
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-775ff419"]]);
90316
90332
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
90317
90333
  const _hoisted_1$6 = {
90318
90334
  key: 0,
@@ -90927,7 +90943,7 @@ const _sfc_main = defineComponent$2({
90927
90943
  }
90928
90944
  });
90929
90945
  var CkNotifyComponent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-905c7058"]]);
90930
- const defaultDuration = 2e3;
90946
+ const defaultDuration = 3e3;
90931
90947
  var ckNotify = {
90932
90948
  alert(msg) {
90933
90949
  this.alertOptions({