yahee-components 0.0.85 → 0.0.87

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.
Files changed (26) hide show
  1. package/es/common-import/common-import.vue.js +89 -88
  2. package/es/complex-search/complex-search.vue2.js +57 -53
  3. package/es/installs.js +10 -12
  4. package/es/yahee-components.css +1 -1
  5. package/package.json +1 -1
  6. package/types/src/installs.d.ts +2649 -0
  7. package/es/filter-container/filter-container.vue.js +0 -67
  8. package/es/filter-container/filter-container.vue2.js +0 -4
  9. package/es/filter-container/index.js +0 -7
  10. package/es/filter-wrapper/filter-wrapper.vue.js +0 -7
  11. package/es/filter-wrapper/filter-wrapper.vue2.js +0 -59
  12. package/es/filter-wrapper/index.js +0 -7
  13. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  14. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  15. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  16. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  17. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  18. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  19. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  20. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  21. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  22. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  23. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  24. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  25. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  26. package/es/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
@@ -1,7 +1,7 @@
1
- import { defineComponent as K, toRefs as D, ref as s } from "vue";
1
+ import { defineComponent as K, toRefs as D, ref as c } from "vue";
2
2
  import S from "../_virtual/lodash.js";
3
- import { defaultComplexSearchProps as t } from "./props.js";
4
- import { ElLink as G, ElOption as H, ElButton as V, ElRow as _, ElFormItem as L, ElForm as P, ElIcon as q, ElDialog as j, ElSelect as Y, ElCheckbox as z, ElInput as J } from "element-plus";
3
+ import { defaultComplexSearchProps as r } from "./props.js";
4
+ import { ElLink as G, ElOption as H, ElButton as V, ElRow as _, ElFormItem as L, ElForm as P, ElIcon as q, ElDialog as j, ElSelect as Y, ElCheckbox as $, ElInput as z } from "element-plus";
5
5
  import "element-plus/theme-chalk/src/base.scss";
6
6
  import "element-plus/theme-chalk/src/input.scss";
7
7
  import "element-plus/theme-chalk/src/checkbox.scss";
@@ -18,13 +18,13 @@ import "element-plus/theme-chalk/src/form-item.scss";
18
18
  import "element-plus/theme-chalk/src/row.scss";
19
19
  import "element-plus/theme-chalk/src/button.scss";
20
20
  import "element-plus/theme-chalk/src/link.scss";
