bt-core-app 2.2.7 → 2.2.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.
- package/dist/components/BT-Assistant-Menu.vue.mjs +402 -404
- package/dist/components/BT-Date-Select.vue.mjs +9 -10
- package/dist/components/BT-Date.vue.d.ts +0 -1
- package/dist/components/BT-Date.vue.mjs +8 -9
- package/dist/components/BT-Field-Date.vue.d.ts +0 -1
- package/dist/components/BT-Field-Date.vue.mjs +2 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineComponent as g, computed as d, ref as B, openBlock as T, createBlock as D, unref as a, withCtx as p, createVNode as s, mergeProps as f } from "vue";
|
|
2
2
|
import N from "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs";
|
|
3
|
-
import "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs";
|
|
4
3
|
import { useAuth as S } from "../composables/auth.mjs";
|
|
5
4
|
import { useDates as F } from "../composables/dates.mjs";
|
|
6
5
|
import { useTheme as $ } from "vuetify";
|
|
7
6
|
import { VMenu as h } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
8
7
|
import { VTextField as w } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
|
|
9
|
-
const
|
|
8
|
+
const I = /* @__PURE__ */ g({
|
|
10
9
|
inheritAttrs: !1,
|
|
11
10
|
__name: "BT-Date-Select",
|
|
12
11
|
props: {
|
|
@@ -23,19 +22,19 @@ const P = /* @__PURE__ */ g({
|
|
|
23
22
|
},
|
|
24
23
|
emits: ["update:modelValue"],
|
|
25
24
|
setup(V, { emit: c }) {
|
|
26
|
-
const v = $(),
|
|
25
|
+
const v = $(), l = V, y = c, { btString: k, tzString: i } = F(), b = S(), o = d({
|
|
27
26
|
get() {
|
|
28
|
-
return
|
|
27
|
+
return l.modelValue == "0001-01-01T00:00:00" && l.ignoreMinDate ? k() : l.modelValue;
|
|
29
28
|
},
|
|
30
29
|
set(e) {
|
|
31
30
|
y("update:modelValue", e == null ? e : `${e.split(".")[0]}Z`);
|
|
32
31
|
}
|
|
33
|
-
}), r = d(() =>
|
|
34
|
-
return
|
|
32
|
+
}), r = d(() => l.modelValue ? i(l.modelValue, l.format) : void 0), m = B();
|
|
33
|
+
return l.dateFrom != null ? m.value = l.dateFrom : l.fromNow && (m.value = i()), (e, t) => (T(), D(a(h), { "open-delay": "5" }, {
|
|
35
34
|
activator: p(({ props: n }) => [
|
|
36
35
|
s(a(w), f({
|
|
37
36
|
"append-inner-icon": e.canSelectNone && o.value != null && o.value.length > 0 ? "$close" : void 0,
|
|
38
|
-
"onClick:appendInner":
|
|
37
|
+
"onClick:appendInner": t[0] || (t[0] = (u) => o.value = void 0),
|
|
39
38
|
density: e.density
|
|
40
39
|
}, n, {
|
|
41
40
|
"hide-details": "",
|
|
@@ -43,7 +42,7 @@ const P = /* @__PURE__ */ g({
|
|
|
43
42
|
readonly: "",
|
|
44
43
|
variant: e.fieldVariant,
|
|
45
44
|
modelValue: r.value,
|
|
46
|
-
"onUpdate:modelValue":
|
|
45
|
+
"onUpdate:modelValue": t[1] || (t[1] = (u) => r.value = u)
|
|
47
46
|
}), null, 16, ["append-inner-icon", "density", "label", "variant", "modelValue"])
|
|
48
47
|
]),
|
|
49
48
|
default: p(() => [
|
|
@@ -58,7 +57,7 @@ const P = /* @__PURE__ */ g({
|
|
|
58
57
|
utc: ""
|
|
59
58
|
}, e.$attrs, {
|
|
60
59
|
modelValue: o.value,
|
|
61
|
-
"onUpdate:modelValue":
|
|
60
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => o.value = n)
|
|
62
61
|
}), null, 16, ["dark", "enable-time-picker", "time-picker-inline", "timezone", "modelValue"])
|
|
63
62
|
]),
|
|
64
63
|
_: 1
|
|
@@ -66,5 +65,5 @@ const P = /* @__PURE__ */ g({
|
|
|
66
65
|
}
|
|
67
66
|
});
|
|
68
67
|
export {
|
|
69
|
-
|
|
68
|
+
I as default
|
|
70
69
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as y, computed as
|
|
1
|
+
import { defineComponent as y, computed as r, openBlock as g, createBlock as k, unref as l, mergeProps as B } from "vue";
|
|
2
2
|
import V from "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs";
|
|
3
|
-
import "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs";
|
|
4
3
|
import { useDates as T } from "../composables/dates.mjs";
|
|
5
4
|
import { useAuth as h } from "../composables/auth.mjs";
|
|
6
5
|
import { useTheme as D } from "vuetify";
|
|
7
|
-
const
|
|
6
|
+
const Z = /* @__PURE__ */ y({
|
|
8
7
|
inheritAttrs: !1,
|
|
9
8
|
__name: "BT-Date",
|
|
10
9
|
props: {
|
|
@@ -23,9 +22,9 @@ const $ = /* @__PURE__ */ y({
|
|
|
23
22
|
},
|
|
24
23
|
emits: ["update:modelValue"],
|
|
25
24
|
setup(i, { emit: m }) {
|
|
26
|
-
const u = D(), t = i, s = m,
|
|
25
|
+
const u = D(), t = i, s = m, d = h(), { btString: p, getToday: f } = T(), c = r(() => t.dateFrom ?? (t.fromNow ? f() : void 0)), n = r({
|
|
27
26
|
get() {
|
|
28
|
-
return t.modelValue == "0001-01-01T00:00:00" && t.ignoreMinDate ?
|
|
27
|
+
return t.modelValue == "0001-01-01T00:00:00" && t.ignoreMinDate ? p() : t.modelValue;
|
|
29
28
|
},
|
|
30
29
|
set(e) {
|
|
31
30
|
var o;
|
|
@@ -42,14 +41,14 @@ const $ = /* @__PURE__ */ y({
|
|
|
42
41
|
"multi-dates": e.multi,
|
|
43
42
|
range: e.range,
|
|
44
43
|
"time-picker-inline": e.useTime,
|
|
45
|
-
timezone: l(
|
|
44
|
+
timezone: l(d).timeZone.value,
|
|
46
45
|
utc: ""
|
|
47
46
|
}, e.$attrs, {
|
|
48
|
-
modelValue:
|
|
49
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) =>
|
|
47
|
+
modelValue: n.value,
|
|
48
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a)
|
|
50
49
|
}), null, 16, ["dark", "enable-time-picker", "min-date", "multi-dates", "range", "time-picker-inline", "timezone", "modelValue"]));
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
Z as default
|
|
55
54
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, computed as o, ref as p, inject as r, openBlock as f, createBlock as c, unref as t, normalizeClass as q, withCtx as i, createVNode as s, createTextVNode as k, toDisplayString as S, mergeProps as M } from "vue";
|
|
2
2
|
import A from "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.mjs";
|
|
3
|
-
import "../bt-core/core/node_modules/@vuepic/vue-datepicker/dist/main.css.mjs";
|
|
4
3
|
import { useAuth as R } from "../composables/auth.mjs";
|
|
5
4
|
import { useDates as U } from "../composables/dates.mjs";
|
|
6
5
|
import { useTheme as Z } from "vuetify";
|
|
@@ -11,7 +10,7 @@ import { VListItemSubtitle as G } from "../bt-core/core/node_modules/vuetify/lib
|
|
|
11
10
|
import { VListItemTitle as H } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItemTitle.mjs";
|
|
12
11
|
import { VMenu as J } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
|
|
13
12
|
import { VTextField as K } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
|
|
14
|
-
const
|
|
13
|
+
const ne = /* @__PURE__ */ $({
|
|
15
14
|
inheritAttrs: !1,
|
|
16
15
|
__name: "BT-Field-Date",
|
|
17
16
|
props: {
|
|
@@ -119,5 +118,5 @@ const re = /* @__PURE__ */ $({
|
|
|
119
118
|
}
|
|
120
119
|
});
|
|
121
120
|
export {
|
|
122
|
-
|
|
121
|
+
ne as default
|
|
123
122
|
};
|