yahee-components 0.0.92 → 0.0.94-test

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 (69) hide show
  1. package/es/annex-upload/annex-upload.vue.js +51 -154
  2. package/es/annex-upload/annex-upload.vue2.js +119 -2
  3. package/es/annex-upload/index.js +3 -3
  4. package/es/border-wrap/border-wrap.vue.js +64 -95
  5. package/es/border-wrap/border-wrap.vue2.js +46 -2
  6. package/es/common-import/common-import.vue.js +369 -666
  7. package/es/common-import/common-import.vue2.js +337 -2
  8. package/es/common-import/index.js +3 -3
  9. package/es/complex-search/complex-search.vue.js +37 -36
  10. package/es/complex-search/complex-search.vue2.js +82 -94
  11. package/es/copy/copy.vue.js +37 -55
  12. package/es/copy/copy.vue2.js +34 -2
  13. package/es/copy/index.js +3 -3
  14. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +114 -213
  15. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  16. package/es/drop-down-condition/drop-down-condition.vue.js +113 -213
  17. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  18. package/es/echart-gauge/echart-gauge.vue.js +12 -140
  19. package/es/echart-gauge/echart-gauge.vue2.js +147 -2
  20. package/es/echart-gauge/index.js +3 -3
  21. package/es/help-tag/help-tag.vue.js +42 -0
  22. package/es/help-tag/help-tag.vue2.js +49 -0
  23. package/es/help-tag/index.js +7 -0
  24. package/es/help-tag/props.js +9 -0
  25. package/es/help-tag/style/index.css +4 -0
  26. package/es/image-upload/image-upload.vue.js +109 -170
  27. package/es/image-upload/image-upload.vue2.js +91 -2
  28. package/es/image-upload/index.js +3 -3
  29. package/es/index.js +22 -18
  30. package/es/input/index.js +3 -3
  31. package/es/input/input.vue.js +17 -38
  32. package/es/input/input.vue2.js +33 -2
  33. package/es/installs.js +10 -8
  34. package/es/left-condition/index.js +3 -3
  35. package/es/left-condition/left-condition-sub.vue.js +32 -91
  36. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  37. package/es/left-condition/left-condition.vue.js +70 -218
  38. package/es/left-condition/left-condition.vue2.js +160 -2
  39. package/es/left-condition-enum/index.js +3 -3
  40. package/es/left-condition-enum/left-condition-enum.vue.js +20 -49
  41. package/es/left-condition-enum/left-condition-enum.vue2.js +40 -2
  42. package/es/operation-log/operation-log-content.vue.js +71 -92
  43. package/es/operation-log/operation-log-content.vue2.js +39 -2
  44. package/es/operation-log/operation-log-dialog.vue.js +46 -68
  45. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  46. package/es/operation-log/operation-log-form.vue.js +108 -183
  47. package/es/operation-log/operation-log-form.vue2.js +104 -2
  48. package/es/operation-log/operation-log.vue.js +119 -228
  49. package/es/operation-log/operation-log.vue2.js +135 -2
  50. package/es/packages/components/api/log-server.js +6 -6
  51. package/es/packages/components/api/upload-server.js +1 -1
  52. package/es/packages/components/hooks/useEcharts.js +19 -19
  53. package/es/packages/components/hooks/useImg.js +8 -8
  54. package/es/scale-screen/index.js +4 -4
  55. package/es/scale-screen/scale-screen.vue.js +19 -126
  56. package/es/scale-screen/scale-screen.vue2.js +125 -2
  57. package/es/style.css +5 -0
  58. package/es/yahee-components.css +1 -1
  59. package/lib/help-tag/style/index.css +4 -0
  60. package/lib/style.css +5 -0
  61. package/package.json +1 -1
  62. package/types/src/components.d.ts +1 -0
  63. package/types/src/help-tag/help-tag.d.ts +2 -0
  64. package/types/src/help-tag/help-tag.vue.d.ts +589 -0
  65. package/types/src/help-tag/index.d.ts +593 -0
  66. package/types/src/help-tag/props.d.ts +27 -0
  67. package/types/src/complex-search/complex-search.vue.d.ts +0 -3
  68. package/types/src/complex-search/index.d.ts +0 -7
  69. package/types/src/installs.d.ts +0 -2649
