yahee-components 0.0.58 → 0.0.59

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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as oe, toRefs as re, ref as m, computed as ie, watch as ce, onMounted as fe, nextTick as A, resolveComponent as K, createElementBlock as V, openBlock as v, createVNode as b, withCtx as q, unref as s, createCommentVNode as z, normalizeStyle as de, toDisplayString as F, Fragment as me, renderList as ve, createBlock as pe, createTextVNode as M } from "vue";
1
+ import { defineComponent as oe, toRefs as re, ref as m, computed as ie, watch as ce, onMounted as fe, nextTick as A, resolveComponent as K, createElementBlock as V, openBlock as v, createVNode as b, withCtx as z, unref as s, createCommentVNode as J, normalizeStyle as de, toDisplayString as F, Fragment as me, renderList as ve, createBlock as pe, createTextVNode as M } from "vue";
2
2
  import l from "../_virtual/lodash.js";
3
3
  import ge from "./left-condition-sub.vue.js";
4
4
  import { stylesUtils as ye } from "../utils/style.js";
5
- import { M2 as J } from "../utils/translate.js";
5
+ import { M2 as O } from "../utils/translate.js";
6
6
  const he = { class: "yahee-left-condition" }, ke = {
7
7
  key: 1,
8
8
  class: "el-button custom-button el-button--small",
@@ -32,15 +32,15 @@ const he = { class: "yahee-left-condition" }, ke = {
32
32
  showTotal: { type: Boolean, default: !0 }
33
33
  },
34
34
  emits: ["filterChange", "setNoNeedRefreshNumFilterName"],
35
- setup(O, { expose: Y, emit: j }) {
36
- const G = O, {
35
+ setup(Y, { expose: j, emit: G }) {
36
+ const H = Y, {
37
37
  multiSelectList: w,
38
38
  displayRangeInput: C,
39
39
  selectList: p,
40
- hasNum: H,
41
- allIsEmpty: Q,
42
- translateUserId: W,
43
- label: X,
40
+ hasNum: Q,
41
+ allIsEmpty: W,
42
+ translateUserId: X,
43
+ label: Z,
44
44
  filterKey: g,
45
45
  rangeStartKey: r,
46
46
  rangeEndKey: i,
@@ -48,11 +48,11 @@ const he = { class: "yahee-left-condition" }, ke = {
48
48
  defaultValues: y,
49
49
  totalCount: R,
50
50
  countList: _,
51
- showTotal: Z
52
- } = re(G), x = j, B = m(R.value), c = m(), f = m(), T = m(_.value), u = /* @__PURE__ */ new Map(), d = m(!1), h = m([]), k = () => {
51
+ showTotal: ee
52
+ } = re(H), x = G, B = m(R.value), c = m(), f = m(), T = m(_.value), u = /* @__PURE__ */ new Map(), d = m(!1), h = m([]), k = () => {
53
53
  console.log("left condition notifyParent start"), A(() => {
54
54
  var o, S;
55
- const e = L(), t = ae();
55
+ const e = L(), t = ue();
56
56
  if (l.isEmpty(e) && l.isEmpty(t)) {
57
57
  I();
58
58
  return;
@@ -73,14 +73,14 @@ const he = { class: "yahee-left-condition" }, ke = {
73
73
  `left condition notifyParent nextTick after emit, filterKey: ${g.value}, checkedValues: ${JSON.stringify(l.map(e, (n) => n.value))}`
74
74
  );
75
75
  });
76
- }, ee = () => {
76
+ }, te = () => {
77
77
  x("setNoNeedRefreshNumFilterName");
78
78
  }, U = () => {
79
79
  N(), E({ label: r.value, selected: !0, value: c.value }), E({ label: i.value, selected: !0, value: f.value });
80
- }, te = () => {
80
+ }, le = () => {
81
81
  const e = u.get(r.value);
82
82
  l.isEmpty(e) && !c.value || l.get(e, "value") === c.value || (U(), k());
83
- }, le = () => {
83
+ }, ae = () => {
84
84
  const e = u.get(i.value);
85
85
  l.isEmpty(e) && !f.value || l.get(e, "value") === f.value || (U(), k());
86
86
  };
@@ -108,12 +108,12 @@ const he = { class: "yahee-left-condition" }, ke = {
108
108
  const a = Array.from(u.keys()).find((o) => u.get(o) === t);
109
109
  return ![r.value, i.value].includes(a);
110
110
  });
111
- }, ae = () => l.filter(Array.from(u.values()), (e) => {
111
+ }, ue = () => l.filter(Array.from(u.values()), (e) => {
112
112
  const t = Array.from(u.keys()).find((a) => u.get(a) === e);
113
113
  return [r.value, i.value].includes(t);
114
- }), ue = () => {
114
+ }), D = () => {
115
115
  d.value = !1;
116
- }, ne = ie(() => l.sortBy(p.value, (e) => P(e))), D = () => {
116
+ }, ne = ie(() => l.sortBy(p.value, (e) => P(e))), q = () => {
117
117
  c.value = void 0, f.value = void 0, u.delete(r.value), u.delete(i.value);
118
118
  };
119
119
  function I() {
@@ -123,19 +123,20 @@ const he = { class: "yahee-left-condition" }, ke = {
123
123
  x("filterChange", [
124
124
  {
125
125
  filterKey: g.value,
126
- checkedValues: Q.value ? [] : t
126
+ checkedValues: W.value ? [] : t
127
127
  }
128
128
  ]);
129
- }), C.value && D();
129
+ }), C.value && q();
130
130
  }
131
131
  return ce(
132
132
  [() => R.value, () => _.value],
133
133
  ([e, t], [a, o]) => {
134
134
  console.log(e, t), console.log(a, o), (!$.value || !l.eq($.value, g.value)) && (B.value = R.value, T.value = _.value);
135
135
  }
136
- ), Y({
136
+ ), j({
137
137
  clickAllSelected: I,
138
- resetAllCheckedValue: N
138
+ resetAllCheckedValue: N,
139
+ resetIsSelectAll: D
139
140
  }), fe(() => {
140
141
  if (!Array.isArray(y.value) || l.isEmpty(y.value)) {
141
142
  d.value = !0;
@@ -150,15 +151,15 @@ const he = { class: "yahee-left-condition" }, ke = {
150
151
  const a = K("el-input-number"), o = K("el-form-item"), S = K("el-form");
151
152
  return v(), V("div", he, [
152
153
  b(S, null, {
153
- default: q(() => [
154
- b(o, { label: s(X) }, {
155
- default: q(() => [
156
- s(Z) ? (v(), V("span", {
154
+ default: z(() => [
155
+ b(o, { label: s(Z) }, {
156
+ default: z(() => [
157
+ s(ee) ? (v(), V("span", {
157
158
  key: 0,
158
159
  class: "el-button custom-button el-button--small",
159
160
  style: de(s(ye).getBackgroundColor(d.value)),
160
161
  onClick: I
161
- }, F(B.value ? `${s(J)("全部")}(${B.value})` : s(J)("全部")), 5)) : z("", !0),
162
+ }, F(B.value ? `${s(O)("全部")}(${B.value})` : s(O)("全部")), 5)) : J("", !0),
162
163
  (v(!0), V(me, null, ve(ne.value, (n, se) => (v(), pe(ge, {
163
164
  key: se,
164
165
  ref_for: !0,
@@ -166,16 +167,16 @@ const he = { class: "yahee-left-condition" }, ke = {
166
167
  ref: h,
167
168
  "all-is-checkbox": e.allIsCheckbox,
168
169
  "multi-select-list": s(w),
169
- "translate-user-id": s(W),
170
+ "translate-user-id": s(X),
170
171
  "count-list": T.value,
171
172
  item: n,
172
- "has-num": s(H),
173
+ "has-num": s(Q),
173
174
  onResetAllCheckedValue: N,
174
175
  onSetSelectedStatusMap: E,
175
- onResetRange: D,
176
- onSetNoNeedRefreshNumFilterName: ee,
176
+ onResetRange: q,
177
+ onSetNoNeedRefreshNumFilterName: te,
177
178
  onNotifyParent: k,
178
- onResetIsSelectAll: ue
179
+ onResetIsSelectAll: D
179
180
  }, null, 8, ["all-is-checkbox", "multi-select-list", "translate-user-id", "count-list", "item", "has-num"]))), 128)),
180
181
  s(C) ? (v(), V("div", ke, [
181
182
  M(F(e.rangeLabel) + "  ", 1),
@@ -188,7 +189,7 @@ const he = { class: "yahee-left-condition" }, ke = {
188
189
  min: 1,
189
190
  max: 100,
190
191
  controls: !1,
191
- onBlur: te
192
+ onBlur: le
192
193
  }, null, 8, ["modelValue"]),
193
194
  M("   %   " + F(e.rangeDelimiter) + "   ", 1),
194
195
  b(a, {
@@ -200,10 +201,10 @@ const he = { class: "yahee-left-condition" }, ke = {
200
201
  size: "small",
201
202
  max: 100,
202
203
  controls: !1,
203
- onChange: le
204
+ onChange: ae
204
205
  }, null, 8, ["modelValue"]),
205
206
  t[2] || (t[2] = M(" %   "))
206
- ])) : z("", !0)
207
+ ])) : J("", !0)
207
208
  ]),
208
209
  _: 1
209
210
  }, 8, ["label"])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.58",
4
+ "version": "0.0.59",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -1456,6 +1456,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
1456
1456
  }, {
1457
1457
  clickAllSelected: () => void;
1458
1458
  resetAllCheckedValue: () => void;
1459
+ resetIsSelectAll: () => void;
1459
1460
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1460
1461
  filterChange: (...args: any[]) => void;
1461
1462
  setNoNeedRefreshNumFilterName: (...args: any[]) => void;
@@ -24,6 +24,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
24
24
  }, {
25
25
  clickAllSelected: () => void;
26
26
  resetAllCheckedValue: () => void;
27
+ resetIsSelectAll: () => void;
27
28
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
29
  filterChange: (...args: any[]) => void;
29
30
  setNoNeedRefreshNumFilterName: (...args: any[]) => void;
@@ -26,6 +26,7 @@ declare function clickAllSelected(): void;
26
26
  declare const _default: DefineComponent<__VLS_Props, {
27
27
  clickAllSelected: typeof clickAllSelected;
28
28
  resetAllCheckedValue: typeof resetAllCheckedValue;
29
+ resetIsSelectAll: () => void;
29
30
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
30
31
  filterChange: (...args: any[]) => void;
31
32
  setNoNeedRefreshNumFilterName: (...args: any[]) => void;