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,78 @@
1
+ import { defineComponent as C, toRefs as x, ref as p, watch as R, nextTick as h } from "vue";
2
+ import y from "../_virtual/lodash.js";
3
+ import { stylesUtils as V } from "../utils/style.js";
4
+ import { translateEmployeeName as q, M2 as A } from "../utils/translate.js";
5
+ const I = /* @__PURE__ */ C({
6
+ __name: "left-condition-sub",
7
+ props: {
8
+ multiSelectList: { type: Array, required: !0, default: () => [] },
9
+ countList: { type: Array, required: !1 },
10
+ item: { type: Object, required: !0, default: () => ({ label: "", value: "" }) },
11
+ hasNum: { type: Boolean, required: !0, default: !1 },
12
+ allIsCheckbox: { type: Boolean, required: !1, default: !1 },
13
+ translateUserId: { type: Boolean, required: !0, default: !1 }
14
+ },
15
+ emits: [
16
+ "resetAllCheckedValue",
17
+ "setSelectedStatusMap",
18
+ "resetRange",
19
+ "resetIsSelectAll",
20
+ "notifyParent",
21
+ "setNoNeedRefreshNumFilterName"
22
+ ],
23
+ setup(N, { expose: v, emit: _ }) {
24
+ const o = N, { item: r, hasNum: g, multiSelectList: i } = x(o), t = _, l = p(!1), a = p(!1);
25
+ function b(e) {
26
+ t("setNoNeedRefreshNumFilterName"), t("resetRange"), l.value = e.target.checked, s(l.value), u();
27
+ }
28
+ function u() {
29
+ h(() => {
30
+ t("notifyParent");
31
+ });
32
+ }
33
+ function s(e) {
34
+ a.value = e;
35
+ }
36
+ function n(e) {
37
+ l.value = e;
38
+ }
39
+ function c() {
40
+ l.value = !1, a.value = !1;
41
+ }
42
+ function f() {
43
+ return r.value;
44
+ }
45
+ function m() {
46
+ t("resetAllCheckedValue");
47
+ }
48
+ function k() {
49
+ t("setNoNeedRefreshNumFilterName"), t("resetRange"), m(), h(() => {
50
+ n(!0);
51
+ }), u();
52
+ }
53
+ function S(e) {
54
+ return y.includes(i.value, e.value);
55
+ }
56
+ R(l, (e) => {
57
+ console.log("left condition subview watch value", e), t("setSelectedStatusMap", { ...r.value, selected: e });
58
+ }), v({
59
+ resetValue: c,
60
+ getValue: f,
61
+ setCurrentValue: n,
62
+ setCheckboxValue: s
63
+ });
64
+ const d = { props: o, item: r, hasNum: g, multiSelectList: i, emit: t, value: l, checkboxValue: a, checkboxChange: b, notifyParent: u, setCheckboxValue: s, setCurrentValue: n, resetValue: c, getValue: f, resetAllCheckedValue: m, onClick: k, isMultiSelect: S, get _() {
65
+ return y;
66
+ }, get stylesUtils() {
67
+ return V;
68
+ }, get M2() {
69
+ return A;
70
+ }, get translateEmployeeName() {
71
+ return q;
72
+ } };
73
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
74
+ }
75
+ });
76
+ export {
77
+ I as default
78
+ };
@@ -0,0 +1,77 @@
1
+ import h from "./left-condition.vue2.js";
2
+ import { resolveComponent as i, createElementBlock as o, openBlock as n, createVNode as a, withCtx as d, createCommentVNode as f, normalizeStyle as S, toDisplayString as m, Fragment as b, renderList as x, createBlock as k, createTextVNode as s } from "vue";
3
+ import y from "../_virtual/_plugin-vue_export-helper.js";
4
+ const N = { class: "yahee-left-condition" }, C = {
5
+ key: 1,
6
+ class: "el-button custom-button el-button--small",
7
+ style: { "margin-left": "5px", display: "inline-flex" }
8
+ };
9
+ function V(R, l, r, e, B, L) {
10
+ const c = i("el-input-number"), u = i("el-form-item"), _ = i("el-form");
11
+ return n(), o("div", N, [
12
+ a(_, null, {
13
+ default: d(() => [
14
+ a(u, { label: e.label }, {
15
+ default: d(() => [
16
+ e.showTotal ? (n(), o("span", {
17
+ key: 0,
18
+ class: "el-button custom-button el-button--small",
19
+ style: S(e.stylesUtils.getBackgroundColor(e.isSelectAll)),
20
+ onClick: e.clickAllSelected
21
+ }, m(e.totalNum ? `${e.M2("全部")}(${e.totalNum})` : e.M2("全部")), 5)) : f("", !0),
22
+ (n(!0), o(b, null, x(e.getSortedSelectedList, (t, g) => (n(), k(e.LeftConditionSub, {
23
+ key: g,
24
+ ref_for: !0,
25
+ ref: "itemRefs",
26
+ "all-is-checkbox": r.allIsCheckbox,
27
+ "multi-select-list": e.multiSelectList,
28
+ "translate-user-id": e.translateUserId,
29
+ "count-list": e.numList,
30
+ item: t,
31
+ "has-num": e.hasNum,
32
+ onResetAllCheckedValue: e.resetAllCheckedValue,
33
+ onSetSelectedStatusMap: e.setSelectedStatusMap,
34
+ onResetRange: e.resetRange,
35
+ onSetNoNeedRefreshNumFilterName: e.setNoNeedRefreshNumFilterName,
36
+ onNotifyParent: e.notifyParent,
37
+ onResetIsSelectAll: e.resetIsSelectAll
38
+ }, null, 8, ["all-is-checkbox", "multi-select-list", "translate-user-id", "count-list", "item", "has-num"]))), 128)),
39
+ e.displayRangeInput ? (n(), o("div", C, [
40
+ s(m(r.rangeLabel) + "  ", 1),
41
+ a(c, {
42
+ modelValue: e.rangeStart,
43
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => e.rangeStart = t),
44
+ style: { "margin-left": "2px", width: "60px", height: "22px" },
45
+ precision: 2,
46
+ step: 0.01,
47
+ min: 1,
48
+ max: 100,
49
+ controls: !1,
50
+ onBlur: e.handleStartBlur
51
+ }, null, 8, ["modelValue"]),
52
+ s("   %   " + m(r.rangeDelimiter) + "   ", 1),
53
+ a(c, {
54
+ modelValue: e.rangeEnd,
55
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => e.rangeEnd = t),
56
+ style: { width: "60px", height: "22px" },
57
+ precision: 2,
58
+ step: 0.01,
59
+ size: "small",
60
+ max: 100,
61
+ controls: !1,
62
+ onChange: e.handleEndBlur
63
+ }, null, 8, ["modelValue"]),
64
+ l[2] || (l[2] = s(" %   "))
65
+ ])) : f("", !0)
66
+ ]),
67
+ _: 1
68
+ }, 8, ["label"])
69
+ ]),
70
+ _: 1
71
+ })
72
+ ]);
73
+ }
74
+ const I = /* @__PURE__ */ y(h, [["render", V], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/left-condition/left-condition.vue"]]);
75
+ export {
76
+ I as default
77
+ };
@@ -0,0 +1,162 @@
1
+ import { defineComponent as X, toRefs as Z, ref as i, computed as ee, watch as te, onMounted as le, nextTick as b } from "vue";
2
+ import t from "../_virtual/lodash.js";
3
+ import ae from "./left-condition-sub.vue.js";
4
+ import { stylesUtils as ue } from "../utils/style.js";
5
+ import { M2 as re } from "../utils/translate.js";
6
+ const fe = /* @__PURE__ */ X({
7
+ name: "YaheeLeftCondition",
8
+ __name: "left-condition",
9
+ props: {
10
+ multiSelectList: { type: Array, required: !1, default: () => [] },
11
+ selectList: { type: Array, required: !0, default: () => [] },
12
+ countList: { type: Array, required: !1, default: () => [] },
13
+ totalCount: { type: Number, required: !1, default: 0 },
14
+ hasNum: { type: Boolean, required: !1, default: !1 },
15
+ displayRangeInput: { type: Boolean, required: !1, default: !1 },
16
+ rangeLabel: { type: String, required: !1, default: "区间" },
17
+ rangeStartKey: { type: String, required: !1, default: "rangeStart" },
18
+ rangeEndKey: { type: String, required: !1, default: "rangeEnd" },
19
+ rangeDelimiter: { type: String, required: !1, default: "——" },
20
+ allIsCheckbox: { type: Boolean, required: !1 },
21
+ allIsEmpty: { type: Boolean, required: !1, default: !1 },
22
+ translateUserId: { type: Boolean, required: !1 },
23
+ staticSearch: { type: Boolean, required: !1, default: !1 },
24
+ label: { type: String, required: !1, default: "" },
25
+ noNeedRefreshNumFilterName: { type: String, required: !1, default: "" },
26
+ filterKey: { type: String, required: !0, default: "" },
27
+ defaultValues: { type: Array, required: !1, default: () => [] },
28
+ showTotal: { type: Boolean, required: !1, default: !0 }
29
+ },
30
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
31
+ setup(U, { expose: O, emit: $ }) {
32
+ const I = U, {
33
+ multiSelectList: K,
34
+ displayRangeInput: q,
35
+ selectList: c,
36
+ hasNum: J,
37
+ allIsEmpty: _,
38
+ translateUserId: j,
39
+ label: D,
40
+ filterKey: f,
41
+ rangeStartKey: r,
42
+ rangeEndKey: s,
43
+ noNeedRefreshNumFilterName: V,
44
+ defaultValues: d,
45
+ totalCount: m,
46
+ countList: h,
47
+ showTotal: Y
48
+ } = Z(I), S = $, B = i(m.value), v = i(), y = i(), M = i(h.value), a = /* @__PURE__ */ new Map(), n = i(!0), p = i([]), N = () => {
49
+ console.log("left condition notifyParent start"), b(() => {
50
+ var o, T;
51
+ const e = g(), l = F();
52
+ if (t.isEmpty(e) && t.isEmpty(l)) {
53
+ k();
54
+ return;
55
+ }
56
+ const u = [
57
+ {
58
+ filterKey: f.value,
59
+ checkedValues: t.map(e, (R) => R.value)
60
+ }
61
+ ];
62
+ q.value && (u.push({
63
+ filterKey: r.value,
64
+ checkedValues: [(o = a.get(r.value)) == null ? void 0 : o.value]
65
+ }), u.push({
66
+ filterKey: s.value,
67
+ checkedValues: [(T = a.get(s.value)) == null ? void 0 : T.value]
68
+ })), S("filterChange", u), console.log(
69
+ `left condition notifyParent nextTick after emit, filterKey: ${f.value}, checkedValues: ${JSON.stringify(t.map(e, (R) => R.value))}`
70
+ );
71
+ });
72
+ }, z = () => {
73
+ S("setNoNeedRefreshNumFilterName");
74
+ }, A = () => {
75
+ L(), E({ label: r.value, selected: !0, value: v.value }), E({ label: s.value, selected: !0, value: y.value });
76
+ }, G = () => {
77
+ const e = a.get(r.value);
78
+ t.isEmpty(e) && !v.value || t.get(e, "value") === v.value || (A(), N());
79
+ }, H = () => {
80
+ const e = a.get(s.value);
81
+ t.isEmpty(e) && !y.value || t.get(e, "value") === y.value || (A(), N());
82
+ };
83
+ function E(e) {
84
+ console.log(`left condition setSelectedStatusMap start, item: ${JSON.stringify(e)}`), a.set(e.label, {
85
+ selected: e.selected,
86
+ value: e.value
87
+ }), n.value = t.eq(g().length, c.value.length);
88
+ }
89
+ function C(e) {
90
+ return t.includes(K.value, e.value);
91
+ }
92
+ function L() {
93
+ const e = t.map(g(), (l) => l.value);
94
+ a.clear(), t.forEach(p.value, (l) => {
95
+ t.includes(e, l.getValue().value) && l.resetValue();
96
+ }), n.value = !1;
97
+ }
98
+ function x() {
99
+ const e = t.map(g(), (l) => l.value);
100
+ a.clear(), t.forEach(p.value, (l) => {
101
+ t.includes(e, l.getValue().value) && l.resetValue();
102
+ }), n.value = !0, k();
103
+ }
104
+ const g = () => {
105
+ const e = t.filter(
106
+ Array.from(a.values()),
107
+ (l) => l.selected
108
+ );
109
+ return t.filter(e, (l) => {
110
+ const u = Array.from(a.keys()).find((o) => a.get(o) === l);
111
+ return ![r.value, s.value].includes(u);
112
+ });
113
+ }, F = () => t.filter(Array.from(a.values()), (e) => {
114
+ const l = Array.from(a.keys()).find((u) => a.get(u) === e);
115
+ return [r.value, s.value].includes(l);
116
+ }), Q = () => {
117
+ n.value = !1;
118
+ }, W = ee(() => t.sortBy(c.value, (e) => C(e))), w = () => {
119
+ v.value = void 0, y.value = void 0, a.delete(r.value), a.delete(s.value);
120
+ };
121
+ function k() {
122
+ L(), b(() => {
123
+ console.log("selectList.value:", c.value), n.value = !0;
124
+ const e = c.value.filter((u) => !C(u)), l = t.map(e, (u) => u.value);
125
+ S("filterChange", [
126
+ {
127
+ filterKey: f.value,
128
+ checkedValues: _.value ? [] : l
129
+ }
130
+ ]);
131
+ }), q.value && w();
132
+ }
133
+ te(
134
+ [() => m.value, () => h.value],
135
+ ([e, l], [u, o]) => {
136
+ console.log(e, l), console.log(u, o), (!V.value || !t.eq(V.value, f.value)) && (B.value = m.value, M.value = h.value);
137
+ }
138
+ ), O({
139
+ clickAllSelected: k,
140
+ resetAllCheckedValueAndSelectAll: x
141
+ }), le(() => {
142
+ if (!Array.isArray(d.value) || t.isEmpty(d.value)) {
143
+ n.value = !0;
144
+ return;
145
+ }
146
+ console.log("defaultValues.value", d.value), console.log("itemRefs:", p.value), b(() => {
147
+ t.filter(p.value, (e) => e != null && e.getValue ? t.includes(d.value, e.getValue().value) : !1).forEach((e) => {
148
+ e.setCurrentValue(!0), e.setCheckboxValue(!0);
149
+ }), N();
150
+ });
151
+ });
152
+ const P = { props: I, multiSelectList: K, displayRangeInput: q, selectList: c, hasNum: J, allIsEmpty: _, translateUserId: j, label: D, filterKey: f, rangeStartKey: r, rangeEndKey: s, noNeedRefreshNumFilterName: V, defaultValues: d, totalCount: m, countList: h, showTotal: Y, emit: S, totalNum: B, rangeStart: v, rangeEnd: y, numList: M, selectStatusMap: a, isSelectAll: n, itemRefs: p, notifyParent: N, setNoNeedRefreshNumFilterName: z, setRangeStatus: A, handleStartBlur: G, handleEndBlur: H, setSelectedStatusMap: E, isMultiSelect: C, resetAllCheckedValue: L, resetAllCheckedValueAndSelectAll: x, getCheckedItem: g, getRangeItem: F, resetIsSelectAll: Q, getSortedSelectedList: W, resetRange: w, clickAllSelected: k, LeftConditionSub: ae, get stylesUtils() {
153
+ return ue;
154
+ }, get M2() {
155
+ return re;
156
+ } };
157
+ return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
158
+ }
159
+ });
160
+ export {
161
+ fe as default
162
+ };
@@ -0,0 +1,10 @@
1
+ .yahee-left-condition .custom-button + .custom-button {
2
+ margin-left: 5px;
3
+ margin-bottom: 5px;
4
+ position: relative;
5
+ top: 2px;
6
+ }
7
+ .yahee-left-condition .custom-button {
8
+ padding: 1px 4px;
9
+ height: 22px;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { withInstall as t } from "../utils/install.js";
2
+ import o from "./left-condition-enum.vue.js";
3
+ const e = t(o);
4
+ export {
5
+ e as YaheeLeftConditionEnum,
6
+ e as default
7
+ };
@@ -0,0 +1,22 @@
1
+ import l from "./left-condition-enum.vue2.js";
2
+ import { createBlock as n, openBlock as o } from "vue";
3
+ import a from "../_virtual/_plugin-vue_export-helper.js";
4
+ function i(r, c, e, t, s, f) {
5
+ return o(), n(t.LeftCondition, {
6
+ "select-list": t.options,
7
+ "count-list": e.countList,
8
+ "total-count": e.totalCount,
9
+ "filter-key": e.filterKey,
10
+ "no-need-refresh-num-filter-name": e.noNeedRefreshNumFilterName,
11
+ "all-is-checkbox": e.allIsCheckbox,
12
+ "translate-user-id": e.translateUserId,
13
+ "all-is-empty": e.allIsEmpty,
14
+ "default-values": t.defaultValues,
15
+ onFilterChange: t.filterChange,
16
+ onSetNoNeedRefreshNumFilterName: t.setNoNeedRefreshNumFilterName
17
+ }, null, 8, ["select-list", "count-list", "total-count", "filter-key", "no-need-refresh-num-filter-name", "all-is-checkbox", "translate-user-id", "all-is-empty", "default-values"]);
18
+ }
19
+ const h = /* @__PURE__ */ a(l, [["render", i], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/left-condition-enum/left-condition-enum.vue"]]);
20
+ export {
21
+ h as default
22
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as c, toRefs as y, ref as N, onMounted as h } from "vue";
2
+ import g from "../left-condition/left-condition.vue.js";
3
+ import { storage as a } from "../utils/storage.js";
4
+ const E = /* @__PURE__ */ c({
5
+ name: "YaheeLeftConditionEnum",
6
+ __name: "left-condition-enum",
7
+ props: {
8
+ selectList: { type: Array, required: !0, default: () => [] },
9
+ countList: { type: Array, required: !1, default: () => [] },
10
+ enumEntity: { type: String, required: !0, default: "" },
11
+ filterKey: { type: String, required: !0, default: "" },
12
+ totalCount: { type: Number, required: !1, default: 0 },
13
+ noNeedRefreshNumFilterName: { type: String, required: !1, default: "" },
14
+ allIsCheckbox: { type: Boolean, required: !1 },
15
+ allIsEmpty: { type: Boolean, required: !1 },
16
+ translateUserId: { type: Boolean, required: !1 },
17
+ initFilters: { type: Function, required: !0 },
18
+ defaultValues: { type: Array, required: !1, default: () => [] }
19
+ },
20
+ emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
21
+ setup(u, { expose: s, emit: f }) {
22
+ s();
23
+ const e = u, { defaultValues: d } = y(e), n = f, t = N(e.selectList), m = (r) => {
24
+ n("filterChange", r);
25
+ }, p = () => {
26
+ n("setNoNeedRefreshNumFilterName", e.filterKey);
27
+ };
28
+ h(() => {
29
+ const r = `filter-key-${e.enumEntity}`, l = a.getWithExpireTime(r);
30
+ l ? t.value = l : (console.log(e.enumEntity), e.initFilters(e.enumEntity).then((i) => {
31
+ t.value = i.data, a.setWithExpireTime(r, t.value, 1200 * 1e3), console.log(i);
32
+ }).catch((i) => {
33
+ console.log(i);
34
+ }));
35
+ });
36
+ const o = { props: e, defaultValues: d, emit: n, options: t, filterChange: m, setNoNeedRefreshNumFilterName: p, LeftCondition: g };
37
+ return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
38
+ }
39
+ });
40
+ export {
41
+ E as default
42
+ };
@@ -0,0 +1,10 @@
1
+ .yahee-left-condition :deep(.custom-button + .custom-button) {
2
+ margin-left: 5px;
3
+ margin-bottom: 5px;
4
+ position: relative;
5
+ top: 2px;
6
+ }
7
+ .yahee-left-condition :deep(.custom-button) {
8
+ padding: 1px 4px;
9
+ height: 22px;
10
+ }
@@ -0,0 +1,99 @@
1
+ import { tryOnMounted as B, isClient as O, toValue as g, tryOnScopeDispose as C } from "../../../../@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js";
2
+ import { getLifeCycleTarget as V } from "../../../../@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js";
3
+ import { computed as m, ref as b, watch as x, getCurrentInstance as M, onMounted as S } from "vue";
4
+ const R = O ? window : void 0;
5
+ function l(o) {
6
+ var t;
7
+ const u = g(o);
8
+ return (t = u == null ? void 0 : u.$el) != null ? t : u;
9
+ }
10
+ function _() {
11
+ const o = b(!1), t = M();
12
+ return t && S(() => {
13
+ o.value = !0;
14
+ }, t), o;
15
+ }
16
+ function z(o) {
17
+ const t = _();
18
+ return m(() => (t.value, !!o()));
19
+ }
20
+ function A(o, t, u = {}) {
21
+ const { window: d = R, ...a } = u;
22
+ let i;
23
+ const s = z(() => d && "ResizeObserver" in d), r = () => {
24
+ i && (i.disconnect(), i = void 0);
25
+ }, h = m(() => {
26
+ const e = g(o);
27
+ return Array.isArray(e) ? e.map((n) => l(n)) : [l(e)];
28
+ }), p = x(
29
+ h,
30
+ (e) => {
31
+ if (r(), s.value && d) {
32
+ i = new ResizeObserver(t);
33
+ for (const n of e)
34
+ n && i.observe(n, a);
35
+ }
36
+ },
37
+ { immediate: !0, flush: "post" }
38
+ ), v = () => {
39
+ r(), p();
40
+ };
41
+ return C(v), {
42
+ isSupported: s,
43
+ stop: v
44
+ };
45
+ }
46
+ function E(o, t = { width: 0, height: 0 }, u = {}) {
47
+ const { window: d = R, box: a = "content-box" } = u, i = m(() => {
48
+ var e, n;
49
+ return (n = (e = l(o)) == null ? void 0 : e.namespaceURI) == null ? void 0 : n.includes("svg");
50
+ }), s = b(t.width), r = b(t.height), { stop: h } = A(
51
+ o,
52
+ ([e]) => {
53
+ const n = a === "border-box" ? e.borderBoxSize : a === "content-box" ? e.contentBoxSize : e.devicePixelContentBoxSize;
54
+ if (d && i.value) {
55
+ const f = l(o);
56
+ if (f) {
57
+ const c = f.getBoundingClientRect();
58
+ s.value = c.width, r.value = c.height;
59
+ }
60
+ } else if (n) {
61
+ const f = Array.isArray(n) ? n : [n];
62
+ s.value = f.reduce((c, { inlineSize: w }) => c + w, 0), r.value = f.reduce((c, { blockSize: w }) => c + w, 0);
63
+ } else
64
+ s.value = e.contentRect.width, r.value = e.contentRect.height;
65
+ },
66
+ u
67
+ );
68
+ B(() => {
69
+ const e = l(o);
70
+ e && (s.value = "offsetWidth" in e ? e.offsetWidth : t.width, r.value = "offsetHeight" in e ? e.offsetHeight : t.height);
71
+ });
72
+ const p = x(
73
+ () => l(o),
74
+ (e) => {
75
+ s.value = e ? t.width : 0, r.value = e ? t.height : 0;
76
+ }
77
+ );
78
+ function v() {
79
+ h(), p();
80
+ }
81
+ return {
82
+ width: s,
83
+ height: r,
84
+ stop: v
85
+ };
86
+ }
87
+ export {
88
+ R as defaultWindow,
89
+ V as getLifeCycleTarget,
90
+ O as isClient,
91
+ g as toValue,
92
+ B as tryOnMounted,
93
+ C as tryOnScopeDispose,
94
+ l as unrefElement,
95
+ E as useElementSize,
96
+ _ as useMounted,
97
+ A as useResizeObserver,
98
+ z as useSupported
99
+ };
@@ -0,0 +1,22 @@
1
+ import { onMounted as o, nextTick as r, unref as i, getCurrentScope as u, onScopeDispose as c, getCurrentInstance as f } from "vue";
2
+ function a(e) {
3
+ return u() ? (c(e), !0) : !1;
4
+ }
5
+ function d(e) {
6
+ return typeof e == "function" ? e() : i(e);
7
+ }
8
+ const y = typeof window < "u" && typeof document < "u";
9
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
+ function s(e) {
11
+ return f();
12
+ }
13
+ function g(e, n = !0, t) {
14
+ s() ? o(e, t) : n ? e() : r(e);
15
+ }
16
+ export {
17
+ s as getLifeCycleTarget,
18
+ y as isClient,
19
+ d as toValue,
20
+ g as tryOnMounted,
21
+ a as tryOnScopeDispose
22
+ };
@@ -0,0 +1,38 @@
1
+ import o from "./lib/axios.js";
2
+ const {
3
+ Axios: e,
4
+ AxiosError: a,
5
+ CanceledError: s,
6
+ isCancel: t,
7
+ CancelToken: i,
8
+ VERSION: l,
9
+ all: n,
10
+ Cancel: d,
11
+ isAxiosError: x,
12
+ spread: C,
13
+ toFormData: c,
14
+ AxiosHeaders: m,
15
+ HttpStatusCode: p,
16
+ formToJSON: A,
17
+ getAdapter: f,
18
+ mergeConfig: E
19
+ } = o;
20
+ export {
21
+ e as Axios,
22
+ a as AxiosError,
23
+ m as AxiosHeaders,
24
+ d as Cancel,
25
+ i as CancelToken,
26
+ s as CanceledError,
27
+ p as HttpStatusCode,
28
+ l as VERSION,
29
+ n as all,
30
+ o as default,
31
+ A as formToJSON,
32
+ f as getAdapter,
33
+ x as isAxiosError,
34
+ t as isCancel,
35
+ E as mergeConfig,
36
+ C as spread,
37
+ c as toFormData
38
+ };
@@ -0,0 +1,53 @@
1
+ import a from "../utils.js";
2
+ import h from "../helpers/null.js";
3
+ import m from "./xhr.js";
4
+ import u from "./fetch.js";
5
+ import d from "../core/AxiosError.js";
6
+ const s = {
7
+ http: h,
8
+ xhr: m,
9
+ fetch: u
10
+ };
11
+ a.forEach(s, (e, n) => {
12
+ if (e) {
13
+ try {
14
+ Object.defineProperty(e, "name", { value: n });
15
+ } catch {
16
+ }
17
+ Object.defineProperty(e, "adapterName", { value: n });
18
+ }
19
+ });
20
+ const c = (e) => `- ${e}`, b = (e) => a.isFunction(e) || e === null || e === !1, y = {
21
+ getAdapter: (e) => {
22
+ e = a.isArray(e) ? e : [e];
23
+ const { length: n } = e;
24
+ let o, r;
25
+ const p = {};
26
+ for (let t = 0; t < n; t++) {
27
+ o = e[t];
28
+ let i;
29
+ if (r = o, !b(o) && (r = s[(i = String(o)).toLowerCase()], r === void 0))
30
+ throw new d(`Unknown adapter '${i}'`);
31
+ if (r)
32
+ break;
33
+ p[i || "#" + t] = r;
34
+ }
35
+ if (!r) {
36
+ const t = Object.entries(p).map(
37
+ ([f, l]) => `adapter ${f} ` + (l === !1 ? "is not supported by the environment" : "is not available in the build")
38
+ );
39
+ let i = n ? t.length > 1 ? `since :
40
+ ` + t.map(c).join(`
41
+ `) : " " + c(t[0]) : "as no adapter specified";
42
+ throw new d(
43
+ "There is no suitable adapter to dispatch the request " + i,
44
+ "ERR_NOT_SUPPORT"
45
+ );
46
+ }
47
+ return r;
48
+ },
49
+ adapters: s
50
+ };
51
+ export {
52
+ y as default
53
+ };