cleek 2.4.8 → 2.4.9

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,12 @@ 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
+ geRealValueStr(key, props, cleekOptions2) {
18811
+ if (props[key])
18812
+ return props[key];
18813
+ if (cleekOptions2[key])
18814
+ return cleekOptions2[key];
18815
+ return "";
18827
18816
  },
18828
18817
  getWidthByWidthBreaks(widthBreaks, windowWidth) {
18829
18818
  if (widthBreaks) {
@@ -20888,7 +20877,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20888
20877
  align: null,
20889
20878
  size: null,
20890
20879
  width: null,
20891
- rounded: { type: Boolean },
20880
+ layout: null,
20892
20881
  icon: null,
20893
20882
  iconRight: null,
20894
20883
  iconPack: null,
@@ -20914,7 +20903,6 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20914
20903
  return defaultButtonType;
20915
20904
  });
20916
20905
  const computedClass = computed$2(() => {
20917
- var _a, _b;
20918
20906
  const list = [];
20919
20907
  list.push(functions.getGroupClass(props, windowWidth.value));
20920
20908
  const color = props.color || defaultColor;
@@ -20929,11 +20917,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20929
20917
  if (align === "center" || align === "right") {
20930
20918
  list.push(`ck-button__align--${props.align}`);
20931
20919
  }
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");
20920
+ const layout = functions.geRealValueStr("layout", props, cleekOptions2);
20921
+ if (layout)
20922
+ list.push(layout);
20937
20923
  list.push(`type-${realButtonType.value}`);
20938
20924
  if (props.size)
20939
20925
  list.push(`ck-button-size__${props.size}`);
@@ -20991,7 +20977,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20991
20977
  };
20992
20978
  }
20993
20979
  });
20994
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6faa59d2"]]);
20980
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-585ca428"]]);
20995
20981
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
20996
20982
  const _hoisted_1$h = ["for"];
20997
20983
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -21044,7 +21030,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21044
21030
  hideBorder: { type: Boolean },
21045
21031
  width: null,
21046
21032
  align: null,
21047
- rounded: { type: Boolean },
21033
+ layout: null,
21048
21034
  borderColor: null,
21049
21035
  autoSelect: { type: Boolean },
21050
21036
  delayChangeTime: null
@@ -21087,7 +21073,6 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21087
21073
  emits("change", event);
21088
21074
  };
21089
21075
  const computedClassInput = computed$2(() => {
21090
- var _a;
21091
21076
  const list = [];
21092
21077
  list.push(functions.getGroupClass(props, windowWidth.value));
21093
21078
  if (props.icon)
@@ -21098,8 +21083,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21098
21083
  list.push(`align--${props.align}`);
21099
21084
  if (props.hideBorder)
21100
21085
  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");
21086
+ const layout = functions.geRealValueStr("layout", props, cleekOptions2);
21087
+ if (layout)
21088
+ list.push(layout);
21103
21089
  if (props.size)
21104
21090
  list.push(`ck-input-size__${props.size}`);
21105
21091
  if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
@@ -21201,7 +21187,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21201
21187
  };
21202
21188
  }
21203
21189
  });
21204
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-302d09e9"]]);
21190
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f8009ae8"]]);
21205
21191
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21206
21192
  const _hoisted_1$f = { class: "ck-table__header-items" };
21207
21193
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -22953,7 +22939,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22953
22939
  searchable: { type: [Boolean, String] },
22954
22940
  minWidth: null,
22955
22941
  noBorder: { type: Boolean },
22956
- rounded: { type: Boolean },
22942
+ layout: null,
22957
22943
  borderColor: null,
22958
22944
  bgTransparent: { type: Boolean },
22959
22945
  disabled: { type: Boolean },
@@ -23002,14 +22988,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23002
22988
  return true;
23003
22989
  });
23004
22990
  const computedClassSelect = computed$2(() => {
23005
- var _a;
23006
22991
  const list = [];
23007
22992
  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");
22993
+ const layout = functions.geRealValueStr("layout", props, cleekOptions2);
22994
+ if (layout)
22995
+ list.push(layout);
23010
22996
  if (isClearBtnVisible.value)
23011
22997
  list.push("clear-able");
23012
- const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
22998
+ const borderColor = functions.geRealValueStr("borderColor", props, cleekOptions2);
23013
22999
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23014
23000
  list.push(`ck-input--border-color__${props.borderColor}`);
23015
23001
  }
@@ -23017,7 +23003,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23017
23003
  });
23018
23004
  const computedStyleSelect = computed$2(() => {
23019
23005
  const list = [];
23020
- const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
23006
+ const borderColor = functions.geRealValueStr("borderColor", props, cleekOptions2);
23021
23007
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23022
23008
  list.push(`ck-input--border-color__${props.borderColor}`);
23023
23009
  }
@@ -23158,7 +23144,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23158
23144
  };
23159
23145
  }
23160
23146
  });
23161
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-41b41172"]]);
23147
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0f21da80"]]);
23162
23148
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23163
23149
  const _hoisted_1$5 = {
23164
23150
  key: 1,