package/es/index.js CHANGED
@@ -10,40 +10,44 @@ import { YaheeOperationLog as I } from "./operation-log/index.js";
10
10
  import { YaheeCountryPlatformShopCondition as E } from "./country-platform-shop-condition/index.js";
11
11
  import { YaheeLeftCondition as L } from "./left-condition/index.js";
12
12
  import { YaheeLeftConditionEnum as D } from "./left-condition-enum/index.js";
13
- import { YaheeDropDownCondition as W } from "./drop-down-condition/index.js";
14
- import { YaheeCommonImport as k } from "./common-import/index.js";
15
- import { YaheeBorderWrap as A } from "./border-wrap/index.js";
16
- import { YaheeEchartGauge as j } from "./echart-gauge/index.js";
17
- import { YaheeScaleScreen as v } from "./scale-screen/index.js";
13
+ import { YaheeDropDownCondition as T } from "./drop-down-condition/index.js";
14
+ import { YaheeCommonImport as W } from "./common-import/index.js";
15
+ import { YaheeBorderWrap as k } from "./border-wrap/index.js";
16
+ import { YaheeEchartGauge as A } from "./echart-gauge/index.js";
17
+ import { YaheeScaleScreen as j } from "./scale-screen/index.js";
18
+ import { YaheeHelpTag as v } from "./help-tag/index.js";
18
19
  import { defaultComplexSearchProps as F } from "./complex-search/props.js";
19
- import { defaultCopyProps as J } from "./copy/props.js";
20
- import { defaultBorderWrapPropsProps as M } from "./border-wrap/props.js";
21
- import { defaultEchartGaugeProps as Q } from "./echart-gauge/props.js";
22
- import { defaultScaleScreenProps as T } from "./scale-screen/props.js";
20
+ import { defaultCopyProps as K } from "./copy/props.js";
21
+ import { defaultBorderWrapPropsProps as N } from "./border-wrap/props.js";
22
+ import { defaultEchartGaugeProps as R } from "./echart-gauge/props.js";
23
+ import { defaultScaleScreenProps as X } from "./scale-screen/props.js";
24
+ import { defaultHelpTagProps as _ } from "./help-tag/props.js";
23
25
  const { setConfig: p } = t(), n = e([...r]);
24
26
  function x(o) {
25
27
  p(o);
26
28
  }
27
29
  export {
28
30
  P as YaheeAnnexUpload,
29
- A as YaheeBorderWrap,
30
- k as YaheeCommonImport,
31
+ k as YaheeBorderWrap,
32
+ W as YaheeCommonImport,
31
33
  s as YaheeComplexSearch,
32
34
  u as YaheeCopy,
33
35
  E as YaheeCountryPlatformShopCondition,
34
- W as YaheeDropDownCondition,
35
- j as YaheeEchartGauge,
36
+ T as YaheeDropDownCondition,
37
+ A as YaheeEchartGauge,
38
+ v as YaheeHelpTag,
36
39
  C as YaheeImageUpload,
37
40
  i as YaheeInput,
38
41
  L as YaheeLeftCondition,
39
42
  D as YaheeLeftConditionEnum,
40
43
  I as YaheeOperationLog,
41
- v as YaheeScaleScreen,
44
+ j as YaheeScaleScreen,
42
45
  n as default,
43
- M as defaultBorderWrapPropsProps,
46
+ N as defaultBorderWrapPropsProps,
44
47
  F as defaultComplexSearchProps,
45
- J as defaultCopyProps,
46
- Q as defaultEchartGaugeProps,
47
- T as defaultScaleScreenProps,
48
+ K as defaultCopyProps,
49
+ R as defaultEchartGaugeProps,
50
+ _ as defaultHelpTagProps,
51
+ X as defaultScaleScreenProps,
48
52
  x as useGlobalConfig
49
53
  };
package/es/input/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { withInstall as t } from "../utils/install.js";
2
2
  import o from "./input.vue.js";
