@stlhorizon/vue-ui 3.15.3 → 3.15.4

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.
package/dist/index.esm.js CHANGED
@@ -11368,7 +11368,17 @@ const nc = {
11368
11368
  "file-removed"
11369
11369
  ],
11370
11370
  setup(e, { emit: a }) {
11371
- const t = e, n = a, r = N(!1), l = N(!1), u = b(() => Object.keys(t.addButton).length > 0), m = b(() => u.value ? t.addButton.visible && typeof t.addButton.visible == "function" ? t.addButton.visible() : !0 : t.showAdd), g = b(() => u.value && t.addButton.permission && typeof t.addButton.permission == "function" ? t.addButton.permission() : !0), y = b(() => u.value && t.addButton.disabled && typeof t.addButton.disabled == "function" ? t.addButton.disabled() : !1), k = () => {
11371
+ const t = e, n = a, r = N(!1), l = N(!1), u = b(() => Object.keys(t.addButton).length > 0), m = b(() => {
11372
+ if (!u.value) return t.showAdd;
11373
+ if (t.addButton.permission !== void 0) {
11374
+ if (typeof t.addButton.permission == "function") {
11375
+ if (!t.addButton.permission())
11376
+ return !1;
11377
+ } else if (!t.addButton.permission)
11378
+ return !1;
11379
+ }
11380
+ return t.addButton.visible && typeof t.addButton.visible == "function" ? t.addButton.visible() : !0;
11381
+ }), g = b(() => u.value && t.addButton.permission !== void 0 ? typeof t.addButton.permission == "function" ? t.addButton.permission() : t.addButton.permission : !0), y = b(() => u.value && t.addButton.disabled && typeof t.addButton.disabled == "function" ? t.addButton.disabled() : !1), k = () => {
11372
11382
  l.value = !0;
11373
11383
  }, S = () => {
11374
11384
  l.value = !1;