bt-core-app 2.2.20 → 2.2.22
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-Blade-Items.vue2.mjs +1 -0
- package/dist/components/BT-Blade-Steps.vue2.mjs +1 -0
- package/dist/components/BT-Cron.vue.mjs +283 -235
- package/dist/components/BT-Select-List-Box.vue.mjs +6 -5
- package/dist/components/BT-Select-Simple.vue.mjs +5 -4
- package/dist/components/BT-Select.vue.mjs +5 -4
- package/dist/composables/cron.d.ts +6 -1
- package/dist/composables/cron.mjs +183 -145
- package/dist/composables/list.d.ts +1 -0
- package/dist/composables/list.mjs +63 -63
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as V, inject as C, computed as m, openBlock as a, createBlock as s, unref as t, normalizeClass as J, withCtx as i, createElementVNode as $, renderSlot as u, createVNode as r, createTextVNode as c, mergeProps as z, createCommentVNode as p, toDisplayString as f, createElementBlock as P, Fragment as
|
|
1
|
+
import { defineComponent as Y, ref as V, inject as C, computed as m, openBlock as a, createBlock as s, unref as t, normalizeClass as J, withCtx as i, createElementVNode as $, renderSlot as u, createVNode as r, createTextVNode as c, mergeProps as z, createCommentVNode as p, toDisplayString as f, createElementBlock as P, Fragment as R, renderList as W } from "vue";
|
|
2
2
|
import { useList as Z } from "../composables/list.mjs";
|
|
3
3
|
import { useFilters as x } from "../composables/filters.mjs";
|
|
4
|
-
import { nestedValue as
|
|
4
|
+
import { nestedValue as O, isLengthyArray as _ } from "../composables/helpers.mjs";
|
|
5
5
|
import { VCol as ee } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
6
6
|
import { VListItem as S } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
7
7
|
import { VIcon as E } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
|
|
@@ -122,6 +122,7 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
122
122
|
sortDirection: {},
|
|
123
123
|
sortProp: {},
|
|
124
124
|
startEditing: { type: Boolean },
|
|
125
|
+
startRefreshing: { type: Boolean },
|
|
125
126
|
startShowingInactive: { type: Boolean },
|
|
126
127
|
startShowingSearch: { type: Boolean },
|
|
127
128
|
storeMode: {},
|
|
@@ -138,10 +139,10 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
138
139
|
// useRouteSrc: false
|
|
139
140
|
}), D = x(), L = m(() => (e) => {
|
|
140
141
|
let l = n.subtextFunction != null ? n.subtextFunction(e) : e;
|
|
141
|
-
return l = n.itemSubtext != null ?
|
|
142
|
+
return l = n.itemSubtext != null ? O(l, n.itemSubtext) : l, n.subtextFilter != null ? D.findFilter(n.subtextFilter)(l) : l;
|
|
142
143
|
}), k = m(() => (e) => {
|
|
143
144
|
let l = n.textFunction != null ? n.textFunction(e) : e;
|
|
144
|
-
return l = n.itemText != null ?
|
|
145
|
+
return l = n.itemText != null ? O(l, n.itemText) : l, n.textFilter != null ? D.findFilter(n.textFilter)(l) : l;
|
|
145
146
|
}), h = m(() => (e) => (n.itemValue ? e[n.itemValue] : e) == n.modelValue);
|
|
146
147
|
function M() {
|
|
147
148
|
K.value && (y.value = !0);
|
|
@@ -291,7 +292,7 @@ const re = { class: "d-flex align-center" }, ue = { class: "d-flex align-center"
|
|
|
291
292
|
"hide-on-leave": ""
|
|
292
293
|
}, {
|
|
293
294
|
default: i(() => [
|
|
294
|
-
(a(!0), P(
|
|
295
|
+
(a(!0), P(R, null, W(t(d).filteredItems.value, (o, B) => (a(), P(R, {
|
|
295
296
|
key: `${o.id ?? B}-list-item`
|
|
296
297
|
}, [
|
|
297
298
|
u(e.$slots, "item", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as m, computed as d, openBlock as u, createBlock as y, unref as o, mergeProps as S } from "vue";
|
|
2
2
|
import { useList as g } from "../composables/list.mjs";
|
|
3
3
|
import { useNavigation as B } from "../composables/navigation.mjs";
|
|
4
|
-
import { TestRequired as
|
|
5
|
-
import { VSelect as
|
|
4
|
+
import { TestRequired as f } from "../composables/rules.mjs";
|
|
5
|
+
import { VSelect as v } from "../bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs";
|
|
6
6
|
const D = /* @__PURE__ */ m({
|
|
7
7
|
__name: "BT-Select-Simple",
|
|
8
8
|
props: {
|
|
@@ -87,6 +87,7 @@ const D = /* @__PURE__ */ m({
|
|
|
87
87
|
sortDirection: {},
|
|
88
88
|
sortProp: {},
|
|
89
89
|
startEditing: { type: Boolean },
|
|
90
|
+
startRefreshing: { type: Boolean },
|
|
90
91
|
startShowingInactive: { type: Boolean },
|
|
91
92
|
startShowingSearch: { type: Boolean },
|
|
92
93
|
storeMode: {},
|
|
@@ -102,9 +103,9 @@ const D = /* @__PURE__ */ m({
|
|
|
102
103
|
var e = [
|
|
103
104
|
...t.rules ?? []
|
|
104
105
|
];
|
|
105
|
-
return t.required && e.push(
|
|
106
|
+
return t.required && e.push(f), e.length > 0 ? e : void 0;
|
|
106
107
|
});
|
|
107
|
-
return (e, l) => (u(), y(o(
|
|
108
|
+
return (e, l) => (u(), y(o(v), S({
|
|
108
109
|
"append-icon": e.canRefresh ? "$refresh" : void 0,
|
|
109
110
|
clearable: e.canSelectNone,
|
|
110
111
|
"onClick:appendIcon": l[0] || (l[0] = (h) => o(n).refresh({ deepRefresh: !0 })),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, computed as v, openBlock as h, createBlock as A, unref as t, mergeProps as I, withCtx as c, renderSlot as p, normalizeProps as a, guardReactiveProps as r, createVNode as m } from "vue";
|
|
2
2
|
import { useList as C } from "../composables/list.mjs";
|
|
3
3
|
import { useNavigation as R } from "../composables/navigation.mjs";
|
|
4
4
|
import { TestRequired as T } from "../composables/rules.mjs";
|
|
5
5
|
import { VSelect as P } from "../bt-core/core/node_modules/vuetify/lib/components/VSelect/VSelect.mjs";
|
|
6
6
|
import { VListItem as u } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
|
|
7
|
-
const k = /* @__PURE__ */
|
|
7
|
+
const k = /* @__PURE__ */ f({
|
|
8
8
|
__name: "BT-Select",
|
|
9
9
|
props: {
|
|
10
10
|
additionalUrl: {},
|
|
@@ -88,6 +88,7 @@ const k = /* @__PURE__ */ B({
|
|
|
88
88
|
sortDirection: {},
|
|
89
89
|
sortProp: {},
|
|
90
90
|
startEditing: { type: Boolean },
|
|
91
|
+
startRefreshing: { type: Boolean },
|
|
91
92
|
startShowingInactive: { type: Boolean },
|
|
92
93
|
startShowingSearch: { type: Boolean },
|
|
93
94
|
storeMode: {},
|
|
@@ -99,7 +100,7 @@ const k = /* @__PURE__ */ B({
|
|
|
99
100
|
},
|
|
100
101
|
emits: ["change", "deleted", "fetched", "input", "select", "confirm", "mouse-over-item"],
|
|
101
102
|
setup(d, { emit: y }) {
|
|
102
|
-
const
|
|
103
|
+
const g = y, S = R(), o = d, B = o.itemText ?? (o.nav != null ? S.findItemText(o.nav) : void 0) ?? void 0, l = C(o, g), s = v(() => {
|
|
103
104
|
var e = [
|
|
104
105
|
...o.rules ?? []
|
|
105
106
|
];
|
|
@@ -111,7 +112,7 @@ const k = /* @__PURE__ */ B({
|
|
|
111
112
|
"onClick:appendIcon": i[0] || (i[0] = (n) => t(l).refresh({ deepRefresh: !0 })),
|
|
112
113
|
"hide-details": s.value == null,
|
|
113
114
|
items: t(l).filteredItems.value,
|
|
114
|
-
"item-title": t(
|
|
115
|
+
"item-title": t(B),
|
|
115
116
|
"item-value": e.itemValue,
|
|
116
117
|
loading: t(l).isLoading.value,
|
|
117
118
|
multiple: e.multiple,
|
|
@@ -14,7 +14,11 @@ export declare const weekdayOptions: {
|
|
|
14
14
|
text: string;
|
|
15
15
|
value: string;
|
|
16
16
|
}[];
|
|
17
|
-
export
|
|
17
|
+
export declare const monthdayOptions: {
|
|
18
|
+
text: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[];
|
|
21
|
+
export type CronRegularity = 'Daily' | 'Weekly' | 'Monthly' | 'Yearly' | 'Custom';
|
|
18
22
|
export declare const regularityOptions: {
|
|
19
23
|
text: string;
|
|
20
24
|
value: string;
|
|
@@ -50,6 +54,7 @@ export declare function useCron(options: UseCronOptions): {
|
|
|
50
54
|
leadTimeLeft: import('vue').Ref<number, number>;
|
|
51
55
|
leadTimeRight: import('vue').Ref<number, number>;
|
|
52
56
|
months: import('vue').Ref<string[] | undefined, string[] | undefined>;
|
|
57
|
+
monthdays: import('vue').Ref<string[] | undefined, string[] | undefined>;
|
|
53
58
|
pack: () => string | undefined;
|
|
54
59
|
rawExpression: import('vue').WritableComputedRef<string | undefined, string | undefined>;
|
|
55
60
|
regularity: import('vue').WritableComputedRef<CronRegularity, CronRegularity>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useAuth as
|
|
2
|
-
import { appendUrl as
|
|
3
|
-
import { ref as
|
|
1
|
+
import { useAuth as G } from "./auth.mjs";
|
|
2
|
+
import { appendUrl as M, isNullOrEmpty as K, isLengthyArray as L } from "./helpers.mjs";
|
|
3
|
+
import { ref as d, computed as $ } from "vue";
|
|
4
4
|
import "../bt-core/core/node_modules/@datasert/cronjs-matcher/dist/index.mjs";
|
|
5
|
-
import { __exports as
|
|
6
|
-
const
|
|
5
|
+
import { __exports as Q } from "../_virtual/index.mjs";
|
|
6
|
+
const w = [
|
|
7
7
|
{ text: "12:00 AM", value: "0.0" },
|
|
8
8
|
{ text: "12:15 AM", value: "0.15" },
|
|
9
9
|
{ text: "12:30 AM", value: "0.30" },
|
|
@@ -100,7 +100,7 @@ const b = [
|
|
|
100
100
|
{ text: "11:15 PM", value: "23.15" },
|
|
101
101
|
{ text: "11:30 PM", value: "23.30" },
|
|
102
102
|
{ text: "11:45 PM", value: "23.45" }
|
|
103
|
-
],
|
|
103
|
+
], j = [
|
|
104
104
|
{ text: "Jan", value: "1" },
|
|
105
105
|
{ text: "Feb", value: "2" },
|
|
106
106
|
{ text: "Mar", value: "3" },
|
|
@@ -113,13 +113,13 @@ const b = [
|
|
|
113
113
|
{ text: "Oct", value: "10" },
|
|
114
114
|
{ text: "Nov", value: "11" },
|
|
115
115
|
{ text: "Dec", value: "12" }
|
|
116
|
-
],
|
|
116
|
+
], U = [
|
|
117
117
|
{ text: "1st", value: "1-7" },
|
|
118
118
|
{ text: "2nd", value: "8-14" },
|
|
119
119
|
{ text: "3rd", value: "15-21" },
|
|
120
120
|
{ text: "4th", value: "22-28" },
|
|
121
121
|
{ text: "5th", value: "29-31" }
|
|
122
|
-
],
|
|
122
|
+
], D = [
|
|
123
123
|
{ text: "Sun", value: "0" },
|
|
124
124
|
{ text: "Mon", value: "1" },
|
|
125
125
|
{ text: "Tue", value: "2" },
|
|
@@ -127,207 +127,245 @@ const b = [
|
|
|
127
127
|
{ text: "Thu", value: "4" },
|
|
128
128
|
{ text: "Fri", value: "5" },
|
|
129
129
|
{ text: "Sat", value: "6" }
|
|
130
|
-
],
|
|
130
|
+
], Z = [
|
|
131
|
+
{ text: "1st", value: "1" },
|
|
132
|
+
{ text: "2nd", value: "2" },
|
|
133
|
+
{ text: "3rd", value: "3" },
|
|
134
|
+
{ text: "4th", value: "4" },
|
|
135
|
+
{ text: "5th", value: "5" },
|
|
136
|
+
{ text: "6th", value: "6" },
|
|
137
|
+
{ text: "7th", value: "7" },
|
|
138
|
+
{ text: "8th", value: "8" },
|
|
139
|
+
{ text: "9th", value: "9" },
|
|
140
|
+
{ text: "10th", value: "10" },
|
|
141
|
+
{ text: "11th", value: "11" },
|
|
142
|
+
{ text: "12th", value: "12" },
|
|
143
|
+
{ text: "13th", value: "13" },
|
|
144
|
+
{ text: "14th", value: "14" },
|
|
145
|
+
{ text: "15th", value: "15" },
|
|
146
|
+
{ text: "16th", value: "16" },
|
|
147
|
+
{ text: "17th", value: "17" },
|
|
148
|
+
{ text: "18th", value: "18" },
|
|
149
|
+
{ text: "19th", value: "19" },
|
|
150
|
+
{ text: "20th", value: "20" },
|
|
151
|
+
{ text: "21th", value: "21" },
|
|
152
|
+
{ text: "22th", value: "22" },
|
|
153
|
+
{ text: "23th", value: "23" },
|
|
154
|
+
{ text: "24th", value: "24" },
|
|
155
|
+
{ text: "25th", value: "25" },
|
|
156
|
+
{ text: "26th", value: "26" },
|
|
157
|
+
{ text: "27th", value: "27" },
|
|
158
|
+
{ text: "28th", value: "28" },
|
|
159
|
+
{ text: "29th", value: "29" },
|
|
160
|
+
{ text: "30th", value: "30" },
|
|
161
|
+
{ text: "31th", value: "31" }
|
|
162
|
+
], ue = [
|
|
131
163
|
{ text: "Daily", value: "Daily" },
|
|
132
164
|
{ text: "Weekly", value: "Weekly" },
|
|
133
165
|
{ text: "Monthly", value: "Monthly" },
|
|
166
|
+
{ text: "Yearly", value: "Yearly" },
|
|
134
167
|
{ text: "Custom", value: "Custom" }
|
|
135
168
|
];
|
|
136
|
-
function
|
|
137
|
-
const { timeZone:
|
|
138
|
-
function
|
|
139
|
-
if (
|
|
169
|
+
function ae() {
|
|
170
|
+
const { timeZone: v } = G();
|
|
171
|
+
function S(r) {
|
|
172
|
+
if (r.cron == null)
|
|
140
173
|
return [];
|
|
141
|
-
const k =
|
|
142
|
-
return
|
|
174
|
+
const k = r.cron.split(/\s+/).slice(0, 5).join(" ");
|
|
175
|
+
return Q.getFutureMatches(k, { matchCount: r.futureCount, formatInTimezone: !1, timezone: v.value });
|
|
143
176
|
}
|
|
144
177
|
return {
|
|
145
|
-
predictFuture:
|
|
178
|
+
predictFuture: S
|
|
146
179
|
};
|
|
147
180
|
}
|
|
148
|
-
function
|
|
149
|
-
if (
|
|
181
|
+
function ve(v) {
|
|
182
|
+
if (v == null)
|
|
150
183
|
return 0;
|
|
151
|
-
const
|
|
152
|
-
return
|
|
184
|
+
const S = v.split(/\s+/);
|
|
185
|
+
return S.length > 5 ? Number.parseInt(S[5].split("-")[0]) : 0;
|
|
153
186
|
}
|
|
154
|
-
function
|
|
155
|
-
function
|
|
187
|
+
function se(v) {
|
|
188
|
+
function S() {
|
|
156
189
|
let e = "0 0 * * 1";
|
|
157
|
-
return
|
|
190
|
+
return v.useLeadTimeLeft && (v.useLeadTimeRight ? e = M(e, `${E.value.toString()}-${Y.value.toString()}`, " ") : e = M(e, E.value.toString(), " ")), e;
|
|
158
191
|
}
|
|
159
|
-
const
|
|
192
|
+
const r = d();
|
|
160
193
|
let k = "";
|
|
161
|
-
const
|
|
194
|
+
const b = $({
|
|
162
195
|
get() {
|
|
163
|
-
return
|
|
196
|
+
return r.value;
|
|
164
197
|
},
|
|
165
198
|
set(e) {
|
|
166
199
|
k = e;
|
|
167
200
|
}
|
|
168
|
-
}),
|
|
201
|
+
}), P = d(0), T = d(0), A = d("Custom"), m = $({
|
|
169
202
|
get() {
|
|
170
|
-
return
|
|
203
|
+
return A.value;
|
|
171
204
|
},
|
|
172
205
|
set(e) {
|
|
173
|
-
|
|
206
|
+
A.value !== e && (A.value = e, O(e));
|
|
174
207
|
}
|
|
175
|
-
}),
|
|
176
|
-
function
|
|
177
|
-
|
|
208
|
+
}), F = $(() => v.useLeadTimeInHours ? P.value : P.value / 60), E = $(() => v.useLeadTimeInHours ? P.value * 60 : P.value), Y = $(() => v.useLeadTimeInHours ? T.value * 60 : T.value), y = d(), c = d(), p = d(), h = d(), C = d();
|
|
209
|
+
function J() {
|
|
210
|
+
I(k ?? b.value);
|
|
178
211
|
}
|
|
179
|
-
function
|
|
180
|
-
e == "Daily" ? (
|
|
212
|
+
function O(e) {
|
|
213
|
+
e == "Daily" ? (c.value = ["*"], p.value = ["*"], h.value = ["*"]) : e == "Weekly" ? (c.value = ["*"], p.value = ["*"], h.value = ["0"]) : e == "Monthly" ? (c.value = ["*"], p.value = [U[0].value], h.value = [D[0].value]) : e == "Yearly" && (c.value = ["1"], C.value = [Z[0].value], h.value = ["*"]);
|
|
181
214
|
}
|
|
182
|
-
function
|
|
183
|
-
var i,
|
|
215
|
+
function q(e, l) {
|
|
216
|
+
var i, s;
|
|
184
217
|
e ?? (e = "0");
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
const a = (
|
|
188
|
-
return
|
|
218
|
+
const u = D.findIndex((n) => n.value == e || n.text == e);
|
|
219
|
+
l ?? (l = 0);
|
|
220
|
+
const a = (u + l) % 7, x = Math.ceil(l / 7);
|
|
221
|
+
return x > 1 ? `${x} ${(i = D[a]) == null ? void 0 : i.text} Later` : (s = D[a]) == null ? void 0 : s.text;
|
|
189
222
|
}
|
|
190
|
-
function
|
|
191
|
-
if (
|
|
192
|
-
var
|
|
193
|
-
if (
|
|
194
|
-
var
|
|
195
|
-
return a == 0 ? "Same Day" : e == null ? `${a} Day${a == 1 ? "" : "s"} Later` :
|
|
223
|
+
function z(e) {
|
|
224
|
+
if (y.value != null) {
|
|
225
|
+
var l = w.find((x) => x.value == y.value);
|
|
226
|
+
if (l != null) {
|
|
227
|
+
var u = Number.parseFloat(l.value) + F.value, a = Math.floor(u / 24);
|
|
228
|
+
return a == 0 ? "Same Day" : e == null ? `${a} Day${a == 1 ? "" : "s"} Later` : q(e, a);
|
|
196
229
|
}
|
|
197
230
|
}
|
|
198
231
|
}
|
|
199
|
-
function
|
|
200
|
-
var
|
|
232
|
+
function B() {
|
|
233
|
+
var x, i;
|
|
201
234
|
var e = {
|
|
202
|
-
regularity:
|
|
235
|
+
regularity: m.value,
|
|
203
236
|
orderDays: [],
|
|
204
237
|
deliveryDays: []
|
|
205
238
|
};
|
|
206
|
-
if (
|
|
207
|
-
if (
|
|
208
|
-
var
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
var
|
|
239
|
+
if (m.value == "Daily") {
|
|
240
|
+
if (y.value != null) {
|
|
241
|
+
var l = w.find((s) => s.value == y.value);
|
|
242
|
+
if (l != null) {
|
|
243
|
+
m.value == "Daily" && e.orderDays.push(l.text);
|
|
244
|
+
var u = Number.parseFloat(l.value) + F.value, a = Math.floor(u / 24);
|
|
212
245
|
a == 0 ? e.deliveryDays.push("Same Day") : e.deliveryDays.push(`${a} Day${a == 1 ? "" : "s"} Later`);
|
|
213
246
|
}
|
|
214
247
|
}
|
|
215
248
|
} else
|
|
216
|
-
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
}) :
|
|
220
|
-
var
|
|
221
|
-
|
|
249
|
+
m.value == "Weekly" ? (x = h.value) == null || x.forEach((s) => {
|
|
250
|
+
var n = D.find((o) => o.value == s);
|
|
251
|
+
n != null && (e.orderDays.push(n.text), e.deliveryDays.push(z(s) ?? ""));
|
|
252
|
+
}) : m.value == "Monthly" && ((i = c.value) == null || i.forEach((s) => {
|
|
253
|
+
var n = j.find((o) => o.value == s);
|
|
254
|
+
n != null && (e.orderDays.push(n.text), e.deliveryDays.push(z(void 0) ?? ""));
|
|
222
255
|
}));
|
|
223
256
|
return e;
|
|
224
257
|
}
|
|
225
|
-
function
|
|
258
|
+
function H() {
|
|
226
259
|
var e;
|
|
227
|
-
return (e =
|
|
260
|
+
return (e = r.value) == null ? void 0 : e.split(/\s+/);
|
|
228
261
|
}
|
|
229
|
-
function
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
let
|
|
233
|
-
if (
|
|
234
|
-
|
|
262
|
+
function I(e) {
|
|
263
|
+
if (r.value != e) {
|
|
264
|
+
r.value = e;
|
|
265
|
+
let u = !1, a = !1, x = !1, i = !1, s = !1, n = !1;
|
|
266
|
+
if (K(r.value) || !L(H(), 4))
|
|
267
|
+
u = !0;
|
|
235
268
|
else {
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
else if (x == "*")
|
|
269
|
+
const o = H();
|
|
270
|
+
var l = `${o[1]}.${o[0]}`;
|
|
271
|
+
l.includes(",") || l.includes("-") || l.includes("/") ? u = !0 : w.some((t) => t.value == l) ? y.value = l : u = !0;
|
|
272
|
+
const N = o[2];
|
|
273
|
+
if (N.includes("/"))
|
|
274
|
+
u = !0;
|
|
275
|
+
else if (N == "*")
|
|
244
276
|
a = !0;
|
|
245
277
|
else {
|
|
246
278
|
a = !1;
|
|
247
|
-
const
|
|
248
|
-
|
|
279
|
+
const t = N.split(",");
|
|
280
|
+
t.some((f) => !U.some((g) => g.value == f)) ? n = !0 : p.value = t;
|
|
249
281
|
}
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
|
|
253
|
-
else if (
|
|
282
|
+
const R = o[3];
|
|
283
|
+
if (R.includes("-") || R.includes("/"))
|
|
284
|
+
u = !0;
|
|
285
|
+
else if (R == "*")
|
|
254
286
|
i = !0;
|
|
255
287
|
else {
|
|
256
|
-
i = !1;
|
|
257
|
-
const
|
|
258
|
-
|
|
288
|
+
i = !1, s = !0;
|
|
289
|
+
const t = R.split(",");
|
|
290
|
+
t.some((f) => !j.some((g) => g.value == f)) ? u = !0 : c.value = t;
|
|
291
|
+
}
|
|
292
|
+
if (s && n) {
|
|
293
|
+
const t = N.split(",");
|
|
294
|
+
t.some((f) => !Z.some((g) => g.value == f)) ? u = !0 : C.value = t;
|
|
259
295
|
}
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
else if (
|
|
264
|
-
|
|
296
|
+
const W = o[4];
|
|
297
|
+
if (W.includes("-") || W.includes("/"))
|
|
298
|
+
u = !0;
|
|
299
|
+
else if (W == "*")
|
|
300
|
+
x = !0, h.value = D.map((t) => t.value);
|
|
265
301
|
else {
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
302
|
+
x = !1;
|
|
303
|
+
const t = W.split(",");
|
|
304
|
+
t.some((f) => !D.some((g) => g.value == f)) ? u = !0 : h.value = t;
|
|
269
305
|
}
|
|
270
|
-
if (
|
|
271
|
-
const
|
|
272
|
-
if (
|
|
273
|
-
const
|
|
274
|
-
|
|
306
|
+
if (L(o, 5) && v.useLeadTimeLeft) {
|
|
307
|
+
const t = o[5].split("-");
|
|
308
|
+
if (v.useLeadTimeRight && t.length > 1) {
|
|
309
|
+
const f = Number.parseInt(t[1]);
|
|
310
|
+
T.value = v.useLeadTimeInHours ? Math.round(f / 60) : f;
|
|
275
311
|
}
|
|
276
|
-
if (
|
|
277
|
-
const
|
|
278
|
-
|
|
312
|
+
if (t.length > 0) {
|
|
313
|
+
const f = Number.parseInt(t[0]);
|
|
314
|
+
P.value = v.useLeadTimeInHours ? Math.round(f / 60) : f;
|
|
279
315
|
}
|
|
280
316
|
}
|
|
281
317
|
}
|
|
282
|
-
|
|
318
|
+
u ? m.value = "Custom" : s ? A.value = "Yearly" : i && a && x ? A.value = "Daily" : i && a ? A.value = "Weekly" : i ? A.value = "Monthly" : A.value = "Custom";
|
|
283
319
|
}
|
|
284
320
|
return {
|
|
285
|
-
applyRawExpression:
|
|
286
|
-
applyRegularity:
|
|
287
|
-
cronExpression:
|
|
288
|
-
hour:
|
|
289
|
-
leadTimeLeft:
|
|
290
|
-
leadTimeRight:
|
|
291
|
-
months:
|
|
292
|
-
pack:
|
|
293
|
-
rawExpression:
|
|
294
|
-
regularity:
|
|
295
|
-
unpack:
|
|
296
|
-
weekdays:
|
|
297
|
-
weeks:
|
|
321
|
+
applyRawExpression: J,
|
|
322
|
+
applyRegularity: O,
|
|
323
|
+
cronExpression: r,
|
|
324
|
+
hour: y,
|
|
325
|
+
leadTimeLeft: P,
|
|
326
|
+
leadTimeRight: T,
|
|
327
|
+
months: c,
|
|
328
|
+
pack: _,
|
|
329
|
+
rawExpression: b,
|
|
330
|
+
regularity: m,
|
|
331
|
+
unpack: I,
|
|
332
|
+
weekdays: h,
|
|
333
|
+
weeks: p
|
|
298
334
|
};
|
|
299
335
|
}
|
|
300
|
-
function
|
|
301
|
-
var
|
|
302
|
-
if (
|
|
303
|
-
return
|
|
304
|
-
let e = `${(
|
|
305
|
-
return
|
|
336
|
+
function _() {
|
|
337
|
+
var l, u, a, x, i, s, n, o;
|
|
338
|
+
if (m.value == "Custom")
|
|
339
|
+
return r.value;
|
|
340
|
+
let e = `${(l = y.value) == null ? void 0 : l.split(".")[1]} ${(u = y.value) == null ? void 0 : u.split(".")[0]}`;
|
|
341
|
+
return m.value == "Yearly" ? (L(C.value) ? e = M(e, (a = C.value) == null ? void 0 : a.toString(), " ") : e = M(e, "*", " "), L(c.value) ? e = M(e, (x = c.value) == null ? void 0 : x.toString(), " ") : e = M(e, "*", " "), e = M(e, "*", " ")) : (L(p.value) ? e = M(e, (i = p.value) == null ? void 0 : i.toString(), " ") : e = M(e, "*", " "), L(c.value) ? e = M(e, (s = c.value) == null ? void 0 : s.toString(), " ") : e = M(e, "*", " "), ((n = h.value) == null ? void 0 : n.length) == 7 ? e = M(e, "*", " ") : e = M(e, (o = h.value) == null ? void 0 : o.toString(), " ")), e = M(e, `${E.value}-${Y.value}`, " "), r.value = e, r.value;
|
|
306
342
|
}
|
|
307
|
-
return
|
|
308
|
-
applyRawExpression:
|
|
309
|
-
applyRegularity:
|
|
310
|
-
cronExpression:
|
|
311
|
-
getRegularityAndOrderAndDeliveryDays:
|
|
312
|
-
hour:
|
|
313
|
-
leadTimeLeft:
|
|
314
|
-
leadTimeRight:
|
|
315
|
-
months:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
343
|
+
return I(v.value ?? v.defaultExpression ?? S()), {
|
|
344
|
+
applyRawExpression: J,
|
|
345
|
+
applyRegularity: O,
|
|
346
|
+
cronExpression: r,
|
|
347
|
+
getRegularityAndOrderAndDeliveryDays: B,
|
|
348
|
+
hour: y,
|
|
349
|
+
leadTimeLeft: P,
|
|
350
|
+
leadTimeRight: T,
|
|
351
|
+
months: c,
|
|
352
|
+
monthdays: C,
|
|
353
|
+
pack: _,
|
|
354
|
+
rawExpression: b,
|
|
355
|
+
regularity: m,
|
|
356
|
+
unpack: I,
|
|
357
|
+
weekdays: h,
|
|
358
|
+
weeks: p
|
|
322
359
|
};
|
|
323
360
|
}
|
|
324
361
|
export {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
362
|
+
ve as getLeadTime,
|
|
363
|
+
w as hourOptions,
|
|
364
|
+
j as monthOptions,
|
|
365
|
+
Z as monthdayOptions,
|
|
366
|
+
ue as regularityOptions,
|
|
367
|
+
se as useCron,
|
|
368
|
+
ae as useCronPredictor,
|
|
369
|
+
U as weekOptions,
|
|
370
|
+
D as weekdayOptions
|
|
333
371
|
};
|
|
@@ -134,6 +134,7 @@ export interface ListProps<T, TSave, TReturn> {
|
|
|
134
134
|
sortDirection?: 'asc' | 'desc' | -1 | 1;
|
|
135
135
|
sortProp?: string | string[];
|
|
136
136
|
startEditing?: boolean;
|
|
137
|
+
startRefreshing?: boolean;
|
|
137
138
|
startShowingInactive?: boolean;
|
|
138
139
|
startShowingSearch?: boolean;
|
|
139
140
|
storeMode?: StoreMode;
|