cleek 2.7.13 → 2.7.15

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.
@@ -1,68 +1,88 @@
1
- margin-x(margin)
2
- margin-right margin
3
- margin-left margin
4
- margin-y(margin)
5
- margin-top margin
6
- margin-bottom margin
7
- padding-x(padding)
8
- padding-right padding
9
- padding-left padding
10
- padding-y(padding)
11
- padding-top padding
12
- padding-bottom padding
13
- border-x(width, type, color)
14
- border-left width type color
15
- border-right width type color
16
- border-y(width, type, color)
17
- border-top width type color
18
- border-bottom width type color
19
- border-radius-left(radius)
20
- border-top-left-radius radius
21
- border-bottom-left-radius radius
22
- border-radius-right(radius)
23
- border-top-right-radius radius
24
- border-bottom-right-radius radius
25
- border-radius-top(radius)
26
- border-top-left-radius radius
27
- border-top-right-radius radius
28
- border-radius-bottom(radius)
29
- border-bottom-left-radius radius
30
- border-bottom-right-radius radius
31
- width-height(val)
32
- width val
33
- height val
34
- min-max-width(val)
35
- min-width val
36
- max-width val
37
- min-max-height(val)
38
- min-height val
39
- max-height val
40
- margin-padding(val)
41
- margin val
42
- padding val
43
- margin-padding-left(val)
44
- margin-left val
45
- padding-left val
46
- margin-padding-right(val)
47
- margin-right val
48
- padding-right val
49
- margin-padding-top(val)
50
- margin-top val
51
- padding-top val
52
- margin-padding-bottom(val)
53
- margin-bottom val
54
- padding-bottom val
55
-
56
- my-box-shadow(val = 0.05, color = black)
57
- box-shadow 0 4px 20px 0 rgba(color, val)
58
- ck-box-shadow(val = 0.05, color = black)
59
- box-shadow 0 4px 20px 0 rgba(color, val)
60
-
61
- // flex shortcuts
62
- justify-align-center()
63
- align-items center
64
- justify-content center
65
-
1
+ // margin
2
+ margin-x($margin-x)
3
+ margin-left $margin-x
4
+ margin-right $margin-x
5
+ margin-y($margin-y)
6
+ margin-top $margin-y
7
+ margin-bottom $margin-y
8
+ margin-left-right($margin-left, $margin-right)
9
+ margin-left $margin-left
10
+ margin-right $margin-right
11
+ margin-top-bottom($margin-top, $margin-bottom)
12
+ margin-top $margin-top
13
+ margin-bottom $margin-bottom
14
+ // padding
15
+ padding-x($padding-x)
16
+ padding-left $padding-x
17
+ padding-right $padding-x
18
+ padding-y($padding-y)
19
+ padding-top $padding-y
20
+ padding-bottom $padding-y
21
+ padding-left-right($padding-left, $padding-right)
22
+ padding-left $padding-left
23
+ padding-right $padding-right
24
+ padding-top-bottom($padding-top, $padding-bottom)
25
+ padding-top $padding-top
26
+ padding-bottom $padding-bottom
27
+ // border
28
+ border-x($width, $type, $color)
29
+ border-left $width $type $color
30
+ border-right $width $type $color
31
+ border-y($width, $type, $color)
32
+ border-top $width $type $color
33
+ border-bottom $width $type $color
34
+ // border-radius
35
+ border-radius-left($radius)
36
+ border-top-left-radius $radius
37
+ border-bottom-left-radius $radius
38
+ border-radius-right($radius)
39
+ border-top-right-radius $radius
40
+ border-bottom-right-radius $radius
41
+ border-radius-top($radius)
42
+ border-top-left-radius $radius
43
+ border-top-right-radius $radius
44
+ border-radius-bottom($radius)
45
+ border-bottom-left-radius $radius
46
+ border-bottom-right-radius $radius
47
+ // width - height
48
+ width-height($val)
49
+ width $val
50
+ height $val
51
+ min-max-width($val)
52
+ min-width $val
53
+ max-width $val
54
+ min-max-height($val)
55
+ min-height $val
56
+ max-height $val
57
+ // margin - padding
58
+ margin-padding($val)
59
+ margin $val
60
+ padding $val
61
+ margin-padding-left($val)
62
+ margin-left $val
63
+ padding-left $val
64
+ margin-padding-right($val)
65
+ margin-right $val
66
+ padding-right $val
67
+ margin-padding-top($val)
68
+ margin-top $val
69
+ padding-top $val
70
+ margin-padding-bottom($val)
71
+ margin-bottom $val
72
+ padding-bottom $val
73
+ // box-shadow
74
+ my-box-shadow($val = 0.05, $color = black)
75
+ box-shadow 0 4px 20px 0 rgba($color, $val)
76
+ ck-box-shadow($val = 0.05, $color = black)
77
+ box-shadow 0 4px 20px 0 rgba($color, $val)
78
+ // flex
79
+ flex($flex-direction = row, $justify-content = flex-start, $align-items = stretch, $gap = 0, $flex-wrap = nowrap)
80
+ display flex
81
+ flex-direction $flex-direction
82
+ justify-content $justify-content
83
+ align-items $align-items
84
+ gap $gap
85
+ flex-wrap $flex-wrap
66
86
  flex-center()
