@kengic/vue 0.27.1-beta.8 → 0.27.1-beta.9

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 (2) hide show
  1. package/dist/kengic-vue.js +31 -35
  2. package/package.json +1 -1
@@ -70071,7 +70071,7 @@ function fi(e) {
70071
70071
  })
70072
70072
  );
70073
70073
  }
70074
- const version = "0.27.1-beta.8", en$1 = {
70074
+ const version = "0.27.1-beta.9", en$1 = {
70075
70075
  kg: {
70076
70076
  KgAppSelect: {
70077
70077
  businessManager: "Business Manager",
@@ -90680,21 +90680,6 @@ const KgFormItemCheckboxGroup = defineComponent({
90680
90680
  }, {
90681
90681
  immediate: !0
90682
90682
  }), watch([U, w], ([ea, ta]) => {
90683
- switch (e.kgMode) {
90684
- case "multiple": {
90685
- if (Array.isArray(ea)) {
90686
- const oa = ea.filter((aa) => ta.find((sa) => sa[g.value] === aa));
90687
- oa.length > 0 ? ue(oa) : ue([]);
90688
- }
90689
- break;
90690
- }
90691
- default:
90692
- ta.find((oa) => oa[g.value] === ea) || ue(void 0);
90693
- break;
90694
- }
90695
- }, {
90696
- immediate: !0
90697
- }), watch([() => U.value, w], ([ea, ta]) => {
90698
90683
  const oa = get(ea, "length", 0);
90699
90684
  if (oa > 0 && ta.length > 0) {
90700
90685
  const aa = intersection$1(ea, ta == null ? void 0 : ta.map((sa) => sa[g.value]));
@@ -90722,7 +90707,20 @@ const KgFormItemCheckboxGroup = defineComponent({
90722
90707
  }
90723
90708
  async function se() {
90724
90709
  var ea;
90725
- !((ea = u.value) != null && ea.id) || await N();
90710
+ if (!!((ea = u.value) != null && ea.id))
90711
+ switch (await N(), e.kgMode) {
90712
+ case "multiple": {
90713
+ if (Array.isArray(U.value)) {
90714
+ const ta = U.value.filter((oa) => w.value.find((aa) => aa[g.value] === oa));
90715
+ ue(ta);
90716
+ }
90717
+ break;
90718
+ }
90719
+ default: {
90720
+ w.value.find((ta) => ta[g.value] === U.value) || ue(void 0);
90721
+ break;
90722
+ }
90723
+ }
90726
90724
  }
90727
90725
  function st(ea) {
90728
90726
  var ta, oa, aa;
@@ -91174,28 +91172,26 @@ const KgFormItemSelect = defineComponent({
91174
91172
  isEqual(aa, sa) || ut();
91175
91173
  }, {
91176
91174
  immediate: !0
91177
- }), watch([ue, U], ([aa, sa]) => {
91178
- switch (e.kgMode) {
91179
- case "multiple": {
91180
- if (Array.isArray(aa)) {
91181
- const ua = aa.filter((ga) => sa.find((ma) => ma[g.value] === ga));
91182
- ua.length > 0 ? st(ua) : st([]);
91183
- }
91184
- break;
91185
- }
91186
- default:
91187
- sa.find((ua) => ua[g.value] === aa) || st(void 0);
91188
- break;
91189
- }
91190
- }, {
91191
- immediate: !0
91192
91175
  });
91193
91176
  function st(aa) {
91194
91177
  a.value[e.kgVarName] = aa;
91195
91178
  }
91196
91179
  async function ut() {
91197
91180
  var aa;
91198
- !((aa = p.value) != null && aa.id) || (await ne(), n("kgSelectDatasChange", U.value));
91181
+ if (!!((aa = p.value) != null && aa.id))
91182
+ switch (await ne(), n("kgSelectDatasChange", U.value), e.kgMode) {
91183
+ case "multiple": {
91184
+ if (Array.isArray(ue.value)) {
91185
+ const sa = ue.value.filter((ua) => U.value.find((ga) => ga[g.value] === ua));
91186
+ st(sa);
91187
+ }
91188
+ break;
91189
+ }
91190
+ default: {
91191
+ U.value.find((sa) => sa[g.value] === ue.value) || st(void 0);
91192
+ break;
91193
+ }
91194
+ }
91199
91195
  }
91200
91196
  async function ea(aa) {
91201
91197
  var sa, ua, ga, ma, fa, va;
@@ -92750,9 +92746,9 @@ const getProps$z = () => ({
92750
92746
  kgIsDefaultFullscreen: U.value,
92751
92747
  onCancel: Ca
92752
92748
  }, {
92753
- title: bi,
92754
92749
  default: Ei,
92755
- footer: _i
92750
+ footer: _i,
92751
+ title: bi
92756
92752
  });
92757
92753
  };
92758
92754
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.27.1-beta.8",
3
+ "version": "0.27.1-beta.9",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",