21
- import { Search as M } from "@element-plus/icons-vue";
21
+ import { Search as J } from "@element-plus/icons-vue";
22
22
  const Se = K({
23
23
  name: "YaheeComplexSearch",
24
24
  // 使用 components 选项注册所有 Element Plus 组件
25
25
  components: {
26
- ElInput: J,
27
- ElCheckbox: z,
26
+ ElInput: z,
27
+ ElCheckbox: $,
28
28
  ElSelect: Y,
29
29
  ElDialog: j,
30
30
  ElIcon: q,
@@ -34,57 +34,57 @@ const Se = K({
34
34
  ElButton: V,
35
35
  ElOption: H,
36
36
  ElLink: G,
37
- Search: M
37
+ Search: J
38
38
  },
39
39
  props: {
40
40
  defaultSearch: {
41
41
  type: String,
42
- default: t().defaultSearch
42
+ default: r().defaultSearch
43
43
  },
44
44
  options: {
45
45
  type: Array,
46
- default: t().options
46
+ default: r().options
47
47
  },
48
48
  placeholderText: {
49
49
  type: String,
50
- default: t().placeholderText
50
+ default: r().placeholderText
51
51
  },
52
52
  showPatchSearch: {
53
53
  type: Boolean,
54
- default: t().showPatchSearch
54
+ default: r().showPatchSearch
55
55
  },
56
56
  showWithinFilterCheckbox: {
57
57
  type: Boolean,
58
- default: t().showWithinFilterCheckbox
58
+ default: r().showWithinFilterCheckbox
59
59
  },
60
60
  specialOptions: {
61
61
  type: Array,
62
- default: t().specialOptions
62
+ default: r().specialOptions
63
63
  },
64
64
  normalOptions: {
65
65
  type: Array,
66
- default: t().normalOptions
66
+ default: r().normalOptions
67
67
  },
68
68
  showSelect: {
69
69
  type: Boolean,
70
- default: t().showSelect
70
+ default: r().showSelect
71
71
  },
72
72
  searchItem: {
73
73
  type: Object,
74
- default: t().searchItem
74
+ default: r().searchItem
75
75
  },
76
76
  isBatchSelectOptionsSameWithInput: {
77
77
  type: Boolean,
78
- default: t().isBatchSelectOptionsSameWithInput
78
+ default: r().isBatchSelectOptionsSameWithInput
79
79
  },
80
80
  batchOptions: {
81
81
  type: Array,
82
- default: t().batchOptions
82
+ default: r().batchOptions
83
83
  }
84
84
  },
85
85
  emits: ["filterChangeGrandson"],
86
- setup(y, { emit: u }) {
87
- const { specialOptions: v, normalOptions: w, searchItem: n } = D(y), r = s(y.defaultSearch || "WHOLE_SEARCH"), i = s(""), h = s(!1), f = s(!1), p = s(!1), m = s(null), o = s({ searchType: "WHOLE_SEARCH", searchContent: "" }), C = {
86
+ setup(v, { emit: u }) {
87
+ const { specialOptions: y, normalOptions: F, searchItem: s } = D(v), l = c(v.defaultSearch || "WHOLE_SEARCH"), i = c(""), h = c(!1), f = c(!1), p = c(!1), m = c(null), o = c({ searchType: "WHOLE_SEARCH", searchContent: "" }), C = {
88
88
  selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
89
89
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
90
90
  }, g = [{ value: "WHOLE_SEARCH", label: "综合搜索" }], E = () => {
@@ -92,38 +92,42 @@ const Se = K({
92
92
  }, O = () => {
93
93
  p.value = !1;
94
94
  }, b = () => {
95
- h.value || (delete n.value.putSearch, u("filterChangeGrandson", n.value, r.value));
96
- }, W = () => n.value, I = () => {
97
- i.value ? A() : u("filterChangeGrandson", W(), r.value);
98
- }, R = (e, l) => {
99
- const a = { ...e };
100
- return S.map(v.value, (c) => c.key).includes(l.filterKey) ? v.value.forEach((c) => delete a[c.key]) : delete a[l.filterKey], a;
101
- }, k = (e) => {
102
- S.forEach(e, (l) => {
103
- const a = R(n.value, l), { checkedValues: c, filterKey: d } = l;
104
- S.isEmpty(c) || (w.value.includes(d) ? a[d] = c[0] : a[d] = c), n.value = a;
105
- }), u("filterChangeGrandson", n.value, r.value);
106
- }, T = (e) => {
107
- i.value = B(e) || "";
108
- }, x = (e) => {
109
- o.value.searchContent = B(e) || "";
110
- }, B = (e) => {
111
- var a;
112
- e.preventDefault();
113
- const l = (a = e.clipboardData) == null ? void 0 : a.getData("text/plain");
114
- return l == null ? void 0 : l.replace(/[\n\r\t]+/g, ",");
95
+ h.value || (delete s.value.putSearch, u("filterChangeGrandson", s.value, l.value));
96
+ }, W = () => s.value, I = () => {
97
+ i.value ? A() : u("filterChangeGrandson", W(), l.value);
98
+ }, R = (a, e) => {
99
+ const t = { ...a };
100
+ return S.map(y.value, (n) => n.key).includes(e.filterKey) ? y.value.forEach((n) => delete t[n.key]) : delete t[e.filterKey], t;
101
+ }, k = (a) => {
102
+ S.forEach(a, (e) => {
103
+ const t = R(s.value, e), { checkedValues: n, filterKey: d } = e;
104
+ S.isEmpty(n) || (F.value.includes(d) ? t[d] = n[0] : t[d] = n), s.value = t;
105
+ }), u("filterChangeGrandson", s.value, l.value);
106
+ }, T = (a) => {
107
+ i.value = x(a) || "";
108
+ }, w = (a) => {
109
+ const e = x(a);
110
+ if (e) {
111
+ const t = o.value.searchContent || "";
112
+ t ? o.value.searchContent = `${t},${e}` : o.value.searchContent = e;
113
+ }
114
+ }, x = (a) => {
115
+ var t;
116
+ a.preventDefault();
117
+ const e = (t = a.clipboardData) == null ? void 0 : t.getData("text/plain");
118
+ return e == null ? void 0 : e.replace(/[\n\r\t]+/g, ",");
115
119
  }, A = () => {
116
120
  h.value ? k([
117
121
  { filterKey: "putSearch", checkedValues: i.value },
118
- { filterKey: "searchType", checkedValues: r.value }
122
+ { filterKey: "searchType", checkedValues: l.value }
119
123
  ]) : u(
120
124
  "filterChangeGrandson",
121
- { putSearch: i.value, searchType: r.value },
122
- r.value
125
+ { putSearch: i.value, searchType: l.value },
126
+ l.value
123
127
  );
124
- }, F = () => {
125
- m.value && m.value.validate((e) => {
126
- e && (f.value = !0, h.value ? k([
128
+ }, B = () => {
129
+ m.value && m.value.validate((a) => {
130
+ a && (f.value = !0, h.value ? k([
127
131
  { filterKey: "putSearch", checkedValues: o.value.searchContent },
128
132
  { filterKey: "searchType", checkedValues: o.value.searchType }
129
133
  ]) : u(
@@ -132,13 +136,13 @@ const Se = K({
132
136
  putSearch: o.value.searchContent,
133
137
  searchType: o.value.searchType
134
138
  },
135
- r.value
139
+ l.value
136
140
  ), p.value = !1, f.value = !1);
137
141
  });
138
142
  };
139
143
  return {
140
144
  ...{
141
- selectedSearchType: r,
145
+ selectedSearchType: l,
142
146
  putSearch: i,
143
147
  isWithinFilterOptions: h,
144
148
  confirmLoading: f,
@@ -152,10 +156,10 @@ const Se = K({
152
156
  searchWithinFilterOptions: b,
153
157
  handleSearch: I,
154
158
  pasteFormatInput: T,
155
- confirmSearch: F,
156
- pasteFormat: x
159
+ confirmSearch: B,
160
+ pasteFormat: w
157
161
  },
158
- selectedSearchType: r,
162
+ selectedSearchType: l,
159
163
  putSearch: i,
160
164
  isWithinFilterOptions: h,
161
165
  confirmLoading: f,
@@ -169,8 +173,8 @@ const Se = K({
169
173
  searchWithinFilterOptions: b,
170
174
  handleSearch: I,
171
175
  pasteFormatInput: T,
172
- confirmSearch: F,
173
- pasteFormat: x
176
+ confirmSearch: B,
177
+ pasteFormat: w
174
178
  };
175
179
  }
176
180
  });
package/es/installs.js CHANGED
@@ -4,34 +4,32 @@ import { YaheeCopy as r } from "./copy/index.js";
4
4
  import { YaheeImageUpload as m } from "./image-upload/index.js";
5
5
  import { YaheeOperationLog as t } from "./operation-log/index.js";
6
6
  import { YaheeAnnexUpload as a } from "./annex-upload/index.js";
7
- import { YaheeLeftCondition as i } from "./left-condition/index.js";
8
- import { YaheeLeftConditionEnum as p } from "./left-condition-enum/index.js";
7
+ import { YaheeLeftCondition as p } from "./left-condition/index.js";
8
+ import { YaheeLeftConditionEnum as i } from "./left-condition-enum/index.js";
9
9
  import { YaheeDropDownCondition as n } from "./drop-down-condition/index.js";
10
10
  import { YaheeCountryPlatformShopCondition as f } from "./country-platform-shop-condition/index.js";
11
11
  import { YaheeCommonImport as h } from "./common-import/index.js";
12
12
  import { YaheeBorderWrap as Y } from "./border-wrap/index.js";
13
- import { YaheeEchartGauge as l } from "./echart-gauge/index.js";
14
- import { YaheeScaleScreen as C } from "./scale-screen/index.js";
15
- import { YaheeFilterContainer as d } from "./filter-container/index.js";
16
- import { YaheeFilterWrapper as c } from "./filter-wrapper/index.js";
17
- const G = [
13
+ import { YaheeEchartGauge as d } from "./echart-gauge/index.js";
14
+ import { YaheeScaleScreen as l } from "./scale-screen/index.js";
15
+ const A = [
18
16
  o,
19
17
  e,
20
18
  r,
21
19
  m,
22
20
  t,
23
21
  a,
24
- i,
25
22
  p,
23
+ i,
26
24
  n,
27
25
  f,
28
26
  h,
29
27
  Y,
30
- l,
31
- C,
32
28
  d,
33
- c
29
+ l
30
+ // YaheeFilterContainer,
31
+ // YaheeFilterWrapper,
34
32
  ];
35
33
  export {
36
- G as default
34
+ A as default
37
35
  };
@@ -1 +1 @@
1
- .container[data-v-d3e37633]{box-sizing:initial;display:inline-block;text-align:center;border-radius:50%;overflow:hidden}.spinner[data-v-d3e37633]{box-sizing:initial;border:2px solid #a1a1a1;border-right-color:transparent;width:23px;height:23px;border-radius:50%;animation:spin-d3e37633 .9s linear infinite}@keyframes spin-d3e37633{to{transform:rotate(360deg)}}.v3-infinite-loading[data-v-4bdee133]{width:100%;height:44px}.state-error[data-v-4bdee133]{display:flex;flex-direction:column;align-items:center}.retry[data-v-4bdee133]{margin-top:8px;padding:2px 6px 4px;width:60px;color:inherit;font-size:14px;font-family:inherit;background:transparent;border:2px solid currentColor;border-radius:5px;outline:none;cursor:pointer}.retry[data-v-4bdee133]:hover{opacity:.8}.filter-wrapper[data-v-841c990f]{display:inline-block;margin-right:16px;margin-bottom:16px;vertical-align:top}
1
+ .container[data-v-d3e37633]{box-sizing:initial;display:inline-block;text-align:center;border-radius:50%;overflow:hidden}.spinner[data-v-d3e37633]{box-sizing:initial;border:2px solid #a1a1a1;border-right-color:transparent;width:23px;height:23px;border-radius:50%;animation:spin-d3e37633 .9s linear infinite}@keyframes spin-d3e37633{to{transform:rotate(360deg)}}.v3-infinite-loading[data-v-4bdee133]{width:100%;height:44px}.state-error[data-v-4bdee133]{display:flex;flex-direction:column;align-items:center}.retry[data-v-4bdee133]{margin-top:8px;padding:2px 6px 4px;width:60px;color:inherit;font-size:14px;font-family:inherit;background:transparent;border:2px solid currentColor;border-radius:5px;outline:none;cursor:pointer}.retry[data-v-4bdee133]:hover{opacity:.8}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.85",
4
+ "version": "0.0.87",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",