cleek 2.3.13 → 2.3.16

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
@@ -11393,6 +11393,9 @@ var validators = {
11393
11393
  align: (type) => {
11394
11394
  return ["left", "center", "right"].includes(type);
11395
11395
  },
11396
+ verticalAlign: (type) => {
11397
+ return ["top", "center", "bottom"].includes(type);
11398
+ },
11396
11399
  buttonType: (type) => {
11397
11400
  return ["filled", "outlined", "flat"].includes(type);
11398
11401
  },
@@ -11805,7 +11808,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
11805
11808
  };
11806
11809
  }
11807
11810
  });
11808
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-77e1fa0a"]]);
11811
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-7b390746"]]);
11809
11812
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
11810
11813
  const _hoisted_1$d = { class: "ck-table__header-items" };
11811
11814
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
@@ -13363,7 +13366,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13363
13366
  showRefreshBtn: { type: Boolean, default: false },
13364
13367
  hideItemsPerPage: { type: Boolean, default: false },
13365
13368
  notFullWidth: { type: Boolean, default: false },
13366
- cellPadding: { type: String, "m": void 0 },
13369
+ cellPadding: { type: String, defaul: void 0 },
13370
+ cellPaddingY: { type: String, defaul: void 0 },
13367
13371
  mobileMaxWidth: { type: [Number, String], default: 800 }
13368
13372
  },
13369
13373
  emits: ["refreshList", "update:search", "update:currentPage"],
@@ -13376,15 +13380,24 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13376
13380
  });
13377
13381
  const columnsAreObj = computed$2(() => !qmObj2.isArray(props.columns));
13378
13382
  const columnsArray = computed$2(() => {
13379
- if (!columnsAreObj.value)
13380
- return props.columns;
13381
- const arr = Object.values(props.columns);
13382
- const keys = Object.keys(props.columns);
13383
- arr.forEach((col, index) => {
13384
- const key = keys[index];
13385
- col.name = key;
13383
+ if (columnsAreObj.value) {
13384
+ const arr = Object.values(props.columns);
13385
+ const keys = Object.keys(props.columns);
13386
+ arr.forEach((col, index) => {
13387
+ const key = keys[index];
13388
+ col.name = key;
13389
+ });
13390
+ return arr;
13391
+ }
13392
+ const newList = [];
13393
+ props.columns.forEach((col) => {
13394
+ if (typeof col === "string") {
13395
+ newList.push({ title: col });
13396
+ } else {
13397
+ newList.push(col);
13398
+ }
13386
13399
  });
13387
- return arr;
13400
+ return newList;
13388
13401
  });
13389
13402
  const filteredColumnsList = computed$2(() => {
13390
13403
  return columnsArray.value.filter(functions.isColumnDisplayed);
@@ -13422,6 +13435,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13422
13435
  const list = [];
13423
13436
  if (props.cellPadding)
13424
13437
  list.push(`table__cell-padding--${props.cellPadding}`);
13438
+ if (props.cellPaddingY)
13439
+ list.push(`table__cell-padding-y--${props.cellPaddingY}`);
13425
13440
  if (props.notFullWidth)
13426
13441
  list.push("not-full-width");
13427
13442
  return list;
@@ -13495,7 +13510,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13495
13510
  };
13496
13511
  }
13497
13512
  });
13498
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-03297f2e"]]);
13513
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-65c343ce"]]);
13499
13514
  var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
13500
13515
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13501
13516
  props: {
@@ -13505,6 +13520,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13505
13520
  autoWidth: { type: Boolean, default: false },
13506
13521
  overflowAuto: { type: Boolean, default: false },
13507
13522
  align: { type: String, default: void 0, validator: validators.align },
13523
+ verticalAlign: { type: String, default: void 0, validator: validators.verticalAlign },
13508
13524
  fixedWidth: { type: String, default: "" },
13509
13525
  minWidth: { type: String, default: "" },
13510
13526
  maxWidth: { type: String, default: "" },
@@ -13513,10 +13529,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13513
13529
  setup(__props) {
13514
13530
  const props = __props;
13515
13531
  const computedTdClass = computed$2(() => {
13516
- return {
13517
- "auto-width": props.autoWidth,
13518
- "overflow-auto": props.overflowAuto
13519
- };
13532
+ const list = [];
13533
+ if (props.autoWidth)
13534
+ list.push("auto-width");
13535
+ if (props.overflowAuto)
13536
+ list.push("overflow-auto");
13537
+ if (props.verticalAlign)
13538
+ list.push(`vertical-align--${props.verticalAlign}`);
13539
+ return list;
13520
13540
  });
13521
13541
  const computedSpanClass = computed$2(() => {
13522
13542
  const list = [];
@@ -13571,7 +13591,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13571
13591
  };
13572
13592
  }
13573
13593
  });
13574
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4eae6064"]]);
13594
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4077488a"]]);
13575
13595
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
13576
13596
  const _hoisted_1$7 = ["color"];
13577
13597
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({