@declarion/react 0.255.0 → 0.307.0
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-lib/components/detail-layout/DetailHighlights.js +40 -40
- package/dist-lib/components/detail-layout/useQuickAdd.js +45 -47
- package/dist-lib/components/fields/EnumField.js +25 -25
- package/dist-lib/components/fields/cells/factories/badge.js +14 -27
- package/dist-lib/components/fields/cells/factories/statusPill.js +13 -26
- package/dist-lib/components/fields/cells/factories/tagList.js +13 -26
- package/dist-lib/components/pages/SmartDetailPage.impl.js +416 -415
- package/dist-lib/components/pages/auth/AuthShell.js +57 -76
- package/dist-lib/components/pages/list/ListCardRow.js +66 -66
- package/dist-lib/components/pages/list/columns.js +89 -89
- package/dist-lib/components/pages/profile/Profile.impl.js +130 -126
- package/dist-lib/components/pages/tenant-params/TenantParamsPage.impl.js +107 -109
- package/dist-lib/components/params/ParamsBlock.js +42 -37
- package/dist-lib/components/params/param-editors.js +20 -33
- package/dist-lib/components/primitives/Pill.js +36 -15
- package/dist-lib/components/shared/StatusGroupsDisplay.js +49 -49
- package/dist-lib/declarion-react.css +1 -1
- package/dist-lib/hooks/useDeclaredEnum.js +38 -0
- package/dist-lib/index.d.ts +34 -12
- package/dist-lib/index.js +123 -122
- package/dist-lib/lib/evidence-verdict.js +6 -5
- package/dist-lib/lib/fill-from.js +15 -0
- package/dist-lib/testing.d.ts +1 -1
- package/dist-lib/{useResponsiveMode-CgwjOaEE.d.ts → useResponsiveMode-CBSHZBY5.d.ts} +1 -0
- package/package.json +1 -1
package/dist-lib/index.js
CHANGED
|
@@ -10,125 +10,126 @@ import { EntityClient as C, RefCache as w, entityClient as T } from "./api/entit
|
|
|
10
10
|
import { ActionBatchError as E, buildActionBody as D, deleteObject as O, executeAction as k, restoreObject as A } from "./api/data.js";
|
|
11
11
|
import { Batch as j } from "./api/batch.js";
|
|
12
12
|
import { useSchema as M } from "./hooks/useSchema.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { DEFAULT_RESPONSIVE_BREAKPOINTS as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
|
|
13
|
+
import { useDeclaredEnum as N, useDeclaredField as P, useDeclaredStatuses as F } from "./hooks/useDeclaredEnum.js";
|
|
14
|
+
import { useEntity as I } from "./hooks/useEntity.js";
|
|
15
|
+
import { useScreen as L } from "./hooks/useScreen.js";
|
|
16
|
+
import { CurrentScreenProvider as R, useCurrentScreen as z } from "./hooks/useCurrentScreen.js";
|
|
17
|
+
import { useAuth as B } from "./hooks/useAuth.js";
|
|
18
|
+
import { entityDataQueryKey as V, useEntityCount as H, useEntityData as U } from "./hooks/useEntityData.js";
|
|
19
|
+
import { useAggregate as W } from "./hooks/useAggregate.js";
|
|
20
|
+
import { cursorEntityDataQueryKey as G, cursorEntityStableKey as K, useCursorEntityData as q } from "./hooks/useCursorEntityData.js";
|
|
21
|
+
import { useAllEntityData as J } from "./hooks/useAllEntityData.js";
|
|
22
|
+
import { objectQueryKey as Y, useObject as X } from "./hooks/useObject.js";
|
|
23
|
+
import { fileReferenceJSONQueryKey as Z, useFileReferenceJSON as Q } from "./hooks/useFileReferenceJSON.js";
|
|
24
|
+
import { StructureField as $ } from "./components/fields/StructureField.js";
|
|
25
|
+
import { useLiveObject as ee } from "./hooks/useLiveObject.js";
|
|
26
|
+
import { ACTION_DATA_CURSOR_KEY as te, ACTION_DATA_KEY as ne, actionDataQueryKey as re, cursorActionDataQueryKey as ie, useActionData as ae, useCursorActionData as oe } from "./hooks/useActionData.js";
|
|
27
|
+
import { useCreateObject as se, useDeleteObject as ce, useUpdateObject as le } from "./hooks/useMutations.js";
|
|
28
|
+
import { useDebounce as ue } from "./hooks/useDebounce.js";
|
|
29
|
+
import { ResponsiveModeProvider as de, useResponsiveMode as fe } from "./hooks/useResponsiveMode.js";
|
|
30
|
+
import { DEFAULT_RESPONSIVE_BREAKPOINTS as pe, resolveViewportCategory as me } from "./lib/viewport-category.js";
|
|
31
|
+
import { useEffectiveParam as he, useParam as ge, usePublicParams as _e, useResolvedParam as ve } from "./hooks/useParams.js";
|
|
32
|
+
import { useSetStatus as ye } from "./hooks/useObjectStatus.js";
|
|
33
|
+
import { useDeleteProperty as be, useSetProperty as xe } from "./hooks/useProperties.js";
|
|
34
|
+
import { useFilters as Se } from "./hooks/useFilters.js";
|
|
35
|
+
import { useColumns as Ce } from "./hooks/useColumns.js";
|
|
36
|
+
import { useViews as we } from "./hooks/useViews.js";
|
|
37
|
+
import { registerScreen as Te } from "./stores/screen-registry.js";
|
|
38
|
+
import { getIcon as Ee, setIconRegistry as De } from "./stores/icon-registry.js";
|
|
39
|
+
import { getLayoutWidget as Oe, hasLayoutWidget as ke, registerLayoutWidget as Ae } from "./components/detail-layout/widgets/registry.js";
|
|
40
|
+
import { reresolveLanguage as je, useDeploymentLanguage as Me, useLanguage as Ne } from "./hooks/useLanguage.js";
|
|
41
|
+
import { useText as Pe } from "./hooks/useText.js";
|
|
42
|
+
import { MANDATORY_LANGUAGE as Fe, makeTextFn as Ie, pickLocalized as Le, pluralText as Re, textWithNodes as ze } from "./lib/language.js";
|
|
43
|
+
import { failureTitle as Be } from "./lib/failure.js";
|
|
44
|
+
import { readDisplayState as Ve } from "./lib/read-display-state.js";
|
|
45
|
+
import { useTabStore as He } from "./stores/tabs.js";
|
|
46
|
+
import { useTabNavigate as Ue } from "./hooks/useTabNavigate.js";
|
|
47
|
+
import { useScreenBack as We } from "./hooks/useScreenBack.js";
|
|
48
|
+
import { usePageState as Ge } from "./hooks/usePageState.js";
|
|
49
|
+
import { canonicalUrl as Ke } from "./lib/canonical-url.js";
|
|
50
|
+
import { useRegisterRetainedQuery as qe } from "./hooks/usePageStateRuntime.js";
|
|
51
|
+
import { PAGE_STATE_TTL_PARAM as Je, usePageStateTtl as Ye } from "./hooks/usePageStateTtl.js";
|
|
52
|
+
import { useScreenTab as Xe } from "./hooks/useScreenTab.js";
|
|
53
|
+
import { useTabSearchMirror as Ze } from "./hooks/useTabSearchMirror.js";
|
|
54
|
+
import { SCROLL_STATE_KEY as Qe, usePlainScrollRestoration as $e, useSavedScrollOffset as et, useVirtualScrollRestoration as tt } from "./lib/scroll-restoration.js";
|
|
55
|
+
import { SmartListPage as nt } from "./components/pages/SmartListPage.js";
|
|
56
|
+
import { SmartDetailPage as rt } from "./components/pages/SmartDetailPage.js";
|
|
57
|
+
import { SmartRecordListPage as it } from "./components/pages/SmartRecordListPage.js";
|
|
58
|
+
import { DynamicIcon as at } from "./components/shared/DynamicIcon.js";
|
|
59
|
+
import { PageHeader as ot } from "./components/chrome/PageHeader.js";
|
|
60
|
+
import { EmptyState as st } from "./components/shared/EmptyState.js";
|
|
61
|
+
import { ConfirmDialog as ct } from "./components/shared/ConfirmDialog.js";
|
|
62
|
+
import { FilterDrawer as lt } from "./components/filters/FilterDrawer.js";
|
|
63
|
+
import { FilterChips as ut } from "./components/filters/FilterChips.js";
|
|
64
|
+
import { ColumnPicker as dt } from "./components/list/ColumnPicker.js";
|
|
65
|
+
import { ViewSwitcher as ft } from "./components/list/ViewSwitcher.js";
|
|
66
|
+
import { ActionRunnerProvider as pt, useActionRunner as mt } from "./components/actions/ActionRunner.js";
|
|
67
|
+
import { ObjectActionBar as ht, useObjectActions as gt } from "./components/actions/ObjectActionBar.js";
|
|
68
|
+
import { RefreshControl as _t } from "./components/shared/RefreshControl.js";
|
|
69
|
+
import { RefCombobox as vt } from "./components/fields/RefCombobox.js";
|
|
70
|
+
import { QEField as yt, QuickPeek as bt } from "./components/list/QuickPeek.js";
|
|
71
|
+
import { InlineEditCell as xt } from "./components/list/InlineEditCell.js";
|
|
72
|
+
import { SignIn as St } from "./components/pages/auth/SignIn.js";
|
|
73
|
+
import { SignUp as Ct } from "./components/pages/auth/SignUp.js";
|
|
74
|
+
import { Forgot as wt } from "./components/pages/auth/Forgot.js";
|
|
75
|
+
import { Reset as Tt } from "./components/pages/auth/Reset.js";
|
|
76
|
+
import { TwoFA as Et } from "./components/pages/auth/TwoFA.js";
|
|
77
|
+
import { AuthShell as Dt } from "./components/pages/auth/AuthShell.js";
|
|
78
|
+
import { Profile as Ot } from "./components/pages/profile/Profile.js";
|
|
79
|
+
import { Preferences as kt } from "./components/pages/profile/Preferences.js";
|
|
80
|
+
import { ChangePasswordDialog as At } from "./components/shared/ChangePasswordDialog.js";
|
|
81
|
+
import { Icon as jt } from "./components/primitives/Icons.js";
|
|
82
|
+
import { Btn as Mt } from "./components/primitives/Btn.js";
|
|
83
|
+
import { IconBtn as Nt } from "./components/primitives/IconBtn.js";
|
|
84
|
+
import { PILL_TONES as Pt, Pill as Ft, pillColor as It, pillForeground as Lt } from "./components/primitives/Pill.js";
|
|
85
|
+
import { Kbd as Rt } from "./components/primitives/Kbd.js";
|
|
86
|
+
import { Avatar as zt } from "./components/primitives/Avatar.js";
|
|
87
|
+
import { BrandGlyph as Bt } from "./components/primitives/BrandGlyph.js";
|
|
88
|
+
import { Dropdown as Vt } from "./components/primitives/Dropdown.js";
|
|
89
|
+
import { HoverCard as Ht } from "./components/primitives/HoverCard.js";
|
|
90
|
+
import { InfoTooltip as Ut, Tooltip as Wt } from "./components/primitives/Tooltip.js";
|
|
91
|
+
import { Chip as Gt } from "./components/primitives/Chip.js";
|
|
92
|
+
import { SectionCard as Kt } from "./components/primitives/SectionCard.js";
|
|
93
|
+
import { StatTile as qt } from "./components/primitives/StatTile.js";
|
|
94
|
+
import { RecordIdBadge as Jt } from "./components/primitives/RecordIdBadge.js";
|
|
95
|
+
import { RowField as Yt } from "./components/primitives/RowField.js";
|
|
96
|
+
import { BoolToggle as Xt } from "./components/primitives/BoolToggle.js";
|
|
97
|
+
import { MenuItem as Zt } from "./components/primitives/MenuItem.js";
|
|
98
|
+
import { Check as Qt } from "./components/primitives/Check.js";
|
|
99
|
+
import { Spinner as $t } from "./components/primitives/Spinner.js";
|
|
100
|
+
import { DateInput as en, FieldLabel as tn, JsonField as nn, MultiSelect as rn, PasswordInput as an, QuickEditCell as on, RefField as sn, Select as cn, TagsInput as ln, TextArea as un, TextInput as dn, ViewField as fn } from "./components/primitives/Fields.js";
|
|
101
|
+
import { SquareImage as pn } from "./components/file-widgets/SquareImage.js";
|
|
102
|
+
import { CircleImage as mn } from "./components/file-widgets/CircleImage.js";
|
|
103
|
+
import { WideBanner as hn } from "./components/file-widgets/WideBanner.js";
|
|
104
|
+
import { getFileWidget as gn, hasFileWidget as _n, registerFileWidget as vn } from "./components/file-widgets/registry.js";
|
|
105
|
+
import { UploadError as yn, discardFile as bn, formatBytes as xn, uploadFile as Sn, validateClientSide as Cn } from "./components/file-widgets/upload.js";
|
|
106
|
+
import { getImageCropper as wn, setImageCropper as Tn } from "./components/file-widgets/cropper.js";
|
|
107
|
+
import { FileDraftScope as En, useDraftRegistration as Dn, useFileDraftScope as On } from "./components/file-widgets/draft-scope.js";
|
|
108
|
+
import { fileSelectionReducer as kn, summarizeFileSelections as An, useFileSelection as jn } from "./components/file-widgets/useFileSelection.js";
|
|
109
|
+
import { Rail as Mn } from "./components/layout/Rail.js";
|
|
110
|
+
import { Sidebar as Nn, buildSections as Pn } from "./components/layout/Sidebar.js";
|
|
111
|
+
import { TopBar as Fn } from "./components/layout/TopBar.js";
|
|
112
|
+
import { TenantChip as In, envTone as Ln } from "./components/layout/TenantChip.js";
|
|
113
|
+
import { TabStrip as Rn } from "./components/layout/TabStrip.js";
|
|
114
|
+
import { ImpersonationBanner as zn } from "./components/layout/ImpersonationBanner.js";
|
|
115
|
+
import { ImpersonationFrame as Bn } from "./components/layout/ImpersonationFrame.js";
|
|
116
|
+
import { ImpersonationStartModal as Vn } from "./components/layout/ImpersonationStartModal.js";
|
|
117
|
+
import { useImpersonation as Hn } from "./hooks/useImpersonation.js";
|
|
118
|
+
import { CommandPalette as Un } from "./components/layout/CommandPalette.js";
|
|
119
|
+
import { AgentChatPanel as Wn } from "./components/agents/AgentChatPanel.js";
|
|
120
|
+
import { AgentElicitForm as Gn } from "./components/agents/AgentElicitForm.js";
|
|
121
|
+
import { AgentPicker as Kn } from "./components/agents/AgentPicker.js";
|
|
122
|
+
import { AgentConversationDrawer as qn } from "./components/agents/AgentConversationDrawer.js";
|
|
123
|
+
import { useAgentConversation as Jn } from "./hooks/useAgentConversation.js";
|
|
124
|
+
import { answerQuestion as Yn, approveInvocation as Xn, cancelConversation as Zn, cancelInvocation as Qn, createConversation as $n, listAvailableAgents as er, listConversations as tr, loadConversationInvocations as nr, loadConversationTurns as rr, loadHistory as ir, rejectInvocation as ar, sendElicitResponse as or, sendMessage as sr } from "./api/agents.js";
|
|
125
|
+
import { Breadcrumbs as cr } from "./components/chrome/Breadcrumbs.js";
|
|
126
|
+
import { NO_VALUE_OPS as lr, OP_LABELS as ur, countActiveFilters as dr, hasOrGroups as fr, parseFilterURLState as pr, parseFiltersFromURL as mr, setFiltersInURL as hr } from "./lib/filters.js";
|
|
127
|
+
import { evaluateFilterTree as gr } from "./lib/filter-evaluator.js";
|
|
128
|
+
import { commonVariantActionCodes as _r, effectiveScreenForRecord as vr, resolveEntityVariantCode as yr, resolveScreenVariantCode as br, variantActionCodesForRecord as xr } from "./lib/variants.js";
|
|
129
|
+
import { formatCount as Sr, formatEstimatedCount as Cr, formatExactCount as wr } from "./lib/format-count.js";
|
|
130
|
+
import { buildMassEditTargets as Tr, parseTargetFilter as Er } from "./lib/mass-edit.js";
|
|
131
|
+
import { MULTIPLE_VALUES as Dr, PropertyGridEditor as Or, detectCommonValue as kr } from "./components/actions/PropertyGridEditor.js";
|
|
132
|
+
import { ClassifiedFieldLocked as Ar } from "./components/primitives/ClassifiedFieldLocked.js";
|
|
133
|
+
import { classificationTier as jr, fieldAccessInfo as Mr, fieldClassification as Nr, fieldRequiredPermission as Pr, isFieldReadable as Fr, isFieldSoDProtected as Ir, isFieldWritable as Lr } from "./lib/field-classification.js";
|
|
134
|
+
import { useLocation as Rr, useNavigate as zr, useParams as Br, useSearchParams as Vr } from "react-router";
|
|
135
|
+
export { te as ACTION_DATA_CURSOR_KEY, ne as ACTION_DATA_KEY, E as ActionBatchError, pt as ActionRunnerProvider, Wn as AgentChatPanel, qn as AgentConversationDrawer, Gn as AgentElicitForm, Kn as AgentPicker, e as App, Dt as AuthShell, zt as Avatar, j as Batch, Xt as BoolToggle, Bt as BrandGlyph, cr as Breadcrumbs, Mt as Btn, p as CURSOR_LANGUAGE_CHANGED, m as CURSOR_SEMANTICS_MISMATCH, At as ChangePasswordDialog, Qt as Check, Gt as Chip, mn as CircleImage, Ar as ClassifiedFieldLocked, dt as ColumnPicker, Un as CommandPalette, ct as ConfirmDialog, R as CurrentScreenProvider, pe as DEFAULT_RESPONSIVE_BREAKPOINTS, en as DateInput, e as Declarion, Vt as Dropdown, at as DynamicIcon, st as EmptyState, C as EntityClient, tn as FieldLabel, En as FileDraftScope, ut as FilterChips, lt as FilterDrawer, wt as Forgot, Ht as HoverCard, jt as Icon, Nt as IconBtn, zn as ImpersonationBanner, Bn as ImpersonationFrame, Vn as ImpersonationStartModal, Ut as InfoTooltip, xt as InlineEditCell, nn as JsonField, Rt as Kbd, Fe as MANDATORY_LANGUAGE, Dr as MULTIPLE_VALUES, Zt as MenuItem, rn as MultiSelect, lr as NO_VALUE_OPS, ur as OP_LABELS, ht as ObjectActionBar, t as OrderedMap, Je as PAGE_STATE_TTL_PARAM, Pt as PILL_TONES, ot as PageHeader, an as PasswordInput, Ft as Pill, kt as Preferences, Ot as Profile, Or as PropertyGridEditor, yt as QEField, on as QuickEditCell, bt as QuickPeek, Mn as Rail, Jt as RecordIdBadge, w as RefCache, vt as RefCombobox, sn as RefField, _t as RefreshControl, Tt as Reset, de as ResponsiveModeProvider, Yt as RowField, Qe as SCROLL_STATE_KEY, Kt as SectionCard, cn as Select, Nn as Sidebar, St as SignIn, Ct as SignUp, rt as SmartDetailPage, nt as SmartListPage, it as SmartRecordListPage, $t as Spinner, pn as SquareImage, qt as StatTile, $ as StructureField, Rn as TabStrip, ln as TagsInput, In as TenantChip, un as TextArea, dn as TextInput, Wt as Tooltip, Fn as TopBar, Et as TwoFA, yn as UploadError, fn as ViewField, ft as ViewSwitcher, hn as WideBanner, re as actionDataQueryKey, Yn as answerQuestion, Xn as approveInvocation, D as buildActionBody, n as buildDetailHrefFromId, r as buildEntityDetailHref, Tr as buildMassEditTargets, i as buildRowDetailHref, Pn as buildSections, Zn as cancelConversation, Qn as cancelInvocation, Ke as canonicalUrl, jr as classificationTier, _ as coerceDisplayString, _r as commonVariantActionCodes, dr as countActiveFilters, $n as createConversation, ie as cursorActionDataQueryKey, G as cursorEntityDataQueryKey, K as cursorEntityStableKey, O as deleteObject, kr as detectCommonValue, bn as discardFile, v as editorWallClock, y as editorWireValue, vr as effectiveScreenForRecord, T as entityClient, V as entityDataQueryKey, Ln as envTone, h as errorCodeOf, gr as evaluateFilterTree, k as executeAction, a as extractPkValues, Be as failureTitle, Mr as fieldAccessInfo, Nr as fieldClassification, o as fieldDisplayName, Pr as fieldRequiredPermission, Z as fileReferenceJSONQueryKey, kn as fileSelectionReducer, xn as formatBytes, Sr as formatCount, Cr as formatEstimatedCount, wr as formatExactCount, S as formatMoneyText, b as formatOffsetTimestamp, gn as getFileWidget, Ee as getIcon, wn as getImageCropper, Oe as getLayoutWidget, s as getPrimaryKeyFields, _n as hasFileWidget, ke as hasLayoutWidget, fr as hasOrGroups, g as isCursorStaleError, Fr as isFieldReadable, Ir as isFieldSoDProtected, Lr as isFieldWritable, er as listAvailableAgents, tr as listConversations, nr as loadConversationInvocations, rr as loadConversationTurns, ir as loadHistory, Ie as makeTextFn, Y as objectQueryKey, pr as parseFilterURLState, mr as parseFiltersFromURL, Er as parseTargetFilter, Le as pickLocalized, It as pillColor, Lt as pillForeground, c as pkValuePartsToId, l as pkValuesFromId, u as pkValuesToDetailId, d as pkValuesToId, Re as pluralText, Ve as readDisplayState, vn as registerFileWidget, Ae as registerLayoutWidget, Te as registerScreen, ar as rejectInvocation, je as reresolveLanguage, f as resolveDetailRoute, yr as resolveEntityVariantCode, br as resolveScreenVariantCode, me as resolveViewportCategory, A as restoreObject, or as sendElicitResponse, sr as sendMessage, hr as setFiltersInURL, De as setIconRegistry, Tn as setImageCropper, An as summarizeFileSelections, ze as textWithNodes, Sn as uploadFile, ae as useActionData, mt as useActionRunner, Jn as useAgentConversation, W as useAggregate, J as useAllEntityData, B as useAuth, Ce as useColumns, se as useCreateObject, z as useCurrentScreen, oe as useCursorActionData, q as useCursorEntityData, ue as useDebounce, N as useDeclaredEnum, P as useDeclaredField, F as useDeclaredStatuses, ce as useDeleteObject, be as useDeleteProperty, Me as useDeploymentLanguage, Dn as useDraftRegistration, he as useEffectiveParam, I as useEntity, H as useEntityCount, U as useEntityData, On as useFileDraftScope, Q as useFileReferenceJSON, jn as useFileSelection, Se as useFilters, Hn as useImpersonation, Ne as useLanguage, ee as useLiveObject, Rr as useLocation, zr as useNavigate, X as useObject, gt as useObjectActions, Ge as usePageState, Ye as usePageStateTtl, ge as useParam, Br as useParams, $e as usePlainScrollRestoration, _e as usePublicParams, qe as useRegisterRetainedQuery, ve as useResolvedParam, fe as useResponsiveMode, et as useSavedScrollOffset, M as useSchema, L as useScreen, We as useScreenBack, Xe as useScreenTab, Vr as useSearchParams, xe as useSetProperty, ye as useSetStatus, Ue as useTabNavigate, Ze as useTabSearchMirror, He as useTabStore, Pe as useText, le as useUpdateObject, we as useViews, tt as useVirtualScrollRestoration, Cn as validateClientSide, xr as variantActionCodesForRecord, x as zoneMark };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { pillColor as e } from "../components/primitives/Pill.js";
|
|
1
2
|
// src/lib/evidence-verdict.ts
|
|
2
|
-
function
|
|
3
|
-
let
|
|
3
|
+
function t(t, n, r) {
|
|
4
|
+
let i = n?.evidence_verdict?.values.find((e) => e.code === r);
|
|
4
5
|
return {
|
|
5
|
-
label:
|
|
6
|
-
tone:
|
|
6
|
+
label: i && t(i.name) || r,
|
|
7
|
+
tone: e(i?.color)
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
|
-
export {
|
|
10
|
+
export { t as evidenceVerdictPill };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/lib/fill-from.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return e.normalize("NFKD").replace(/[̀-ͯ]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
4
|
+
}
|
|
5
|
+
function t(t, n, r, i, a) {
|
|
6
|
+
let o = {
|
|
7
|
+
...n,
|
|
8
|
+
[r]: i
|
|
9
|
+
};
|
|
10
|
+
if (!t) return o;
|
|
11
|
+
t.fields.get(r)?.display?.fill_from && a.add(r);
|
|
12
|
+
for (let n of t.fields.items()) n.name && n.display?.fill_from === r && !a.has(n.name) && (o[n.name] = e(typeof i == "string" ? i : ""));
|
|
13
|
+
return o;
|
|
14
|
+
}
|
|
15
|
+
export { e as codeFromText, t as withFillFrom };
|
package/dist-lib/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as Refs, M as ListMeta, Mt as TextFn, P as ListResponse, ct as LocalizedString, d as ActionExecuteResponse, k as DataResponse, mt as Schema, o as ResponsiveViewport, u as ActionExecuteRequest } from "./useResponsiveMode-
|
|
1
|
+
import { B as Refs, M as ListMeta, Mt as TextFn, P as ListResponse, ct as LocalizedString, d as ActionExecuteResponse, k as DataResponse, mt as Schema, o as ResponsiveViewport, u as ActionExecuteRequest } from "./useResponsiveMode-CBSHZBY5.js";
|
|
2
2
|
import { ReactElement, ReactNode } from "react";
|
|
3
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
4
4
|
import { RenderResult } from "@testing-library/react";
|