cleek 2.4.8 → 2.4.11

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
@@ -2896,14 +2896,13 @@ const cleekOptions = {
2896
2896
  },
2897
2897
  button: {
2898
2898
  type: "outlined",
2899
- rounded: false
2899
+ layout: "base"
2900
2900
  },
2901
2901
  img: {
2902
2902
  basePath: ""
2903
2903
  },
2904
2904
  styles: {
2905
- type: "outlined",
2906
- rounded: false,
2905
+ layout: "base",
2907
2906
  borderColor: "#dae1e7"
2908
2907
  }
2909
2908
  };
@@ -18792,15 +18791,6 @@ var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
18792
18791
  const _sfc_main$o = {};
18793
18792
  var CkTr = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", render2], ["__scopeId", "data-v-519cf874"]]);
18794
18793
  var functions = {
18795
- getBorderColorValue(propBorderColor, cleekOptions2) {
18796
- var _a;
18797
- if (typeof propBorderColor !== "undefined")
18798
- return propBorderColor;
18799
- if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor) !== "undefined") {
18800
- return cleekOptions2.styles.borderColor;
18801
- }
18802
- return "";
18803
- },
18804
18794
  getCleekOptions(getCurrentInstance2) {
18805
18795
  return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
18806
18796
  },
@@ -18817,13 +18807,21 @@ var functions = {
18817
18807
  classList2.push(`ck-component__group-vertical--${groupVertical}`);
18818
18808
  return classList2;
18819
18809
  },
18820
- getRoundedValue(propIsRounded, cleekOptionsIsRounded) {
18821
- console.log("propIsRounded", propIsRounded);
18822
- if (typeof propIsRounded !== "undefined")
18823
- return propIsRounded;
18824
- if (typeof cleekOptionsIsRounded !== "undefined")
18825
- return cleekOptionsIsRounded;
18826
- return false;
18810
+ geRealBorderColor(props, cleekOptions2) {
18811
+ var _a;
18812
+ if (props.borderColor)
18813
+ return props.borderColor;
18814
+ if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.borderColor)
18815
+ return cleekOptions2.styles.borderColor;
18816
+ return "";
18817
+ },
18818
+ geRealLayout(props, cleekOptions2) {
18819
+ var _a;
18820
+ if (props.layout)
18821
+ return props.layout;
18822
+ if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.layout)
18823
+ return cleekOptions2.styles.layout;
18824
+ return "";
18827
18825
  },
18828
18826
  getWidthByWidthBreaks(widthBreaks, windowWidth) {
18829
18827
  if (widthBreaks) {
@@ -20888,7 +20886,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20888
20886
  align: null,
20889
20887
  size: null,
20890
20888
  width: null,
20891
- rounded: { type: Boolean },
20889
+ layout: null,
20892
20890
  icon: null,
20893
20891
  iconRight: null,
20894
20892
  iconPack: null,
@@ -20914,7 +20912,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20914
20912
  return defaultButtonType;
20915
20913
  });
20916
20914
  const computedClass = computed$2(() => {
20917
- var _a, _b;
20918
20915
  const list = [];
20919
20916
  list.push(functions.getGroupClass(props, windowWidth.value));
20920
20917
  const color = props.color || defaultColor;
@@ -20929,11 +20926,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20929
20926
  if (align === "center" || align === "right") {
20930
20927
  list.push(`ck-button__align--${props.align}`);
20931
20928
  }
20932
- if ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded) {
20933
- console.log("AHORA SI");
20934
- }
20935
- if (functions.getRoundedValue(props.rounded, (_b = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _b.rounded))
20936
- list.push("rounded");
20929
+ const layout = functions.geRealLayout(props, cleekOptions2);
20930
+ if (layout)
20931
+ list.push(layout);
20937
20932
  list.push(`type-${realButtonType.value}`);
20938
20933
  if (props.size)
20939
20934
  list.push(`ck-button-size__${props.size}`);
@@ -20991,7 +20986,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20991
20986
  };
20992
20987
  }
