bt-core-app 2.2.6 → 2.2.7

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,14 +1,15 @@
1
- import { defineComponent as x, computed as V, toValue as G, resolveComponent as N, openBlock as a, createElementBlock as r, normalizeClass as l, createVNode as y, withCtx as m, unref as n, createBlock as p, createCommentVNode as f, normalizeStyle as D, renderSlot as i, createTextVNode as c, toDisplayString as s, createElementVNode as g } from "vue";
2
- import { useItem as E } from "../composables/item.mjs";
3
- import { useFilters as F } from "../composables/filters.mjs";
4
- import { nestedValue as L } from "../composables/helpers.mjs";
5
- import { useNavigation as P } from "../composables/navigation.mjs";
1
+ import { defineComponent as k, computed as V, toValue as x, openBlock as a, createElementBlock as r, normalizeClass as l, createVNode as y, unref as t, withCtx as m, createBlock as p, createCommentVNode as f, normalizeStyle as G, renderSlot as i, createTextVNode as c, toDisplayString as s, createElementVNode as g } from "vue";
2
+ import { useItem as N } from "../composables/item.mjs";
3
+ import { useFilters as D } from "../composables/filters.mjs";
4
+ import { nestedValue as E } from "../composables/helpers.mjs";
5
+ import { useNavigation as F } from "../composables/navigation.mjs";
6
+ import { VSlideXTransition as L } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
6
7
  import { VProgressCircular as v } from "../bt-core/core/node_modules/vuetify/lib/components/VProgressCircular/VProgressCircular.mjs";
