@jsudc/react 0.3.1 → 0.4.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/README.md +556 -19
- package/dist/calendar/CalendarRenderer.js +1 -1
- package/dist/calendar/EventDetail.js +1 -1
- package/dist/calendar.js +1 -1
- package/dist/cards/CardRenderer.d.ts +2 -1
- package/dist/cards/CardRenderer.js +143 -109
- package/dist/cards/CardRenderer.js.map +1 -1
- package/dist/cells/registry.d.ts +60 -0
- package/dist/cells/registry.js +47 -0
- package/dist/cells/registry.js.map +1 -0
- package/dist/chart/ChartWindowControl.js +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/dialog.js +4 -3
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +2 -1
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/popover.js +2 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/select.js +2 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/toast.js +3 -2
- package/dist/components/ui/toast.js.map +1 -1
- package/dist/components/ui/tooltip.js +2 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/data-view/FilterBuilder.js +1 -1
- package/dist/data-view/FilterChips.js +1 -1
- package/dist/data-view/Freshness.js +1 -1
- package/dist/data-view/SearchBox.js +1 -1
- package/dist/data-view/UdcDataView.d.ts +83 -1
- package/dist/data-view/UdcDataView.js +171 -85
- package/dist/data-view/UdcDataView.js.map +1 -1
- package/dist/data-view/useDataViewState.d.ts +8 -0
- package/dist/data-view/useDataViewState.js +2 -1
- package/dist/data-view/useDataViewState.js.map +1 -1
- package/dist/headless.d.ts +3 -0
- package/dist/headless.js +4 -1
- package/dist/i18n/translations.js +8 -0
- package/dist/i18n/translations.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +7 -3
- package/dist/kanban/KanbanColumn.js +1 -1
- package/dist/kanban/KanbanRenderer.js +1 -1
- package/dist/lib/scope.d.ts +8 -0
- package/dist/lib/scope.js +12 -0
- package/dist/lib/scope.js.map +1 -0
- package/dist/lookup/LookupCombobox.js +1 -1
- package/dist/map/MapRenderer.js +1 -1
- package/dist/renderers/types.d.ts +12 -0
- package/dist/renderers/types.js.map +1 -1
- package/dist/rows/useRowActivation.d.ts +74 -0
- package/dist/rows/useRowActivation.js +225 -0
- package/dist/rows/useRowActivation.js.map +1 -0
- package/dist/schema-editor/DeleteFieldDialog.js +1 -1
- package/dist/schema-editor/FieldFormDialog.js +1 -1
- package/dist/schema-editor/TagInput.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.scoped.css +2 -0
- package/dist/table/CellEditor.js +1 -0
- package/dist/table/CellEditor.js.map +1 -1
- package/dist/table/TableRenderer.d.ts +2 -1
- package/dist/table/TableRenderer.js +41 -8
- package/dist/table/TableRenderer.js.map +1 -1
- package/dist/table/cells.d.ts +13 -2
- package/dist/table/cells.js +14 -1
- package/dist/table/cells.js.map +1 -1
- package/dist/table/states.d.ts +6 -0
- package/dist/table/states.js +14 -1
- package/dist/table/states.js.map +1 -1
- package/dist/tree/TreeNode.js +1 -1
- package/dist/tree/TreeRenderer.js +1 -1
- package/dist/udc/client.d.ts +15 -1
- package/dist/udc/client.js +31 -10
- package/dist/udc/client.js.map +1 -1
- package/dist/udc/hooks.d.ts +8 -3
- package/dist/udc/provider.d.ts +5 -2
- package/dist/udc/provider.js +6 -1
- package/dist/udc/provider.js.map +1 -1
- package/dist/ui-kit/ui.d.ts +1 -0
- package/dist/ui.js +2 -1
- package/dist/url-state/adapters.d.ts +23 -0
- package/dist/url-state/adapters.js +57 -0
- package/dist/url-state/adapters.js.map +1 -0
- package/dist/url-state/index.d.ts +1 -0
- package/package.json +6 -4
package/dist/headless.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ACCENT, canCreate, computeWindow, dragResult, eventColor, eventsOnDay, instantAt, isAllDay, layoutLanes, movePatch, moveToDay, newEventRow, presetDays, snapMinutes, stepAnchor, toEvents, verticalSpan, weekStart, windowBetween, windowFilter, windowLabel } from "./calendar/model.js";
|
|
2
2
|
import { DATE_PARAM, PRESET_PARAM, useCalendarUrl } from "./calendar/useCalendarUrl.js";
|
|
3
3
|
import { CARD_MIN_WIDTH, CARD_SPARKLINE, avatarTone, cardSize, cardSlots, initials, metricText } from "./cards/cardModel.js";
|
|
4
|
+
import { UdcCellsProvider, cellComponent, createCellRegistry, mergeCellRegistries, useCellRegistry } from "./cells/registry.js";
|
|
4
5
|
import { CHART_SLOTS, COUNT_KEY, X_KEY, axisFrames, axisValues, barSize, cartesianData, formatAxisValue, formatTimeTick, maxPointsFor, seriesColor, timeTicks } from "./chart/model.js";
|
|
5
6
|
import { useChartWindow } from "./chart/useChartWindow.js";
|
|
6
7
|
import { FROM_PARAM, TO_PARAM, WIN_PARAM, andWindow, parseWall, readWindow, wallOf, windowCondition, windowRange, writeWindow } from "./chart/window.js";
|
|
@@ -19,6 +20,7 @@ import { AIRPLANE_PATH, TRAILS_FOR_ALL_MAX, airplaneHtml, boundsOf, coordsOf, in
|
|
|
19
20
|
import { UdcRenderersProvider, useRendererRegistry } from "./renderers/context.js";
|
|
20
21
|
import { createRendererRegistry, rendererEntry, rendererTabs, resolveTab } from "./renderers/registry.js";
|
|
21
22
|
import { isFolderRow } from "./renderers/types.js";
|
|
23
|
+
import { ownsKeys, rowActivationEnabled, useRowActivation } from "./rows/useRowActivation.js";
|
|
22
24
|
import { badgeTone, displayText, formatBytes, formatDate, formatDateTime, formatNumber, formatNumberColumn, isBlank, renderKind } from "./table/format.js";
|
|
23
25
|
import { BG_COLOR, TEXT_COLOR, resolveRowColor } from "./table/style.js";
|
|
24
26
|
import { applyTransforms, formatDatePattern, hasTransforms, parseIsoParts, titlecase, truncate } from "./table/transforms.js";
|
|
@@ -30,5 +32,6 @@ import { UdcClientContext, createUdcQueryClient, shouldRetry, useUdcClient } fro
|
|
|
30
32
|
import { ALL_ROWS_MAX, fetchAllRows, freshnessOf, pageOffset, patchRowInList, pollInterval, useUdcAllRows, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcMutate, useUdcSchema, useUdcSource } from "./udc/hooks.js";
|
|
31
33
|
import { udcKeys } from "./udc/keys.js";
|
|
32
34
|
import { windowLocationAdapter } from "./url-state/adapter.js";
|
|
35
|
+
import { createMemoryUrlStateAdapter, prefixUrlStateAdapter } from "./url-state/adapters.js";
|
|
33
36
|
import { UdcUrlStateProvider, useUrlSearchParams, useUrlStateAdapter } from "./url-state/UrlState.js";
|
|
34
|
-
export { ACCENT, AIRPLANE_PATH, ALL_ROWS_MAX, BG_COLOR, BOARD_PARAM, BROWSER_TZ, CARD_MIN_WIDTH, CARD_SPARKLINE, CHART_SLOTS, COMMON_ZONES, COUNT_KEY, DATE_PARAM, DAY, DOC_TAB, FIRST_VISIT, FROM_PARAM, HOUR, LOOKUP_OPTIONS_LIMIT, MINUTE, PARAM, PRESET_PARAM, REPLY_AUTHOR, SOURCE_TAB, TEXT_COLOR, TO_PARAM, TRAILS_FOR_ALL_MAX, TZ_STORAGE_KEY, TimezoneProvider, UdcClientContext, UdcRenderersProvider, UdcUrlStateProvider, WIN_PARAM, X_KEY, addDays, addMonths, airplaneHtml, allZones, andWindow, applyTransforms, asLookup, avatarTone, axisFrames, axisValues, badgeTone, barSize, base64UrlToUtf8, boardFilter, boardFromFilter, boardSource, boundsOf, browserZone, bucketsOf, buildTree, byOrder, canCreate, canDrop, cardSize, cardSlots, cardsFilter, cartesianData, chipCondition, chipsFilter, composeFilter, computeWindow, conditionsToTree, coordsOf, createRendererRegistry, createUdcQueryClient, cycleSort, dayKey, dayOf, daysBetween, decodeChipParam, decodeFilterParam, decodeModeParam, decodePageParam, decodeSortParam, displayText, dragResult, dropId, dropParent, encodeChipParam, encodeFilterParam, encodeSortParam, eventColor, eventsOnDay, expandStorageKey, fetchAllRows, fetchLookupRows, findMatchRanges, folderCrumbs, formatAxisValue, formatBytes, formatDate, formatDatePattern, formatDateTime, formatDay, formatNumber, formatNumberColumn, formatTime, formatTimeTick, freshnessOf, groupCards, hasTransforms, highlightParts, i18nKey, idOf, initialView, initials, instantAt, isAllDay, isBlank, isEmptyChip, isExpanded, isFolderRow, isLiveField, isOverdue, isReadOnly, isValidZone, isoInZone, joinFolder, keyString, layoutLanes, lazyChildrenQuery, lazyRootsQuery, liveDescribe, liveSort, liveView, loadExpand, lookupExtras, lookupKeys, lookupLabel, lookupQuery, markerRadius, markerTone, maxPointsFor, metricText, minuteOfDay, movePatch, moveToDay, newBucketRow, newEventRow, numberOf, offsetLabel, offsetMinutes, offsetText, optionsFilter, orderOf, pageOffset, pagingStorageKey, parentLookup, parentOf, parseDayKey, parseDropId, parseIsoParts, parseWall, patchRowInList, persistOrder, planDrop, planDrop$1 as planTreeDrop, pollInterval, presetDays, priorityTone, pruneTree, quickAddRow, readWindow, regionAt, regionById, renderKind, rendererEntry, rendererTabs, reparentRequest, replanDrop, replyRow, resolvePagingMode, resolveRowColor, resolveTab, rootCondition, rotationOf, sameDay, saveExpand, searchExpansion, searchFilter, seriesColor, shouldRetry, siblingsQuery, snapMinutes, sortSiblings, splitFolder, startOfDay, stepAnchor, timeTicks, titlecase, toEvents, toMarkers, toNumber, toggled, trailMarkers, trailOf, treeToConditions, truncate, udcKeys, useCalendarUrl, useChartWindow, useDataViewState, useKanbanBoard, useLookupOptions, useRendererRegistry, useTimezone, useTreeExpand, useUdcAllRows, useUdcClient, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcLookup, useUdcLookups, useUdcMutate, useUdcSchema, useUdcSource, useUrlSearchParams, useUrlStateAdapter, utf8ToBase64Url, valueKeys, verticalSpan, wallOf, weekStart, weekdayOf, windowBetween, windowCondition, windowFilter, windowLabel, windowLocationAdapter, windowRange, writeWindow, zoneCity, zonedFormat, zonedParts, zonedToInstant };
|
|
37
|
+
export { ACCENT, AIRPLANE_PATH, ALL_ROWS_MAX, BG_COLOR, BOARD_PARAM, BROWSER_TZ, CARD_MIN_WIDTH, CARD_SPARKLINE, CHART_SLOTS, COMMON_ZONES, COUNT_KEY, DATE_PARAM, DAY, DOC_TAB, FIRST_VISIT, FROM_PARAM, HOUR, LOOKUP_OPTIONS_LIMIT, MINUTE, PARAM, PRESET_PARAM, REPLY_AUTHOR, SOURCE_TAB, TEXT_COLOR, TO_PARAM, TRAILS_FOR_ALL_MAX, TZ_STORAGE_KEY, TimezoneProvider, UdcCellsProvider, UdcClientContext, UdcRenderersProvider, UdcUrlStateProvider, WIN_PARAM, X_KEY, addDays, addMonths, airplaneHtml, allZones, andWindow, applyTransforms, asLookup, avatarTone, axisFrames, axisValues, badgeTone, barSize, base64UrlToUtf8, boardFilter, boardFromFilter, boardSource, boundsOf, browserZone, bucketsOf, buildTree, byOrder, canCreate, canDrop, cardSize, cardSlots, cardsFilter, cartesianData, cellComponent, chipCondition, chipsFilter, composeFilter, computeWindow, conditionsToTree, coordsOf, createCellRegistry, createMemoryUrlStateAdapter, createRendererRegistry, createUdcQueryClient, cycleSort, dayKey, dayOf, daysBetween, decodeChipParam, decodeFilterParam, decodeModeParam, decodePageParam, decodeSortParam, displayText, dragResult, dropId, dropParent, encodeChipParam, encodeFilterParam, encodeSortParam, eventColor, eventsOnDay, expandStorageKey, fetchAllRows, fetchLookupRows, findMatchRanges, folderCrumbs, formatAxisValue, formatBytes, formatDate, formatDatePattern, formatDateTime, formatDay, formatNumber, formatNumberColumn, formatTime, formatTimeTick, freshnessOf, groupCards, hasTransforms, highlightParts, i18nKey, idOf, initialView, initials, instantAt, isAllDay, isBlank, isEmptyChip, isExpanded, isFolderRow, isLiveField, isOverdue, isReadOnly, isValidZone, isoInZone, joinFolder, keyString, layoutLanes, lazyChildrenQuery, lazyRootsQuery, liveDescribe, liveSort, liveView, loadExpand, lookupExtras, lookupKeys, lookupLabel, lookupQuery, markerRadius, markerTone, maxPointsFor, mergeCellRegistries, metricText, minuteOfDay, movePatch, moveToDay, newBucketRow, newEventRow, numberOf, offsetLabel, offsetMinutes, offsetText, optionsFilter, orderOf, ownsKeys, pageOffset, pagingStorageKey, parentLookup, parentOf, parseDayKey, parseDropId, parseIsoParts, parseWall, patchRowInList, persistOrder, planDrop, planDrop$1 as planTreeDrop, pollInterval, prefixUrlStateAdapter, presetDays, priorityTone, pruneTree, quickAddRow, readWindow, regionAt, regionById, renderKind, rendererEntry, rendererTabs, reparentRequest, replanDrop, replyRow, resolvePagingMode, resolveRowColor, resolveTab, rootCondition, rotationOf, rowActivationEnabled, sameDay, saveExpand, searchExpansion, searchFilter, seriesColor, shouldRetry, siblingsQuery, snapMinutes, sortSiblings, splitFolder, startOfDay, stepAnchor, timeTicks, titlecase, toEvents, toMarkers, toNumber, toggled, trailMarkers, trailOf, treeToConditions, truncate, udcKeys, useCalendarUrl, useCellRegistry, useChartWindow, useDataViewState, useKanbanBoard, useLookupOptions, useRendererRegistry, useRowActivation, useTimezone, useTreeExpand, useUdcAllRows, useUdcClient, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcLookup, useUdcLookups, useUdcMutate, useUdcSchema, useUdcSource, useUrlSearchParams, useUrlStateAdapter, utf8ToBase64Url, valueKeys, verticalSpan, wallOf, weekStart, weekdayOf, windowBetween, windowCondition, windowFilter, windowLabel, windowLocationAdapter, windowRange, writeWindow, zoneCity, zonedFormat, zonedParts, zonedToInstant };
|
|
@@ -545,6 +545,14 @@ var TRANSLATIONS = { APP: {
|
|
|
545
545
|
en: "Try again",
|
|
546
546
|
sr: "Pokušaj ponovo"
|
|
547
547
|
},
|
|
548
|
+
SIGNED_OUT_TITLE: {
|
|
549
|
+
en: "You are signed out",
|
|
550
|
+
sr: "Niste prijavljeni"
|
|
551
|
+
},
|
|
552
|
+
SIGNED_OUT_BODY: {
|
|
553
|
+
en: "Sign in again to see this data.",
|
|
554
|
+
sr: "Prijavite se ponovo da biste videli ove podatke."
|
|
555
|
+
},
|
|
548
556
|
ANY: {
|
|
549
557
|
en: "Any",
|
|
550
558
|
sr: "Bilo koje"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.js","names":[],"sources":["../../src/i18n/translations.ts"],"sourcesContent":["/** The locales the library's dictionary ships. A host adds others through `messages`. */\nexport const LOCALES = [\"en\", \"sr\"] as const;\nexport type BuiltinLocale = (typeof LOCALES)[number];\n/** A locale tag: `en` or `sr`, or any other a host supplies strings for. */\nexport type Locale = BuiltinLocale | (string & {});\n\n/** One term: every built-in locale, plus any a host adds. */\nexport type Term = Record<BuiltinLocale, string> & Partial<Record<string, string>>;\nexport type Translations = Record<string, Record<string, Term>>;\n\n/**\n * The library's dictionary, `{SECTION: {TERM: {en, sr}}}`. `APP` is the\n * strings of the data view and its renderers. A host's own sections (its\n * collection names, `TBL_<COLLECTION>` field labels, its chrome) come in\n * through `<UdcI18nProvider messages>`. `{name}` placeholders are filled from\n * `t`'s third argument.\n */\nexport const TRANSLATIONS: Translations = {\n APP: {\n TAB_TABLE: { en: \"Table\", sr: \"Tabela\" },\n TAB_CARDS: { en: \"Cards\", sr: \"Kartice\" },\n TAB_KANBAN: { en: \"Board\", sr: \"Tabla\" },\n TAB_CALENDAR: { en: \"Calendar\", sr: \"Kalendar\" },\n TAB_TREE: { en: \"Tree\", sr: \"Stablo\" },\n TAB_MAP: { en: \"Map\", sr: \"Mapa\" },\n TAB_CHART: { en: \"Chart\", sr: \"Grafikon\" },\n TAB_DOC: { en: \"Doc\", sr: \"Opis\" },\n TAB_SOURCE: { en: \"Source\", sr: \"Izvor\" },\n SOURCE_MODIFIED: { en: \"Modified {when}\", sr: \"Izmenjen {when}\" },\n SOURCE_LINES: { en: \"{count} lines\", sr: \"Redova: {count}\" },\n SOURCE_STALE: {\n en: \"The file does not parse; the rows shown are from its last good version\",\n sr: \"Fajl ne može da se pročita; prikazani redovi su iz poslednje ispravne verzije\",\n },\n UPDATED_AGO: { en: \"updated {age}\", sr: \"osveženo {age}\" },\n FRESH_FETCHED: { en: \"Fetched {when}\", sr: \"Preuzeto {when}\" },\n FRESH_AUTH: { en: \"Upstream access: {auth}\", sr: \"Pristup izvoru: {auth}\" },\n AUTH_ANONYMOUS: { en: \"anonymous\", sr: \"anonimno\" },\n AUTH_OAUTH2: { en: \"OAuth2 client\", sr: \"OAuth2 klijent\" },\n FRESH_CACHE: {\n en: \"Server cache: {ttl} (the source is asked at most that often)\",\n sr: \"Keš servera: {ttl} (izvor se pita najčešće toliko)\",\n },\n FRESH_NO_CACHE: { en: \"Server cache: none\", sr: \"Keš servera: nema\" },\n STALE: { en: \"stale\", sr: \"zastarelo\" },\n STALE_HINT: {\n en: \"The source could not be reached; this is the last copy it sent\",\n sr: \"Izvor nije dostupan; ovo je poslednja kopija koju je poslao\",\n },\n FOLDER_PATH: { en: \"Folder\", sr: \"Folder\" },\n FOLDER_ROOT: { en: \"Root\", sr: \"Koren\" },\n PREVIEW_TOO_LARGE: {\n en: \"This file is too large to preview (over 256 KB).\",\n sr: \"Fajl je prevelik za pregled (preko 256 KB).\",\n },\n PREVIEW_UNAVAILABLE: {\n en: \"No preview for this file.\",\n sr: \"Za ovaj fajl nema pregleda.\",\n },\n MAP_NO_OPTIONS: {\n en: \"This view has no map_options.\",\n sr: \"Ovaj prikaz nema map_options.\",\n },\n MAP_ON_MAP: { en: \"{shown} on map of {total}\", sr: \"{shown} na mapi od {total}\" },\n MAP_REGIONS: { en: \"Regions\", sr: \"Regioni\" },\n MAP_FIT_ALL: { en: \"Fit all\", sr: \"Prikaži sve\" },\n CHART_NO_OPTIONS: {\n en: \"This view has no chart_options.\",\n sr: \"Ovaj prikaz nema chart_options.\",\n },\n CHART_IN_WINDOW: {\n en: \"{shown} points in window of {total}\",\n sr: \"{shown} tačaka u prozoru od {total}\",\n },\n CHART_WINDOW: { en: \"Time window\", sr: \"Vremenski prozor\" },\n CHART_PRESET_H: { en: \"{n}h\", sr: \"{n} č\" },\n CHART_PRESET_D: { en: \"{n}d\", sr: \"{n} d\" },\n CHART_LAST_HOURS: { en: \"The last {n} hours\", sr: \"Poslednjih {n} č do sada\" },\n CHART_LAST_DAYS: {\n en: \"The last {n} days, today included\",\n sr: \"Poslednjih {n} d, uključujući danas\",\n },\n CHART_CUSTOM: { en: \"Custom\", sr: \"Proizvoljno\" },\n CHART_FROM: { en: \"From\", sr: \"Od\" },\n CHART_TO: { en: \"To\", sr: \"Do\" },\n CHART_CLEAR_WINDOW: { en: \"Drop the time window\", sr: \"Ukloni vremenski prozor\" },\n CHART_OTHER: { en: \"Other\", sr: \"Ostalo\" },\n CHART_OTHER_COUNT: { en: \"{count} more, folded\", sr: \"Još {count}, spojeno\" },\n CHART_BUCKET_ROWS: { en: \"Mean of {count} rows\", sr: \"Prosek {count} redova\" },\n CHART_MERGED_ROWS: { en: \"{count} rows at this instant\", sr: \"{count} redova u ovom trenutku\" },\n TREE_NO_OPTIONS: {\n en: \"This view has no tree_options.\",\n sr: \"Ovaj prikaz nema tree_options.\",\n },\n TREE_NODES: { en: \"{count} nodes\", sr: \"Čvorova: {count}\" },\n TREE_NODES_OF: { en: \"{shown} of {total} nodes\", sr: \"{shown} od {total} čvorova\" },\n TREE_EXPAND_ALL: { en: \"Expand all\", sr: \"Raširi sve\" },\n TREE_COLLAPSE_ALL: { en: \"Collapse all\", sr: \"Skupi sve\" },\n TREE_EXPAND: { en: \"Expand\", sr: \"Raširi\" },\n TREE_COLLAPSE: { en: \"Collapse\", sr: \"Skupi\" },\n TREE_MENU: { en: \"Node actions\", sr: \"Akcije čvora\" },\n TREE_DETAILS: { en: \"Details\", sr: \"Detalji\" },\n TREE_RENAME: { en: \"Rename\", sr: \"Preimenuj\" },\n TREE_REPLY: { en: \"Reply\", sr: \"Odgovori\" },\n TREE_REPLY_PLACEHOLDER: { en: \"Write a reply…\", sr: \"Napišite odgovor…\" },\n TREE_REPLY_HINT: {\n en: \"Enter sends, Shift+Enter a new line, Esc cancels\",\n sr: \"Enter šalje, Shift+Enter nov red, Esc odustaje\",\n },\n TREE_ORPHAN: {\n en: \"Its parent is filtered out\",\n sr: \"Roditelj je izbačen filterom\",\n },\n TREE_LOADING: { en: \"Loading…\", sr: \"Učitavanje…\" },\n TREE_EMPTY: { en: \"Nothing here yet\", sr: \"Ovde još nema ničega\" },\n TREE_MOVE_FAILED: { en: \"The move was not saved\", sr: \"Premeštanje nije sačuvano\" },\n TREE_RENAME_FAILED: { en: \"The new name was not saved\", sr: \"Novi naziv nije sačuvan\" },\n TREE_REPLY_FAILED: { en: \"The reply was not saved\", sr: \"Odgovor nije sačuvan\" },\n TREE_CONFLICT_TITLE: {\n en: \"Someone else changed this node\",\n sr: \"Neko drugi je izmenio ovaj čvor\",\n },\n TREE_CONFLICT_BODY: {\n en: \"The tree shows what the server has now.\",\n sr: \"Stablo prikazuje ono što je sada na serveru.\",\n },\n TREE_NO_ROOM: {\n en: \"No room between the neighbours at the top level\",\n sr: \"Nema mesta između suseda na najvišem nivou\",\n },\n CAL_NO_OPTIONS: {\n en: \"This view has no calendar_options.\",\n sr: \"Ovaj prikaz nema calendar_options.\",\n },\n CAL_TODAY: { en: \"Today\", sr: \"Danas\" },\n CAL_PREV: { en: \"Previous\", sr: \"Prethodno\" },\n CAL_NEXT: { en: \"Next\", sr: \"Sledeće\" },\n CAL_PRESETS: { en: \"Calendar range\", sr: \"Opseg kalendara\" },\n CAL_PRESET_DAY: { en: \"Day\", sr: \"Dan\" },\n CAL_PRESET_WORKWEEK: { en: \"Work week\", sr: \"Radna nedelja\" },\n CAL_PRESET_WEEK: { en: \"Week\", sr: \"Nedelja\" },\n CAL_PRESET_BIWEEKLY: { en: \"2 weeks\", sr: \"2 nedelje\" },\n CAL_PRESET_MONTH: { en: \"Month\", sr: \"Mesec\" },\n CAL_ALL_DAY: { en: \"All day\", sr: \"Ceo dan\" },\n CAL_MORE: { en: \"+{n} more\", sr: \"+{n} još\" },\n CAL_NEW_PLACEHOLDER: { en: \"Title, then Enter\", sr: \"Naslov, pa Enter\" },\n CAL_DELETE: { en: \"Delete\", sr: \"Obriši\" },\n CAL_DELETE_CONFIRM: { en: \"Delete this event?\", sr: \"Obrisati ovaj događaj?\" },\n CAL_CANCEL: { en: \"Cancel\", sr: \"Otkaži\" },\n CAL_ZONE_HINT: { en: \"Times in {zone}\", sr: \"Vremena u zoni {zone}\" },\n CAL_CONFLICT_TITLE: {\n en: \"Someone else changed this event\",\n sr: \"Neko drugi je izmenio ovaj događaj\",\n },\n CAL_CONFLICT_BODY: {\n en: \"It is back where the server has it now.\",\n sr: \"Vraćen je tamo gde je sada na serveru.\",\n },\n CAL_MOVE_FAILED: { en: \"The change was not saved\", sr: \"Izmena nije sačuvana\" },\n CAL_ADD_FAILED: { en: \"Could not add the event\", sr: \"Događaj nije dodat\" },\n CAL_DELETE_FAILED: { en: \"Could not delete the event\", sr: \"Događaj nije obrisan\" },\n TAB_UNAVAILABLE: {\n en: \"The {name} view is not available yet\",\n sr: \"Prikaz {name} još nije dostupan\",\n },\n NO_RENDERER_TITLE: {\n en: \"No renderer is registered for {name}\",\n sr: \"Za {name} nije registrovan nijedan prikaz\",\n },\n NO_RENDERER_BODY: {\n en: \"Pass renderers to UdcProvider: RENDERERS from @jsudc/react/all, or a registry of the ones this page needs.\",\n sr: \"Prosledite renderers u UdcProvider: RENDERERS iz @jsudc/react/all ili registar prikaza koji su ovoj stranici potrebni.\",\n },\n CAPPED: {\n en: \"Showing the first {shown} of {total}. Narrow the search to see the rest.\",\n sr: \"Prikazano prvih {shown} od {total}. Suzite pretragu da vidite ostale.\",\n },\n KANBAN_BOARD: { en: \"Board\", sr: \"Tabla\" },\n KANBAN_NO_OPTIONS: {\n en: \"This view has no kanban_options.\",\n sr: \"Ovaj prikaz nema kanban_options.\",\n },\n KANBAN_NO_BOARD: { en: \"There is no board to show.\", sr: \"Nema table za prikaz.\" },\n KANBAN_ADD_TICKET: { en: \"Add ticket\", sr: \"Dodaj tiket\" },\n KANBAN_ADD_PLACEHOLDER: { en: \"Title, then Enter\", sr: \"Naslov, pa Enter\" },\n KANBAN_ADD_BUCKET: { en: \"Add bucket\", sr: \"Dodaj kolonu\" },\n KANBAN_ADD_BUCKET_PLACEHOLDER: { en: \"Bucket name, then Enter\", sr: \"Naziv kolone, pa Enter\" },\n KANBAN_BUCKET_MENU: { en: \"{name} actions\", sr: \"Akcije za {name}\" },\n KANBAN_RENAME: { en: \"Rename\", sr: \"Preimenuj\" },\n KANBAN_DELETE: { en: \"Delete bucket\", sr: \"Obriši kolonu\" },\n KANBAN_DELETE_NOT_EMPTY: {\n en: \"Only an empty bucket can be deleted\",\n sr: \"Može da se obriše samo prazna kolona\",\n },\n KANBAN_EMPTY_COLUMN: { en: \"No tickets\", sr: \"Nema tiketa\" },\n KANBAN_SHOW_MORE: { en: \"Show {n} more\", sr: \"Prikaži još {n}\" },\n KANBAN_OVERDUE: { en: \"Overdue\", sr: \"Rok je prošao\" },\n KANBAN_CONFLICT_TITLE: {\n en: \"Someone else moved this card\",\n sr: \"Neko drugi je pomerio karticu\",\n },\n KANBAN_CONFLICT_BODY: {\n en: \"It is back where the server has it now.\",\n sr: \"Vraćena je tamo gde je sada na serveru.\",\n },\n KANBAN_MOVE_FAILED: { en: \"The move was not saved\", sr: \"Pomeranje nije sačuvano\" },\n KANBAN_ADD_FAILED: { en: \"Could not add it\", sr: \"Dodavanje nije uspelo\" },\n KANBAN_RENAME_FAILED: { en: \"The new name was not saved\", sr: \"Novi naziv nije sačuvan\" },\n KANBAN_DELETE_FAILED: { en: \"Could not delete the bucket\", sr: \"Kolona nije obrisana\" },\n SEARCH: { en: \"Search\", sr: \"Pretraga\" },\n SEARCH_CLEAR: { en: \"Clear search\", sr: \"Obriši pretragu\" },\n SHOWING: { en: \"Showing {shown} of {total}\", sr: \"Prikazano {shown} od {total}\" },\n SHOWING_RANGE: { en: \"{from}–{to} of {total}\", sr: \"{from}–{to} od {total}\" },\n ROWS: { en: \"rows\", sr: \"redova\" },\n PAGING: { en: \"Paging\", sr: \"Straničenje\" },\n PAGING_PAGES: { en: \"Pages\", sr: \"Stranice\" },\n PAGING_INFINITE: { en: \"Infinite\", sr: \"Beskonačno\" },\n PAGE_OF: { en: \"Page {page} of {pages}\", sr: \"Strana {page} od {pages}\" },\n PAGE_FIRST: { en: \"First page\", sr: \"Prva strana\" },\n PAGE_PREV: { en: \"Previous page\", sr: \"Prethodna strana\" },\n PAGE_NEXT: { en: \"Next page\", sr: \"Sledeća strana\" },\n PAGE_LAST: { en: \"Last page\", sr: \"Poslednja strana\" },\n PER_PAGE: { en: \"{n} per page\", sr: \"{n} po strani\" },\n LOADING_MORE: { en: \"Loading more…\", sr: \"Učitavanje…\" },\n ALL_LOADED: { en: \"All {total} rows loaded\", sr: \"Učitano svih {total} redova\" },\n EMPTY_TITLE: { en: \"Nothing matches\", sr: \"Nema rezultata\" },\n EMPTY_BODY: {\n en: \"No rows match the current search and filters.\",\n sr: \"Nijedan red ne odgovara trenutnoj pretrazi i filterima.\",\n },\n EMPTY_PLAIN: { en: \"This collection has no rows yet.\", sr: \"Kolekcija još nema redova.\" },\n CLEAR_FILTERS: { en: \"Clear all filters\", sr: \"Obriši sve filtere\" },\n ERROR_TITLE: { en: \"Could not load the data\", sr: \"Podaci nisu učitani\" },\n RETRY: { en: \"Try again\", sr: \"Pokušaj ponovo\" },\n ANY: { en: \"Any\", sr: \"Bilo koje\" },\n YES: { en: \"Yes\", sr: \"Da\" },\n NO: { en: \"No\", sr: \"Ne\" },\n CLEAR: { en: \"Clear\", sr: \"Obriši\" },\n APPLY: { en: \"Apply\", sr: \"Primeni\" },\n MIN: { en: \"Min\", sr: \"Od\" },\n MAX: { en: \"Max\", sr: \"Do\" },\n OPTIONS_FILTER: { en: \"Filter options\", sr: \"Filtriraj opcije\" },\n SELECTED_N: { en: \"{n} selected\", sr: \"izabrano: {n}\" },\n LOOKUP_SEARCH: { en: \"Search…\", sr: \"Pretraga…\" },\n LOOKUP_NO_MATCH: { en: \"No match\", sr: \"Nema rezultata\" },\n LOOKUP_MORE: { en: \"{n} more: type to search\", sr: \"Još {n}: kucajte za pretragu\" },\n LOOKUP_NONE: { en: \"— none —\", sr: \"— bez vrednosti —\" },\n FILTER: { en: \"Filter\", sr: \"Filter\" },\n FILTER_TITLE: { en: \"Filter conditions\", sr: \"Uslovi filtera\" },\n FILTER_HINT: {\n en: \"Rows must match every condition.\",\n sr: \"Redovi moraju da ispune sve uslove.\",\n },\n FILTER_ADD: { en: \"Add condition\", sr: \"Dodaj uslov\" },\n FILTER_EMPTY: { en: \"No conditions yet.\", sr: \"Još nema uslova.\" },\n FILTER_CUSTOM: { en: \"Custom filter\", sr: \"Prilagođeni filter\" },\n FILTER_REMOVE: { en: \"Remove filter\", sr: \"Ukloni filter\" },\n FILTER_FIELD: { en: \"Field\", sr: \"Polje\" },\n FILTER_OP: { en: \"Operator\", sr: \"Operator\" },\n FILTER_VALUE: { en: \"Value\", sr: \"Vrednost\" },\n FILTER_LIST_HINT: { en: \"Comma separated\", sr: \"Odvojeno zarezom\" },\n REMOVE: { en: \"Remove\", sr: \"Ukloni\" },\n AND: { en: \"and\", sr: \"i\" },\n SORT_ASC: { en: \"Sorted ascending\", sr: \"Rastući redosled\" },\n SORT_DESC: { en: \"Sorted descending\", sr: \"Opadajući redosled\" },\n EDIT_HINT: { en: \"Double-click to edit\", sr: \"Dvoklik za izmenu\" },\n SAVED: { en: \"Saved\", sr: \"Sačuvano\" },\n CONFLICT_TITLE: {\n en: \"Row was changed by someone else\",\n sr: \"Red je u međuvremenu izmenio neko drugi\",\n },\n CONFLICT_BODY: {\n en: \"Your edit was not saved. The table now shows the latest value.\",\n sr: \"Vaša izmena nije sačuvana. Tabela sada prikazuje najnoviju vrednost.\",\n },\n SAVE_FAILED: { en: \"Could not save\", sr: \"Čuvanje nije uspelo\" },\n NOT_FOUND_TITLE: { en: \"Collection not found\", sr: \"Kolekcija nije pronađena\" },\n OP_EQ: { en: \"equals\", sr: \"jednako\" },\n OP_NEQ: { en: \"not equal\", sr: \"nije jednako\" },\n OP_IN: { en: \"is any of\", sr: \"je jedno od\" },\n OP_NOT_IN: { en: \"is none of\", sr: \"nije nijedno od\" },\n OP_CONTAINS: { en: \"contains\", sr: \"sadrži\" },\n OP_STARTS_WITH: { en: \"starts with\", sr: \"počinje sa\" },\n OP_ENDS_WITH: { en: \"ends with\", sr: \"završava se sa\" },\n OP_GT: { en: \"greater than\", sr: \"veće od\" },\n OP_GTE: { en: \"at least\", sr: \"najmanje\" },\n OP_LT: { en: \"less than\", sr: \"manje od\" },\n OP_LTE: { en: \"at most\", sr: \"najviše\" },\n OP_BETWEEN: { en: \"between\", sr: \"između\" },\n OP_IS_NULL: { en: \"is empty\", sr: \"je prazno\" },\n OP_IS_NOT_NULL: { en: \"is not empty\", sr: \"nije prazno\" },\n CANCEL: { en: \"Cancel\", sr: \"Otkaži\" },\n SAVE: { en: \"Save\", sr: \"Sačuvaj\" },\n COL_MENU: { en: \"Column options: {label}\", sr: \"Opcije kolone: {label}\" },\n COL_ADD: { en: \"Add column\", sr: \"Dodaj kolonu\" },\n COL_ADD_BEFORE: { en: \"Add column before\", sr: \"Dodaj kolonu ispred\" },\n COL_ADD_AFTER: { en: \"Add column after\", sr: \"Dodaj kolonu iza\" },\n COL_EDIT: { en: \"Edit column\", sr: \"Izmeni kolonu\" },\n COL_DELETE: { en: \"Delete column\", sr: \"Obriši kolonu\" },\n FORM_ADD_TITLE: { en: \"Add column\", sr: \"Nova kolona\" },\n FORM_ADD_SUBMIT: { en: \"Add column\", sr: \"Dodaj kolonu\" },\n FORM_EDIT_TITLE: { en: \"Edit column {label}\", sr: \"Izmena kolone {label}\" },\n FORM_EDIT_BODY: {\n en: \"Changes apply to the schema at once; existing values are kept.\",\n sr: \"Izmene odmah važe za šemu; postojeće vrednosti ostaju.\",\n },\n FORM_POS_BEFORE: {\n en: \"The new column goes before {label}.\",\n sr: \"Nova kolona ide ispred kolone {label}.\",\n },\n FORM_POS_AFTER: {\n en: \"The new column goes after {label}.\",\n sr: \"Nova kolona ide iza kolone {label}.\",\n },\n FORM_POS_END: { en: \"The new column goes at the end.\", sr: \"Nova kolona ide na kraj.\" },\n FORM_NAME: { en: \"Field name\", sr: \"Naziv polja\" },\n FORM_NAME_HINT: {\n en: \"Lowercase letters, digits and _, starting with a letter.\",\n sr: \"Mala slova, cifre i _, na početku slovo.\",\n },\n FORM_TYPE: { en: \"Type\", sr: \"Tip\" },\n FORM_TYPE_LOCKED: {\n en: \"The name and type of an existing column cannot change. To change the type, delete the column and add a new one.\",\n sr: \"Naziv i tip postojeće kolone ne mogu da se menjaju. Za drugi tip obrišite kolonu i dodajte novu.\",\n },\n FORM_LABEL_EN: { en: \"Label, English\", sr: \"Natpis, engleski\" },\n FORM_LABEL_SR: { en: \"Label, Serbian\", sr: \"Natpis, srpski\" },\n FORM_LENGTH: { en: \"Max length\", sr: \"Najveća dužina\" },\n FORM_LENGTH_HINT: { en: \"Characters.\", sr: \"Broj znakova.\" },\n FORM_MIN: { en: \"Minimum\", sr: \"Najmanje\" },\n FORM_MAX: { en: \"Maximum\", sr: \"Najviše\" },\n FORM_NO_LIMIT: { en: \"No limit\", sr: \"Bez ograničenja\" },\n FORM_VALUES: { en: \"Allowed values\", sr: \"Dozvoljene vrednosti\" },\n FORM_VALUES_HINT: {\n en: \"Press Enter or comma after each value.\",\n sr: \"Enter ili zarez posle svake vrednosti.\",\n },\n FORM_REQUIRED: { en: \"Required\", sr: \"Obavezno\" },\n FORM_REQUIRED_HINT: {\n en: \"New rows and edits of this field need a value.\",\n sr: \"Novi redovi i izmene ovog polja traže vrednost.\",\n },\n FORM_INDEX: { en: \"Indexed\", sr: \"Indeksirano\" },\n FORM_INDEX_HINT: { en: \"Faster sort and filter.\", sr: \"Brže sortiranje i filtriranje.\" },\n FORM_SERVER_ERROR: { en: \"The server refused the change\", sr: \"Server je odbio izmenu\" },\n ERR_NAME_REQUIRED: { en: \"Enter a field name.\", sr: \"Unesite naziv polja.\" },\n ERR_NAME_INVALID: {\n en: \"Use lowercase letters, digits and _, starting with a letter (max 63).\",\n sr: \"Koristite mala slova, cifre i _, na početku slovo (najviše 63).\",\n },\n ERR_NAME_TAKEN: {\n en: \"A field with this name already exists.\",\n sr: \"Polje sa ovim nazivom već postoji.\",\n },\n ERR_LENGTH_REQUIRED: {\n en: \"Text fields need a max length.\",\n sr: \"Tekstualno polje traži najveću dužinu.\",\n },\n ERR_LENGTH: { en: \"A whole number of at least 1.\", sr: \"Ceo broj, najmanje 1.\" },\n ERR_NUMBER: { en: \"Not a number.\", sr: \"Nije broj.\" },\n ERR_INTEGER: { en: \"A whole number.\", sr: \"Ceo broj.\" },\n ERR_MIN_MAX: { en: \"Maximum is below the minimum.\", sr: \"Najviše je manje od najmanje.\" },\n ERR_VALUES_REQUIRED: { en: \"Add at least one value.\", sr: \"Dodajte bar jednu vrednost.\" },\n ERR_VALUES_DUP: { en: \"Values must be unique.\", sr: \"Vrednosti moraju da budu različite.\" },\n DELETE_TITLE: { en: \"Delete column {label}?\", sr: \"Obrisati kolonu {label}?\" },\n DELETE_BODY: {\n en: \"The column disappears from the table, the cards and the filters. The data is kept: values stay in the database and nothing is erased.\",\n sr: \"Kolona nestaje iz tabele, kartica i filtera. Podaci ostaju: vrednosti se čuvaju u bazi i ništa se ne briše.\",\n },\n DELETE_FIELD_NAME: { en: \"Field:\", sr: \"Polje:\" },\n DELETE_CONFIRM: { en: \"Delete column\", sr: \"Obriši kolonu\" },\n TOAST_ADDED: { en: \"Column {label} added\", sr: \"Kolona {label} je dodata\" },\n TOAST_UPDATED: { en: \"Column {label} saved\", sr: \"Kolona {label} je sačuvana\" },\n TOAST_DELETED: { en: \"Column {label} deleted\", sr: \"Kolona {label} je obrisana\" },\n TYPE_STRING: { en: \"Short text\", sr: \"Kratak tekst\" },\n TYPE_TEXT: { en: \"Long text\", sr: \"Dugačak tekst\" },\n TYPE_INTEGER: { en: \"Integer\", sr: \"Ceo broj\" },\n TYPE_DECIMAL: { en: \"Decimal\", sr: \"Decimalni broj\" },\n TYPE_YEAR: { en: \"Year\", sr: \"Godina\" },\n TYPE_BOOL: { en: \"Yes / no\", sr: \"Da / ne\" },\n TYPE_DATE: { en: \"Date\", sr: \"Datum\" },\n TYPE_DATETIME: { en: \"Date and time\", sr: \"Datum i vreme\" },\n TYPE_JSON: { en: \"JSON\", sr: \"JSON\" },\n TYPE_ENUM: { en: \"Choice\", sr: \"Izbor\" },\n },\n};\n"],"mappings":";;AACA,IAAa,UAAU,CAAC,MAAM,IAAI;;;;;;;;AAgBlC,IAAa,eAA6B,EACxC,KAAK;CACH,WAAW;EAAE,IAAI;EAAS,IAAI;CAAS;CACvC,WAAW;EAAE,IAAI;EAAS,IAAI;CAAU;CACxC,YAAY;EAAE,IAAI;EAAS,IAAI;CAAQ;CACvC,cAAc;EAAE,IAAI;EAAY,IAAI;CAAW;CAC/C,UAAU;EAAE,IAAI;EAAQ,IAAI;CAAS;CACrC,SAAS;EAAE,IAAI;EAAO,IAAI;CAAO;CACjC,WAAW;EAAE,IAAI;EAAS,IAAI;CAAW;CACzC,SAAS;EAAE,IAAI;EAAO,IAAI;CAAO;CACjC,YAAY;EAAE,IAAI;EAAU,IAAI;CAAQ;CACxC,iBAAiB;EAAE,IAAI;EAAmB,IAAI;CAAkB;CAChE,cAAc;EAAE,IAAI;EAAiB,IAAI;CAAkB;CAC3D,cAAc;EACZ,IAAI;EACJ,IAAI;CACN;CACA,aAAa;EAAE,IAAI;EAAiB,IAAI;CAAiB;CACzD,eAAe;EAAE,IAAI;EAAkB,IAAI;CAAkB;CAC7D,YAAY;EAAE,IAAI;EAA2B,IAAI;CAAyB;CAC1E,gBAAgB;EAAE,IAAI;EAAa,IAAI;CAAW;CAClD,aAAa;EAAE,IAAI;EAAiB,IAAI;CAAiB;CACzD,aAAa;EACX,IAAI;EACJ,IAAI;CACN;CACA,gBAAgB;EAAE,IAAI;EAAsB,IAAI;CAAoB;CACpE,OAAO;EAAE,IAAI;EAAS,IAAI;CAAY;CACtC,YAAY;EACV,IAAI;EACJ,IAAI;CACN;CACA,aAAa;EAAE,IAAI;EAAU,IAAI;CAAS;CAC1C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I;CACN;CACA,qBAAqB;EACnB,IAAI;EACJ,IAAI;CACN;CACA,YAAY;EAAE,IAAI;EAAiC,IAAI;CAAwB;CAC/E,YAAY;EAAE,IAAI;EAAiB,IAAI;CAAa;CACpD,aAAa;EAAE,IAAI;EAAmB,IAAI;CAAY;CACtD,aAAa;EAAE,IAAI;EAAiC,IAAI;CAAgC;CACxF,qBAAqB;EAAE,IAAI;EAA2B,IAAI;CAA8B;CACxF,gBAAgB;EAAE,IAAI;EAA0B,IAAI;CAAsC;CAC1F,cAAc;EAAE,IAAI;EAA0B,IAAI;CAA2B;CAC7E,aAAa;EACX,IAAI;EACJ,IAAI;CACN;CACA,mBAAmB;EAAE,IAAI;EAAU,IAAI;CAAS;CAChD,gBAAgB;EAAE,IAAI;EAAiB,IAAI;CAAgB;CAC3D,aAAa;EAAE,IAAI;EAAwB,IAAI;CAA2B;CAC1E,eAAe;EAAE,IAAI;EAAwB,IAAI;CAA6B;CAC9E,eAAe;EAAE,IAAI;EAA0B,IAAI;CAA6B;CAChF,aAAa;EAAE,IAAI;EAAc,IAAI;CAAe;CACpD,WAAW;EAAE,IAAI;EAAa,IAAI;CAAgB;CAClD,cAAc;EAAE,IAAI;EAAW,IAAI;CAAW;CAC9C,cAAc;EAAE,IAAI;EAAW,IAAI;CAAiB;CACpD,WAAW;EAAE,IAAI;EAAQ,IAAI;CAAS;CACtC,WAAW;EAAE,IAAI;EAAY,IAAI;CAAU;CAC3C,WAAW;EAAE,IAAI;EAAQ,IAAI;CAAQ;CACrC,eAAe;EAAE,IAAI;EAAiB,IAAI;CAAgB;CAC1D,WAAW;EAAE,IAAI;EAAQ,IAAI;CAAO;CACpC,WAAW;EAAE,IAAI;EAAU,IAAI;CAAQ;AACzC,EACF"}
|
|
1
|
+
{"version":3,"file":"translations.js","names":[],"sources":["../../src/i18n/translations.ts"],"sourcesContent":["/** The locales the library's dictionary ships. A host adds others through `messages`. */\nexport const LOCALES = [\"en\", \"sr\"] as const;\nexport type BuiltinLocale = (typeof LOCALES)[number];\n/** A locale tag: `en` or `sr`, or any other a host supplies strings for. */\nexport type Locale = BuiltinLocale | (string & {});\n\n/** One term: every built-in locale, plus any a host adds. */\nexport type Term = Record<BuiltinLocale, string> & Partial<Record<string, string>>;\nexport type Translations = Record<string, Record<string, Term>>;\n\n/**\n * The library's dictionary, `{SECTION: {TERM: {en, sr}}}`. `APP` is the\n * strings of the data view and its renderers. A host's own sections (its\n * collection names, `TBL_<COLLECTION>` field labels, its chrome) come in\n * through `<UdcI18nProvider messages>`. `{name}` placeholders are filled from\n * `t`'s third argument.\n */\nexport const TRANSLATIONS: Translations = {\n APP: {\n TAB_TABLE: { en: \"Table\", sr: \"Tabela\" },\n TAB_CARDS: { en: \"Cards\", sr: \"Kartice\" },\n TAB_KANBAN: { en: \"Board\", sr: \"Tabla\" },\n TAB_CALENDAR: { en: \"Calendar\", sr: \"Kalendar\" },\n TAB_TREE: { en: \"Tree\", sr: \"Stablo\" },\n TAB_MAP: { en: \"Map\", sr: \"Mapa\" },\n TAB_CHART: { en: \"Chart\", sr: \"Grafikon\" },\n TAB_DOC: { en: \"Doc\", sr: \"Opis\" },\n TAB_SOURCE: { en: \"Source\", sr: \"Izvor\" },\n SOURCE_MODIFIED: { en: \"Modified {when}\", sr: \"Izmenjen {when}\" },\n SOURCE_LINES: { en: \"{count} lines\", sr: \"Redova: {count}\" },\n SOURCE_STALE: {\n en: \"The file does not parse; the rows shown are from its last good version\",\n sr: \"Fajl ne može da se pročita; prikazani redovi su iz poslednje ispravne verzije\",\n },\n UPDATED_AGO: { en: \"updated {age}\", sr: \"osveženo {age}\" },\n FRESH_FETCHED: { en: \"Fetched {when}\", sr: \"Preuzeto {when}\" },\n FRESH_AUTH: { en: \"Upstream access: {auth}\", sr: \"Pristup izvoru: {auth}\" },\n AUTH_ANONYMOUS: { en: \"anonymous\", sr: \"anonimno\" },\n AUTH_OAUTH2: { en: \"OAuth2 client\", sr: \"OAuth2 klijent\" },\n FRESH_CACHE: {\n en: \"Server cache: {ttl} (the source is asked at most that often)\",\n sr: \"Keš servera: {ttl} (izvor se pita najčešće toliko)\",\n },\n FRESH_NO_CACHE: { en: \"Server cache: none\", sr: \"Keš servera: nema\" },\n STALE: { en: \"stale\", sr: \"zastarelo\" },\n STALE_HINT: {\n en: \"The source could not be reached; this is the last copy it sent\",\n sr: \"Izvor nije dostupan; ovo je poslednja kopija koju je poslao\",\n },\n FOLDER_PATH: { en: \"Folder\", sr: \"Folder\" },\n FOLDER_ROOT: { en: \"Root\", sr: \"Koren\" },\n PREVIEW_TOO_LARGE: {\n en: \"This file is too large to preview (over 256 KB).\",\n sr: \"Fajl je prevelik za pregled (preko 256 KB).\",\n },\n PREVIEW_UNAVAILABLE: {\n en: \"No preview for this file.\",\n sr: \"Za ovaj fajl nema pregleda.\",\n },\n MAP_NO_OPTIONS: {\n en: \"This view has no map_options.\",\n sr: \"Ovaj prikaz nema map_options.\",\n },\n MAP_ON_MAP: { en: \"{shown} on map of {total}\", sr: \"{shown} na mapi od {total}\" },\n MAP_REGIONS: { en: \"Regions\", sr: \"Regioni\" },\n MAP_FIT_ALL: { en: \"Fit all\", sr: \"Prikaži sve\" },\n CHART_NO_OPTIONS: {\n en: \"This view has no chart_options.\",\n sr: \"Ovaj prikaz nema chart_options.\",\n },\n CHART_IN_WINDOW: {\n en: \"{shown} points in window of {total}\",\n sr: \"{shown} tačaka u prozoru od {total}\",\n },\n CHART_WINDOW: { en: \"Time window\", sr: \"Vremenski prozor\" },\n CHART_PRESET_H: { en: \"{n}h\", sr: \"{n} č\" },\n CHART_PRESET_D: { en: \"{n}d\", sr: \"{n} d\" },\n CHART_LAST_HOURS: { en: \"The last {n} hours\", sr: \"Poslednjih {n} č do sada\" },\n CHART_LAST_DAYS: {\n en: \"The last {n} days, today included\",\n sr: \"Poslednjih {n} d, uključujući danas\",\n },\n CHART_CUSTOM: { en: \"Custom\", sr: \"Proizvoljno\" },\n CHART_FROM: { en: \"From\", sr: \"Od\" },\n CHART_TO: { en: \"To\", sr: \"Do\" },\n CHART_CLEAR_WINDOW: { en: \"Drop the time window\", sr: \"Ukloni vremenski prozor\" },\n CHART_OTHER: { en: \"Other\", sr: \"Ostalo\" },\n CHART_OTHER_COUNT: { en: \"{count} more, folded\", sr: \"Još {count}, spojeno\" },\n CHART_BUCKET_ROWS: { en: \"Mean of {count} rows\", sr: \"Prosek {count} redova\" },\n CHART_MERGED_ROWS: { en: \"{count} rows at this instant\", sr: \"{count} redova u ovom trenutku\" },\n TREE_NO_OPTIONS: {\n en: \"This view has no tree_options.\",\n sr: \"Ovaj prikaz nema tree_options.\",\n },\n TREE_NODES: { en: \"{count} nodes\", sr: \"Čvorova: {count}\" },\n TREE_NODES_OF: { en: \"{shown} of {total} nodes\", sr: \"{shown} od {total} čvorova\" },\n TREE_EXPAND_ALL: { en: \"Expand all\", sr: \"Raširi sve\" },\n TREE_COLLAPSE_ALL: { en: \"Collapse all\", sr: \"Skupi sve\" },\n TREE_EXPAND: { en: \"Expand\", sr: \"Raširi\" },\n TREE_COLLAPSE: { en: \"Collapse\", sr: \"Skupi\" },\n TREE_MENU: { en: \"Node actions\", sr: \"Akcije čvora\" },\n TREE_DETAILS: { en: \"Details\", sr: \"Detalji\" },\n TREE_RENAME: { en: \"Rename\", sr: \"Preimenuj\" },\n TREE_REPLY: { en: \"Reply\", sr: \"Odgovori\" },\n TREE_REPLY_PLACEHOLDER: { en: \"Write a reply…\", sr: \"Napišite odgovor…\" },\n TREE_REPLY_HINT: {\n en: \"Enter sends, Shift+Enter a new line, Esc cancels\",\n sr: \"Enter šalje, Shift+Enter nov red, Esc odustaje\",\n },\n TREE_ORPHAN: {\n en: \"Its parent is filtered out\",\n sr: \"Roditelj je izbačen filterom\",\n },\n TREE_LOADING: { en: \"Loading…\", sr: \"Učitavanje…\" },\n TREE_EMPTY: { en: \"Nothing here yet\", sr: \"Ovde još nema ničega\" },\n TREE_MOVE_FAILED: { en: \"The move was not saved\", sr: \"Premeštanje nije sačuvano\" },\n TREE_RENAME_FAILED: { en: \"The new name was not saved\", sr: \"Novi naziv nije sačuvan\" },\n TREE_REPLY_FAILED: { en: \"The reply was not saved\", sr: \"Odgovor nije sačuvan\" },\n TREE_CONFLICT_TITLE: {\n en: \"Someone else changed this node\",\n sr: \"Neko drugi je izmenio ovaj čvor\",\n },\n TREE_CONFLICT_BODY: {\n en: \"The tree shows what the server has now.\",\n sr: \"Stablo prikazuje ono što je sada na serveru.\",\n },\n TREE_NO_ROOM: {\n en: \"No room between the neighbours at the top level\",\n sr: \"Nema mesta između suseda na najvišem nivou\",\n },\n CAL_NO_OPTIONS: {\n en: \"This view has no calendar_options.\",\n sr: \"Ovaj prikaz nema calendar_options.\",\n },\n CAL_TODAY: { en: \"Today\", sr: \"Danas\" },\n CAL_PREV: { en: \"Previous\", sr: \"Prethodno\" },\n CAL_NEXT: { en: \"Next\", sr: \"Sledeće\" },\n CAL_PRESETS: { en: \"Calendar range\", sr: \"Opseg kalendara\" },\n CAL_PRESET_DAY: { en: \"Day\", sr: \"Dan\" },\n CAL_PRESET_WORKWEEK: { en: \"Work week\", sr: \"Radna nedelja\" },\n CAL_PRESET_WEEK: { en: \"Week\", sr: \"Nedelja\" },\n CAL_PRESET_BIWEEKLY: { en: \"2 weeks\", sr: \"2 nedelje\" },\n CAL_PRESET_MONTH: { en: \"Month\", sr: \"Mesec\" },\n CAL_ALL_DAY: { en: \"All day\", sr: \"Ceo dan\" },\n CAL_MORE: { en: \"+{n} more\", sr: \"+{n} još\" },\n CAL_NEW_PLACEHOLDER: { en: \"Title, then Enter\", sr: \"Naslov, pa Enter\" },\n CAL_DELETE: { en: \"Delete\", sr: \"Obriši\" },\n CAL_DELETE_CONFIRM: { en: \"Delete this event?\", sr: \"Obrisati ovaj događaj?\" },\n CAL_CANCEL: { en: \"Cancel\", sr: \"Otkaži\" },\n CAL_ZONE_HINT: { en: \"Times in {zone}\", sr: \"Vremena u zoni {zone}\" },\n CAL_CONFLICT_TITLE: {\n en: \"Someone else changed this event\",\n sr: \"Neko drugi je izmenio ovaj događaj\",\n },\n CAL_CONFLICT_BODY: {\n en: \"It is back where the server has it now.\",\n sr: \"Vraćen je tamo gde je sada na serveru.\",\n },\n CAL_MOVE_FAILED: { en: \"The change was not saved\", sr: \"Izmena nije sačuvana\" },\n CAL_ADD_FAILED: { en: \"Could not add the event\", sr: \"Događaj nije dodat\" },\n CAL_DELETE_FAILED: { en: \"Could not delete the event\", sr: \"Događaj nije obrisan\" },\n TAB_UNAVAILABLE: {\n en: \"The {name} view is not available yet\",\n sr: \"Prikaz {name} još nije dostupan\",\n },\n NO_RENDERER_TITLE: {\n en: \"No renderer is registered for {name}\",\n sr: \"Za {name} nije registrovan nijedan prikaz\",\n },\n NO_RENDERER_BODY: {\n en: \"Pass renderers to UdcProvider: RENDERERS from @jsudc/react/all, or a registry of the ones this page needs.\",\n sr: \"Prosledite renderers u UdcProvider: RENDERERS iz @jsudc/react/all ili registar prikaza koji su ovoj stranici potrebni.\",\n },\n CAPPED: {\n en: \"Showing the first {shown} of {total}. Narrow the search to see the rest.\",\n sr: \"Prikazano prvih {shown} od {total}. Suzite pretragu da vidite ostale.\",\n },\n KANBAN_BOARD: { en: \"Board\", sr: \"Tabla\" },\n KANBAN_NO_OPTIONS: {\n en: \"This view has no kanban_options.\",\n sr: \"Ovaj prikaz nema kanban_options.\",\n },\n KANBAN_NO_BOARD: { en: \"There is no board to show.\", sr: \"Nema table za prikaz.\" },\n KANBAN_ADD_TICKET: { en: \"Add ticket\", sr: \"Dodaj tiket\" },\n KANBAN_ADD_PLACEHOLDER: { en: \"Title, then Enter\", sr: \"Naslov, pa Enter\" },\n KANBAN_ADD_BUCKET: { en: \"Add bucket\", sr: \"Dodaj kolonu\" },\n KANBAN_ADD_BUCKET_PLACEHOLDER: { en: \"Bucket name, then Enter\", sr: \"Naziv kolone, pa Enter\" },\n KANBAN_BUCKET_MENU: { en: \"{name} actions\", sr: \"Akcije za {name}\" },\n KANBAN_RENAME: { en: \"Rename\", sr: \"Preimenuj\" },\n KANBAN_DELETE: { en: \"Delete bucket\", sr: \"Obriši kolonu\" },\n KANBAN_DELETE_NOT_EMPTY: {\n en: \"Only an empty bucket can be deleted\",\n sr: \"Može da se obriše samo prazna kolona\",\n },\n KANBAN_EMPTY_COLUMN: { en: \"No tickets\", sr: \"Nema tiketa\" },\n KANBAN_SHOW_MORE: { en: \"Show {n} more\", sr: \"Prikaži još {n}\" },\n KANBAN_OVERDUE: { en: \"Overdue\", sr: \"Rok je prošao\" },\n KANBAN_CONFLICT_TITLE: {\n en: \"Someone else moved this card\",\n sr: \"Neko drugi je pomerio karticu\",\n },\n KANBAN_CONFLICT_BODY: {\n en: \"It is back where the server has it now.\",\n sr: \"Vraćena je tamo gde je sada na serveru.\",\n },\n KANBAN_MOVE_FAILED: { en: \"The move was not saved\", sr: \"Pomeranje nije sačuvano\" },\n KANBAN_ADD_FAILED: { en: \"Could not add it\", sr: \"Dodavanje nije uspelo\" },\n KANBAN_RENAME_FAILED: { en: \"The new name was not saved\", sr: \"Novi naziv nije sačuvan\" },\n KANBAN_DELETE_FAILED: { en: \"Could not delete the bucket\", sr: \"Kolona nije obrisana\" },\n SEARCH: { en: \"Search\", sr: \"Pretraga\" },\n SEARCH_CLEAR: { en: \"Clear search\", sr: \"Obriši pretragu\" },\n SHOWING: { en: \"Showing {shown} of {total}\", sr: \"Prikazano {shown} od {total}\" },\n SHOWING_RANGE: { en: \"{from}–{to} of {total}\", sr: \"{from}–{to} od {total}\" },\n ROWS: { en: \"rows\", sr: \"redova\" },\n PAGING: { en: \"Paging\", sr: \"Straničenje\" },\n PAGING_PAGES: { en: \"Pages\", sr: \"Stranice\" },\n PAGING_INFINITE: { en: \"Infinite\", sr: \"Beskonačno\" },\n PAGE_OF: { en: \"Page {page} of {pages}\", sr: \"Strana {page} od {pages}\" },\n PAGE_FIRST: { en: \"First page\", sr: \"Prva strana\" },\n PAGE_PREV: { en: \"Previous page\", sr: \"Prethodna strana\" },\n PAGE_NEXT: { en: \"Next page\", sr: \"Sledeća strana\" },\n PAGE_LAST: { en: \"Last page\", sr: \"Poslednja strana\" },\n PER_PAGE: { en: \"{n} per page\", sr: \"{n} po strani\" },\n LOADING_MORE: { en: \"Loading more…\", sr: \"Učitavanje…\" },\n ALL_LOADED: { en: \"All {total} rows loaded\", sr: \"Učitano svih {total} redova\" },\n EMPTY_TITLE: { en: \"Nothing matches\", sr: \"Nema rezultata\" },\n EMPTY_BODY: {\n en: \"No rows match the current search and filters.\",\n sr: \"Nijedan red ne odgovara trenutnoj pretrazi i filterima.\",\n },\n EMPTY_PLAIN: { en: \"This collection has no rows yet.\", sr: \"Kolekcija još nema redova.\" },\n CLEAR_FILTERS: { en: \"Clear all filters\", sr: \"Obriši sve filtere\" },\n ERROR_TITLE: { en: \"Could not load the data\", sr: \"Podaci nisu učitani\" },\n RETRY: { en: \"Try again\", sr: \"Pokušaj ponovo\" },\n SIGNED_OUT_TITLE: { en: \"You are signed out\", sr: \"Niste prijavljeni\" },\n SIGNED_OUT_BODY: {\n en: \"Sign in again to see this data.\",\n sr: \"Prijavite se ponovo da biste videli ove podatke.\",\n },\n ANY: { en: \"Any\", sr: \"Bilo koje\" },\n YES: { en: \"Yes\", sr: \"Da\" },\n NO: { en: \"No\", sr: \"Ne\" },\n CLEAR: { en: \"Clear\", sr: \"Obriši\" },\n APPLY: { en: \"Apply\", sr: \"Primeni\" },\n MIN: { en: \"Min\", sr: \"Od\" },\n MAX: { en: \"Max\", sr: \"Do\" },\n OPTIONS_FILTER: { en: \"Filter options\", sr: \"Filtriraj opcije\" },\n SELECTED_N: { en: \"{n} selected\", sr: \"izabrano: {n}\" },\n LOOKUP_SEARCH: { en: \"Search…\", sr: \"Pretraga…\" },\n LOOKUP_NO_MATCH: { en: \"No match\", sr: \"Nema rezultata\" },\n LOOKUP_MORE: { en: \"{n} more: type to search\", sr: \"Još {n}: kucajte za pretragu\" },\n LOOKUP_NONE: { en: \"— none —\", sr: \"— bez vrednosti —\" },\n FILTER: { en: \"Filter\", sr: \"Filter\" },\n FILTER_TITLE: { en: \"Filter conditions\", sr: \"Uslovi filtera\" },\n FILTER_HINT: {\n en: \"Rows must match every condition.\",\n sr: \"Redovi moraju da ispune sve uslove.\",\n },\n FILTER_ADD: { en: \"Add condition\", sr: \"Dodaj uslov\" },\n FILTER_EMPTY: { en: \"No conditions yet.\", sr: \"Još nema uslova.\" },\n FILTER_CUSTOM: { en: \"Custom filter\", sr: \"Prilagođeni filter\" },\n FILTER_REMOVE: { en: \"Remove filter\", sr: \"Ukloni filter\" },\n FILTER_FIELD: { en: \"Field\", sr: \"Polje\" },\n FILTER_OP: { en: \"Operator\", sr: \"Operator\" },\n FILTER_VALUE: { en: \"Value\", sr: \"Vrednost\" },\n FILTER_LIST_HINT: { en: \"Comma separated\", sr: \"Odvojeno zarezom\" },\n REMOVE: { en: \"Remove\", sr: \"Ukloni\" },\n AND: { en: \"and\", sr: \"i\" },\n SORT_ASC: { en: \"Sorted ascending\", sr: \"Rastući redosled\" },\n SORT_DESC: { en: \"Sorted descending\", sr: \"Opadajući redosled\" },\n EDIT_HINT: { en: \"Double-click to edit\", sr: \"Dvoklik za izmenu\" },\n SAVED: { en: \"Saved\", sr: \"Sačuvano\" },\n CONFLICT_TITLE: {\n en: \"Row was changed by someone else\",\n sr: \"Red je u međuvremenu izmenio neko drugi\",\n },\n CONFLICT_BODY: {\n en: \"Your edit was not saved. The table now shows the latest value.\",\n sr: \"Vaša izmena nije sačuvana. Tabela sada prikazuje najnoviju vrednost.\",\n },\n SAVE_FAILED: { en: \"Could not save\", sr: \"Čuvanje nije uspelo\" },\n NOT_FOUND_TITLE: { en: \"Collection not found\", sr: \"Kolekcija nije pronađena\" },\n OP_EQ: { en: \"equals\", sr: \"jednako\" },\n OP_NEQ: { en: \"not equal\", sr: \"nije jednako\" },\n OP_IN: { en: \"is any of\", sr: \"je jedno od\" },\n OP_NOT_IN: { en: \"is none of\", sr: \"nije nijedno od\" },\n OP_CONTAINS: { en: \"contains\", sr: \"sadrži\" },\n OP_STARTS_WITH: { en: \"starts with\", sr: \"počinje sa\" },\n OP_ENDS_WITH: { en: \"ends with\", sr: \"završava se sa\" },\n OP_GT: { en: \"greater than\", sr: \"veće od\" },\n OP_GTE: { en: \"at least\", sr: \"najmanje\" },\n OP_LT: { en: \"less than\", sr: \"manje od\" },\n OP_LTE: { en: \"at most\", sr: \"najviše\" },\n OP_BETWEEN: { en: \"between\", sr: \"između\" },\n OP_IS_NULL: { en: \"is empty\", sr: \"je prazno\" },\n OP_IS_NOT_NULL: { en: \"is not empty\", sr: \"nije prazno\" },\n CANCEL: { en: \"Cancel\", sr: \"Otkaži\" },\n SAVE: { en: \"Save\", sr: \"Sačuvaj\" },\n COL_MENU: { en: \"Column options: {label}\", sr: \"Opcije kolone: {label}\" },\n COL_ADD: { en: \"Add column\", sr: \"Dodaj kolonu\" },\n COL_ADD_BEFORE: { en: \"Add column before\", sr: \"Dodaj kolonu ispred\" },\n COL_ADD_AFTER: { en: \"Add column after\", sr: \"Dodaj kolonu iza\" },\n COL_EDIT: { en: \"Edit column\", sr: \"Izmeni kolonu\" },\n COL_DELETE: { en: \"Delete column\", sr: \"Obriši kolonu\" },\n FORM_ADD_TITLE: { en: \"Add column\", sr: \"Nova kolona\" },\n FORM_ADD_SUBMIT: { en: \"Add column\", sr: \"Dodaj kolonu\" },\n FORM_EDIT_TITLE: { en: \"Edit column {label}\", sr: \"Izmena kolone {label}\" },\n FORM_EDIT_BODY: {\n en: \"Changes apply to the schema at once; existing values are kept.\",\n sr: \"Izmene odmah važe za šemu; postojeće vrednosti ostaju.\",\n },\n FORM_POS_BEFORE: {\n en: \"The new column goes before {label}.\",\n sr: \"Nova kolona ide ispred kolone {label}.\",\n },\n FORM_POS_AFTER: {\n en: \"The new column goes after {label}.\",\n sr: \"Nova kolona ide iza kolone {label}.\",\n },\n FORM_POS_END: { en: \"The new column goes at the end.\", sr: \"Nova kolona ide na kraj.\" },\n FORM_NAME: { en: \"Field name\", sr: \"Naziv polja\" },\n FORM_NAME_HINT: {\n en: \"Lowercase letters, digits and _, starting with a letter.\",\n sr: \"Mala slova, cifre i _, na početku slovo.\",\n },\n FORM_TYPE: { en: \"Type\", sr: \"Tip\" },\n FORM_TYPE_LOCKED: {\n en: \"The name and type of an existing column cannot change. To change the type, delete the column and add a new one.\",\n sr: \"Naziv i tip postojeće kolone ne mogu da se menjaju. Za drugi tip obrišite kolonu i dodajte novu.\",\n },\n FORM_LABEL_EN: { en: \"Label, English\", sr: \"Natpis, engleski\" },\n FORM_LABEL_SR: { en: \"Label, Serbian\", sr: \"Natpis, srpski\" },\n FORM_LENGTH: { en: \"Max length\", sr: \"Najveća dužina\" },\n FORM_LENGTH_HINT: { en: \"Characters.\", sr: \"Broj znakova.\" },\n FORM_MIN: { en: \"Minimum\", sr: \"Najmanje\" },\n FORM_MAX: { en: \"Maximum\", sr: \"Najviše\" },\n FORM_NO_LIMIT: { en: \"No limit\", sr: \"Bez ograničenja\" },\n FORM_VALUES: { en: \"Allowed values\", sr: \"Dozvoljene vrednosti\" },\n FORM_VALUES_HINT: {\n en: \"Press Enter or comma after each value.\",\n sr: \"Enter ili zarez posle svake vrednosti.\",\n },\n FORM_REQUIRED: { en: \"Required\", sr: \"Obavezno\" },\n FORM_REQUIRED_HINT: {\n en: \"New rows and edits of this field need a value.\",\n sr: \"Novi redovi i izmene ovog polja traže vrednost.\",\n },\n FORM_INDEX: { en: \"Indexed\", sr: \"Indeksirano\" },\n FORM_INDEX_HINT: { en: \"Faster sort and filter.\", sr: \"Brže sortiranje i filtriranje.\" },\n FORM_SERVER_ERROR: { en: \"The server refused the change\", sr: \"Server je odbio izmenu\" },\n ERR_NAME_REQUIRED: { en: \"Enter a field name.\", sr: \"Unesite naziv polja.\" },\n ERR_NAME_INVALID: {\n en: \"Use lowercase letters, digits and _, starting with a letter (max 63).\",\n sr: \"Koristite mala slova, cifre i _, na početku slovo (najviše 63).\",\n },\n ERR_NAME_TAKEN: {\n en: \"A field with this name already exists.\",\n sr: \"Polje sa ovim nazivom već postoji.\",\n },\n ERR_LENGTH_REQUIRED: {\n en: \"Text fields need a max length.\",\n sr: \"Tekstualno polje traži najveću dužinu.\",\n },\n ERR_LENGTH: { en: \"A whole number of at least 1.\", sr: \"Ceo broj, najmanje 1.\" },\n ERR_NUMBER: { en: \"Not a number.\", sr: \"Nije broj.\" },\n ERR_INTEGER: { en: \"A whole number.\", sr: \"Ceo broj.\" },\n ERR_MIN_MAX: { en: \"Maximum is below the minimum.\", sr: \"Najviše je manje od najmanje.\" },\n ERR_VALUES_REQUIRED: { en: \"Add at least one value.\", sr: \"Dodajte bar jednu vrednost.\" },\n ERR_VALUES_DUP: { en: \"Values must be unique.\", sr: \"Vrednosti moraju da budu različite.\" },\n DELETE_TITLE: { en: \"Delete column {label}?\", sr: \"Obrisati kolonu {label}?\" },\n DELETE_BODY: {\n en: \"The column disappears from the table, the cards and the filters. The data is kept: values stay in the database and nothing is erased.\",\n sr: \"Kolona nestaje iz tabele, kartica i filtera. Podaci ostaju: vrednosti se čuvaju u bazi i ništa se ne briše.\",\n },\n DELETE_FIELD_NAME: { en: \"Field:\", sr: \"Polje:\" },\n DELETE_CONFIRM: { en: \"Delete column\", sr: \"Obriši kolonu\" },\n TOAST_ADDED: { en: \"Column {label} added\", sr: \"Kolona {label} je dodata\" },\n TOAST_UPDATED: { en: \"Column {label} saved\", sr: \"Kolona {label} je sačuvana\" },\n TOAST_DELETED: { en: \"Column {label} deleted\", sr: \"Kolona {label} je obrisana\" },\n TYPE_STRING: { en: \"Short text\", sr: \"Kratak tekst\" },\n TYPE_TEXT: { en: \"Long text\", sr: \"Dugačak tekst\" },\n TYPE_INTEGER: { en: \"Integer\", sr: \"Ceo broj\" },\n TYPE_DECIMAL: { en: \"Decimal\", sr: \"Decimalni broj\" },\n TYPE_YEAR: { en: \"Year\", sr: \"Godina\" },\n TYPE_BOOL: { en: \"Yes / no\", sr: \"Da / ne\" },\n TYPE_DATE: { en: \"Date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ps, type CellRegistry, cellComponent, createCellRegistry, mergeCellRegistries, UdcCellsProvider, type UdcCellsProviderProps, useCellRegistry, } from "./cells/registry.js";
|
|
2
|
+
export { resolveChrome, UdcDataView, type UdcDataViewChrome, type UdcDataViewChromePreset, type UdcDataViewProps, } from "./data-view/UdcDataView.js";
|
|
2
3
|
export { INTL_LOCALE, intlLocaleOf, isLocale, LOCALE_STORAGE_KEY, lookup, type Messages, makeT, mergeMessages, messageLocales, type Overlay, schemaLabelTerms, tableSection, UdcI18nProvider, type UdcI18nProviderProps, useI18n, type Vars, } from "./i18n/i18n.js";
|
|
3
4
|
export { type BuiltinLocale, LOCALES, type Locale, type Term, TRANSLATIONS, type Translations, } from "./i18n/translations.js";
|
|
4
5
|
export { LUCIDE_ICONS } from "./icons/lucide.generated.js";
|
|
5
6
|
export { FALLBACK_ICON, resolveIcon } from "./icons/resolve.js";
|
|
7
|
+
export { UDC_SCOPE_CLASS } from "./lib/scope.js";
|
|
6
8
|
export { THEME_STORAGE_KEY, type Theme, ThemeProvider, useTheme } from "./lib/theme.js";
|
|
7
9
|
export { cn, humanize, storage } from "./lib/utils.js";
|
|
8
10
|
export { type BatchEntry, batchCovers, type LookupBatch, UdcLookupBatch, useLookupBatch, useLookupBatchContext, } from "./lookup/batch.js";
|
|
@@ -16,12 +18,13 @@ export { asLookup, fetchLookupRows, keyString, type LookupRequest, type LookupRo
|
|
|
16
18
|
export { UdcRenderersProvider, type UdcRenderersProviderProps, useRendererRegistry, } from "./renderers/context.js";
|
|
17
19
|
export { createRendererRegistry, type RendererTab, rendererEntry, rendererTabs, resolveTab, } from "./renderers/registry.js";
|
|
18
20
|
export { type FolderNav, isFolderRow, type RendererCount, type RendererDefinition, type RendererEntry, type RendererProps, type RendererRegistry, } from "./renderers/types.js";
|
|
21
|
+
export { ownsKeys, type RowActivation, type RowActivationProps, type RowActivationRowProps, rowActivationEnabled, type UseRowActivationOptions, useRowActivation, } from "./rows/useRowActivation.js";
|
|
19
22
|
export { EmptyState, ErrorState, NoRendererState } from "./table/states.js";
|
|
20
23
|
export { BROWSER_TZ, COMMON_ZONES, TimezoneProvider, type TimezoneState, TZ_STORAGE_KEY, useTimezone, } from "./time/timezone.js";
|
|
21
24
|
export { allZones, browserZone, isValidZone, offsetLabel, offsetMinutes, zoneCity, } from "./time/zoned.js";
|
|
22
25
|
export { i18nKey } from "./tree/model.js";
|
|
23
26
|
export { ALL_ROWS_MAX, type FetchAllRowsArgs, fetchAllRows, freshnessOf, pageOffset, patchRowInList, pollInterval, type UdcAllRowsResult, type UdcCollectionResult, type UdcMutateVars, type UseUdcAllRowsArgs, type UseUdcCollectionArgs, useUdcAllRows, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcMutate, useUdcSchema, useUdcSource, } from "./udc/hooks.js";
|
|
24
27
|
export { type ListKeyParams, type PagingMode, udcKeys } from "./udc/keys.js";
|
|
25
|
-
export { createUdcQueryClient, shouldRetry, UdcProvider, useUdcClient } from "./udc/provider.js";
|
|
28
|
+
export { createUdcQueryClient, shouldRetry, UdcProvider, type UdcQueryClientOptions, useUdcClient, } from "./udc/provider.js";
|
|
26
29
|
export { type ButtonSize, type ButtonVariant, type PreventableEvent, type SegmentedOption, type SelectOption, type ToastInput, type ToastVariant, UdcUiProvider, type UdcUiProviderProps, type UiBlockProps, type UiButtonProps, type UiCheckboxProps, type UiDialogContentProps, type UiDialogProps, type UiDropdownMenuContentProps, type UiDropdownMenuItemProps, type UiDropdownMenuProps, type UiInputProps, type UiKbdProps, type UiKit, type UiNativeSelectProps, type UiPopoverAnchorProps, type UiPopoverContentProps, type UiPopoverProps, type UiSegmentedProps, type UiSelectProps, type UiSkeletonProps, type UiSpinnerProps, type UiTipProps, type UiTriggerProps, useUiKit, } from "./ui-kit/index.js";
|
|
27
|
-
export { type SetUrlSearchParams, UdcUrlStateProvider, type UdcUrlStateProviderProps, type UrlStateAdapter, useUrlSearchParams, useUrlStateAdapter, windowLocationAdapter, } from "./url-state/index.js";
|
|
30
|
+
export { createMemoryUrlStateAdapter, type MemoryUrlStateAdapter, prefixUrlStateAdapter, type SetUrlSearchParams, UdcUrlStateProvider, type UdcUrlStateProviderProps, type UrlStateAdapter, useUrlSearchParams, useUrlStateAdapter, windowLocationAdapter, } from "./url-state/index.js";
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { UdcCellsProvider, cellComponent, createCellRegistry, mergeCellRegistries, useCellRegistry } from "./cells/registry.js";
|
|
1
2
|
import { humanize, storage } from "./lib/storage.js";
|
|
2
|
-
import { UdcDataView } from "./data-view/UdcDataView.js";
|
|
3
|
+
import { UdcDataView, resolveChrome } from "./data-view/UdcDataView.js";
|
|
3
4
|
import { INTL_LOCALE, LOCALE_STORAGE_KEY, UdcI18nProvider, intlLocaleOf, isLocale, lookup, makeT, mergeMessages, messageLocales, schemaLabelTerms, tableSection, useI18n } from "./i18n/i18n.js";
|
|
4
5
|
import { LOCALES, TRANSLATIONS } from "./i18n/translations.js";
|
|
5
6
|
import { LUCIDE_ICONS } from "./icons/lucide.generated.js";
|
|
6
7
|
import { FALLBACK_ICON, resolveIcon } from "./icons/resolve.js";
|
|
8
|
+
import { UDC_SCOPE_CLASS } from "./lib/scope.js";
|
|
7
9
|
import { THEME_STORAGE_KEY, ThemeProvider, useTheme } from "./lib/theme.js";
|
|
8
10
|
import { cn } from "./lib/utils.js";
|
|
9
11
|
import { UdcLookupBatch, batchCovers, useLookupBatch, useLookupBatchContext } from "./lookup/batch.js";
|
|
10
12
|
import { LookupCombobox } from "./lookup/LookupCombobox.js";
|
|
11
13
|
import { LookupSelectChip } from "./lookup/LookupSelectChip.js";
|
|
12
|
-
import { createUdcQueryClient, shouldRetry, useUdcClient } from "./udc/client.js";
|
|
13
14
|
import { LookupValue, useLookupLabels, useLookupRows } from "./lookup/LookupValue.js";
|
|
15
|
+
import { createUdcQueryClient, shouldRetry, useUdcClient } from "./udc/client.js";
|
|
14
16
|
import { lookupExtras, lookupLabel } from "./lookup/label.js";
|
|
15
17
|
import { UdcLinksProvider, defaultUdcLinks, filterHref, followLink, useUdcLinks } from "./lookup/links.js";
|
|
16
18
|
import { LOOKUP_OPTIONS_LIMIT, optionsFilter, useLookupOptions } from "./lookup/options.js";
|
|
@@ -18,6 +20,7 @@ import { asLookup, fetchLookupRows, keyString, lookupKeys, lookupQuery, useUdcLo
|
|
|
18
20
|
import { UdcRenderersProvider, useRendererRegistry } from "./renderers/context.js";
|
|
19
21
|
import { createRendererRegistry, rendererEntry, rendererTabs, resolveTab } from "./renderers/registry.js";
|
|
20
22
|
import { isFolderRow } from "./renderers/types.js";
|
|
23
|
+
import { ownsKeys, rowActivationEnabled, useRowActivation } from "./rows/useRowActivation.js";
|
|
21
24
|
import { EmptyState, ErrorState, NoRendererState } from "./table/states.js";
|
|
22
25
|
import { BROWSER_TZ, COMMON_ZONES, TZ_STORAGE_KEY, TimezoneProvider, useTimezone } from "./time/timezone.js";
|
|
23
26
|
import { allZones, browserZone, isValidZone, offsetLabel, offsetMinutes, zoneCity } from "./time/zoned.js";
|
|
@@ -26,6 +29,7 @@ import { ALL_ROWS_MAX, fetchAllRows, freshnessOf, pageOffset, patchRowInList, po
|
|
|
26
29
|
import { udcKeys } from "./udc/keys.js";
|
|
27
30
|
import { UdcProvider } from "./udc/provider.js";
|
|
28
31
|
import { UdcUiProvider, useUiKit } from "./ui-kit/context.js";
|
|
32
|
+
import { createMemoryUrlStateAdapter, prefixUrlStateAdapter } from "./url-state/adapters.js";
|
|
29
33
|
import { UdcUrlStateProvider, useUrlSearchParams, useUrlStateAdapter } from "./url-state/UrlState.js";
|
|
30
34
|
import { windowLocationAdapter } from "./url-state/adapter.js";
|
|
31
|
-
export { ALL_ROWS_MAX, BROWSER_TZ, COMMON_ZONES, EmptyState, ErrorState, FALLBACK_ICON, INTL_LOCALE, LOCALES, LOCALE_STORAGE_KEY, LOOKUP_OPTIONS_LIMIT, LUCIDE_ICONS, LookupCombobox, LookupSelectChip, LookupValue, NoRendererState, THEME_STORAGE_KEY, TRANSLATIONS, TZ_STORAGE_KEY, ThemeProvider, TimezoneProvider, UdcDataView, UdcI18nProvider, UdcLinksProvider, UdcLookupBatch, UdcProvider, UdcRenderersProvider, UdcUiProvider, UdcUrlStateProvider, allZones, asLookup, batchCovers, browserZone, cn, createRendererRegistry, createUdcQueryClient, defaultUdcLinks, fetchAllRows, fetchLookupRows, filterHref, followLink, freshnessOf, humanize, i18nKey, intlLocaleOf, isFolderRow, isLocale, isValidZone, keyString, lookup, lookupExtras, lookupKeys, lookupLabel, lookupQuery, makeT, mergeMessages, messageLocales, offsetLabel, offsetMinutes, optionsFilter, pageOffset, patchRowInList, pollInterval, rendererEntry, rendererTabs, resolveIcon, resolveTab, schemaLabelTerms, shouldRetry, storage, tableSection, udcKeys, useI18n, useLookupBatch, useLookupBatchContext, useLookupLabels, useLookupOptions, useLookupRows, useRendererRegistry, useTheme, useTimezone, useUdcAllRows, useUdcClient, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcLinks, useUdcLookup, useUdcLookups, useUdcMutate, useUdcSchema, useUdcSource, useUiKit, useUrlSearchParams, useUrlStateAdapter, valueKeys, windowLocationAdapter, zoneCity };
|
|
35
|
+
export { ALL_ROWS_MAX, BROWSER_TZ, COMMON_ZONES, EmptyState, ErrorState, FALLBACK_ICON, INTL_LOCALE, LOCALES, LOCALE_STORAGE_KEY, LOOKUP_OPTIONS_LIMIT, LUCIDE_ICONS, LookupCombobox, LookupSelectChip, LookupValue, NoRendererState, THEME_STORAGE_KEY, TRANSLATIONS, TZ_STORAGE_KEY, ThemeProvider, TimezoneProvider, UDC_SCOPE_CLASS, UdcCellsProvider, UdcDataView, UdcI18nProvider, UdcLinksProvider, UdcLookupBatch, UdcProvider, UdcRenderersProvider, UdcUiProvider, UdcUrlStateProvider, allZones, asLookup, batchCovers, browserZone, cellComponent, cn, createCellRegistry, createMemoryUrlStateAdapter, createRendererRegistry, createUdcQueryClient, defaultUdcLinks, fetchAllRows, fetchLookupRows, filterHref, followLink, freshnessOf, humanize, i18nKey, intlLocaleOf, isFolderRow, isLocale, isValidZone, keyString, lookup, lookupExtras, lookupKeys, lookupLabel, lookupQuery, makeT, mergeCellRegistries, mergeMessages, messageLocales, offsetLabel, offsetMinutes, optionsFilter, ownsKeys, pageOffset, patchRowInList, pollInterval, prefixUrlStateAdapter, rendererEntry, rendererTabs, resolveChrome, resolveIcon, resolveTab, rowActivationEnabled, schemaLabelTerms, shouldRetry, storage, tableSection, udcKeys, useCellRegistry, useI18n, useLookupBatch, useLookupBatchContext, useLookupLabels, useLookupOptions, useLookupRows, useRendererRegistry, useRowActivation, useTheme, useTimezone, useUdcAllRows, useUdcClient, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcLinks, useUdcLookup, useUdcLookups, useUdcMutate, useUdcSchema, useUdcSource, useUiKit, useUrlSearchParams, useUrlStateAdapter, valueKeys, windowLocationAdapter, zoneCity };
|
|
@@ -2,8 +2,8 @@ import { useI18n } from "../i18n/i18n.js";
|
|
|
2
2
|
import { cn } from "../lib/utils.js";
|
|
3
3
|
import { useUiKit } from "../ui-kit/context.js";
|
|
4
4
|
import { KanbanCard, PendingCard, TONE_DOT } from "./KanbanCard.js";
|
|
5
|
-
import { MoreHorizontal, Pencil, Plus, Trash2 } from "lucide-react";
|
|
6
5
|
import { useState } from "react";
|
|
6
|
+
import { MoreHorizontal, Pencil, Plus, Trash2 } from "lucide-react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
9
9
|
import { CSS } from "@dnd-kit/utilities";
|
|
@@ -12,8 +12,8 @@ import { AddBucketSlot, KanbanColumn, bucketDndId, cardsContainerId } from "./Ka
|
|
|
12
12
|
import { boardFilter, bucketsOf, cardsFilter, groupCards, isReadOnly, newBucketRow, orderOf, planDrop, priorityTone, quickAddRow } from "./model.js";
|
|
13
13
|
import { persistOrder } from "./persist.js";
|
|
14
14
|
import { useKanbanBoard } from "./useKanbanBoard.js";
|
|
15
|
-
import { KanbanSquare } from "lucide-react";
|
|
16
15
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
16
|
+
import { KanbanSquare } from "lucide-react";
|
|
17
17
|
import { detectCollision, isVersionConflict, orderBetween } from "@jsudc/core";
|
|
18
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
19
|
import { useQueryClient } from "@tanstack/react-query";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The class of a library root outside a data view: the default UI kit puts it on every
|
|
3
|
+
* portalled element (dialogs, popovers, menus, selects, tooltips, toasts), and a host puts
|
|
4
|
+
* it on an element of its own that holds library components outside `<UdcDataView>`.
|
|
5
|
+
* `@jsudc/react/styles.scoped.css` declares its tokens and resets only on `.udc-data-view`
|
|
6
|
+
* and this class.
|
|
7
|
+
*/
|
|
8
|
+
export declare const UDC_SCOPE_CLASS = "udc-scope";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/lib/scope.ts
|
|
2
|
+
/**
|
|
3
|
+
* The class of a library root outside a data view: the default UI kit puts it on every
|
|
4
|
+
* portalled element (dialogs, popovers, menus, selects, tooltips, toasts), and a host puts
|
|
5
|
+
* it on an element of its own that holds library components outside `<UdcDataView>`.
|
|
6
|
+
* `@jsudc/react/styles.scoped.css` declares its tokens and resets only on `.udc-data-view`
|
|
7
|
+
* and this class.
|
|
8
|
+
*/
|
|
9
|
+
var UDC_SCOPE_CLASS = "udc-scope";
|
|
10
|
+
export { UDC_SCOPE_CLASS };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.js","names":[],"sources":["../../src/lib/scope.ts"],"sourcesContent":["/**\n * The class of a library root outside a data view: the default UI kit puts it on every\n * portalled element (dialogs, popovers, menus, selects, tooltips, toasts), and a host puts\n * it on an element of its own that holds library components outside `<UdcDataView>`.\n * `@jsudc/react/styles.scoped.css` declares its tokens and resets only on `.udc-data-view`\n * and this class.\n */\nexport const UDC_SCOPE_CLASS = \"udc-scope\";\n"],"mappings":";;;;;;;;AAOA,IAAa,kBAAkB"}
|
|
@@ -3,8 +3,8 @@ import { cn } from "../lib/utils.js";
|
|
|
3
3
|
import { lookupLabel } from "./label.js";
|
|
4
4
|
import { useLookupOptions } from "./options.js";
|
|
5
5
|
import { keyString, lookupKeys, useUdcLookup } from "./useUdcLookup.js";
|
|
6
|
-
import { X } from "lucide-react";
|
|
7
6
|
import { useEffect, useRef, useState } from "react";
|
|
7
|
+
import { X } from "lucide-react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/lookup/LookupCombobox.tsx
|
|
10
10
|
/**
|
package/dist/map/MapRenderer.js
CHANGED
|
@@ -5,8 +5,8 @@ import { EmptyState, ErrorState } from "../table/states.js";
|
|
|
5
5
|
import { useUdcAllRows } from "../udc/hooks.js";
|
|
6
6
|
import { useUiKit } from "../ui-kit/context.js";
|
|
7
7
|
import { airplaneHtml, boundsOf, initialView, regionAt, regionById, toMarkers, trailMarkers } from "./model.js";
|
|
8
|
-
import { Maximize } from "lucide-react";
|
|
9
8
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
9
|
+
import { Maximize } from "lucide-react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import "leaflet/dist/leaflet.css";
|
|
12
12
|
import L from "leaflet";
|
|
@@ -65,6 +65,18 @@ export interface RendererProps {
|
|
|
65
65
|
onCount: (count: RendererCount | null) => void;
|
|
66
66
|
/** Set when the view has `folder_options`. */
|
|
67
67
|
folder?: FolderNav | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Row activation (0.4.0; `useRowActivation` of `@jsudc/react/headless` does
|
|
70
|
+
* all of it): Enter or a plain click on a row. Absent unless the host asked.
|
|
71
|
+
*/
|
|
72
|
+
onRowActivate?: ((row: Row) => void) | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The row to draw as active; `null` for none. Set (kept by the view when the
|
|
75
|
+
* host does not control it) whenever activation is on, else absent.
|
|
76
|
+
*/
|
|
77
|
+
activeRowId?: string | null | undefined;
|
|
78
|
+
/** Report the active row moving (keys, a click on another row); set whenever activation is on. */
|
|
79
|
+
onActiveRowChange?: ((row: Row | null) => void) | undefined;
|
|
68
80
|
}
|
|
69
81
|
export interface RendererEntry {
|
|
70
82
|
component: ComponentType<RendererProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":[],"sources":["../../src/renderers/types.ts"],"sourcesContent":["import type { DescribeResponse, FilterNode, FolderOptions, Row, SortKey } from \"@jsudc/core\";\nimport type { LucideIcon } from \"lucide-react\";\nimport type { ComponentType } from \"react\";\nimport type { ChartWindowState } from \"../chart/useChartWindow.js\";\nimport type { SchemaAction } from \"../schema-editor/fieldForm.js\";\nimport type { UdcCollectionResult } from \"../udc/hooks.js\";\nimport type { PagingMode } from \"../udc/keys.js\";\n\n/** The row count a renderer that loads its own rows reports to the toolbar. */\nexport interface RendererCount {\n shown: number;\n total: number | null;\n /**\n * `nodes`: the toolbar reads \"N nodes\" (the tree), `map`: \"N on map of M\"\n * (rows without a position are not drawn), `chart`: \"N points in window of\n * M\" (M counts the filter without the window), instead of \"Showing N of M\".\n */\n unit?: \"nodes\" | \"map\" | \"chart\";\n /** A source serving a fetched copy (http_api): when it was fetched, and whether it is stale. */\n fetchedAt?: string | null;\n stale?: boolean;\n}\n\n/** A folder-shaped collection (`folder_options`): what a folder row or a file row does on click. */\nexport interface FolderNav {\n options: FolderOptions;\n /** Open a folder by its path (`\"\"`: the root). */\n open: (path: string) => void;\n /** Preview a file row; absent when the view has no preview. */\n openFile?: ((row: Row) => void) | undefined;\n}\n\n/** Is `row` a folder of `nav`'s listing (the `..` row included)? */\nexport function isFolderRow(row: Row, nav: FolderNav): boolean {\n return row[nav.options.kind_field] === nav.options.dir_value;\n}\n\n/** What `<UdcDataView>` hands every renderer; each takes the parts it uses. */\nexport interface RendererProps {\n collection: string;\n /** `describe` with soft-deleted fields already gone. */\n describe: DescribeResponse;\n /** The data view's paged list; loaded only for a renderer with `paging`. */\n data: UdcCollectionResult;\n /** Search, chips and filter tree, composed. */\n filter: FilterNode | undefined;\n /** Chips and filter tree without the search: for a renderer that searches what it loaded. */\n baseFilter: FilterNode | undefined;\n /**\n * The chart window, when the view has one and it applies (on the chart tab,\n * or on any tab once the URL picked it): already ANDed into `filter` and\n * `baseFilter`.\n */\n chartWindow?: ChartWindowState | undefined;\n /** `filter` without the chart window: what \"of M\" counts. */\n unwindowedFilter?: FilterNode | undefined;\n /** The search box, as typed. */\n search: string;\n sort: SortKey[];\n onSort: (field: string, multi: boolean) => void;\n mode: PagingMode;\n page: number;\n limit: number;\n onPage: (page: number) => void;\n filtered: boolean;\n onClearFilters: () => void;\n resetKey: string;\n /** Set when the schema may be edited and the renderer has `editMode`. */\n onSchemaAction?: ((a: SchemaAction) => void) | undefined;\n /** For a renderer without `paging`: the count the toolbar shows. */\n onCount: (count: RendererCount | null) => void;\n /** Set when the view has `folder_options`. */\n folder?: FolderNav | undefined;\n}\n\nexport interface RendererEntry {\n component: ComponentType<RendererProps>;\n icon: LucideIcon;\n /** `APP.<labelKey>` is the tab label. */\n labelKey: string;\n /** Reads the data view's paged list: the paging toggle shows, the list loads. */\n paging: boolean;\n /** Offers the schema editor (column menus, add column). */\n editMode: boolean;\n /** Extra controls in the toolbar while this tab is open. */\n toolbar?: ComponentType<{ collection: string; describe: DescribeResponse }>;\n}\n\n/** One renderer as its subpath exports it (`tableRenderer` from `@jsudc/react/table`). */\nexport interface RendererDefinition extends RendererEntry {\n /** The name a view lists in `available_renderers`. */\n name: string;\n}\n\n/** Renderer name → entry: what `UdcDataView` draws its tabs with. `createRendererRegistry` builds one. */\nexport type RendererRegistry = Readonly<Record<string, RendererEntry>>;\n"],"mappings":";;AAiCA,SAAgB,YAAY,KAAU,KAAyB;CAC7D,OAAO,IAAI,IAAI,QAAQ,gBAAgB,IAAI,QAAQ;AACrD"}
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../../src/renderers/types.ts"],"sourcesContent":["import type { DescribeResponse, FilterNode, FolderOptions, Row, SortKey } from \"@jsudc/core\";\nimport type { LucideIcon } from \"lucide-react\";\nimport type { ComponentType } from \"react\";\nimport type { ChartWindowState } from \"../chart/useChartWindow.js\";\nimport type { SchemaAction } from \"../schema-editor/fieldForm.js\";\nimport type { UdcCollectionResult } from \"../udc/hooks.js\";\nimport type { PagingMode } from \"../udc/keys.js\";\n\n/** The row count a renderer that loads its own rows reports to the toolbar. */\nexport interface RendererCount {\n shown: number;\n total: number | null;\n /**\n * `nodes`: the toolbar reads \"N nodes\" (the tree), `map`: \"N on map of M\"\n * (rows without a position are not drawn), `chart`: \"N points in window of\n * M\" (M counts the filter without the window), instead of \"Showing N of M\".\n */\n unit?: \"nodes\" | \"map\" | \"chart\";\n /** A source serving a fetched copy (http_api): when it was fetched, and whether it is stale. */\n fetchedAt?: string | null;\n stale?: boolean;\n}\n\n/** A folder-shaped collection (`folder_options`): what a folder row or a file row does on click. */\nexport interface FolderNav {\n options: FolderOptions;\n /** Open a folder by its path (`\"\"`: the root). */\n open: (path: string) => void;\n /** Preview a file row; absent when the view has no preview. */\n openFile?: ((row: Row) => void) | undefined;\n}\n\n/** Is `row` a folder of `nav`'s listing (the `..` row included)? */\nexport function isFolderRow(row: Row, nav: FolderNav): boolean {\n return row[nav.options.kind_field] === nav.options.dir_value;\n}\n\n/** What `<UdcDataView>` hands every renderer; each takes the parts it uses. */\nexport interface RendererProps {\n collection: string;\n /** `describe` with soft-deleted fields already gone. */\n describe: DescribeResponse;\n /** The data view's paged list; loaded only for a renderer with `paging`. */\n data: UdcCollectionResult;\n /** Search, chips and filter tree, composed. */\n filter: FilterNode | undefined;\n /** Chips and filter tree without the search: for a renderer that searches what it loaded. */\n baseFilter: FilterNode | undefined;\n /**\n * The chart window, when the view has one and it applies (on the chart tab,\n * or on any tab once the URL picked it): already ANDed into `filter` and\n * `baseFilter`.\n */\n chartWindow?: ChartWindowState | undefined;\n /** `filter` without the chart window: what \"of M\" counts. */\n unwindowedFilter?: FilterNode | undefined;\n /** The search box, as typed. */\n search: string;\n sort: SortKey[];\n onSort: (field: string, multi: boolean) => void;\n mode: PagingMode;\n page: number;\n limit: number;\n onPage: (page: number) => void;\n filtered: boolean;\n onClearFilters: () => void;\n resetKey: string;\n /** Set when the schema may be edited and the renderer has `editMode`. */\n onSchemaAction?: ((a: SchemaAction) => void) | undefined;\n /** For a renderer without `paging`: the count the toolbar shows. */\n onCount: (count: RendererCount | null) => void;\n /** Set when the view has `folder_options`. */\n folder?: FolderNav | undefined;\n /**\n * Row activation (0.4.0; `useRowActivation` of `@jsudc/react/headless` does\n * all of it): Enter or a plain click on a row. Absent unless the host asked.\n */\n onRowActivate?: ((row: Row) => void) | undefined;\n /**\n * The row to draw as active; `null` for none. Set (kept by the view when the\n * host does not control it) whenever activation is on, else absent.\n */\n activeRowId?: string | null | undefined;\n /** Report the active row moving (keys, a click on another row); set whenever activation is on. */\n onActiveRowChange?: ((row: Row | null) => void) | undefined;\n}\n\nexport interface RendererEntry {\n component: ComponentType<RendererProps>;\n icon: LucideIcon;\n /** `APP.<labelKey>` is the tab label. */\n labelKey: string;\n /** Reads the data view's paged list: the paging toggle shows, the list loads. */\n paging: boolean;\n /** Offers the schema editor (column menus, add column). */\n editMode: boolean;\n /** Extra controls in the toolbar while this tab is open. */\n toolbar?: ComponentType<{ collection: string; describe: DescribeResponse }>;\n}\n\n/** One renderer as its subpath exports it (`tableRenderer` from `@jsudc/react/table`). */\nexport interface RendererDefinition extends RendererEntry {\n /** The name a view lists in `available_renderers`. */\n name: string;\n}\n\n/** Renderer name → entry: what `UdcDataView` draws its tabs with. `createRendererRegistry` builds one. */\nexport type RendererRegistry = Readonly<Record<string, RendererEntry>>;\n"],"mappings":";;AAiCA,SAAgB,YAAY,KAAU,KAAyB;CAC7D,OAAO,IAAI,IAAI,QAAQ,gBAAgB,IAAI,QAAQ;AACrD"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { Row } from "@jsudc/core";
|
|
2
|
+
import { type FocusEvent, type KeyboardEvent, type MouseEvent } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* The activation props of `UdcDataView` and of `RendererProps`. All optional;
|
|
5
|
+
* with none of them a list behaves as before 0.4.0 (no tab stop on the rows,
|
|
6
|
+
* no keys, no active row).
|
|
7
|
+
*/
|
|
8
|
+
export interface RowActivationProps {
|
|
9
|
+
/** A row was activated: Enter on it, or a plain click (no modifier, the main button). */
|
|
10
|
+
onRowActivate?: ((row: Row) => void) | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* The row drawn as active (`aria-selected="true"`, `data-active`, the
|
|
13
|
+
* `--selected` background). Passed: controlled, the host moves it in
|
|
14
|
+
* `onActiveRowChange`; `null` is "none". Left out: the list keeps it itself.
|
|
15
|
+
*/
|
|
16
|
+
activeRowId?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The active row changed by the user: moved by the keys (without Enter) or a
|
|
19
|
+
* click on another row (before `onRowActivate`). Preview on move here.
|
|
20
|
+
*/
|
|
21
|
+
onActiveRowChange?: ((row: Row | null) => void) | undefined;
|
|
22
|
+
}
|
|
23
|
+
/** Is activation on: any of the three props passed? */
|
|
24
|
+
export declare function rowActivationEnabled(p: RowActivationProps): boolean;
|
|
25
|
+
export interface UseRowActivationOptions extends RowActivationProps {
|
|
26
|
+
/** The loaded rows, in the order they are drawn. */
|
|
27
|
+
rows: readonly Row[];
|
|
28
|
+
/** Infinite mode: moving past the last loaded row asks for the next page. */
|
|
29
|
+
hasNextPage?: boolean | undefined;
|
|
30
|
+
isFetchingNextPage?: boolean | undefined;
|
|
31
|
+
fetchNextPage?: (() => unknown) | undefined;
|
|
32
|
+
/** Override the default, `rowActivationEnabled(options)`. */
|
|
33
|
+
enabled?: boolean | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** What to spread on the element of one row (a `<tr>`, a card, an `<li>`). */
|
|
36
|
+
export interface RowActivationRowProps {
|
|
37
|
+
ref: (el: HTMLElement | null) => void;
|
|
38
|
+
/** One tab stop for the list: the active row, else the last focused one, else the first. */
|
|
39
|
+
tabIndex: 0 | -1;
|
|
40
|
+
"aria-selected": boolean;
|
|
41
|
+
/** `"true"` on the active row: a stable hook for CSS (`.udc-row[data-active]`). */
|
|
42
|
+
"data-active": "true" | undefined;
|
|
43
|
+
onKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
|
|
44
|
+
onFocus: (e: FocusEvent<HTMLElement>) => void;
|
|
45
|
+
onBlur: (e: FocusEvent<HTMLElement>) => void;
|
|
46
|
+
}
|
|
47
|
+
export interface RowActivation {
|
|
48
|
+
/** Off: `rowProps` is `{}` and the handlers do nothing. */
|
|
49
|
+
enabled: boolean;
|
|
50
|
+
/** The active row's id when it is among `rows`, else `null`. */
|
|
51
|
+
activeRowId: string | null;
|
|
52
|
+
/** The row holding the list's tab stop. */
|
|
53
|
+
tabStopId: string | null;
|
|
54
|
+
/** The props of one row's element (`{}` when off). */
|
|
55
|
+
rowProps: (row: Row) => RowActivationRowProps | Record<string, never>;
|
|
56
|
+
/**
|
|
57
|
+
* A click on the row: a plain click activates it (and focuses it, unless the
|
|
58
|
+
* click went to a focusable cell). A modified or non-main-button click, or one
|
|
59
|
+
* on a link, button, input or menu, is left alone. `true` when it activated.
|
|
60
|
+
*/
|
|
61
|
+
handleClick: (e: MouseEvent<HTMLElement>, row: Row) => boolean;
|
|
62
|
+
/** Activate `row` as Enter does: make it active, then `onRowActivate`. */
|
|
63
|
+
activate: (row: Row) => void;
|
|
64
|
+
/** Move the active row, as the keys do, and focus it. */
|
|
65
|
+
move: (to: "next" | "previous" | "first" | "last") => void;
|
|
66
|
+
}
|
|
67
|
+
/** Does a key pressed on `target` belong to it rather than to the list? */
|
|
68
|
+
export declare function ownsKeys(target: EventTarget | null): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The active row of a list and the keys that move it. Spread `rowProps(row)`
|
|
71
|
+
* on each row's element, call `handleClick` from its `onClick`, and give the
|
|
72
|
+
* list `role="grid"` (rows `role="row"`) while `enabled`.
|
|
73
|
+
*/
|
|
74
|
+
export declare function useRowActivation(options: UseRowActivationOptions): RowActivation;
|