@jsudc/react 0.3.0 → 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.
Files changed (91) hide show
  1. package/README.md +561 -20
  2. package/dist/calendar/CalendarRenderer.js +1 -1
  3. package/dist/calendar/EventDetail.js +1 -1
  4. package/dist/calendar.js +1 -1
  5. package/dist/cards/CardRenderer.d.ts +2 -1
  6. package/dist/cards/CardRenderer.js +143 -109
  7. package/dist/cards/CardRenderer.js.map +1 -1
  8. package/dist/cells/registry.d.ts +60 -0
  9. package/dist/cells/registry.js +47 -0
  10. package/dist/cells/registry.js.map +1 -0
  11. package/dist/chart/ChartWindowControl.js +1 -1
  12. package/dist/components/ui/checkbox.js +1 -1
  13. package/dist/components/ui/dialog.js +4 -3
  14. package/dist/components/ui/dialog.js.map +1 -1
  15. package/dist/components/ui/dropdown-menu.js +2 -1
  16. package/dist/components/ui/dropdown-menu.js.map +1 -1
  17. package/dist/components/ui/popover.js +2 -1
  18. package/dist/components/ui/popover.js.map +1 -1
  19. package/dist/components/ui/select.js +2 -1
  20. package/dist/components/ui/select.js.map +1 -1
  21. package/dist/components/ui/toast.js +3 -2
  22. package/dist/components/ui/toast.js.map +1 -1
  23. package/dist/components/ui/tooltip.js +2 -1
  24. package/dist/components/ui/tooltip.js.map +1 -1
  25. package/dist/data-view/FilterBuilder.js +1 -1
  26. package/dist/data-view/FilterChips.js +1 -1
  27. package/dist/data-view/Freshness.js +1 -1
  28. package/dist/data-view/SearchBox.js +1 -1
  29. package/dist/data-view/UdcDataView.d.ts +83 -1
  30. package/dist/data-view/UdcDataView.js +171 -85
  31. package/dist/data-view/UdcDataView.js.map +1 -1
  32. package/dist/data-view/useDataViewState.d.ts +8 -0
  33. package/dist/data-view/useDataViewState.js +2 -1
  34. package/dist/data-view/useDataViewState.js.map +1 -1
  35. package/dist/headless.d.ts +3 -0
  36. package/dist/headless.js +5 -2
  37. package/dist/i18n/translations.js +8 -0
  38. package/dist/i18n/translations.js.map +1 -1
  39. package/dist/index.d.ts +6 -3
  40. package/dist/index.js +7 -3
  41. package/dist/kanban/KanbanColumn.js +1 -1
  42. package/dist/kanban/KanbanRenderer.js +1 -1
  43. package/dist/kanban/model.d.ts +7 -0
  44. package/dist/kanban/model.js +19 -1
  45. package/dist/kanban/model.js.map +1 -1
  46. package/dist/kanban/useKanbanBoard.d.ts +5 -1
  47. package/dist/kanban/useKanbanBoard.js +6 -2
  48. package/dist/kanban/useKanbanBoard.js.map +1 -1
  49. package/dist/lib/scope.d.ts +8 -0
  50. package/dist/lib/scope.js +12 -0
  51. package/dist/lib/scope.js.map +1 -0
  52. package/dist/lookup/LookupCombobox.js +2 -2
  53. package/dist/lookup/LookupCombobox.js.map +1 -1
  54. package/dist/map/MapRenderer.js +1 -1
  55. package/dist/renderers/types.d.ts +12 -0
  56. package/dist/renderers/types.js.map +1 -1
  57. package/dist/rows/useRowActivation.d.ts +74 -0
  58. package/dist/rows/useRowActivation.js +225 -0
  59. package/dist/rows/useRowActivation.js.map +1 -0
  60. package/dist/schema-editor/DeleteFieldDialog.js +1 -1
  61. package/dist/schema-editor/FieldFormDialog.js +1 -1
  62. package/dist/schema-editor/TagInput.js +1 -1
  63. package/dist/styles.css +1 -1
  64. package/dist/styles.scoped.css +2 -0
  65. package/dist/table/CellEditor.js +1 -0
  66. package/dist/table/CellEditor.js.map +1 -1
  67. package/dist/table/TableRenderer.d.ts +2 -1
  68. package/dist/table/TableRenderer.js +41 -8
  69. package/dist/table/TableRenderer.js.map +1 -1
  70. package/dist/table/cells.d.ts +13 -2
  71. package/dist/table/cells.js +14 -1
  72. package/dist/table/cells.js.map +1 -1
  73. package/dist/table/states.d.ts +6 -0
  74. package/dist/table/states.js +14 -1
  75. package/dist/table/states.js.map +1 -1
  76. package/dist/tree/TreeNode.js +1 -1
  77. package/dist/tree/TreeRenderer.js +1 -1
  78. package/dist/udc/client.d.ts +15 -1
  79. package/dist/udc/client.js +31 -10
  80. package/dist/udc/client.js.map +1 -1
  81. package/dist/udc/hooks.d.ts +8 -3
  82. package/dist/udc/provider.d.ts +5 -2
  83. package/dist/udc/provider.js +6 -1
  84. package/dist/udc/provider.js.map +1 -1
  85. package/dist/ui-kit/ui.d.ts +1 -0
  86. package/dist/ui.js +2 -1
  87. package/dist/url-state/adapters.d.ts +23 -0
  88. package/dist/url-state/adapters.js +57 -0
  89. package/dist/url-state/adapters.js.map +1 -0
  90. package/dist/url-state/index.d.ts +1 -0
  91. 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";
@@ -9,7 +10,7 @@ import { folderCrumbs, joinFolder, splitFolder } from "./data-view/folder.js";
9
10
  import { isLiveField, liveDescribe, liveSort, liveView, pruneTree } from "./data-view/liveView.js";
10
11
  import { PARAM, base64UrlToUtf8, cycleSort, decodeChipParam, decodeFilterParam, decodeModeParam, decodePageParam, decodeSortParam, encodeChipParam, encodeFilterParam, encodeSortParam, isEmptyChip, utf8ToBase64Url } from "./data-view/urlState.js";
