yahee-components 0.0.98-beta-03 → 0.0.100

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 (32) hide show
  1. package/es/complex-search/batch-search-dialog.vue.js +7 -0
  2. package/es/complex-search/batch-search-dialog.vue2.js +159 -0
  3. package/es/complex-search/complex-search.vue.js +46 -143
  4. package/es/complex-search/complex-search.vue2.js +42 -148
  5. package/es/complex-search/props.js +2 -3
  6. package/es/complex-search/useComplexSearch.js +44 -0
  7. package/es/filter-container/filter-container.vue.js +37 -36
  8. package/es/filter-container/props.js +11 -0
  9. package/es/filter-container/style/index.css +1 -2
  10. package/es/filter-wrapper/filter-wrapper.vue.js +2 -2
  11. package/es/filter-wrapper/filter-wrapper.vue2.js +31 -30
  12. package/es/filter-wrapper/props.js +10 -0
  13. package/es/style.css +1 -2
  14. package/es/yahee-components.css +1 -1
  15. package/lib/filter-container/style/index.css +1 -2
  16. package/lib/style.css +1 -2
  17. package/package.json +1 -1
  18. package/types/src/complex-search/batch-search-dialog.vue.d.ts +2 -0
  19. package/types/src/complex-search/complex-search.vue.d.ts +137 -0
  20. package/types/src/complex-search/index.d.ts +141 -0
  21. package/types/src/complex-search/props.d.ts +6 -13
  22. package/types/src/complex-search/useComplexSearch.d.ts +16 -0
  23. package/types/src/filter-container/filter-container.vue.d.ts +3 -8
  24. package/types/src/filter-container/index.d.ts +67 -0
  25. package/types/src/filter-container/props.d.ts +11 -43
  26. package/types/src/filter-wrapper/filter-wrapper.vue.d.ts +4 -15
  27. package/types/src/filter-wrapper/index.d.ts +59 -0
  28. package/types/src/filter-wrapper/key.d.ts +20 -0
  29. package/types/src/filter-wrapper/props.d.ts +6 -43
  30. package/types/src/help-tag/help-tag.vue.d.ts +7 -7
  31. package/types/src/help-tag/index.d.ts +7 -7
  32. package/types/src/installs.d.ts +3481 -0
