cleek 2.4.9 → 2.4.12

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
@@ -18807,11 +18807,20 @@ var functions = {
18807
18807
  classList2.push(`ck-component__group-vertical--${groupVertical}`);
18808
18808
  return classList2;
18809
18809
  },
18810
- geRealValueStr(key, props, cleekOptions2) {
18811
- if (props[key])
18812
- return props[key];
18813
- if (cleekOptions2[key])
18814
- return cleekOptions2[key];
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;
18815
18824
  return "";
18816
18825
  },
18817
18826
  getWidthByWidthBreaks(widthBreaks, windowWidth) {
@@ -20917,7 +20926,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20917
20926
  if (align === "center" || align === "right") {
20918
20927
  list.push(`ck-button__align--${props.align}`);
20919
20928
  }
20920
- const layout = functions.geRealValueStr("layout", props, cleekOptions2);
20929
+ const layout = functions.geRealLayout(props, cleekOptions2);
20921
20930
  if (layout)
20922
20931
  list.push(layout);
20923
20932
  list.push(`type-${realButtonType.value}`);
@@ -20977,7 +20986,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20977
20986
  };
20978
20987
  }
20979
20988
  });
20980
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-585ca428"]]);
20989
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-591130bc"]]);
20981
20990
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
20982
20991
  const _hoisted_1$h = ["for"];
20983
20992
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -21083,20 +21092,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21083
21092
  list.push(`align--${props.align}`);
21084
21093
  if (props.hideBorder)
21085
21094
  list.push("no-border");
21086
- const layout = functions.geRealValueStr("layout", props, cleekOptions2);
21095
+ const layout = functions.geRealLayout(props, cleekOptions2);
21087
21096
  if (layout)
21088
21097
  list.push(layout);
21089
21098
  if (props.size)
21090
21099
  list.push(`ck-input-size__${props.size}`);
21091
- if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
21092
- list.push(`ck-input--border-color__${props.borderColor}`);
21100
+ const borderColor = functions.geRealBorderColor(props, cleekOptions2);
21101
+ if (borderColor && functions.isColorTemplateVariable(borderColor)) {
21102
+ list.push(`ck-component__border-color--${borderColor}`);
21093
21103
  }
21094
21104
  return list;
21095
21105
  });
21096
21106
  const computedStyleInput = computed$2(() => {
21097
21107
  const list = [];
21098
- if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
21099
- list.push({ "border-color": props.borderColor });
21108
+ const borderColor = functions.geRealBorderColor(props, cleekOptions2);
21109
+ if (borderColor && !functions.isColorTemplateVariable(borderColor)) {
21110
+ list.push({ "border-color": borderColor });
21100
21111
  }
21101
21112
  return list;
21102
21113
  });
@@ -21187,7 +21198,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21187
21198
  };
21188
21199
  }
21189
21200
  });
21190
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f8009ae8"]]);
21201
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-d0ed260a"]]);
21191
21202
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21192
21203
  const _hoisted_1$f = { class: "ck-table__header-items" };
21193
21204
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -22990,25 +23001,22 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22990
23001
  const computedClassSelect = computed$2(() => {
22991
23002
  const list = [];
22992
23003
  list.push(functions.getGroupClass(props, windowWidth.value));
22993
- const layout = functions.geRealValueStr("layout", props, cleekOptions2);
23004
+ const layout = functions.geRealLayout(props, cleekOptions2);
22994
23005
  if (layout)
22995
23006
  list.push(layout);
22996
23007
  if (isClearBtnVisible.value)
22997
23008
  list.push("clear-able");
22998
- const borderColor = functions.geRealValueStr("borderColor", props, cleekOptions2);
23009
+ const borderColor = functions.geRealBorderColor(props, cleekOptions2);
22999
23010
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23000
- list.push(`ck-input--border-color__${props.borderColor}`);
23011
+ list.push(`ck-component__border-color--${borderColor}`);
23001
23012
  }
23002
23013
  return list;
23003
23014
  });
23004
23015
  const computedStyleSelect = computed$2(() => {
23005
23016
  const list = [];
23006
- const borderColor = functions.geRealValueStr("borderColor", props, cleekOptions2);
23007
- if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23008
- list.push(`ck-input--border-color__${props.borderColor}`);
23009
- }
23010
- if (props.borderColor && !functions.isColorTemplateVariable(props.borderColor)) {
23011
- list.push({ "border-color": props.borderColor });
23017
+ const borderColor = functions.geRealBorderColor(props, cleekOptions2);
23018
+ if (borderColor && !functions.isColorTemplateVariable(borderColor)) {
23019
+ list.push({ "border-color": borderColor });
23012
23020
  }
23013
23021
  return list;
23014
23022
  });
@@ -23144,7 +23152,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23144
23152
  };
23145
23153
  }
23146
23154
  });
23147
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0f21da80"]]);
23155
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-12f0b952"]]);
23148
23156
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23149
23157
  const _hoisted_1$5 = {
23150
23158
  key: 1,
@@ -23648,7 +23656,6 @@ function getCleekOptions(userOptions) {
23648
23656
  }
23649
23657
  }
23650
23658
  setRootColors(options.colors);
23651
- console.log("finalOptions", options);
23652
23659
  return options;
23653
23660
  }
23654
23661
  const install = function installCleek(app, options) {