3
- const r = t(o);
3
+ const a = t(o);
4
4
  export {
5
- r as YaheeInput,
6
- r as default
5
+ a as YaheeInput,
6
+ a as default
7
7
  };
@@ -1,40 +1,19 @@
1
- import { defineComponent as i, computed as r, ref as f, createElementBlock as c, openBlock as V, createVNode as _, unref as b } from "vue";
2
- import { ElInput as v } from "element-plus";
3
- import "element-plus/theme-chalk/src/base.scss";
4
- import "element-plus/theme-chalk/src/input.scss";
5
- const x = { class: "yahee-input" }, E = /* @__PURE__ */ i({
6
- name: "YaheeInput",
7
- __name: "input",
8
- props: {
9
- modelValue: { default: "" },
10
- disabled: { type: Boolean, default: !1 }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(u, { expose: n, emit: d }) {
14
- const p = d, t = u, o = r({
15
- get: () => t.modelValue,
16
- set: (e) => {
17
- p("update:modelValue", e);
18
- }
19
- }), l = f();
20
- function s() {
21
- var e;
22
- (e = l.value) == null || e.focus();
23
- }
24
- return n({
25
- focus: s
26
- }), (e, a) => (V(), c("div", x, [
27
- _(b(v), {
28
- ref_key: "inputRef",
29
- ref: l,
30
- modelValue: o.value,
31
- "onUpdate:modelValue": a[0] || (a[0] = (m) => o.value = m),
32
- type: "text",
33
- disabled: t.disabled
34
- }, null, 8, ["modelValue", "disabled"])
35
- ]));
36
- }
37
- });
1
+ import n from "./input.vue2.js";
2
+ import { createElementBlock as p, openBlock as r, createVNode as a } from "vue";
3
+ import s from "../_virtual/_plugin-vue_export-helper.js";
4
+ const c = { class: "yahee-input" };
5
+ function l(m, o, d, e, i, _) {
6
+ return r(), p("div", c, [
7
+ a(e.ElInput, {
8
+ ref: "inputRef",
9
+ modelValue: e.state,
10
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => e.state = t),
11
+ type: "text",
12
+ disabled: e.props.disabled
13
+ }, null, 8, ["modelValue", "disabled"])
14
+ ]);
15
+ }
16
+ const x = /* @__PURE__ */ s(n, [["render", l], ["__file", "E:/project/common_componentsweb_new/common_componentsweb/packages/components/src/input/input.vue"]]);
38
17
  export {
39
- E as default
18
+ x as default
40
19
  };
@@ -1,4 +1,35 @@
1
- import f from "./input.vue.js";
1
+ import { defineComponent as i, computed as m, ref as d } from "vue";
2
+ import { ElInput as f } from "element-plus";
3
+ import "element-plus/theme-chalk/src/base.scss";
4
+ import "element-plus/theme-chalk/src/input.scss";
5
+ const g = /* @__PURE__ */ i({
6
+ name: "YaheeInput",
7
+ __name: "input",
8
+ props: {
9
+ modelValue: { type: String, required: !0, default: "" },
10
+ disabled: { type: Boolean, required: !1, default: !1 }
11
+ },
12
+ emits: ["update:modelValue"],
13
+ setup(p, { expose: a, emit: s }) {
14
+ const t = s, u = p, l = m({
15
+ get: () => u.modelValue,
16
+ set: (e) => {
17
+ t("update:modelValue", e);
18
+ }
19
+ }), o = d();
20
+ function r() {
21
+ var e;
22
+ (e = o.value) == null || e.focus();
23
+ }
24
+ a({
25
+ focus: r
26
+ });
27
+ const n = { emit: t, props: u, state: l, inputRef: o, focus: r, get ElInput() {
28
+ return f;
29
+ } };
30
+ return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
31
+ }
32
+ });
2
33
  export {
3
- f as default
34
+ g as default
4
35
  };
package/es/installs.js CHANGED
@@ -6,13 +6,14 @@ import { YaheeOperationLog as t } from "./operation-log/index.js";
6
6
  import { YaheeAnnexUpload as a } from "./annex-upload/index.js";
7
7
  import { YaheeLeftCondition as p } from "./left-condition/index.js";
