cleek 2.6.85 → 2.6.87

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
@@ -81854,179 +81854,6 @@ const _sfc_main$u = defineComponent$2({
81854
81854
  }
81855
81855
  });
81856
81856
  var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-66dc4f95"]]);
81857
- const _hoisted_1$l = { class: "ck-tr" };
81858
- function render3(_ctx, _cache) {
81859
- return openBlock$2(), createElementBlock$2("tr", _hoisted_1$l, [
81860
- renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
81861
- ]);
81862
- }
81863
- var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
81864
- const _sfc_main$t = {};
81865
- var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", render3], ["__scopeId", "data-v-519cf874"]]);
81866
- var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
81867
- const _sfc_main$s = defineComponent$2({
81868
- __name: "ck-td",
81869
- props: {
81870
- col: {},
81871
- nowrap: { type: Boolean },
81872
- block: { type: Boolean },
81873
- overflowAuto: { type: Boolean },
81874
- align: {},
81875
- verticalAlign: {},
81876
- fixedWidth: {},
81877
- autoWidth: { type: Boolean },
81878
- minWidth: {},
81879
- maxWidth: {},
81880
- maxHeight: {}
81881
- },
81882
- setup(__props) {
81883
- const props = __props;
81884
- const computedTdClass = computed$3(() => {
81885
- var _a, _b, _c;
81886
- const list = [];
81887
- if (props.autoWidth || ((_a = props.col) == null ? void 0 : _a.autoWidth))
81888
- list.push("auto-width");
81889
- if (props.overflowAuto || ((_b = props.col) == null ? void 0 : _b.overflowAuto))
81890
- list.push("overflow-auto");
81891
- const verticalAlign = props.verticalAlign || ((_c = props.col) == null ? void 0 : _c.verticalAlign);
81892
- if (verticalAlign)
81893
- list.push(`vertical-align--${verticalAlign}`);
81894
- return list;
81895
- });
81896
- const computedSpanClass = computed$3(() => {
81897
- var _a, _b, _c;
81898
- const list = [];
81899
- const align = props.align || ((_a = props.col) == null ? void 0 : _a.align);
81900
- if (align) {
81901
- if (align === "center")
81902
- list.push("align-center");
81903
- if (align === "right")
81904
- list.push("align-right");
81905
- }
81906
- if (props.block || ((_b = props.col) == null ? void 0 : _b.block))
81907
- list.push("block");
81908
- if (props.nowrap || ((_c = props.col) == null ? void 0 : _c.nowrap))
81909
- list.push("no-wrap-text");
81910
- return list;
81911
- });
81912
- const computedStyle = computed$3(() => {
81913
- var _a, _b, _c, _d, _e2, _f, _g, _h, _i;
81914
- const list = {};
81915
- let minWidth;
81916
- if (props.minWidth || ((_a = props.col) == null ? void 0 : _a.minWidth))
81917
- minWidth = props.minWidth || ((_b = props.col) == null ? void 0 : _b.minWidth);
81918
- if (props.fixedWidth || ((_c = props.col) == null ? void 0 : _c.fixedWidth))
81919
- minWidth = props.fixedWidth || ((_d = props.col) == null ? void 0 : _d.fixedWidth);
81920
- if (minWidth)
81921
- list.minWidth = minWidth;
81922
- let maxWidth;
81923
- if (props.maxWidth || ((_e2 = props.col) == null ? void 0 : _e2.maxWidth))
81924
- maxWidth = props.maxWidth || ((_f = props.col) == null ? void 0 : _f.maxWidth);
81925
- if (props.fixedWidth || ((_g = props.col) == null ? void 0 : _g.fixedWidth))
81926
- maxWidth = props.fixedWidth || ((_h = props.col) == null ? void 0 : _h.fixedWidth);
81927
- if (maxWidth)
81928
- list.maxWidth = maxWidth;
81929
- if (props.maxHeight || ((_i = props.col) == null ? void 0 : _i.maxHeight))
81930
- list.maxHeight = props.maxHeight;
81931
- return list;
81932
- });
81933
- const isColumnDisplayed = computed$3(() => {
81934
- if (!props.col)
81935
- return true;
81936
- return hooks9.isColumnDisplayed(props.col);
81937
- });
81938
- hooks9.preventUnusedError([
81939
- isColumnDisplayed,
81940
- computedStyle
81941
- ]);
81942
- return (_ctx, _cache) => {
81943
- return isColumnDisplayed.value ? (openBlock$2(), createElementBlock$2("td", {
81944
- key: 0,
81945
- class: normalizeClass$2(["ck-td", computedTdClass.value])
81946
- }, [
81947
- createElementVNode("span", {
81948
- class: normalizeClass$2(computedSpanClass.value),
81949
- style: normalizeStyle$2(computedStyle.value)
81950
- }, [
81951
- renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
81952
- ], 6)
81953
- ], 2)) : createCommentVNode$2("", true);
81954
- };
81955
- }
81956
- });
81957
- var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-577d1eef"]]);
81958
- var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
81959
- const _hoisted_1$k = { class: "ck-th" };
81960
- const defaultAlign$1 = "left";
81961
- const _sfc_main$r = defineComponent$2({
81962
- __name: "ck-th",
81963
- props: {
81964
- align: {},
81965
- minWidth: {},
81966
- textColor: {},
81967
- backgroundColor: {}
81968
- },
81969
- setup(__props) {
81970
- const props = __props;
81971
- const computedSpanClass = computed$3(() => {
81972
- const list = [];
81973
- list.push(`align-${props.align || defaultAlign$1}`);
81974
- if (props.textColor && hooks9.isColorTemplateVariable(props.textColor)) {
81975
- list.push(`ck-component__color--${props.textColor}`);
81976
- }
81977
- if (props.backgroundColor && hooks9.isColorTemplateVariable(props.backgroundColor)) {
81978
- list.push(`ck-component__bg-color--${props.backgroundColor}`);
81979
- }
81980
- return list;
81981
- });
81982
- const computedStyle = computed$3(() => {
81983
- const list = [];
81984
- if (props.minWidth)
81985
- list.push({ "min-width": props.minWidth });
81986
- if (props.textColor && !hooks9.isColorTemplateVariable(props.textColor)) {
81987
- list.push({ color: props.textColor || "white" });
81988
- }
81989
- if (props.backgroundColor && !hooks9.isColorTemplateVariable(props.backgroundColor)) {
81990
- list.push({ backgroundColor: props.backgroundColor });
81991
- }
81992
- return list;
81993
- });
81994
- return (_ctx, _cache) => {
81995
- return openBlock$2(), createElementBlock$2("th", _hoisted_1$k, [
81996
- createElementVNode("span", {
81997
- class: normalizeClass$2(computedSpanClass.value),
81998
- style: normalizeStyle$2(computedStyle.value)
81999
- }, [
82000
- renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
82001
- ], 6)
82002
- ]);
82003
- };
82004
- }
82005
- });
82006
- var CkTh = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-49d9cc74"]]);
82007
- const _sfc_main$q = defineComponent$2({
82008
- __name: "ck-table__title",
82009
- props: {
82010
- col: {},
82011
- textColor: {},
82012
- backgroundColor: {}
82013
- },
82014
- setup(__props) {
82015
- return (_ctx, _cache) => {
82016
- return openBlock$2(), createBlock$2(CkTh, {
82017
- align: _ctx.col.align,
82018
- "min-width": _ctx.col.minWidth,
82019
- textColor: _ctx.textColor,
82020
- backgroundColor: _ctx.backgroundColor
82021
- }, {
82022
- default: withCtx$2(() => [
82023
- createTextVNode$2(toDisplayString$1(_ctx.col.title), 1)
82024
- ]),
82025
- _: 1
82026
- }, 8, ["align", "min-width", "textColor", "backgroundColor"]);
82027
- };
82028
- }
82029
- });
82030
81857
  function ownKeys(object, enumerableOnly) {
82031
81858
  var keys = Object.keys(object);
82032
81859
  if (Object.getOwnPropertySymbols) {
@@ -82568,7 +82395,7 @@ defineComponent$2({
82568
82395
  }
82569
82396
  });
82570
82397
  var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
82571
- const _sfc_main$p = defineComponent$2({
82398
+ const _sfc_main$t = defineComponent$2({
82572
82399
  __name: "ck-icon",
82573
82400
  props: {
82574
82401
  icon: {},
@@ -82630,7 +82457,180 @@ const _sfc_main$p = defineComponent$2({
82630
82457
  };
82631
82458
  }
82632
82459
  });
82633
- var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-4ea1c4ac"]]);
82460
+ var CkIcon = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-4ea1c4ac"]]);
82461
+ const _hoisted_1$l = { class: "ck-tr" };
82462
+ function render3(_ctx, _cache) {
82463
+ return openBlock$2(), createElementBlock$2("tr", _hoisted_1$l, [
82464
+ renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
82465
+ ]);
82466
+ }
82467
+ var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
82468
+ const _sfc_main$s = {};
82469
+ var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", render3], ["__scopeId", "data-v-519cf874"]]);
82470
+ var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
82471
+ const _sfc_main$r = defineComponent$2({
82472
+ __name: "ck-td",
82473
+ props: {
82474
+ col: {},
82475
+ nowrap: { type: Boolean },
82476
+ block: { type: Boolean },
82477
+ overflowAuto: { type: Boolean },
82478
+ align: {},
82479
+ verticalAlign: {},
82480
+ fixedWidth: {},
82481
+ autoWidth: { type: Boolean },
82482
+ minWidth: {},
82483
+ maxWidth: {},
82484
+ maxHeight: {}
82485
+ },
82486
+ setup(__props) {
82487
+ const props = __props;
82488
+ const computedTdClass = computed$3(() => {
82489
+ var _a, _b, _c;
82490
+ const list = [];
82491
+ if (props.autoWidth || ((_a = props.col) == null ? void 0 : _a.autoWidth))
82492
+ list.push("auto-width");
82493
+ if (props.overflowAuto || ((_b = props.col) == null ? void 0 : _b.overflowAuto))
82494
+ list.push("overflow-auto");
82495
+ const verticalAlign = props.verticalAlign || ((_c = props.col) == null ? void 0 : _c.verticalAlign);
82496
+ if (verticalAlign)
82497
+ list.push(`vertical-align--${verticalAlign}`);
82498
+ return list;
82499
+ });
82500
+ const computedSpanClass = computed$3(() => {
82501
+ var _a, _b, _c;
82502
+ const list = [];
82503
+ const align = props.align || ((_a = props.col) == null ? void 0 : _a.align);
82504
+ if (align) {
82505
+ if (align === "center")
82506
+ list.push("align-center");
82507
+ if (align === "right")
82508
+ list.push("align-right");
82509
+ }
82510
+ if (props.block || ((_b = props.col) == null ? void 0 : _b.block))
82511
+ list.push("block");
82512
+ if (props.nowrap || ((_c = props.col) == null ? void 0 : _c.nowrap))
82513
+ list.push("no-wrap-text");
82514
+ return list;
82515
+ });
82516
+ const computedStyle = computed$3(() => {
82517
+ var _a, _b, _c, _d, _e2, _f, _g, _h, _i;
82518
+ const list = {};
82519
+ let minWidth;
82520
+ if (props.minWidth || ((_a = props.col) == null ? void 0 : _a.minWidth))
82521
+ minWidth = props.minWidth || ((_b = props.col) == null ? void 0 : _b.minWidth);
82522
+ if (props.fixedWidth || ((_c = props.col) == null ? void 0 : _c.fixedWidth))
82523
+ minWidth = props.fixedWidth || ((_d = props.col) == null ? void 0 : _d.fixedWidth);
82524
+ if (minWidth)
82525
+ list.minWidth = minWidth;
82526
+ let maxWidth;
82527
+ if (props.maxWidth || ((_e2 = props.col) == null ? void 0 : _e2.maxWidth))
82528
+ maxWidth = props.maxWidth || ((_f = props.col) == null ? void 0 : _f.maxWidth);
82529
+ if (props.fixedWidth || ((_g = props.col) == null ? void 0 : _g.fixedWidth))
82530
+ maxWidth = props.fixedWidth || ((_h = props.col) == null ? void 0 : _h.fixedWidth);
82531
+ if (maxWidth)
82532
+ list.maxWidth = maxWidth;
82533
+ if (props.maxHeight || ((_i = props.col) == null ? void 0 : _i.maxHeight))
82534
+ list.maxHeight = props.maxHeight;
82535
+ return list;
82536
+ });
82537
+ const isColumnDisplayed = computed$3(() => {
82538
+ if (!props.col)
82539
+ return true;
82540
+ return hooks9.isColumnDisplayed(props.col);
82541
+ });
82542
+ hooks9.preventUnusedError([
82543
+ isColumnDisplayed,
82544
+ computedStyle
82545
+ ]);
82546
+ return (_ctx, _cache) => {
82547
+ return isColumnDisplayed.value ? (openBlock$2(), createElementBlock$2("td", {
82548
+ key: 0,
82549
+ class: normalizeClass$2(["ck-td", computedTdClass.value])
82550
+ }, [
82551
+ createElementVNode("span", {
82552
+ class: normalizeClass$2(computedSpanClass.value),
82553
+ style: normalizeStyle$2(computedStyle.value)
82554
+ }, [
82555
+ renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
82556
+ ], 6)
82557
+ ], 2)) : createCommentVNode$2("", true);
82558
+ };
82559
+ }
82560
+ });
82561
+ var CkTd = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-577d1eef"]]);
82562
+ var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
82563
+ const _hoisted_1$k = { class: "ck-th" };
82564
+ const defaultAlign$1 = "left";
82565
+ const _sfc_main$q = defineComponent$2({
82566
+ __name: "ck-th",
82567
+ props: {
82568
+ align: {},
82569
+ minWidth: {},
82570
+ textColor: {},
82571
+ backgroundColor: {}
82572
+ },
82573
+ setup(__props) {
82574
+ const props = __props;
82575
+ const computedSpanClass = computed$3(() => {
82576
+ const list = [];
82577
+ list.push(`align-${props.align || defaultAlign$1}`);
82578
+ if (props.textColor && hooks9.isColorTemplateVariable(props.textColor)) {
82579
+ list.push(`ck-component__color--${props.textColor}`);
82580
+ }
82581
+ if (props.backgroundColor && hooks9.isColorTemplateVariable(props.backgroundColor)) {
82582
+ list.push(`ck-component__bg-color--${props.backgroundColor}`);
82583
+ }
82584
+ return list;
82585
+ });
82586
+ const computedStyle = computed$3(() => {
82587
+ const list = [];
82588
+ if (props.minWidth)
82589
+ list.push({ "min-width": props.minWidth });
82590
+ if (props.textColor && !hooks9.isColorTemplateVariable(props.textColor)) {
82591
+ list.push({ color: props.textColor || "white" });
82592
+ }
82593
+ if (props.backgroundColor && !hooks9.isColorTemplateVariable(props.backgroundColor)) {
82594
+ list.push({ backgroundColor: props.backgroundColor });
82595
+ }
82596
+ return list;
82597
+ });
82598
+ return (_ctx, _cache) => {
82599
+ return openBlock$2(), createElementBlock$2("th", _hoisted_1$k, [
82600
+ createElementVNode("span", {
82601
+ class: normalizeClass$2(computedSpanClass.value),
82602
+ style: normalizeStyle$2(computedStyle.value)
82603
+ }, [
82604
+ renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
82605
+ ], 6)
82606
+ ]);
82607
+ };
82608
+ }
82609
+ });
82610
+ var CkTh = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-49d9cc74"]]);
82611
+ const _sfc_main$p = defineComponent$2({
82612
+ __name: "ck-table__title",
82613
+ props: {
82614
+ col: {},
82615
+ textColor: {},
82616
+ backgroundColor: {}
82617
+ },
82618
+ setup(__props) {
82619
+ return (_ctx, _cache) => {
82620
+ return openBlock$2(), createBlock$2(CkTh, {
82621
+ align: _ctx.col.align,
82622
+ "min-width": _ctx.col.minWidth,
82623
+ textColor: _ctx.textColor,
82624
+ backgroundColor: _ctx.backgroundColor
82625
+ }, {
82626
+ default: withCtx$2(() => [
82627
+ createTextVNode$2(toDisplayString$1(_ctx.col.title), 1)
82628
+ ]),
82629
+ _: 1
82630
+ }, 8, ["align", "min-width", "textColor", "backgroundColor"]);
82631
+ };
82632
+ }
82633
+ });
82634
82634
  function useWindowWidth() {
82635
82635
  const windowWidth = ref$1(0);
82636
82636
  function handleWindowResize(event) {
@@ -83983,6 +83983,7 @@ const _sfc_main$g = defineComponent$2({
83983
83983
  listLength: {},
83984
83984
  paginationAlign: {},
83985
83985
  search: {},
83986
+ loadingText: {},
83986
83987
  isLoading: {},
83987
83988
  hideHeaderActions: { type: Boolean },
83988
83989
  showRefreshBtn: { type: Boolean },
@@ -84126,10 +84127,9 @@ const _sfc_main$g = defineComponent$2({
84126
84127
  TableColumnsManager,
84127
84128
  TablePagination,
84128
84129
  TableHeaderItems,
84129
- _sfc_main$q
84130
+ _sfc_main$p
84130
84131
  ]);
84131
84132
  return (_ctx, _cache) => {
84132
- const _component_ck_icon = resolveComponent$2("ck-icon");
84133
84133
  return openBlock$2(), createElementBlock$2(Fragment$2, null, [
84134
84134
  _ctx.hasColumnsManager && columnsAreObj.value ? (openBlock$2(), createBlock$2(TableColumnsManager, {
84135
84135
  key: 0,
@@ -84170,7 +84170,7 @@ const _sfc_main$g = defineComponent$2({
84170
84170
  createVNode$2(CkTr, { class: "header-row" }, {
84171
84171
  default: withCtx$2(() => [
84172
84172
  (openBlock$2(true), createElementBlock$2(Fragment$2, null, renderList$1(filteredColumnsList.value, (col) => {
84173
- return openBlock$2(), createBlock$2(_sfc_main$q, {
84173
+ return openBlock$2(), createBlock$2(_sfc_main$p, {
84174
84174
  key: col.title,
84175
84175
  col,
84176
84176
  textColor: realHeaderTextColor.value,
@@ -84192,7 +84192,7 @@ const _sfc_main$g = defineComponent$2({
84192
84192
  align: "center"
84193
84193
  }, {
84194
84194
  default: withCtx$2(() => [
84195
- createVNode$2(_component_ck_icon, {
84195
+ createVNode$2(CkIcon, {
84196
84196
  class: "mr-2",
84197
84197
  icon: "spinner",
84198
84198
  spin: ""
@@ -84242,7 +84242,7 @@ const _sfc_main$g = defineComponent$2({
84242
84242
  };
84243
84243
  }
84244
84244
  });
84245
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7557ea12"]]);
84245
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-fcc3bb76"]]);
84246
84246
  var ckPagination_vue_vue_type_style_index_0_lang = "";
84247
84247
  const _sfc_main$f = defineComponent$2({
84248
84248
  __name: "ck-pagination",