@kengic/vue 0.16.6-beta.0 → 0.16.6-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/kengic-vue.js +14 -11
  2. package/package.json +1 -1
@@ -2938,7 +2938,7 @@ const emptyIcon = {
2938
2938
  ...t.data
2939
2939
  }, r);
2940
2940
  }
2941
- }), version = "0.16.6-beta.0", data$1 = {
2941
+ }), version = "0.16.6-beta.1", data$1 = {
2942
2942
  width: 24,
2943
2943
  height: 24,
2944
2944
  body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
@@ -14185,7 +14185,7 @@ const getProps$r = () => ({
14185
14185
  }) {
14186
14186
  const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
14187
14187
  var c, d, g, v, y, b, _, m;
14188
- return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((c = s.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((b = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) > 1 || KgAuthUtil.getPermissionType((_ = s.value) == null ? void 0 : _.permission_code) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14188
+ return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((c = s.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((b = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) > 1 || KgAuthUtil.getPermissionType((_ = s.value) == null ? void 0 : _.permission_code) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code)) : e.kgDisabled;
14189
14189
  });
14190
14190
  async function o() {
14191
14191
  e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
@@ -14403,7 +14403,7 @@ const KgButtonCreate = defineComponent({
14403
14403
  }) {
14404
14404
  const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), u = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), c = computed(() => {
14405
14405
  var T, k, I, C, w, A, O, D;
14406
- return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = o.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14406
+ return isNil(e.kgDisabled) ? !!(s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = o.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
14407
14407
  }), d = computed(() => !!s.isCreatingRequesting.value);
14408
14408
  async function g() {
14409
14409
  e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
@@ -14464,7 +14464,7 @@ const KgButtonCreate = defineComponent({
14464
14464
  setup(e) {
14465
14465
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
14466
14466
  var u, c, d, g, v, y, b, _;
14467
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((d = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || KgAuthUtil.getPermissionType((b = n.value) == null ? void 0 : b.permission_code) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14467
+ return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((u = n.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((d = (c = a.selectedRows.value) == null ? void 0 : c.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((y = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? y : 0) > 1 || KgAuthUtil.getPermissionType((b = n.value) == null ? void 0 : b.permission_code) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code)) : e.kgDisabled;
14468
14468
  });
14469
14469
  async function l() {
14470
14470
  e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
@@ -14523,7 +14523,7 @@ const KgButtonCreate = defineComponent({
14523
14523
  }), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
14524
14524
  }), u = computed(() => {
14525
14525
  var y, b, _, m, p, T, k, I;
14526
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((_ = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((k = s.value) == null ? void 0 : k.permission_code) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14526
+ return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((_ = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((k = s.value) == null ? void 0 : k.permission_code) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code)) : e.kgDisabled;
14527
14527
  }), c = ref(!1);
14528
14528
  async function d() {
14529
14529
  var y, b;
@@ -14606,7 +14606,7 @@ const KgButtonCreate = defineComponent({
14606
14606
  }), m;
14607
14607
  }), g = computed(() => {
14608
14608
  var m, p, T, k, I, C, w, A;
14609
- return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((m = i.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((T = (p = o.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) === 0 || ((k = i.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (I = o.selectedRows.value) == null ? void 0 : I.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((w = i.value) == null ? void 0 : w.permission_code) === 2 && !a.p((A = i.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14609
+ return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((m = i.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((T = (p = o.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) === 0 || ((k = i.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (I = o.selectedRows.value) == null ? void 0 : I.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((w = i.value) == null ? void 0 : w.permission_code) === 2 && !a.p((A = i.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
14610
14610
  }), v = ref(!1);
14611
14611
  async function y(m) {
14612
14612
  if (!u.value)
@@ -14701,7 +14701,7 @@ const KgButtonCreate = defineComponent({
14701
14701
  }), y;
14702
14702
  }), u = computed(() => {
14703
14703
  var y, b, _, m, p, T, k, I;
14704
- return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((_ = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((k = s.value) == null ? void 0 : k.permission_code) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14704
+ return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((_ = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((k = s.value) == null ? void 0 : k.permission_code) === 2 && !t.p((I = s.value) == null ? void 0 : I.permission_code)) : e.kgDisabled;
14705
14705
  }), c = ref(!1);
14706
14706
  async function d() {
14707
14707
  var y, b;
@@ -14763,7 +14763,7 @@ const KgButtonCreate = defineComponent({
14763
14763
  setup(e) {
14764
14764
  const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
14765
14765
  var d, g, v, y, b, _, m, p;
14766
- return e.kgLoading || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? v : 0) === 0 || ((y = l.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((_ = (b = s.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) > 1 || KgAuthUtil.getPermissionType((m = l.value) == null ? void 0 : m.permission_code) === 2 && !t.p((p = l.value) == null ? void 0 : p.permission_code) || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14766
+ return isNil(e.kgDisabled) ? !!(e.kgLoading || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? v : 0) === 0 || ((y = l.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((_ = (b = s.selectedRows.value) == null ? void 0 : b.length) != null ? _ : 0) > 1 || KgAuthUtil.getPermissionType((m = l.value) == null ? void 0 : m.permission_code) === 2 && !t.p((p = l.value) == null ? void 0 : p.permission_code) || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) : e.kgDisabled;
14767
14767
  });
14768
14768
  async function i() {
14769
14769
  var y, b, _;
@@ -14856,7 +14856,7 @@ const KgButtonCreate = defineComponent({
14856
14856
  setup(e) {
14857
14857
  const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
14858
14858
  var u, c;
14859
- return e.kgLoading || a.isRetrieving.value || KgAuthUtil.getPermissionType((u = r.varButtonSearch.value) == null ? void 0 : u.permission_code) === 2 && !t.p((c = r.varButtonSearch.value) == null ? void 0 : c.permission_code) || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14859
+ return isNil(e.kgDisabled) ? !!(e.kgLoading || a.isRetrieving.value || KgAuthUtil.getPermissionType((u = r.varButtonSearch.value) == null ? void 0 : u.permission_code) === 2 && !t.p((c = r.varButtonSearch.value) == null ? void 0 : c.permission_code) || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) : e.kgDisabled;
14860
14860
  });
14861
14861
  async function l() {
14862
14862
  e.onKgClick && await e.onKgClick();
@@ -14911,7 +14911,7 @@ const KgButtonCreate = defineComponent({
14911
14911
  });
14912
14912
  const u = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), c = computed(() => {
14913
14913
  var T, k, I, C, w, A, O, D;
14914
- return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = l.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
14914
+ return isNil(e.kgDisabled) ? !!(s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = u.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((C = u.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (w = l.selectedRows.value) == null ? void 0 : w.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((O = u.value) == null ? void 0 : O.permission_code) === 2 && !n.p((D = u.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
14915
14915
  }), d = computed(() => !!s.isUpdatingRequesting.value);
14916
14916
  async function g() {
14917
14917
  e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
@@ -15044,7 +15044,10 @@ const getProps$o = () => ({
15044
15044
  if (m) {
15045
15045
  const k = m(_);
15046
15046
  if (!isNil(k))
15047
- return k;
15047
+ return KgLogger.debug("KgButton | isKgDisabled() | \u4F7F\u7528\u7528\u6237\u63D0\u4F9B\u7684\u903B\u8F91\u51B3\u5B9A\u6309\u94AE\u662F\u5426\u542F\u7981\u7528.", {
15048
+ button: _,
15049
+ disabled: k
15050
+ }), k;
15048
15051
  }
15049
15052
  });
15050
15053
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.16.6-beta.0",
3
+ "version": "0.16.6-beta.1",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vite build --mode development",