7
- import { VOverlay as b } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
8
- const w = {
8
+ import { VOverlay as P } from "../bt-core/core/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs";
9
+ const b = {
9
10
  key: 0,
10
11
  class: "align-center justify-center text-center"
11
- }, O = { key: "3" }, K = /* @__PURE__ */ x({
12
+ }, w = { key: "3" }, K = /* @__PURE__ */ k({
12
13
  __name: "BT-Entity",
13
14
  props: {
14
15
  alternateText: {},
@@ -90,83 +91,80 @@ const w = {
90
91
  },
91
92
  emits: ["fetched", "saved"],
92
93
  setup(B, { emit: h }) {
93
- const I = h, o = B, S = F(), t = E(o, I, {
94
+ const I = h, o = B, S = D(), n = N(o, I, {
94
95
  onGetItem: (e) => {
95
96
  o.assignToObject != null && o.assignToProp != null && (o.assignToObject[o.assignToProp] = e);
96
97
  }
97
- }), A = P(), d = o.itemText ?? (o.nav != null ? A.findItemText(o.nav) : void 0) ?? void 0, T = V(() => {
98
- var e = G(t.asyncItem);
99
- return o.textFunction != null && (e = o.textFunction(e)), d != null && (e = L(t.asyncItem.value, d)), o.textFilter != null ? S.findFilter(o.textFilter)(e) : e;
98
+ }), T = F(), d = o.itemText ?? (o.nav != null ? T.findItemText(o.nav) : void 0) ?? void 0, A = V(() => {
99
+ var e = x(n.asyncItem);
100
+ return o.textFunction != null && (e = o.textFunction(e)), d != null && (e = E(n.asyncItem.value, d)), o.textFilter != null ? S.findFilter(o.textFilter)(e) : e;
100
101
  });
101
- return (e, u) => {
102
- const C = N("v-slide-x-transition");
103
- return a(), r("div", {
104
- class: l(e.inline ? "d-inline" : "")
105
- }, [
106
- y(C, { "hide-on-leave": "" }, {
107
- default: m(() => [
108
- e.inline && n(t).isLoading.value ? (a(), r("div", w, [
109
- e.hideLoader ? f("", !0) : (a(), p(n(v), {
110
- key: 0,
111
- indeterminate: "",
112
- size: "20"
113
- }))
114
- ])) : n(t).asyncItem.value != null ? (a(), r("div", {
115
- key: "1",
116
- class: l({ "d-inline": e.inline, "text-truncate": e.truncate }),
117
- style: D(e.truncate == !0 ? "display: inline-block;" : "")
118
- }, [
119
- i(e.$slots, "prepend", {
120
- item: n(t).asyncItem.value,
121
- refresh: n(t).refresh
122
- }, () => [
123
- c(s(e.prefix), 1)
124
- ]),
125
- i(e.$slots, "default", {
126
- isChanged: n(t).isChanged,
127
- item: n(t).asyncItem.value,
128
- deleteItem: n(t).deleteItem,
129
- refresh: n(t).refresh,
130
- save: () => n(t).saveItem(n(t).asyncItem.value)
131
- }, () => [
132
- c(s(T.value), 1)
133
- ]),
134
- i(e.$slots, "append", {
135
- item: n(t).asyncItem.value,
136
- refresh: n(t).refresh
137
- }, () => [
138
- c(s(e.suffix), 1)
139
- ])
140
- ], 6)) : (a(), r("div", {
141
- key: "2",
142
- class: l(e.inline ? "d-inline" : "")
143
- }, [
144
- i(e.$slots, "alternate", {
145
- item: n(t).asyncItem.value,
146
- refresh: n(t).refresh
147
- }, () => [
148
- g("span", O, s(e.alternateText), 1)
149
- ])
150
- ], 2))
151
- ]),
152
- _: 3
153
- }),
154
- !e.inline && !e.hideLoader ? (a(), p(n(b), {
155
- key: 0,
156
- modelValue: n(t).isLoading.value,
157
- "onUpdate:modelValue": u[0] || (u[0] = (k) => n(t).isLoading.value = k),
158
- class: "align-center justify-center text-center",
159
- contained: "",
160
- persistent: ""
161
- }, {
162
- default: m(() => [
163
- y(n(v), { indeterminate: "" }),
164
- g("p", null, s(n(t).loadingMsg), 1)
165
- ]),
166
- _: 1
167
- }, 8, ["modelValue"])) : f("", !0)
168
- ], 2);
169
- };
102
+ return (e, u) => (a(), r("div", {
103
+ class: l(e.inline ? "d-inline" : "")
104
+ }, [
105
+ y(t(L), { "hide-on-leave": "" }, {
106
+ default: m(() => [
107
+ e.inline && t(n).isLoading.value ? (a(), r("div", b, [
108
+ e.hideLoader ? f("", !0) : (a(), p(t(v), {
109
+ key: 0,
110
+ indeterminate: "",
111
+ size: "20"
112
+ }))
113
+ ])) : t(n).asyncItem.value != null ? (a(), r("div", {
114
+ key: "1",
115
+ class: l({ "d-inline": e.inline, "text-truncate": e.truncate }),
116
+ style: G(e.truncate == !0 ? "display: inline-block;" : "")
117
+ }, [
118
+ i(e.$slots, "prepend", {
119
+ item: t(n).asyncItem.value,
120
+ refresh: t(n).refresh
121
+ }, () => [
122
+ c(s(e.prefix), 1)
123
+ ]),
124
+ i(e.$slots, "default", {
125
+ isChanged: t(n).isChanged,
126
+ item: t(n).asyncItem.value,
127
+ deleteItem: t(n).deleteItem,
128
+ refresh: t(n).refresh,
129
+ save: () => t(n).saveItem(t(n).asyncItem.value)
130
+ }, () => [
131
+ c(s(A.value), 1)
132
+ ]),
133
+ i(e.$slots, "append", {
134
+ item: t(n).asyncItem.value,
135
+ refresh: t(n).refresh
136
+ }, () => [
137
+ c(s(e.suffix), 1)
138
+ ])
139
+ ], 6)) : (a(), r("div", {
140
+ key: "2",
141
+ class: l(e.inline ? "d-inline" : "")
142
+ }, [
143
+ i(e.$slots, "alternate", {
144
+ item: t(n).asyncItem.value,
145
+ refresh: t(n).refresh
146
+ }, () => [
147
+ g("span", w, s(e.alternateText), 1)
148
+ ])
149
+ ], 2))
150
+ ]),
151
+ _: 3
152
+ }),
153
+ !e.inline && !e.hideLoader ? (a(), p(t(P), {
154
+ key: 0,
155
+ modelValue: t(n).isLoading.value,
156
+ "onUpdate:modelValue": u[0] || (u[0] = (C) => t(n).isLoading.value = C),
157
+ class: "align-center justify-center text-center",
158
+ contained: "",
159
+ persistent: ""
160
+ }, {
161
+ default: m(() => [
162
+ y(t(v), { indeterminate: "" }),
163
+ g("p", null, s(t(n).loadingMsg), 1)
164
+ ]),
165
+ _: 1
166
+ }, 8, ["modelValue"])) : f("", !0)
167
+ ], 2));
170
168
  }
171
169
  });
172
170
  export {
@@ -1,34 +1,32 @@
1
- import { defineComponent as i, ref as u, watch as p, resolveComponent as d, openBlock as c, createBlock as m, withCtx as t, createVNode as f, unref as _, createTextVNode as v, toDisplayString as V } from "vue";
2
- import { VAlert as g } from "../bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlert.mjs";
3
- const x = /* @__PURE__ */ i({
1
+ import { defineComponent as u, ref as i, watch as p, openBlock as d, createBlock as m, unref as t, withCtx as l, createVNode as f, createTextVNode as c, toDisplayString as V } from "vue";
2
+ import { VSlideYTransition as g } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
3
+ import { VAlert as _ } from "../bt-core/core/node_modules/vuetify/lib/components/VAlert/VAlert.mjs";
4
+ const x = /* @__PURE__ */ u({
4
5
  __name: "BT-Error",
5
6
  props: {
6
7
  errorMsg: {}
7
8
  },
8
- setup(l) {
9
- const n = l, e = u(!1);
9
+ setup(a) {
10
+ const n = a, e = i(!1);
10
11
  return p(() => n.errorMsg, (r) => {
11
12
  e.value = r != null;
12
- }), (r, o) => {
13
- const a = d("v-slide-y-transition");
14
- return c(), m(a, null, {
15
- default: t(() => [
16
- f(_(g), {
17
- closable: "",
18
- title: "Error",
19
- color: "red-lighten-1",
20
- modelValue: e.value,
21
- "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
22
- }, {
23
- default: t(() => [
24
- v(V(r.errorMsg), 1)
25
- ]),
26
- _: 1
27
- }, 8, ["modelValue"])
28
- ]),
29
- _: 1
30
- });
31
- };
13
+ }), (r, o) => (d(), m(t(g), null, {
14
+ default: l(() => [
15
+ f(t(_), {
16
+ closable: "",
17
+ title: "Error",
18
+ color: "red-lighten-1",
19
+ modelValue: e.value,
20
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => e.value = s)
21
+ }, {
22
+ default: l(() => [
23
+ c(V(r.errorMsg), 1)
24
+ ]),
25
+ _: 1
26
+ }, 8, ["modelValue"])
27
+ ]),
28
+ _: 1
29
+ }));
32
30
  }
33
31
  });
34
32
  export {