cleek 2.3.13 → 2.3.14

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
  },
@@ -13376,15 +13379,24 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13376
13379
  });
13377
13380
  const columnsAreObj = computed$2(() => !qmObj2.isArray(props.columns));
13378
13381
  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;
13382
+ if (columnsAreObj.value) {
13383
+ const arr = Object.values(props.columns);
13384
+ const keys = Object.keys(props.columns);
13385
+ arr.forEach((col, index) => {
13386
+ const key = keys[index];
13387
+ col.name = key;
13388
+ });
13389
+ return arr;
13390
+ }
13391
+ const newList = [];
13392
+ props.columns.forEach((col) => {
13393
+ if (typeof col === "string") {
13394
+ newList.push({ title: col });
13395
+ } else {
13396
+ newList.push(col);
13397
+ }
13386
13398
  });
13387
- return arr;
13399
+ return newList;
13388
13400
  });
13389
13401
  const filteredColumnsList = computed$2(() => {
13390
13402
  return columnsArray.value.filter(functions.isColumnDisplayed);
@@ -13495,7 +13507,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
13495
13507
  };
13496
13508
  }
13497
13509
  });
13498
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-03297f2e"]]);
13510
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-236cfb7e"]]);
13499
13511
  var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
13500
13512
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13501
13513
  props: {
@@ -13505,6 +13517,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13505
13517
  autoWidth: { type: Boolean, default: false },
13506
13518
  overflowAuto: { type: Boolean, default: false },
13507
13519
  align: { type: String, default: void 0, validator: validators.align },
13520
+ verticalAlign: { type: String, default: void 0, validator: validators.verticalAlign },
13508
13521
  fixedWidth: { type: String, default: "" },
13509
13522
  minWidth: { type: String, default: "" },
13510
13523
  maxWidth: { type: String, default: "" },
@@ -13513,10 +13526,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13513
13526
  setup(__props) {
13514
13527
  const props = __props;
13515
13528
  const computedTdClass = computed$2(() => {
13516
- return {
13517
- "auto-width": props.autoWidth,
13518
- "overflow-auto": props.overflowAuto
13519
- };
13529
+ const list = [];
13530
+ if (props.autoWidth)
13531
+ list.push("auto-width");
13532
+ if (props.overflowAuto)
13533
+ list.push("overflow-auto");
13534
+ if (props.verticalAlign)
13535
+ list.push(`vertical-align--${props.verticalAlign}`);
13536
+ return list;
13520
13537
  });
13521
13538
  const computedSpanClass = computed$2(() => {
13522
13539
  const list = [];
@@ -13571,7 +13588,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
13571
13588
  };
13572
13589
  }
13573
13590
  });
13574
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4eae6064"]]);
13591
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-4077488a"]]);
13575
13592
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
13576
13593
  const _hoisted_1$7 = ["color"];
13577
13594
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({