cleek 2.4.6 → 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,14 +18807,12 @@ var functions = {
18817
18807
  classList2.push(`ck-component__group-vertical--${groupVertical}`);
18818
18808
  return classList2;
18819
18809
  },
18820
- getRoundedValue(propIsRounded, cleekOptions2) {
18821
- var _a;
18822
- if (typeof propIsRounded !== "undefined")
18823
- return propIsRounded;
18824
- if (typeof ((_a = cleekOptions2 == null ? void 0 : cleekOptions2.styles) == null ? void 0 : _a.rounded) !== "undefined") {
18825
- return cleekOptions2.styles.rounded;
18826
- }
18827
- 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 "";
18828
18816
  },
18829
18817
  getWidthByWidthBreaks(widthBreaks, windowWidth) {
18830
18818
  if (widthBreaks) {
@@ -20889,7 +20877,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20889
20877
  align: null,
20890
20878
  size: null,
20891
20879
  width: null,
20892
- rounded: { type: Boolean },
20880
+ layout: null,
20893
20881
  icon: null,
20894
20882
  iconRight: null,
20895
20883
  iconPack: null,
@@ -20929,8 +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 (functions.getRoundedValue(props.rounded, cleekOptions2))
20933
- list.push("rounded");
20920
+ const layout = functions.geRealValueStr("layout", props, cleekOptions2);
20921
+ if (layout)
20922
+ list.push(layout);
20934
20923
  list.push(`type-${realButtonType.value}`);
20935
20924
  if (props.size)
20936
20925
  list.push(`ck-button-size__${props.size}`);
@@ -20988,7 +20977,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
20988
20977
  };
20989
20978
  }
20990
20979
  });
20991
- var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-39c8f698"]]);
20980
+ var CkButton = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-585ca428"]]);
20992
20981
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
20993
20982
  const _hoisted_1$h = ["for"];
20994
20983
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
@@ -21041,7 +21030,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21041
21030
  hideBorder: { type: Boolean },
21042
21031
  width: null,
21043
21032
  align: null,
21044
- rounded: { type: Boolean },
21033
+ layout: null,
21045
21034
  borderColor: null,
21046
21035
  autoSelect: { type: Boolean },
21047
21036
  delayChangeTime: null
@@ -21094,8 +21083,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21094
21083
  list.push(`align--${props.align}`);
21095
21084
  if (props.hideBorder)
21096
21085
  list.push("no-border");
21097
- if (functions.getRoundedValue(props.rounded, cleekOptions2))
21098
- list.push("rounded");
21086
+ const layout = functions.geRealValueStr("layout", props, cleekOptions2);
21087
+ if (layout)
21088
+ list.push(layout);
21099
21089
  if (props.size)
21100
21090
  list.push(`ck-input-size__${props.size}`);
21101
21091
  if (props.borderColor && functions.isColorTemplateVariable(props.borderColor)) {
@@ -21197,7 +21187,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21197
21187
  };
21198
21188
  }
21199
21189
  });
21200
- var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-076ee92e"]]);
21190
+ var CkInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f8009ae8"]]);
21201
21191
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
21202
21192
  const _hoisted_1$f = { class: "ck-table__header-items" };
21203
21193
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
@@ -22949,7 +22939,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22949
22939
  searchable: { type: [Boolean, String] },
22950
22940
  minWidth: null,
22951
22941
  noBorder: { type: Boolean },
22952
- rounded: { type: Boolean },
22942
+ layout: null,
22953
22943
  borderColor: null,
22954
22944
  bgTransparent: { type: Boolean },
22955
22945
  disabled: { type: Boolean },
@@ -23000,11 +22990,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23000
22990
  const computedClassSelect = computed$2(() => {
23001
22991
  const list = [];
23002
22992
  list.push(functions.getGroupClass(props, windowWidth.value));
23003
- if (functions.getRoundedValue(props.rounded, cleekOptions2))
23004
- list.push("rounded");
22993
+ const layout = functions.geRealValueStr("layout", props, cleekOptions2);
22994
+ if (layout)
22995
+ list.push(layout);
23005
22996
  if (isClearBtnVisible.value)
23006
22997
  list.push("clear-able");
23007
- const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
22998
+ const borderColor = functions.geRealValueStr("borderColor", props, cleekOptions2);
23008
22999
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23009
23000
  list.push(`ck-input--border-color__${props.borderColor}`);
23010
23001
  }
@@ -23012,7 +23003,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23012
23003
  });
23013
23004
  const computedStyleSelect = computed$2(() => {
23014
23005
  const list = [];
23015
- const borderColor = functions.getBorderColorValue(props.borderColor, cleekOptions2);
23006
+ const borderColor = functions.geRealValueStr("borderColor", props, cleekOptions2);
23016
23007
  if (borderColor && functions.isColorTemplateVariable(borderColor)) {
23017
23008
  list.push(`ck-input--border-color__${props.borderColor}`);
23018
23009
  }
@@ -23153,7 +23144,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23153
23144
  };
23154
23145
  }
23155
23146
  });
23156
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-67207918"]]);
23147
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-0f21da80"]]);
23157
23148
  var ckSidebar_vue_vue_type_style_index_0_scoped_true_lang = "";
23158
23149
  const _hoisted_1$5 = {
23159
23150
  key: 1,
@@ -23657,6 +23648,7 @@ function getCleekOptions(userOptions) {
23657
23648
  }
23658
23649
  }
23659
23650
  setRootColors(options.colors);
23651
+ console.log("finalOptions", options);
23660
23652
  return options;
23661
23653
  }
23662
23654
  const install = function installCleek(app, options) {