@feedmepos/mf-hrm-portal 2.3.2-dev.4 → 2.3.2-dev.5
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-BPTnWcra.js → ApprovalCodeList-NYJNwdDZ.js} +7 -7
- package/dist/{AuditLogList-CvEF4bit.js → AuditLogList-Ghn4aBnn.js} +5 -5
- package/dist/{ConditionBuilderForm.vue_vue_type_script_setup_true_lang-CPX0sv64.js → ConditionBuilderForm.vue_vue_type_script_setup_true_lang-BxZ9t3MZ.js} +2 -2
- package/dist/{EmployeeList-CANPsrQY.js → EmployeeList-jc8LTznV.js} +8 -8
- package/dist/{FormSection.vue_vue_type_script_setup_true_lang-mdfK9rtZ.js → FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js} +1 -1
- package/dist/{GrantUserList-DPj_6Wsg.js → GrantUserList-BtPTpypR.js} +8 -8
- package/dist/{Main-DXcSgkhR.js → Main-BF8hlYeV.js} +10 -10
- package/dist/{Main-BWRMirTY.js → Main-BizCV-_x.js} +11 -11
- package/dist/{Main-Cob4hcf-.js → Main-McMZU_cR.js} +5 -5
- package/dist/{MyPosProfile-Bp7-pATz.js → MyPosProfile-BjeCnBvL.js} +100 -111
- package/dist/{PermissionSetList-DvAW1q0c.js → PermissionSetList-NWLoqFHC.js} +6 -6
- package/dist/{PortalPermissionEditor.vue_vue_type_script_setup_true_lang-DmbI5vgH.js → PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js} +840 -840
- package/dist/{PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-C8hcooKP.js → PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-nwpdr7T7.js} +19 -19
- package/dist/{RoleForm.vue_vue_type_script_setup_true_lang-Bq8-aBSv.js → RoleForm.vue_vue_type_script_setup_true_lang-eT-dPsOX.js} +9 -9
- package/dist/{RoleList-DsrHgU4s.js → RoleList-CIfN10zu.js} +7 -7
- package/dist/{ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CRR18xmB.js → ScheduleAddPositionModal.vue_vue_type_script_setup_true_lang-CMTXC_UR.js} +1 -1
- package/dist/{ScheduleGeneralPage-C_Kj9wmp.js → ScheduleGeneralPage-8vS1DUrk.js} +2 -2
- package/dist/{ScheduleModal.vue_vue_type_script_setup_true_lang-3oQ6lE86.js → ScheduleModal.vue_vue_type_script_setup_true_lang-Br4AcF1g.js} +4 -4
- package/dist/{SchedulePage-9dFXxWwZ.js → SchedulePage-DqbE1PoV.js} +9 -9
- package/dist/{SchedulePositionPage-Dea5X8Sa.js → SchedulePositionPage-DUnkT0Tp.js} +3 -3
- package/dist/{SelectFilter-Dr9lB6Ta.js → SelectFilter-voMj4_j1.js} +1 -1
- package/dist/{TeamMemberList-Bu9QNP9W.js → TeamMemberList-DoEOWNDC.js} +12 -12
- package/dist/{TimesheetList-B98l028z.js → TimesheetList-BBv2SV96.js} +8 -8
- package/dist/{TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-DIQ7kjG8.js → TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-h-bWBmpI.js} +3 -3
- package/dist/{app-BHQJX4L4.js → app-CDCO87ji.js} +452 -457
- package/dist/app.js +1 -1
- package/dist/{approval-code-w0rZJeYU.js → approval-code-CLE9s5dL.js} +1 -1
- package/dist/{dayjs.min-C4H4diN8.js → dayjs.min-BW6-XAUB.js} +16 -16
- package/dist/{employee-BEwUmdt6.js → employee-BaCU-FLC.js} +5 -5
- package/dist/{grant-user-DdxPMH5_.js → grant-user-DMtilLJx.js} +1 -1
- package/dist/{iteration-DBHifssn.js → iteration-CPLGGFBb.js} +1 -1
- package/dist/{lodash-DqZsWm-0.js → lodash-snXoiw60.js} +1 -1
- package/dist/{member-grant-DOigVnBR.js → member-grant-CJyOr-q0.js} +2 -2
- package/dist/{restaurant-2xCb2x26.js → restaurant-BMlLIUqe.js} +1 -1
- package/dist/{role-C8STcmLJ.js → role-DqcBOWHL.js} +3 -3
- package/dist/{rule-BkL34-Ma.js → rule-B5YNhGJ4.js} +3 -3
- package/dist/src/api/my-pos-profile/index.d.ts +1 -3
- package/dist/src/types/my-pos-profile.d.ts +2 -3
- package/dist/src/views/my-pos-profile/locales/index.d.ts +0 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-BUmFt2dT.js → useAppStore-pKAGQL6q.js} +1 -1
- package/dist/{useLoading-oHRj4RgU.js → useLoading-D67DIqfk.js} +1 -1
- package/dist/{useReportPermissions-CpcyfEuV.js → useReportPermissions-CfgnE0NY.js} +3 -3
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as re, ref as K, computed as g, resolveComponent as b, createBlock as O, openBlock as _, withCtx as $, createElementVNode as s, createElementBlock as S, createCommentVNode as Y, toDisplayString as C, unref as a, Fragment as H, renderList as te, createVNode as c, renderSlot as xe, isRef as ue, withModifiers as de, createTextVNode as be, normalizeClass as ke, h as x } from "vue";
|
|
2
|
-
import { d as Ve } from "./dayjs.min-
|
|
2
|
+
import { d as Ve } from "./dayjs.min-BW6-XAUB.js";
|
|
3
3
|
import { useI18n as ne } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ie, components as z, useDialog as we, useBreakpoints as Fe, FmButtonVariant as se } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as q } from "./SelectFilter-
|
|
6
|
-
import { _ as $e } from "./app-
|
|
7
|
-
import { _ as Se, a as pe, u as Ae, H as Pe } from "./FormSection.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { S as q } from "./SelectFilter-voMj4_j1.js";
|
|
6
|
+
import { _ as $e } from "./app-CDCO87ji.js";
|
|
7
|
+
import { _ as Se, a as pe, u as Ae, H as Pe } from "./FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js";
|
|
8
8
|
import { _ as Be } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
|
|
9
|
-
import { u as ve } from "./useLoading-
|
|
10
|
-
import { u as fe } from "./approval-code-
|
|
11
|
-
import { u as ce } from "./restaurant-
|
|
9
|
+
import { u as ve } from "./useLoading-D67DIqfk.js";
|
|
10
|
+
import { u as fe } from "./approval-code-CLE9s5dL.js";
|
|
11
|
+
import { u as ce } from "./restaurant-BMlLIUqe.js";
|
|
12
12
|
function Ie(d) {
|
|
13
13
|
var e;
|
|
14
14
|
const r = (e = d.conditions) == null ? void 0 : e.adjustment;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as Vt, ref as S, computed as I, onMounted as Eo, onBeforeUnmount as No, watch as ie, resolveComponent as N, createElementBlock as v, openBlock as f, createBlock as Oe, createCommentVNode as F, createElementVNode as a, Fragment as z, renderList as ce, withCtx as Y, createVNode as g, toDisplayString as l, unref as u, nextTick as Ro, onUnmounted as Uo, createTextVNode as Ae, normalizeClass as Ko } from "vue";
|
|
2
|
-
import { d as O } from "./dayjs.min-
|
|
2
|
+
import { d as O } from "./dayjs.min-BW6-XAUB.js";
|
|
3
3
|
import { defineStore as Bo, storeToRefs as Yo } from "pinia";
|
|
4
4
|
import { useI18n as $t, useCoreStore as zo } from "@feedmepos/mf-common";
|
|
5
|
-
import { g as st, b as at, B as Ft, _ as qo, a as Jo } from "./app-
|
|
5
|
+
import { g as st, b as at, B as Ft, _ as qo, a as Jo } from "./app-CDCO87ji.js";
|
|
6
6
|
import { components as ve } from "@feedmepos/ui-library";
|
|
7
|
-
import { S as Fe } from "./SelectFilter-
|
|
7
|
+
import { S as Fe } from "./SelectFilter-voMj4_j1.js";
|
|
8
8
|
import { _ as Ho } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
9
9
|
import { _ as Wo } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
10
|
-
import { t as Go, p as Mt } from "./rule-
|
|
11
|
-
import { u as Xo } from "./restaurant-
|
|
10
|
+
import { t as Go, p as Mt } from "./rule-B5YNhGJ4.js";
|
|
11
|
+
import { u as Xo } from "./restaurant-BMlLIUqe.js";
|
|
12
12
|
import { u as Qo } from "./useDebounce-B8ZPVS5C.js";
|
|
13
13
|
import { n as Zo } from "./string-DZQ1uNjn.js";
|
|
14
14
|
const es = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as B, ref as S, onMounted as le, nextTick as ue, onUnmounted as re, resolveComponent as g, createElementBlock as b, openBlock as u, Fragment as C, createElementVNode as U, createVNode as A, renderSlot as T, createCommentVNode as w, toDisplayString as E, normalizeStyle as se, normalizeClass as X, watch as q, defineAsyncComponent as ie, computed as K, renderList as M, createBlock as h, withCtx as j, unref as D, resolveDynamicComponent as de } from "vue";
|
|
2
2
|
import { useI18n as Y, useCoreStore as me } from "@feedmepos/mf-common";
|
|
3
|
-
import {
|
|
4
|
-
import { l as fe } from "./lodash-
|
|
3
|
+
import { s as L, G as ce, U as W } from "./app-CDCO87ji.js";
|
|
4
|
+
import { l as fe } from "./lodash-snXoiw60.js";
|
|
5
5
|
const ye = { class: "flex min-w-0 flex-col gap-4" }, be = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as Ve, computed as k, resolveComponent as w, createElementBlock as O, openBlock as b, createElementVNode as m, createVNode as n, toDisplayString as N, Fragment as ke, renderList as Be, createCommentVNode as H, withKeys as Ie, withModifiers as oe, normalizeClass as be, ref as h, watch as re, renderSlot as je, unref as t, withCtx as x, createBlock as D, onUnmounted as Ge, isRef as Re, createTextVNode as he, resolveDynamicComponent as qe, h as pe } from "vue";
|
|
2
2
|
import { useI18n as Le, useCoreStore as He } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $e, components as Me, useDialog as We, useBreakpoints as Je } from "@feedmepos/ui-library";
|
|
4
|
-
import { S as fe } from "./SelectFilter-
|
|
5
|
-
import { _ as Qe, c as Ye, a as Ze } from "./app-
|
|
6
|
-
import { _ as Ee, a as Fe, u as Xe, H as ea } from "./FormSection.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { S as fe } from "./SelectFilter-voMj4_j1.js";
|
|
5
|
+
import { _ as Qe, c as Ye, a as Ze } from "./app-CDCO87ji.js";
|
|
6
|
+
import { _ as Ee, a as Fe, u as Xe, H as ea } from "./FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js";
|
|
7
7
|
import { _ as aa } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
8
8
|
import { _ as la } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
9
|
import { c as ta, b as sa, a as oa, p as ra, r as na, s as ia, _ as ua, d as da, e as Ue } from "./PasscodePinField.vue_vue_type_script_setup_true_lang-TXPEqa46.js";
|
|
10
10
|
import { u as ca } from "./useDebounce-B8ZPVS5C.js";
|
|
11
11
|
import { n as ma } from "./string-DZQ1uNjn.js";
|
|
12
|
-
import { u as Pe, E as pa } from "./employee-
|
|
13
|
-
import { u as Ae } from "./restaurant-
|
|
14
|
-
import { l as fa } from "./lodash-
|
|
12
|
+
import { u as Pe, E as pa } from "./employee-BaCU-FLC.js";
|
|
13
|
+
import { u as Ae } from "./restaurant-BMlLIUqe.js";
|
|
14
|
+
import { l as fa } from "./lodash-snXoiw60.js";
|
|
15
15
|
import { u as va } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
16
|
-
import { u as De } from "./useLoading-
|
|
16
|
+
import { u as De } from "./useLoading-D67DIqfk.js";
|
|
17
17
|
import { c as Se } from "./object-Dwyg2LgX.js";
|
|
18
|
-
import { u as _e } from "./role-
|
|
18
|
+
import { u as _e } from "./role-DqcBOWHL.js";
|
|
19
19
|
/* empty css */
|
|
20
20
|
const ya = { class: "rounded-lg border border-fm-color-neutral-gray-200 p-16 space-y-16" }, ga = { class: "fm-typo-en-title-sm-600" }, ha = { class: "space-y-16" }, ba = { class: "grid grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto] gap-16" }, _a = { class: "text-sm font-semibold text-fm-color-typo-primary" }, Va = { class: "text-sm font-semibold text-fm-color-typo-primary" }, ka = { class: "flex justify-self-end" }, xa = ["tabindex", "aria-disabled", "aria-label", "onClick", "onKeydown"], wa = /* @__PURE__ */ Ve({
|
|
21
21
|
__name: "OutletRoleAssignment",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as s, openBlock as o, createElementVNode as n, ref as y, computed as h, defineComponent as d, renderSlot as r, createCommentVNode as i, toDisplayString as a, normalizeClass as m, createVNode as _, withCtx as b } from "vue";
|
|
2
|
-
import { a as x } from "./app-
|
|
2
|
+
import { a as x } from "./app-CDCO87ji.js";
|
|
3
3
|
const $ = {};
|
|
4
4
|
function k(e, t) {
|
|
5
5
|
return o(), s("div", null, [...t[0] || (t[0] = [
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as X, ref as S, computed as f, watch as ue, resolveComponent as v, createElementBlock as D, openBlock as w, Fragment as E, renderSlot as de, createVNode as l, unref as s, withCtx as g, createElementVNode as o, toDisplayString as _, isRef as H, renderList as me, createBlock as pe, createCommentVNode as fe, withModifiers as W, createTextVNode as J, normalizeClass as ve, h as p } from "vue";
|
|
2
|
-
import { d as ge } from "./dayjs.min-
|
|
2
|
+
import { d as ge } from "./dayjs.min-BW6-XAUB.js";
|
|
3
3
|
import { useI18n as Z } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as ee, components as K, useDialog as _e, useBreakpoints as ye, FmButtonVariant as O } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as A } from "./SelectFilter-
|
|
6
|
-
import { _ as he } from "./app-
|
|
7
|
-
import { _ as Ue, a as Q, u as xe, H as be } from "./FormSection.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { S as A } from "./SelectFilter-voMj4_j1.js";
|
|
6
|
+
import { _ as he } from "./app-CDCO87ji.js";
|
|
7
|
+
import { _ as Ue, a as Q, u as xe, H as be } from "./FormSection.vue_vue_type_script_setup_true_lang-DLgm6oCz.js";
|
|
8
8
|
import { _ as Ve } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
9
|
-
import { u as te } from "./useLoading-
|
|
10
|
-
import { u as ae } from "./grant-user-
|
|
11
|
-
import { u as se } from "./restaurant-
|
|
12
|
-
import { u as re } from "./role-
|
|
9
|
+
import { u as te } from "./useLoading-D67DIqfk.js";
|
|
10
|
+
import { u as ae } from "./grant-user-DMtilLJx.js";
|
|
11
|
+
import { u as se } from "./restaurant-BMlLIUqe.js";
|
|
12
|
+
import { u as re } from "./role-DqcBOWHL.js";
|
|
13
13
|
const ke = { class: "fm-typo-en-title-md-600" }, Fe = { class: "space-y-40" }, we = { class: "flex gap-8 items-center justify-start" }, Se = /* @__PURE__ */ X({
|
|
14
14
|
__name: "GrantUserForm",
|
|
15
15
|
setup(le, { expose: M }) {
|
|
@@ -3,18 +3,18 @@ import { useRouter as x, useRoute as F } from "vue-router";
|
|
|
3
3
|
import { useI18n as I, useCoreStore as O } from "@feedmepos/mf-common";
|
|
4
4
|
import { _ as $ } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
5
5
|
import { _ as q } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
6
|
-
import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-
|
|
7
|
-
import { u as P } from "./restaurant-
|
|
6
|
+
import { u as D } from "./PortalUserSearcher.vue_vue_type_style_index_0_scoped_827dfd60_lang-nwpdr7T7.js";
|
|
7
|
+
import { u as P } from "./restaurant-BMlLIUqe.js";
|
|
8
8
|
import "@feedmepos/ui-library";
|
|
9
|
-
import "./rule-
|
|
10
|
-
import "./lodash-
|
|
11
|
-
import "./iteration-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import { R as B } from "./app-
|
|
14
|
-
import "./member-grant-
|
|
15
|
-
import "./role-
|
|
9
|
+
import "./rule-B5YNhGJ4.js";
|
|
10
|
+
import "./lodash-snXoiw60.js";
|
|
11
|
+
import "./iteration-CPLGGFBb.js";
|
|
12
|
+
import "./useAppStore-pKAGQL6q.js";
|
|
13
|
+
import { R as B } from "./app-CDCO87ji.js";
|
|
14
|
+
import "./member-grant-CJyOr-q0.js";
|
|
15
|
+
import "./role-DqcBOWHL.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import "./useReportPermissions-
|
|
17
|
+
import "./useReportPermissions-CfgnE0NY.js";
|
|
18
18
|
const U = { class: "space-y-24" }, se = /* @__PURE__ */ M({
|
|
19
19
|
__name: "Main",
|
|
20
20
|
setup(j) {
|
|
@@ -4,19 +4,19 @@ import { useCoreStore as uf, useI18n as vf } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as pf } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as df } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as mf } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as gf } from "./restaurant-
|
|
8
|
-
import { u as _f } from "./role-
|
|
7
|
+
import { u as gf } from "./restaurant-BMlLIUqe.js";
|
|
8
|
+
import { u as _f } from "./role-DqcBOWHL.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import "./employee-
|
|
11
|
-
import "./lodash-
|
|
12
|
-
import "./useAppStore-
|
|
13
|
-
import "./iteration-
|
|
10
|
+
import "./employee-BaCU-FLC.js";
|
|
11
|
+
import "./lodash-snXoiw60.js";
|
|
12
|
+
import "./useAppStore-pKAGQL6q.js";
|
|
13
|
+
import "./iteration-CPLGGFBb.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { R as pt } from "./app-
|
|
16
|
-
import "./rule-
|
|
17
|
-
import "./useReportPermissions-
|
|
18
|
-
import "./dayjs.min-
|
|
19
|
-
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-
|
|
15
|
+
import { R as pt } from "./app-CDCO87ji.js";
|
|
16
|
+
import "./rule-B5YNhGJ4.js";
|
|
17
|
+
import "./useReportPermissions-CfgnE0NY.js";
|
|
18
|
+
import "./dayjs.min-BW6-XAUB.js";
|
|
19
|
+
import "./TimesheetList.vue_vue_type_style_index_0_scoped_63294af2_lang-h-bWBmpI.js";
|
|
20
20
|
var Nn = {};
|
|
21
21
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
22
22
|
var qt = {};
|
|
@@ -4,11 +4,11 @@ import { useI18n as E, useCoreStore as $ } from "@feedmepos/mf-common";
|
|
|
4
4
|
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as z } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-QrqYEy8i.js";
|
|
6
6
|
import { _ as M } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
7
|
-
import { u as j } from "./restaurant-
|
|
8
|
-
import { u as H } from "./role-
|
|
9
|
-
import { u as J } from "./grant-user-
|
|
10
|
-
import { u as K } from "./approval-code-
|
|
11
|
-
import { R as n } from "./app-
|
|
7
|
+
import { u as j } from "./restaurant-BMlLIUqe.js";
|
|
8
|
+
import { u as H } from "./role-DqcBOWHL.js";
|
|
9
|
+
import { u as J } from "./grant-user-DMtilLJx.js";
|
|
10
|
+
import { u as K } from "./approval-code-CLE9s5dL.js";
|
|
11
|
+
import { R as n } from "./app-CDCO87ji.js";
|
|
12
12
|
const Q = { class: "space-y-24" }, ue = /* @__PURE__ */ D({
|
|
13
13
|
__name: "Main",
|
|
14
14
|
setup(W) {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
1
|
+
import { defineComponent as j, ref as u, computed as v, resolveComponent as h, createBlock as $, openBlock as a, withCtx as F, createElementVNode as t, createElementBlock as l, Fragment as E, renderList as L, toDisplayString as c, unref as s, createVNode as r, onUnmounted as Q, watch as X, createCommentVNode as Y, h as U } from "vue";
|
|
2
|
+
import { useI18n as R, useCoreStore as Z, FeedMeAuth as ee } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as se, components as ae, SnackbarPosition as le } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as ne } from "./PageLayout.vue_vue_type_script_setup_true_lang-HKK4cbW8.js";
|
|
5
|
-
import { t as re, f as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
5
|
+
import { t as re, f as ce, c as ie, r as de, i as V, d as me, p as ue, o as pe } from "./app-CDCO87ji.js";
|
|
6
|
+
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-BVVwfd7B.js";
|
|
7
|
+
const ye = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, _e = { class: "fm-typo-en-title-sm-600 text-center" }, ge = { class: "py-[4px]" }, ve = {
|
|
8
8
|
class: "flex items-center justify-center gap-4 rounded-[12px] bg-fm-color-neutral-gray-100 px-16 py-[20px]",
|
|
9
9
|
"data-testid": "new-passcode"
|
|
10
|
-
}, he = { class: "fm-typo-en-body-md-400 pt-16 text-center text-fm-color-typo-primary" },
|
|
10
|
+
}, he = { class: "fm-typo-en-body-md-400 pt-16 text-center text-fm-color-typo-primary" }, Pe = /* @__PURE__ */ j({
|
|
11
11
|
__name: "PasscodeChangedDialog",
|
|
12
|
-
setup(
|
|
13
|
-
const { t:
|
|
12
|
+
setup(T, { expose: e }) {
|
|
13
|
+
const { t: P } = R(), y = u(!1), x = u(""), b = v(() => x.value.split("")), A = (_) => {
|
|
14
14
|
x.value = _, y.value = !0;
|
|
15
|
-
},
|
|
15
|
+
}, i = () => {
|
|
16
16
|
y.value = !1, x.value = "";
|
|
17
17
|
};
|
|
18
|
-
return e({ open:
|
|
19
|
-
const g =
|
|
20
|
-
return
|
|
18
|
+
return e({ open: A }), (_, n) => {
|
|
19
|
+
const g = h("FmIcon"), p = h("FmButton"), S = h("FmDialog");
|
|
20
|
+
return a(), $(S, {
|
|
21
21
|
modelValue: y.value,
|
|
22
22
|
"onUpdate:modelValue": [
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
n[0] || (n[0] = (d) => y.value = d),
|
|
24
|
+
n[1] || (n[1] = (d) => !d && i())
|
|
25
25
|
],
|
|
26
26
|
"min-width": 360,
|
|
27
27
|
"max-width": 460,
|
|
@@ -29,79 +29,82 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
29
29
|
"dismiss-away": !1
|
|
30
30
|
}, {
|
|
31
31
|
"dialog-header": F(() => [
|
|
32
|
-
t("div",
|
|
33
|
-
|
|
32
|
+
t("div", ye, [
|
|
33
|
+
r(g, {
|
|
34
34
|
name: "check_circle",
|
|
35
35
|
size: "xl",
|
|
36
36
|
outline: "",
|
|
37
37
|
color: "typo-success"
|
|
38
38
|
}),
|
|
39
|
-
t("p",
|
|
39
|
+
t("p", _e, c(s(P)("myPosProfile.changed.title")), 1)
|
|
40
40
|
])
|
|
41
41
|
]),
|
|
42
42
|
"dialog-footer": F(() => [
|
|
43
|
-
|
|
43
|
+
r(p, {
|
|
44
44
|
class: "w-full",
|
|
45
45
|
variant: "primary",
|
|
46
|
-
label: s(
|
|
47
|
-
onClick:
|
|
46
|
+
label: s(P)("myPosProfile.changed.done"),
|
|
47
|
+
onClick: i
|
|
48
48
|
}, null, 8, ["label"])
|
|
49
49
|
]),
|
|
50
50
|
default: F(() => [
|
|
51
|
-
t("div",
|
|
52
|
-
t("div",
|
|
53
|
-
(
|
|
54
|
-
key:
|
|
51
|
+
t("div", ge, [
|
|
52
|
+
t("div", ve, [
|
|
53
|
+
(a(!0), l(E, null, L(b.value, (d, C) => (a(), l("span", {
|
|
54
|
+
key: C,
|
|
55
55
|
class: "flex h-[56px] w-[52px] items-center justify-center text-[48px] font-bold leading-[56px] text-fm-color-typo-primary"
|
|
56
|
-
}, c(
|
|
56
|
+
}, c(d), 1))), 128))
|
|
57
57
|
]),
|
|
58
|
-
t("p", he, c(s(
|
|
58
|
+
t("p", he, c(s(P)("myPosProfile.changed.message")), 1)
|
|
59
59
|
])
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 8, ["modelValue"]);
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = {
|
|
66
66
|
key: 1,
|
|
67
67
|
class: "flex flex-1 items-center justify-center"
|
|
68
|
-
},
|
|
68
|
+
}, we = {
|
|
69
69
|
key: 2,
|
|
70
70
|
class: "space-y-24"
|
|
71
|
-
},
|
|
71
|
+
}, ke = {
|
|
72
72
|
key: 0,
|
|
73
73
|
role: "alert",
|
|
74
74
|
"data-testid": "pos-user-shared",
|
|
75
75
|
class: "flex items-center gap-[10px] rounded-[12px] bg-fm-color-system-warning-100 px-16 py-[14px]"
|
|
76
|
-
},
|
|
76
|
+
}, Fe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, Se = { class: "space-y-12" }, Ae = { class: "fm-typo-en-body-lg-600" }, Ce = { class: "flex items-center gap-24 rounded-[12px] border border-fm-color-neutral-gray-100 p-24 xs:flex-wrap" }, De = { class: "flex h-48 w-48 shrink-0 items-center justify-center rounded-[12px] bg-fm-color-neutral-gray-100" }, Be = { class: "min-w-0 flex-1" }, Ue = { class: "flex items-center gap-8" }, $e = ["aria-label"], Ee = {
|
|
77
77
|
key: 0,
|
|
78
78
|
class: "h-[14px] w-[14px] rounded-full bg-fm-color-typo-primary"
|
|
79
79
|
}, Ie = {
|
|
80
80
|
key: 1,
|
|
81
81
|
class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary"
|
|
82
|
-
},
|
|
82
|
+
}, Me = {
|
|
83
83
|
key: 0,
|
|
84
84
|
class: "fm-typo-en-body-md-400 pt-[6px] text-fm-color-typo-secondary"
|
|
85
|
-
},
|
|
85
|
+
}, ze = { class: "flex flex-wrap items-center gap-[10px] rounded-[12px] bg-fm-color-neutral-gray-100 px-16 py-[14px]" }, Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, je = 4, He = /* @__PURE__ */ j({
|
|
86
86
|
__name: "MyPosProfile",
|
|
87
|
-
setup(
|
|
88
|
-
const { t: e, locale:
|
|
89
|
-
Q(() => clearInterval(
|
|
90
|
-
const
|
|
87
|
+
setup(T) {
|
|
88
|
+
const { t: e, locale: P } = R(), y = Z(), x = oe(), b = te(), { breakpoints: A } = se(), i = u(null), _ = u(!0), n = u(!1), g = u(!1), p = u(!1), S = u(), d = u(Date.now()), C = setInterval(() => d.value = Date.now(), 3e4);
|
|
89
|
+
Q(() => clearInterval(C));
|
|
90
|
+
const w = v(() => {
|
|
91
91
|
var o;
|
|
92
|
-
return ((o =
|
|
93
|
-
}), N =
|
|
92
|
+
return ((o = i.value) == null ? void 0 : o.profile) ?? null;
|
|
93
|
+
}), N = v(() => w.value ? re(w.value) : []), I = v(
|
|
94
94
|
() => {
|
|
95
95
|
var o;
|
|
96
|
-
return
|
|
97
|
-
((o =
|
|
96
|
+
return ce(
|
|
97
|
+
((o = w.value) == null ? void 0 : o.passcodeUpdatedAt) ?? null,
|
|
98
98
|
e,
|
|
99
|
-
String(
|
|
100
|
-
|
|
99
|
+
String(P.value),
|
|
100
|
+
d.value
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
-
),
|
|
104
|
-
|
|
103
|
+
), k = v(() => {
|
|
104
|
+
var o;
|
|
105
|
+
return n.value ? (o = w.value) == null ? void 0 : o.passcode : null;
|
|
106
|
+
}), O = v(
|
|
107
|
+
() => k.value ? k.value.split("") : Array.from({ length: je }, () => null)
|
|
105
108
|
), G = [
|
|
106
109
|
{
|
|
107
110
|
id: "name",
|
|
@@ -109,9 +112,9 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
109
112
|
enableSorting: !1,
|
|
110
113
|
cell: (o) => {
|
|
111
114
|
const f = o.row.original.name;
|
|
112
|
-
return f ?
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
return f ? U("div", { class: "flex items-center gap-8" }, [
|
|
116
|
+
U(ae.FmAvatar, { name: f, size: "sm", class: "shrink-0" }),
|
|
117
|
+
U("span", { class: "truncate" }, f)
|
|
115
118
|
]) : "";
|
|
116
119
|
}
|
|
117
120
|
},
|
|
@@ -134,15 +137,15 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
134
137
|
cell: (o) => o.row.original.role
|
|
135
138
|
}
|
|
136
139
|
];
|
|
137
|
-
function
|
|
140
|
+
function D(o) {
|
|
138
141
|
x.open({ type: "error", title: o, position: le.BOTTOM });
|
|
139
142
|
}
|
|
140
143
|
async function H() {
|
|
141
|
-
_.value = !0,
|
|
144
|
+
_.value = !0, p.value = !1, n.value = !1;
|
|
142
145
|
try {
|
|
143
|
-
|
|
146
|
+
i.value = await de();
|
|
144
147
|
} catch (o) {
|
|
145
|
-
|
|
148
|
+
i.value = null, V(o) ? p.value = !0 : D(e("myPosProfile.loadFailed"));
|
|
146
149
|
} finally {
|
|
147
150
|
_.value = !1;
|
|
148
151
|
}
|
|
@@ -154,115 +157,101 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
154
157
|
},
|
|
155
158
|
{ immediate: !0 }
|
|
156
159
|
);
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
a.value = null;
|
|
160
|
-
return;
|
|
161
|
-
}
|
|
162
|
-
if (!g.value) {
|
|
163
|
-
g.value = !0;
|
|
164
|
-
try {
|
|
165
|
-
a.value = (await ue()).passcode;
|
|
166
|
-
} catch (o) {
|
|
167
|
-
U(o) ? u.value = !0 : A(e("myPosProfile.passcode.revealFailed"));
|
|
168
|
-
} finally {
|
|
169
|
-
g.value = !1;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
160
|
+
function K() {
|
|
161
|
+
n.value = !n.value;
|
|
172
162
|
}
|
|
173
163
|
function W() {
|
|
174
164
|
b.open({
|
|
175
165
|
title: e("myPosProfile.change.title"),
|
|
176
166
|
message: e("myPosProfile.change.message"),
|
|
177
|
-
minWidth:
|
|
167
|
+
minWidth: A.value.lg ? 598 : 0,
|
|
178
168
|
primaryActions: {
|
|
179
169
|
text: e("common.confirm"),
|
|
180
170
|
close: !1,
|
|
181
|
-
isLoading:
|
|
171
|
+
isLoading: g
|
|
182
172
|
},
|
|
183
173
|
secondaryActions: { text: e("common.cancel"), close: !0 }
|
|
184
174
|
}).onPrimary(async () => {
|
|
185
175
|
var o, f;
|
|
186
|
-
if (!
|
|
187
|
-
|
|
176
|
+
if (!g.value) {
|
|
177
|
+
g.value = !0;
|
|
188
178
|
try {
|
|
189
|
-
const { passcode:
|
|
190
|
-
|
|
191
|
-
} catch (
|
|
192
|
-
b.close(),
|
|
179
|
+
const { passcode: m, passcodeUpdatedAt: B } = await me();
|
|
180
|
+
n.value = !1, (o = i.value) != null && o.profile && (i.value.profile.passcode = m, i.value.profile.passcodeUpdatedAt = B), d.value = Date.now(), b.close(), (f = S.value) == null || f.open(m);
|
|
181
|
+
} catch (m) {
|
|
182
|
+
b.close(), V(m) ? p.value = !0 : D(e(ue(m)));
|
|
193
183
|
} finally {
|
|
194
|
-
|
|
184
|
+
g.value = !1;
|
|
195
185
|
}
|
|
196
186
|
}
|
|
197
187
|
});
|
|
198
188
|
}
|
|
199
189
|
function q() {
|
|
200
|
-
|
|
190
|
+
pe(ee) || D(e("myPosProfile.manageAccount.failed"));
|
|
201
191
|
}
|
|
202
192
|
return (o, f) => {
|
|
203
|
-
const
|
|
204
|
-
return
|
|
193
|
+
const m = h("FmIcon"), B = h("FmTable"), M = h("FmButton");
|
|
194
|
+
return a(), $(ne, {
|
|
205
195
|
heading: s(e)("myPosProfile.title")
|
|
206
196
|
}, {
|
|
207
197
|
"sub-heading": F(() => [
|
|
208
|
-
t("p",
|
|
198
|
+
t("p", xe, c(s(e)("myPosProfile.subtitle")), 1)
|
|
209
199
|
]),
|
|
210
200
|
default: F(() => [
|
|
211
|
-
_.value ? (
|
|
212
|
-
|
|
201
|
+
_.value ? (a(), $(ie, { key: 0 })) : !w.value && !p.value ? (a(), l("div", be, [
|
|
202
|
+
r(s(fe), {
|
|
213
203
|
title: s(e)("myPosProfile.noPosUser.title"),
|
|
214
204
|
subtitle: s(e)("myPosProfile.noPosUser.description")
|
|
215
205
|
}, null, 8, ["title", "subtitle"])
|
|
216
|
-
])) : (
|
|
217
|
-
|
|
218
|
-
|
|
206
|
+
])) : (a(), l("div", we, [
|
|
207
|
+
p.value ? (a(), l("div", ke, [
|
|
208
|
+
r(m, {
|
|
219
209
|
name: "warning",
|
|
220
210
|
size: "sm",
|
|
221
211
|
outline: "",
|
|
222
212
|
color: "typo-warning"
|
|
223
213
|
}),
|
|
224
|
-
t("span",
|
|
225
|
-
])) : (
|
|
226
|
-
|
|
214
|
+
t("span", Fe, c(s(e)("myPosProfile.shared.message")), 1)
|
|
215
|
+
])) : (a(), l(E, { key: 1 }, [
|
|
216
|
+
r(B, {
|
|
227
217
|
"column-defs": G,
|
|
228
218
|
"row-data": N.value,
|
|
229
219
|
"page-size": 100,
|
|
230
220
|
"hide-footer": ""
|
|
231
221
|
}, null, 8, ["row-data"]),
|
|
232
|
-
t("section",
|
|
233
|
-
t("p",
|
|
234
|
-
t("div",
|
|
235
|
-
t("div",
|
|
236
|
-
|
|
222
|
+
t("section", Se, [
|
|
223
|
+
t("p", Ae, c(s(e)("myPosProfile.passcode.title")), 1),
|
|
224
|
+
t("div", Ce, [
|
|
225
|
+
t("div", De, [
|
|
226
|
+
r(m, {
|
|
237
227
|
name: "lock",
|
|
238
228
|
outline: ""
|
|
239
229
|
})
|
|
240
230
|
]),
|
|
241
|
-
t("div",
|
|
242
|
-
t("div",
|
|
231
|
+
t("div", Be, [
|
|
232
|
+
t("div", Ue, [
|
|
243
233
|
t("div", {
|
|
244
234
|
class: "flex h-24 items-center gap-[10px]",
|
|
245
235
|
"data-testid": "passcode",
|
|
246
|
-
"aria-label":
|
|
236
|
+
"aria-label": k.value ? void 0 : s(e)("myPosProfile.passcode.title")
|
|
247
237
|
}, [
|
|
248
|
-
(
|
|
238
|
+
(a(!0), l(E, null, L(O.value, (z, J) => (a(), l("span", {
|
|
249
239
|
key: J,
|
|
250
240
|
class: "flex w-[20px] items-center justify-center"
|
|
251
241
|
}, [
|
|
252
|
-
z === null ? (
|
|
242
|
+
z === null ? (a(), l("span", Ee)) : (a(), l("span", Ie, c(z), 1))
|
|
253
243
|
]))), 128))
|
|
254
|
-
], 8,
|
|
255
|
-
|
|
244
|
+
], 8, $e),
|
|
245
|
+
r(M, {
|
|
256
246
|
variant: "tertiary",
|
|
257
|
-
"prepend-icon":
|
|
258
|
-
|
|
259
|
-
"aria-label": a.value ? s(e)("myPosProfile.passcode.hide") : s(e)("myPosProfile.passcode.show"),
|
|
247
|
+
"prepend-icon": k.value ? "visibility_off" : "visibility",
|
|
248
|
+
"aria-label": k.value ? s(e)("myPosProfile.passcode.hide") : s(e)("myPosProfile.passcode.show"),
|
|
260
249
|
onClick: K
|
|
261
|
-
}, null, 8, ["prepend-icon", "
|
|
250
|
+
}, null, 8, ["prepend-icon", "aria-label"])
|
|
262
251
|
]),
|
|
263
|
-
|
|
252
|
+
I.value ? (a(), l("p", Me, c(I.value), 1)) : Y("", !0)
|
|
264
253
|
]),
|
|
265
|
-
|
|
254
|
+
r(M, {
|
|
266
255
|
variant: "secondary",
|
|
267
256
|
size: "md",
|
|
268
257
|
label: s(e)("myPosProfile.passcode.change"),
|
|
@@ -271,14 +260,14 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
271
260
|
])
|
|
272
261
|
])
|
|
273
262
|
], 64)),
|
|
274
|
-
t("div",
|
|
275
|
-
|
|
263
|
+
t("div", ze, [
|
|
264
|
+
r(m, {
|
|
276
265
|
name: "info",
|
|
277
266
|
size: "sm",
|
|
278
267
|
outline: "",
|
|
279
268
|
color: "typo-secondary"
|
|
280
269
|
}),
|
|
281
|
-
t("span",
|
|
270
|
+
t("span", Ve, c(s(e)("myPosProfile.manageAccount.message")), 1),
|
|
282
271
|
t("button", {
|
|
283
272
|
type: "button",
|
|
284
273
|
class: "fm-typo-en-body-md-600 text-fm-color-system-info-300",
|
|
@@ -286,9 +275,9 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
286
275
|
}, c(s(e)("myPosProfile.manageAccount.link")), 1)
|
|
287
276
|
])
|
|
288
277
|
])),
|
|
289
|
-
|
|
278
|
+
r(Pe, {
|
|
290
279
|
ref_key: "changedDialogRef",
|
|
291
|
-
ref:
|
|
280
|
+
ref: S
|
|
292
281
|
}, null, 512)
|
|
293
282
|
]),
|
|
294
283
|
_: 1
|
|
@@ -297,5 +286,5 @@ const _e = { class: "flex w-full flex-col items-center gap-8 pt-[4px]" }, ge = {
|
|
|
297
286
|
}
|
|
298
287
|
});
|
|
299
288
|
export {
|
|
300
|
-
|
|
289
|
+
He as default
|
|
301
290
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as v, computed as h, watch as ue, resolveComponent as b, createBlock as de, openBlock as ee, unref as r, withCtx as C, createVNode as m, createElementVNode as y, toDisplayString as G, nextTick as pe, onMounted as fe, createElementBlock as ve, Fragment as Se, h as S } from "vue";
|
|
2
2
|
import { useI18n as se, useCoreStore as he } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as oe, useDialog as te, useBreakpoints as ne, components as H } from "@feedmepos/ui-library";
|
|
4
|
-
import { v as Q, _ as be,
|
|
4
|
+
import { v as Q, _ as be, l as _e } from "./app-CDCO87ji.js";
|
|
5
5
|
import { _ as ge } from "./TableEmptyState.vue_vue_type_script_setup_true_lang-IfAZmWr0.js";
|
|
6
6
|
import { _ as Pe } from "./ResponsiveContextMenu.vue_vue_type_script_setup_true_lang-mSJFKo7r.js";
|
|
7
|
-
import { u as ie, c as M, a as ae, p as Y, R as ye, g as we, m as A, l as xe, n as Fe, o as ke, q as Ce, v as Ie } from "./rule-
|
|
8
|
-
import { l as T } from "./lodash-
|
|
9
|
-
import { c as Ve } from "./iteration-
|
|
7
|
+
import { u as ie, c as M, a as ae, p as Y, R as ye, g as we, m as A, l as xe, n as Fe, o as ke, q as Ce, v as Ie } from "./rule-B5YNhGJ4.js";
|
|
8
|
+
import { l as T } from "./lodash-snXoiw60.js";
|
|
9
|
+
import { c as Ve } from "./iteration-CPLGGFBb.js";
|
|
10
10
|
import { u as Re } from "./useDiscardConfirm-CzZSPyvh.js";
|
|
11
|
-
import { u as Ee } from "./useLoading-
|
|
12
|
-
import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as Ee } from "./useLoading-D67DIqfk.js";
|
|
12
|
+
import { _ as je } from "./PortalPermissionEditor.vue_vue_type_script_setup_true_lang-UPcpeVD5.js";
|
|
13
13
|
const Te = { class: "flex w-full items-center justify-between" }, $e = { class: "fm-typo-en-title-md-600" }, Be = { class: "fm-typo-en-title-sm-600 mt-24" }, Le = { class: "flex items-center justify-start gap-8" }, Ae = /* @__PURE__ */ Z({
|
|
14
14
|
__name: "PermissionSetForm",
|
|
15
15
|
props: {
|