11
12
  import { DOC_TAB, SOURCE_TAB, pagingStorageKey, resolvePagingMode, useDataViewState } from "./data-view/useDataViewState.js";
12
- import { boardFilter, boardSource, bucketsOf, byOrder, cardsFilter, groupCards, isOverdue, isReadOnly, newBucketRow, orderOf, planDrop, priorityTone, quickAddRow, replanDrop } from "./kanban/model.js";
13
+ import { boardFilter, boardFromFilter, boardSource, bucketsOf, byOrder, cardsFilter, groupCards, isOverdue, isReadOnly, newBucketRow, orderOf, planDrop, priorityTone, quickAddRow, replanDrop } from "./kanban/model.js";
13
14
  import { persistOrder } from "./kanban/persist.js";
14
15
  import { BOARD_PARAM, useKanbanBoard } from "./kanban/useKanbanBoard.js";
15
16
  import { lookupExtras, lookupLabel } from "./lookup/label.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, 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,IAA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AI;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\", 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;E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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"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- export { UdcDataView, type UdcDataViewProps } from "./data-view/UdcDataView.js";
1
+ export { type CellComponent, type CellDefinition, type CellProps, 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";
@@ -69,6 +69,13 @@ export declare function newBucketRow(opts: KanbanOptions, args: {
69
69
  buckets: readonly Bucket[];
70
70
  }): Record<string, unknown>;
71
71
  export declare function boardFilter(opts: KanbanOptions, boardId: string): FilterNode;
72
+ /**
73
+ * The board a filter pins: an `eq` on the card's board field with a string
74
+ * value, at the root or anywhere under `and`s (never under `or` / `not`,
75
+ * which do not pin one board). A `row_link` drill-down opens the cards with
76
+ * exactly that filter; the board select follows it. `null` when none does.
77
+ */
78
+ export declare function boardFromFilter(tree: FilterNode | null | undefined, boardField: string): string | null;
72
79
  /** The board's cards narrowed by the data view's filter (search, chips, tree). */
73
80
  export declare function cardsFilter(opts: KanbanOptions, boardId: string, viewFilter: FilterNode | undefined): FilterNode;
74
81
  /**
@@ -111,6 +111,24 @@ function boardFilter(opts, boardId) {
111
111
  value: boardId
112
112
  };
113
113
  }
114
+ /**
115
+ * The board a filter pins: an `eq` on the card's board field with a string
116
+ * value, at the root or anywhere under `and`s (never under `or` / `not`,
117
+ * which do not pin one board). A `row_link` drill-down opens the cards with
118
+ * exactly that filter; the board select follows it. `null` when none does.
119
+ */
120
+ function boardFromFilter(tree, boardField) {
121
+ if (!tree) return null;
122
+ if ("and" in tree) {
123
+ for (const node of tree.and) {
124
+ const id = boardFromFilter(node, boardField);
125
+ if (id !== null) return id;
126
+ }
127
+ return null;
128
+ }
129
+ if ("or" in tree || "not" in tree) return null;
130
+ return tree.field === boardField && tree.op === "eq" && typeof tree.value === "string" ? tree.value : null;
131
+ }
114
132
  /** The board's cards narrowed by the data view's filter (search, chips, tree). */
115
133
  function cardsFilter(opts, boardId, viewFilter) {
116
134
  const board = boardFilter(opts, boardId);
@@ -162,6 +180,6 @@ function isOverdue(value, today = /* @__PURE__ */ new Date()) {
162
180
  function isReadOnly(opts, capabilities) {
163
181
  return opts.permissions.read_only || !capabilities.mutate;
164
182
  }
165
- export { boardFilter, boardSource, bucketsOf, byOrder, cardsFilter, groupCards, isOverdue, isReadOnly, newBucketRow, orderOf, planDrop, priorityTone, quickAddRow, replanDrop };
183
+ export { boardFilter, boardFromFilter, boardSource, bucketsOf, byOrder, cardsFilter, groupCards, isOverdue, isReadOnly, newBucketRow, orderOf, planDrop, priorityTone, quickAddRow, replanDrop };
166
184
 
167
185
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","names":[],"sources":["../../src/kanban/model.ts"],"sourcesContent":["import {\n COLUMN_COLORS,\n type ColumnColor,\n detectCollision,\n type FieldDef,\n type FilterNode,\n type KanbanOptions,\n lookupOf,\n orderBetween,\n type Row,\n type SchemaDoc,\n} from \"@jsudc/core\";\n\n/*\n * The kanban's pure parts: which rows are columns and cards, where a dropped\n * card lands, what a quick-add inserts. The renderer is the glue around them.\n */\n\nexport interface Bucket {\n id: string;\n label: string;\n color: ColumnColor | null;\n order: number | null;\n row: Row;\n}\n\nexport function orderOf(row: Row | undefined, field: string): number | null {\n const v = row?.[field];\n return typeof v === \"number\" && Number.isFinite(v) ? v : null;\n}\n\nconst isColor = (v: unknown): v is ColumnColor =>\n typeof v === \"string\" && (COLUMN_COLORS as readonly string[]).includes(v);\n\n/** Ascending order, a missing order last, then the id: the server's `ORDER BY`. */\nexport function byOrder(field: string) {\n return (a: Row, b: Row) => {\n const x = orderOf(a, field);\n const y = orderOf(b, field);\n if (x !== y) {\n if (x === null) return 1;\n if (y === null) return -1;\n return x - y;\n }\n return a.__meta.id < b.__meta.id ? -1 : a.__meta.id > b.__meta.id ? 1 : 0;\n };\n}\n\nexport function bucketsOf(rows: readonly Row[], opts: KanbanOptions): Bucket[] {\n return [...rows].sort(byOrder(opts.bucket_order_field)).map((row) => {\n const color = opts.bucket_color_field ? row[opts.bucket_color_field] : null;\n return {\n id: row.__meta.id,\n label: String(row[opts.bucket_label_field] ?? \"\"),\n color: isColor(color) ? color : null,\n order: orderOf(row, opts.bucket_order_field),\n row,\n };\n });\n}\n\n/** A card move not yet confirmed by the server: drawn where it was dropped. */\nexport interface PendingMove {\n bucketId: string;\n order: number;\n}\n\n/**\n * Cards per bucket id, each column in order. `pending` overrides a card's\n * bucket and order until the server answers; a card whose bucket is not on\n * the board is left out.\n */\nexport function groupCards(\n cards: readonly Row[],\n buckets: readonly Bucket[],\n opts: KanbanOptions,\n pending: ReadonlyMap<string, PendingMove> = new Map(),\n): Record<string, Row[]> {\n const out: Record<string, Row[]> = Object.fromEntries(buckets.map((b) => [b.id, []]));\n for (const card of cards) {\n const move = pending.get(card.__meta.id);\n const shown = move\n ? {\n ...card,\n [opts.ticket_bucket_field]: move.bucketId,\n [opts.ticket_order_field]: move.order,\n }\n : card;\n const bucket = String(shown[opts.ticket_bucket_field] ?? \"\");\n out[bucket]?.push(shown);\n }\n for (const list of Object.values(out)) list.sort(byOrder(opts.ticket_order_field));\n return out;\n}\n\nexport interface DropInput {\n /** The card. */\n id: string;\n fromBucket: string;\n /** The column's card ids before the drag (the source column). */\n fromIds: readonly string[];\n toBucket: string;\n /** The target column's card ids after the drop, the card included. */\n toIds: readonly string[];\n /** Current order of every card by id. */\n orders: ReadonlyMap<string, number | null>;\n}\n\nexport interface DropPlan {\n id: string;\n bucketId: string;\n /** The bucket changed: the update carries it. */\n moved: boolean;\n order: number;\n /** No integer is left between the neighbours: reindex the bucket first. */\n collision: boolean;\n prevId: string | null;\n nextId: string | null;\n}\n\n/**\n * Where a dropped card goes. `null` when it was dropped on its own slot (no\n * request). The order sits between the neighbours it was dropped between;\n * a neighbour without an order counts as an open end.\n */\nexport function planDrop(input: DropInput): DropPlan | null {\n const { id, fromBucket, toBucket, toIds, orders } = input;\n const at = toIds.indexOf(id);\n if (at < 0) return null;\n const moved = fromBucket !== toBucket;\n if (!moved && input.fromIds.indexOf(id) === at) return null;\n const prevId = toIds[at - 1] ?? null;\n const nextId = toIds[at + 1] ?? null;\n const prev = prevId ? (orders.get(prevId) ?? null) : null;\n const next = nextId ? (orders.get(nextId) ?? null) : null;\n return {\n id,\n bucketId: toBucket,\n moved,\n order: orderBetween(prev, next),\n collision: detectCollision(prev, next),\n prevId,\n nextId,\n };\n}\n\n/** The same drop again, with the neighbours' orders as they are after a reindex. */\nexport function replanDrop(plan: DropPlan, orders: ReadonlyMap<string, number | null>): DropPlan {\n const prev = plan.prevId ? (orders.get(plan.prevId) ?? null) : null;\n const next = plan.nextId ? (orders.get(plan.nextId) ?? null) : null;\n return { ...plan, order: orderBetween(prev, next), collision: detectCollision(prev, next) };\n}\n\nexport type AddWhere = \"top\" | \"bottom\";\n\n/** The row a quick-add inserts: first order − 100 at the top, last + 100 at the bottom. */\nexport function quickAddRow(\n opts: KanbanOptions,\n args: {\n title: string;\n boardId: string;\n bucketId: string;\n /** The column's orders, ascending. */\n orders: readonly (number | null)[];\n where: AddWhere;\n },\n): Record<string, unknown> {\n const known = args.orders.filter((o): o is number => o !== null);\n const order =\n args.where === \"top\"\n ? orderBetween(null, known[0] ?? null)\n : orderBetween(known.at(-1) ?? null, null);\n return {\n [opts.card.title_field]: args.title,\n [opts.ticket_board_field]: args.boardId,\n [opts.ticket_bucket_field]: args.bucketId,\n [opts.ticket_order_field]: order,\n };\n}\n\n/** The row `+ Add bucket` inserts, after the last column. */\nexport function newBucketRow(\n opts: KanbanOptions,\n args: { name: string; boardId: string; buckets: readonly Bucket[] },\n): Record<string, unknown> {\n const last = args.buckets\n .map((b) => b.order)\n .filter((o): o is number => o !== null)\n .at(-1);\n return {\n [opts.bucket_label_field]: args.name,\n [opts.bucket_filter_field]: args.boardId,\n [opts.bucket_order_field]: orderBetween(last ?? null, null),\n };\n}\n\nexport function boardFilter(opts: KanbanOptions, boardId: string): FilterNode {\n return { field: opts.ticket_board_field, op: \"eq\", value: boardId };\n}\n\n/** The board's cards narrowed by the data view's filter (search, chips, tree). */\nexport function cardsFilter(\n opts: KanbanOptions,\n boardId: string,\n viewFilter: FilterNode | undefined,\n): FilterNode {\n const board = boardFilter(opts, boardId);\n return viewFilter ? { and: [board, viewFilter] } : board;\n}\n\nconst PRIORITY_SCALE: readonly ColumnColor[] = [\"muted\", \"info\", \"warning\", \"danger\"];\n\n/**\n * A priority's tone from its place in the field's enum: the first value is\n * the calmest, the last the loudest. A non-enum or unknown value has none.\n */\nexport function priorityTone(value: unknown, def: FieldDef | undefined): ColumnColor | null {\n const values = def?.type === \"enum\" ? (def.values ?? []) : [];\n const i = typeof value === \"string\" ? values.indexOf(value) : -1;\n if (i < 0) return null;\n if (values.length === 1) return PRIORITY_SCALE[1] ?? null;\n const step = Math.round((i / (values.length - 1)) * (PRIORITY_SCALE.length - 1));\n return PRIORITY_SCALE[step] ?? null;\n}\n\n/**\n * The board collection: the target of the card's board field (a `lookup`),\n * or its `ref` (a `relation`, the udc-py spelling), with its label field.\n */\nexport function boardSource(\n schema: SchemaDoc,\n opts: KanbanOptions,\n): { collection: string; labelField: string } | null {\n const def = schema.fields[opts.ticket_board_field];\n const lookup = lookupOf(def);\n if (lookup) return { collection: lookup.collection, labelField: lookup.label_field };\n if (!def?.ref) return null;\n return { collection: def.ref, labelField: def.label_field ?? \"name\" };\n}\n\n/** A due date before today (local calendar day). */\nexport function isOverdue(value: unknown, today = new Date()): boolean {\n if (typeof value !== \"string\" || !/^\\d{4}-\\d{2}-\\d{2}/.test(value)) return false;\n const y = today.getFullYear();\n const m = String(today.getMonth() + 1).padStart(2, \"0\");\n const d = String(today.getDate()).padStart(2, \"0\");\n return value.slice(0, 10) < `${y}-${m}-${d}`;\n}\n\n/** Writes are off: the view says read-only, or the source cannot mutate. */\nexport function isReadOnly(opts: KanbanOptions, capabilities: { mutate: boolean }): boolean {\n return opts.permissions.read_only || !capabilities.mutate;\n}\n"],"mappings":";;AA0BA,SAAgB,QAAQ,KAAsB,OAA8B;CAC1E,MAAM,IAAI,MAAM;CAChB,OAAO,OAAO,MAAM,YAAY,OAAO,SAAS,CAAC,IAAI,IAAI;AAC3D;AAEA,IAAM,WAAW,MACf,OAAO,MAAM,YAAa,cAAoC,SAAS,CAAC;;AAG1E,SAAgB,QAAQ,OAAe;CACrC,QAAQ,GAAQ,MAAW;EACzB,MAAM,IAAI,QAAQ,GAAG,KAAK;EAC1B,MAAM,IAAI,QAAQ,GAAG,KAAK;EAC1B,IAAI,MAAM,GAAG;GACX,IAAI,MAAM,MAAM,OAAO;GACvB,IAAI,MAAM,MAAM,OAAO;GACvB,OAAO,IAAI;EACb;EACA,OAAO,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,KAAK,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,IAAI;CAC1E;AACF;AAEA,SAAgB,UAAU,MAAsB,MAA+B;CAC7E,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,KAAK,QAAQ,KAAK,kBAAkB,CAAC,CAAC,CAAC,KAAK,QAAQ;EACnE,MAAM,QAAQ,KAAK,qBAAqB,IAAI,KAAK,sBAAsB;EACvE,OAAO;GACL,IAAI,IAAI,OAAO;GACf,OAAO,OAAO,IAAI,KAAK,uBAAuB,EAAE;GAChD,OAAO,QAAQ,KAAK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AAQ,KAAK,IAAI;CAC9D,IAAI,IAAI,GAAG,OAAO;CAClB,IAAI,OAAO,WAAW,GAAG,OAAO,eAAe,MAAM;CAErD,OAAO,eADM,KAAK,MAAO,KAAK,OAAO,SAAS,MAAO,eAAe,SAAS,EACvD,MAAS;AACjC;;;;;AAMA,SAAgB,YACd,QACA,MACmD;CACnD,MAAM,MAAM,OAAO,OAAO,KAAK;CAC/B,MAAM,SAAS,SAAS,GAAG;CAC3B,IAAI,QAAQ,OAAO;EAAE,YAAY,OAAO;EAAY,YAAY,OAAO;CAAY;CACnF,IAAI,CAAC,KAAK,KAAK,OAAO;CACtB,OAAO;EAAE,YAAY,IAAI;EAAK,YAAY,IAAI,eAAe;CAAO;AACtE;;AAGA,SAAgB,UAAU,OAAgB,wBAAQ,IAAI,KAAK,GAAY;CACrE,IAAI,OAAO,UAAU,YAAY,CAAC,qBAAqB,KAAK,KAAK,GAAG,OAAO;CAC3E,MAAM,IAAI,MAAM,YAAY;CAC5B,MAAM,IAAI,OAAO,MAAM,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG;CACtD,MAAM,IAAI,OAAO,MAAM,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG;CACjD,OAAO,MAAM,MAAM,GAAG,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG;AAC3C;;AAGA,SAAgB,WAAW,MAAqB,cAA4C;CAC1F,OAAO,KAAK,YAAY,aAAa,CAAC,aAAa;AACrD"}
1
+ {"version":3,"file":"model.js","names":[],"sources":["../../src/kanban/model.ts"],"sourcesContent":["import {\n COLUMN_COLORS,\n type ColumnColor,\n detectCollision,\n type FieldDef,\n type FilterNode,\n type KanbanOptions,\n lookupOf,\n orderBetween,\n type Row,\n type SchemaDoc,\n} from \"@jsudc/core\";\n\n/*\n * The kanban's pure parts: which rows are columns and cards, where a dropped\n * card lands, what a quick-add inserts. The renderer is the glue around them.\n */\n\nexport interface Bucket {\n id: string;\n label: string;\n color: ColumnColor | null;\n order: number | null;\n row: Row;\n}\n\nexport function orderOf(row: Row | undefined, field: string): number | null {\n const v = row?.[field];\n return typeof v === \"number\" && Number.isFinite(v) ? v : null;\n}\n\nconst isColor = (v: unknown): v is ColumnColor =>\n typeof v === \"string\" && (COLUMN_COLORS as readonly string[]).includes(v);\n\n/** Ascending order, a missing order last, then the id: the server's `ORDER BY`. */\nexport function byOrder(field: string) {\n return (a: Row, b: Row) => {\n const x = orderOf(a, field);\n const y = orderOf(b, field);\n if (x !== y) {\n if (x === null) return 1;\n if (y === null) return -1;\n return x - y;\n }\n return a.__meta.id < b.__meta.id ? -1 : a.__meta.id > b.__meta.id ? 1 : 0;\n };\n}\n\nexport function bucketsOf(rows: readonly Row[], opts: KanbanOptions): Bucket[] {\n return [...rows].sort(byOrder(opts.bucket_order_field)).map((row) => {\n const color = opts.bucket_color_field ? row[opts.bucket_color_field] : null;\n return {\n id: row.__meta.id,\n label: String(row[opts.bucket_label_field] ?? \"\"),\n color: isColor(color) ? color : null,\n order: orderOf(row, opts.bucket_order_field),\n row,\n };\n });\n}\n\n/** A card move not yet confirmed by the server: drawn where it was dropped. */\nexport interface PendingMove {\n bucketId: string;\n order: number;\n}\n\n/**\n * Cards per bucket id, each column in order. `pending` overrides a card's\n * bucket and order until the server answers; a card whose bucket is not on\n * the board is left out.\n */\nexport function groupCards(\n cards: readonly Row[],\n buckets: readonly Bucket[],\n opts: KanbanOptions,\n pending: ReadonlyMap<string, PendingMove> = new Map(),\n): Record<string, Row[]> {\n const out: Record<string, Row[]> = Object.fromEntries(buckets.map((b) => [b.id, []]));\n for (const card of cards) {\n const move = pending.get(card.__meta.id);\n const shown = move\n ? {\n ...card,\n [opts.ticket_bucket_field]: move.bucketId,\n [opts.ticket_order_field]: move.order,\n }\n : card;\n const bucket = String(shown[opts.ticket_bucket_field] ?? \"\");\n out[bucket]?.push(shown);\n }\n for (const list of Object.values(out)) list.sort(byOrder(opts.ticket_order_field));\n return out;\n}\n\nexport interface DropInput {\n /** The card. */\n id: string;\n fromBucket: string;\n /** The column's card ids before the drag (the source column). */\n fromIds: readonly string[];\n toBucket: string;\n /** The target column's card ids after the drop, the card included. */\n toIds: readonly string[];\n /** Current order of every card by id. */\n orders: ReadonlyMap<string, number | null>;\n}\n\nexport interface DropPlan {\n id: string;\n bucketId: string;\n /** The bucket changed: the update carries it. */\n moved: boolean;\n order: number;\n /** No integer is left between the neighbours: reindex the bucket first. */\n collision: boolean;\n prevId: string | null;\n nextId: string | null;\n}\n\n/**\n * Where a dropped card goes. `null` when it was dropped on its own slot (no\n * request). The order sits between the neighbours it was dropped between;\n * a neighbour without an order counts as an open end.\n */\nexport function planDrop(input: DropInput): DropPlan | null {\n const { id, fromBucket, toBucket, toIds, orders } = input;\n const at = toIds.indexOf(id);\n if (at < 0) return null;\n const moved = fromBucket !== toBucket;\n if (!moved && input.fromIds.indexOf(id) === at) return null;\n const prevId = toIds[at - 1] ?? null;\n const nextId = toIds[at + 1] ?? null;\n const prev = prevId ? (orders.get(prevId) ?? null) : null;\n const next = nextId ? (orders.get(nextId) ?? null) : null;\n return {\n id,\n bucketId: toBucket,\n moved,\n order: orderBetween(prev, next),\n collision: detectCollision(prev, next),\n prevId,\n nextId,\n };\n}\n\n/** The same drop again, with the neighbours' orders as they are after a reindex. */\nexport function replanDrop(plan: DropPlan, orders: ReadonlyMap<string, number | null>): DropPlan {\n const prev = plan.prevId ? (orders.get(plan.prevId) ?? null) : null;\n const next = plan.nextId ? (orders.get(plan.nextId) ?? null) : null;\n return { ...plan, order: orderBetween(prev, next), collision: detectCollision(prev, next) };\n}\n\nexport type AddWhere = \"top\" | \"bottom\";\n\n/** The row a quick-add inserts: first order − 100 at the top, last + 100 at the bottom. */\nexport function quickAddRow(\n opts: KanbanOptions,\n args: {\n title: string;\n boardId: string;\n bucketId: string;\n /** The column's orders, ascending. */\n orders: readonly (number | null)[];\n where: AddWhere;\n },\n): Record<string, unknown> {\n const known = args.orders.filter((o): o is number => o !== null);\n const order =\n args.where === \"top\"\n ? orderBetween(null, known[0] ?? null)\n : orderBetween(known.at(-1) ?? null, null);\n return {\n [opts.card.title_field]: args.title,\n [opts.ticket_board_field]: args.boardId,\n [opts.ticket_bucket_field]: args.bucketId,\n [opts.ticket_order_field]: order,\n };\n}\n\n/** The row `+ Add bucket` inserts, after the last column. */\nexport function newBucketRow(\n opts: KanbanOptions,\n args: { name: string; boardId: string; buckets: readonly Bucket[] },\n): Record<string, unknown> {\n const last = args.buckets\n .map((b) => b.order)\n .filter((o): o is number => o !== null)\n .at(-1);\n return {\n [opts.bucket_label_field]: args.name,\n [opts.bucket_filter_field]: args.boardId,\n [opts.bucket_order_field]: orderBetween(last ?? null, null),\n };\n}\n\nexport function boardFilter(opts: KanbanOptions, boardId: string): FilterNode {\n return { field: opts.ticket_board_field, op: \"eq\", value: boardId };\n}\n\n/**\n * The board a filter pins: an `eq` on the card's board field with a string\n * value, at the root or anywhere under `and`s (never under `or` / `not`,\n * which do not pin one board). A `row_link` drill-down opens the cards with\n * exactly that filter; the board select follows it. `null` when none does.\n */\nexport function boardFromFilter(\n tree: FilterNode | null | undefined,\n boardField: string,\n): string | null {\n if (!tree) return null;\n if (\"and\" in tree) {\n for (const node of tree.and) {\n const id = boardFromFilter(node, boardField);\n if (id !== null) return id;\n }\n return null;\n }\n if (\"or\" in tree || \"not\" in tree) return null;\n return tree.field === boardField && tree.op === \"eq\" && typeof tree.value === \"string\"\n ? tree.value\n : null;\n}\n\n/** The board's cards narrowed by the data view's filter (search, chips, tree). */\nexport function cardsFilter(\n opts: KanbanOptions,\n boardId: string,\n viewFilter: FilterNode | undefined,\n): FilterNode {\n const board = boardFilter(opts, boardId);\n return viewFilter ? { and: [board, viewFilter] } : board;\n}\n\nconst PRIORITY_SCALE: readonly ColumnColor[] = [\"muted\", \"info\", \"warning\", \"danger\"];\n\n/**\n * A priority's tone from its place in the field's enum: the first value is\n * the calmest, the last the loudest. A non-enum or unknown value has none.\n */\nexport function priorityTone(value: unknown, def: FieldDef | undefined): ColumnColor | null {\n const values = def?.type === \"enum\" ? (def.values ?? []) : [];\n const i = typeof value === \"string\" ? values.indexOf(value) : -1;\n if (i < 0) return null;\n if (values.length === 1) return PRIORITY_SCALE[1] ?? null;\n const step = Math.round((i / (values.length - 1)) * (PRIORITY_SCALE.length - 1));\n return PRIORITY_SCALE[step] ?? null;\n}\n\n/**\n * The board collection: the target of the card's board field (a `lookup`),\n * or its `ref` (a `relation`, the udc-py spelling), with its label field.\n */\nexport function boardSource(\n schema: SchemaDoc,\n opts: KanbanOptions,\n): { collection: string; labelField: string } | null {\n const def = schema.fields[opts.ticket_board_field];\n const lookup = lookupOf(def);\n if (lookup) return { collection: lookup.collection, labelField: lookup.label_field };\n if (!def?.ref) return null;\n return { collection: def.ref, labelField: def.label_field ?? \"name\" };\n}\n\n/** A due date before today (local calendar day). */\nexport function isOverdue(value: unknown, today = new Date()): boolean {\n if (typeof value !== \"string\" || !/^\\d{4}-\\d{2}-\\d{2}/.test(value)) return false;\n const y = today.getFullYear();\n const m = String(today.getMonth() + 1).padStart(2, \"0\");\n const d = String(today.getDate()).padStart(2, \"0\");\n return value.slice(0, 10) < `${y}-${m}-${d}`;\n}\n\n/** Writes are off: the view says read-only, or the source cannot mutate. */\nexport function isReadOnly(opts: KanbanOptions, capabilities: { mutate: boolean }): boolean {\n return opts.permissions.read_only || !capabilities.mutate;\n}\n"],"mappings":";;AA0BA,SAAgB,QAAQ,KAAsB,OAA8B;CAC1E,MAAM,IAAI,MAAM;CAChB,OAAO,OAAO,MAAM,YAAY,OAAO,SAAS,CAAC,IAAI,IAAI;AAC3D;AAEA,IAAM,WAAW,MACf,OAAO,MAAM,YAAa,cAAoC,SAAS,CAAC;;AAG1E,SAAgB,QAAQ,OAAe;CACrC,QAAQ,GAAQ,MAAW;EACzB,MAAM,IAAI,QAAQ,GAAG,KAAK;EAC1B,MAAM,IAAI,QAAQ,GAAG,KAAK;EAC1B,IAAI,MAAM,GAAG;GACX,IAAI,MA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,IAAI;EAAK,YAAY,IAAI,eAAe;CAAO;AACtE;;AAGA,SAAgB,UAAU,OAAgB,wBAAQ,IAAI,KAAK,GAAY;CACrE,IAAI,OAAO,UAAU,YAAY,CAAC,qBAAqB,KAAK,KAAK,GAAG,OAAO;CAC3E,MAAM,IAAI,MAAM,YAAY;CAC5B,MAAM,IAAI,OAAO,MAAM,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG;CACtD,MAAM,IAAI,OAAO,MAAM,QAAQ,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG;CACjD,OAAO,MAAM,MAAM,GAAG,EAAE,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG;AAC3C;;AAGA,SAAgB,WAAW,MAAqB,cAA4C;CAC1F,OAAO,KAAK,YAAY,aAAa,CAAC,aAAa;AACrD"}
@@ -7,7 +7,11 @@ export interface BoardChoice {
7
7
  export interface KanbanBoardState {
8
8
  opts: KanbanOptions | undefined;
9
9
  boards: BoardChoice[];
10
- /** `?board=` when it names a board, else the first board; `null` while loading. */
10
+ /**
11
+ * `?board=` when it names a board, else the board an `eq` on
12
+ * `ticket_board_field` in `?f=` names (a `row_link` drill-down), else the
13
+ * first board; `null` while loading.
14
+ */
11
15
  boardId: string | null;
12
16
  setBoard: (id: string) => void;
13
17
  isLoading: boolean;
@@ -1,6 +1,7 @@
1
+ import { PARAM, decodeFilterParam } from "../data-view/urlState.js";
1
2
  import { useUdcCollection, useUdcDescribe } from "../udc/hooks.js";
2
3
  import { useUrlSearchParams } from "../url-state/UrlState.js";
3
- import { boardSource } from "./model.js";
4
+ import { boardFromFilter, boardSource } from "./model.js";
4
5
  import { useCallback, useMemo } from "react";
5
6
  // src/kanban/useKanbanBoard.ts
6
7
  var BOARD_PARAM = "board";
@@ -30,10 +31,13 @@ function useKanbanBoard(describe) {
30
31
  })), [list.rows, source?.labelField]);