@@ -0,0 +1,44 @@
1
+ import { toRefs as m, ref as n, watch as c } from "vue";
2
+ function F(t, o) {
3
+ const { searchItem: s } = m(t), u = n(t.defaultSearch || "WHOLE_SEARCH"), a = n(""), l = n(t.isWithinFilterOptions), h = n({ ...s.value });
4
+ c(
5
+ () => s.value,
6
+ (e) => {
7
+ h.value = { ...e };
8
+ },
9
+ { deep: !0 }
10
+ ), c(
11
+ () => t.isWithinFilterOptions,
12
+ (e) => {
13
+ l.value = e;
14
+ }
15
+ ), c(l, (e) => {
16
+ o("update:isWithinFilterOptions", e);
17
+ });
18
+ const r = () => {
19
+ o("search", {
20
+ putSearch: a.value || "",
21
+ searchType: u.value,
22
+ isWithinFilterOptions: l.value
23
+ });
24
+ };
25
+ return {
26
+ selectedSearchType: u,
27
+ putSearch: a,
28
+ localIsWithinFilterOptions: l,
29
+ localSearchItem: h,
30
+ handleSearch: r,
31
+ handleClear: () => {
32
+ a.value = "", r();
33
+ },
34
+ pasteFormatInput: (e) => {
35
+ var d;
36
+ e.preventDefault();
37
+ const i = (d = e.clipboardData) == null ? void 0 : d.getData("text/plain"), p = i == null ? void 0 : i.replace(/[\n\r\t]+/g, ",");
38
+ p !== null && (a.value = p, setTimeout(r, 50));
39
+ }
40
+ };
41
+ }
42
+ export {
43
+ F as useComplexSearch
44
+ };
@@ -1,71 +1,72 @@
1
- import { defineComponent as K, ref as v, computed as p, useSlots as S, provide as M, onMounted as O, onUnmounted as V, createElementBlock as i, openBlock as h, createCommentVNode as y, renderSlot as I } from "vue";
2
- import { filterContainerKey as $ } from "./key.js";
3
- import g from "../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js";
4
- const x = { class: "yahee-filter-container" }, z = {
1
+ import { defineComponent as K, mergeDefaults as M, ref as v, computed as p, useSlots as S, provide as O, onMounted as V, onUnmounted as $, createElementBlock as l, openBlock as h, createCommentVNode as y, renderSlot as g } from "vue";
2
+ import { defaultFilterContainerProps as x } from "./props.js";
3
+ import { filterContainerKey as z } from "./key.js";
4
+ import I from "../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js";
5
+ const D = { class: "yahee-filter-container" }, N = {
5
6
  key: 0,
6
7
  class: "filter-section"
7
- }, N = {
8
+ }, P = {
8
9
  key: 1,
9
10
  class: "search-section"
10
- }, G = /* @__PURE__ */ K({
11
+ }, J = /* @__PURE__ */ K({
11
12
  name: "YaheeFilterContainer",
12
13
  __name: "filter-container",
13
- props: {
14
- debounceInterval: { default: 300 },
15
- immediate: { type: Boolean, default: !1 },
16
- initialSearchItem: { default: () => ({}) },
17
- showSearchSection: { type: Boolean, default: !1 }
18
- },
14
+ props: /* @__PURE__ */ M({
15
+ debounceInterval: {},
16
+ immediate: { type: Boolean },
17
+ initialSearchItem: {},
18
+ showSearchSection: { type: Boolean }
19
+ }, x()),
19
20
  emits: ["change", "search"],
20
- setup(_, { expose: C, emit: b }) {
21
- const n = _, c = b, t = v({});
21
+ setup(C, { expose: _, emit: b }) {
22
+ const n = C, c = b, t = v({});
22
23
  n.initialSearchItem && Object.keys(n.initialSearchItem).length > 0 && (t.value = { ...n.initialSearchItem });
23
- const s = v(/* @__PURE__ */ new Map()), k = p(() => s.value.size > 0 || !!S().filters), A = p(() => n.showSearchSection || Array.from(s.value.values()).some((e) => e.type === "search") || !!S().search), u = g((e) => {
24
+ const s = v(/* @__PURE__ */ new Map()), k = p(() => s.value.size > 0 || !!S().filters), A = p(() => n.showSearchSection || Array.from(s.value.values()).some((e) => e.type === "search") || !!S().search), m = I((e) => {
24
25
  c("change", e);
25
- }, n.debounceInterval), m = g((e) => {
26
+ }, n.debounceInterval), u = I((e) => {
26
27
  c("search", e);
27
- }, n.debounceInterval), w = (e, a, r = "filter") => {
28
- s.value.set(e, { methods: a, type: r });
28
+ }, n.debounceInterval), w = (e, r, a = "filter") => {
29
+ s.value.set(e, { methods: r, type: a });
29
30
  }, E = (e) => {
30
31
  s.value.delete(e);
31
32
  }, d = (e) => {
32
- const a = Array.isArray(e) ? e : [e], r = { ...t.value };
33
- a.forEach((j) => {
34
- const { filterKey: l, checkedValues: o } = j;
35
- o.length === 0 || o[0] === "" || o[0] === null || o[0] === void 0 ? delete r[l] : o.length === 1 ? r[l] = o[0] : r[l] = o;
36
- }), t.value = r, u({ ...r });
33
+ const r = Array.isArray(e) ? e : [e], a = { ...t.value };
34
+ r.forEach((j) => {
35
+ const { filterKey: i, checkedValues: o } = j;
36
+ o.length === 0 || o[0] === "" || o[0] === null || o[0] === void 0 ? delete a[i] : o.length === 1 ? a[i] = o[0] : a[i] = o;
37
+ }), t.value = a, m({ ...a });
37
38
  }, B = (e) => {
38
- const a = { ...t.value, ...e };
39
- t.value = a, m({ ...a });
39
+ const r = { ...t.value, ...e };
40
+ t.value = r, u({ ...r });
40
41
  }, F = () => {
41
42
  t.value = { ...n.initialSearchItem }, s.value.forEach((e) => {
42
43
  e.methods.reset && e.methods.reset();
43
44
  }), c("change", { ...t.value });
44
45
  }, f = () => ({ ...t.value });
45
- return M($, {
46
+ return O(z, {
46
47
  registerComponent: w,
47
48
  unregisterComponent: E,
48
49
  updateSearchItem: d,
49
50
  handleSearch: B,
50
51
  getCurrentSearchItem: f
51
- }), C({
52
+ }), _({
52
53
  resetAllFilters: F,
53
54
  getCurrentSearchItem: f,
54
55
  updateSearchItem: d
55
- }), O(() => {
56
- n.immediate && Object.keys(t.value).length > 0 && c("change", { ...t.value });
57
56
  }), V(() => {
58
- u.cancel(), m.cancel();
59
- }), (e, a) => (h(), i("div", x, [
60
- k.value ? (h(), i("div", z, [
61
- I(e.$slots, "filters")
57
+ n.immediate && Object.keys(t.value).length > 0 && c("change", { ...t.value });
58
+ }), $(() => {
59
+ m.cancel(), u.cancel();
60
+ }), (e, r) => (h(), l("div", D, [
61
+ k.value ? (h(), l("div", N, [
62
+ g(e.$slots, "filters")
62
63
  ])) : y("", !0),
63
- A.value ? (h(), i("div", N, [
64
- I(e.$slots, "search")
64
+ A.value ? (h(), l("div", P, [
65
+ g(e.$slots, "search")
65
66
  ])) : y("", !0)
66
67
  ]));
67
68
  }
68
69
  });
69
70
  export {
70
- G as default
71
+ J as default
71
72
  };
@@ -0,0 +1,11 @@
1
+ function e() {
2
+ return {
3
+ debounceInterval: 300,
4
+ immediate: !1,
5
+ initialSearchItem: {},
6
+ showSearchSection: !1
7
+ };
8
+ }
9
+ export {
10
+ e as defaultFilterContainerProps
11
+ };
@@ -1,14 +1,13 @@
1
1
  .yahee-filter-container {
2
2
  display: flex;
3
3
  width: 100%;
4
+ justify-content: space-between;
4
5
  }
5
6
  .yahee-filter-container .filter-section {
6
7
  min-width: 200px;
7
8
  }
8
9
  .yahee-filter-container .search-section {
9
10
  min-height: 60px;
10
- position: fixed;
11
- right: -50px;
12
11
  }
13
12
  .yahee-filter-container .content-section {
14
13
  flex: 1;
@@ -1,7 +1,7 @@
1
1
  import r from "./filter-wrapper.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-ad18c668"]]);
4
+ const a = /* @__PURE__ */ o(r, [["__scopeId", "data-v-1188ff04"]]);
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,52 +1,53 @@
1
- import { defineComponent as f, inject as l, onMounted as d, onUnmounted as m, createElementBlock as h, openBlock as y, renderSlot as S } from "vue";
2
- import { filterContainerKey as g } from "../filter-container/key.js";
3
- const I = { class: "filter-wrapper yahee-filter-wrapper" }, v = /* @__PURE__ */ f({
1
+ import { defineComponent as u, mergeDefaults as f, inject as l, onMounted as d, onUnmounted as h, createElementBlock as y, openBlock as S, renderSlot as g } from "vue";
2
+ import { defaultFilterWrapperProps as I } from "./props.js";
3
+ import { filterContainerKey as _ } from "../filter-container/key.js";
4
+ const K = { class: "filter-wrapper yahee-filter-wrapper" }, w = /* @__PURE__ */ u({
4
5
  name: "YaheeFilterWrapper",
5
6
  __name: "filter-wrapper",
6
- props: {
7
+ props: /* @__PURE__ */ f({
7
8
  id: {},
8
9
  filterKey: {},
9
- type: { default: "filter" },
10
- reset: { type: Function, default: void 0 },
11
- immediate: { type: Boolean, default: !1 }
12
- },
13
- setup(p, { expose: u }) {
14
- const r = p, e = l(g), n = (t = {}) => {
10
+ type: {},
11
+ reset: { type: Function },
12
+ immediate: { type: Boolean }
13
+ }, I()),
14
+ setup(c, { expose: m }) {
15
+ const t = c, e = l(_), n = (r = {}) => {
15
16
  e && e.registerComponent(
16
- r.id,
17
+ t.id,
17
18
  {
18
- reset: r.reset || t.reset,
19
- ...t
19
+ reset: t.reset || r.reset,
20
+ ...r
20
21
  },
21
- r.type
22
+ t.type
22
23
  );
23
- }, a = (t) => {
24
+ }, a = (r) => {
24
25
  if (!e) return;
25
- const c = Array.isArray(t) ? t : [t];
26
+ const p = Array.isArray(r) ? r : [r];
26
27
  e.updateSearchItem({
27
- filterKey: r.filterKey,
28
- checkedValues: c
28
+ filterKey: t.filterKey,
29
+ checkedValues: p
29
30
  });
30
- }, o = () => e != null && e.getCurrentSearchItem ? e.getCurrentSearchItem() : {}, s = (t) => {
31
- e != null && e.handleSearch && e.handleSearch(t);
31
+ }, o = () => e != null && e.getCurrentSearchItem ? e.getCurrentSearchItem() : {}, s = (r) => {
32
+ e != null && e.handleSearch && e.handleSearch(r);
32
33
  }, i = () => {
33
- r.reset && r.reset();
34
+ t.reset && t.reset();
34
35
  };
35
- return u({
36
+ return m({
36
37
  register: n,
37
38
  updateFilter: a,
38
39
  getCurrentSearchItem: o,
39
40
  handleSearch: s,
40
41
  reset: i
41
42
  }), d(() => {
42
- if (n({ reset: i }), r.immediate && (e != null && e.getCurrentSearchItem)) {
43
- const t = e.getCurrentSearchItem();
44
- t[r.filterKey] && a(t[r.filterKey]);
43
+ if (n({ reset: i }), t.immediate && (e != null && e.getCurrentSearchItem)) {
44
+ const r = e.getCurrentSearchItem();
45
+ r[t.filterKey] && a(r[t.filterKey]);
45
46
  }
46
- }), m(() => {
47
- e && e.unregisterComponent(r.id);
48
- }), (t, c) => (y(), h("div", I, [
49
- S(t.$slots, "default", {
47
+ }), h(() => {
48
+ e && e.unregisterComponent(t.id);
49
+ }), (r, p) => (S(), y("div", K, [
50
+ g(r.$slots, "default", {
50
51
  register: n,
51
52
  update: a,
52
53
  getCurrentSearchItem: o,
@@ -56,5 +57,5 @@ const I = { class: "filter-wrapper yahee-filter-wrapper" }, v = /* @__PURE__ */
56
57
  }
57
58
  });
58
59
  export {
59
- v as default
60
+ w as default
60
61
  };
@@ -0,0 +1,10 @@
1
+ function e() {
2
+ return {
3
+ type: "filter",
4
+ immediate: !1,
5
+ reset: void 0
6
+ };
7
+ }
8
+ export {
9
+ e as defaultFilterWrapperProps
10
+ };
package/es/style.css CHANGED
@@ -529,14 +529,13 @@
529
529
  .yahee-filter-container {
530
530
  display: flex;
531
531
  width: 100%;
532
+ justify-content: space-between;
532
533
  }
533
534
  .yahee-filter-container .filter-section {
534
535
  min-width: 200px;
535
536
  }
536
537
  .yahee-filter-container .search-section {
537
538
  min-height: 60px;
538
- position: fixed;
539
- right: -50px;
540
539
  }
541
540
  .yahee-filter-container .content-section {
542
541
  flex: 1;
@@ -1 +1 @@
1
- .yahee-complex-search[data-v-715db21e]{width:100%}.search-type-checkbox[data-v-715db21e]{display:flex;justify-content:space-between;margin-top:8px;align-items:center}.row-class[data-v-715db21e]{margin-bottom:16px}.dialog-footer[data-v-715db21e]{display:flex;justify-content:flex-end;gap:12px}.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-ad18c668]{display:inline-block;margin-right:16px;margin-bottom:16px;vertical-align:top}
1
+ .row-class[data-v-12186e80]{margin-bottom:16px}.dialog-footer[data-v-12186e80]{display:flex;justify-content:flex-end;gap:12px}.yahee-complex-search[data-v-c03e960b]{width:100%}.search-type-checkbox[data-v-c03e960b]{display:flex;justify-content:space-between;margin-top:8px;align-items:center}.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-1188ff04]{display:inline-block;margin-right:16px;margin-bottom:16px;vertical-align:top}
@@ -1,14 +1,13 @@
1
1
  .yahee-filter-container {
2
2
  display: flex;
3
3
  width: 100%;
4
+ justify-content: space-between;
4
5
  }
5
6
  .yahee-filter-container .filter-section {
6
7
  min-width: 200px;
7
8
  }
8
9
  .yahee-filter-container .search-section {
9
10
  min-height: 60px;
10
- position: fixed;
11
- right: -50px;
12
11
  }
13
12
  .yahee-filter-container .content-section {
14
13
  flex: 1;
package/lib/style.css CHANGED
@@ -529,14 +529,13 @@
529
529
  .yahee-filter-container {
530
530
  display: flex;
531
531
  width: 100%;
532
+ justify-content: space-between;
532
533
  }
533
534
  .yahee-filter-container .filter-section {
534
535
  min-width: 200px;
535
536
  }
536
537
  .yahee-filter-container .search-section {
537
538
  min-height: 60px;
538
- position: fixed;
539
- right: -50px;
540
539
  }
541
540
  .yahee-filter-container .content-section {
542
541
  flex: 1;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.98-beta-03",
4
+ "version": "0.0.100",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
@@ -0,0 +1,137 @@
1
+ import { FilterValue, SearchOptions, SearchItem } from './complex-search';
2
+ import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ defaultSearch: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ options: {
9
+ type: () => Array<{
10
+ value: string;
11
+ label: string;
12
+ }>;
13
+ default: () => SearchOptions[];
14
+ };
15
+ placeholderText: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ showPatchSearch: {
20
+ type: BooleanConstructor;
21
+ default: false;
22
+ };
23
+ showWithinFilterCheckbox: {
24
+ type: BooleanConstructor;
25
+ default: true;
26
+ };
27
+ isWithinFilterOptions: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ showSelect: {
32
+ type: BooleanConstructor;
33
+ default: false;
34
+ };
35
+ searchItem: {
36
+ type: () => Record<string, FilterValue>;
37
+ default: () => SearchItem;
38
+ };
39
+ isBatchSelectOptionsSameWithInput: {
40
+ type: BooleanConstructor;
41
+ default: true;
42
+ };
43
+ batchOptions: {
44
+ type: () => Array<{
45
+ value: string;
46
+ label: string;
47
+ }>;
48
+ default: () => SearchOptions[];
49
+ };
50
+ }>, {
51
+ selectedSearchType: Ref<string, string>;
52
+ putSearch: Ref<string, string>;
53
+ localIsWithinFilterOptions: Ref<boolean, boolean>;
54
+ showBatchSearch: Ref<boolean, boolean>;
55
+ defaultOptions: {
56
+ value: string;
57
+ label: string;
58
+ }[];
59
+ handleSearch: () => void;
60
+ handleClear: () => void;
61
+ pasteFormatInput: ($event: ClipboardEvent) => void;
62
+ handleBatchSearchConfirm: (data: {
63
+ searchType: string;
64
+ searchContent: string;
65
+ }) => void;
66
+ searchWithinFilterOptions: () => void;
67
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("search" | "update:isWithinFilterOptions")[], "search" | "update:isWithinFilterOptions", PublicProps, Readonly< ExtractPropTypes<{
68
+ defaultSearch: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ options: {
73
+ type: () => Array<{
74
+ value: string;
75
+ label: string;
76
+ }>;
77
+ default: () => SearchOptions[];
78
+ };
79
+ placeholderText: {
80
+ type: StringConstructor;
81
+ default: string;
82
+ };
83
+ showPatchSearch: {
84
+ type: BooleanConstructor;
85
+ default: false;
86
+ };
87
+ showWithinFilterCheckbox: {
88
+ type: BooleanConstructor;
89
+ default: true;
90
+ };
91
+ isWithinFilterOptions: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ showSelect: {
96
+ type: BooleanConstructor;
97
+ default: false;
98
+ };
99
+ searchItem: {
100
+ type: () => Record<string, FilterValue>;
101
+ default: () => SearchItem;
102
+ };
103
+ isBatchSelectOptionsSameWithInput: {
104
+ type: BooleanConstructor;
105
+ default: true;
106
+ };
107
+ batchOptions: {
108
+ type: () => Array<{
109
+ value: string;
110
+ label: string;
111
+ }>;
112
+ default: () => SearchOptions[];
113
+ };
114
+ }>> & Readonly<{
115
+ onSearch?: (...args: any[]) => any;
116
+ "onUpdate:isWithinFilterOptions"?: (...args: any[]) => any;
117
+ }>, {
118
+ showSelect: boolean;
119
+ batchOptions: {
120
+ value: string;
121
+ label: string;
122
+ }[];
123
+ defaultSearch: string;
124
+ options: {
125
+ value: string;
126
+ label: string;
127
+ }[];
128
+ placeholderText: string;
129
+ showPatchSearch: boolean;
130
+ showWithinFilterCheckbox: boolean;
131
+ searchItem: Record<string, FilterValue>;
132
+ isBatchSelectOptionsSameWithInput: boolean;
133
+ isWithinFilterOptions: boolean;
134
+ }, {}, {
135
+ BatchSearchDialog: any;
136
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
137
+ export default _default;
@@ -0,0 +1,141 @@
1
+ import { SFCWithInstall } from '../utils/typescript';
2
+ import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { SearchOptions, FilterValue, SearchItem } from './complex-search';
4
+ export declare const YaheeComplexSearch: SFCWithInstall<DefineComponent<ExtractPropTypes<{
5
+ defaultSearch: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ options: {
10
+ type: () => Array<{
11
+ value: string;
12
+ label: string;
13
+ }>;
14
+ default: () => SearchOptions[];
15
+ };
16
+ placeholderText: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ showPatchSearch: {
21
+ type: BooleanConstructor;
22
+ default: false;
23
+ };
24
+ showWithinFilterCheckbox: {
25
+ type: BooleanConstructor;
26
+ default: true;
27
+ };
28
+ isWithinFilterOptions: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ showSelect: {
33
+ type: BooleanConstructor;
34
+ default: false;
35
+ };
36
+ searchItem: {
37
+ type: () => Record<string, FilterValue>;
38
+ default: () => SearchItem;
39
+ };
40
+ isBatchSelectOptionsSameWithInput: {
41
+ type: BooleanConstructor;
42
+ default: true;
43
+ };
44
+ batchOptions: {
45
+ type: () => Array<{
46
+ value: string;
47
+ label: string;
48
+ }>;
49
+ default: () => SearchOptions[];
50
+ };
51
+ }>, {
52
+ selectedSearchType: Ref<string, string>;
53
+ putSearch: Ref<string, string>;
54
+ localIsWithinFilterOptions: Ref<boolean, boolean>;
55
+ showBatchSearch: Ref<boolean, boolean>;
56
+ defaultOptions: {
57
+ value: string;
58
+ label: string;
59
+ }[];
60
+ handleSearch: () => void;
61
+ handleClear: () => void;
62
+ pasteFormatInput: ($event: ClipboardEvent) => void;
63
+ handleBatchSearchConfirm: (data: {
64
+ searchType: string;
65
+ searchContent: string;
66
+ }) => void;
67
+ searchWithinFilterOptions: () => void;
68
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("search" | "update:isWithinFilterOptions")[], "search" | "update:isWithinFilterOptions", PublicProps, Readonly< ExtractPropTypes<{
69
+ defaultSearch: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ options: {
74
+ type: () => Array<{
75
+ value: string;
76
+ label: string;
77
+ }>;
78
+ default: () => SearchOptions[];
79
+ };
80
+ placeholderText: {
81
+ type: StringConstructor;
82
+ default: string;
83
+ };
84
+ showPatchSearch: {
85
+ type: BooleanConstructor;
86
+ default: false;
87
+ };
88
+ showWithinFilterCheckbox: {
89
+ type: BooleanConstructor;
90
+ default: true;
91
+ };
92
+ isWithinFilterOptions: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ showSelect: {
97
+ type: BooleanConstructor;
98
+ default: false;
99
+ };
100
+ searchItem: {
101
+ type: () => Record<string, FilterValue>;
102
+ default: () => SearchItem;
103
+ };
104
+ isBatchSelectOptionsSameWithInput: {
105
+ type: BooleanConstructor;
106
+ default: true;
107
+ };
108
+ batchOptions: {
109
+ type: () => Array<{
110
+ value: string;
111
+ label: string;
112
+ }>;
113
+ default: () => SearchOptions[];
114
+ };
115
+ }>> & Readonly<{
116
+ onSearch?: (...args: any[]) => any;
117
+ "onUpdate:isWithinFilterOptions"?: (...args: any[]) => any;
118
+ }>, {
119
+ showSelect: boolean;
120
+ batchOptions: {
121
+ value: string;
122
+ label: string;
123
+ }[];
124
+ defaultSearch: string;
125
+ options: {
126
+ value: string;
127
+ label: string;
128
+ }[];
129
+ placeholderText: string;
130
+ showPatchSearch: boolean;
131
+ showWithinFilterCheckbox: boolean;
132
+ searchItem: Record<string, FilterValue>;
133
+ isBatchSelectOptionsSameWithInput: boolean;
134
+ isWithinFilterOptions: boolean;
135
+ }, {}, {
136
+ BatchSearchDialog: any;
137
+ }, {}, string, ComponentProvideOptions, true, {}, any>> & Record<string, any>;
138
+ export default YaheeComplexSearch;
139
+ export * from './complex-search.vue';
140
+ export * from './complex-search';
141
+ export * from './props';