@tesouro/embedded-components-react 0.5.12 → 0.5.13
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 -1
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index3.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/feature/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/feature/dist/index8.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/ui/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/ui/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index2.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index2.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index3.js +0 -14
- /package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{gl-code-table-widget → settings-widget/chart-of-accounts}/ui/dist/index.js +0 -0
package/README.md
CHANGED
|
@@ -527,7 +527,7 @@ A composite settings widget that combines Monite document settings, tags, GL cod
|
|
|
527
527
|
| `teamContent` | `ReactNode` | Empty | Supplies the team section content. |
|
|
528
528
|
| `invoiceContent` | `ReactNode` | Monite template settings | Replaces invoice settings content. |
|
|
529
529
|
| `billPayContent` | `ReactNode` | Monite approval policies | Replaces bill-pay settings content. |
|
|
530
|
-
| `accountingContent` | `ReactNode` |
|
|
530
|
+
| `accountingContent` | `ReactNode` | Chart of accounts widget | Replaces accounting content. |
|
|
531
531
|
| `tagsContent` | `ReactNode` | Monite tags | Replaces tags content. |
|
|
532
532
|
| `expenseContent` | `ReactNode` | Expense policies and requirements | Replaces expense content. |
|
|
533
533
|
| `profileContactUrl` | `string` | `undefined` | Forwarded to the Profile section's widget — where its "to change this information, contact your bank" line links. Left unset, the card shows the plain unlinked sentence instead; the bank name comes from widget init. |
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useLedgerAccountsQuery as e } from "
|
|
2
|
-
import "
|
|
1
|
+
import { useLedgerAccountsQuery as e } from "../../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
2
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
3
3
|
import "./index2.js";
|
|
4
4
|
import { useCreateLedgerAccountMutation as t, useDeleteLedgerAccountMutation as n, useUpdateLedgerAccountMutation as r } from "./index3.js";
|
|
5
5
|
export { t as useCreateLedgerAccountMutation, n as useDeleteLedgerAccountMutation, e as useGetLedgerAccountsQuery, r as useUpdateLedgerAccountMutation };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getLedgerAccountsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as ledgerAccountsInvalidationKey };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { deleteLedgerAccountsIdMutation as r, patchLedgerAccountsIdMutation as i, postLedgerAccountsMutation as a } from "
|
|
9
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { deleteLedgerAccountsIdMutation as r, patchLedgerAccountsIdMutation as i, postLedgerAccountsMutation as a } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { ledgerAccountsInvalidationKey as o } from "./index2.js";
|
|
11
11
|
import { useMutation as s } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js
|
|
13
13
|
function c() {
|
|
14
14
|
let { client: r, organizationId: i } = t(), c = n(i), l = s({
|
|
15
15
|
...a({
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SETTINGS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index2.js
|
|
3
|
+
var t = `${e}.chart_of_accounts`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as ChartOfAccountsAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
2
|
+
import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index3.js
|
|
5
|
+
var n = [t.AccountingConfigReadOrg], r = [t.AccountingConfigWriteOrg];
|
|
6
|
+
function i(t) {
|
|
7
|
+
let i = new Set(t ?? []);
|
|
8
|
+
return {
|
|
9
|
+
canRead: e(i, n),
|
|
10
|
+
canWrite: e(i, r)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as getChartOfAccountsPermissions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../ui/dist/index.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index4.js
|
|
3
3
|
var e = {
|
|
4
4
|
name: 500,
|
|
5
5
|
nominalCode: 20,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index5.js
|
|
2
2
|
var e = {
|
|
3
3
|
nameRequired: "Enter a name",
|
|
4
4
|
glCodeRequired: "Enter a GL code",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ACCOUNT_FIELD_LIMITS as e } from "./index4.js";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index6.js
|
|
3
3
|
function t(e, t) {
|
|
4
4
|
return e.replace("{max}", () => String(t));
|
|
5
5
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "
|
|
6
|
-
import "
|
|
7
|
-
import { extractApiErrorMessage as t } from "
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import "../../../../shared/ui/dist/index.js";
|
|
7
|
+
import { extractApiErrorMessage as t } from "../../../../shared/util/dist/lib/apiErrors.js";
|
|
8
8
|
import { CHART_OF_ACCOUNTS_MESSAGE_LABELS_EN as n } from "./index5.js";
|
|
9
9
|
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as r, ACCOUNT_FORM_SHEET_LABELS_EN as i } from "../../ui/dist/index2.js";
|
|
10
10
|
import "../../ui/dist/index.js";
|
|
@@ -13,7 +13,7 @@ import { hasFormErrors as o, validateAccountForm as s } from "./index6.js";
|
|
|
13
13
|
import { useCreateLedgerAccountMutation as c, useDeleteLedgerAccountMutation as l, useUpdateLedgerAccountMutation as u } from "../../data-access/dist/index3.js";
|
|
14
14
|
import "../../data-access/dist/index.js";
|
|
15
15
|
import { useCallback as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
16
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
16
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js
|
|
17
17
|
var h = {
|
|
18
18
|
name: "",
|
|
19
19
|
nominal_code: "",
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useLedgerAccountsQuery as e } from "
|
|
6
|
-
import { EmbeddedToaster as t } from "
|
|
7
|
-
import "
|
|
8
|
-
import { useAnalyticsTrack as n } from "
|
|
9
|
-
import { WidgetProvider as r } from "
|
|
10
|
-
import { useWidgetConfig as i } from "
|
|
11
|
-
import "
|
|
12
|
-
import {
|
|
5
|
+
import { useLedgerAccountsQuery as e } from "../../../../shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js";
|
|
6
|
+
import { EmbeddedToaster as t } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
7
|
+
import "../../../../shared/ui/dist/index.js";
|
|
8
|
+
import { useAnalyticsTrack as n } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
9
|
+
import { WidgetProvider as r } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
10
|
+
import { useWidgetConfig as i } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
|
+
import "../../../../shared/feature/dist/index.js";
|
|
12
|
+
import { ChartOfAccountsAnalyticsEvent as a, WIDGET_NAME as o } from "./index2.js";
|
|
13
13
|
import { getChartOfAccountsPermissions as s } from "./index3.js";
|
|
14
14
|
import { ChartOfAccountsTable as c } from "../../ui/dist/index3.js";
|
|
15
15
|
import { AccountFormSheet as l } from "../../ui/dist/index4.js";
|
|
@@ -19,7 +19,7 @@ import "../../data-access/dist/index.js";
|
|
|
19
19
|
import { useChartOfAccountsCrud as d } from "./index7.js";
|
|
20
20
|
import { useCallback as f, useEffect as p, useMemo as m, useState as h } from "react";
|
|
21
21
|
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
22
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
22
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index8.js
|
|
23
23
|
var y = [
|
|
24
24
|
10,
|
|
25
25
|
25,
|
|
@@ -75,7 +75,7 @@ function b({ onEdit: r, onDelete: o, onAdd: b, screenLabels: x, formLabels: S, d
|
|
|
75
75
|
hasPrevPage: !!U?.prev_pagination_token,
|
|
76
76
|
onNextPage: q,
|
|
77
77
|
onPrevPage: J,
|
|
78
|
-
emptyStateTestId: "
|
|
78
|
+
emptyStateTestId: "chart-of-accounts-empty-state",
|
|
79
79
|
onEdit: A,
|
|
80
80
|
onDelete: j,
|
|
81
81
|
onAdd: M
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
3
|
subtitle: "An organized list of every account your business uses to record its financial transactions in its general ledger.",
|
|
4
4
|
columnGlCode: "GL code",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a, Skeleton as o, Table as s, TableBody as c, TableCell as l, TableHead as u, TableHeader as d, TableRow as f } from "
|
|
1
|
+
import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a, Skeleton as o, Table as s, TableBody as c, TableCell as l, TableHead as u, TableHeader as d, TableRow as f } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { CHART_OF_ACCOUNTS_LABELS_EN as p } from "./index2.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
5
5
|
import { AlertCircleIcon as _, ArrowDownIcon as v, ArrowUpDownIcon as y, ArrowUpIcon as b, FileTextIcon as x, MoreVerticalIcon as S, PencilIcon as C, PlusIcon as w, Trash2Icon as T } from "lucide-react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index3.js
|
|
7
7
|
function E({ labels: e }) {
|
|
8
8
|
return /* @__PURE__ */ g("div", {
|
|
9
9
|
className: "ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:px-4 ttw:py-14 ttw:text-center",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i, Input as a, Label as o, Sheet as s, SheetClose as c, SheetContent as l, SheetDescription as u, SheetFooter as d, SheetHeader as f, SheetTitle as p, Textarea as m, Tooltip as h, TooltipContent as g, TooltipProvider as _, TooltipTrigger as v } from "
|
|
1
|
+
import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i, Input as a, Label as o, Sheet as s, SheetClose as c, SheetContent as l, SheetDescription as u, SheetFooter as d, SheetHeader as f, SheetTitle as p, Textarea as m, Tooltip as h, TooltipContent as g, TooltipProvider as _, TooltipTrigger as v } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { ACCOUNT_FORM_SHEET_LABELS_EN as y } from "./index2.js";
|
|
3
3
|
import { useId as b } from "react";
|
|
4
4
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
5
5
|
import { MoreVerticalIcon as C, Trash2Icon as w, XIcon as T } from "lucide-react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index4.js
|
|
7
7
|
function E({ open: E, onOpenChange: D, title: O, description: k, values: A, errors: j, inProgress: M, submitDisabled: N, descriptionCounterText: P, onNameChange: F, onGlCodeChange: I, onDescriptionChange: L, onSubmit: R, onCancel: z, onDelete: B, labels: V }) {
|
|
8
8
|
let H = {
|
|
9
9
|
...y,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AlertDialog as e, AlertDialogCancel as t, AlertDialogContent as n, AlertDialogDescription as r, AlertDialogFooter as i, AlertDialogHeader as a, AlertDialogTitle as o, Button as s } from "
|
|
1
|
+
import { AlertDialog as e, AlertDialogCancel as t, AlertDialogContent as n, AlertDialogDescription as r, AlertDialogFooter as i, AlertDialogHeader as a, AlertDialogTitle as o, Button as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { ACCOUNT_DELETE_DIALOG_LABELS_EN as c } from "./index2.js";
|
|
3
3
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index5.js
|
|
5
5
|
function d({ open: d, onOpenChange: f, title: p, message: m, isDeleting: h, error: g, onConfirm: _, onCancel: v, labels: y }) {
|
|
6
6
|
let b = {
|
|
7
7
|
...c,
|
|
@@ -23,8 +23,8 @@ import { TeamWidget as m } from "../../../team-widget/feature/dist/index17.js";
|
|
|
23
23
|
import "../../../team-widget/feature/dist/index.js";
|
|
24
24
|
import { SettingsWidgetUi as h } from "../../ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js";
|
|
25
25
|
import "../../ui/dist/index.js";
|
|
26
|
-
import { ChartOfAccountsWidget as g } from "
|
|
27
|
-
import "
|
|
26
|
+
import { ChartOfAccountsWidget as g } from "../../chart-of-accounts/feature/dist/index8.js";
|
|
27
|
+
import "../../chart-of-accounts/feature/dist/index.js";
|
|
28
28
|
import { HelpWidget as _ } from "../../../help-widget/feature/dist/index3.js";
|
|
29
29
|
import "../../../help-widget/feature/dist/index.js";
|
|
30
30
|
import { ProfileWidget as v } from "../../profile/feature/dist/index4.js";
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.13", n = "58e919c9cd57cd466c01c0de9fcc47169dfd8279", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index2.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
-
import { getLedgerAccountsQueryKey as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
-
import "../../../shared/data-access/dist/index.js";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/gl-code-table-widget/data-access/dist/index2.js
|
|
5
|
-
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
-
client: n,
|
|
7
|
-
headers: e(r)
|
|
8
|
-
});
|
|
9
|
-
//#endregion
|
|
10
|
-
export { n as ledgerAccountsInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index3.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
2
|
-
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
3
|
-
import "../../../shared/data-access/dist/index.js";
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index3.js
|
|
5
|
-
var n = [t.AccountingConfigReadOrg], r = [t.AccountingConfigWriteOrg];
|
|
6
|
-
function i(t) {
|
|
7
|
-
let i = new Set(t ?? []);
|
|
8
|
-
return {
|
|
9
|
-
canRead: e(i, n),
|
|
10
|
-
canWrite: e(i, r)
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { i as getChartOfAccountsPermissions };
|
|
File without changes
|