67
87
  display flex
68
88
  align-items center
@@ -72,11 +92,6 @@ inline-flex-center()
72
92
  align-items center
73
93
  justify-content center
74
94
 
75
- flex-all-center() // should be deleted
76
- flex-center()
77
- inline-flex-all-center() // should be deleted
78
- inline-flex-center()
79
-
80
95
  unselectable()
81
96
  user-select none
82
97
  -moz-user-select none
@@ -84,9 +99,9 @@ unselectable()
84
99
  -webkit-user-select none
85
100
  -o-user-select none
86
101
 
87
- dynamic-rgba(rgb-variable, opacity = 1)
102
+ dynamic-rgba($rgb-variable, $opacity = 1)
88
103
  // return rgba as a string so it doesn't get interpolated by stylus compiler
89
- s('rgba(var(%s), %s)', rgb-variable, opacity)
104
+ s('rgba(var(%s), %s)', $rgb-variable, $opacity)
90
105
 
91
106
  //
92
107
  //
package/dist/cleek.es.js CHANGED
@@ -83257,6 +83257,11 @@ const _sfc_main$m = defineComponent$2({
83257
83257
  list.push(`version--${props.version}`);
83258
83258
  return list;
83259
83259
  });
83260
+ function clickRefreshListBtn() {
83261
+ if (props.isLoading)
83262
+ return;
83263
+ emits("refreshList", true);
83264
+ }
83260
83265
  function checkRefresh() {
83261
83266
  const search = searchLocal.value;
83262
83267
  setTimeout(() => {
@@ -83273,12 +83278,13 @@ const _sfc_main$m = defineComponent$2({
83273
83278
  refreshBtnIsVisible.value ? (openBlock$2(), createBlock$2(CkButton, {
83274
83279
  key: 0,
83275
83280
  type: "flat",
83276
- icon: "rotate-right",
83277
83281
  title: "Recargar lista",
83278
83282
  backgroundColor: "transparent",
83279
83283
  layout: _ctx.layout,
83280
- onClick: _cache[0] || (_cache[0] = ($event) => emits("refreshList", true))
83281
- }, null, 8, ["layout"])) : createCommentVNode$2("", true),
83284
+ icon: _ctx.isLoading ? "spinner" : "rotate-right",
83285
+ isLoading: !!_ctx.isLoading,
83286
+ onClick: _cache[0] || (_cache[0] = ($event) => clickRefreshListBtn())
83287
+ }, null, 8, ["layout", "icon", "isLoading"])) : createCommentVNode$2("", true),
83282
83288
  _ctx.isLoading && _ctx.listLength === 0 || itemsPerPageIsVisible.value ? (openBlock$2(), createElementBlock$2("div", {
83283
83289
  key: 1,
83284
83290
  class: normalizeClass$2(["items-per-page", { "ck-component__group--left": isSearchVisible.value }])
@@ -83318,7 +83324,7 @@ const _sfc_main$m = defineComponent$2({
83318
83324
  };
83319
83325
  }
83320
83326
  });
83321
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-1af5a21d"]]);
83327
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-64173368"]]);
83322
83328
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
83323
83329
  const _withScopeId$4 = (n2) => (pushScopeId$2("data-v-27c654d0"), n2 = n2(), popScopeId$2(), n2);
83324
83330
  const _hoisted_1$h = { class: "ck-table__pagination" };
@@ -84220,10 +84226,10 @@ const _sfc_main$h = defineComponent$2({
84220
84226
  const defaultLoadingText = computed$3(() => {
84221
84227
  var _a;
84222
84228
  if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
84223
- return "Cargando";
84224
- return "Loading";
84229
+ return "Cargando...";
84230
+ return "Loading...";
84225
84231
  });
84226
- const defaultNoResultsText = computed$3(() => {
84232
+ computed$3(() => {
84227
84233
  var _a;
84228
84234
  if (((_a = cleekOptions2.value) == null ? void 0 : _a.lang) === "es")
84229
84235
  return "No se encontraron resultados";
@@ -84353,9 +84359,10 @@ const _sfc_main$h = defineComponent$2({
84353
84359
  hideItemsPerPage: _ctx.hideItemsPerPage,
84354
84360
  layout: realLayout.value,
84355
84361
  version: realTableVersion.value,
84362
+ isLoading: _ctx.isLoading,
84356
84363
  onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
84357
84364
  onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
84358
- }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version"]),
84365
+ }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version", "isLoading"]),
84359
84366
  _ctx.$slots.header ? (openBlock$2(), createElementBlock$2("div", _hoisted_3$7, [
84360
84367
  renderSlot$2(_ctx.$slots, "header", {}, void 0, true)
84361
84368
  ])) : createCommentVNode$2("", true)
@@ -84385,7 +84392,7 @@ const _sfc_main$h = defineComponent$2({
84385
84392
  createElementVNode("tbody", null, [
84386
84393
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true),
84387
84394
  renderSlot$2(_ctx.$slots, "desktop", {}, void 0, true),
84388
- _ctx.isLoading ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84395
+ _ctx.isLoading && !_ctx.listLength ? (openBlock$2(), createBlock$2(CkTr, { key: 0 }, {
84389
84396
  default: withCtx$2(() => [
84390
84397
  createVNode$2(CkTd, {
84391
84398
  class: "no-result-text",
@@ -84398,21 +84405,7 @@ const _sfc_main$h = defineComponent$2({
84398
84405
  icon: "spinner",
84399
84406
  spin: ""
84400
84407
  }),
84401
- createTextVNode$2(" " + toDisplayString$1(_ctx.loadingText || defaultLoadingText.value) + "... ", 1)
84402
- ]),
84403
- _: 1
84404
- })
84405
- ]),
84406
- _: 1
84407
- })) : _ctx.isLoading !== false && _ctx.listLength === 0 ? (openBlock$2(), createBlock$2(CkTr, { key: 1 }, {
84408
- default: withCtx$2(() => [
84409
- createVNode$2(CkTd, {
84410
- class: "no-result-text",
84411
- colspan: "100%",
84412
- align: "center"
84413
- }, {
84414
- default: withCtx$2(() => [
84415
- createTextVNode$2(toDisplayString$1(_ctx.noResultsText || defaultNoResultsText.value), 1)
84408
+ createTextVNode$2(" " + toDisplayString$1(_ctx.loadingText || defaultLoadingText.value), 1)
84416
84409
  ]),
84417
84410
  _: 1
84418
84411
  })
@@ -84443,7 +84436,7 @@ const _sfc_main$h = defineComponent$2({
84443
84436
  };
84444
84437
  }
84445
84438
  });
84446
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d9e82628"]]);
84439
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-09bd0c16"]]);
84447
84440
  var ckPagination_vue_vue_type_style_index_0_lang = "";
84448
84441
  const _sfc_main$g = defineComponent$2({
84449
84442
  __name: "ck-pagination",