@feedmepos/mf-hrm-portal 2.0.10-dev → 2.0.10
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/AuditLogList-DICsmRKu.js +915 -0
- package/dist/{EmployeeList-B3qXFaOz.js → EmployeeList-BeTBQG6y.js} +164 -169
- package/dist/FormSection.vue_vue_type_script_setup_true_lang-BVb8c4YU.js +71 -0
- package/dist/HorizontalSplitter-o860F4xM.js +12 -0
- package/dist/Main-6YVJ8qeK.js +560 -0
- package/dist/{Main-urBwZXUq.js → Main-BSaeTSWh.js} +8 -7
- package/dist/{Main-JUX88mXA.js → Main-D9233aXd.js} +11 -10
- package/dist/PermissionSetList-vA7XmeDX.js +338 -0
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-CrL1DmdL.js +3479 -0
- package/dist/{RoleList-Dl7042_3.js → RoleList-BwZRlJSm.js} +26 -24
- package/dist/TeamMemberList-DqMVgyU0.js +989 -0
- package/dist/{TimesheetList-B3cmnZN5.js → TimesheetList-HsH2fi2o.js} +11 -10
- package/dist/{app-DHFWqcG2.js → app-CvSQBSNk.js} +2376 -1092
- package/dist/app.js +2 -2
- package/dist/{dayjs.min-faWeeWGk.js → dayjs.min-Cje6yZS4.js} +1 -1
- package/dist/{employee-sOy9OKvU.js → employee-Bvza5QKq.js} +21 -20
- package/dist/index-CUPMZ2Nm.js +975 -0
- package/dist/{index-DNsMh7eu.js → index-J8WRP1Mb.js} +1 -1
- package/dist/{index-EeD0w_Es.js → iteration-tLtr3UA8.js} +3444 -4352
- package/dist/{lodash-CfsS7nDC.js → lodash-CrQQQutG.js} +1 -1
- package/dist/src/api/audit-log/index.d.ts +1 -0
- package/dist/src/api/grant-user/index.d.ts +8 -0
- package/dist/src/api/index.d.ts +3 -1
- package/dist/src/composables/useBasePermission.d.ts +37 -0
- package/dist/src/helpers/permission-set.d.ts +34 -5
- package/dist/src/helpers/permission-set.test.d.ts +1 -0
- package/dist/src/helpers/permission-sync.d.ts +12 -0
- package/dist/src/router/shared.d.ts +2 -1
- package/dist/src/stores/grant-user.d.ts +86 -0
- package/dist/src/types/grant-user.d.ts +27 -0
- package/dist/src/views/audit-log/components/AuditLogModuleTabs.vue.d.ts +17 -0
- package/dist/src/views/audit-log/constants.d.ts +30 -0
- package/dist/src/views/audit-log/locales/index.d.ts +244 -0
- package/dist/src/views/grant/GrantUserList.vue.d.ts +17 -0
- package/dist/src/views/grant/Main.vue.d.ts +2 -0
- package/dist/src/views/grant/components/GrantUserForm.vue.d.ts +17 -0
- package/dist/src/views/grant/locales/index.d.ts +232 -0
- package/dist/src/views/team/components/BasePermission.vue.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/{team-CTYZ-AfE.js → team-eAkNf8XU.js} +1 -1
- package/dist/{timesheet-CP-usx78.js → timesheet-Cj5r4laf.js} +10 -9
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useAppStore-DpKptyzk.js → useAppStore-BFge6TcH.js} +1 -1
- package/dist/{useLoading-D0NWMSr4.js → useLoading-D5jjAdvm.js} +1 -1
- package/dist/{useReportPermissions-CtnMIyaq.js → useReportPermissions-BeIK2wRH.js} +12 -11
- package/dist/useRestaurantMap-e9fQJiLC.js +39 -0
- package/package.json +3 -3
- package/dist/AuditLogList-BqKDq3NZ.js +0 -492
- package/dist/PermissionSetList-BfCuoHa3.js +0 -327
- package/dist/PortalPermissionEditor.vue_vue_type_script_setup_true_lang-BYZbAUtK.js +0 -3334
- package/dist/TeamMemberList-BrZDh51J.js +0 -979
- package/dist/useRestaurantMap-D5BNPLKh.js +0 -107
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import type { IFdtoPortalPermissionsWithVisibilityCondition } from '@feedmepos/hrm-permission';
|
|
3
3
|
import type { FdoPermissionRule } from '@feedmepos/core/entity';
|
|
4
4
|
declare var __VLS_9: `checkbox-${string}-append`, __VLS_10: {
|
|
5
5
|
option: import("@/components/CheckboxInput.vue").CheckboxOption;
|
|
6
|
-
},
|
|
6
|
+
}, __VLS_37: `checkbox-${string}-append`, __VLS_38: {
|
|
7
7
|
option: {
|
|
8
8
|
label: string;
|
|
9
9
|
value: string;
|
|
@@ -12,7 +12,7 @@ declare var __VLS_9: `checkbox-${string}-append`, __VLS_10: {
|
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
13
|
[K in NonNullable<typeof __VLS_9>]?: (props: typeof __VLS_10) => any;
|
|
14
14
|
} & {
|
|
15
|
-
[K in NonNullable<typeof
|
|
15
|
+
[K in NonNullable<typeof __VLS_37>]?: (props: typeof __VLS_38) => any;
|
|
16
16
|
};
|
|
17
17
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
18
18
|
modelValue: {
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-
|
|
1
|
+
.user-info-icon[data-v-c2c7ed35]{flex-shrink:0;cursor:pointer;font-size:.75rem;font-weight:600;line-height:1rem;letter-spacing:.02em;text-decoration-line:none;color:var(--fm-color-neutral-white);display:flex;align-items:center;justify-content:center;background:linear-gradient(201deg,#fc9b40 10.3%,#ff6052 98.36%)}.user-info-icon--md[data-v-c2c7ed35]{height:2.25rem;width:2.25rem;border-radius:8px}.user-info-icon--lg[data-v-c2c7ed35]{height:48px;width:48px;border-radius:16px}.profile-menu[data-v-c2c7ed35]{width:280px;padding-top:12px;padding-bottom:12px}.profile-menu--profile[data-v-c2c7ed35]>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.profile-menu--profile[data-v-c2c7ed35]{padding:16px 16px 12px;border-radius:8px;display:flex;align-items:center;border-width:1px;border-color:var(--fm-color-neutral-gray-200)}.profile-menu--profile .profile-displayName[data-v-c2c7ed35]{font-size:1rem;font-weight:400;line-height:1.25rem;letter-spacing:.005em;text-decoration-line:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-menu--profile .profile-email[data-v-c2c7ed35],.profile-menu--profile .profile-phone[data-v-c2c7ed35]{font-size:.875rem;font-weight:400;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;color:var(--fm-color-neutral-gray-300);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-log-action-label{display:block;width:100%;max-width:100%;max-height:6.25rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.25rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-action-label::-webkit-scrollbar{display:none}.audit-log-operation-label-detail{max-height:6.875rem;overflow-y:auto;white-space:pre-line;word-break:break-word;line-height:1.375rem;scrollbar-width:none;-ms-overflow-style:none}.audit-log-operation-label-detail::-webkit-scrollbar{display:none}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as d } from "pinia";
|
|
2
2
|
import { ref as s, computed as o } from "vue";
|
|
3
|
-
import { t as f } from "./index-
|
|
3
|
+
import { t as f } from "./index-CUPMZ2Nm.js";
|
|
4
4
|
const I = d("team", () => {
|
|
5
5
|
const r = s([]), a = s(!1), m = o(
|
|
6
6
|
() => Object.fromEntries(r.value.map((e) => [e.doc.userId, e.name]))
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { d as i } from "./dayjs.min-
|
|
1
|
+
import { d as i } from "./dayjs.min-Cje6yZS4.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,
|
|
4
|
+
import { b as c, g as y, s as S } from "./iteration-tLtr3UA8.js";
|
|
5
|
+
import { i as u, b as g } from "./index-CUPMZ2Nm.js";
|
|
5
6
|
const f = {
|
|
6
7
|
async readTimesheets(t, e) {
|
|
7
8
|
return y(await c().get(`timesheet?start=${t}&end=${e}`));
|
|
@@ -11,17 +12,17 @@ const f = {
|
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
14
|
function A(t) {
|
|
14
|
-
const e = t.map((
|
|
15
|
-
const { startedAt: s, endedAt: a } =
|
|
15
|
+
const e = t.map((n) => {
|
|
16
|
+
const { startedAt: s, endedAt: a } = n, r = i(u(s)), o = a ? i(u(a)) : null, m = (o == null ? void 0 : o.diff(r, "minute", !1)) || 0, h = o ? g(m) : "", d = "YYYY-MM-DD hh:mm a";
|
|
16
17
|
return {
|
|
17
|
-
...
|
|
18
|
+
...n,
|
|
18
19
|
start: r.format(d),
|
|
19
|
-
end:
|
|
20
|
+
end: o ? o.format(d) : "",
|
|
20
21
|
totalMin: m,
|
|
21
22
|
duration: h
|
|
22
23
|
};
|
|
23
24
|
});
|
|
24
|
-
return
|
|
25
|
+
return S(e, { selector: "start" });
|
|
25
26
|
}
|
|
26
27
|
const D = p("timesheet", () => {
|
|
27
28
|
const t = l([]);
|
|
@@ -32,7 +33,7 @@ const D = p("timesheet", () => {
|
|
|
32
33
|
);
|
|
33
34
|
t.value = A(r);
|
|
34
35
|
}
|
|
35
|
-
async function
|
|
36
|
+
async function n(s, a, r) {
|
|
36
37
|
await f.updateTimesheet(s.restaurantId, {
|
|
37
38
|
id: s._id,
|
|
38
39
|
startAt: a,
|
|
@@ -42,7 +43,7 @@ const D = p("timesheet", () => {
|
|
|
42
43
|
return {
|
|
43
44
|
timesheets: t,
|
|
44
45
|
readTimesheet: e,
|
|
45
|
-
updateTimesheet:
|
|
46
|
+
updateTimesheet: n
|
|
46
47
|
};
|
|
47
48
|
}), M = () => {
|
|
48
49
|
const t = D();
|