@feedmepos/mf-hrm-portal 2.3.0-dev.13 → 2.3.0-dev.14
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/{ApprovalCodeList-D3egZFML.js → ApprovalCodeList-C9dauQ81.js} +4 -4
- package/dist/{AuditLogList-BzbaEsSj.js → AuditLogList-zW_N_ECT.js} +17 -18
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-Do52KbKm.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-DJuO1qPX.js} +2 -2
- package/dist/{EmployeeList-BiM8dRwZ.js → EmployeeList-8jkHTd7q.js} +255 -267
- package/dist/{FormItem.vue_vue_type_script_setup_true_lang-CUnlKsxk.js → FormItem.vue_vue_type_script_setup_true_lang-CJc_g0tW.js} +6 -6
- package/dist/{GrantUserList-Dj2ms20E.js → GrantUserList-Dj55GA7O.js} +5 -5
- package/dist/{Main-C2z7Jf9A.js → Main-0TfvGJ4N.js} +5 -5
- package/dist/{Main-DmpwTPaI.js → Main-BQNkTyET.js} +9 -9
- package/dist/{Main-DklZWoKj.js → Main-CuUG6svQ.js} +2 -2
- package/dist/{PermissionSetList-C-qgCcRO.js → PermissionSetList-BsLi-TOK.js} +5 -5
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-ggZB5zWW.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C2l8nWx2.js} +1014 -1014
- package/dist/{RoleList-ohfin77B.js → RoleList-DLDcyVWT.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-diuWysro.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CUXUPfRc.js} +190 -181
- package/dist/{ScheduleGeneralPage-aCljFf21.js → ScheduleGeneralPage-BhYI6O9g.js} +132 -133
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-x_-BYkcc.js → ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js} +669 -646
- package/dist/{SchedulePage-DdMHF6kX.js → SchedulePage-DPU4taJt.js} +7407 -7359
- package/dist/{SchedulePositionPage-CID91orD.js → SchedulePositionPage-Byt6nmUj.js} +82 -84
- package/dist/{SelectFilter-CG13h83-.js → SelectFilter-1fh00OZW.js} +1 -1
- package/dist/{TeamMemberList-DJIKL4dE.js → TeamMemberList-CyUX8Afk.js} +35 -36
- package/dist/{TimesheetList-BPXWPNfT.js → TimesheetList-Q4FeNgOT.js} +52 -53
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DVcV0knM.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-C3iU4Zmc.js} +2 -2
- package/dist/{app-Bz8568j8.js → app-TuHQoM7K.js} +676 -666
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DhSRKSu4.js → dayjs.min-DXnA8GYn.js} +1 -1
- package/dist/{employee-BM44u8b-.js → employee-Ctnil3cD.js} +3 -3
- package/dist/{iteration-BHDxs89d.js → iteration-BxOzv27y.js} +1 -1
- package/dist/{lodash-DgSYLwYD.js → lodash-CKT_RxJs.js} +1 -1
- package/dist/object-Dwyg2LgX.js +16 -0
- package/dist/{role-BMJ7LEHN.js → role-CNEJPyaD.js} +1 -1
- package/dist/{rule-CCo7_ckA.js → rule-FbuHv6Gh.js} +2 -2
- package/dist/src/views/scheduling/composables/onboarding-types.d.ts +2 -1
- package/dist/src/views/scheduling/composables/useScheduleCostRail.d.ts +3 -1
- package/dist/src/views/scheduling/composables/useScheduleOnboardingEmployees.d.ts +2 -0
- package/dist/src/views/scheduling/composables/useScheduleOnboardingWizard.d.ts +3 -1
- package/dist/src/views/scheduling/data.d.ts +17 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useReportPermissions-C_Cd__n1.js → useReportPermissions-lemBrd1S.js} +3 -3
- package/package.json +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ref as w, reactive as W, computed as
|
|
2
|
-
import { useRouter as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { R as
|
|
5
|
-
import { b as v, o as
|
|
6
|
-
import "./iteration-
|
|
7
|
-
import { useCoreStore as
|
|
8
|
-
import "./employee-
|
|
9
|
-
const
|
|
1
|
+
import { ref as w, reactive as W, computed as N, defineComponent as T, createBlock as I, openBlock as p, withCtx as k, createElementVNode as e, createVNode as b, createElementBlock as m, Fragment as L, createTextVNode as H, toDisplayString as h, withDirectives as f, vModelText as g, createCommentVNode as E, renderList as V, onMounted as B, createStaticVNode as z, unref as l, normalizeClass as U } from "vue";
|
|
2
|
+
import { useRouter as Y } from "vue-router";
|
|
3
|
+
import { useSnackbar as q } from "@feedmepos/ui-library";
|
|
4
|
+
import { R as F } from "./app-TuHQoM7K.js";
|
|
5
|
+
import { b as v, o as $, N as A, g as G, as as j, aq as x, au as J, av as K, ad as Q, ar as X } from "./ScheduleModal.vue_vue_type_script_setup_true_lang-BLBLBtNG.js";
|
|
6
|
+
import "./iteration-BxOzv27y.js";
|
|
7
|
+
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
|
8
|
+
import "./employee-Ctnil3cD.js";
|
|
9
|
+
const _ = [
|
|
10
10
|
{ key: "payrates", label: "Pay rates" },
|
|
11
11
|
{ key: "overtime", label: "Overtime" },
|
|
12
12
|
{ key: "workingHours", label: "Working hours" }
|
|
13
13
|
];
|
|
14
|
-
function
|
|
14
|
+
function M() {
|
|
15
15
|
return structuredClone({
|
|
16
16
|
// RULES is reactive, so spreading each rate tier first gives structuredClone plain
|
|
17
17
|
// objects instead of Vue Proxy instances, which structuredClone cannot clone.
|
|
@@ -24,16 +24,16 @@ function $() {
|
|
|
24
24
|
workingHours: { ...v.workingHours }
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
const r =
|
|
27
|
+
function ee() {
|
|
28
|
+
const r = Z(), d = w(!1), a = w("payrates"), n = W(M()), t = w(!1);
|
|
29
29
|
let u = 0;
|
|
30
30
|
async function C() {
|
|
31
|
-
if (
|
|
32
|
-
const c = ++u, o =
|
|
31
|
+
if (!$.value) return;
|
|
32
|
+
const c = ++u, o = $.value;
|
|
33
33
|
t.value = !0;
|
|
34
34
|
try {
|
|
35
35
|
const s = await A.getSettings(o);
|
|
36
|
-
if (c !== u ||
|
|
36
|
+
if (c !== u || $.value !== o) return;
|
|
37
37
|
const i = G(r.currentCountry.value);
|
|
38
38
|
v.payRate = structuredClone(s.settingsConfigured ? s.payRate : i.payRate), v.otCapHours = s.settingsConfigured ? s.overtime.maxHoursPerMonth : i.overtime.maxHoursPerMonth, v.workingHours = s.settingsConfigured ? structuredClone(s.workingHours) : {
|
|
39
39
|
minHoursPerDay: null,
|
|
@@ -45,17 +45,17 @@ function _() {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
function y(c) {
|
|
48
|
-
Object.assign(n,
|
|
48
|
+
Object.assign(n, M()), a.value = c ?? "payrates", d.value = !0;
|
|
49
49
|
}
|
|
50
|
-
const S =
|
|
50
|
+
const S = N(() => JSON.stringify(n) !== JSON.stringify(M()));
|
|
51
51
|
function P() {
|
|
52
52
|
return S.value ? !1 : (d.value = !1, !0);
|
|
53
53
|
}
|
|
54
54
|
function D() {
|
|
55
|
-
Object.assign(n,
|
|
55
|
+
Object.assign(n, M()), d.value = !1;
|
|
56
56
|
}
|
|
57
57
|
async function R() {
|
|
58
|
-
if (
|
|
58
|
+
if (!$.value) throw new Error("No outlet selected");
|
|
59
59
|
const c = n.otCapHours === 0 ? null : n.otCapHours;
|
|
60
60
|
if (c != null && c <= 0)
|
|
61
61
|
throw new Error("Maximum monthly overtime hours must be greater than zero");
|
|
@@ -68,7 +68,7 @@ function _() {
|
|
|
68
68
|
throw new Error("Working-hour limits must be in ascending order");
|
|
69
69
|
if (o.maxHoursPerDay != null && o.maxHoursPerWeek != null && o.maxHoursPerDay > o.maxHoursPerWeek)
|
|
70
70
|
throw new Error("Working-hour limits must be in ascending order");
|
|
71
|
-
const s = await A.saveSettings(
|
|
71
|
+
const s = await A.saveSettings($.value, {
|
|
72
72
|
payRate: n.payRate,
|
|
73
73
|
overtime: { maxHoursPerMonth: c },
|
|
74
74
|
workingHours: o
|
|
@@ -77,13 +77,13 @@ function _() {
|
|
|
77
77
|
}
|
|
78
78
|
return { isOpen: d, activeSection: a, draft: n, dirty: S, loading: t, load: C, open: y, close: P, discard: D, save: R };
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const a = w(!1), n = w(""), t = w(/* @__PURE__ */ new Set()), u = w(!1), C = w(null), y =
|
|
80
|
+
function se(r, d = {}) {
|
|
81
|
+
const a = w(!1), n = w(""), t = w(/* @__PURE__ */ new Set()), u = w(!1), C = w(null), y = N(
|
|
82
82
|
() => {
|
|
83
83
|
var o;
|
|
84
84
|
return ((o = r.options.value.find((s) => s.value === r.outletId.value)) == null ? void 0 : o.label) ?? "";
|
|
85
85
|
}
|
|
86
|
-
), S =
|
|
86
|
+
), S = N(() => {
|
|
87
87
|
const o = n.value.trim().toLowerCase();
|
|
88
88
|
return r.options.value.filter(
|
|
89
89
|
(s) => s.value !== r.outletId.value && (!o || s.label.toLowerCase().includes(o))
|
|
@@ -143,35 +143,35 @@ function ee(r, d = {}) {
|
|
|
143
143
|
confirm: c
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const te = { class: "am-head" }, ae = { class: "ce-body" }, oe = {
|
|
147
147
|
class: "ce-hint",
|
|
148
148
|
style: { "margin-bottom": "var(--fm-spacing-10)" }
|
|
149
|
-
},
|
|
149
|
+
}, le = { class: "sch-search" }, re = { class: "asg-list" }, ne = ["checked", "onChange"], ie = { class: "asg-id" }, ue = { class: "asg-nm" }, de = {
|
|
150
150
|
key: 0,
|
|
151
151
|
class: "asg-empty"
|
|
152
|
-
},
|
|
152
|
+
}, pe = {
|
|
153
153
|
key: 1,
|
|
154
154
|
class: "cg-done"
|
|
155
|
-
},
|
|
155
|
+
}, ve = { class: "cg-st-main" }, me = { class: "am-foot" }, ce = { class: "am-cost-preview" }, ye = { class: "am-foot-btns" }, fe = /* @__PURE__ */ T({
|
|
156
156
|
__name: "ScheduleCloneOutletModal",
|
|
157
157
|
props: {
|
|
158
158
|
modal: {}
|
|
159
159
|
},
|
|
160
160
|
setup(r) {
|
|
161
|
-
return (d, a) => (p(), I(
|
|
161
|
+
return (d, a) => (p(), I(j, {
|
|
162
162
|
open: r.modal.open.value,
|
|
163
163
|
"panel-class": "ce-modal",
|
|
164
164
|
"panel-style": "width: min(460px, 95vw)",
|
|
165
165
|
"labelled-by": "schedule-clone-title",
|
|
166
166
|
onClose: a[5] || (a[5] = (n) => r.modal.close())
|
|
167
167
|
}, {
|
|
168
|
-
default:
|
|
169
|
-
e("div",
|
|
168
|
+
default: k(() => [
|
|
169
|
+
e("div", te, [
|
|
170
170
|
a[7] || (a[7] = e("div", {
|
|
171
171
|
id: "schedule-clone-title",
|
|
172
172
|
class: "am-title"
|
|
173
173
|
}, "Clone outlet setup", -1)),
|
|
174
|
-
|
|
174
|
+
b(x, {
|
|
175
175
|
hierarchy: "ghost",
|
|
176
176
|
size: "xs",
|
|
177
177
|
"icon-only": "",
|
|
@@ -180,7 +180,7 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
180
180
|
"aria-label": "Close",
|
|
181
181
|
onClick: a[0] || (a[0] = (n) => r.modal.close())
|
|
182
182
|
}, {
|
|
183
|
-
default:
|
|
183
|
+
default: k(() => [...a[6] || (a[6] = [
|
|
184
184
|
e("svg", {
|
|
185
185
|
width: "20",
|
|
186
186
|
height: "20",
|
|
@@ -197,14 +197,14 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
197
197
|
_: 1
|
|
198
198
|
})
|
|
199
199
|
]),
|
|
200
|
-
e("div",
|
|
200
|
+
e("div", ae, [
|
|
201
201
|
r.modal.done.value === null ? (p(), m(L, { key: 0 }, [
|
|
202
|
-
e("div",
|
|
202
|
+
e("div", oe, [
|
|
203
203
|
a[8] || (a[8] = H(" Copy ", -1)),
|
|
204
204
|
e("b", null, h(r.modal.sourceLabel.value), 1),
|
|
205
205
|
a[9] || (a[9] = H("'s pay rates to: ", -1))
|
|
206
206
|
]),
|
|
207
|
-
e("div",
|
|
207
|
+
e("div", le, [
|
|
208
208
|
a[10] || (a[10] = e("svg", {
|
|
209
209
|
width: "16",
|
|
210
210
|
height: "16",
|
|
@@ -236,7 +236,7 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
236
236
|
[g, r.modal.query.value]
|
|
237
237
|
])
|
|
238
238
|
]),
|
|
239
|
-
e("div",
|
|
239
|
+
e("div", re, [
|
|
240
240
|
(p(!0), m(L, null, V(r.modal.targets.value, (n) => (p(), m("label", {
|
|
241
241
|
key: n.value,
|
|
242
242
|
class: "asg-row"
|
|
@@ -247,45 +247,45 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
247
247
|
"data-platform": "desktop",
|
|
248
248
|
checked: r.modal.selected.value.has(n.value),
|
|
249
249
|
onChange: (t) => r.modal.toggle(n.value)
|
|
250
|
-
}, null, 40,
|
|
251
|
-
e("span",
|
|
252
|
-
e("span",
|
|
250
|
+
}, null, 40, ne),
|
|
251
|
+
e("span", ie, [
|
|
252
|
+
e("span", ue, h(n.label), 1)
|
|
253
253
|
])
|
|
254
254
|
]))), 128)),
|
|
255
|
-
r.modal.targets.value.length ?
|
|
255
|
+
r.modal.targets.value.length ? E("", !0) : (p(), m("div", de, h(r.modal.query.value ? "No outlet matches that search." : "No other outlets."), 1))
|
|
256
256
|
]),
|
|
257
257
|
a[11] || (a[11] = e("div", {
|
|
258
258
|
class: "ce-hint",
|
|
259
259
|
style: { "margin-top": "var(--fm-spacing-10)" }
|
|
260
260
|
}, " Copies this outlet's pay rates to the outlets you tick. Their current pay rates are replaced. ", -1))
|
|
261
|
-
], 64)) : (p(), m("div",
|
|
261
|
+
], 64)) : (p(), m("div", pe, [
|
|
262
262
|
a[13] || (a[13] = e("span", {
|
|
263
263
|
class: "cg-done-tick",
|
|
264
264
|
"aria-hidden": "true"
|
|
265
265
|
}, "✓", -1)),
|
|
266
|
-
e("div",
|
|
266
|
+
e("div", ve, [
|
|
267
267
|
a[12] || (a[12] = e("b", null, "Pay rates copied", -1)),
|
|
268
268
|
e("small", null, "Sent to " + h(r.modal.done.value) + " outlet" + h(r.modal.done.value === 1 ? "" : "s"), 1)
|
|
269
269
|
])
|
|
270
270
|
]))
|
|
271
271
|
]),
|
|
272
|
-
e("div",
|
|
273
|
-
e("div",
|
|
274
|
-
e("div",
|
|
272
|
+
e("div", me, [
|
|
273
|
+
e("div", ce, h(r.modal.done.value === null && r.modal.selected.value.size ? `${r.modal.selected.value.size} outlet${r.modal.selected.value.size === 1 ? "" : "s"} selected` : ""), 1),
|
|
274
|
+
e("div", ye, [
|
|
275
275
|
r.modal.done.value === null ? (p(), m(L, { key: 0 }, [
|
|
276
|
-
|
|
276
|
+
b(x, {
|
|
277
277
|
hierarchy: "secondary",
|
|
278
278
|
size: "sm",
|
|
279
279
|
class: "am-btn am-btn-sec",
|
|
280
280
|
type: "button",
|
|
281
281
|
onClick: a[2] || (a[2] = (n) => r.modal.close())
|
|
282
282
|
}, {
|
|
283
|
-
default:
|
|
283
|
+
default: k(() => [...a[14] || (a[14] = [
|
|
284
284
|
H(" Cancel ", -1)
|
|
285
285
|
])]),
|
|
286
286
|
_: 1
|
|
287
287
|
}),
|
|
288
|
-
|
|
288
|
+
b(x, {
|
|
289
289
|
hierarchy: "primary",
|
|
290
290
|
size: "sm",
|
|
291
291
|
class: "am-btn am-btn-primary",
|
|
@@ -293,7 +293,7 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
293
293
|
disabled: !r.modal.selected.value.size || r.modal.saving.value,
|
|
294
294
|
onClick: a[3] || (a[3] = (n) => r.modal.confirm())
|
|
295
295
|
}, {
|
|
296
|
-
default:
|
|
296
|
+
default: k(() => [
|
|
297
297
|
H(h(r.modal.saving.value ? "Copying…" : "Copy setup"), 1)
|
|
298
298
|
]),
|
|
299
299
|
_: 1
|
|
@@ -306,7 +306,7 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
306
306
|
type: "button",
|
|
307
307
|
onClick: a[4] || (a[4] = (n) => r.modal.close())
|
|
308
308
|
}, {
|
|
309
|
-
default:
|
|
309
|
+
default: k(() => [...a[15] || (a[15] = [
|
|
310
310
|
H(" Done ", -1)
|
|
311
311
|
])]),
|
|
312
312
|
_: 1
|
|
@@ -317,40 +317,40 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
317
317
|
_: 1
|
|
318
318
|
}, 8, ["open"]));
|
|
319
319
|
}
|
|
320
|
-
}),
|
|
320
|
+
}), ge = { class: "main" }, he = {
|
|
321
321
|
id: "viewSettings",
|
|
322
322
|
class: "view"
|
|
323
|
-
},
|
|
323
|
+
}, we = { class: "sp-head" }, be = { class: "outlet-bar" }, ke = { class: "sp-body" }, He = { class: "sp-tabs" }, Ce = ["onClick"], xe = { class: "sp-content" }, Se = { class: "sp-panel" }, Pe = {
|
|
324
324
|
key: 0,
|
|
325
325
|
id: "sp-payrates",
|
|
326
326
|
class: "sp-sec"
|
|
327
|
-
},
|
|
327
|
+
}, De = { class: "sp-card" }, Re = { class: "sp-row" }, Oe = { class: "sp-field" }, $e = { class: "sp-row" }, Me = { class: "sp-field" }, Le = { class: "sp-row" }, Ne = { class: "sp-field" }, Ee = { class: "sp-card" }, Ae = { class: "sp-row" }, Ie = { class: "sp-field" }, Ue = { class: "sp-row" }, Te = { class: "sp-field" }, Ve = {
|
|
328
328
|
key: 1,
|
|
329
329
|
id: "sp-working-hours",
|
|
330
330
|
class: "sp-sec"
|
|
331
|
-
},
|
|
331
|
+
}, We = { class: "sp-card" }, Be = { class: "sp-row" }, ze = { class: "sp-field" }, Ye = { class: "sp-row" }, qe = { class: "sp-field" }, Fe = { class: "sp-row" }, Ge = { class: "sp-field" }, je = {
|
|
332
332
|
key: 2,
|
|
333
333
|
id: "sp-overtime",
|
|
334
334
|
class: "sp-sec"
|
|
335
|
-
},
|
|
335
|
+
}, Je = { class: "sp-card" }, Ke = { class: "sp-row" }, Qe = { class: "sp-save-txt" }, Xe = { key: 0 }, rs = /* @__PURE__ */ T({
|
|
336
336
|
__name: "ScheduleGeneralPage",
|
|
337
337
|
setup(r) {
|
|
338
338
|
const d = w(null);
|
|
339
|
-
|
|
340
|
-
const a =
|
|
339
|
+
J(d);
|
|
340
|
+
const a = Y(), n = q(), t = ee(), u = K(), C = se(u, {
|
|
341
341
|
notify: (o, s) => n.open({ message: o, type: s })
|
|
342
342
|
}), y = w(!1);
|
|
343
343
|
B(async () => {
|
|
344
|
-
await u.resolve() && await
|
|
344
|
+
await u.resolve() && await Q(/* @__PURE__ */ new Date()), await t.load(), t.open();
|
|
345
345
|
});
|
|
346
|
-
const S =
|
|
346
|
+
const S = N(
|
|
347
347
|
() => u.options.value.length ? u.options.value : [{ value: "", label: "No outlet selected", disabled: !0 }]
|
|
348
348
|
);
|
|
349
349
|
async function P(o) {
|
|
350
350
|
t.dirty.value || await u.switchTo(o, /* @__PURE__ */ new Date()) && (await t.load(), t.open());
|
|
351
351
|
}
|
|
352
352
|
function D() {
|
|
353
|
-
t.close() && a.push({ name:
|
|
353
|
+
t.close() && a.push({ name: F.SCHEDULE });
|
|
354
354
|
}
|
|
355
355
|
function R() {
|
|
356
356
|
if (!y.value) {
|
|
@@ -374,17 +374,17 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
374
374
|
ref: d,
|
|
375
375
|
class: "sch"
|
|
376
376
|
}, [
|
|
377
|
-
e("div",
|
|
378
|
-
e("div",
|
|
379
|
-
e("div",
|
|
380
|
-
|
|
377
|
+
e("div", ge, [
|
|
378
|
+
e("div", he, [
|
|
379
|
+
e("div", we, [
|
|
380
|
+
b(x, {
|
|
381
381
|
hierarchy: "ghost",
|
|
382
382
|
size: "sm",
|
|
383
383
|
class: "sp-back",
|
|
384
384
|
type: "button",
|
|
385
385
|
onClick: D
|
|
386
386
|
}, {
|
|
387
|
-
default:
|
|
387
|
+
default: k(() => [...s[12] || (s[12] = [
|
|
388
388
|
e("svg", {
|
|
389
389
|
width: "12",
|
|
390
390
|
height: "12",
|
|
@@ -404,11 +404,10 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
404
404
|
])]),
|
|
405
405
|
_: 1
|
|
406
406
|
}),
|
|
407
|
-
s[15] || (s[15] =
|
|
408
|
-
|
|
409
|
-
e("div", we, [
|
|
407
|
+
s[15] || (s[15] = z('<div class="sp-title-row"><div class="sp-title">General Settings</div><span class="page-tags"><span class="sch-badge page-tag-premium" data-color="brand">Premium</span><span class="sch-badge" data-color="info">Free until 31 Dec 2026</span></span></div><div class="sp-sub">Pay multipliers and overtime limit for this outlet.</div>', 2)),
|
|
408
|
+
e("div", be, [
|
|
410
409
|
s[14] || (s[14] = e("span", { class: "outlet-bar-lbl" }, "Outlet", -1)),
|
|
411
|
-
|
|
410
|
+
b(X, {
|
|
412
411
|
class: "outlet-sel",
|
|
413
412
|
"aria-label": "Outlet being configured",
|
|
414
413
|
searchable: "",
|
|
@@ -418,7 +417,7 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
418
417
|
options: S.value,
|
|
419
418
|
"onUpdate:modelValue": P
|
|
420
419
|
}, null, 8, ["disabled", "title", "model-value", "options"]),
|
|
421
|
-
|
|
420
|
+
b(x, {
|
|
422
421
|
hierarchy: "secondary",
|
|
423
422
|
size: "sm",
|
|
424
423
|
class: "outlet-clone",
|
|
@@ -427,7 +426,7 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
427
426
|
title: l(t).dirty.value ? "Save or discard changes before cloning" : "Copy this outlet's pay rates to other outlets",
|
|
428
427
|
onClick: s[0] || (s[0] = (i) => l(C).openModal())
|
|
429
428
|
}, {
|
|
430
|
-
default:
|
|
429
|
+
default: k(() => [...s[13] || (s[13] = [
|
|
431
430
|
e("svg", {
|
|
432
431
|
width: "12",
|
|
433
432
|
height: "12",
|
|
@@ -458,33 +457,33 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
458
457
|
])
|
|
459
458
|
]),
|
|
460
459
|
e("div", ke, [
|
|
461
|
-
e("nav",
|
|
462
|
-
(p(!0), m(L, null, V(l(
|
|
460
|
+
e("nav", He, [
|
|
461
|
+
(p(!0), m(L, null, V(l(_), (i) => (p(), m("button", {
|
|
463
462
|
key: i.key,
|
|
464
463
|
type: "button",
|
|
465
464
|
class: U(["sch-tab sp-tab", { active: l(t).activeSection.value === i.key }]),
|
|
466
465
|
"data-active": "false",
|
|
467
466
|
onClick: (O) => l(t).activeSection.value = i.key
|
|
468
|
-
}, h(i.label), 11,
|
|
467
|
+
}, h(i.label), 11, Ce))), 128))
|
|
469
468
|
]),
|
|
470
|
-
e("div",
|
|
471
|
-
e("div",
|
|
472
|
-
l(t).activeSection.value === "payrates" ? (p(), m("section",
|
|
473
|
-
s[
|
|
469
|
+
e("div", xe, [
|
|
470
|
+
e("div", Se, [
|
|
471
|
+
l(t).activeSection.value === "payrates" ? (p(), m("section", Pe, [
|
|
472
|
+
s[28] || (s[28] = e("div", { class: "sp-sec-head" }, [
|
|
474
473
|
e("div", { class: "sp-panel-title" }, "Pay rates")
|
|
475
474
|
], -1)),
|
|
476
|
-
s[
|
|
477
|
-
e("div",
|
|
478
|
-
s[
|
|
475
|
+
s[29] || (s[29] = e("div", { class: "sp-panel-desc" }, "Pay multipliers by kind of day.", -1)),
|
|
476
|
+
e("div", De, [
|
|
477
|
+
s[22] || (s[22] = e("div", { class: "sp-card-head" }, [
|
|
479
478
|
e("div", { class: "sp-card-title" }, "Overtime rate"),
|
|
480
479
|
e("div", { class: "sp-card-note" }, "Multiplier on every OT hour")
|
|
481
480
|
], -1)),
|
|
482
|
-
e("div",
|
|
483
|
-
s[
|
|
481
|
+
e("div", Re, [
|
|
482
|
+
s[17] || (s[17] = e("div", { class: "sp-row-main" }, [
|
|
484
483
|
e("div", { class: "sp-row-label" }, "Normal operations day"),
|
|
485
484
|
e("div", { class: "sp-row-hint" }, " Multiplier on their rate for hours past the weekly contract. ")
|
|
486
485
|
], -1)),
|
|
487
|
-
e("div",
|
|
486
|
+
e("div", Oe, [
|
|
488
487
|
f(e("input", {
|
|
489
488
|
"onUpdate:modelValue": s[1] || (s[1] = (i) => l(t).draft.payRate.NORMAL.overtime = i),
|
|
490
489
|
class: "sch-input sp-num",
|
|
@@ -501,11 +500,11 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
501
500
|
{ number: !0 }
|
|
502
501
|
]
|
|
503
502
|
]),
|
|
504
|
-
s[
|
|
503
|
+
s[16] || (s[16] = e("span", { class: "sp-unit" }, "×", -1))
|
|
505
504
|
])
|
|
506
505
|
]),
|
|
507
|
-
e("div",
|
|
508
|
-
s[
|
|
506
|
+
e("div", $e, [
|
|
507
|
+
s[19] || (s[19] = e("div", { class: "sp-row-main" }, [
|
|
509
508
|
e("div", { class: "sp-row-label" }, "Off day"),
|
|
510
509
|
e("div", { class: "sp-row-hint" }, " For a shift on the person's off day, weekly or booked. Check the rate with HR. ")
|
|
511
510
|
], -1)),
|
|
@@ -526,15 +525,15 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
526
525
|
{ number: !0 }
|
|
527
526
|
]
|
|
528
527
|
]),
|
|
529
|
-
s[
|
|
528
|
+
s[18] || (s[18] = e("span", { class: "sp-unit" }, "×", -1))
|
|
530
529
|
])
|
|
531
530
|
]),
|
|
532
|
-
e("div",
|
|
533
|
-
s[
|
|
531
|
+
e("div", Le, [
|
|
532
|
+
s[21] || (s[21] = e("div", { class: "sp-row-main" }, [
|
|
534
533
|
e("div", { class: "sp-row-label" }, "Public holiday"),
|
|
535
534
|
e("div", { class: "sp-row-hint" }, " For dates on the holiday calendar. Wins over an off day on the same date. ")
|
|
536
535
|
], -1)),
|
|
537
|
-
e("div",
|
|
536
|
+
e("div", Ne, [
|
|
538
537
|
f(e("input", {
|
|
539
538
|
"onUpdate:modelValue": s[3] || (s[3] = (i) => l(t).draft.payRate.PUBLIC_HOLIDAY.overtime = i),
|
|
540
539
|
class: "sch-input sp-num",
|
|
@@ -551,21 +550,21 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
551
550
|
{ number: !0 }
|
|
552
551
|
]
|
|
553
552
|
]),
|
|
554
|
-
s[
|
|
553
|
+
s[20] || (s[20] = e("span", { class: "sp-unit" }, "×", -1))
|
|
555
554
|
])
|
|
556
555
|
])
|
|
557
556
|
]),
|
|
558
557
|
e("div", Ee, [
|
|
559
|
-
s[
|
|
558
|
+
s[27] || (s[27] = e("div", { class: "sp-card-head" }, [
|
|
560
559
|
e("div", { class: "sp-card-title" }, "Regular rate"),
|
|
561
560
|
e("div", { class: "sp-card-note" }, "Multiplier on ordinary hours")
|
|
562
561
|
], -1)),
|
|
563
|
-
e("div",
|
|
564
|
-
s[
|
|
562
|
+
e("div", Ae, [
|
|
563
|
+
s[24] || (s[24] = e("div", { class: "sp-row-main" }, [
|
|
565
564
|
e("div", { class: "sp-row-label" }, "Off day"),
|
|
566
565
|
e("div", { class: "sp-row-hint" }, "Ordinary hours worked on the person's off day.")
|
|
567
566
|
], -1)),
|
|
568
|
-
e("div",
|
|
567
|
+
e("div", Ie, [
|
|
569
568
|
f(e("input", {
|
|
570
569
|
"onUpdate:modelValue": s[4] || (s[4] = (i) => l(t).draft.payRate.REST_DAY.regular = i),
|
|
571
570
|
class: "sch-input sp-num",
|
|
@@ -582,15 +581,15 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
582
581
|
{ number: !0 }
|
|
583
582
|
]
|
|
584
583
|
]),
|
|
585
|
-
s[
|
|
584
|
+
s[23] || (s[23] = e("span", { class: "sp-unit" }, "×", -1))
|
|
586
585
|
])
|
|
587
586
|
]),
|
|
588
|
-
e("div",
|
|
589
|
-
s[
|
|
587
|
+
e("div", Ue, [
|
|
588
|
+
s[26] || (s[26] = e("div", { class: "sp-row-main" }, [
|
|
590
589
|
e("div", { class: "sp-row-label" }, "Public holiday"),
|
|
591
590
|
e("div", { class: "sp-row-hint" }, " Ordinary hours worked on a date on the holiday calendar. ")
|
|
592
591
|
], -1)),
|
|
593
|
-
e("div",
|
|
592
|
+
e("div", Te, [
|
|
594
593
|
f(e("input", {
|
|
595
594
|
"onUpdate:modelValue": s[5] || (s[5] = (i) => l(t).draft.payRate.PUBLIC_HOLIDAY.regular = i),
|
|
596
595
|
class: "sch-input sp-num",
|
|
@@ -607,25 +606,25 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
607
606
|
{ number: !0 }
|
|
608
607
|
]
|
|
609
608
|
]),
|
|
610
|
-
s[
|
|
609
|
+
s[25] || (s[25] = e("span", { class: "sp-unit" }, "×", -1))
|
|
611
610
|
])
|
|
612
611
|
])
|
|
613
612
|
])
|
|
614
|
-
])) : l(t).activeSection.value === "workingHours" ? (p(), m("section",
|
|
615
|
-
s[
|
|
613
|
+
])) : l(t).activeSection.value === "workingHours" ? (p(), m("section", Ve, [
|
|
614
|
+
s[37] || (s[37] = e("div", { class: "sp-sec-head" }, [
|
|
616
615
|
e("div", { class: "sp-panel-title" }, "Working hours")
|
|
617
616
|
], -1)),
|
|
618
|
-
s[
|
|
619
|
-
e("div",
|
|
620
|
-
s[
|
|
617
|
+
s[38] || (s[38] = e("div", { class: "sp-panel-desc" }, "Default employee working-hour limits when no individual setting is provided.", -1)),
|
|
618
|
+
e("div", We, [
|
|
619
|
+
s[36] || (s[36] = e("div", { class: "sp-card-head" }, [
|
|
621
620
|
e("div", { class: "sp-card-title" }, "Default working hours"),
|
|
622
621
|
e("div", { class: "sp-card-note" }, "Used as the employee default")
|
|
623
622
|
], -1)),
|
|
624
|
-
e("div",
|
|
625
|
-
s[
|
|
623
|
+
e("div", Be, [
|
|
624
|
+
s[31] || (s[31] = e("div", { class: "sp-row-main" }, [
|
|
626
625
|
e("div", { class: "sp-row-label" }, "Min hours per day")
|
|
627
626
|
], -1)),
|
|
628
|
-
e("div",
|
|
627
|
+
e("div", ze, [
|
|
629
628
|
f(e("input", {
|
|
630
629
|
"onUpdate:modelValue": s[6] || (s[6] = (i) => l(t).draft.workingHours.minHoursPerDay = i),
|
|
631
630
|
class: "sch-input sp-num",
|
|
@@ -643,14 +642,14 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
643
642
|
{ number: !0 }
|
|
644
643
|
]
|
|
645
644
|
]),
|
|
646
|
-
s[
|
|
645
|
+
s[30] || (s[30] = e("span", { class: "sp-unit" }, "hours / day", -1))
|
|
647
646
|
])
|
|
648
647
|
]),
|
|
649
|
-
e("div",
|
|
650
|
-
s[
|
|
648
|
+
e("div", Ye, [
|
|
649
|
+
s[33] || (s[33] = e("div", { class: "sp-row-main" }, [
|
|
651
650
|
e("div", { class: "sp-row-label" }, "Max hours per day")
|
|
652
651
|
], -1)),
|
|
653
|
-
e("div",
|
|
652
|
+
e("div", qe, [
|
|
654
653
|
f(e("input", {
|
|
655
654
|
"onUpdate:modelValue": s[7] || (s[7] = (i) => l(t).draft.workingHours.maxHoursPerDay = i),
|
|
656
655
|
class: "sch-input sp-num",
|
|
@@ -668,11 +667,11 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
668
667
|
{ number: !0 }
|
|
669
668
|
]
|
|
670
669
|
]),
|
|
671
|
-
s[
|
|
670
|
+
s[32] || (s[32] = e("span", { class: "sp-unit" }, "hours / day", -1))
|
|
672
671
|
])
|
|
673
672
|
]),
|
|
674
|
-
e("div",
|
|
675
|
-
s[
|
|
673
|
+
e("div", Fe, [
|
|
674
|
+
s[35] || (s[35] = e("div", { class: "sp-row-main" }, [
|
|
676
675
|
e("div", { class: "sp-row-label" }, "Max hours per week")
|
|
677
676
|
], -1)),
|
|
678
677
|
e("div", Ge, [
|
|
@@ -693,22 +692,22 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
693
692
|
{ number: !0 }
|
|
694
693
|
]
|
|
695
694
|
]),
|
|
696
|
-
s[
|
|
695
|
+
s[34] || (s[34] = e("span", { class: "sp-unit" }, "hours / week", -1))
|
|
697
696
|
])
|
|
698
697
|
])
|
|
699
698
|
])
|
|
700
|
-
])) : l(t).activeSection.value === "overtime" ? (p(), m("section",
|
|
701
|
-
s[
|
|
699
|
+
])) : l(t).activeSection.value === "overtime" ? (p(), m("section", je, [
|
|
700
|
+
s[41] || (s[41] = e("div", { class: "sp-sec-head" }, [
|
|
702
701
|
e("div", { class: "sp-panel-title" }, "Overtime")
|
|
703
702
|
], -1)),
|
|
704
|
-
s[
|
|
705
|
-
e("div",
|
|
706
|
-
s[
|
|
703
|
+
s[42] || (s[42] = e("div", { class: "sp-panel-desc" }, "The monthly statutory cap on overtime hours.", -1)),
|
|
704
|
+
e("div", Je, [
|
|
705
|
+
s[40] || (s[40] = e("div", { class: "sp-card-head" }, [
|
|
707
706
|
e("div", { class: "sp-card-title" }, "Maximum OT Hours"),
|
|
708
707
|
e("div", { class: "sp-card-note" }, "Enforced")
|
|
709
708
|
], -1)),
|
|
710
|
-
e("div",
|
|
711
|
-
s[
|
|
709
|
+
e("div", Ke, [
|
|
710
|
+
s[39] || (s[39] = e("div", { class: "sp-row-main" }, [
|
|
712
711
|
e("div", { class: "sp-row-label" }, "Monthly OT cap"),
|
|
713
712
|
e("div", { class: "sp-row-hint" }, " Hours per person per month. Auto-Schedule never exceeds it. ")
|
|
714
713
|
], -1)),
|
|
@@ -731,36 +730,36 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
731
730
|
])
|
|
732
731
|
])
|
|
733
732
|
])
|
|
734
|
-
])) :
|
|
733
|
+
])) : E("", !0)
|
|
735
734
|
])
|
|
736
735
|
]),
|
|
737
736
|
e("div", {
|
|
738
737
|
class: U(["sp-save", { dirty: l(t).dirty.value, arming: y.value }])
|
|
739
738
|
}, [
|
|
740
|
-
e("div",
|
|
739
|
+
e("div", Qe, [
|
|
741
740
|
H(h(y.value ? "Discard unsaved changes?" : "Unsaved changes") + " ", 1),
|
|
742
|
-
y.value ?
|
|
741
|
+
y.value ? E("", !0) : (p(), m("span", Xe, "— save or discard before leaving."))
|
|
743
742
|
]),
|
|
744
|
-
|
|
743
|
+
b(x, {
|
|
745
744
|
hierarchy: "secondary",
|
|
746
745
|
size: "sm",
|
|
747
746
|
class: "am-btn am-btn-sec",
|
|
748
747
|
type: "button",
|
|
749
748
|
onClick: s[10] || (s[10] = (i) => R())
|
|
750
749
|
}, {
|
|
751
|
-
default:
|
|
750
|
+
default: k(() => [
|
|
752
751
|
H(h(y.value ? "Confirm discard" : "Discard"), 1)
|
|
753
752
|
]),
|
|
754
753
|
_: 1
|
|
755
754
|
}),
|
|
756
|
-
|
|
755
|
+
b(x, {
|
|
757
756
|
hierarchy: "primary",
|
|
758
757
|
size: "sm",
|
|
759
758
|
class: "am-btn am-btn-primary",
|
|
760
759
|
type: "button",
|
|
761
760
|
onClick: s[11] || (s[11] = (i) => c())
|
|
762
761
|
}, {
|
|
763
|
-
default:
|
|
762
|
+
default: k(() => [...s[43] || (s[43] = [
|
|
764
763
|
H(" Save changes ", -1)
|
|
765
764
|
])]),
|
|
766
765
|
_: 1
|
|
@@ -769,10 +768,10 @@ const se = { class: "am-head" }, te = { class: "ce-body" }, ae = {
|
|
|
769
768
|
])
|
|
770
769
|
])
|
|
771
770
|
]),
|
|
772
|
-
|
|
771
|
+
b(fe, { modal: l(C) }, null, 8, ["modal"])
|
|
773
772
|
], 512));
|
|
774
773
|
}
|
|
775
774
|
});
|
|
776
775
|
export {
|
|
777
|
-
|
|
776
|
+
rs as default
|
|
778
777
|
};
|