cleek 2.6.2 → 2.6.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
@@ -47293,7 +47293,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
47293
47293
  setup(__props, { emit: emits }) {
47294
47294
  const props = __props;
47295
47295
  const { windowWidth } = useWindowWidth();
47296
- const defaultButtonType2 = "outlined";
47296
+ const defaultButtonType = "outlined";
47297
47297
  const defaultColor = "primary";
47298
47298
  const defaultAlign = "left";
47299
47299
  let cleekOptions2 = ref();
@@ -47302,7 +47302,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent$1({
47302
47302
  return props.type;
47303
47303
  if (cleekOptions2.value)
47304
47304
  return cleekOptions2.value.button.type;
47305
- return defaultButtonType2;
47305
+ return defaultButtonType;
47306
47306
  });
47307
47307
  const computedClass = computed$3(() => {
47308
47308
  var _a;
@@ -58501,6 +58501,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
58501
58501
  icon: null,
58502
58502
  iconRight: null,
58503
58503
  iconPack: null,
58504
+ iconColor: null,
58504
58505
  group: null,
58505
58506
  groupVertical: null,
58506
58507
  widthBreaks: null,
@@ -58656,10 +58657,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
58656
58657
  __props.icon ? (openBlock$1(), createBlock$1(CkIcon, {
58657
58658
  key: 1,
58658
58659
  class: "ck-input__icon-left",
58659
- color: "lightgrey",
58660
+ color: __props.iconColor ? __props.iconColor : "lightgrey",
58660
58661
  icon: __props.icon,
58661
58662
  "icon-pack": __props.iconPack
58662
- }, null, 8, ["icon", "icon-pack"])) : createCommentVNode$1("", true),
58663
+ }, null, 8, ["color", "icon", "icon-pack"])) : createCommentVNode$1("", true),
58663
58664
  __props.type === "date" ? (openBlock$1(), createBlock$1(_sfc_main$n, {
58664
58665
  key: 2,
58665
58666
  modelValue: unref$2(value),
@@ -58731,7 +58732,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent$1({
58731
58732
  };
58732
58733
  }
58733
58734
  });
58734
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-4512bf75"]]);
58735
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-1c9b6592"]]);
58735
58736
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
58736
58737
  const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
58737
58738
  props: {
@@ -58790,7 +58791,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
58790
58791
  if (props.layout)
58791
58792
  list.push(props.layout);
58792
58793
  if (props.version)
58793
- list.push(`version-${props.version}`);
58794
+ list.push(`version--${props.version}`);
58794
58795
  return list;
58795
58796
  });
58796
58797
  function checkRefresh() {
@@ -58831,8 +58832,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
58831
58832
  placeholder: "Buscar...",
58832
58833
  group: unref$2(searchGroupValue),
58833
58834
  layout: __props.layout,
58835
+ borderColor: __props.version === "colored" ? "white" : "",
58836
+ iconColor: __props.version === "colored" ? "primary " : "",
58834
58837
  onInput: _cache[2] || (_cache[2] = ($event) => checkRefresh())
58835
- }, null, 8, ["modelValue", "group", "layout"])) : createCommentVNode$1("", true),
58838
+ }, null, 8, ["modelValue", "group", "layout", "borderColor", "iconColor"])) : createCommentVNode$1("", true),
58836
58839
  __props.hasColumnsManager ? (openBlock$1(), createBlock$1(CkButton, {
58837
58840
  key: 3,
58838
58841
  icon: "columns",
@@ -58847,7 +58850,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
58847
58850
  };
58848
58851
  }
58849
58852
  });
58850
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-c44ec0d4"]]);
58853
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-fcbbe636"]]);
58851
58854
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
58852
58855
  const _withScopeId$4 = (n) => (pushScopeId$1("data-v-02d0ab88"), n = n(), popScopeId$1(), n);
58853
58856
  const _hoisted_1$g = { class: "ck-table__pagination" };
@@ -60185,6 +60188,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
60185
60188
  setup(__props, { emit: emits }) {
60186
60189
  const props = __props;
60187
60190
  let cleekOptions2 = ref();
60191
+ const defaultTableVersion = "default";
60188
60192
  const defaultItemsPerPage = 40;
60189
60193
  const { windowWidth } = useWindowWidth();
60190
60194
  const isPopupActive = ref({
@@ -60196,12 +60200,12 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
60196
60200
  return "No se encontraron resultados";
60197
60201
  return "No results found";
60198
60202
  });
60199
- computed$3(() => {
60203
+ const realTableVersion = computed$3(() => {
60200
60204
  if (props.version)
60201
60205
  return props.version;
60202
60206
  if (cleekOptions2.value)
60203
60207
  return cleekOptions2.value.table.version;
60204
- return defaultButtonType;
60208
+ return defaultTableVersion;
60205
60209
  });
60206
60210
  const columnsAreObj = computed$3(() => !qmObj.isArray(props.columns || []));
60207
60211
  const columnsArray = computed$3(() => {
@@ -60248,7 +60252,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
60248
60252
  return props.layout || ((_a = cleekOptions2.value) == null ? void 0 : _a.styles.layout);
60249
60253
  });
60250
60254
  const isMobileVisible = computed$3(() => {
60251
- return windowWidth.value <= (props.mobileMaxWidth || 0);
60255
+ return windowWidth.value <= (+props.mobileMaxWidth || 0);
60252
60256
  });
60253
60257
  function refreshList(pageChange = false) {
60254
60258
  emits("refreshList", pageChange);
@@ -60302,6 +60306,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
60302
60306
  columns: __props.columns || []
60303
60307
  }, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode$1("", true),
60304
60308
  createElementVNode("div", _hoisted_1$c, [
60309
+ createTextVNode$1("realTableVersion " + toDisplayString(unref$2(realTableVersion)), 1),
60305
60310
  _ctx.$slots.header || !__props.hideHeaderActions ? (openBlock$1(), createElementBlock$1("div", _hoisted_2$8, [
60306
60311
  createVNode$1(TableHeaderItems, {
60307
60312
  search: unref$2(searchLocal),
@@ -60314,9 +60319,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
60314
60319
  showRefreshBtn: __props.showRefreshBtn,
60315
60320
  hideItemsPerPage: __props.hideItemsPerPage,
60316
60321
  layout: unref$2(realLayout),
60322
+ version: unref$2(realTableVersion),
60317
60323
  onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
60318
60324
  onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
60319
- }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout"]),
60325
+ }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version"]),
60320
60326
  _ctx.$slots.header ? (openBlock$1(), createElementBlock$1("div", _hoisted_3$6, [
60321
60327
  renderSlot$1(_ctx.$slots, "header", {}, void 0, true)
60322
60328
  ])) : createCommentVNode$1("", true)
@@ -60383,7 +60389,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
60383
60389
  };
60384
60390
  }
60385
60391
  });
60386
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-748cd312"]]);
60392
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-4a23a294"]]);
60387
60393
  var ckPagination_vue_vue_type_style_index_0_lang = "";
60388
60394
  const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
60389
60395
  props: {