@feedmepos/mf-hrm-portal 2.3.3-dev → 2.3.4-dev
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-D8ZVkmrF.js → ApprovalCodeList-C_F98cwM.js} +5 -5
- package/dist/{AuditLogList-Fby1fcGU.js → AuditLogList-CRQjG28b.js} +3 -3
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-B1uS6T3r.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BA4pgKNh.js} +2 -2
- package/dist/{EmployeeList-DY2Y-FtT.js → EmployeeList-DurHeTfl.js} +6 -6
- package/dist/{GrantUserList-RK38DjjY.js → GrantUserList-BZGwZLsp.js} +6 -6
- package/dist/{Main-424HHE7m.js → Main-CvVhcEJ-.js} +5 -5
- package/dist/{Main-BuJe2QNl.js → Main-DZ_LJKco.js} +10 -10
- package/dist/{Main-Pv9x678t.js → Main-iG516Bly.js} +11 -11
- package/dist/{MyPosProfile-Rc2ZTeQR.js → MyPosProfile-C8iBUFAt.js} +1 -1
- package/dist/{PermissionSetList-BT1oUm8M.js → PermissionSetList-COn_Nrzd.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BRrhFF3y.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-C1k42T7U.js} +870 -870
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-DAbgu49T.js +1831 -0
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-DS4eMJ6w.js → RoleForm.vue_vue_type_script_setup_true_lang-CoWKz1qm.js} +9 -9
- package/dist/{RoleList-CrLxn4_K.js → RoleList-C5f_ulk9.js} +7 -7
- package/dist/{TeamMemberList-D32ZtSLP.js → TeamMemberList-DCSbXFdg.js} +530 -505
- package/dist/{TimesheetList-ByUp0yfA.js → TimesheetList-DoNzT6xQ.js} +7 -7
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-9x0jnL2P.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-n8cnb0Zw.js} +3 -3
- package/dist/{app-BsAwRWj0.js → app-BYPvZve5.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/{approval-code-BUuYtJAO.js → approval-code-CeijALXj.js} +1 -1
- package/dist/{dayjs.min-C9xnIrg1.js → dayjs.min-CS0wjvq4.js} +1 -1
- package/dist/{employee-DAwBQ0bc.js → employee-DH4Wibqh.js} +5 -5
- package/dist/{grant-user-D-PdX5g-.js → grant-user-C0ko4LW8.js} +1 -1
- package/dist/{iteration-Dat4Ismm.js → iteration-Cnj0KTDr.js} +1 -1
- package/dist/{lodash-DjYVoggD.js → lodash-DAd2V4v-.js} +1 -1
- package/dist/{member-grant-CQHFGo-k.js → member-grant-BaABegLK.js} +2 -2
- package/dist/{restaurant-dbllb9m8.js → restaurant-CNsV-2OE.js} +1 -1
- package/dist/{role-DN-jiQnS.js → role-DSu9cpI6.js} +3 -3
- package/dist/{rule-Bgcb9R7I.js → rule-BmRzz26L.js} +3 -3
- package/dist/src/api/sso-provider/index.d.ts +5 -0
- package/dist/src/api/staff-invite/index.d.ts +1 -2
- package/dist/src/composables/useSsoProviders.d.ts +19 -0
- package/dist/src/composables/useStaffInviteProviders.d.ts +1 -12
- package/dist/src/helpers/staff-invite.d.ts +3 -0
- package/dist/src/types/sso-provider.d.ts +10 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BABlZnfR.js → useAppStore-BL4Iv-0s.js} +1 -1
- package/dist/{useLoading-B47q5dVg.js → useLoading-BEIlprgm.js} +1 -1
- package/dist/{useReportPermissions-D-nbQAm5.js → useReportPermissions-BhiSxQCh.js} +3 -3
- package/package.json +1 -1
- package/dist/PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-CD3d4RX6.js +0 -1840
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ref as d, computed as g, defineComponent as pe, onMounted as fe, watch as Z, resolveComponent as u, createElementBlock as P, openBlock as E, Fragment as ee, createVNode as l, createElementVNode as i, unref as n, withCtx as b, createCommentVNode as ve, toDisplayString as O, createTextVNode as he, isRef as ge, renderList as we, createBlock as te, nextTick as ye } from "vue";
|
|
2
|
-
import { d as v } from "./dayjs.min-
|
|
2
|
+
import { d as v } from "./dayjs.min-CS0wjvq4.js";
|
|
3
3
|
import { useI18n as _e } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as be, components as xe } from "@feedmepos/ui-library";
|
|
5
5
|
import { S as De, _ as Se } from "./SelectFilter-ATOm0hdn.js";
|
|
6
|
-
import { _ as Ve } from "./app-
|
|
6
|
+
import { _ as Ve } from "./app-BYPvZve5.js";
|
|
7
7
|
import { _ as ke } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
8
|
-
import { u as Ce } from "./useLoading-
|
|
9
|
-
import { g as Fe, s as Ye } from "./iteration-
|
|
8
|
+
import { u as Ce } from "./useLoading-BEIlprgm.js";
|
|
9
|
+
import { g as Fe, s as Ye } from "./iteration-Cnj0KTDr.js";
|
|
10
10
|
import { f as Le } from "./utils-BZkjJbju.js";
|
|
11
11
|
import { n as Me } from "./string-DZQ1uNjn.js";
|
|
12
|
-
import { u as Te } from "./employee-
|
|
13
|
-
import { u as Ie } from "./restaurant-
|
|
14
|
-
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
12
|
+
import { u as Te } from "./employee-DH4Wibqh.js";
|
|
13
|
+
import { u as Ie } from "./restaurant-CNsV-2OE.js";
|
|
14
|
+
import { u as Re } from "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-n8cnb0Zw.js";
|
|
15
15
|
function $e(x, a) {
|
|
16
16
|
return ["years", "months"].find((S) => {
|
|
17
17
|
const V = x.startOf(S), p = x.endOf(S);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-CS0wjvq4.js";
|
|
2
2
|
import { defineStore as p, storeToRefs as T } from "pinia";
|
|
3
3
|
import { ref as l } from "vue";
|
|
4
|
-
import { b as c, g as y } from "./app-
|
|
5
|
-
import { s as S } from "./iteration-
|
|
4
|
+
import { b as c, g as y } from "./app-BYPvZve5.js";
|
|
5
|
+
import { s as S } from "./iteration-Cnj0KTDr.js";
|
|
6
6
|
import { i as f, f as g } from "./utils-BZkjJbju.js";
|
|
7
7
|
const u = {
|
|
8
8
|
async readTimesheets(t, e) {
|
|
@@ -11950,14 +11950,14 @@ const rn = (e) => ({
|
|
|
11950
11950
|
}
|
|
11951
11951
|
]
|
|
11952
11952
|
}
|
|
11953
|
-
}), Zm = Rt(Tn(Ge(() => import("./Main-
|
|
11954
|
-
Tn(Ge(() => import("./AuditLogList-
|
|
11953
|
+
}), Zm = Rt(Tn(Ge(() => import("./Main-iG516Bly.js")))), zm = Rt(Tn(Ge(() => import("./Main-DZ_LJKco.js")))), Wm = Rt(
|
|
11954
|
+
Tn(Ge(() => import("./AuditLogList-CRQjG28b.js")))
|
|
11955
11955
|
), Lm = Rt(
|
|
11956
|
-
Tn(Ge(() => import("./Main-
|
|
11956
|
+
Tn(Ge(() => import("./Main-CvVhcEJ-.js")))
|
|
11957
11957
|
), Km = Rt(
|
|
11958
|
-
Ge(() => import("./MyPosProfile-
|
|
11959
|
-
), Jm = Ge(() => import("./ApprovalCodeList-
|
|
11960
|
-
() => import("./PermissionSetList-
|
|
11958
|
+
Ge(() => import("./MyPosProfile-C8iBUFAt.js"))
|
|
11959
|
+
), Jm = Ge(() => import("./ApprovalCodeList-C_F98cwM.js")), _m = Ge(() => import("./GrantUserList-BZGwZLsp.js")), $m = Ge(() => import("./EmployeeList-DurHeTfl.js")), eA = Ge(() => import("./RoleList-C5f_ulk9.js")), tA = Ge(() => import("./TimesheetList-DoNzT6xQ.js")), nA = Ge(() => import("./TeamMemberList-DCSbXFdg.js")), sA = Ge(
|
|
11960
|
+
() => import("./PermissionSetList-COn_Nrzd.js")
|
|
11961
11961
|
), _A = [
|
|
11962
11962
|
// Landing: waits for menu access, then opens the first page the user can open.
|
|
11963
11963
|
// Declared before the Employee parent (same path) so it wins the exact '/' match.
|
|
@@ -13038,7 +13038,7 @@ const $A = /* @__PURE__ */ vt({
|
|
|
13038
13038
|
};
|
|
13039
13039
|
}
|
|
13040
13040
|
});
|
|
13041
|
-
var As = { name: "@feedmepos/mf-hrm-portal", version: "2.3.
|
|
13041
|
+
var As = { name: "@feedmepos/mf-hrm-portal", version: "2.3.4-dev", mode: "fmmf" };
|
|
13042
13042
|
console.log(
|
|
13043
13043
|
`%c${As.name}%c v${As.version} %c${As.mode}`,
|
|
13044
13044
|
"background:#1f1f1f;color:#fff;padding:2px 6px;border-radius:3px 0 0 3px",
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as C } from "pinia";
|
|
2
2
|
import { ref as l } from "vue";
|
|
3
|
-
import { g as p, b as s } from "./app-
|
|
3
|
+
import { g as p, b as s } from "./app-BYPvZve5.js";
|
|
4
4
|
const n = {
|
|
5
5
|
async getApprovalCodes() {
|
|
6
6
|
return p(await s("approval-codes").get(""));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { d as g } from "./dayjs.min-
|
|
1
|
+
import { d as g } from "./dayjs.min-CS0wjvq4.js";
|
|
2
2
|
import { defineStore as $, storeToRefs as x } from "pinia";
|
|
3
3
|
import { ref as m } from "vue";
|
|
4
|
-
import { s as E } from "./iteration-
|
|
5
|
-
import { b as l, g as f } from "./app-
|
|
4
|
+
import { s as E } from "./iteration-Cnj0KTDr.js";
|
|
5
|
+
import { b as l, g as f } from "./app-BYPvZve5.js";
|
|
6
6
|
import { i as v } from "./utils-BZkjJbju.js";
|
|
7
|
-
import { u as _ } from "./role-
|
|
8
|
-
import { u as I } from "./restaurant-
|
|
7
|
+
import { u as _ } from "./role-DSu9cpI6.js";
|
|
8
|
+
import { u as I } from "./restaurant-CNsV-2OE.js";
|
|
9
9
|
const o = {
|
|
10
10
|
async readEmployees() {
|
|
11
11
|
return f(await l().get("/pos-users"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as f } from "pinia";
|
|
2
2
|
import { ref as u } from "vue";
|
|
3
|
-
import { g as s, e as v, b as o } from "./app-
|
|
3
|
+
import { g as s, e as v, b as o } from "./app-BYPvZve5.js";
|
|
4
4
|
const c = {
|
|
5
5
|
async getGrantUsers() {
|
|
6
6
|
return s(await o("grant").get(""));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as B } from "./app-
|
|
1
|
+
import { j as B } from "./app-BYPvZve5.js";
|
|
2
2
|
var ma = {}, Zt = {}, l = {}, ji = {}, Ei = {}, Ii = {}, Dn = {};
|
|
3
3
|
(function(e) {
|
|
4
4
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getParsedType = e.ZodParsedType = e.util = void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as i, w as u } from "./app-
|
|
2
|
-
import { n as a, l as m, q as l, o as d, m as p } from "./rule-
|
|
1
|
+
import { m as i, w as u } from "./app-BYPvZve5.js";
|
|
2
|
+
import { n as a, l as m, q as l, o as d, m as p } from "./rule-BmRzz26L.js";
|
|
3
3
|
const f = [
|
|
4
4
|
i.Subject.Business.restaurant,
|
|
5
5
|
i.Subject.Business.role,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore as v, storeToRefs as m } from "pinia";
|
|
2
2
|
import { ref as i } from "vue";
|
|
3
3
|
import { useCoreStore as p } from "@feedmepos/mf-common";
|
|
4
|
-
import { g as R, b as g } from "./app-
|
|
4
|
+
import { g as R, b as g } from "./app-BYPvZve5.js";
|
|
5
5
|
const y = {
|
|
6
6
|
async readRestaurants() {
|
|
7
7
|
return R(await g().get("/hr-restaurants"));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineStore as x, storeToRefs as b } from "pinia";
|
|
2
2
|
import { ref as w } from "vue";
|
|
3
3
|
import { useCoreStore as B } from "@feedmepos/mf-common";
|
|
4
|
-
import { s as v } from "./iteration-
|
|
5
|
-
import { g as f, b as p } from "./app-
|
|
6
|
-
import { u as I } from "./restaurant-
|
|
4
|
+
import { s as v } from "./iteration-Cnj0KTDr.js";
|
|
5
|
+
import { g as f, b as p } from "./app-BYPvZve5.js";
|
|
6
|
+
import { u as I } from "./restaurant-CNsV-2OE.js";
|
|
7
7
|
const R = {
|
|
8
8
|
async readRoles() {
|
|
9
9
|
return f(await p().get("/pos-roles"));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as W, c as q, e as y } from "./iteration-
|
|
2
|
-
import { g, b as v, y as O, v as z, m as _, z as F, k as x, C as S, O as ee, D as B } from "./app-
|
|
1
|
+
import { s as W, c as q, e as y } from "./iteration-Cnj0KTDr.js";
|
|
2
|
+
import { g, b as v, y as O, v as z, m as _, z as F, k as x, C as S, O as ee, D as B } from "./app-BYPvZve5.js";
|
|
3
3
|
import { s as se } from "./utils-BZkjJbju.js";
|
|
4
4
|
import { defineStore as V, storeToRefs as K } from "pinia";
|
|
5
5
|
import { ref as h, computed as J } from "vue";
|
|
6
6
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
7
|
-
import { u as te } from "./restaurant-
|
|
7
|
+
import { u as te } from "./restaurant-CNsV-2OE.js";
|
|
8
8
|
const E = "/permission-sets", N = {
|
|
9
9
|
async read() {
|
|
10
10
|
return g(await v().get(E));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { IFdtoCreateStaffInviteReq, IFdtoCreateStaffInviteRes, IFdtoResendStaffInviteRes, IFdtoStaffInvite, IFdtoStaffInviteLookup,
|
|
1
|
+
import type { IFdtoCreateStaffInviteReq, IFdtoCreateStaffInviteRes, IFdtoResendStaffInviteRes, IFdtoStaffInvite, IFdtoStaffInviteLookup, IFdtoUpdateStaffInviteReq } from '@/types/staff-invite';
|
|
2
2
|
declare const StaffInviteAPI: {
|
|
3
|
-
readProviders(): Promise<IFdtoStaffInviteProvider[]>;
|
|
4
3
|
readInvites(status?: IFdtoStaffInvite["status"]): Promise<IFdtoStaffInvite[]>;
|
|
5
4
|
lookup(key: {
|
|
6
5
|
mobile: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IFdtoSsoProvider } from '@/types/sso-provider';
|
|
2
|
+
export declare function useSsoProviders(): {
|
|
3
|
+
providers: import("vue").Ref<{
|
|
4
|
+
slug: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: string;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
inviteMatch: import("../types/staff-invite").StaffInviteMatch | "none";
|
|
9
|
+
}[], IFdtoSsoProvider[] | {
|
|
10
|
+
slug: string;
|
|
11
|
+
label: string;
|
|
12
|
+
type: string;
|
|
13
|
+
enabled: boolean;
|
|
14
|
+
inviteMatch: import("../types/staff-invite").StaffInviteMatch | "none";
|
|
15
|
+
}[]>;
|
|
16
|
+
isLoaded: import("vue").ComputedRef<boolean>;
|
|
17
|
+
loadProviders: () => Promise<void>;
|
|
18
|
+
providerLabel: (slug: string) => string;
|
|
19
|
+
};
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import type { IFdtoStaffInviteProvider } from '@/types/staff-invite';
|
|
2
1
|
export declare function useStaffInviteProviders(): {
|
|
3
|
-
providers: import("vue").
|
|
4
|
-
slug: string;
|
|
5
|
-
label: string;
|
|
6
|
-
type: string;
|
|
7
|
-
inviteMatch: import("@/types/staff-invite").StaffInviteMatch;
|
|
8
|
-
}[], IFdtoStaffInviteProvider[] | {
|
|
9
|
-
slug: string;
|
|
10
|
-
label: string;
|
|
11
|
-
type: string;
|
|
12
|
-
inviteMatch: import("@/types/staff-invite").StaffInviteMatch;
|
|
13
|
-
}[]>;
|
|
2
|
+
providers: import("vue").ComputedRef<import("../types/staff-invite").IFdtoStaffInviteProvider[]>;
|
|
14
3
|
isLoaded: import("vue").ComputedRef<boolean>;
|
|
15
4
|
hasProviders: import("vue").ComputedRef<boolean>;
|
|
16
5
|
canInvite: import("vue").ComputedRef<boolean>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import type { RawRule } from '@casl/ability';
|
|
2
2
|
import { type IFdtoCreateStaffInviteReq, type IFdtoCreateStaffInviteRes, type IFdtoStaffInvite, type IFdtoStaffInviteProvider, type IFdtoUpdateStaffInviteReq, type StaffInviteMatch, type StaffInviteWarning } from '@/types/staff-invite';
|
|
3
|
+
import type { IFdtoSsoProvider } from '@/types/sso-provider';
|
|
3
4
|
type Translate = (key: string, params?: Record<string, unknown>) => string;
|
|
4
5
|
/**
|
|
5
6
|
* Same check the backend makes for POST /portal-users: create on hrm::portalUsers, which the
|
|
6
7
|
* Team member toggle (hrm_teamMember:manage) grants through its system permission set.
|
|
7
8
|
*/
|
|
8
9
|
export declare function canCreatePortalUsers(permissions: RawRule[]): boolean;
|
|
10
|
+
/** The providers invites can go through: switched on, with a key to match people on. */
|
|
11
|
+
export declare function invitableProviders(providers: IFdtoSsoProvider[]): IFdtoStaffInviteProvider[];
|
|
9
12
|
export declare function canInviteStaff(providers: IFdtoStaffInviteProvider[], permissions: RawRule[]): boolean;
|
|
10
13
|
/** E.164 form of a valid phone number, or null. */
|
|
11
14
|
export declare function toE164(phone: string): string | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { StaffInviteMatch } from '@/types/staff-invite';
|
|
2
|
+
/** A business's SSO provider (GET /businesses/:businessId/sso-providers), on or off. */
|
|
3
|
+
export interface IFdtoSsoProvider {
|
|
4
|
+
slug: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: string;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
/** The key invites match people on; `none` turns invites off for this provider. */
|
|
9
|
+
inviteMatch: StaffInviteMatch | 'none';
|
|
10
|
+
}
|