@tesouro/embedded-components-react 0.11.71 → 0.11.73
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/README.md +1 -0
- package/dist/index.css +35 -192
- package/dist/index.d.ts +75 -71
- package/dist/lib/SettingsWidget.d.ts +5 -1
- package/dist/lib/WidgetSuite.d.ts +4 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index3.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index4.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index6.js +196 -131
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index3.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index4.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index5.js +38 -32
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index6.js +103 -75
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index7.js +140 -168
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/ui/dist/index8.js +97 -87
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +11 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index2.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index3.js +134 -177
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index4.js +110 -176
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index5.js +28 -38
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/ExpenseSettingsTabs/ExpenseSettingsTabs.js +13 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/lib/SettingsWidget/SettingsWidget.js +28 -24
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +35 -31
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index11.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index12.js +22 -36
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index17.js +54 -60
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index20.js +75 -60
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index3.js +42 -27
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index6.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/ui/dist/index9.js +39 -38
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js +32 -32
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index3.js +56 -71
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +86 -66
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index15.js +146 -132
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +95 -99
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index4.js +8 -27
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +69 -72
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index.js +9 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index10.js +83 -298
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index11.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +122 -75
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index13.js +41 -15
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index14.js +7 -131
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index15.js +147 -48
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js +240 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index17.js +15 -173
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index2.js +38 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index3.js +5 -46
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index4.js +52 -45
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js +101 -25
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index6.js +40 -98
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index7.js +415 -40
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index8.js +261 -332
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index9.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +136 -122
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +99 -100
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +10 -55
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index19.js +34 -8
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index20.js +8 -84
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index21.js +86 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index5.js +17 -18
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index7.js +33 -42
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/FileDropZone/FileDropZone.js +62 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +2302 -2284
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index18.js +0 -291
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index19.js +0 -22
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/avatarSwatch.js +0 -26
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js
CHANGED
|
@@ -2,33 +2,32 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import { useGroupAdmin as
|
|
7
|
-
import { useAllTeamMembersQuery as
|
|
8
|
-
import { useAllDepartmentsQuery as
|
|
9
|
-
import { useDepartmentMembersQuery as
|
|
10
|
-
import { useCreateDepartmentMutation as
|
|
5
|
+
import { buildMemberDirectory as e } from "./index4.js";
|
|
6
|
+
import { useGroupAdmin as t } from "./index5.js";
|
|
7
|
+
import { useAllTeamMembersQuery as n } from "../../data-access/dist/index14.js";
|
|
8
|
+
import { useAllDepartmentsQuery as r } from "../../data-access/dist/index17.js";
|
|
9
|
+
import { useDepartmentMembersQuery as i } from "../../data-access/dist/index18.js";
|
|
10
|
+
import { useCreateDepartmentMutation as a, useDeactivateDepartmentMutation as o, useDepartmentMembersMutation as s, useUpdateDepartmentMutation as c } from "../../data-access/dist/index19.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
|
-
import { useMemo as
|
|
12
|
+
import { useMemo as l } from "react";
|
|
13
13
|
// ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js
|
|
14
|
-
function
|
|
15
|
-
let
|
|
14
|
+
function u({ canRead: u, canWrite: d, featureLabels: f }) {
|
|
15
|
+
let p = n({
|
|
16
16
|
Status: "ALL",
|
|
17
|
-
enabled:
|
|
18
|
-
}),
|
|
19
|
-
return
|
|
20
|
-
canRead:
|
|
21
|
-
canWrite:
|
|
22
|
-
directory:
|
|
23
|
-
directoryReady:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
useEditMembers: (e) => a({
|
|
17
|
+
enabled: u
|
|
18
|
+
}), m = p.data?.data, h = l(() => e(m ?? []), [m]);
|
|
19
|
+
return t({
|
|
20
|
+
canRead: u,
|
|
21
|
+
canWrite: d,
|
|
22
|
+
directory: h,
|
|
23
|
+
directoryReady: p.isComplete,
|
|
24
|
+
useListQuery: () => r({ enabled: u }),
|
|
25
|
+
useEditMembers: (e) => i({
|
|
27
26
|
departmentId: e,
|
|
28
|
-
enabled:
|
|
27
|
+
enabled: d
|
|
29
28
|
}),
|
|
30
29
|
useMutations: () => {
|
|
31
|
-
let e =
|
|
30
|
+
let e = a(), t = c(), n = o(), r = s();
|
|
32
31
|
return {
|
|
33
32
|
create: (t) => e.mutateAsync({ name: t }),
|
|
34
33
|
rename: (e, n) => t.mutateAsync({
|
|
@@ -50,40 +49,41 @@ function d({ canRead: d, canWrite: f, featureLabels: p }) {
|
|
|
50
49
|
};
|
|
51
50
|
},
|
|
52
51
|
panelLabels: {
|
|
53
|
-
title:
|
|
54
|
-
addButton:
|
|
55
|
-
nameColumn:
|
|
56
|
-
assignedColumn:
|
|
57
|
-
actionsColumn:
|
|
58
|
-
editAction:
|
|
59
|
-
deleteAction:
|
|
60
|
-
emptyMessage:
|
|
61
|
-
loadingLabel:
|
|
62
|
-
errorTitle:
|
|
63
|
-
errorDescription:
|
|
64
|
-
rowActionsAriaLabel:
|
|
52
|
+
title: f.departmentsTitle,
|
|
53
|
+
addButton: f.departmentsAddButton,
|
|
54
|
+
nameColumn: f.groupNameColumn,
|
|
55
|
+
assignedColumn: f.groupAssignedColumn,
|
|
56
|
+
actionsColumn: f.groupActionsColumn,
|
|
57
|
+
editAction: f.groupEditAction,
|
|
58
|
+
deleteAction: f.departmentDeleteAction,
|
|
59
|
+
emptyMessage: f.departmentsEmpty,
|
|
60
|
+
loadingLabel: f.departmentsLoading,
|
|
61
|
+
errorTitle: f.departmentsErrorTitle,
|
|
62
|
+
errorDescription: f.departmentsErrorDescription,
|
|
63
|
+
rowActionsAriaLabel: f.groupRowActionsAriaLabel
|
|
65
64
|
},
|
|
66
65
|
drawerLabels: {
|
|
67
|
-
createTitle:
|
|
68
|
-
editTitle:
|
|
69
|
-
description:
|
|
70
|
-
nameLabel:
|
|
71
|
-
namePlaceholder:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
createTitle: f.departmentCreateTitle,
|
|
67
|
+
editTitle: f.departmentEditTitle,
|
|
68
|
+
description: f.departmentDrawerDescription,
|
|
69
|
+
nameLabel: f.departmentNameLabel,
|
|
70
|
+
namePlaceholder: f.departmentNamePlaceholder,
|
|
71
|
+
nameRequired: f.groupNameRequired,
|
|
72
|
+
membersLabel: f.groupMembersLabel,
|
|
73
|
+
membersSearchPlaceholder: f.groupMembersSearchPlaceholder,
|
|
74
|
+
membersEmptyMessage: f.groupMembersEmpty,
|
|
75
|
+
cancelButton: f.groupCancelButton,
|
|
76
|
+
saveButton: f.groupSaveButton,
|
|
77
|
+
close: f.groupCloseButton,
|
|
78
|
+
deleteButton: f.departmentDeleteAction
|
|
79
79
|
},
|
|
80
80
|
countLabels: {
|
|
81
|
-
memberSingular:
|
|
82
|
-
memberPlural:
|
|
83
|
-
noMembers:
|
|
81
|
+
memberSingular: f.groupMemberSingular,
|
|
82
|
+
memberPlural: f.groupMemberPlural,
|
|
83
|
+
noMembers: f.groupNoMembers
|
|
84
84
|
},
|
|
85
|
-
saveFailedMessage:
|
|
86
|
-
deleteFailedMessage:
|
|
85
|
+
saveFailedMessage: f.departmentSaveFailed,
|
|
86
|
+
deleteFailedMessage: f.departmentDeleteFailed
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
export {
|
|
89
|
+
export { u as useDepartmentsAdmin };
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index2.js";
|
|
2
2
|
import "./index4.js";
|
|
3
3
|
import "./index5.js";
|
|
4
4
|
import "./index6.js";
|
|
5
|
-
import "./index7.js";
|
|
6
|
-
import {
|
|
5
|
+
import { InviteTeamMemberForm as e } from "./index7.js";
|
|
6
|
+
import { EditTeamMemberPanel as t } from "./index8.js";
|
|
7
7
|
import "./index9.js";
|
|
8
|
-
import {
|
|
8
|
+
import { GroupAdminDrawer as n } from "./index10.js";
|
|
9
9
|
import "./index11.js";
|
|
10
|
-
import {
|
|
11
|
-
import "./index13.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { TeamMemberDetails as o } from "./index18.js";
|
|
16
|
-
import { TeamTabs as s } from "./index19.js";
|
|
10
|
+
import { GroupAdminPanel as r } from "./index12.js";
|
|
11
|
+
import { TeamActionDialog as i } from "./index13.js";
|
|
12
|
+
import { TeamMembersTable as a } from "./index15.js";
|
|
13
|
+
import { TeamMemberDetails as o } from "./index16.js";
|
|
14
|
+
import { TeamTabs as s } from "./index17.js";
|
|
17
15
|
export { t as EditTeamMemberPanel, n as GroupAdminDrawer, r as GroupAdminPanel, e as InviteTeamMemberForm, i as TeamActionDialog, o as TeamMemberDetails, a as TeamMembersTable, s as TeamTabs };
|
|
@@ -2,309 +2,94 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { InlineErrorAlert as a } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
5
|
+
import { Button as e, Combobox as t, FieldError as n, FieldRequirement as r, FormSheet as i, Input as a, Label as o, RequiredFieldsLegend as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { InlineErrorAlert as c } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
8
7
|
import "../../../../shared/ui/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { OptionalSelect as l } from "./index8.js";
|
|
13
|
-
import { statusToneClassName as u } from "./index9.js";
|
|
14
|
-
import { useEffect as d, useRef as f } from "react";
|
|
15
|
-
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
16
|
-
import { ArrowLeftIcon as g, LockIcon as _ } from "lucide-react";
|
|
8
|
+
import { DEFAULT_GROUP_ADMIN_DRAWER_LABELS as l } from "./index9.js";
|
|
9
|
+
import { useId as u, useRef as d } from "react";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
17
11
|
// ../../libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index10.js
|
|
18
|
-
function
|
|
19
|
-
let
|
|
20
|
-
...
|
|
21
|
-
...
|
|
22
|
-
},
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
children: C
|
|
57
|
-
}) : null]
|
|
58
|
-
}), /* @__PURE__ */ h("div", {
|
|
59
|
-
className: "ttw:mt-1 ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:text-muted-foreground",
|
|
60
|
-
children: [w ? /* @__PURE__ */ m(e, {
|
|
61
|
-
className: u(T),
|
|
62
|
-
children: w
|
|
63
|
-
}) : null, E ? /* @__PURE__ */ h(p, { children: [
|
|
64
|
-
/* @__PURE__ */ m("span", {
|
|
65
|
-
"aria-hidden": !0,
|
|
66
|
-
children: "|"
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ m("span", { children: Q.detailsLastSignInLabel }),
|
|
69
|
-
/* @__PURE__ */ m("span", { children: E })
|
|
70
|
-
] }) : null]
|
|
71
|
-
})]
|
|
72
|
-
})]
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ m("form", {
|
|
75
|
-
noValidate: !0,
|
|
76
|
-
className: "ttw:mt-4",
|
|
77
|
-
onSubmit: (e) => {
|
|
78
|
-
e.preventDefault(), ne();
|
|
79
|
-
},
|
|
80
|
-
children: /* @__PURE__ */ h("fieldset", {
|
|
81
|
-
className: "ttw:space-y-8",
|
|
82
|
-
disabled: W,
|
|
12
|
+
function m({ open: m, isEditMode: h, name: g, onNameChange: _, options: v, selectedOptions: y, onSelectedOptionsChange: b, isSaveDisabled: x = !1, nameError: S, submitErrorMessage: C, onOpenChange: w, onSubmit: T, onDelete: E, labels: D }) {
|
|
13
|
+
let O = {
|
|
14
|
+
...l,
|
|
15
|
+
...D
|
|
16
|
+
}, k = u(), A = `${k}-name`, j = d(null), M = `${k}-members`;
|
|
17
|
+
return /* @__PURE__ */ f(i, {
|
|
18
|
+
open: m,
|
|
19
|
+
onOpenChange: w,
|
|
20
|
+
title: h ? O.editTitle : O.createTitle,
|
|
21
|
+
description: O.description,
|
|
22
|
+
onDelete: h ? E : void 0,
|
|
23
|
+
labels: {
|
|
24
|
+
close: O.close,
|
|
25
|
+
delete: O.deleteButton
|
|
26
|
+
},
|
|
27
|
+
secondaryAction: /* @__PURE__ */ f(e, {
|
|
28
|
+
type: "button",
|
|
29
|
+
variant: "ghost",
|
|
30
|
+
onClick: () => w(!1),
|
|
31
|
+
children: O.cancelButton
|
|
32
|
+
}),
|
|
33
|
+
primaryAction: /* @__PURE__ */ f(e, {
|
|
34
|
+
type: "submit",
|
|
35
|
+
form: k,
|
|
36
|
+
disabled: x,
|
|
37
|
+
children: O.saveButton
|
|
38
|
+
}),
|
|
39
|
+
children: /* @__PURE__ */ p("form", {
|
|
40
|
+
id: k,
|
|
41
|
+
noValidate: !0,
|
|
42
|
+
onSubmit: (e) => {
|
|
43
|
+
e.preventDefault(), g.trim() || j.current?.focus(), T();
|
|
44
|
+
},
|
|
45
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:py-4",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ f(s, {}),
|
|
48
|
+
/* @__PURE__ */ p("div", {
|
|
49
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
83
50
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
89
|
-
children: Q.inviteDetailsSectionHeading
|
|
90
|
-
}), /* @__PURE__ */ m("p", {
|
|
91
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
|
|
92
|
-
children: Q.editDescription
|
|
93
|
-
})] }),
|
|
94
|
-
/* @__PURE__ */ h("div", {
|
|
95
|
-
className: "ttw:space-y-2",
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ m(r, {
|
|
98
|
-
htmlFor: "team-edit-name",
|
|
99
|
-
children: Q.editNameLabel
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */ h("div", {
|
|
102
|
-
className: "ttw:relative",
|
|
103
|
-
children: [/* @__PURE__ */ m(n, {
|
|
104
|
-
id: "team-edit-name",
|
|
105
|
-
name: "name",
|
|
106
|
-
autoComplete: "name",
|
|
107
|
-
value: D.name,
|
|
108
|
-
disabled: W || G,
|
|
109
|
-
className: G ? "ttw:pr-9" : void 0,
|
|
110
|
-
"aria-invalid": H?.name ? !0 : void 0,
|
|
111
|
-
"aria-describedby": H?.name ? "team-edit-name-error" : void 0,
|
|
112
|
-
onChange: (e) => Z({
|
|
113
|
-
...D,
|
|
114
|
-
name: e.target.value
|
|
115
|
-
})
|
|
116
|
-
}), G && /* @__PURE__ */ m(_, {
|
|
117
|
-
"aria-hidden": !0,
|
|
118
|
-
className: "ttw:pointer-events-none ttw:absolute ttw:top-1/2 ttw:right-3 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground"
|
|
119
|
-
})]
|
|
120
|
-
}),
|
|
121
|
-
H?.name && /* @__PURE__ */ m("p", {
|
|
122
|
-
id: "team-edit-name-error",
|
|
123
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
124
|
-
children: H.name
|
|
125
|
-
})
|
|
126
|
-
]
|
|
127
|
-
}),
|
|
128
|
-
/* @__PURE__ */ h("div", {
|
|
129
|
-
className: "ttw:space-y-2",
|
|
130
|
-
children: [/* @__PURE__ */ m(r, {
|
|
131
|
-
htmlFor: "team-edit-email",
|
|
132
|
-
children: Q.editEmailLabel
|
|
133
|
-
}), /* @__PURE__ */ h("div", {
|
|
134
|
-
className: "ttw:relative",
|
|
135
|
-
children: [/* @__PURE__ */ m(n, {
|
|
136
|
-
id: "team-edit-email",
|
|
137
|
-
name: "email",
|
|
138
|
-
type: "email",
|
|
139
|
-
value: b,
|
|
140
|
-
disabled: !0,
|
|
141
|
-
readOnly: !0,
|
|
142
|
-
className: "ttw:pr-9"
|
|
143
|
-
}), /* @__PURE__ */ m(_, {
|
|
144
|
-
"aria-hidden": !0,
|
|
145
|
-
className: "ttw:pointer-events-none ttw:absolute ttw:top-1/2 ttw:right-3 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground"
|
|
146
|
-
})]
|
|
147
|
-
})]
|
|
148
|
-
}),
|
|
149
|
-
/* @__PURE__ */ m(l, {
|
|
150
|
-
id: "team-edit-department",
|
|
151
|
-
label: Q.inviteDepartmentLabel,
|
|
152
|
-
value: D.department,
|
|
153
|
-
options: te,
|
|
154
|
-
placeholder: Q.inviteDepartmentPlaceholder,
|
|
155
|
-
emptyMessage: Q.inviteDepartmentEmpty,
|
|
156
|
-
loadingMessage: Q.inviteOptionsLoading,
|
|
157
|
-
noneLabel: Q.inviteOptionNone,
|
|
158
|
-
disabled: q,
|
|
159
|
-
isLoading: j,
|
|
160
|
-
isError: P,
|
|
161
|
-
errorMessage: Q.inviteDepartmentLoadError,
|
|
162
|
-
errorHelper: Q.inviteDepartmentLoadErrorHelper,
|
|
163
|
-
emptyHelper: Q.inviteDepartmentEmptyHelper,
|
|
164
|
-
onValueChange: (e) => Z({
|
|
165
|
-
...D,
|
|
166
|
-
department: e
|
|
167
|
-
})
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ m(l, {
|
|
170
|
-
id: "team-edit-location",
|
|
171
|
-
label: Q.inviteLocationLabel,
|
|
172
|
-
value: D.location,
|
|
173
|
-
options: k,
|
|
174
|
-
placeholder: Q.inviteLocationPlaceholder,
|
|
175
|
-
emptyMessage: Q.inviteLocationEmpty,
|
|
176
|
-
loadingMessage: Q.inviteOptionsLoading,
|
|
177
|
-
noneLabel: Q.inviteOptionNone,
|
|
178
|
-
disabled: q,
|
|
179
|
-
isLoading: M,
|
|
180
|
-
isError: F,
|
|
181
|
-
errorMessage: Q.inviteLocationLoadError,
|
|
182
|
-
errorHelper: Q.inviteLocationLoadErrorHelper,
|
|
183
|
-
emptyHelper: Q.inviteLocationEmptyHelper,
|
|
184
|
-
onValueChange: (e) => Z({
|
|
185
|
-
...D,
|
|
186
|
-
location: e
|
|
187
|
-
})
|
|
188
|
-
}),
|
|
189
|
-
/* @__PURE__ */ m(l, {
|
|
190
|
-
id: "team-edit-reporting-manager",
|
|
191
|
-
label: Q.inviteReportingManagerLabel,
|
|
192
|
-
value: D.reportingManager,
|
|
193
|
-
options: A,
|
|
194
|
-
placeholder: Q.inviteReportingManagerPlaceholder,
|
|
195
|
-
emptyMessage: Q.inviteReportingManagerEmpty,
|
|
196
|
-
loadingMessage: Q.inviteOptionsLoading,
|
|
197
|
-
noneLabel: Q.inviteOptionNone,
|
|
198
|
-
disabled: J,
|
|
199
|
-
isLoading: N,
|
|
200
|
-
isError: I,
|
|
201
|
-
errorMessage: Q.inviteReportingManagerLoadError,
|
|
202
|
-
errorHelper: Q.inviteReportingManagerLoadErrorHelper,
|
|
203
|
-
emptyHelper: Q.inviteReportingManagerEmptyHelper,
|
|
204
|
-
readyHelper: Q.inviteReportingManagerHelper,
|
|
205
|
-
searchable: !0,
|
|
206
|
-
searchPlaceholder: Q.inviteReportingManagerSearchPlaceholder,
|
|
207
|
-
noResultsLabel: Q.inviteReportingManagerNoResults,
|
|
208
|
-
onValueChange: (e) => Z({
|
|
209
|
-
...D,
|
|
210
|
-
reportingManager: e
|
|
211
|
-
})
|
|
212
|
-
})
|
|
213
|
-
]
|
|
214
|
-
}),
|
|
215
|
-
/* @__PURE__ */ h("div", {
|
|
216
|
-
className: "ttw:space-y-2",
|
|
217
|
-
children: [
|
|
218
|
-
/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h4", {
|
|
219
|
-
id: "team-edit-role-heading",
|
|
220
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
221
|
-
children: Q.inviteRoleSectionHeading
|
|
222
|
-
}), /* @__PURE__ */ m("p", {
|
|
223
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
|
|
224
|
-
children: Q.inviteRoleSectionDescription
|
|
225
|
-
})] }),
|
|
226
|
-
/* @__PURE__ */ m(c, {
|
|
227
|
-
idPrefix: "team-edit-role",
|
|
228
|
-
options: O,
|
|
229
|
-
value: D.role,
|
|
230
|
-
disabled: K,
|
|
231
|
-
onValueChange: (e) => Z({
|
|
232
|
-
...D,
|
|
233
|
-
role: e
|
|
234
|
-
}),
|
|
235
|
-
ariaLabelledBy: "team-edit-role-heading",
|
|
236
|
-
ariaInvalid: !!H?.role,
|
|
237
|
-
ariaDescribedBy: H?.role ? "team-edit-role-error" : void 0
|
|
238
|
-
}),
|
|
239
|
-
H?.role && /* @__PURE__ */ m("p", {
|
|
240
|
-
id: "team-edit-role-error",
|
|
241
|
-
className: "ttw:text-sm ttw:text-destructive",
|
|
242
|
-
children: H.role
|
|
243
|
-
})
|
|
244
|
-
]
|
|
51
|
+
/* @__PURE__ */ f(o, {
|
|
52
|
+
htmlFor: A,
|
|
53
|
+
requirement: r.Required,
|
|
54
|
+
children: O.nameLabel
|
|
245
55
|
}),
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:py-2",
|
|
256
|
-
children: [/* @__PURE__ */ m(i, { className: "ttw:size-4" }), /* @__PURE__ */ m("span", {
|
|
257
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
258
|
-
children: Q.manageAccessLoadingLabel
|
|
259
|
-
})]
|
|
260
|
-
}) : V ? /* @__PURE__ */ m(a, { children: V }) : null]
|
|
56
|
+
/* @__PURE__ */ f(a, {
|
|
57
|
+
id: A,
|
|
58
|
+
ref: j,
|
|
59
|
+
"aria-invalid": !!S,
|
|
60
|
+
"aria-describedby": S ? `${A}-error` : void 0,
|
|
61
|
+
required: !0,
|
|
62
|
+
value: g,
|
|
63
|
+
placeholder: O.namePlaceholder,
|
|
64
|
+
onChange: (e) => _(e.target.value)
|
|
261
65
|
}),
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
children:
|
|
265
|
-
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
266
|
-
children: Q.inviteAccountAccessSectionHeading
|
|
267
|
-
}), /* @__PURE__ */ m("p", {
|
|
268
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-muted-foreground",
|
|
269
|
-
children: Q.inviteAccountAccessSectionDescription
|
|
270
|
-
})] }), B ? /* @__PURE__ */ h("div", {
|
|
271
|
-
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:py-2",
|
|
272
|
-
children: [/* @__PURE__ */ m(i, { className: "ttw:size-4" }), /* @__PURE__ */ m("span", {
|
|
273
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
274
|
-
children: Q.manageAccessLoadingLabel
|
|
275
|
-
})]
|
|
276
|
-
}) : V ? /* @__PURE__ */ m(a, { children: V }) : /* @__PURE__ */ m(o, {
|
|
277
|
-
rows: R,
|
|
278
|
-
onToggle: (e, t) => z?.(e, t),
|
|
279
|
-
disabled: W || L === "admin",
|
|
280
|
-
note: L === "admin" ? Q.manageAccessAdminNote : void 0,
|
|
281
|
-
emptyMessage: Q.manageAccessAccountsEmpty,
|
|
282
|
-
labels: {
|
|
283
|
-
accountNameColumn: Q.accountAccessNameColumn,
|
|
284
|
-
accessColumn: Q.accountAccessAccessColumn,
|
|
285
|
-
toggleAriaLabel: Q.accountAccessToggleLabel
|
|
286
|
-
}
|
|
287
|
-
})]
|
|
288
|
-
}),
|
|
289
|
-
U && /* @__PURE__ */ m(a, { children: U }),
|
|
290
|
-
/* @__PURE__ */ h("div", {
|
|
291
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
292
|
-
children: [/* @__PURE__ */ m(t, {
|
|
293
|
-
type: "button",
|
|
294
|
-
variant: "ghost",
|
|
295
|
-
onClick: () => X(!1),
|
|
296
|
-
children: Q.editCancelButton
|
|
297
|
-
}), /* @__PURE__ */ m(t, {
|
|
298
|
-
type: "submit",
|
|
299
|
-
loading: W,
|
|
300
|
-
disabled: Y,
|
|
301
|
-
children: Q.editSaveButton
|
|
302
|
-
})]
|
|
66
|
+
/* @__PURE__ */ f(n, {
|
|
67
|
+
id: `${A}-error`,
|
|
68
|
+
children: S
|
|
303
69
|
})
|
|
304
70
|
]
|
|
305
|
-
})
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ p("div", {
|
|
73
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
74
|
+
children: [/* @__PURE__ */ f(o, {
|
|
75
|
+
htmlFor: M,
|
|
76
|
+
requirement: r.Optional,
|
|
77
|
+
children: O.membersLabel
|
|
78
|
+
}), /* @__PURE__ */ f(t, {
|
|
79
|
+
inputId: M,
|
|
80
|
+
multiple: !0,
|
|
81
|
+
items: v,
|
|
82
|
+
value: y,
|
|
83
|
+
labels: {
|
|
84
|
+
placeholder: O.membersSearchPlaceholder,
|
|
85
|
+
emptyMessage: O.membersEmptyMessage
|
|
86
|
+
},
|
|
87
|
+
onValueChange: b
|
|
88
|
+
})]
|
|
89
|
+
}),
|
|
90
|
+
C ? /* @__PURE__ */ f(c, { children: C }) : null
|
|
91
|
+
]
|
|
92
|
+
})
|
|
93
|
+
});
|
|
309
94
|
}
|
|
310
|
-
export {
|
|
95
|
+
export { m as GroupAdminDrawer, m as default };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index11.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
title: "Groups",
|
|
4
|
+
addButton: "Add",
|
|
5
|
+
nameColumn: "Name",
|
|
6
|
+
assignedColumn: "Assigned",
|
|
7
|
+
actionsColumn: "Actions",
|
|
8
|
+
editAction: "Edit",
|
|
9
|
+
deleteAction: "Delete",
|
|
10
|
+
emptyMessage: "No groups found.",
|
|
11
|
+
loadingLabel: "Loading groups",
|
|
12
|
+
errorTitle: "Unable to load",
|
|
13
|
+
errorDescription: "Something went wrong. Please try again.",
|
|
14
|
+
rowActionsAriaLabel: "Actions for"
|
|
15
15
|
};
|
|
16
|
-
export { e as
|
|
16
|
+
export { e as DEFAULT_GROUP_ADMIN_PANEL_LABELS };
|