20993
20988
  });
20994
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6faa59d2"]]);
20989
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-591130bc"]]);
20995
20990
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
20996
20991
  const _hoisted_1$h = ["for"];
20997
20992
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -21044,7 +21039,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21044
21039
  hideBorder: { type: Boolean },
21045
21040
  width: null,
21046
21041
  align: null,
21047
- rounded: { type: Boolean },
21042
+ layout: null,
21048
21043
  borderColor: null,
21049
21044
  autoSelect: { type: Boolean },
21050
21045
  delayChangeTime: null
@@ -21087,7 +21082,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21087
21082
  emits("change", event);
21088
21083
  };
21089
21084
  const computedClassInput = computed$2(() => {
21090
- var _a;
21091
21085
  const list = [];
21092
21086
  list.push(functions.getGroupClass(props, windowWidth.value));
21093
21087
  if (props.icon)
@@ -21098,8 +21092,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21098
21092
  list.push(`align--${props.align}`);
21099
21093
  if (props.hideBorder)
21100
21094
  list.push("no-border");
21101
- if (functions.getRoundedValue(props.rounded, (_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded))
21102
- list.push("rounded");
21095
+ const layout = functions.geRealLayout(props, cleekOptions2);
21096
+ if (layout)
21097
+ list.push(layout);
21103
21098
  if (props.size)
21104
21099
  list.push(`ck-input-size__${props.size}`);
21105
21100
  if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
@@ -21201,7 +21196,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21201
21196
  };
21202
21197
  }
21203
21198
  });
21204
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-302d09e9"]]);
21199
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-2d610c78"]]);
21205
21200
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21206
21201
  const _hoisted_1$f = { class: "ck-table__header-items" };
21207
21202
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -22953,7 +22948,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22953
22948
  searchable: { type: [Boolean, String] },
22954
22949
  minWidth: null,
22955
22950
  noBorder: { type: Boolean },
22956
- rounded: { type: Boolean },
22951
+ layout: null,
22957
22952
  borderColor: null,
22958
22953
  bgTransparent: { type: Boolean },
22959
22954
  disabled: { type: Boolean },
@@ -23002,14 +22997,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23002
22997
  return true;
23003
22998
  });
23004
22999
  const computedClassSelect = computed$2(() => {
23005
- var _a;
23006
23000
  const list = [];
23007
23001
  list.push(functions.getGroupClass(props, windowWidth.value));
23008
- if (functions.getRoundedValue(props.rounded, (_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded))
23009
- list.push("rounded");
23002
+ const layout = functions.geRealLayout(props, cleekOptions2);
23003
+ if (layout)
23004
+ list.push(layout);
23010
23005
  if (isClearBtnVisible.value)
23011
23006
  list.push("clear-able");
23012
- const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
23007
+ const borderColor = functions.geRealBorderColor(props, cleekOptions2);
23013
23008
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23014
23009
  list.push(`ck-input--border-color__${props.borderColor}`);
23015
23010
  }
@@ -23017,7 +23012,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23017
23012
  });
23018
23013
  const computedStyleSelect = computed$2(() => {
23019
23014
  const list = [];
23020
- const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
23015
+ const borderColor = functions.geRealBorderColor(props, cleekOptions2);
23021
23016
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23022
23017
  list.push(`ck-input--border-color__${props.borderColor}`);
23023
23018
  }
@@ -23158,7 +23153,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23158
23153
  };
23159
23154
  }
23160
23155
  });
23161
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-41b41172"]]);
23156
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-cbfee918"]]);
23162
23157
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23163
23158
  const _hoisted_1$5 = {
23164
23159
  key: 1,
@@ -23662,7 +23657,6 @@ function getCleekOptions(userOptions) {
23662
23657
  }
23663
23658
  }
23664
23659
  setRootColors(options.colors);
23665
- console.log("finalOptions", options);
23666
23660
  return options;
23667
23661
  }
23668
23662
  const install = function installCleek(app, options) {