8
8
  import { YaheeLeftConditionEnum as i } from "./left-condition-enum/index.js";
9
- import { YaheeDropDownCondition as n } from "./drop-down-condition/index.js";
10
- import { YaheeCountryPlatformShopCondition as f } from "./country-platform-shop-condition/index.js";
9
+ import { YaheeDropDownCondition as f } from "./drop-down-condition/index.js";
10
+ import { YaheeCountryPlatformShopCondition as n } from "./country-platform-shop-condition/index.js";
11
11
  import { YaheeCommonImport as h } from "./common-import/index.js";
12
12
  import { YaheeBorderWrap as Y } from "./border-wrap/index.js";
13
- import { YaheeEchartGauge as d } from "./echart-gauge/index.js";
14
- import { YaheeScaleScreen as l } from "./scale-screen/index.js";
15
- const A = [
13
+ import { YaheeEchartGauge as l } from "./echart-gauge/index.js";
14
+ import { YaheeScaleScreen as d } from "./scale-screen/index.js";
15
+ import { YaheeHelpTag as C } from "./help-tag/index.js";
16
+ const G = [
16
17
  o,
17
18
  e,
18
19
  r,
@@ -21,15 +22,16 @@ const A = [
21
22
  a,
22
23
  p,
23
24
  i,
24
- n,
25
25
  f,
26
+ n,
26
27
  h,
27
28
  Y,
29
+ l,
28
30
  d,
29
- l
31
+ C
30
32
  // YaheeFilterContainer,
31
33
  // YaheeFilterWrapper,
32
34
  ];
33
35
  export {
34
- A as default
36
+ G as default
35
37
  };
@@ -1,7 +1,7 @@
1
1
  import { withInstall as t } from "../utils/install.js";
2
2
  import o from "./left-condition.vue.js";
3
- const e = t(o);
3
+ const n = t(o);
4
4
  export {
5
- e as YaheeLeftCondition,
6
- e as default
5
+ n as YaheeLeftCondition,
6
+ n as default
7
7
  };
@@ -1,95 +1,36 @@
1
- import { defineComponent as A, toRefs as E, ref as p, watch as F, createElementBlock as s, openBlock as u, Fragment as w, createElementVNode as h, createCommentVNode as r, normalizeStyle as P, unref as t, createTextVNode as U, withModifiers as T, toDisplayString as k, nextTick as v } from "vue";
2
- import N from "../_virtual/lodash.js";
3
- import { stylesUtils as z } from "../utils/style.js";
4
- import { translateEmployeeName as D, M2 as j } from "../utils/translate.js";
5
- const q = ["checked"], G = { key: 1 }, H = {
1
+ import s from "./left-condition-sub.vue2.js";
2
+ import { createElementBlock as n, openBlock as l, Fragment as d, createElementVNode as a, createCommentVNode as c, normalizeStyle as _, createTextVNode as k, withModifiers as u, toDisplayString as m } from "vue";
3
+ import b from "../_virtual/_plugin-vue_export-helper.js";
4
+ const f = ["checked"], h = { key: 1 }, y = {
6
5
  key: 0,
7
6
  class: "num"
8
- }, W = /* @__PURE__ */ A({
9
- __name: "left-condition-sub",
10
- props: {
11
- multiSelectList: { default: () => [] },
12
- countList: {},
13
- item: { default: () => ({ label: "", value: "" }) },
14
- hasNum: { type: Boolean, default: !1 },
15
- allIsCheckbox: { type: Boolean, default: !1 },
16
- translateUserId: { type: Boolean, default: !1 }
17
- },
18
- emits: [
19
- "resetAllCheckedValue",
20
- "setSelectedStatusMap",
21
- "resetRange",
22
- "resetIsSelectAll",
23
- "notifyParent",
24
- "setNoNeedRefreshNumFilterName"
25
- ],
26
- setup(y, { expose: b, emit: C }) {
27
- const g = y, { item: l, hasNum: S, multiSelectList: V } = E(g), n = C, a = p(!1), c = p(!1);
28
- function x(e) {
29
- n("setNoNeedRefreshNumFilterName"), n("resetRange"), a.value = e.target.checked, f(a.value), i();
30
- }
31
- function i() {
32
- v(() => {
33
- n("notifyParent");
34
- });
35
- }
36
- function f(e) {
37
- c.value = e;
38
- }
39
- function m(e) {
40
- a.value = e;
41
- }
42
- function R() {
43
- a.value = !1, c.value = !1;
44
- }
45
- function _() {
46
- return l.value;
47
- }
48
- function B() {
49
- n("resetAllCheckedValue");
50
- }
51
- function I() {
52
- n("setNoNeedRefreshNumFilterName"), n("resetRange"), B(), v(() => {
53
- m(!0);
54
- }), i();
55
- }
56
- function L(e) {
57
- return N.includes(V.value, e.value);
58
- }
59
- return F(a, (e) => {
60
- console.log("left condition subview watch value", e), n("setSelectedStatusMap", { ...l.value, selected: e });
61
- }), b({
62
- resetValue: R,
63
- getValue: _,
64
- setCurrentValue: m,
65
- setCheckboxValue: f
66
- }), (e, o) => {
67
- var d;
68
- return u(), s(w, null, [
69
- h("span", {
70
- class: "el-button custom-button el-button--small",
71
- style: P(t(z).getBackgroundColor(a.value)),
72
- onClick: I
73
- }, [
74
- e.allIsCheckbox || L(t(l)) ? (u(), s("input", {
75
- key: 0,
76
- checked: c.value,
77
- class: "el-checkbox__input",
78
- type: "checkbox",
79
- onChange: x,
80
- onClick: o[0] || (o[0] = T(() => {
81
- }, ["stop"]))
82
- }, null, 40, q)) : r("", !0),
83
- U(" " + k(e.translateUserId ? t(D)(t(l).value, t(l).label) : t(j)(t(l).label)) + " ", 1),
84
- t(N).isEmpty(e.countList) ? r("", !0) : (u(), s("span", G, " (" + k((d = e.countList.filter((M) => M.value == t(l).value)[0]) == null ? void 0 : d.count) + ") ", 1))
85
- ], 4),
86
- t(S) ? (u(), s("span", H, o[1] || (o[1] = [
87
- h("em", null, null, -1)
88
- ]))) : r("", !0)
89
- ], 64);
90
- };
91
- }
92
- });
7
+ };
8
+ function x(C, o, t, e, g, v) {
9
+ var i;
10
+ return l(), n(d, null, [
11
+ a("span", {
12
+ class: "el-button custom-button el-button--small",
13
+ style: _(e.stylesUtils.getBackgroundColor(e.value)),
14
+ onClick: e.onClick
15
+ }, [
16
+ t.allIsCheckbox || e.isMultiSelect(e.item) ? (l(), n("input", {
17
+ key: 0,
18
+ checked: e.checkboxValue,
19
+ class: "el-checkbox__input",
20
+ type: "checkbox",
21
+ onChange: e.checkboxChange,
22
+ onClick: o[0] || (o[0] = u(() => {
23
+ }, ["stop"]))
24
+ }, null, 40, f)) : c("", !0),
25
+ k(" " + m(t.translateUserId ? e.translateEmployeeName(e.item.value, e.item.label) : e.M2(e.item.label)) + " ", 1),
26
+ e._.isEmpty(t.countList) ? c("", !0) : (l(), n("span", h, " (" + m((i = t.countList.filter((r) => r.value == e.item.value)[0]) == null ? void 0 : i.count) + ") ", 1))
27
+ ], 4),
28
+ e.hasNum ? (l(), n("span", y, o[1] || (o[1] = [
29
+ a("em", null, null, -1)
30
+ ]))) : c("", !0)
31
+ ], 64);
32
+ }
33
+ const S = /* @__PURE__ */ b(s, [["render", x], ["__file", "E:/project/common_componentsweb_new/common_componentsweb/packages/components/src/left-condition/left-condition-sub.vue"]]);
93
34
  export {
94
- W as default
35
+ S as default
95
36
  };
@@ -1,4 +1,78 @@
1
- import f from "./left-condition-sub.vue.js";
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
+ });
2
76
  export {
3
- f as default
77
+ I as default
4
78
  };