31
32
  const [params, setParams] = useUrlSearchParams();
32
33
  const wanted = params.get(BOARD_PARAM);
34
+ const fParam = params.get(PARAM.filter);
35
+ const filtered = useMemo(() => opts ? boardFromFilter(decodeFilterParam(fParam), opts.ticket_board_field) : null, [fParam, opts]);
36
+ const known = (id) => id ? boards.find((b) => b.id === id)?.id : void 0;
33
37
  return {
34
38
  opts,
35
39
  boards,
36
- boardId: source ? boards.find((b) => b.id === wanted)?.id ?? boards[0]?.id ?? null : wanted,
40
+ boardId: source ? known(wanted) ?? known(filtered) ?? boards[0]?.id ?? null : wanted ?? filtered,
37
41
  setBoard: useCallback((id) => setParams((prev) => {
38
42
  const next = new URLSearchParams(prev);
39
43
  next.set(BOARD_PARAM, id);
@@ -1 +1 @@
1
- {"version":3,"file":"useKanbanBoard.js","names":[],"sources":["../../src/kanban/useKanbanBoard.ts"],"sourcesContent":["import type { DescribeResponse, KanbanOptions } from \"@jsudc/core\";\nimport { useCallback, useMemo } from \"react\";\nimport { useUdcCollection, useUdcDescribe } from \"../udc/hooks.js\";\nimport { useUrlSearchParams } from \"../url-state/UrlState.js\";\nimport { boardSource } from \"./model.js\";\n\nexport const BOARD_PARAM = \"board\";\nconst MAX_BOARDS = 200;\n\nexport interface BoardChoice {\n id: string;\n label: string;\n}\n\nexport interface KanbanBoardState {\n opts: KanbanOptions | undefined;\n boards: BoardChoice[];\n /** `?board=` when it names a board, else the first board; `null` while loading. */\n boardId: string | null;\n setBoard: (id: string) => void;\n isLoading: boolean;\n}\n\n/**\n * The board on screen and the boards to switch between. The board collection\n * is the `ref` of the card's board field; it is listed in its `order` field\n * when it has the bucket order's name, else by label. The toolbar switcher\n * and the renderer both call this; they share the query.\n */\nexport function useKanbanBoard(describe: DescribeResponse): KanbanBoardState {\n const opts = describe.view.kanban_options;\n const source = opts ? boardSource(describe.schema, opts) : null;\n const boardsDescribe = useUdcDescribe(source?.collection ?? \"\");\n const boardFields = boardsDescribe.data?.schema.fields;\n const sortField =\n opts && boardFields?.[opts.bucket_order_field] ? opts.bucket_order_field : source?.labelField;\n\n const list = useUdcCollection({\n collection: source?.collection ?? \"\",\n sort: sortField ? [{ field: sortField }] : [],\n mode: \"pages\",\n pageLimit: MAX_BOARDS,\n enabled: source !== null && boardsDescribe.isSuccess,\n });\n\n const boards = useMemo(\n () =>\n list.rows.map((r) => ({\n id: r.__meta.id,\n label: String(r[source?.labelField ?? \"name\"] ?? r.__meta.id),\n })),\n [list.rows, source?.labelField],\n );\n\n const [params, setParams] = useUrlSearchParams();\n const wanted = params.get(BOARD_PARAM);\n // Without a board collection the URL alone names the board.\n const boardId = source\n ? (boards.find((b) => b.id === wanted)?.id ?? boards[0]?.id ?? null)\n : wanted;\n\n const setBoard = useCallback(\n (id: string) =>\n setParams(\n (prev) => {\n const next = new URLSearchParams(prev);\n next.set(BOARD_PARAM, id);\n return next;\n },\n { replace: true },\n ),\n [setParams],\n );\n\n return {\n opts,\n boards,\n boardId,\n setBoard,\n isLoading: source !== null && (boardsDescribe.isLoading || list.isLoading),\n };\n}\n"],"mappings":";;;;;AAMA,IAAa,cAAc;AAC3B,IAAM,aAAa;;;;;;;AAsBnB,SAAgB,eAAe,UAA8C;CAC3E,MAAM,OAAO,SAAS,KAAK;CAC3B,MAAM,SAAS,OAAO,YAAY,SAAS,QAAQ,IAAI,IAAI;CAC3D,MAAM,iBAAiB,eAAe,QAAQ,cAAc,EAAE;CAC9D,MAAM,cAAc,eAAe,MAAM,OAAO;CAChD,MAAM,YACJ,QAAQ,cAAc,KAAK,sBAAsB,KAAK,qBAAqB,QAAQ;CAErF,MAAM,OAAO,iBAAiB;EAC5B,YAAY,QAAQ,cAAc;EAClC,MAAM,YAAY,CAAC,EAAE,OAAO,UAAU,CAAC,IAAI,CAAC;EAC5C,MAAM;EACN,WAAW;EACX,SAAS,WAAW,QAAQ,eAAe;CAC7C,CAAC;CAED,MAAM,SAAS,cAEX,KAAK,KAAK,KAAK,OAAO;EACpB,IAAI,EAAE,OAAO;EACb,OAAO,OAAO,EAAE,QAAQ,cAAc,WAAW,EAAE,OAAO,EAAE;CAC9D,EAAE,GACJ,CAAC,KAAK,MAAM,QAAQ,UAAU,CAChC;CAEA,MAAM,CAAC,QAAQ,aAAa,mBAAmB;CAC/C,MAAM,SAAS,OAAO,IAAI,WAAW;CAmBrC,OAAO;EACL;EACA;EACA,SApBc,SACX,OAAO,MAAM,MAAM,EAAE,OAAO,MAAM,CAAC,EAAE,MAAM,OAAO,EAAE,EAAE,MAAM,OAC7D;EAmBF,UAjBe,aACd,OACC,WACG,SAAS;GACR,MAAM,OAAO,IAAI,gBAAgB,IAAI;GACrC,KAAK,IAAI,aAAa,EAAE;GACxB,OAAO;EACT,GACA,EAAE,SAAS,KAAK,CAClB,GACF,CAAC,SAAS,CAOV;EACA,WAAW,WAAW,SAAS,eAAe,aAAa,KAAK;CAClE;AACF"}
1
+ {"version":3,"file":"useKanbanBoard.js","names":[],"sources":["../../src/kanban/useKanbanBoard.ts"],"sourcesContent":["import type { DescribeResponse, KanbanOptions } from \"@jsudc/core\";\nimport { useCallback, useMemo } from \"react\";\nimport { decodeFilterParam, PARAM } from \"../data-view/urlState.js\";\nimport { useUdcCollection, useUdcDescribe } from \"../udc/hooks.js\";\nimport { useUrlSearchParams } from \"../url-state/UrlState.js\";\nimport { boardFromFilter, boardSource } from \"./model.js\";\n\nexport const BOARD_PARAM = \"board\";\nconst MAX_BOARDS = 200;\n\nexport interface BoardChoice {\n id: string;\n label: string;\n}\n\nexport interface KanbanBoardState {\n opts: KanbanOptions | undefined;\n boards: BoardChoice[];\n /**\n * `?board=` when it names a board, else the board an `eq` on\n * `ticket_board_field` in `?f=` names (a `row_link` drill-down), else the\n * first board; `null` while loading.\n */\n boardId: string | null;\n setBoard: (id: string) => void;\n isLoading: boolean;\n}\n\n/**\n * The board on screen and the boards to switch between. The board collection\n * is the `ref` of the card's board field; it is listed in its `order` field\n * when it has the bucket order's name, else by label. The toolbar switcher\n * and the renderer both call this; they share the query.\n */\nexport function useKanbanBoard(describe: DescribeResponse): KanbanBoardState {\n const opts = describe.view.kanban_options;\n const source = opts ? boardSource(describe.schema, opts) : null;\n const boardsDescribe = useUdcDescribe(source?.collection ?? \"\");\n const boardFields = boardsDescribe.data?.schema.fields;\n const sortField =\n opts && boardFields?.[opts.bucket_order_field] ? opts.bucket_order_field : source?.labelField;\n\n const list = useUdcCollection({\n collection: source?.collection ?? \"\",\n sort: sortField ? [{ field: sortField }] : [],\n mode: \"pages\",\n pageLimit: MAX_BOARDS,\n enabled: source !== null && boardsDescribe.isSuccess,\n });\n\n const boards = useMemo(\n () =>\n list.rows.map((r) => ({\n id: r.__meta.id,\n label: String(r[source?.labelField ?? \"name\"] ?? r.__meta.id),\n })),\n [list.rows, source?.labelField],\n );\n\n const [params, setParams] = useUrlSearchParams();\n const wanted = params.get(BOARD_PARAM);\n const fParam = params.get(PARAM.filter);\n // A drill-down (`?f=board eq X`, no `?board=`) lands on board X, not on the first one.\n const filtered = useMemo(\n () => (opts ? boardFromFilter(decodeFilterParam(fParam), opts.ticket_board_field) : null),\n [fParam, opts],\n );\n const known = (id: string | null) => (id ? boards.find((b) => b.id === id)?.id : undefined);\n // Without a board collection the URL alone names the board.\n const boardId = source\n ? (known(wanted) ?? known(filtered) ?? boards[0]?.id ?? null)\n : (wanted ?? filtered);\n\n const setBoard = useCallback(\n (id: string) =>\n setParams(\n (prev) => {\n const next = new URLSearchParams(prev);\n next.set(BOARD_PARAM, id);\n return next;\n },\n { replace: true },\n ),\n [setParams],\n );\n\n return {\n opts,\n boards,\n boardId,\n setBoard,\n isLoading: source !== null && (boardsDescribe.isLoading || list.isLoading),\n };\n}\n"],"mappings":";;;;;;AAOA,IAAa,cAAc;AAC3B,IAAM,aAAa;;;;;;;AA0BnB,SAAgB,eAAe,UAA8C;CAC3E,MAAM,OAAO,SAAS,KAAK;CAC3B,MAAM,SAAS,OAAO,YAAY,SAAS,QAAQ,IAAI,IAAI;CAC3D,MAAM,iBAAiB,eAAe,QAAQ,cAAc,EAAE;CAC9D,MAAM,cAAc,eAAe,MAAM,OAAO;CAChD,MAAM,YACJ,QAAQ,cAAc,KAAK,sBAAsB,KAAK,qBAAqB,QAAQ;CAErF,MAAM,OAAO,iBAAiB;EAC5B,YAAY,QAAQ,cAAc;EAClC,MAAM,YAAY,CAAC,EAAE,OAAO,UAAU,CAAC,IAAI,CAAC;EAC5C,MAAM;EACN,WAAW;EACX,SAAS,WAAW,QAAQ,eAAe;CAC7C,CAAC;CAED,MAAM,SAAS,cAEX,KAAK,KAAK,KAAK,OAAO;EACpB,IAAI,EAAE,OAAO;EACb,OAAO,OAAO,EAAE,QAAQ,cAAc,WAAW,EAAE,OAAO,EAAE;CAC9D,EAAE,GACJ,CAAC,KAAK,MAAM,QAAQ,UAAU,CAChC;CAEA,MAAM,CAAC,QAAQ,aAAa,mBAAmB;CAC/C,MAAM,SAAS,OAAO,IAAI,WAAW;CACrC,MAAM,SAAS,OAAO,IAAI,MAAM,MAAM;CAEtC,MAAM,WAAW,cACR,OAAO,gBAAgB,kBAAkB,MAAM,GAAG,KAAK,kBAAkB,IAAI,MACpF,CAAC,QAAQ,IAAI,CACf;CACA,MAAM,SAAS,OAAuB,KAAK,OAAO,MAAM,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,KAAA;CAmBjF,OAAO;EACL;EACA;EACA,SApBc,SACX,MAAM,MAAM,KAAK,MAAM,QAAQ,KAAK,OAAO,EAAE,EAAE,MAAM,OACrD,UAAU;EAmBb,UAjBe,aACd,OACC,WACG,SAAS;GACR,MAAM,OAAO,IAAI,gBAAgB,IAAI;GACrC,KAAK,IAAI,aAAa,EAAE;GACxB,OAAO;EACT,GACA,EAAE,SAAS,KAAK,CAClB,GACF,CAAC,SAAS,CAOV;EACA,WAAW,WAAW,SAAS,eAAe,aAAa,KAAK;CAClE;AACF"}
@@ -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
  /**
@@ -113,7 +113,7 @@ function LookupCombobox({ def, lookup, initial, saving, onCommit, onCancel }) {
113
113
  role: "listbox",
114
114
  "aria-multiselectable": multi || void 0,
115
115
  "data-testid": "lookup-options",
116
- className: "udc-scroll-thin udc:absolute udc:top-full udc:-left-1.5 udc:z-30 udc:mt-1 udc:max-h-64 udc:w-64 udc:overflow-y-auto udc:rounded-md udc:border udc:border-border udc:bg-popover udc:p-1 udc:text-popover-foreground udc:shadow-md",
116
+ className: "udc-scroll-thin udc:absolute udc:top-full udc:-left-1.5 udc:z-30 udc:mt-1 udc:max-h-64 udc:w-64 udc:overflow-y-auto udc:rounded-md udc:border udc:border-border udc:bg-surface-raised udc:p-1 udc:text-foreground udc:shadow-md",
117
117
  children: [rows.map((o, i) => {
118
118
  const selected = o ? multi ? pickedKeys.has(o.key) : keyString(initial) === o.key : false;
119
119
  return /* @__PURE__ */ jsx("div", {