yahee-components 0.0.113 → 0.0.114

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 (174) hide show
  1. package/es/annex-upload/annex-upload.vue.js +55 -0
  2. package/es/annex-upload/annex-upload.vue2.js +121 -0
  3. package/es/annex-upload/index.js +7 -0
  4. package/es/annex-upload/mimeType.js +822 -0
  5. package/es/annex-upload/style/index.css +7 -0
  6. package/es/border-wrap/border-wrap.vue.js +75 -0
  7. package/es/border-wrap/border-wrap.vue2.js +48 -0
  8. package/es/border-wrap/index.js +7 -0
  9. package/es/border-wrap/props.js +11 -0
  10. package/es/border-wrap/style/index.css +24 -0
  11. package/es/common-import/common-import.vue.js +394 -0
  12. package/es/common-import/common-import.vue2.js +366 -0
  13. package/es/common-import/index.js +7 -0
  14. package/es/common-import/props.js +23 -0
  15. package/es/common-import/style/index.css +32 -0
  16. package/es/complex-search/batch-search-dialog.vue.js +119 -0
  17. package/es/complex-search/batch-search-dialog.vue2.js +50 -0
  18. package/es/complex-search/complex-search.vue.js +122 -0
  19. package/es/complex-search/complex-search.vue2.js +71 -0
  20. package/es/complex-search/index.js +7 -0
  21. package/es/complex-search/props.js +19 -0
  22. package/es/complex-search/style/index.css +24 -0
  23. package/es/complex-search/useComplexSearch.js +44 -0
  24. package/es/copy/copy.vue.js +39 -0
  25. package/es/copy/copy.vue2.js +36 -0
  26. package/es/copy/index.js +7 -0
  27. package/es/copy/props.js +9 -0
  28. package/es/copy/style/index.css +12 -0
  29. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
  30. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
  31. package/es/country-platform-shop-condition/index.js +7 -0
  32. package/es/country-platform-shop-condition/style/index.css +59 -0
  33. package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
  34. package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
  35. package/es/drop-down-condition/index.js +7 -0
  36. package/es/drop-down-condition/style/index.css +64 -0
  37. package/es/echart-gauge/echart-gauge.vue.js +14 -0
  38. package/es/echart-gauge/echart-gauge.vue2.js +149 -0
  39. package/es/echart-gauge/index.js +7 -0
  40. package/es/echart-gauge/props.js +9 -0
  41. package/es/echart-gauge/style/index.css +4 -0
  42. package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
  43. package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
  44. package/es/file-download-wrapper/index.js +7 -0
  45. package/es/file-download-wrapper/key.js +17 -0
  46. package/es/file-download-wrapper/props.js +12 -0
  47. package/es/file-download-wrapper/style/index.css +66 -0
  48. package/es/filter-container/filter-container.vue.js +24 -0
  49. package/es/filter-container/filter-container.vue2.js +61 -0
  50. package/es/filter-container/index.js +7 -0
  51. package/es/filter-container/key.js +4 -0
  52. package/es/filter-container/props.js +11 -0
  53. package/es/filter-container/style/index.css +16 -0
  54. package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
  55. package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
  56. package/es/filter-wrapper/index.js +7 -0
  57. package/es/filter-wrapper/props.js +10 -0
  58. package/es/filter-wrapper/style/index.css +3 -0
  59. package/es/height-collapse/height-collapse.vue.js +26 -0
  60. package/es/height-collapse/height-collapse.vue2.js +44 -0
  61. package/es/height-collapse/index.js +7 -0
  62. package/es/height-collapse/props.js +11 -0
  63. package/es/height-collapse/style/index.css +32 -0
  64. package/es/help-tag/help-tag.vue.js +46 -0
  65. package/es/help-tag/help-tag.vue2.js +51 -0
  66. package/es/help-tag/index.js +7 -0
  67. package/es/help-tag/props.js +9 -0
  68. package/es/help-tag/style/index.css +8 -0
  69. package/es/image-upload/image-upload.vue.js +116 -0
  70. package/es/image-upload/image-upload.vue2.js +93 -0
  71. package/es/image-upload/index.js +7 -0
  72. package/es/image-upload/style/index.css +33 -0
  73. package/es/index.js +63 -0
  74. package/es/installs.js +41 -0
  75. package/es/left-condition/index.js +7 -0
  76. package/es/left-condition/left-condition-sub.vue.js +36 -0
  77. package/es/left-condition/left-condition-sub.vue2.js +78 -0
  78. package/es/left-condition/left-condition.vue.js +77 -0
  79. package/es/left-condition/left-condition.vue2.js +162 -0
  80. package/es/left-condition/style/index.css +10 -0
  81. package/es/left-condition-enum/index.js +7 -0
  82. package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
  83. package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
  84. package/es/left-condition-enum/style/index.css +10 -0
  85. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +99 -0
  86. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +22 -0
  87. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
  88. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
  89. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
  90. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
  91. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
  92. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
  93. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
  94. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
  137. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
  138. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
  139. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
  140. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
  141. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
  142. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
  143. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
  144. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
  145. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
  151. package/lib/annex-upload/style/index.css +7 -0
  152. package/lib/border-wrap/style/index.css +24 -0
  153. package/lib/common-import/style/index.css +32 -0
  154. package/lib/complex-search/style/index.css +24 -0
  155. package/lib/copy/style/index.css +12 -0
  156. package/lib/country-platform-shop-condition/style/index.css +59 -0
  157. package/lib/drop-down-condition/style/index.css +64 -0
  158. package/lib/echart-gauge/style/index.css +4 -0
  159. package/lib/file-download-wrapper/style/index.css +66 -0
  160. package/lib/filter-container/style/index.css +16 -0
  161. package/lib/filter-wrapper/style/index.css +3 -0
  162. package/lib/height-collapse/style/index.css +32 -0
  163. package/lib/help-tag/style/index.css +8 -0
  164. package/lib/image-upload/style/index.css +33 -0
  165. package/lib/left-condition/style/index.css +10 -0
  166. package/lib/left-condition-enum/style/index.css +10 -0
  167. package/lib/operation-log/style/index.css +234 -0
  168. package/lib/scale-screen/style/index.css +0 -0
  169. package/lib/style.css +1405 -0
  170. package/lib/styles/custom.css +82 -0
  171. package/lib/styles/globals.css +699 -0
  172. package/lib/styles/index.css +753 -0
  173. package/lib/styles/variables.css +34 -0
  174. package/package.json +1 -1
