@protobase/ui 0.63.4 → 0.63.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/account/devices-section.js +1 -1
- package/dist/account/passkeys-section.js +1 -1
- package/dist/account/staff-sign-in-log.js +1 -1
- package/dist/activity-chart/activity-chart.js +1 -1
- package/dist/activity-chart/activity-tooltip.js +1 -1
- package/dist/app/app.js +1 -1
- package/dist/app/change-confirm/use-change-confirm.js +15 -18
- package/dist/app/charts/chart-view.js +1 -1
- package/dist/app/comments/comment-composer.js +1 -1
- package/dist/app/comments/comments-section.js +2 -2
- package/dist/app/create/create-record-form.js +1 -1
- package/dist/app/custom-section.js +1 -1
- package/dist/app/delete/use-delete-flow.js +1 -1
- package/dist/app/displays/board-column.js +1 -1
- package/dist/app/displays/calendar-display.js +1 -1
- package/dist/app/displays/cards-display.js +1 -1
- package/dist/app/displays/list-cards.js +1 -1
- package/dist/app/displays/timeline-display.js +1 -1
- package/dist/app/displays/use-board-move.js +1 -1
- package/dist/app/displays/use-calendar-move.js +1 -1
- package/dist/app/embedded-list/embedded-list.js +1 -1
- package/dist/app/field-editor.js +2 -2
- package/dist/app/gallery/gallery-section.js +1 -1
- package/dist/app/gallery/photo-details.js +1 -1
- package/dist/app/hand-order/hand-sorted-list.js +1 -1
- package/dist/app/hand-order/use-hand-order.js +1 -1
- package/dist/app/history/history-section.js +1 -1
- package/dist/app/incoming-card.js +1 -1
- package/dist/app/list-edit/use-list-edits.js +1 -1
- package/dist/app/new-version/new-version-toast.js +1 -1
- package/dist/app/pages/blocks/field.js +1 -1
- package/dist/app/pages/blocks/modal-form.js +2 -2
- package/dist/app/pages/blocks/settings.js +2 -2
- package/dist/app/pages/record-actions.js +1 -1
- package/dist/app/pages/use-run-action.js +1 -1
- package/dist/app/picker/picker-combobox.js +1 -1
- package/dist/app/record-chart/record-chart-section.js +2 -2
- package/dist/app/record-lines.js +3 -3
- package/dist/app/record-page.js +5 -5
- package/dist/app/record-row/record-row-body.js +1 -1
- package/dist/app/record-row/record-row.js +1 -1
- package/dist/app/record-row/saved-record-row.js +1 -1
- package/dist/app/related-cards/related-card.js +1 -1
- package/dist/app/related-cards/related-cards.js +1 -1
- package/dist/app/related-section.js +1 -1
- package/dist/app/saved/saved-list.js +1 -1
- package/dist/app/searches/saved-search-rows.js +1 -1
- package/dist/app/searches/saved-search-section.js +1 -1
- package/dist/app/searches/saved-searches.js +1 -1
- package/dist/app/searches/search-controls.js +1 -1
- package/dist/app/searches/update-search-dialog.js +1 -1
- package/dist/app/searches/use-save-search.js +1 -1
- package/dist/app/sensitive-field.js +1 -1
- package/dist/app-shell/profile-menu.js +2 -2
- package/dist/auth/forgot-password-form.js +1 -1
- package/dist/auth/sign-in-form.js +1 -1
- package/dist/calls/call-guests-panel.js +1 -1
- package/dist/calls/call-rings.js +1 -1
- package/dist/chat/chat-message.js +1 -1
- package/dist/data-grid/cell-text.js +2 -2
- package/dist/data-grid/cells.js +2 -2
- package/dist/data-grid/grid-row.js +1 -1
- package/dist/forms/public-form-page.js +1 -1
- package/dist/index.js +3 -3
- package/dist/inline-child-table/messages.js +2 -18
- package/dist/notifications/bell/notification-item.js +1 -1
- package/dist/organizations/invitation-page.js +1 -1
- package/dist/package.js +1 -1
- package/dist/primitives/dialog.d.ts +7 -2
- package/dist/primitives/dialog.js +9 -4
- package/dist/record-view/field.js +1 -1
- package/dist/record-view/messages.js +0 -4
- package/dist/record-view/record-header.js +2 -2
- package/dist/shell/assets/app-BPv_SjnU.js +9 -0
- package/dist/shell/assets/{calls-BIXaKTs0.js → calls-CPiQcC70.js} +2 -2
- package/dist/shell/assets/index-Or2wt-ck.css +2 -0
- package/dist/shell/assets/{index-BshKxX1Z.js → index-_ZpZ2ro0.js} +2 -2
- package/dist/shell/assets/{records-map-D1SJKyvj.js → records-map-DU29d6QK.js} +2 -2
- package/dist/shell/assets/shared-protobase-ui-Cab5nqST.js +2 -0
- package/dist/shell/assets/{vendor-xNCj9Gc_.js → vendor-iwLB0x-s.js} +39 -39
- package/dist/shell/index.html +5 -5
- package/dist/shell/protobase.shell.json +2 -2
- package/dist/shell/protobase.sw.js +2 -2
- package/dist/shell-source-maps/assets/app-BPv_SjnU.js.map +1 -0
- package/dist/shell-source-maps/assets/{calls-BIXaKTs0.js.map → calls-CPiQcC70.js.map} +1 -1
- package/dist/shell-source-maps/assets/{index-BshKxX1Z.js.map → index-_ZpZ2ro0.js.map} +1 -1
- package/dist/shell-source-maps/assets/{records-map-D1SJKyvj.js.map → records-map-DU29d6QK.js.map} +1 -1
- package/dist/shell-source-maps/assets/{shared-protobase-ui-DibYt-TM.js.map → shared-protobase-ui-Cab5nqST.js.map} +1 -1
- package/dist/shell-source-maps/assets/vendor-iwLB0x-s.js.map +1 -0
- package/dist/status/status-dialog.js +1 -1
- package/package.json +4 -4
- package/dist/shell/assets/app-CBYlZ19-.js +0 -9
- package/dist/shell/assets/index-BvT0X9o1.css +0 -2
- package/dist/shell/assets/shared-protobase-ui-DibYt-TM.js +0 -2
- package/dist/shell-source-maps/assets/app-CBYlZ19-.js.map +0 -1
- package/dist/shell-source-maps/assets/vendor-xNCj9Gc_.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Notice, useAdminMeta, usePermissions } from "../meta-gate.js";
|
|
2
|
-
import { Skeleton } from "../../primitives/skeleton.js";
|
|
3
2
|
import { humanize } from "../../live/naming.js";
|
|
4
3
|
import { recordKey } from "../../live/model-helpers.js";
|
|
4
|
+
import { Skeleton } from "../../primitives/skeleton.js";
|
|
5
5
|
import { AppLink } from "../use-app-address.js";
|
|
6
6
|
import { ErrorBanner } from "../error-banner.js";
|
|
7
7
|
import { slotted } from "../../locale/slotted.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useClient } from "../../data/api-provider.js";
|
|
2
|
-
import { useToast } from "../../toasts/toast-provider.js";
|
|
3
2
|
import { humanize } from "../../live/naming.js";
|
|
4
3
|
import { Switch } from "../../primitives/switch.js";
|
|
4
|
+
import { useToast } from "../../toasts/toast-provider.js";
|
|
5
5
|
import { useRefreshResource } from "../pages/use-layout-data.js";
|
|
6
6
|
import { text } from "./messages.js";
|
|
7
7
|
import { useId } from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useClient } from "../../data/api-provider.js";
|
|
2
2
|
import { Button } from "../../primitives/button.js";
|
|
3
3
|
import { ResponsiveDialog } from "../../primitives/responsive-dialog.js";
|
|
4
|
-
import { Skeleton } from "../../primitives/skeleton.js";
|
|
5
4
|
import { humanize } from "../../live/naming.js";
|
|
6
5
|
import { defaultOrderBy } from "../list-order.js";
|
|
6
|
+
import { Skeleton } from "../../primitives/skeleton.js";
|
|
7
7
|
import { countQuery } from "../pages/use-layout-data.js";
|
|
8
8
|
import { text } from "./messages.js";
|
|
9
9
|
import { useFilterChips } from "./use-filter-chips.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useClient } from "../../data/api-provider.js";
|
|
2
2
|
import { useAdminMeta } from "../meta-gate.js";
|
|
3
|
-
import { useToast } from "../../toasts/toast-provider.js";
|
|
4
3
|
import { humanize } from "../../live/naming.js";
|
|
5
4
|
import { recordKey } from "../../live/model-helpers.js";
|
|
6
5
|
import { useAppAddress } from "../use-app-address.js";
|
|
6
|
+
import { useToast } from "../../toasts/toast-provider.js";
|
|
7
7
|
import { can } from "../permissions.js";
|
|
8
8
|
import { useRefreshResource } from "../pages/use-layout-data.js";
|
|
9
9
|
import { text } from "./messages.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { Button } from "../primitives/button.js";
|
|
3
|
-
import { Input } from "../primitives/input.js";
|
|
4
3
|
import { humanize } from "../live/naming.js";
|
|
5
4
|
import { displayValue } from "../live/display-value.js";
|
|
6
5
|
import { text } from "./messages.js";
|
|
6
|
+
import { Input } from "../primitives/input.js";
|
|
7
7
|
import { toDraft } from "../live/field-values.js";
|
|
8
8
|
import { ErrorBanner } from "./error-banner.js";
|
|
9
9
|
import { ConfirmSignIn } from "./confirm-sign-in.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
|
-
import { text } from "./messages.js";
|
|
3
|
-
import { Avatar } from "../primitives/avatar.js";
|
|
4
2
|
import { Badge } from "../primitives/badge.js";
|
|
3
|
+
import { Avatar } from "../primitives/avatar.js";
|
|
4
|
+
import { text } from "./messages.js";
|
|
5
5
|
import { SwitchGroup } from "./switch-group.js";
|
|
6
6
|
import { ThemeSwitch } from "./theme-switch.js";
|
|
7
7
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { text } from "./messages.js";
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
3
|
import { Button, buttonClass } from "../primitives/button.js";
|
|
4
|
-
import { Input } from "../primitives/input.js";
|
|
5
4
|
import { RouteLink } from "../primitives/route-link.js";
|
|
5
|
+
import { Input } from "../primitives/input.js";
|
|
6
6
|
import { slotted } from "../locale/slotted.js";
|
|
7
7
|
import { AuthLayout } from "./auth-layout.js";
|
|
8
8
|
import { useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { text } from "./messages.js";
|
|
2
2
|
import { Button } from "../primitives/button.js";
|
|
3
|
-
import { Input } from "../primitives/input.js";
|
|
4
3
|
import { RouteLink } from "../primitives/route-link.js";
|
|
4
|
+
import { Input } from "../primitives/input.js";
|
|
5
5
|
import { AuthLayout } from "./auth-layout.js";
|
|
6
6
|
import { ProviderIcon } from "./provider-icon.js";
|
|
7
7
|
import { useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "../primitives/button.js";
|
|
2
2
|
import { ResponsiveDialog } from "../primitives/responsive-dialog.js";
|
|
3
|
-
import { Input } from "../primitives/input.js";
|
|
4
3
|
import { Segmented } from "../primitives/segmented.js";
|
|
4
|
+
import { Input } from "../primitives/input.js";
|
|
5
5
|
import { text } from "./messages.js";
|
|
6
6
|
import { useGuestRequest } from "./use-guest-request.js";
|
|
7
7
|
import { useState } from "react";
|
package/dist/calls/call-rings.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useToast } from "../toasts/toast-provider.js";
|
|
2
1
|
import { useAppAddress } from "../app/use-app-address.js";
|
|
2
|
+
import { useToast } from "../toasts/toast-provider.js";
|
|
3
3
|
import { text } from "./messages.js";
|
|
4
4
|
import { useRingTone } from "./ring-tone.js";
|
|
5
5
|
import { useRings } from "./use-rings.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
|
-
import { formatDateTime, formatTime } from "../format/date.js";
|
|
3
2
|
import { Avatar } from "../primitives/avatar.js";
|
|
3
|
+
import { formatDateTime, formatTime } from "../format/date.js";
|
|
4
4
|
import { hueOf, initialsOf } from "../auth/user-to-shell.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region src/chat/chat-message.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { formatMoney } from "../format/money.js";
|
|
2
|
-
import { formatInt, formatPercent, formatSigned } from "../format/number.js";
|
|
3
1
|
import { formatDate, formatDateTime, formatRelativeTime } from "../format/date.js";
|
|
2
|
+
import { formatInt, formatPercent, formatSigned } from "../format/number.js";
|
|
3
|
+
import { formatMoney } from "../format/money.js";
|
|
4
4
|
import { userById } from "../mocks/users.js";
|
|
5
5
|
import { fileShown } from "../live/file-values.js";
|
|
6
6
|
import { text } from "./messages.js";
|
package/dist/data-grid/cells.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
|
+
import { Badge } from "../primitives/badge.js";
|
|
3
|
+
import { Avatar } from "../primitives/avatar.js";
|
|
2
4
|
import { viewerZone, zoneLabel } from "../format/zone.js";
|
|
3
5
|
import { formatDateTime } from "../format/date.js";
|
|
4
6
|
import { userById } from "../mocks/users.js";
|
|
5
|
-
import { Avatar } from "../primitives/avatar.js";
|
|
6
|
-
import { Badge } from "../primitives/badge.js";
|
|
7
7
|
import { fileShown, shownImage } from "../live/file-values.js";
|
|
8
8
|
import { text } from "./messages.js";
|
|
9
9
|
import { cellText } from "./cell-text.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn } from "../lib/cn.js";
|
|
2
2
|
import { formatInt } from "../format/number.js";
|
|
3
|
-
import { Skeleton } from "../primitives/skeleton.js";
|
|
4
3
|
import { text } from "./messages.js";
|
|
4
|
+
import { Skeleton } from "../primitives/skeleton.js";
|
|
5
5
|
import { gridTemplate } from "./grid-template.js";
|
|
6
6
|
import { Checkbox } from "../primitives/checkbox.js";
|
|
7
7
|
import { isRightAligned } from "./column-spec.js";
|
|
@@ -4,8 +4,8 @@ import { Spinner } from "../primitives/spinner.js";
|
|
|
4
4
|
import { text } from "../app/meta-gate-messages.js";
|
|
5
5
|
import { Notice } from "../app/meta-gate.js";
|
|
6
6
|
import { Button } from "../primitives/button.js";
|
|
7
|
-
import { Field } from "../record-view/field.js";
|
|
8
7
|
import { humanize } from "../live/naming.js";
|
|
8
|
+
import { Field } from "../record-view/field.js";
|
|
9
9
|
import { createBody, hasDatabaseDefault, initialDraft, isRequired, numberDefault } from "../app/create/create-values.js";
|
|
10
10
|
import { ErrorBanner } from "../app/error-banner.js";
|
|
11
11
|
import { FieldEditor } from "../app/field-editor.js";
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import { Spinner } from "./primitives/spinner.js";
|
|
|
4
4
|
import { Button, buttonClass } from "./primitives/button.js";
|
|
5
5
|
import { Dialog } from "./primitives/dialog.js";
|
|
6
6
|
import { ResponsiveDialog } from "./primitives/responsive-dialog.js";
|
|
7
|
-
import { useFieldControl } from "./primitives/field-control.js";
|
|
8
|
-
import { Input } from "./primitives/input.js";
|
|
9
|
-
import { Field } from "./record-view/field.js";
|
|
10
7
|
import { Section } from "./record-view/section.js";
|
|
11
8
|
import { AppLink, useAppAddress } from "./app/use-app-address.js";
|
|
12
9
|
import { Segmented } from "./primitives/segmented.js";
|
|
10
|
+
import { useFieldControl } from "./primitives/field-control.js";
|
|
11
|
+
import { Field } from "./record-view/field.js";
|
|
12
|
+
import { Input } from "./primitives/input.js";
|
|
13
13
|
import { Textarea } from "./primitives/textarea.js";
|
|
14
14
|
import { useList } from "./data/use-list.js";
|
|
15
15
|
import { statusRefreshMs, useOwnStatus, useStatuses } from "./status/use-statuses.js";
|
|
@@ -9,21 +9,13 @@ const text = defineMessages({
|
|
|
9
9
|
dropped: (name, place, count) => `${name} was dropped at line ${place} of ${count}.`,
|
|
10
10
|
droppedAtStart: (name) => `${name} was dropped where it started.`,
|
|
11
11
|
cancelled: (name, place) => `Moving ${name} was cancelled. It is back at line ${place}.`,
|
|
12
|
-
item: "Item",
|
|
13
|
-
qty: "Qty",
|
|
14
|
-
quantity: "Quantity",
|
|
15
|
-
unitPrice: "Unit price",
|
|
16
|
-
lineTotal: "Line total",
|
|
17
12
|
addLine: "Add line",
|
|
18
13
|
noLines: "No lines yet.",
|
|
19
14
|
moveUp: "Move up",
|
|
20
15
|
moveDown: "Move down",
|
|
21
16
|
removeLine: "Remove line",
|
|
22
17
|
dragToReorder: (name) => `Drag to reorder ${name}`,
|
|
23
|
-
actionsFor: (name) => `Actions for ${name}
|
|
24
|
-
subtotal: "Subtotal",
|
|
25
|
-
vat: (percent) => `VAT ${percent}%`,
|
|
26
|
-
total: "Total"
|
|
18
|
+
actionsFor: (name) => `Actions for ${name}`
|
|
27
19
|
},
|
|
28
20
|
nl: {
|
|
29
21
|
instructions: "Druk op spatie of enter op de sleepgreep om een regel op te pakken. Verplaats hem met de pijltjestoetsen omhoog en omlaag, zet hem neer met spatie of enter, en annuleer met escape. Het regelmenu heeft ook Omhoog en Omlaag.",
|
|
@@ -33,21 +25,13 @@ const text = defineMessages({
|
|
|
33
25
|
dropped: (name, place, count) => `${name} is neergezet op regel ${place} van ${count}.`,
|
|
34
26
|
droppedAtStart: (name) => `${name} is neergezet waar hij begon.`,
|
|
35
27
|
cancelled: (name, place) => `Verplaatsen van ${name} is geannuleerd. Hij staat weer op regel ${place}.`,
|
|
36
|
-
item: "Artikel",
|
|
37
|
-
qty: "Aantal",
|
|
38
|
-
quantity: "Aantal",
|
|
39
|
-
unitPrice: "Stukprijs",
|
|
40
|
-
lineTotal: "Regeltotaal",
|
|
41
28
|
addLine: "Regel toevoegen",
|
|
42
29
|
noLines: "Nog geen regels.",
|
|
43
30
|
moveUp: "Omhoog",
|
|
44
31
|
moveDown: "Omlaag",
|
|
45
32
|
removeLine: "Regel verwijderen",
|
|
46
33
|
dragToReorder: (name) => `Sleep om ${name} te verplaatsen`,
|
|
47
|
-
actionsFor: (name) => `Acties voor ${name}
|
|
48
|
-
subtotal: "Subtotaal",
|
|
49
|
-
vat: (percent) => `Btw ${percent}%`,
|
|
50
|
-
total: "Totaal"
|
|
34
|
+
actionsFor: (name) => `Acties voor ${name}`
|
|
51
35
|
}
|
|
52
36
|
});
|
|
53
37
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cn } from "../../lib/cn.js";
|
|
2
|
-
import { formatRelativeTime } from "../../format/date.js";
|
|
3
2
|
import { toneDots } from "../../primitives/badge.js";
|
|
3
|
+
import { formatRelativeTime } from "../../format/date.js";
|
|
4
4
|
import { RouteLink } from "../../primitives/route-link.js";
|
|
5
5
|
import { text } from "./messages.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2,8 +2,8 @@ import { useAuth } from "../auth/auth-provider.js";
|
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
3
|
import { Spinner } from "../primitives/spinner.js";
|
|
4
4
|
import { Button, buttonClass } from "../primitives/button.js";
|
|
5
|
-
import { Input } from "../primitives/input.js";
|
|
6
5
|
import { RouteLink } from "../primitives/route-link.js";
|
|
6
|
+
import { Input } from "../primitives/input.js";
|
|
7
7
|
import { authMessage } from "../auth/auth-messages.js";
|
|
8
8
|
import { useAction } from "./use-action.js";
|
|
9
9
|
import { text } from "./messages.js";
|
package/dist/package.js
CHANGED
|
@@ -9,7 +9,12 @@ export type DialogProps = {
|
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
/** Room for a row of cards or a table in the body, instead of a short question. */
|
|
11
11
|
wide?: boolean;
|
|
12
|
+
/** Names the dialog in its layer's `data-dialog` (empty without), for code that asks whether an element sits in it. */
|
|
13
|
+
name?: string;
|
|
12
14
|
};
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
+
/**
|
|
16
|
+
* A modal with a title, optional body and action buttons. Closes on Escape and on a click outside. It is portalled to
|
|
17
|
+
* the body, so no stacking context of the page it opens from, such as a sticky column, puts page content above it.
|
|
18
|
+
*/
|
|
19
|
+
export declare const Dialog: ({ title, description, onClose, actions, children, wide, name }: DialogProps) => import("react").ReactPortal;
|
|
15
20
|
//#endregion
|
|
@@ -2,12 +2,17 @@ import { cn } from "../lib/cn.js";
|
|
|
2
2
|
import { useFocusTrap } from "../lib/use-focus-trap.js";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { createPortal } from "react-dom";
|
|
5
6
|
//#region src/primitives/dialog.tsx
|
|
6
|
-
/**
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* A modal with a title, optional body and action buttons. Closes on Escape and on a click outside. It is portalled to
|
|
9
|
+
* the body, so no stacking context of the page it opens from, such as a sticky column, puts page content above it.
|
|
10
|
+
*/
|
|
11
|
+
const Dialog = ({ title, description, onClose, actions, children, wide = false, name }) => {
|
|
8
12
|
const panel = useRef(null);
|
|
9
13
|
useFocusTrap(panel, true, onClose);
|
|
10
|
-
return /* @__PURE__ */ jsx("div", {
|
|
14
|
+
return createPortal(/* @__PURE__ */ jsx("div", {
|
|
15
|
+
"data-dialog": name ?? "",
|
|
11
16
|
className: "fixed inset-0 z-[90] flex items-center justify-center bg-backdrop/30 p-4 pb-[calc(1rem+var(--pb-safe-bottom))] pl-[calc(1rem+var(--pb-safe-left))] pr-[calc(1rem+var(--pb-safe-right))] pt-[calc(1rem+var(--pb-safe-top))]",
|
|
12
17
|
onMouseDown: (event) => event.target === event.currentTarget && onClose(),
|
|
13
18
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -36,7 +41,7 @@ const Dialog = ({ title, description, onClose, actions, children, wide = false }
|
|
|
36
41
|
})
|
|
37
42
|
]
|
|
38
43
|
})
|
|
39
|
-
});
|
|
44
|
+
}), document.body);
|
|
40
45
|
};
|
|
41
46
|
//#endregion
|
|
42
47
|
export { Dialog };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "../primitives/button.js";
|
|
2
|
+
import { Avatar } from "../primitives/avatar.js";
|
|
2
3
|
import { text } from "./messages.js";
|
|
3
4
|
import { FieldControlContext } from "../primitives/field-control.js";
|
|
4
|
-
import { Avatar } from "../primitives/avatar.js";
|
|
5
5
|
import { useId } from "react";
|
|
6
6
|
import { TriangleAlert } from "lucide-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -14,8 +14,6 @@ const text = defineMessages({
|
|
|
14
14
|
lastEditedBy: "Last edited by",
|
|
15
15
|
lastUpdated: (ago) => `Last updated ${ago}`,
|
|
16
16
|
viewing: (count) => `${count} viewing`,
|
|
17
|
-
savingSubject: (subject) => `Saving ${subject}...`,
|
|
18
|
-
subjectSaved: (subject) => `${subject} saved`,
|
|
19
17
|
tabs: "Tabs"
|
|
20
18
|
},
|
|
21
19
|
nl: {
|
|
@@ -31,8 +29,6 @@ const text = defineMessages({
|
|
|
31
29
|
lastEditedBy: "Laatst bewerkt door",
|
|
32
30
|
lastUpdated: (ago) => `Laatst bijgewerkt ${ago}`,
|
|
33
31
|
viewing: (count) => `${count} kijken mee`,
|
|
34
|
-
savingSubject: (subject) => `${subject} bewaren...`,
|
|
35
|
-
subjectSaved: (subject) => `${subject} bewaard`,
|
|
36
32
|
tabs: "Tabbladen"
|
|
37
33
|
}
|
|
38
34
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { text } from "./messages.js";
|
|
2
|
-
import { AvatarStack } from "../primitives/avatar.js";
|
|
3
1
|
import { Badge } from "../primitives/badge.js";
|
|
2
|
+
import { AvatarStack } from "../primitives/avatar.js";
|
|
3
|
+
import { text } from "./messages.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region src/record-view/record-header.tsx
|
|
6
6
|
const RecordHeader = ({ collection, title, status, lastEditedBy, presence = [], actions }) => {
|