@nivaro/react 0.3.113 → 0.3.115
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/components/ScreenShareHost.js +24 -0
- package/dist/full.css +50 -2
- package/dist/hooks/useSessionRecorder.js +61 -60
- package/dist/index.d.ts +1727 -19
- package/dist/index.js +1091 -950
- package/dist/shared/components/ActivityEntry.js +209 -97
- package/dist/shared/components/AgentPresenceChip.js +51 -0
- package/dist/shared/components/AnnouncementBanner.js +56 -41
- package/dist/shared/components/AutolinkedText.js +98 -85
- package/dist/shared/components/BroadcastView.js +149 -141
- package/dist/shared/components/CacheStamp.js +78 -30
- package/dist/shared/components/CollectionBrowserView.js +4088 -3592
- package/dist/shared/components/ConfigChangeStrip.js +63 -0
- package/dist/shared/components/ConfigReachNote.js +107 -0
- package/dist/shared/components/ConformanceView.js +389 -319
- package/dist/shared/components/DataTable.js +544 -504
- package/dist/shared/components/DelegateCoverLine.js +164 -0
- package/dist/shared/components/EnvironmentNotice.js +56 -65
- package/dist/shared/components/FilePreviewLightbox.js +89 -43
- package/dist/shared/components/FindingFixedMark.js +23 -0
- package/dist/shared/components/GridPresenceLine.js +100 -0
- package/dist/shared/components/IdleReloadWatcher.js +82 -43
- package/dist/shared/components/InStep.js +46 -0
- package/dist/shared/components/ItemEditForm.js +5504 -4889
- package/dist/shared/components/LiveAnnouncer.js +62 -0
- package/dist/shared/components/LiveCount.js +54 -0
- package/dist/shared/components/LiveFigure.js +28 -0
- package/dist/shared/components/LiveListControls.js +114 -0
- package/dist/shared/components/LiveNewMatchesPill.js +25 -0
- package/dist/shared/components/LiveOffNote.js +44 -0
- package/dist/shared/components/LivePreferenceHost.js +42 -0
- package/dist/shared/components/LiveRowMark.js +25 -20
- package/dist/shared/components/LiveTraceView.js +257 -0
- package/dist/shared/components/MapView.js +30 -29
- package/dist/shared/components/MatrixEditor.js +497 -462
- package/dist/shared/components/MyWorkView.js +346 -272
- package/dist/shared/components/NotificationBell.js +215 -201
- package/dist/shared/components/PageRenderer.js +636 -599
- package/dist/shared/components/PresenceDot.js +21 -0
- package/dist/shared/components/ProfileView.js +656 -536
- package/dist/shared/components/RealtimeStatusBanner.js +25 -25
- package/dist/shared/components/RecentRecordsRail.js +51 -48
- package/dist/shared/components/RecordCompare.js +241 -150
- package/dist/shared/components/RecordDrilldownSheet.js +66 -64
- package/dist/shared/components/RecordGridEditor.js +350 -311
- package/dist/shared/components/RecordHoverCard.js +147 -0
- package/dist/shared/components/RecordPeekHost.js +111 -0
- package/dist/shared/components/RecordReadView.js +414 -412
- package/dist/shared/components/RelativeTime.js +16 -0
- package/dist/shared/components/ReportView.js +1396 -1304
- package/dist/shared/components/ScreenRefreshButton.js +77 -0
- package/dist/shared/components/TabCountHost.js +10 -0
- package/dist/shared/components/TickerNumber.js +19 -18
- package/dist/shared/components/TipLayer.js +70 -58
- package/dist/shared/components/WidgetImageMenu.js +59 -0
- package/dist/shared/components/WidgetSlot.js +571 -524
- package/dist/shared/components/activity/RecordActivityStream.js +317 -0
- package/dist/shared/components/bulk/BulkSelectionNotices.js +220 -0
- package/dist/shared/components/cbv/approval-changed.js +20 -0
- package/dist/shared/components/cbv/changed-by-others.js +251 -0
- package/dist/shared/components/cbv/column-totals.js +75 -67
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +320 -0
- package/dist/shared/components/change-proposals/ProposalValue.js +28 -0
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +44 -0
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +359 -0
- package/dist/shared/components/change-proposals/types.js +4 -0
- package/dist/shared/components/chat/ChatPanel.js +1571 -1528
- package/dist/shared/components/chat/Composer.js +276 -298
- package/dist/shared/components/chat/room-due.js +13 -0
- package/dist/shared/components/collections-directory/CollectionRow.js +76 -75
- package/dist/shared/components/collections-directory/CollectionsDirectory.js +415 -395
- package/dist/shared/components/collections-directory/directory-data.js +75 -63
- package/dist/shared/components/imports/ImportConsole.js +159 -155
- package/dist/shared/components/imports/ImportDuplicatesNotice.js +46 -31
- package/dist/shared/components/integrations/SendStatus.js +202 -0
- package/dist/shared/components/integrations/console/IntegrationsConsole.js +45 -36
- package/dist/shared/components/integrations/console/ReadyToSendView.js +453 -0
- package/dist/shared/components/integrations/console/api.js +161 -117
- package/dist/shared/components/integrations/console/tone.js +15 -12
- package/dist/shared/components/item-edit/CatalogPickerField.js +1353 -1245
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +162 -0
- package/dist/shared/components/item-edit/CloneDialog.js +208 -206
- package/dist/shared/components/item-edit/DerivedCauseNote.js +57 -0
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +81 -70
- package/dist/shared/components/item-edit/DuplicateNotice.js +169 -101
- package/dist/shared/components/item-edit/FieldAffordances.js +294 -385
- package/dist/shared/components/item-edit/FieldComments.js +159 -116
- package/dist/shared/components/item-edit/FieldPointer.js +132 -0
- package/dist/shared/components/item-edit/FieldRenderer.js +277 -273
- package/dist/shared/components/item-edit/FieldRow.js +519 -439
- package/dist/shared/components/item-edit/FieldSourceBadge.js +88 -0
- package/dist/shared/components/item-edit/FilePickerField.js +454 -369
- package/dist/shared/components/item-edit/GroupSection.js +618 -567
- package/dist/shared/components/item-edit/HeldEditsChip.js +113 -0
- package/dist/shared/components/item-edit/InlineTableField.js +2891 -2723
- package/dist/shared/components/item-edit/ListNeighborNav.js +79 -0
- package/dist/shared/components/item-edit/LiveTraceSheet.js +26 -0
- package/dist/shared/components/item-edit/M2MCombobox.js +284 -273
- package/dist/shared/components/item-edit/OutboxReviewTray.js +313 -0
- package/dist/shared/components/item-edit/PickerBadges.js +52 -0
- package/dist/shared/components/item-edit/PlanGrid.js +434 -439
- package/dist/shared/components/item-edit/RecalcValue.js +55 -0
- package/dist/shared/components/item-edit/RecordChatActions.js +76 -64
- package/dist/shared/components/item-edit/RecordChatMentionsChip.js +103 -0
- package/dist/shared/components/item-edit/RecordGrantTools.js +87 -86
- package/dist/shared/components/item-edit/RecordHelpChip.js +70 -0
- package/dist/shared/components/item-edit/RecordLiveSync.js +230 -217
- package/dist/shared/components/item-edit/RecordOutbox.js +53 -52
- package/dist/shared/components/item-edit/RecordRecapStrip.js +109 -36
- package/dist/shared/components/item-edit/RelationCombobox.js +229 -217
- package/dist/shared/components/item-edit/RelationGroupedCombobox.js +105 -100
- package/dist/shared/components/item-edit/RemoteChangeUi.js +454 -0
- package/dist/shared/components/item-edit/RemoteUploads.js +55 -0
- package/dist/shared/components/item-edit/RemovedLineNote.js +92 -0
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +298 -223
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +244 -0
- package/dist/shared/components/item-edit/SectionPresence.js +78 -0
- package/dist/shared/components/item-edit/SplitLinesButton.js +166 -0
- package/dist/shared/components/item-edit/catalog-line-watch.js +94 -0
- package/dist/shared/components/item-edit/coedit/collab.js +84 -0
- package/dist/shared/components/item-edit/coedit/context.js +24 -0
- package/dist/shared/components/item-edit/coedit/cursors.js +103 -0
- package/dist/shared/components/item-edit/coedit/safe-link.js +15 -0
- package/dist/shared/components/item-edit/coedit/session.js +382 -0
- package/dist/shared/components/item-edit/coedit/useCoedit.js +49 -0
- package/dist/shared/components/item-edit/file-live.js +77 -0
- package/dist/shared/components/item-edit/file-processing.js +87 -0
- package/dist/shared/components/item-edit/layout-switch.js +148 -0
- package/dist/shared/components/item-edit/live-related.js +23 -0
- package/dist/shared/components/item-edit/live-title.js +66 -0
- package/dist/shared/components/item-edit/partner-needs.js +142 -0
- package/dist/shared/components/item-edit/removed-line.js +58 -0
- package/dist/shared/components/item-edit/render-stability.js +70 -59
- package/dist/shared/components/layout-editor/ChangeNote.js +36 -34
- package/dist/shared/components/layout-editor/CollabParts.js +72 -70
- package/dist/shared/components/layout-editor/LayoutEditor.js +306 -303
- package/dist/shared/components/list/InlineEdit.js +504 -208
- package/dist/shared/components/list/ListViewers.js +81 -0
- package/dist/shared/components/merge/MergeRecordsDialog.js +1227 -0
- package/dist/shared/components/merge/MergeWithFlow.js +290 -0
- package/dist/shared/components/merge/merge-values.js +110 -0
- package/dist/shared/components/monitoring/InactiveUserLinksView.js +285 -258
- package/dist/shared/components/notifications/NotificationCenterView.js +388 -321
- package/dist/shared/components/notifications/NotificationDetailBits.js +205 -130
- package/dist/shared/components/notifications/NotificationRulesEditor.js +72 -52
- package/dist/shared/components/notifications/bundles.js +21 -19
- package/dist/shared/components/notifications/resolved-line.js +25 -0
- package/dist/shared/components/ops/OpsTasksView.js +45 -44
- package/dist/shared/components/panels/AccessGrantedNote.js +85 -0
- package/dist/shared/components/panels/AlertBanners.js +132 -0
- package/dist/shared/components/panels/AsyncUserPicker.js +54 -45
- package/dist/shared/components/panels/BranchLanes.js +82 -54
- package/dist/shared/components/panels/CommentAwareness.js +332 -0
- package/dist/shared/components/panels/CommentImages.js +219 -0
- package/dist/shared/components/panels/CommentPanel.js +649 -530
- package/dist/shared/components/panels/ExternalRequestsChip.js +98 -80
- package/dist/shared/components/panels/NewSinceChip.js +16 -0
- package/dist/shared/components/panels/OwnerOpenedLine.js +85 -0
- package/dist/shared/components/panels/PipelinePanel.js +1644 -1494
- package/dist/shared/components/panels/ResubmissionDiff.js +293 -0
- package/dist/shared/components/panels/SlaBreachBanner.js +30 -29
- package/dist/shared/components/panels/SlaClock.js +130 -99
- package/dist/shared/components/panels/TaskPanel.js +308 -287
- package/dist/shared/components/panels/unseen-move-check.js +101 -0
- package/dist/shared/components/pipeline/OwnerMatrix.js +80 -71
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +495 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +1855 -1771
- package/dist/shared/components/profile/AgentNameField.js +141 -0
- package/dist/shared/components/profile/AgentsPanel.js +55 -46
- package/dist/shared/components/profile/PersonAccess.js +398 -330
- package/dist/shared/components/profile/PersonAdminTools.js +127 -113
- package/dist/shared/components/profile/PersonProfile.js +81 -73
- package/dist/shared/components/profile/SignInTroubleshooter.js +361 -0
- package/dist/shared/components/queue/QueueBulkBar.js +101 -84
- package/dist/shared/components/queue/QueueItemSheet.js +66 -66
- package/dist/shared/components/queue/QueueTeamStrip.js +279 -0
- package/dist/shared/components/queue/QueueWorklist.js +2076 -1686
- package/dist/shared/components/queue/queue-totals.js +92 -0
- package/dist/shared/components/queue/worklist-helpers.js +18 -14
- package/dist/shared/components/send-view/SendViewButton.js +136 -0
- package/dist/shared/components/send-view/SentViewCards.js +147 -0
- package/dist/shared/components/support/ReportProblem.js +1 -0
- package/dist/shared/components/support/ScreenShare.js +554 -0
- package/dist/shared/components/support/SupportView.js +160 -129
- package/dist/shared/components/support/TicketDetailSheet.js +101 -89
- package/dist/shared/components/watch-list/WatchDock.js +1044 -0
- package/dist/shared/components/watch-list/WatchExtras.js +723 -0
- package/dist/shared/components/watch-list/WatchListButton.js +46 -0
- package/dist/shared/components/watch-list/WatchPinButton.js +67 -0
- package/dist/shared/components/watch-list/WatchRows.js +348 -0
- package/dist/shared/lib/activity-sentence.js +87 -75
- package/dist/shared/lib/agent-presence.js +46 -0
- package/dist/shared/lib/approval-progress.js +49 -0
- package/dist/shared/lib/attention-prefs.js +27 -0
- package/dist/shared/lib/cell-locks.js +56 -0
- package/dist/shared/lib/co-edit.js +166 -0
- package/dist/shared/lib/coedit-registry.js +44 -0
- package/dist/shared/lib/comment-awareness.js +124 -0
- package/dist/shared/lib/comment-images.js +45 -0
- package/dist/shared/lib/config-watch.js +94 -0
- package/dist/shared/lib/copy-rules.js +65 -0
- package/dist/shared/lib/count-step.js +30 -0
- package/dist/shared/lib/deadline-ticker.js +68 -0
- package/dist/shared/lib/derived-causes.js +115 -0
- package/dist/shared/lib/draft-store.js +114 -85
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/field-merge.js +126 -0
- package/dist/shared/lib/filter-sentence.js +10 -10
- package/dist/shared/lib/focus-mode.js +16 -12
- package/dist/shared/lib/grid-cursors.js +77 -0
- package/dist/shared/lib/grid-presence.js +182 -0
- package/dist/shared/lib/idle-reload.js +100 -73
- package/dist/shared/lib/in-step.js +45 -0
- package/dist/shared/lib/integration-chip.js +19 -18
- package/dist/shared/lib/line-locks.js +141 -0
- package/dist/shared/lib/line-split.js +41 -0
- package/dist/shared/lib/linked-changes.js +150 -0
- package/dist/shared/lib/list-link.js +56 -50
- package/dist/shared/lib/list-return.js +231 -0
- package/dist/shared/lib/list-viewers.js +52 -0
- package/dist/shared/lib/live-announcer.js +86 -0
- package/dist/shared/lib/live-counts.js +85 -0
- package/dist/shared/lib/live-data-changed.js +108 -0
- package/dist/shared/lib/live-deltas.js +81 -0
- package/dist/shared/lib/live-findings.js +113 -0
- package/dist/shared/lib/live-groups.js +122 -0
- package/dist/shared/lib/live-link-labels.js +162 -0
- package/dist/shared/lib/live-list-flow.js +334 -0
- package/dist/shared/lib/live-list.js +143 -129
- package/dist/shared/lib/live-moves.js +51 -0
- package/dist/shared/lib/live-ops.js +26 -26
- package/dist/shared/lib/live-pickers.js +7 -0
- package/dist/shared/lib/live-preference.js +184 -0
- package/dist/shared/lib/live-queries.js +226 -181
- package/dist/shared/lib/live-screen.js +333 -0
- package/dist/shared/lib/live-search.js +108 -0
- package/dist/shared/lib/live-seen.js +35 -0
- package/dist/shared/lib/live-views.js +100 -0
- package/dist/shared/lib/live.js +159 -133
- package/dist/shared/lib/missed-updates.js +198 -0
- package/dist/shared/lib/newer-file.js +56 -0
- package/dist/shared/lib/notification-sound.js +42 -20
- package/dist/shared/lib/own-writes.js +59 -41
- package/dist/shared/lib/picker-badges.js +94 -0
- package/dist/shared/lib/presence-signals.js +131 -84
- package/dist/shared/lib/realtime.js +49 -24
- package/dist/shared/lib/record-gaps.js +85 -0
- package/dist/shared/lib/record-outbox.js +369 -222
- package/dist/shared/lib/record-peek.js +75 -0
- package/dist/shared/lib/record-tabs.js +92 -72
- package/dist/shared/lib/relative-ticker.js +42 -0
- package/dist/shared/lib/request-gate.js +119 -119
- package/dist/shared/lib/rollup-recalc.js +107 -0
- package/dist/shared/lib/room-gaps.js +40 -36
- package/dist/shared/lib/rum.js +137 -87
- package/dist/shared/lib/save-progress.js +20 -0
- package/dist/shared/lib/scheduled-countdown.js +67 -0
- package/dist/shared/lib/screen-refresh.js +160 -0
- package/dist/shared/lib/screen-share.js +234 -0
- package/dist/shared/lib/seen-since.js +74 -0
- package/dist/shared/lib/selection-watch.js +205 -0
- package/dist/shared/lib/send-status.js +132 -0
- package/dist/shared/lib/send-view.js +23 -0
- package/dist/shared/lib/socket-liveness.js +155 -0
- package/dist/shared/lib/socket-realtime.js +168 -140
- package/dist/shared/lib/state-census.js +53 -0
- package/dist/shared/lib/summary-mode.js +61 -39
- package/dist/shared/lib/tab-attention.js +143 -32
- package/dist/shared/lib/table-density.js +64 -0
- package/dist/shared/lib/track-travel.js +40 -0
- package/dist/shared/lib/unseen-changes.js +68 -0
- package/dist/shared/lib/upload-file.js +33 -0
- package/dist/shared/lib/upload-presence.js +127 -0
- package/dist/shared/lib/urgent-chime.js +65 -0
- package/dist/shared/lib/use-online-users.js +32 -11
- package/dist/shared/lib/user-sync.js +155 -39
- package/dist/shared/lib/waiting-count.js +44 -0
- package/dist/shared/lib/watch-desktop.js +83 -0
- package/dist/shared/lib/watch-list.js +447 -0
- package/dist/shared/lib/widget-image-render.js +64 -0
- package/dist/shared/lib/widget-image.js +111 -0
- package/dist/shared/lib/worker-socket.js +130 -104
- package/dist/shared/lib/write-to-screen.js +133 -0
- package/package.json +1 -1
- package/styles.css +49 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { dueInText as u, liveDeadlineStatus as r } from "../../lib/deadline-ticker.js";
|
|
2
|
+
function l(t, e) {
|
|
3
|
+
if (!t) return null;
|
|
4
|
+
const n = u(t, e);
|
|
5
|
+
return n ? n.charAt(0).toUpperCase() + n.slice(1) : null;
|
|
6
|
+
}
|
|
7
|
+
function o(t, e) {
|
|
8
|
+
return t ? r(t, e) : null;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
o as dueStatus,
|
|
12
|
+
l as dueText
|
|
13
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { jsx as r, jsxs as u, Fragment as
|
|
2
|
-
import { Pencil as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useNavigation as
|
|
5
|
-
import { titleCase as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { jsx as r, jsxs as u, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
+
import { Pencil as q, Pin as W, Star as G, AlertTriangle as Q, EyeOff as X, Code2 as z, Link2 as J, Workflow as Z, LayoutTemplate as A, Download as ee, Square as te } from "lucide-react";
|
|
3
|
+
import { forwardRef as ne, useState as re } from "react";
|
|
4
|
+
import { useNavigation as ae } from "../../context.js";
|
|
5
|
+
import { titleCase as oe, cn as l, resolveCollectionIcon as ie, formatNumber as S, formatDateTime as se } from "../../lib/utils.js";
|
|
6
|
+
import { LiveCount as P } from "../LiveCount.js";
|
|
7
|
+
import { Checkbox as le } from "../ui/checkbox.js";
|
|
8
|
+
import { useHoverIntent as ce, CollectionHoverCard as de } from "./CollectionHoverCard.js";
|
|
9
|
+
import { CollectionRowMenu as ue } from "./CollectionRowMenu.js";
|
|
10
|
+
import { recordCollectionOpen as me } from "./directory-data.js";
|
|
11
|
+
const pe = (t) => `/collections/${encodeURIComponent(t)}`, E = ne(function({ to: e, onClick: n, ...a }, i) {
|
|
12
|
+
const { navigate: m } = ae();
|
|
12
13
|
return /* @__PURE__ */ r(
|
|
13
14
|
"a",
|
|
14
15
|
{
|
|
@@ -20,14 +21,14 @@ const me = (t) => `/collections/${encodeURIComponent(t)}`, P = te(function({ to:
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
);
|
|
23
|
-
}),
|
|
24
|
-
function
|
|
24
|
+
}), j = 3;
|
|
25
|
+
function fe({
|
|
25
26
|
color: t,
|
|
26
27
|
name: e,
|
|
27
28
|
icon: n,
|
|
28
29
|
size: a = "md"
|
|
29
30
|
}) {
|
|
30
|
-
const i =
|
|
31
|
+
const i = ie(n);
|
|
31
32
|
return /* @__PURE__ */ r(
|
|
32
33
|
"div",
|
|
33
34
|
{
|
|
@@ -41,35 +42,35 @@ function pe({
|
|
|
41
42
|
}
|
|
42
43
|
);
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
return `The list opens on ${t.fields.map((n) => `${n.label} (up to ${
|
|
45
|
+
function he(t) {
|
|
46
|
+
return `The list opens on ${t.fields.map((n) => `${n.label} (up to ${S(n.max)} per record)`).join(" and ")} — slow and unreadable. Fix it in Data model → Collection Browser.`;
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function xe(t, e, n) {
|
|
48
49
|
const a = [];
|
|
49
50
|
return n && n.fields.length > 0 && a.push({
|
|
50
51
|
key: "heavy-list",
|
|
51
52
|
label: "Heavy list",
|
|
52
|
-
icon:
|
|
53
|
-
tip:
|
|
53
|
+
icon: Q,
|
|
54
|
+
tip: he(n),
|
|
54
55
|
warn: !0
|
|
55
|
-
}), t.hidden && !(e != null && e.link) && a.push({ key: "hidden", label: "Hidden", icon:
|
|
56
|
+
}), t.hidden && !(e != null && e.link) && a.push({ key: "hidden", label: "Hidden", icon: X, tip: "Hidden from navigation" }), e != null && e.virtual && a.push({
|
|
56
57
|
key: "virtual",
|
|
57
58
|
label: "Virtual",
|
|
58
|
-
icon:
|
|
59
|
+
icon: z,
|
|
59
60
|
tip: "Backed by SQL — read-only"
|
|
60
|
-
}), e != null && e.link && a.push({ key: "link", label: "Link table", icon:
|
|
61
|
+
}), e != null && e.link && a.push({ key: "link", label: "Link table", icon: J, tip: "Links two collections" }), e != null && e.pipeline && a.push({ key: "pipeline", label: "Pipeline", icon: Z, tip: e.pipeline }), e && e.forms > 0 && a.push({
|
|
61
62
|
key: "forms",
|
|
62
63
|
label: e.forms > 1 ? `Form ×${e.forms}` : "Form",
|
|
63
|
-
icon:
|
|
64
|
+
icon: A,
|
|
64
65
|
tip: `${e.forms} form layout${e.forms === 1 ? "" : "s"}`
|
|
65
66
|
}), e && e.imports > 0 && a.push({
|
|
66
67
|
key: "imports",
|
|
67
68
|
label: "Imports",
|
|
68
|
-
icon:
|
|
69
|
+
icon: ee,
|
|
69
70
|
tip: `${e.imports} import${e.imports === 1 ? "" : "s"} feed this collection`
|
|
70
|
-
}), t.singleton && a.push({ key: "singleton", label: "Singleton", icon:
|
|
71
|
+
}), t.singleton && a.push({ key: "singleton", label: "Singleton", icon: te, tip: "Holds a single record" }), a;
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function be({ spec: t }) {
|
|
73
74
|
const e = t.icon;
|
|
74
75
|
return /* @__PURE__ */ u(
|
|
75
76
|
"span",
|
|
@@ -87,11 +88,11 @@ function xe({ spec: t }) {
|
|
|
87
88
|
}
|
|
88
89
|
);
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function ve({ items: t }) {
|
|
91
92
|
if (t.length === 0) return null;
|
|
92
|
-
const e = t.slice(0,
|
|
93
|
+
const e = t.slice(0, j), n = t.slice(j);
|
|
93
94
|
return /* @__PURE__ */ u("span", { "data-cdr": "", className: "hidden shrink-0 items-center gap-1 sm:[&[data-cdr]]:flex", children: [
|
|
94
|
-
e.map((a) => /* @__PURE__ */ r(
|
|
95
|
+
e.map((a) => /* @__PURE__ */ r(be, { spec: a }, a.key)),
|
|
95
96
|
n.length > 0 && /* @__PURE__ */ u(
|
|
96
97
|
"span",
|
|
97
98
|
{
|
|
@@ -105,13 +106,13 @@ function be({ items: t }) {
|
|
|
105
106
|
)
|
|
106
107
|
] });
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function ke(t, e) {
|
|
109
110
|
const n = e == null ? void 0 : e.trim().toLowerCase();
|
|
110
111
|
return n ? t.toLowerCase().indexOf(n) : -1;
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
+
function ye({ text: t, at: e, len: n }) {
|
|
113
114
|
let a = t;
|
|
114
|
-
return e >= 0 && n > 0 && (a = /* @__PURE__ */ u(
|
|
115
|
+
return e >= 0 && n > 0 && (a = /* @__PURE__ */ u(Y, { children: [
|
|
115
116
|
t.slice(0, e),
|
|
116
117
|
/* @__PURE__ */ r("mark", { className: "rounded-sm bg-nvr-cyan/15 text-slate-700 dark:bg-nvr-cyan/25 dark:text-slate-200", children: t.slice(e, e + n) }),
|
|
117
118
|
t.slice(e + n)
|
|
@@ -124,7 +125,7 @@ function ke({ text: t, at: e, len: n }) {
|
|
|
124
125
|
}
|
|
125
126
|
);
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
+
function we(t, e = Date.now()) {
|
|
128
129
|
const n = new Date(t), a = n.getTime();
|
|
129
130
|
if (Number.isNaN(a)) return "—";
|
|
130
131
|
const i = Math.floor((e - a) / 6e4);
|
|
@@ -141,11 +142,11 @@ function ye(t, e = Date.now()) {
|
|
|
141
142
|
...h ? {} : { year: "numeric" }
|
|
142
143
|
});
|
|
143
144
|
}
|
|
144
|
-
function
|
|
145
|
-
const e = t.rows == null ? /* @__PURE__ */ r("span", { "data-tip": "Record count unknown", className: "text-slate-400 dark:text-slate-500", children: "—" }) : t.rows === 0 ? /* @__PURE__ */ r("span", { className: "text-slate-400 dark:text-slate-500", children: "Empty" }) : /* @__PURE__ */ r("span", { "data-tip": "Approximate record count", children:
|
|
145
|
+
function ge({ stat: t }) {
|
|
146
|
+
const e = t.rows == null ? /* @__PURE__ */ r("span", { "data-tip": "Record count unknown", className: "text-slate-400 dark:text-slate-500", children: "—" }) : t.rows === 0 ? /* @__PURE__ */ r("span", { className: "text-slate-400 dark:text-slate-500", children: "Empty" }) : /* @__PURE__ */ r("span", { "data-tip": "Approximate record count", children: /* @__PURE__ */ r(P, { value: t.rows, format: (n) => S(Number(n)) }) });
|
|
146
147
|
return /* @__PURE__ */ u("span", { className: "flex shrink-0 items-center gap-3 text-[11px] tabular-nums text-slate-500 dark:text-slate-400", children: [
|
|
147
148
|
/* @__PURE__ */ r("span", { className: "w-16 text-right", children: e }),
|
|
148
|
-
/* @__PURE__ */ r("span", { "data-cdr": "", className: "hidden w-16 whitespace-nowrap text-right md:[&[data-cdr]]:block", children: t.changed_at ? /* @__PURE__ */ r("span", { "data-tip": `Last change ${
|
|
149
|
+
/* @__PURE__ */ r("span", { "data-cdr": "", className: "hidden w-16 whitespace-nowrap text-right md:[&[data-cdr]]:block", children: t.changed_at ? /* @__PURE__ */ r("span", { "data-tip": `Last change ${se(t.changed_at)}`, children: /* @__PURE__ */ r(P, { value: we(t.changed_at) }) }) : /* @__PURE__ */ r(
|
|
149
150
|
"span",
|
|
150
151
|
{
|
|
151
152
|
"data-tip": "No change seen since the database last started",
|
|
@@ -156,14 +157,14 @@ function we({ stat: t }) {
|
|
|
156
157
|
] });
|
|
157
158
|
}
|
|
158
159
|
const k = "opacity-0 transition-opacity duration-150 group-hover/row:opacity-100 group-focus-within/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100 motion-reduce:transition-none";
|
|
159
|
-
function
|
|
160
|
+
function Ne(t) {
|
|
160
161
|
try {
|
|
161
162
|
return t.matches(":focus-visible");
|
|
162
163
|
} catch {
|
|
163
164
|
return !1;
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
|
-
function
|
|
167
|
+
function Be({
|
|
167
168
|
col: t,
|
|
168
169
|
stat: e,
|
|
169
170
|
heavyList: n,
|
|
@@ -172,23 +173,23 @@ function He({
|
|
|
172
173
|
onToggleFavorite: m,
|
|
173
174
|
pinnedForAll: o = !1,
|
|
174
175
|
onTogglePinned: h,
|
|
175
|
-
onMoveUp:
|
|
176
|
-
onMoveDown:
|
|
177
|
-
quietPin:
|
|
178
|
-
folders:
|
|
179
|
-
onMove:
|
|
180
|
-
recordsPath:
|
|
176
|
+
onMoveUp: H,
|
|
177
|
+
onMoveDown: R,
|
|
178
|
+
quietPin: B = !1,
|
|
179
|
+
folders: I,
|
|
180
|
+
onMove: M,
|
|
181
|
+
recordsPath: T,
|
|
181
182
|
editPath: y,
|
|
182
|
-
menuExtra:
|
|
183
|
+
menuExtra: _,
|
|
183
184
|
selecting: w,
|
|
184
185
|
selected: g,
|
|
185
186
|
onSelect: N,
|
|
186
187
|
dragHandle: C,
|
|
187
188
|
highlight: b,
|
|
188
189
|
isAdmin: p,
|
|
189
|
-
indent:
|
|
190
|
+
indent: K
|
|
190
191
|
}) {
|
|
191
|
-
const f = t.collection, c = t.display_name ??
|
|
192
|
+
const f = t.collection, c = t.display_name ?? oe(f), x = a === "compact", [U, v] = re(!1), d = ce(p), $ = T ?? pe(f), L = ke(f, b), F = U || L >= 0, O = xe(t, e, p ? n : void 0), V = (s) => {
|
|
192
193
|
s.currentTarget.contains(s.relatedTarget) || v(!1);
|
|
193
194
|
}, D = /* @__PURE__ */ r(
|
|
194
195
|
"span",
|
|
@@ -209,16 +210,16 @@ function He({
|
|
|
209
210
|
"group/row relative flex w-full items-center gap-2 transition-colors duration-150 hover:bg-nvr-cyan/[0.04] focus-within:bg-nvr-cyan/[0.04] motion-reduce:transition-none dark:hover:bg-nvr-cyan/[0.06] dark:focus-within:bg-nvr-cyan/[0.06]",
|
|
210
211
|
g && "bg-nvr-cyan/[0.07] dark:bg-nvr-cyan/[0.1]",
|
|
211
212
|
x ? "h-7" : "min-h-10 py-1",
|
|
212
|
-
|
|
213
|
+
K ? "pl-2 pr-2" : C ? "pr-2" : "pl-4 pr-2"
|
|
213
214
|
),
|
|
214
215
|
onMouseEnter: () => v(!0),
|
|
215
216
|
onMouseLeave: () => v(!1),
|
|
216
217
|
onFocus: () => v(!0),
|
|
217
|
-
onBlur:
|
|
218
|
+
onBlur: V,
|
|
218
219
|
children: [
|
|
219
220
|
C,
|
|
220
221
|
w && /* @__PURE__ */ r(
|
|
221
|
-
|
|
222
|
+
le,
|
|
222
223
|
{
|
|
223
224
|
checked: g,
|
|
224
225
|
onCheckedChange: () => N(),
|
|
@@ -228,7 +229,7 @@ function He({
|
|
|
228
229
|
}
|
|
229
230
|
),
|
|
230
231
|
/* @__PURE__ */ u(
|
|
231
|
-
|
|
232
|
+
E,
|
|
232
233
|
{
|
|
233
234
|
to: $,
|
|
234
235
|
onClick: (s) => {
|
|
@@ -236,10 +237,10 @@ function He({
|
|
|
236
237
|
s.preventDefault(), N();
|
|
237
238
|
return;
|
|
238
239
|
}
|
|
239
|
-
|
|
240
|
+
me(f);
|
|
240
241
|
},
|
|
241
242
|
onFocus: (s) => {
|
|
242
|
-
|
|
243
|
+
Ne(s.currentTarget) && d.show();
|
|
243
244
|
},
|
|
244
245
|
onBlur: d.hide,
|
|
245
246
|
className: l(
|
|
@@ -248,7 +249,7 @@ function He({
|
|
|
248
249
|
),
|
|
249
250
|
children: [
|
|
250
251
|
/* @__PURE__ */ r(
|
|
251
|
-
|
|
252
|
+
fe,
|
|
252
253
|
{
|
|
253
254
|
color: t.color,
|
|
254
255
|
name: c,
|
|
@@ -259,7 +260,7 @@ function He({
|
|
|
259
260
|
/* @__PURE__ */ u("span", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
260
261
|
/* @__PURE__ */ u("span", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
261
262
|
p ? /* @__PURE__ */ r(
|
|
262
|
-
|
|
263
|
+
de,
|
|
263
264
|
{
|
|
264
265
|
collection: f,
|
|
265
266
|
title: c,
|
|
@@ -271,18 +272,18 @@ function He({
|
|
|
271
272
|
children: D
|
|
272
273
|
}
|
|
273
274
|
) : D,
|
|
274
|
-
|
|
275
|
+
F && /* @__PURE__ */ r(ye, { text: f, at: L, len: (b == null ? void 0 : b.trim().length) ?? 0 }),
|
|
275
276
|
x && t.note && /* @__PURE__ */ r("span", { className: "min-w-0 flex-1 truncate text-[12px] text-slate-500 dark:text-slate-400", children: t.note })
|
|
276
277
|
] }),
|
|
277
278
|
!x && t.note && /* @__PURE__ */ r("span", { className: "truncate text-[12px] leading-4 text-slate-500 dark:text-slate-400", children: t.note })
|
|
278
279
|
] }),
|
|
279
|
-
/* @__PURE__ */ r(
|
|
280
|
-
e && /* @__PURE__ */ r(
|
|
280
|
+
/* @__PURE__ */ r(ve, { items: O }),
|
|
281
|
+
e && /* @__PURE__ */ r(ge, { stat: e })
|
|
281
282
|
]
|
|
282
283
|
}
|
|
283
284
|
),
|
|
284
285
|
p && y && /* @__PURE__ */ r(
|
|
285
|
-
|
|
286
|
+
E,
|
|
286
287
|
{
|
|
287
288
|
to: y,
|
|
288
289
|
"aria-label": `Edit ${c}`,
|
|
@@ -295,7 +296,7 @@ function He({
|
|
|
295
296
|
"hidden h-6 w-6 shrink-0 items-center justify-center rounded text-slate-400 hover:bg-slate-100 hover:text-slate-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 sm:[&[data-cdr]]:flex dark:text-slate-500 dark:hover:bg-white/10 dark:hover:text-slate-300",
|
|
296
297
|
k
|
|
297
298
|
),
|
|
298
|
-
children: /* @__PURE__ */ r(
|
|
299
|
+
children: /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5" })
|
|
299
300
|
}
|
|
300
301
|
),
|
|
301
302
|
p && h && /* @__PURE__ */ r(
|
|
@@ -313,12 +314,12 @@ function He({
|
|
|
313
314
|
className: l(
|
|
314
315
|
// Phones: Pin for everyone stays in the ⋯ menu.
|
|
315
316
|
"hidden sm:[&[data-cdr]]:flex h-6 w-6 shrink-0 items-center justify-center rounded hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/50 dark:hover:bg-white/10",
|
|
316
|
-
o && !
|
|
317
|
+
o && !B ? "text-slate-600 hover:text-slate-800 dark:text-slate-300 dark:hover:text-slate-100" : l(
|
|
317
318
|
k,
|
|
318
319
|
"text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300"
|
|
319
320
|
)
|
|
320
321
|
),
|
|
321
|
-
children: /* @__PURE__ */ r(
|
|
322
|
+
children: /* @__PURE__ */ r(W, { className: l("h-3.5 w-3.5", o && "fill-current") })
|
|
322
323
|
}
|
|
323
324
|
),
|
|
324
325
|
/* @__PURE__ */ r(
|
|
@@ -338,25 +339,25 @@ function He({
|
|
|
338
339
|
"text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300"
|
|
339
340
|
)
|
|
340
341
|
),
|
|
341
|
-
children: /* @__PURE__ */ r(
|
|
342
|
+
children: /* @__PURE__ */ r(G, { className: l("h-3.5 w-3.5", i && "fill-current") })
|
|
342
343
|
}
|
|
343
344
|
),
|
|
344
345
|
/* @__PURE__ */ r(
|
|
345
|
-
|
|
346
|
+
ue,
|
|
346
347
|
{
|
|
347
348
|
col: t,
|
|
348
349
|
displayName: c,
|
|
349
350
|
isAdmin: p,
|
|
350
351
|
recordsPath: $,
|
|
351
|
-
extra: p ?
|
|
352
|
+
extra: p ? _ : void 0,
|
|
352
353
|
favorite: i,
|
|
353
354
|
onToggleFavorite: m,
|
|
354
355
|
pinnedForAll: o,
|
|
355
356
|
onTogglePinned: h,
|
|
356
|
-
onMoveUp:
|
|
357
|
-
onMoveDown:
|
|
358
|
-
folders:
|
|
359
|
-
onMove:
|
|
357
|
+
onMoveUp: H,
|
|
358
|
+
onMoveDown: R,
|
|
359
|
+
folders: I,
|
|
360
|
+
onMove: M,
|
|
360
361
|
className: l(k, "[@media(hover:none)]:[&[data-cdr]]:opacity-100")
|
|
361
362
|
}
|
|
362
363
|
)
|
|
@@ -366,10 +367,10 @@ function He({
|
|
|
366
367
|
);
|
|
367
368
|
}
|
|
368
369
|
export {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
370
|
+
fe as CollectionAvatar,
|
|
371
|
+
Be as CollectionRow,
|
|
372
|
+
E as HostLink,
|
|
373
|
+
pe as defaultCollectionPath,
|
|
374
|
+
he as heavyListTip,
|
|
375
|
+
we as shortWhen
|
|
375
376
|
};
|