@@ -0,0 +1,122 @@
1
+ import w from "./complex-search.vue2.js";
2
+ import { resolveComponent as n, createElementBlock as p, openBlock as a, Fragment as i, createElementVNode as d, createVNode as s, withKeys as v, createSlots as B, withCtx as t, renderList as h, createBlock as r, createCommentVNode as m, createTextVNode as f } from "vue";
3
+ /* empty css */
4
+ import g from "../_virtual/_plugin-vue_export-helper.js";
5
+ const O = { class: "yahee-complex-search" }, F = { class: "search-type-checkbox" };
6
+ function T(e, o, I, U, W, $) {
7
+ const c = n("el-option"), u = n("el-select"), S = n("Search"), b = n("el-icon"), k = n("el-input"), V = n("el-checkbox"), y = n("el-link"), C = n("BatchSearchDialog");
8
+ return a(), p(i, null, [
9
+ d("div", O, [
10
+ s(k, {
11
+ modelValue: e.putSearch,
12
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => e.putSearch = l),
13
+ placeholder: e.placeholderText,
14
+ class: "input-with-select",
15
+ clearable: "",
16
+ maxlength: "30",
17
+ onChange: e.handleSearch,
18
+ onKeyup: v(e.handleSearch, ["enter"]),
19
+ onPaste: e.pasteFormatInput,
20
+ onClear: e.handleClear
21
+ }, B({
22
+ append: t(() => [
23
+ s(b, {
24
+ size: "12",
25
+ color: "#3366cc",
26
+ style: { cursor: "pointer" },
27
+ class: "icon-cusor",
28
+ onClick: e.handleSearch
29
+ }, {
30
+ default: t(() => [
31
+ s(S)
32
+ ]),
33
+ _: 1
34
+ }, 8, ["onClick"])
35
+ ]),
36
+ _: 2
37
+ }, [
38
+ e.showSelect ? {
39
+ name: "prepend",
40
+ fn: t(() => [
41
+ s(u, {
42
+ modelValue: e.selectedSearchType,
43
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => e.selectedSearchType = l),
44
+ size: "small",
45
+ class: "custom-select"
46
+ }, {
47
+ default: t(() => [
48
+ (a(!0), p(i, null, h(e.options, (l) => (a(), r(c, {
49
+ key: l.label,
50
+ label: l.label,
51
+ value: l.value
52
+ }, null, 8, ["label", "value"]))), 128))
53
+ ]),
54
+ _: 1
55
+ }, 8, ["modelValue"])
56
+ ]),
57
+ key: "0"
58
+ } : {
59
+ name: "prepend",
60
+ fn: t(() => [
61
+ s(u, {
62
+ modelValue: e.selectedSearchType,
63
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => e.selectedSearchType = l),
64
+ size: "small",
65
+ class: "custom-select",
66
+ disabled: ""
67
+ }, {
68
+ default: t(() => [
69
+ (a(!0), p(i, null, h(e.defaultOptions, (l) => (a(), r(c, {
70
+ key: l.label,
71
+ label: l.label,
72
+ value: l.value
73
+ }, null, 8, ["label", "value"]))), 128))
74
+ ]),
75
+ _: 1
76
+ }, 8, ["modelValue"])
77
+ ]),
78
+ key: "1"
79
+ }
80
+ ]), 1032, ["modelValue", "placeholder", "onChange", "onKeyup", "onPaste", "onClear"]),
81
+ d("div", F, [
82
+ e.showWithinFilterCheckbox ? (a(), r(V, {
83
+ key: 0,
84
+ modelValue: e.localIsWithinFilterOptions,
85
+ "onUpdate:modelValue": o[3] || (o[3] = (l) => e.localIsWithinFilterOptions = l),
86
+ onChange: e.searchWithinFilterOptions
87
+ }, {
88
+ default: t(() => o[6] || (o[6] = [
89
+ f(" 在筛选条件内查询 ")
90
+ ])),
91
+ _: 1,
92
+ __: [6]
93
+ }, 8, ["modelValue", "onChange"])) : m("", !0),
94
+ e.showPatchSearch ? (a(), r(y, {
95
+ key: 1,
96
+ type: "primary",
97
+ onClick: o[4] || (o[4] = (l) => e.showBatchSearch = !0)
98
+ }, {
99
+ default: t(() => o[7] || (o[7] = [
100
+ f(" 批量查询 ")
101
+ ])),
102
+ _: 1,
103
+ __: [7]
104
+ })) : m("", !0)
105
+ ])
106
+ ]),
107
+ s(C, {
108
+ modelValue: e.showBatchSearch,
109
+ "onUpdate:modelValue": o[5] || (o[5] = (l) => e.showBatchSearch = l),
110
+ "show-select": e.showSelect,
111
+ "is-batch-select-same-with-input": e.isBatchSelectOptionsSameWithInput,
112
+ "input-options": e.options,
113
+ "batch-options": e.batchOptions,
114
+ "default-options": e.defaultOptions,
115
+ onConfirm: e.handleBatchSearchConfirm
116
+ }, null, 8, ["modelValue", "show-select", "is-batch-select-same-with-input", "input-options", "batch-options", "default-options", "onConfirm"])
117
+ ], 64);
118
+ }
119
+ const K = /* @__PURE__ */ g(w, [["render", T], ["__scopeId", "data-v-75f47f8c"], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/complex-search/complex-search.vue"]]);
120
+ export {
121
+ K as default
122
+ };
@@ -0,0 +1,71 @@
1
+ import { defineComponent as p, ref as u } from "vue";
2
+ import { defaultComplexSearchProps as e } from "./props.js";
3
+ import { useComplexSearch as f } from "./useComplexSearch.js";
4
+ import d from "./batch-search-dialog.vue.js";
5
+ const F = p({
6
+ name: "YaheeComplexSearch",
7
+ components: {
8
+ BatchSearchDialog: d
9
+ },
10
+ props: {
11
+ defaultSearch: { type: String, default: e().defaultSearch },
12
+ options: {
13
+ type: Array,
14
+ default: e().options
15
+ },
16
+ placeholderText: { type: String, default: e().placeholderText },
17
+ showPatchSearch: { type: Boolean, default: e().showPatchSearch },
18
+ showWithinFilterCheckbox: {
19
+ type: Boolean,
20
+ default: e().showWithinFilterCheckbox
21
+ },
22
+ isWithinFilterOptions: { type: Boolean, default: !1 },
23
+ showSelect: { type: Boolean, default: e().showSelect },
24
+ searchItem: {
25
+ type: Object,
26
+ default: e().searchItem
27
+ },
28
+ isBatchSelectOptionsSameWithInput: {
29
+ type: Boolean,
30
+ default: e().isBatchSelectOptionsSameWithInput
31
+ },
32
+ batchOptions: {
33
+ type: Array,
34
+ default: e().batchOptions
35
+ }
36
+ },
37
+ emits: ["update:isWithinFilterOptions", "search"],
38
+ setup(h, { emit: t }) {
39
+ const {
40
+ selectedSearchType: i,
41
+ putSearch: r,
42
+ localIsWithinFilterOptions: a,
43
+ handleSearch: l,
44
+ handleClear: n,
45
+ pasteFormatInput: s
46
+ } = f(h, t), c = u(!1);
47
+ return {
48
+ selectedSearchType: i,
49
+ putSearch: r,
50
+ localIsWithinFilterOptions: a,
51
+ showBatchSearch: c,
52
+ defaultOptions: [{ value: "WHOLE_SEARCH", label: "综合搜索" }],
53
+ handleSearch: l,
54
+ handleClear: n,
55
+ pasteFormatInput: s,
56
+ handleBatchSearchConfirm: (o) => {
57
+ t("search", {
58
+ putSearch: o.searchContent,
59
+ searchType: o.searchType,
60
+ isWithinFilterOptions: a.value
61
+ });
62
+ },
63
+ searchWithinFilterOptions: () => {
64
+ t("update:isWithinFilterOptions", a.value);
65
+ }
66
+ };
67
+ }
68
+ });
69
+ export {
70
+ F as default
71
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as e } from "../utils/install.js";
2
+ import o from "./complex-search.vue.js";
3
+ const a = e(o);
4
+ export {
5
+ a as YaheeComplexSearch,
6
+ a as default
7
+ };
@@ -0,0 +1,19 @@
1
+ function e() {
2
+ return {
3
+ pasteFormat: () => {
4
+ },
5
+ defaultSearch: "",
6
+ options: () => [],
7
+ placeholderText: "",
8
+ showPatchSearch: !1,
9
+ showWithinFilterCheckbox: !0,
10
+ showSelect: !1,
11
+ searchItem: () => ({}),
12
+ isBatchSelectOptionsSameWithInput: !0,
13
+ batchOptions: () => [],
14
+ isWithinFilterOptions: !1
15
+ };
16
+ }
17
+ export {
18
+ e as defaultComplexSearchProps
19
+ };
@@ -0,0 +1,24 @@
1
+ .yahee-complex-search .input-with-select {
2
+ width: 83%;
3
+ border-radius: 0;
4
+ height: 24px;
5
+ }
6
+ .yahee-complex-search .custom-select {
7
+ width: 95px;
8
+ background-color: white;
9
+ }
10
+ .yahee-complex-search :deep(.custom-button + .custom-button) {
11
+ margin-left: 5px;
12
+ }
13
+ .yahee-complex-search :deep(.custom-button) {
14
+ padding: 1px 4px;
15
+ height: 22px;
16
+ }
17
+ .yahee-complex-search .icon-cursor {
18
+ cursor: pointer;
19
+ }
20
+ .yahee-complex-search .search-type-checkbox {
21
+ display: flex;
22
+ justify-content: space-between;
23
+ width: 83%;
24
+ }
@@ -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
+ };
@@ -0,0 +1,39 @@
1
+ import n from "./copy.vue2.js";
2
+ import { createElementBlock as r, openBlock as l, createVNode as e, withCtx as c, createElementVNode as s, renderSlot as p } from "vue";
3
+ import a from "../_virtual/_plugin-vue_export-helper.js";
4
+ const f = { class: "yahee-copy" };
5
+ function i(t, m, _, o, d, y) {
6
+ return l(), r("div", f, [
7
+ e(o.ElTooltip, {
8
+ placement: "right",
9
+ effect: "light",
10
+ offset: -5,
11
+ "show-arrow": !1,
12
+ "popper-class": "yahee-copy-custom-popper-class"
13
+ }, {
14
+ content: c(() => [
15
+ e(o.ElIcon, {
16
+ color: "#3366cc",
17
+ size: "18",
18
+ class: "icon",
19
+ onClick: o.copyContent
20
+ }, {
21
+ default: c(() => [
22
+ e(o.DocumentCopy)
23
+ ]),
24
+ _: 1
25
+ })
26
+ ]),
27
+ default: c(() => [
28
+ s("div", null, [
29
+ p(t.$slots, "default")
30
+ ])
31
+ ]),
32
+ _: 3
33
+ })
34
+ ]);
35
+ }
36
+ const E = /* @__PURE__ */ a(n, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/copy/copy.vue"]]);
37
+ export {
38
+ E as default
39
+ };
@@ -0,0 +1,36 @@
1
+ import { defineComponent as n } from "vue";
2
+ import { ElMessage as s, ElIcon as m, ElTooltip as i } from "element-plus";
3
+ import "element-plus/theme-chalk/src/base.scss";
4
+ import "element-plus/theme-chalk/src/tooltip.scss";
5
+ import "element-plus/theme-chalk/src/popper.scss";
6
+ import "element-plus/theme-chalk/src/badge.scss";
7
+ import "element-plus/theme-chalk/src/message.scss";
8
+ import { DocumentCopy as c } from "@element-plus/icons-vue";
9
+ import { useClipboard as u } from "../packages/components/hooks/useClipboard.js";
10
+ const b = /* @__PURE__ */ n({
11
+ name: "YaheeCopy",
12
+ __name: "copy",
13
+ props: {
14
+ content: { type: String, required: !0, default: "" },
15
+ message: { type: String, required: !1, default: "复制成功" }
16
+ },
17
+ setup(r, { expose: p }) {
18
+ p();
19
+ const e = r, { copyUrl: t } = u(), o = { props: e, copyUrl: t, copyContent: () => {
20
+ t(e.content), s({
21
+ message: e.message,
22
+ type: "success"
23
+ });
24
+ }, get ElTooltip() {
25
+ return i;
26
+ }, get ElIcon() {
27
+ return m;
28
+ }, get DocumentCopy() {
29
+ return c;
30
+ } };
31
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
32
+ }
33
+ });
34
+ export {
35
+ b as default
36
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../utils/install.js";
2
+ import t from "./copy.vue.js";
3
+ const a = o(t);
4
+ export {
5
+ a as YaheeCopy,
6
+ a as default
7
+ };
@@ -0,0 +1,9 @@
1
+ function e() {
2
+ return {
3
+ content: "",
4
+ message: "复制成功"
5
+ };
6
+ }
7
+ export {
8
+ e as defaultCopyProps
9
+ };
@@ -0,0 +1,12 @@
1
+ .yahee-copy .el-tooltip__trigger {
2
+ width: -moz-fit-content !important;
3
+ width: fit-content !important;
4
+ }
5
+
6
+ .yahee-copy-custom-popper-class {
7
+ background: transparent !important;
8
+ border: none !important;
9
+ }
10
+ .yahee-copy-custom-popper-class .icon {
11
+ cursor: pointer;
12
+ }
@@ -0,0 +1,120 @@
1
+ import f from "./country-platform-shop-condition.vue2.js";
2
+ import { createElementBlock as n, openBlock as o, createVNode as p, withCtx as c, createElementVNode as t, normalizeStyle as d, Fragment as i, renderList as s, toDisplayString as y, createBlock as m, createTextVNode as b } from "vue";
3
+ import k from "../_virtual/_plugin-vue_export-helper.js";
4
+ const G = { class: "yahee-country-platform-shop-condition" }, V = { class: "popover-table" }, S = { id: "all" }, C = ["onClick"], g = { id: "y" }, v = ["onClick"], w = { style: { display: "flex", "align-items": "center", outline: "none" } };
5
+ function x(E, T, B, l, F, L) {
6
+ return o(), n("div", G, [
7
+ p(l.ElPopover, {
8
+ placement: "bottom",
9
+ trigger: "hover",
10
+ width: "'auto'",
11
+ "popper-class": "custom-popover",
12
+ onHide: l.handleHide,
13
+ onShow: l.handleShow
14
+ }, {
15
+ reference: c(() => [
16
+ t("div", w, [
17
+ p(l.ElButton, {
18
+ size: "small",
19
+ class: "el-button custom-total-button",
20
+ style: d(l.getDefaultSelectedAllStyle(l.isSelectedAll)),
21
+ onClick: l.selectAll
22
+ }, {
23
+ default: c(() => [
24
+ b(y(l.M2("全部")), 1)
25
+ ]),
26
+ _: 1
27
+ }, 8, ["style"]),
28
+ (o(!0), n(i, null, s(l.selectList, (r) => (o(), m(l.ElButton, {
29
+ key: r,
30
+ style: d(l.rowTitleStyle[r.xGroupValue]),
31
+ class: "custom-button",
32
+ onClick: (h) => l.toggleRowSelection(r)
33
+ }, {
34
+ default: c(() => [
35
+ b(y(l.M2(r.xGroupText)), 1)
36
+ ]),
37
+ _: 2
38
+ }, 1032, ["style", "onClick"]))), 128))
39
+ ])
40
+ ]),
41
+ default: c(() => {
42
+ var r, h;
43
+ return [
44
+ t("table", V, [
45
+ t("thead", null, [
46
+ t("tr", null, [
47
+ t("th", S, [
48
+ t("span", {
49
+ style: d(l.getDefaultSelectedAllStyle(l.isSelectedAll)),
50
+ class: "el-button el-button--small custom-button",
51
+ onClick: l.selectAll
52
+ }, " 全部 ", 4)
53
+ ]),
54
+ (o(!0), n(i, null, s((r = l.xyFilters) == null ? void 0 : r.xGroup, (e) => (o(), n("th", {
55
+ id: "x",
56
+ key: e.xGroupValue
57
+ }, [
58
+ t("span", {
59
+ style: d({ ...l.rowTitleStyle[e.xGroupValue], width: "100%" }),
60
+ class: "el-button--small el-button custom-button",
61
+ onClick: (_) => l.toggleRowSelection(e)
62
+ }, y(e.xGroupText), 13, C)
63
+ ]))), 128))
64
+ ])
65
+ ]),
66
+ t("tbody", null, [
67
+ (o(!0), n(i, null, s((h = l.xyFilters) == null ? void 0 : h.yGroup, (e) => {
68
+ var _;
69
+ return o(), n("tr", {
70
+ key: e.yGroupValue
71
+ }, [
72
+ t("th", g, [
73
+ t("span", {
74
+ style: d({ ...l.columnTitleStyle[e.yGroupValue], width: "100%" }),
75
+ class: "el-button--small el-button custom-button",
76
+ onClick: (u) => l.toggleColumnSelection(e)
77
+ }, y(e.yGroupText), 13, v)
78
+ ]),
79
+ (o(!0), n(i, null, s((_ = l.xyFilters) == null ? void 0 : _.xGroup, (u) => (o(), n("td", {
80
+ key: u.xGroupValue
81
+ }, [
82
+ p(l.ElCheckboxGroup, {
83
+ modelValue: l.checkList[u.xGroupValue + "-" + e.yGroupValue],
84
+ "onUpdate:modelValue": (a) => l.checkList[u.xGroupValue + "-" + e.yGroupValue] = a
85
+ }, {
86
+ default: c(() => [
87
+ (o(!0), n(i, null, s(l.getContentForCell(
88
+ u.xGroupValue,
89
+ e.yGroupValue
90
+ ), (a) => (o(), m(l.ElCheckbox, {
91
+ key: a.value,
92
+ border: "",
93
+ class: "el-button el-button-small custom-button",
94
+ label: a.text,
95
+ value: a.value,
96
+ size: "small"
97
+ }, {
98
+ default: c(() => [
99
+ b(y(a.text), 1)
100
+ ]),
101
+ _: 2
102
+ }, 1032, ["label", "value"]))), 128))
103
+ ]),
104
+ _: 2
105
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
106
+ ]))), 128))
107
+ ]);
108
+ }), 128))
109
+ ])
110
+ ])
111
+ ];
112
+ }),
113
+ _: 1
114
+ })
115
+ ]);
116
+ }
117
+ const H = /* @__PURE__ */ k(f, [["render", x], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/country-platform-shop-condition/country-platform-shop-condition.vue"]]);
118
+ export {
119
+ H as default
120
+ };
@@ -0,0 +1,127 @@
1
+ import { defineComponent as R, toRefs as D, reactive as _, ref as c, watch as M } from "vue";
2
+ import { stylesUtils as T } from "../utils/style.js";
3
+ import { M2 as H } from "../utils/translate.js";
4
+ import L from "../_virtual/lodash.js";
5
+ import { ElPopover as U, ElCheckboxGroup as Y, ElCheckbox as z, ElButton as I } from "element-plus";
6
+ import "element-plus/theme-chalk/src/base.scss";
7
+ import "element-plus/theme-chalk/src/button.scss";
8
+ import "element-plus/theme-chalk/src/checkbox.scss";
9
+ import "element-plus/theme-chalk/src/checkbox-group.scss";
10
+ import "element-plus/theme-chalk/src/popper.scss";
11
+ import "element-plus/theme-chalk/src/popover.scss";
12
+ const ae = /* @__PURE__ */ R({
13
+ name: "YaheeCountryPlatformShopCondition",
14
+ __name: "country-platform-shop-condition",
15
+ props: {
16
+ xyFilters: { type: Object, required: !1 },
17
+ filterKey: { type: String, required: !0 }
18
+ },
19
+ emits: ["filterChange"],
20
+ setup(j, { expose: K, emit: O }) {
21
+ K();
22
+ const G = j, { filterKey: m, xyFilters: a } = D(G), d = O, t = _({});
23
+ let f = _({});
24
+ const p = c({}), v = c({}), i = c(!0), y = c({}), h = c({}), x = c();
25
+ a.value && (x.value = [...a.value.xGroup]);
26
+ function A(e, o) {
27
+ var u;
28
+ return (u = a.value) == null ? void 0 : u.items.filter((l) => l.xGroupValue === e && l.yGroupValue === o);
29
+ }
30
+ function F(e) {
31
+ var u;
32
+ const o = e.xGroupValue;
33
+ if (y.value[o]) {
34
+ for (const l in t)
35
+ l.startsWith(o) && delete t[l];
36
+ y.value[o] = !1;
37
+ } else {
38
+ for (const l of (u = a.value) == null ? void 0 : u.items)
39
+ if (l.xGroupValue === o) {
40
+ let n = t[`${l.xGroupValue}-${l.yGroupValue}`];
41
+ n ? (n.push(l.value), n = [...new Set(n)]) : n = [l.value], t[`${l.xGroupValue}-${l.yGroupValue}`] = n;
42
+ }
43
+ y.value[o] = !0;
44
+ }
45
+ }
46
+ const P = (e) => T.getBackgroundColor(e), W = () => {
47
+ L.isEqual(f, t) || d("filterChange", [
48
+ {
49
+ filterKey: m.value,
50
+ checkedValues: Object.values(Object.values(t)).flat()
51
+ }
52
+ ]);
53
+ }, q = () => {
54
+ f = L.cloneDeep(t);
55
+ };
56
+ function w() {
57
+ if (i.value)
58
+ i.value = !1, Object.keys(t).forEach((e) => {
59
+ delete t[e];
60
+ });
61
+ else {
62
+ i.value = !0;
63
+ for (const e of a.value.items) {
64
+ let o = t[`${e.xGroupValue}-${e.yGroupValue}`];
65
+ o ? o.push(e.value) : o = [e.value], t[`${e.xGroupValue}-${e.yGroupValue}`] = o;
66
+ }
67
+ }
68
+ console.log(t);
69
+ }
70
+ function B(e) {
71
+ const o = e.yGroupValue;
72
+ if (h.value[o]) {
73
+ for (const u in t)
74
+ u.endsWith(o) && delete t[u];
75
+ h.value[o] = !1;
76
+ } else {
77
+ for (const u of a.value.items)
78
+ if (u.yGroupValue === o) {
79
+ let l = t[`${u.xGroupValue}-${u.yGroupValue}`];
80
+ l ? (l.push(u.value), l = [...new Set(l)]) : l = [u.value], t[`${u.xGroupValue}-${u.yGroupValue}`] = l;
81
+ }
82
+ h.value[o] = !0;
83
+ }
84
+ }
85
+ M(
86
+ t,
87
+ (e, o) => {
88
+ var S, k, E, $;
89
+ Object.keys(e).forEach((r) => {
90
+ Array.isArray(e[r]) && e[r].length === 0 && delete e[r];
91
+ }), console.log("新的数组:", e), console.log("旧的数组:", o);
92
+ const u = { backgroundColor: "#3366CC", color: "#fff", borderColor: "#3366CC" }, l = { backgroundColor: "#00bfff", borderColor: "#00bfff" }, n = {}, V = (S = a.value) == null ? void 0 : S.xGroup.length, b = (k = a.value) == null ? void 0 : k.yGroup.length;
93
+ (E = a.value) == null || E.xGroup.forEach((r) => {
94
+ let s = 0;
95
+ for (const g in t)
96
+ g.startsWith(r.xGroupValue) && s++;
97
+ s === 0 ? p.value[r.xGroupValue] = n : s === b ? p.value[r.xGroupValue] = u : p.value[r.xGroupValue] = l;
98
+ }), ($ = a.value) == null || $.yGroup.forEach((r) => {
99
+ let s = 0;
100
+ for (const g in t)
101
+ g.endsWith(r.yGroupValue) && s++;
102
+ s === 0 ? v.value[r.yGroupValue] = n : s === V ? v.value[r.yGroupValue] = u : v.value[r.yGroupValue] = l;
103
+ }), i.value = Object.keys(e).length === V * b;
104
+ },
105
+ { deep: !0 }
106
+ );
107
+ const C = { props: G, filterKey: m, xyFilters: a, emit: d, checkList: t, get backupCheckList() {
108
+ return f;
109
+ }, set backupCheckList(e) {
110
+ f = e;
111
+ }, rowTitleStyle: p, columnTitleStyle: v, isSelectedAll: i, toggleRowSelectionFlags: y, toggleColumnSelectionFlags: h, selectList: x, getContentForCell: A, toggleRowSelection: F, getDefaultSelectedAllStyle: P, handleHide: W, handleShow: q, selectAll: w, toggleColumnSelection: B, get M2() {
112
+ return H;
113
+ }, get ElButton() {
114
+ return I;
115
+ }, get ElCheckbox() {
116
+ return z;
117
+ }, get ElCheckboxGroup() {
118
+ return Y;
119
+ }, get ElPopover() {
120
+ return U;
121
+ } };
122
+ return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
123
+ }
124
+ });
125
+ export {
126
+ ae as default
127
+ };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "../utils/install.js";
2
+ import t from "./country-platform-shop-condition.vue.js";
3
+ const i = o(t);
4
+ export {
5
+ i as YaheeCountryPlatformShopCondition,
6
+ i as default
7
+ };