@jsudc/react 0.1.1 → 0.2.1

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 (262) hide show
  1. package/README.md +409 -73
  2. package/dist/all.d.ts +9 -0
  3. package/dist/all.js +14 -0
  4. package/dist/all.js.map +1 -0
  5. package/dist/calendar/CalendarRenderer.d.ts +1 -3
  6. package/dist/calendar/CalendarRenderer.js +17 -46
  7. package/dist/calendar/CalendarRenderer.js.map +1 -1
  8. package/dist/calendar/EventBlock.d.ts +1 -1
  9. package/dist/calendar/EventBlock.js +6 -6
  10. package/dist/calendar/EventBlock.js.map +1 -1
  11. package/dist/calendar/EventDetail.d.ts +1 -1
  12. package/dist/calendar/EventDetail.js +19 -19
  13. package/dist/calendar/EventDetail.js.map +1 -1
  14. package/dist/calendar/MonthGrid.d.ts +2 -2
  15. package/dist/calendar/MonthGrid.js +15 -14
  16. package/dist/calendar/MonthGrid.js.map +1 -1
  17. package/dist/calendar/TimeGrid.d.ts +2 -2
  18. package/dist/calendar/TimeGrid.js +27 -26
  19. package/dist/calendar/TimeGrid.js.map +1 -1
  20. package/dist/calendar/index.d.ts +4 -0
  21. package/dist/calendar/model.d.ts +1 -1
  22. package/dist/calendar/model.js.map +1 -1
  23. package/dist/calendar/useCalendarUrl.d.ts +13 -0
  24. package/dist/calendar/useCalendarUrl.js +35 -0
  25. package/dist/calendar/useCalendarUrl.js.map +1 -0
  26. package/dist/calendar.d.ts +1 -0
  27. package/dist/calendar.js +22 -0
  28. package/dist/calendar.js.map +1 -0
  29. package/dist/cards/CardRenderer.d.ts +3 -3
  30. package/dist/cards/CardRenderer.js +59 -56
  31. package/dist/cards/CardRenderer.js.map +1 -1
  32. package/dist/cards/index.d.ts +4 -0
  33. package/dist/cards.d.ts +1 -0
  34. package/dist/cards.js +15 -0
  35. package/dist/cards.js.map +1 -0
  36. package/dist/chart/ChartRenderer.d.ts +1 -1
  37. package/dist/chart/ChartRenderer.js +33 -31
  38. package/dist/chart/ChartRenderer.js.map +1 -1
  39. package/dist/chart/ChartWindowControl.d.ts +2 -2
  40. package/dist/chart/ChartWindowControl.js +17 -13
  41. package/dist/chart/ChartWindowControl.js.map +1 -1
  42. package/dist/chart/index.d.ts +7 -0
  43. package/dist/chart/model.js +7 -2
  44. package/dist/chart/model.js.map +1 -1
  45. package/dist/chart/useChartWindow.d.ts +1 -1
  46. package/dist/chart/useChartWindow.js +2 -2
  47. package/dist/chart/useChartWindow.js.map +1 -1
  48. package/dist/chart/window.d.ts +1 -1
  49. package/dist/chart/window.js +4 -1
  50. package/dist/chart/window.js.map +1 -1
  51. package/dist/chart.d.ts +1 -0
  52. package/dist/chart.js +18 -0
  53. package/dist/chart.js.map +1 -0
  54. package/dist/components/ui/button.d.ts +9 -9
  55. package/dist/components/ui/button.js +11 -11
  56. package/dist/components/ui/button.js.map +1 -1
  57. package/dist/components/ui/checkbox.js +5 -5
  58. package/dist/components/ui/checkbox.js.map +1 -1
  59. package/dist/components/ui/dialog.d.ts +1 -1
  60. package/dist/components/ui/dialog.js +12 -12
  61. package/dist/components/ui/dialog.js.map +1 -1
  62. package/dist/components/ui/dropdown-menu.js +5 -5
  63. package/dist/components/ui/dropdown-menu.js.map +1 -1
  64. package/dist/components/ui/input.js +2 -2
  65. package/dist/components/ui/input.js.map +1 -1
  66. package/dist/components/ui/misc.js +3 -3
  67. package/dist/components/ui/misc.js.map +1 -1
  68. package/dist/components/ui/popover.js +2 -2
  69. package/dist/components/ui/popover.js.map +1 -1
  70. package/dist/components/ui/segmented.d.ts +2 -9
  71. package/dist/components/ui/segmented.js +4 -4
  72. package/dist/components/ui/segmented.js.map +1 -1
  73. package/dist/components/ui/select.d.ts +2 -4
  74. package/dist/components/ui/select.js +10 -10
  75. package/dist/components/ui/select.js.map +1 -1
  76. package/dist/components/ui/toast.d.ts +2 -6
  77. package/dist/components/ui/toast.js +14 -14
  78. package/dist/components/ui/toast.js.map +1 -1
  79. package/dist/components/ui/tooltip.js +2 -2
  80. package/dist/components/ui/tooltip.js.map +1 -1
  81. package/dist/data-view/DocTab.js +2 -2
  82. package/dist/data-view/DocTab.js.map +1 -1
  83. package/dist/data-view/FilePreview.js +9 -9
  84. package/dist/data-view/FilePreview.js.map +1 -1
  85. package/dist/data-view/FilterBuilder.js +30 -31
  86. package/dist/data-view/FilterBuilder.js.map +1 -1
  87. package/dist/data-view/FilterChips.d.ts +1 -1
  88. package/dist/data-view/FilterChips.js +30 -29
  89. package/dist/data-view/FilterChips.js.map +1 -1
  90. package/dist/data-view/FolderBar.js +8 -8
  91. package/dist/data-view/FolderBar.js.map +1 -1
  92. package/dist/data-view/FolderEntry.d.ts +1 -1
  93. package/dist/data-view/FolderEntry.js +4 -4
  94. package/dist/data-view/FolderEntry.js.map +1 -1
  95. package/dist/data-view/Freshness.js +9 -8
  96. package/dist/data-view/Freshness.js.map +1 -1
  97. package/dist/data-view/SearchBox.js +9 -9
  98. package/dist/data-view/SearchBox.js.map +1 -1
  99. package/dist/data-view/SourceTab.js +26 -25
  100. package/dist/data-view/SourceTab.js.map +1 -1
  101. package/dist/data-view/UdcDataView.d.ts +6 -2
  102. package/dist/data-view/UdcDataView.js +36 -37
  103. package/dist/data-view/UdcDataView.js.map +1 -1
  104. package/dist/data-view/compose.d.ts +1 -1
  105. package/dist/data-view/compose.js.map +1 -1
  106. package/dist/data-view/urlState.d.ts +1 -1
  107. package/dist/data-view/urlState.js.map +1 -1
  108. package/dist/data-view/useDataViewState.d.ts +5 -2
  109. package/dist/data-view/useDataViewState.js +15 -5
  110. package/dist/data-view/useDataViewState.js.map +1 -1
  111. package/dist/headless.d.ts +31 -0
  112. package/dist/headless.js +31 -0
  113. package/dist/i18n/i18n.d.ts +1 -1
  114. package/dist/i18n/i18n.js +1 -1
  115. package/dist/i18n/i18n.js.map +1 -1
  116. package/dist/i18n/translations.js +8 -0
  117. package/dist/i18n/translations.js.map +1 -1
  118. package/dist/icons/resolve.js.map +1 -1
  119. package/dist/index.d.ts +19 -27
  120. package/dist/index.js +11 -16
  121. package/dist/kanban/CardDetailDialog.js +8 -7
  122. package/dist/kanban/CardDetailDialog.js.map +1 -1
  123. package/dist/kanban/KanbanBoardSwitcher.js +4 -4
  124. package/dist/kanban/KanbanBoardSwitcher.js.map +1 -1
  125. package/dist/kanban/KanbanCard.js +46 -45
  126. package/dist/kanban/KanbanCard.js.map +1 -1
  127. package/dist/kanban/KanbanColumn.d.ts +1 -1
  128. package/dist/kanban/KanbanColumn.js +22 -21
  129. package/dist/kanban/KanbanColumn.js.map +1 -1
  130. package/dist/kanban/KanbanRenderer.d.ts +1 -1
  131. package/dist/kanban/KanbanRenderer.js +14 -14
  132. package/dist/kanban/KanbanRenderer.js.map +1 -1
  133. package/dist/kanban/index.d.ts +5 -0
  134. package/dist/kanban/persist.d.ts +2 -2
  135. package/dist/kanban/persist.js.map +1 -1
  136. package/dist/kanban/useKanbanBoard.js +2 -2
  137. package/dist/kanban/useKanbanBoard.js.map +1 -1
  138. package/dist/kanban.d.ts +1 -0
  139. package/dist/kanban.js +17 -0
  140. package/dist/kanban.js.map +1 -0
  141. package/dist/lib/storage.d.ts +7 -0
  142. package/dist/lib/storage.js +24 -0
  143. package/dist/lib/storage.js.map +1 -0
  144. package/dist/lib/theme.js +1 -1
  145. package/dist/lib/theme.js.map +1 -1
  146. package/dist/lib/utils.d.ts +2 -7
  147. package/dist/lib/utils.js +4 -21
  148. package/dist/lib/utils.js.map +1 -1
  149. package/dist/map/MapRenderer.d.ts +1 -1
  150. package/dist/map/MapRenderer.js +19 -19
  151. package/dist/map/MapRenderer.js.map +1 -1
  152. package/dist/map/index.d.ts +4 -0
  153. package/dist/map/model.js +4 -1
  154. package/dist/map/model.js.map +1 -1
  155. package/dist/map.d.ts +1 -0
  156. package/dist/map.js +15 -0
  157. package/dist/map.js.map +1 -0
  158. package/dist/react-router/UdcReactRouterUrlState.d.ts +10 -0
  159. package/dist/react-router/UdcReactRouterUrlState.js +35 -0
  160. package/dist/react-router/UdcReactRouterUrlState.js.map +1 -0
  161. package/dist/react-router/index.d.ts +1 -0
  162. package/dist/react-router.d.ts +1 -0
  163. package/dist/react-router.js +1 -0
  164. package/dist/renderers/AllRowsStatus.d.ts +1 -1
  165. package/dist/renderers/AllRowsStatus.js +5 -5
  166. package/dist/renderers/AllRowsStatus.js.map +1 -1
  167. package/dist/renderers/context.d.ts +11 -0
  168. package/dist/renderers/context.js +15 -0
  169. package/dist/renderers/context.js.map +1 -0
  170. package/dist/renderers/registry.d.ts +16 -12
  171. package/dist/renderers/registry.js +24 -87
  172. package/dist/renderers/registry.js.map +1 -1
  173. package/dist/renderers/types.d.ts +11 -4
  174. package/dist/renderers/types.js.map +1 -1
  175. package/dist/schema-editor/ColumnHeaderMenu.d.ts +1 -1
  176. package/dist/schema-editor/ColumnHeaderMenu.js +6 -5
  177. package/dist/schema-editor/ColumnHeaderMenu.js.map +1 -1
  178. package/dist/schema-editor/DeleteFieldDialog.js +13 -13
  179. package/dist/schema-editor/DeleteFieldDialog.js.map +1 -1
  180. package/dist/schema-editor/FieldFormDialog.js +32 -33
  181. package/dist/schema-editor/FieldFormDialog.js.map +1 -1
  182. package/dist/schema-editor/TagInput.js +6 -6
  183. package/dist/schema-editor/TagInput.js.map +1 -1
  184. package/dist/schema-editor/fieldForm.js +2 -1
  185. package/dist/schema-editor/fieldForm.js.map +1 -1
  186. package/dist/schema-editor/index.d.ts +6 -0
  187. package/dist/schema-editor/useSchemaEditor.d.ts +1 -1
  188. package/dist/schema-editor/useSchemaEditor.js +2 -2
  189. package/dist/schema-editor/useSchemaEditor.js.map +1 -1
  190. package/dist/schema-editor.d.ts +1 -0
  191. package/dist/schema-editor.js +7 -0
  192. package/dist/styles.css +1 -1
  193. package/dist/table/CellEditor.js +10 -9
  194. package/dist/table/CellEditor.js.map +1 -1
  195. package/dist/table/Pager.js +10 -10
  196. package/dist/table/Pager.js.map +1 -1
  197. package/dist/table/TableRenderer.d.ts +4 -4
  198. package/dist/table/TableRenderer.js +40 -40
  199. package/dist/table/TableRenderer.js.map +1 -1
  200. package/dist/table/cells.d.ts +2 -24
  201. package/dist/table/cells.js +20 -132
  202. package/dist/table/cells.js.map +1 -1
  203. package/dist/table/format.d.ts +24 -0
  204. package/dist/table/format.js +117 -0
  205. package/dist/table/format.js.map +1 -0
  206. package/dist/table/index.d.ts +6 -0
  207. package/dist/table/sparkline.js +6 -6
  208. package/dist/table/sparkline.js.map +1 -1
  209. package/dist/table/states.d.ts +7 -0
  210. package/dist/table/states.js +28 -13
  211. package/dist/table/states.js.map +1 -1
  212. package/dist/table/style.js +13 -13
  213. package/dist/table/style.js.map +1 -1
  214. package/dist/table/transforms.js.map +1 -1
  215. package/dist/table/useInfiniteSentinel.d.ts +1 -1
  216. package/dist/table/useInfiniteSentinel.js.map +1 -1
  217. package/dist/table.d.ts +1 -0
  218. package/dist/table.js +18 -0
  219. package/dist/table.js.map +1 -0
  220. package/dist/time/timezone.d.ts +1 -1
  221. package/dist/time/timezone.js +4 -8
  222. package/dist/time/timezone.js.map +1 -1
  223. package/dist/tokens.css +49 -27
  224. package/dist/tree/TreeNode.js +26 -25
  225. package/dist/tree/TreeNode.js.map +1 -1
  226. package/dist/tree/TreeRenderer.d.ts +1 -1
  227. package/dist/tree/TreeRenderer.js +16 -16
  228. package/dist/tree/TreeRenderer.js.map +1 -1
  229. package/dist/tree/expand.js +1 -1
  230. package/dist/tree/expand.js.map +1 -1
  231. package/dist/tree/index.d.ts +4 -0
  232. package/dist/tree.d.ts +1 -0
  233. package/dist/tree.js +15 -0
  234. package/dist/tree.js.map +1 -0
  235. package/dist/udc/client.d.ts +11 -0
  236. package/dist/udc/client.js +30 -0
  237. package/dist/udc/client.js.map +1 -0
  238. package/dist/udc/hooks.d.ts +3 -3
  239. package/dist/udc/hooks.js +1 -1
  240. package/dist/udc/hooks.js.map +1 -1
  241. package/dist/udc/provider.d.ts +15 -10
  242. package/dist/udc/provider.js +20 -27
  243. package/dist/udc/provider.js.map +1 -1
  244. package/dist/ui-kit/context.d.ts +11 -0
  245. package/dist/ui-kit/context.js +19 -0
  246. package/dist/ui-kit/context.js.map +1 -0
  247. package/dist/ui-kit/default.d.ts +3 -0
  248. package/dist/ui-kit/default.js +45 -0
  249. package/dist/ui-kit/default.js.map +1 -0
  250. package/dist/ui-kit/index.d.ts +2 -0
  251. package/dist/ui-kit/types.d.ts +227 -0
  252. package/dist/ui-kit/ui.d.ts +12 -0
  253. package/dist/ui.d.ts +1 -0
  254. package/dist/ui.js +13 -0
  255. package/dist/url-state/UrlState.d.ts +20 -0
  256. package/dist/url-state/UrlState.js +27 -0
  257. package/dist/url-state/UrlState.js.map +1 -0
  258. package/dist/url-state/adapter.d.ts +24 -0
  259. package/dist/url-state/adapter.js +33 -0
  260. package/dist/url-state/adapter.js.map +1 -0
  261. package/dist/url-state/index.d.ts +2 -0
  262. package/package.json +77 -5
@@ -1,6 +1,6 @@
1
1
  import type { SchemaDoc } from "@jsudc/core";
2
2
  import { type ReactNode } from "react";
3
- import { type BuiltinLocale, type Locale, type Term } from "./translations";
3
+ import { type BuiltinLocale, type Locale, type Term } from "./translations.js";
4
4
  export declare const LOCALE_STORAGE_KEY = "udc-locale";
5
5
  /** The BCP 47 tag `Intl` formats numbers and dates with, per built-in locale. */
6
6
  export declare const INTL_LOCALE: Record<BuiltinLocale, string>;
package/dist/i18n/i18n.js CHANGED
@@ -1,4 +1,4 @@
1
- import { humanize, storage } from "../lib/utils.js";
1
+ import { humanize, storage } from "../lib/storage.js";
2
2
  import { LOCALES, TRANSLATIONS } from "./translations.js";
3
3
  import { createContext, useCallback, useContext, useMemo, useState } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","names":[],"sources":["../../src/i18n/i18n.tsx"],"sourcesContent":["import type { SchemaDoc } from \"@jsudc/core\";\nimport { createContext, type ReactNode, useCallback, useContext, useMemo, useState } from \"react\";\nimport { humanize, storage } from \"../lib/utils\";\nimport { type BuiltinLocale, LOCALES, type Locale, type Term, TRANSLATIONS } from \"./translations\";\n\nexport const LOCALE_STORAGE_KEY = \"udc-locale\";\n\n/** The BCP 47 tag `Intl` formats numbers and dates with, per built-in locale. */\nexport const INTL_LOCALE: Record<BuiltinLocale, string> = { en: \"en-US\", sr: \"sr-Latn-RS\" };\n\n/** `Intl`'s tag for a locale: the built-in ones are mapped, any other is used as it is. */\nexport function intlLocaleOf(locale: Locale): string {\n return (INTL_LOCALE as Record<string, string>)[locale] ?? locale;\n}\n\nexport type Vars = Record<string, string | number>;\n\nfunction fill(s: string, vars: Vars | undefined): string {\n return vars ? s.replace(/\\{(\\w+)\\}/g, (m, k: string) => String(vars[k] ?? m)) : s;\n}\n\n/** Sections of terms where a locale may be missing: runtime terms (field labels from the schema), a host's messages. */\nexport type Overlay = Record<string, Record<string, Partial<Term>>>;\n\n/**\n * What a host passes to `<UdcI18nProvider messages>`: its own sections\n * (`COLLECTIONS`, `TBL_<COLLECTION>`, its chrome), overrides of library terms\n * (`APP.RETRY.en`), and strings in locales the library does not ship (`de`).\n */\nexport type Messages = Overlay;\n\n/** `base` with `layers` over it, term by term and locale by locale: the later layer wins. */\nexport function mergeMessages(base: Overlay, ...layers: (Overlay | undefined)[]): Overlay {\n const out: Overlay = { ...base };\n for (const layer of layers) {\n if (!layer) continue;\n for (const [section, terms] of Object.entries(layer)) {\n const s = section.toUpperCase();\n const merged = { ...out[s] };\n for (const [term, entry] of Object.entries(terms)) {\n const k = term.toUpperCase();\n merged[k] = { ...merged[k], ...entry };\n }\n out[s] = merged;\n }\n }\n return out;\n}\n\n/** Every locale a dictionary has at least one string in. */\nexport function messageLocales(messages: Overlay): Locale[] {\n const found = new Set<string>();\n for (const terms of Object.values(messages))\n for (const entry of Object.values(terms)) for (const l of Object.keys(entry)) found.add(l);\n return [...found];\n}\n\n/**\n * The translation of `SECTION.TERM`, or `null` when neither the locale nor\n * `en` has one. An `overlay` entry wins over the static map, locale by locale.\n */\nexport function lookup(\n translations: Overlay,\n locale: Locale,\n section: string,\n term: string,\n overlay?: Overlay,\n): string | null {\n const s = section.toUpperCase();\n const k = term.toUpperCase();\n const extra = overlay?.[s]?.[k];\n const entry = translations[s]?.[k];\n return extra?.[locale] || entry?.[locale] || extra?.en || entry?.en || null;\n}\n\n/** `t` for a fixed locale; a missing term falls back to the humanised term (`revenue_eur` → `Revenue eur`). */\nexport function makeT(locale: Locale, translations: Overlay = TRANSLATIONS, overlay?: Overlay) {\n return (section: string, term: string, vars?: Vars): string =>\n fill(lookup(translations, locale, section, term, overlay) ?? humanize(term), vars);\n}\n\n/**\n * The labels a schema's fields carry, as overlay terms. `fielddef.label` is\n * `{en, sr}` (what the field form writes) or a plain string for every locale.\n */\nexport function schemaLabelTerms(\n schema: SchemaDoc,\n locales: readonly Locale[] = LOCALES,\n): Record<string, Partial<Term>> {\n const out: Record<string, Partial<Term>> = {};\n for (const [name, def] of Object.entries(schema.fields)) {\n const label = (def as { label?: unknown }).label;\n const term: Partial<Term> = {};\n if (typeof label === \"string\" && label.trim()) {\n for (const l of locales) term[l] = label.trim();\n } else if (label && typeof label === \"object\") {\n for (const l of locales) {\n const v = (label as Record<string, unknown>)[l];\n if (typeof v === \"string\" && v.trim()) term[l] = v.trim();\n }\n }\n if (Object.keys(term).length) out[name.toUpperCase()] = term;\n }\n return out;\n}\n\nexport function isLocale(v: unknown, locales: readonly Locale[] = LOCALES): v is Locale {\n return (locales as readonly unknown[]).includes(v);\n}\n\nfunction initialLocale(locales: readonly Locale[]): Locale {\n const stored = storage.get(LOCALE_STORAGE_KEY);\n return isLocale(stored, locales) ? stored : \"en\";\n}\n\ninterface I18n {\n locale: Locale;\n intlLocale: string;\n /** The locales on offer: the built-in ones and those the host's messages add. */\n locales: readonly Locale[];\n setLocale: (l: Locale) => void;\n t: (section: string, term: string, vars?: Vars) => string;\n /** The translation, or `null` when there is none (so a caller can use its own fallback). */\n tMaybe: (section: string, term: string, vars?: Vars) => string | null;\n /** Replace the runtime terms of one section (the field labels of a collection's schema). */\n setSectionTerms: (section: string, terms: Record<string, Partial<Term>>) => void;\n}\n\nconst I18nContext = createContext<I18n | null>(null);\n\nexport interface UdcI18nProviderProps {\n children: ReactNode;\n /**\n * The locale to show. Leave it out and the provider keeps the locale\n * itself, remembered in localStorage (`udc-locale`).\n */\n locale?: Locale;\n /** Called with every locale `setLocale` is asked for; a host that passes `locale` stores it here. */\n onLocaleChange?: (locale: Locale) => void;\n /** Layered over the library's dictionary: the host's own sections, overrides, other locales. */\n messages?: Messages;\n /** The locales on offer. Default: `en`, `sr` and every locale `messages` has a string in. */\n locales?: readonly Locale[];\n}\n\n/**\n * Strings for everything under it. `t(section, term)` looks in the runtime\n * terms (a schema's field labels), then `messages`, then the library's\n * dictionary, in the current locale and then in `en`; a term found nowhere\n * is humanised (`revenue_eur` → `Revenue eur`).\n */\nexport function UdcI18nProvider({\n children,\n locale: controlled,\n onLocaleChange,\n messages,\n locales: localesProp,\n}: UdcI18nProviderProps) {\n const dictionary = useMemo(() => mergeMessages(TRANSLATIONS, messages), [messages]);\n const locales = useMemo<readonly Locale[]>(\n () => localesProp ?? [...new Set<Locale>([...LOCALES, ...messageLocales(messages ?? {})])],\n [localesProp, messages],\n );\n const [own, setOwn] = useState<Locale>(() => initialLocale(locales));\n const [overlay, setOverlay] = useState<Overlay>({});\n const locale = controlled ?? own;\n\n const setLocale = useCallback(\n (l: Locale) => {\n if (controlled === undefined) {\n storage.set(LOCALE_STORAGE_KEY, l);\n setOwn(l);\n }\n onLocaleChange?.(l);\n },\n [controlled, onLocaleChange],\n );\n\n const setSectionTerms = useCallback(\n (section: string, terms: Record<string, Partial<Term>>) =>\n setOverlay((prev) => {\n const key = section.toUpperCase();\n if (JSON.stringify(prev[key] ?? {}) === JSON.stringify(terms)) return prev;\n return { ...prev, [key]: terms };\n }),\n [],\n );\n\n const value = useMemo<I18n>(() => {\n document.documentElement.lang = locale;\n return {\n locale,\n intlLocale: intlLocaleOf(locale),\n locales,\n setLocale,\n t: makeT(locale, dictionary, overlay),\n tMaybe: (section, term, vars) => {\n const s = lookup(dictionary, locale, section, term, overlay);\n return s === null ? null : fill(s, vars);\n },\n setSectionTerms,\n };\n }, [locale, locales, setLocale, dictionary, overlay, setSectionTerms]);\n\n return <I18nContext.Provider value={value}>{children}</I18nContext.Provider>;\n}\n\nexport function useI18n(): I18n {\n const ctx = useContext(I18nContext);\n if (!ctx) throw new Error(\"useI18n needs a <UdcI18nProvider> above it\");\n return ctx;\n}\n\n/** The translation section of a collection's own strings: `companies` → `TBL_COMPANIES`. */\nexport function tableSection(collection: string): string {\n return `TBL_${collection.toUpperCase()}`;\n}\n"],"mappings":";;;;;AAKA,IAAa,qBAAqB;;AAGlC,IAAa,cAA6C;CAAE,IAAI;CAAS,IAAI;AAAa;;AAG1F,SAAgB,aAAa,QAAwB;CACnD,OAAQ,YAAuC,WAAW;AAC5D;AAIA,SAAS,KAAK,GAAW,MAAgC;CACvD,OAAO,OAAO,EAAE,QAAQ,eAAe,GAAG,MAAc,OAAO,KAAK,MAAM,CAAC,CAAC,IAAI;AAClF;;AAaA,SAAgB,cAAc,MAAe,GAAG,QAA0C;CACxF,MAAM,MAAe,EAAE,GAAG,KAAK;CAC/B,KAAK,MAAM,SAAS,QAAQ;EAC1B,IAAI,CAAC,OAAO;EACZ,KAAK,MAAM,CAAC,SAAS,UAAU,OAAO,QAAQ,KAAK,GAAG;GACpD,MAAM,IAAI,QAAQ,YAAY;GAC9B,MAAM,SAAS,EAAE,GAAG,IAAI,GAAG;GAC3B,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,KAAK,GAAG;IACjD,MAAM,IAAI,KAAK,YAAY;IAC3B,OAAO,KAAK;KAAE,GAAG,OAAO;KAAI,GAAG;IAAM;GACvC;GACA,IAAI,KAAK;EACX;CACF;CACA,OAAO;AACT;;AAGA,SAAgB,eAAe,UAA6B;CAC1D,MAAM,wBAAQ,IAAI,IAAY;CAC9B,KAAK,MAAM,SAAS,OAAO,OAAO,QA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EACF;CACF,GAAG;EAAC;EAAQ;EAAS;EAAW;EAAY;EAAS;CAAe,CAAC;CAErE,OAAO,oBAAC,YAAY,UAAb;EAA6B;EAAQ;CAA+B,CAAA;AAC7E;AAEA,SAAgB,UAAgB;CAC9B,MAAM,MAAM,WAAW,WAAW;CAClC,IAAI,CAAC,KAAK,MAAM,IAAI,MAAM,4CAA4C;CACtE,OAAO;AACT;;AAGA,SAAgB,aAAa,YAA4B;CACvD,OAAO,OAAO,WAAW,YAAY;AACvC"}
1
+ {"version":3,"file":"i18n.js","names":[],"sources":["../../src/i18n/i18n.tsx"],"sourcesContent":["import type { SchemaDoc } from \"@jsudc/core\";\nimport { createContext, type ReactNode, useCallback, useContext, useMemo, useState } from \"react\";\nimport { humanize, storage } from \"../lib/storage.js\";\nimport {\n type BuiltinLocale,\n LOCALES,\n type Locale,\n type Term,\n TRANSLATIONS,\n} from \"./translations.js\";\n\nexport const LOCALE_STORAGE_KEY = \"udc-locale\";\n\n/** The BCP 47 tag `Intl` formats numbers and dates with, per built-in locale. */\nexport const INTL_LOCALE: Record<BuiltinLocale, string> = { en: \"en-US\", sr: \"sr-Latn-RS\" };\n\n/** `Intl`'s tag for a locale: the built-in ones are mapped, any other is used as it is. */\nexport function intlLocaleOf(locale: Locale): string {\n return (INTL_LOCALE as Record<string, string>)[locale] ?? locale;\n}\n\nexport type Vars = Record<string, string | number>;\n\nfunction fill(s: string, vars: Vars | undefined): string {\n return vars ? s.replace(/\\{(\\w+)\\}/g, (m, k: string) => String(vars[k] ?? m)) : s;\n}\n\n/** Sections of terms where a locale may be missing: runtime terms (field labels from the schema), a host's messages. */\nexport type Overlay = Record<string, Record<string, Partial<Term>>>;\n\n/**\n * What a host passes to `<UdcI18nProvider messages>`: its own sections\n * (`COLLECTIONS`, `TBL_<COLLECTION>`, its chrome), overrides of library terms\n * (`APP.RETRY.en`), and strings in locales the library does not ship (`de`).\n */\nexport type Messages = Overlay;\n\n/** `base` with `layers` over it, term by term and locale by locale: the later layer wins. */\nexport function mergeMessages(base: Overlay, ...layers: (Overlay | undefined)[]): Overlay {\n const out: Overlay = { ...base };\n for (const layer of layers) {\n if (!layer) continue;\n for (const [section, terms] of Object.entries(layer)) {\n const s = section.toUpperCase();\n const merged = { ...out[s] };\n for (const [term, entry] of Object.entries(terms)) {\n const k = term.toUpperCase();\n merged[k] = { ...merged[k], ...entry };\n }\n out[s] = merged;\n }\n }\n return out;\n}\n\n/** Every locale a dictionary has at least one string in. */\nexport function messageLocales(messages: Overlay): Locale[] {\n const found = new Set<string>();\n for (const terms of Object.values(messages))\n for (const entry of Object.values(terms)) for (const l of Object.keys(entry)) found.add(l);\n return [...found];\n}\n\n/**\n * The translation of `SECTION.TERM`, or `null` when neither the locale nor\n * `en` has one. An `overlay` entry wins over the static map, locale by locale.\n */\nexport function lookup(\n translations: Overlay,\n locale: Locale,\n section: string,\n term: string,\n overlay?: Overlay,\n): string | null {\n const s = section.toUpperCase();\n const k = term.toUpperCase();\n const extra = overlay?.[s]?.[k];\n const entry = translations[s]?.[k];\n return extra?.[locale] || entry?.[locale] || extra?.en || entry?.en || null;\n}\n\n/** `t` for a fixed locale; a missing term falls back to the humanised term (`revenue_eur` → `Revenue eur`). */\nexport function makeT(locale: Locale, translations: Overlay = TRANSLATIONS, overlay?: Overlay) {\n return (section: string, term: string, vars?: Vars): string =>\n fill(lookup(translations, locale, section, term, overlay) ?? humanize(term), vars);\n}\n\n/**\n * The labels a schema's fields carry, as overlay terms. `fielddef.label` is\n * `{en, sr}` (what the field form writes) or a plain string for every locale.\n */\nexport function schemaLabelTerms(\n schema: SchemaDoc,\n locales: readonly Locale[] = LOCALES,\n): Record<string, Partial<Term>> {\n const out: Record<string, Partial<Term>> = {};\n for (const [name, def] of Object.entries(schema.fields)) {\n const label = (def as { label?: unknown }).label;\n const term: Partial<Term> = {};\n if (typeof label === \"string\" && label.trim()) {\n for (const l of locales) term[l] = label.trim();\n } else if (label && typeof label === \"object\") {\n for (const l of locales) {\n const v = (label as Record<string, unknown>)[l];\n if (typeof v === \"string\" && v.trim()) term[l] = v.trim();\n }\n }\n if (Object.keys(term).length) out[name.toUpperCase()] = term;\n }\n return out;\n}\n\nexport function isLocale(v: unknown, locales: readonly Locale[] = LOCALES): v is Locale {\n return (locales as readonly unknown[]).includes(v);\n}\n\nfunction initialLocale(locales: readonly Locale[]): Locale {\n const stored = storage.get(LOCALE_STORAGE_KEY);\n return isLocale(stored, locales) ? stored : \"en\";\n}\n\ninterface I18n {\n locale: Locale;\n intlLocale: string;\n /** The locales on offer: the built-in ones and those the host's messages add. */\n locales: readonly Locale[];\n setLocale: (l: Locale) => void;\n t: (section: string, term: string, vars?: Vars) => string;\n /** The translation, or `null` when there is none (so a caller can use its own fallback). */\n tMaybe: (section: string, term: string, vars?: Vars) => string | null;\n /** Replace the runtime terms of one section (the field labels of a collection's schema). */\n setSectionTerms: (section: string, terms: Record<string, Partial<Term>>) => void;\n}\n\nconst I18nContext = createContext<I18n | null>(null);\n\nexport interface UdcI18nProviderProps {\n children: ReactNode;\n /**\n * The locale to show. Leave it out and the provider keeps the locale\n * itself, remembered in localStorage (`udc-locale`).\n */\n locale?: Locale;\n /** Called with every locale `setLocale` is asked for; a host that passes `locale` stores it here. */\n onLocaleChange?: (locale: Locale) => void;\n /** Layered over the library's dictionary: the host's own sections, overrides, other locales. */\n messages?: Messages;\n /** The locales on offer. Default: `en`, `sr` and every locale `messages` has a string in. */\n locales?: readonly Locale[];\n}\n\n/**\n * Strings for everything under it. `t(section, term)` looks in the runtime\n * terms (a schema's field labels), then `messages`, then the library's\n * dictionary, in the current locale and then in `en`; a term found nowhere\n * is humanised (`revenue_eur` → `Revenue eur`).\n */\nexport function UdcI18nProvider({\n children,\n locale: controlled,\n onLocaleChange,\n messages,\n locales: localesProp,\n}: UdcI18nProviderProps) {\n const dictionary = useMemo(() => mergeMessages(TRANSLATIONS, messages), [messages]);\n const locales = useMemo<readonly Locale[]>(\n () => localesProp ?? [...new Set<Locale>([...LOCALES, ...messageLocales(messages ?? {})])],\n [localesProp, messages],\n );\n const [own, setOwn] = useState<Locale>(() => initialLocale(locales));\n const [overlay, setOverlay] = useState<Overlay>({});\n const locale = controlled ?? own;\n\n const setLocale = useCallback(\n (l: Locale) => {\n if (controlled === undefined) {\n storage.set(LOCALE_STORAGE_KEY, l);\n setOwn(l);\n }\n onLocaleChange?.(l);\n },\n [controlled, onLocaleChange],\n );\n\n const setSectionTerms = useCallback(\n (section: string, terms: Record<string, Partial<Term>>) =>\n setOverlay((prev) => {\n const key = section.toUpperCase();\n if (JSON.stringify(prev[key] ?? {}) === JSON.stringify(terms)) return prev;\n return { ...prev, [key]: terms };\n }),\n [],\n );\n\n const value = useMemo<I18n>(() => {\n document.documentElement.lang = locale;\n return {\n locale,\n intlLocale: intlLocaleOf(locale),\n locales,\n setLocale,\n t: makeT(locale, dictionary, overlay),\n tMaybe: (section, term, vars) => {\n const s = lookup(dictionary, locale, section, term, overlay);\n return s === null ? null : fill(s, vars);\n },\n setSectionTerms,\n };\n }, [locale, locales, setLocale, dictionary, overlay, setSectionTerms]);\n\n return <I18nContext.Provider value={value}>{children}</I18nContext.Provider>;\n}\n\nexport function useI18n(): I18n {\n const ctx = useContext(I18nContext);\n if (!ctx) throw new Error(\"useI18n needs a <UdcI18nProvider> above it\");\n return ctx;\n}\n\n/** The translation section of a collection's own strings: `companies` → `TBL_COMPANIES`. */\nexport function tableSection(collection: string): string {\n return `TBL_${collection.toUpperCase()}`;\n}\n"],"mappings":";;;;;AAWA,IAAa,qBAAqB;;AAGlC,IAAa,cAA6C;CAAE,IAAI;CAAS,IAAI;AAAa;;AAG1F,SAAgB,aAAa,QAAwB;CACnD,OAAQ,YAAuC,WAAW;AAC5D;AAIA,SAAS,KAAK,GAAW,MAAgC;CACvD,OAAO,OAAO,EAAE,QAAQ,eAAe,GAAG,MAAc,OAAO,KAAK,MAAM,CAAC,CAAC,IAAI;AAClF;;AAaA,SAAgB,cAAc,MAAe,GAAG,QAA0C;CACxF,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,MAAM,kBAAkB,aACrB,SAAiB,UAChB,YAAY,SAAS;EACnB,MAAM,MAAM,QAAQ,YAAY;EAChC,IAAI,KAAK,UAAU,KAAK,QAAQ,CAAC,CAAC,MAAM,KAAK,UAAU,KAAK,GAAG,OAAO;EACtE,OAAO;GAAE,GAAG;IAAO,MAAM;EAAM;CACjC,CAAC,GACH,CAAC,CACH;CAEA,MAAM,QAAQ,cAAoB;EAChC,SAAS,gBAAgB,OAAO;EAChC,OAAO;GACL;GACA,YAAY,aAAa,MAAM;GAC/B;GACA;GACA,GAAG,MAAM,QAAQ,YAAY,OAAO;GACpC,SAAS,SAAS,MAAM,SAAS;IAC/B,MAAM,IAAI,OAAO,YAAY,QAAQ,SAAS,MAAM,OAAO;IAC3D,OAAO,MAAM,OAAO,OAAO,KAAK,GAAG,IAAI;GACzC;GACA;EACF;CACF,GAAG;EAAC;EAAQ;EAAS;EAAW;EAAY;EAAS;CAAe,CAAC;CAErE,OAAO,oBAAC,YAAY,UAAb;EAA6B;EAAQ;CAA+B,CAAA;AAC7E;AAEA,SAAgB,UAAgB;CAC9B,MAAM,MAAM,WAAW,WAAW;CAClC,IAAI,CAAC,KAAK,MAAM,IAAI,MAAM,4CAA4C;CACtE,OAAO;AACT;;AAGA,SAAgB,aAAa,YAA4B;CACvD,OAAO,OAAO,WAAW,YAAY;AACvC"}
@@ -365,6 +365,14 @@ var TRANSLATIONS = { APP: {
365
365
  en: "The {name} view is not available yet",
366
366
  sr: "Prikaz {name} još nije dostupan"
367
367
  },
368
+ NO_RENDERER_TITLE: {
369
+ en: "No renderer is registered for {name}",
370
+ sr: "Za {name} nije registrovan nijedan prikaz"
371
+ },
372
+ NO_RENDERER_BODY: {
373
+ en: "Pass renderers to UdcProvider: RENDERERS from @jsudc/react/all, or a registry of the ones this page needs.",
374
+ sr: "Prosledite renderers u UdcProvider: RENDERERS iz @jsudc/react/all ili registar prikaza koji su ovoj stranici potrebni."
375
+ },
368
376
  CAPPED: {
369
377
  en: "Showing the first {shown} of {total}. Narrow the search to see the rest.",
370
378
  sr: "Prikazano prvih {shown} od {total}. Suzite pretragu da vidite ostale."
@@ -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 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 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;EA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AE,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 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 FILTER: { en: \"Filter\", sr: \"Filter\" },\n FILTER_TITLE: { en: \"Filter conditions\", sr: \"Uslovi filtera\" },\n FILTER_HINT: {\n en: \"Rows must match every condition.\",\n sr: \"Redovi moraju da ispune sve uslove.\",\n },\n FILTER_ADD: { en: \"Add condition\", sr: \"Dodaj uslov\" },\n FILTER_EMPTY: { en: \"No conditions yet.\", sr: \"Još nema uslova.\" },\n FILTER_CUSTOM: { en: \"Custom filter\", sr: \"Prilagođeni filter\" },\n FILTER_REMOVE: { en: \"Remove filter\", sr: \"Ukloni filter\" },\n FILTER_FIELD: { en: \"Field\", sr: \"Polje\" },\n FILTER_OP: { en: \"Operator\", sr: \"Operator\" },\n FILTER_VALUE: { en: \"Value\", sr: \"Vrednost\" },\n FILTER_LIST_HINT: { en: \"Comma separated\", sr: \"Odvojeno zarezom\" },\n REMOVE: { en: \"Remove\", sr: \"Ukloni\" },\n AND: { en: \"and\", sr: \"i\" },\n SORT_ASC: { en: \"Sorted ascending\", sr: \"Rastući redosled\" },\n SORT_DESC: { en: \"Sorted descending\", sr: \"Opadajući redosled\" },\n EDIT_HINT: { en: \"Double-click to edit\", sr: \"Dvoklik za izmenu\" },\n SAVED: { en: \"Saved\", sr: \"Sačuvano\" },\n CONFLICT_TITLE: {\n en: \"Row was changed by someone else\",\n sr: \"Red je u međuvremenu izmenio neko drugi\",\n },\n CONFLICT_BODY: {\n en: \"Your edit was not saved. The table now shows the latest value.\",\n sr: \"Vaša izmena nije sačuvana. Tabela sada prikazuje najnoviju vrednost.\",\n },\n SAVE_FAILED: { en: \"Could not save\", sr: \"Čuvanje nije uspelo\" },\n NOT_FOUND_TITLE: { en: \"Collection not found\", sr: \"Kolekcija nije pronađena\" },\n OP_EQ: { en: \"equals\", sr: \"jednako\" },\n OP_NEQ: { en: \"not equal\", sr: \"nije jednako\" },\n OP_IN: { en: \"is any of\", sr: \"je jedno od\" },\n OP_NOT_IN: { en: \"is none of\", sr: \"nije nijedno od\" },\n OP_CONTAINS: { en: \"contains\", sr: \"sadrži\" },\n OP_STARTS_WITH: { en: \"starts with\", sr: \"počinje sa\" },\n OP_ENDS_WITH: { en: \"ends with\", sr: \"završava se sa\" },\n OP_GT: { en: \"greater than\", sr: \"veće od\" },\n OP_GTE: { en: \"at least\", sr: \"najmanje\" },\n OP_LT: { en: \"less than\", sr: \"manje od\" },\n OP_LTE: { en: \"at most\", sr: \"najviše\" },\n OP_BETWEEN: { en: \"between\", sr: \"između\" },\n OP_IS_NULL: { en: \"is empty\", sr: \"je prazno\" },\n OP_IS_NOT_NULL: { en: \"is not empty\", sr: \"nije prazno\" },\n CANCEL: { en: \"Cancel\", sr: \"Otkaži\" },\n SAVE: { en: \"Save\", sr: \"Sačuvaj\" },\n COL_MENU: { en: \"Column options: {label}\", sr: \"Opcije kolone: {label}\" },\n COL_ADD: { en: \"Add column\", sr: \"Dodaj kolonu\" },\n COL_ADD_BEFORE: { en: \"Add column before\", sr: \"Dodaj kolonu ispred\" },\n COL_ADD_AFTER: { en: \"Add column after\", sr: \"Dodaj kolonu iza\" },\n COL_EDIT: { en: \"Edit column\", sr: \"Izmeni kolonu\" },\n COL_DELETE: { en: \"Delete column\", sr: \"Obriši kolonu\" },\n FORM_ADD_TITLE: { en: \"Add column\", sr: \"Nova kolona\" },\n FORM_ADD_SUBMIT: { en: \"Add column\", sr: \"Dodaj kolonu\" },\n FORM_EDIT_TITLE: { en: \"Edit column {label}\", sr: \"Izmena kolone {label}\" },\n FORM_EDIT_BODY: {\n en: \"Changes apply to the schema at once; existing values are kept.\",\n sr: \"Izmene odmah važe za šemu; postojeće vrednosti ostaju.\",\n },\n FORM_POS_BEFORE: {\n en: \"The new column goes before {label}.\",\n sr: \"Nova kolona ide ispred kolone {label}.\",\n },\n FORM_POS_AFTER: {\n en: \"The new column goes after {label}.\",\n sr: \"Nova kolona ide iza kolone {label}.\",\n },\n FORM_POS_END: { en: \"The new column goes at the end.\", sr: \"Nova kolona ide na kraj.\" },\n FORM_NAME: { en: \"Field name\", sr: \"Naziv polja\" },\n FORM_NAME_HINT: {\n en: \"Lowercase letters, digits and _, starting with a letter.\",\n sr: \"Mala slova, cifre i _, na početku slovo.\",\n },\n FORM_TYPE: { en: \"Type\", sr: \"Tip\" },\n FORM_TYPE_LOCKED: {\n en: \"The name and type of an existing column cannot change. To change the type, delete the column and add a new one.\",\n sr: \"Naziv i tip postojeće kolone ne mogu da se menjaju. Za drugi tip obrišite kolonu i dodajte novu.\",\n },\n FORM_LABEL_EN: { en: \"Label, English\", sr: \"Natpis, engleski\" },\n FORM_LABEL_SR: { en: \"Label, Serbian\", sr: \"Natpis, srpski\" },\n FORM_LENGTH: { en: \"Max length\", sr: \"Najveća dužina\" },\n FORM_LENGTH_HINT: { en: \"Characters.\", sr: \"Broj znakova.\" },\n FORM_MIN: { en: \"Minimum\", sr: \"Najmanje\" },\n FORM_MAX: { en: \"Maximum\", sr: \"Najviše\" },\n FORM_NO_LIMIT: { en: \"No limit\", sr: \"Bez ograničenja\" },\n FORM_VALUES: { en: \"Allowed values\", sr: \"Dozvoljene vrednosti\" },\n FORM_VALUES_HINT: {\n en: \"Press Enter or comma after each value.\",\n sr: \"Enter ili zarez posle svake vrednosti.\",\n },\n FORM_REQUIRED: { en: \"Required\", sr: \"Obavezno\" },\n FORM_REQUIRED_HINT: {\n en: \"New rows and edits of this field need a value.\",\n sr: \"Novi redovi i izmene ovog polja traže vrednost.\",\n },\n FORM_INDEX: { en: \"Indexed\", sr: \"Indeksirano\" },\n FORM_INDEX_HINT: { en: \"Faster sort and filter.\", sr: \"Brže sortiranje i filtriranje.\" },\n FORM_SERVER_ERROR: { en: \"The server refused the change\", sr: \"Server je odbio izmenu\" },\n ERR_NAME_REQUIRED: { en: \"Enter a field name.\", sr: \"Unesite naziv polja.\" },\n ERR_NAME_INVALID: {\n en: \"Use lowercase letters, digits and _, starting with a letter (max 63).\",\n sr: \"Koristite mala slova, cifre i _, na početku slovo (najviše 63).\",\n },\n ERR_NAME_TAKEN: {\n en: \"A field with this name already exists.\",\n sr: \"Polje sa ovim nazivom već postoji.\",\n },\n ERR_LENGTH_REQUIRED: {\n en: \"Text fields need a max length.\",\n sr: \"Tekstualno polje traži najveću dužinu.\",\n },\n ERR_LENGTH: { en: \"A whole number of at least 1.\", sr: \"Ceo broj, najmanje 1.\" },\n ERR_NUMBER: { en: \"Not a number.\", sr: \"Nije broj.\" },\n ERR_INTEGER: { en: \"A whole number.\", sr: \"Ceo broj.\" },\n ERR_MIN_MAX: { en: \"Maximum is below the minimum.\", sr: \"Najviše je manje od najmanje.\" },\n ERR_VALUES_REQUIRED: { en: \"Add at least one value.\", sr: \"Dodajte bar jednu vrednost.\" },\n ERR_VALUES_DUP: { en: \"Values must be unique.\", sr: \"Vrednosti moraju da budu različite.\" },\n DELETE_TITLE: { en: \"Delete column {label}?\", sr: \"Obrisati kolonu {label}?\" },\n DELETE_BODY: {\n en: \"The column disappears from the table, the cards and the filters. The data is kept: values stay in the database and nothing is erased.\",\n sr: \"Kolona nestaje iz tabele, kartica i filtera. Podaci ostaju: vrednosti se čuvaju u bazi i ništa se ne briše.\",\n },\n DELETE_FIELD_NAME: { en: \"Field:\", sr: \"Polje:\" },\n DELETE_CONFIRM: { en: \"Delete column\", sr: \"Obriši kolonu\" },\n TOAST_ADDED: { en: \"Column {label} added\", sr: \"Kolona {label} je dodata\" },\n TOAST_UPDATED: { en: \"Column {label} saved\", sr: \"Kolona {label} je sačuvana\" },\n TOAST_DELETED: { en: \"Column {label} deleted\", sr: \"Kolona {label} je obrisana\" },\n TYPE_STRING: { en: \"Short text\", sr: \"Kratak tekst\" },\n TYPE_TEXT: { en: \"Long text\", sr: \"Dugačak tekst\" },\n TYPE_INTEGER: { en: \"Integer\", sr: \"Ceo broj\" },\n TYPE_DECIMAL: { en: \"Decimal\", sr: \"Decimalni broj\" },\n TYPE_YEAR: { en: \"Year\", sr: \"Godina\" },\n TYPE_BOOL: { en: \"Yes / no\", sr: \"Da / ne\" },\n TYPE_DATE: { en: \"Date\", sr: \"Datum\" },\n TYPE_DATETIME: { en: \"Date and time\", sr: \"Datum i vreme\" },\n TYPE_JSON: { en: \"JSON\", sr: \"JSON\" },\n TYPE_ENUM: { en: \"Choice\", sr: \"Izbor\" },\n },\n};\n"],"mappings":";;AACA,IAAa,UAAU,CAAC,MAAM,IAAI;;;;;;;;AAgBlC,IAAa,eAA6B,EACxC,KAAK;CACH,WAAW;EAAE,IAAI;EAAS,IAAI;CAAS;CACvC,WAAW;EAAE,IAAI;EAAS,IAAI;CAAU;CACxC,YAAY;EAAE,IAAI;EAAS,IAAI;CAAQ;CACvC,cAAc;EAAE,IAAI;EAAY,IAAI;CAAW;CAC/C,UAAU;EAAE,IAAI;EAAQ,IAAI;CAAS;CACrC,SAAS;EAAE,IAAI;EAAO,IAAI;CAAO;CACjC,WAAW;EAAE,IAAI;EAAS,IAAI;CAAW;CACzC,SAAS;EAAE,IAAI;EAAO,IAAI;CAAO;CACjC,YAAY;EAAE,IAAI;EAAU,IAAI;CAAQ;CACxC,iBAAiB;EAAE,IAAI;EAAmB,IAAI;CAAkB;CAChE,cAAc;EAAE,IAAI;EAAiB,IAAI;CAAkB;CAC3D,cAAc;EACZ,IAAI;EACJ,IAAI;CACN;CACA,aAAa;EAAE,IAAI;EAAiB,IAAI;CAAiB;CACzD,eAAe;EAAE,IAAI;EAAkB,IAAI;CAAkB;CAC7D,YAAY;EAAE,IAAI;EAA2B,IAAI;CAAyB;CAC1E,gBAAgB;EAAE,IAAI;EAAa,IAAI;CAAW;CAClD,aAAa;EAAE,IAAI;EAAiB,IAAI;CAAiB;CACzD,aAAa;EACX,I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EACd,IAAI;EACJ,IAAI;CACN;CACA,qBAAqB;EACnB,IAAI;EACJ,IAAI;CACN;CACA,YAAY;EAAE,IAAI;EAAiC,IAAI;CAAwB;CAC/E,YAAY;EAAE,IAAI;EAAiB,IAAI;CAAa;CACpD,aAAa;EAAE,IAAI;EAAmB,IAAI;CAAY;CACtD,aAAa;EAAE,IAAI;EAAiC,IAAI;CAAgC;CACxF,qBAAqB;EAAE,IAAI;EAA2B,IAAI;CAA8B;CACxF,gBAAgB;EAAE,IAAI;EAA0B,IAAI;CAAsC;CAC1F,cAAc;EAAE,IAAI;EAA0B,IAAI;CAA2B;CAC7E,aAAa;EACX,IAAI;EACJ,IAAI;CACN;CACA,mBAAmB;EAAE,IAAI;EAAU,IAAI;CAAS;CAChD,gBAAgB;EAAE,IAAI;EAAiB,IAAI;CAAgB;CAC3D,aAAa;EAAE,IAAI;EAAwB,IAAI;CAA2B;CAC1E,eAAe;EAAE,IAAI;EAAwB,IAAI;CAA6B;CAC9E,eAAe;EAAE,IAAI;EAA0B,IAAI;CAA6B;CAChF,aAAa;EAAE,IAAI;EAAc,IAAI;CAAe;CACpD,WAAW;EAAE,IAAI;EAAa,IAAI;CAAgB;CAClD,cAAc;EAAE,IAAI;EAAW,IAAI;CAAW;CAC9C,cAAc;EAAE,IAAI;EAAW,IAAI;CAAiB;CACpD,WAAW;EAAE,IAAI;EAAQ,IAAI;CAAS;CACtC,WAAW;EAAE,IAAI;EAAY,IAAI;CAAU;CAC3C,WAAW;EAAE,IAAI;EAAQ,IAAI;CAAQ;CACrC,eAAe;EAAE,IAAI;EAAiB,IAAI;CAAgB;CAC1D,WAAW;EAAE,IAAI;EAAQ,IAAI;CAAO;CACpC,WAAW;EAAE,IAAI;EAAU,IAAI;CAAQ;AACzC,EACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.js","names":[],"sources":["../../src/icons/resolve.ts"],"sourcesContent":["import { Building2, Circle, type LucideIcon, User, Users } from \"lucide-react\";\nimport { LUCIDE_ICONS } from \"./lucide.generated\";\n\n/** What an unknown name draws: a row never breaks over its icon. */\nexport const FALLBACK_ICON: LucideIcon = Circle;\n\n/** The bare names the org tree's rows carry (before `lucide:` existed). */\nconst BARE: Readonly<Record<string, LucideIcon>> = {\n building: Building2,\n users: Users,\n user: User,\n};\n\n/**\n * The icon a row names: `lucide:<kebab-name>` from the generated map of the\n * icons the repo references (`scripts/generate-icons.mjs`), a bare legacy\n * name, else the fallback. `null` for no name at all.\n */\nexport function resolveIcon(name: unknown): LucideIcon | null {\n if (typeof name !== \"string\" || name.trim() === \"\") return null;\n const value = name.trim();\n if (value.startsWith(\"lucide:\"))\n return LUCIDE_ICONS[value.slice(\"lucide:\".length)] ?? FALLBACK_ICON;\n return BARE[value] ?? FALLBACK_ICON;\n}\n"],"mappings":";;;;AAIA,IAAa,gBAA4B;;AAGzC,IAAM,OAA6C;CACjD,UAAU;CACV,OAAO;CACP,MAAM;AACR;;;;;;AAOA,SAAgB,YAAY,MAAkC;CAC5D,IAAI,OAAO,SAAS,YAAY,KAAK,KAAK,MAAM,IAAI,OAAO;CAC3D,MAAM,QAAQ,KAAK,KAAK;CACxB,IAAI,MAAM,WAAW,SAAS,GAC5B,OAAO,aAAa,MAAM,MAAM,CAAgB,MAAM;CACxD,OAAO,KAAK,UAAU;AACxB"}
1
+ {"version":3,"file":"resolve.js","names":[],"sources":["../../src/icons/resolve.ts"],"sourcesContent":["import { Building2, Circle, type LucideIcon, User, Users } from \"lucide-react\";\nimport { LUCIDE_ICONS } from \"./lucide.generated.js\";\n\n/** What an unknown name draws: a row never breaks over its icon. */\nexport const FALLBACK_ICON: LucideIcon = Circle;\n\n/** The bare names the org tree's rows carry (before `lucide:` existed). */\nconst BARE: Readonly<Record<string, LucideIcon>> = {\n building: Building2,\n users: Users,\n user: User,\n};\n\n/**\n * The icon a row names: `lucide:<kebab-name>` from the generated map of the\n * icons the repo references (`scripts/generate-icons.mjs`), a bare legacy\n * name, else the fallback. `null` for no name at all.\n */\nexport function resolveIcon(name: unknown): LucideIcon | null {\n if (typeof name !== \"string\" || name.trim() === \"\") return null;\n const value = name.trim();\n if (value.startsWith(\"lucide:\"))\n return LUCIDE_ICONS[value.slice(\"lucide:\".length)] ?? FALLBACK_ICON;\n return BARE[value] ?? FALLBACK_ICON;\n}\n"],"mappings":";;;;AAIA,IAAa,gBAA4B;;AAGzC,IAAM,OAA6C;CACjD,UAAU;CACV,OAAO;CACP,MAAM;AACR;;;;;;AAOA,SAAgB,YAAY,MAAkC;CAC5D,IAAI,OAAO,SAAS,YAAY,KAAK,KAAK,MAAM,IAAI,OAAO;CAC3D,MAAM,QAAQ,KAAK,KAAK;CACxB,IAAI,MAAM,WAAW,SAAS,GAC5B,OAAO,aAAa,MAAM,MAAM,CAAgB,MAAM;CACxD,OAAO,KAAK,UAAU;AACxB"}
package/dist/index.d.ts CHANGED
@@ -1,27 +1,19 @@
1
- export { Button, type ButtonProps } from "./components/ui/button";
2
- export { Checkbox } from "./components/ui/checkbox";
3
- export { Dialog, DialogBody, DialogClose, DialogContent, DialogFooter, DialogTrigger, } from "./components/ui/dialog";
4
- export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "./components/ui/dropdown-menu";
5
- export { Input, inputClass, NativeSelect } from "./components/ui/input";
6
- export { Kbd, Skeleton, Spinner } from "./components/ui/misc";
7
- export { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, } from "./components/ui/popover";
8
- export { Segmented, type SegmentedOption } from "./components/ui/segmented";
9
- export { Select, type SelectOption } from "./components/ui/select";
10
- export { Toaster, type ToastInput, type ToastVariant, useToast } from "./components/ui/toast";
11
- export { Tip, TooltipProvider } from "./components/ui/tooltip";
12
- export { UdcDataView } from "./data-view/UdcDataView";
13
- 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";
14
- export { type BuiltinLocale, LOCALES, type Locale, type Term, TRANSLATIONS, type Translations, } from "./i18n/translations";
15
- export { LUCIDE_ICONS } from "./icons/lucide.generated";
16
- export { FALLBACK_ICON, resolveIcon } from "./icons/resolve";
17
- export { THEME_STORAGE_KEY, type Theme, ThemeProvider, useTheme } from "./lib/theme";
18
- export { cn, humanize, storage } from "./lib/utils";
19
- export { RENDERERS, type RendererTab, rendererEntry, rendererTabs, resolveTab, } from "./renderers/registry";
20
- export { type FolderNav, isFolderRow, type RendererCount, type RendererEntry, type RendererProps, } from "./renderers/types";
21
- export { EmptyState, ErrorState } from "./table/states";
22
- export { BROWSER_TZ, COMMON_ZONES, TimezoneProvider, type TimezoneState, TZ_STORAGE_KEY, useTimezone, } from "./time/timezone";
23
- export { allZones, browserZone, isValidZone, offsetLabel, offsetMinutes, zoneCity, } from "./time/zoned";
24
- export { i18nKey } from "./tree/model";
25
- 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";
26
- export { type ListKeyParams, type PagingMode, udcKeys } from "./udc/keys";
27
- export { createUdcQueryClient, shouldRetry, UdcProvider, useUdcClient } from "./udc/provider";
1
+ export { UdcDataView, type UdcDataViewProps } from "./data-view/UdcDataView.js";
2
+ 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
+ export { type BuiltinLocale, LOCALES, type Locale, type Term, TRANSLATIONS, type Translations, } from "./i18n/translations.js";
4
+ export { LUCIDE_ICONS } from "./icons/lucide.generated.js";
5
+ export { FALLBACK_ICON, resolveIcon } from "./icons/resolve.js";
6
+ export { THEME_STORAGE_KEY, type Theme, ThemeProvider, useTheme } from "./lib/theme.js";
7
+ export { cn, humanize, storage } from "./lib/utils.js";
8
+ export { UdcRenderersProvider, type UdcRenderersProviderProps, useRendererRegistry, } from "./renderers/context.js";
9
+ export { createRendererRegistry, type RendererTab, rendererEntry, rendererTabs, resolveTab, } from "./renderers/registry.js";
10
+ export { type FolderNav, isFolderRow, type RendererCount, type RendererDefinition, type RendererEntry, type RendererProps, type RendererRegistry, } from "./renderers/types.js";
11
+ export { EmptyState, ErrorState, NoRendererState } from "./table/states.js";
12
+ export { BROWSER_TZ, COMMON_ZONES, TimezoneProvider, type TimezoneState, TZ_STORAGE_KEY, useTimezone, } from "./time/timezone.js";
13
+ export { allZones, browserZone, isValidZone, offsetLabel, offsetMinutes, zoneCity, } from "./time/zoned.js";
14
+ export { i18nKey } from "./tree/model.js";
15
+ 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";
16
+ export { type ListKeyParams, type PagingMode, udcKeys } from "./udc/keys.js";
17
+ export { createUdcQueryClient, shouldRetry, UdcProvider, useUdcClient } from "./udc/provider.js";
18
+ 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";
19
+ export { type SetUrlSearchParams, UdcUrlStateProvider, type UdcUrlStateProviderProps, type UrlStateAdapter, useUrlSearchParams, useUrlStateAdapter, windowLocationAdapter, } from "./url-state/index.js";
package/dist/index.js CHANGED
@@ -1,28 +1,23 @@
1
- import { Button } from "./components/ui/button.js";
2
- import { Checkbox } from "./components/ui/checkbox.js";
3
- import { Dialog, DialogBody, DialogClose, DialogContent, DialogFooter, DialogTrigger } from "./components/ui/dialog.js";
4
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
5
- import { Input, NativeSelect, inputClass } from "./components/ui/input.js";
6
- import { Kbd, Skeleton, Spinner } from "./components/ui/misc.js";
7
- import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger } from "./components/ui/popover.js";
8
- import { Segmented } from "./components/ui/segmented.js";
9
- import { Select } from "./components/ui/select.js";
10
- import { Toaster, useToast } from "./components/ui/toast.js";
11
- import { Tip, TooltipProvider } from "./components/ui/tooltip.js";
1
+ import { humanize, storage } from "./lib/storage.js";
12
2
  import { UdcDataView } from "./data-view/UdcDataView.js";
13
3
  import { INTL_LOCALE, LOCALE_STORAGE_KEY, UdcI18nProvider, intlLocaleOf, isLocale, lookup, makeT, mergeMessages, messageLocales, schemaLabelTerms, tableSection, useI18n } from "./i18n/i18n.js";
14
4
  import { LOCALES, TRANSLATIONS } from "./i18n/translations.js";
15
5
  import { LUCIDE_ICONS } from "./icons/lucide.generated.js";
16
6
  import { FALLBACK_ICON, resolveIcon } from "./icons/resolve.js";
17
7
  import { THEME_STORAGE_KEY, ThemeProvider, useTheme } from "./lib/theme.js";
18
- import { cn, humanize, storage } from "./lib/utils.js";
19
- import { RENDERERS, rendererEntry, rendererTabs, resolveTab } from "./renderers/registry.js";
8
+ import { cn } from "./lib/utils.js";
9
+ import { UdcRenderersProvider, useRendererRegistry } from "./renderers/context.js";
10
+ import { createRendererRegistry, rendererEntry, rendererTabs, resolveTab } from "./renderers/registry.js";
20
11
  import { isFolderRow } from "./renderers/types.js";
21
- import { EmptyState, ErrorState } from "./table/states.js";
12
+ import { createUdcQueryClient, shouldRetry, useUdcClient } from "./udc/client.js";
13
+ import { EmptyState, ErrorState, NoRendererState } from "./table/states.js";
22
14
  import { BROWSER_TZ, COMMON_ZONES, TZ_STORAGE_KEY, TimezoneProvider, useTimezone } from "./time/timezone.js";
23
15
  import { allZones, browserZone, isValidZone, offsetLabel, offsetMinutes, zoneCity } from "./time/zoned.js";
24
16
  import { i18nKey } from "./tree/model.js";
25
17
  import { ALL_ROWS_MAX, fetchAllRows, freshnessOf, pageOffset, patchRowInList, pollInterval, useUdcAllRows, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcMutate, useUdcSchema, useUdcSource } from "./udc/hooks.js";
26
18
  import { udcKeys } from "./udc/keys.js";
27
- import { UdcProvider, createUdcQueryClient, shouldRetry, useUdcClient } from "./udc/provider.js";
28
- export { ALL_ROWS_MAX, BROWSER_TZ, Button, COMMON_ZONES, Checkbox, Dialog, DialogBody, DialogClose, DialogContent, DialogFooter, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, ErrorState, FALLBACK_ICON, INTL_LOCALE, Input, Kbd, LOCALES, LOCALE_STORAGE_KEY, LUCIDE_ICONS, NativeSelect, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, RENDERERS, Segmented, Select, Skeleton, Spinner, THEME_STORAGE_KEY, TRANSLATIONS, TZ_STORAGE_KEY, ThemeProvider, TimezoneProvider, Tip, Toaster, TooltipProvider, UdcDataView, UdcI18nProvider, UdcProvider, allZones, browserZone, cn, createUdcQueryClient, fetchAllRows, freshnessOf, humanize, i18nKey, inputClass, intlLocaleOf, isFolderRow, isLocale, isValidZone, lookup, makeT, mergeMessages, messageLocales, offsetLabel, offsetMinutes, pageOffset, patchRowInList, pollInterval, rendererEntry, rendererTabs, resolveIcon, resolveTab, schemaLabelTerms, shouldRetry, storage, tableSection, udcKeys, useI18n, useTheme, useTimezone, useToast, useUdcAllRows, useUdcClient, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcMutate, useUdcSchema, useUdcSource, zoneCity };
19
+ import { UdcProvider } from "./udc/provider.js";
20
+ import { UdcUiProvider, useUiKit } from "./ui-kit/context.js";
21
+ import { UdcUrlStateProvider, useUrlSearchParams, useUrlStateAdapter } from "./url-state/UrlState.js";
22
+ import { windowLocationAdapter } from "./url-state/adapter.js";
23
+ export { ALL_ROWS_MAX, BROWSER_TZ, COMMON_ZONES, EmptyState, ErrorState, FALLBACK_ICON, INTL_LOCALE, LOCALES, LOCALE_STORAGE_KEY, LUCIDE_ICONS, NoRendererState, THEME_STORAGE_KEY, TRANSLATIONS, TZ_STORAGE_KEY, ThemeProvider, TimezoneProvider, UdcDataView, UdcI18nProvider, UdcProvider, UdcRenderersProvider, UdcUiProvider, UdcUrlStateProvider, allZones, browserZone, cn, createRendererRegistry, createUdcQueryClient, fetchAllRows, freshnessOf, humanize, i18nKey, intlLocaleOf, isFolderRow, isLocale, isValidZone, lookup, makeT, mergeMessages, messageLocales, offsetLabel, offsetMinutes, pageOffset, patchRowInList, pollInterval, rendererEntry, rendererTabs, resolveIcon, resolveTab, schemaLabelTerms, shouldRetry, storage, tableSection, udcKeys, useI18n, useRendererRegistry, useTheme, useTimezone, useUdcAllRows, useUdcClient, useUdcCollection, useUdcCollections, useUdcDescribe, useUdcMutate, useUdcSchema, useUdcSource, useUiKit, useUrlSearchParams, useUrlStateAdapter, windowLocationAdapter, zoneCity };
@@ -1,6 +1,6 @@
1
- import { Dialog, DialogBody, DialogContent } from "../components/ui/dialog.js";
2
1
  import { tableSection, useI18n } from "../i18n/i18n.js";
3
2
  import { CellValue } from "../table/cells.js";
3
+ import { useUiKit } from "../ui-kit/context.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  // src/kanban/CardDetailDialog.tsx
6
6
  /**
@@ -9,6 +9,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  * its nodes in it too, naming its own title and body fields.
10
10
  */
11
11
  function CardDetailDialog({ row, describe, collection, labels, onClose, titleField = describe.view.kanban_options?.card.title_field, bodyField = describe.view.kanban_options?.card.body_field, testId = "kanban-detail" }) {
12
+ const { Dialog, DialogBody, DialogContent } = useUiKit();
12
13
  const { t, locale, intlLocale } = useI18n();
13
14
  const { schema, view } = describe;
14
15
  const section = tableSection(collection);
@@ -19,21 +20,21 @@ function CardDetailDialog({ row, describe, collection, labels, onClose, titleFie
19
20
  onOpenChange: (open) => !open && onClose(),
20
21
  children: row ? /* @__PURE__ */ jsx(DialogContent, {
21
22
  "data-testid": testId,
22
- className: "max-w-lg",
23
+ className: "udc:max-w-lg",
23
24
  title: String(titleField && row[titleField] || "—"),
24
25
  children: /* @__PURE__ */ jsxs(DialogBody, { children: [typeof body === "string" && body ? /* @__PURE__ */ jsx("p", {
25
- className: "mb-4 text-[13px] leading-relaxed whitespace-pre-wrap text-muted-foreground",
26
+ className: "udc:mb-4 udc:text-[13px] udc:leading-relaxed udc:whitespace-pre-wrap udc:text-muted-foreground",
26
27
  children: body
27
28
  }) : null, /* @__PURE__ */ jsx("dl", {
28
- className: "grid grid-cols-[minmax(7rem,auto)_1fr] gap-x-4 border-t border-border",
29
+ className: "udc:grid udc:grid-cols-[minmax(7rem,auto)_1fr] udc:gap-x-4 udc:border-t udc:border-border",
29
30
  children: fields.map((field) => /* @__PURE__ */ jsxs("div", {
30
- className: "contents",
31
+ className: "udc:contents",
31
32
  "data-testid": `${testId}-${field}`,
32
33
  children: [/* @__PURE__ */ jsx("dt", {
33
- className: "border-b border-dashed border-border/80 py-2 text-xs text-muted-foreground",
34
+ className: "udc:border-b udc:border-dashed udc:border-border/80 udc:py-2 udc:text-xs udc:text-muted-foreground",
34
35
  children: t(section, field)
35
36
  }), /* @__PURE__ */ jsx("dd", {
36
- className: "min-w-0 border-b border-dashed border-border/80 py-2 text-[13px]",
37
+ className: "udc:min-w-0 udc:border-b udc:border-dashed udc:border-border/80 udc:py-2 udc:text-[13px]",
37
38
  children: /* @__PURE__ */ jsx(CellValue, {
38
39
  value: labels[field]?.get(String(row[field])) ?? row[field],
39
40
  column: view.columns.find((c) => c.field === field) ?? { field },
@@ -1 +1 @@
1
- {"version":3,"file":"CardDetailDialog.js","names":[],"sources":["../../src/kanban/CardDetailDialog.tsx"],"sourcesContent":["import type { DescribeResponse, Row } from \"@jsudc/core\";\nimport { Dialog, DialogBody, DialogContent } from \"../components/ui/dialog\";\nimport { tableSection, useI18n } from \"../i18n/i18n\";\nimport { CellValue } from \"../table/cells\";\n\n/**\n * A card, read-only: its title and body, then every live field as the table\n * formats it; the board and bucket ids read as their names. The tree opens\n * its nodes in it too, naming its own title and body fields.\n */\nexport function CardDetailDialog({\n row,\n describe,\n collection,\n labels,\n onClose,\n titleField = describe.view.kanban_options?.card.title_field,\n bodyField = describe.view.kanban_options?.card.body_field,\n testId = \"kanban-detail\",\n}: {\n row: Row | undefined;\n describe: DescribeResponse;\n collection: string;\n /** Names for id fields the board knows (the board and the bucket), by field. */\n labels: Record<string, ReadonlyMap<string, string>>;\n onClose: () => void;\n titleField?: string | undefined;\n bodyField?: string | undefined;\n testId?: string;\n}) {\n const { t, locale, intlLocale } = useI18n();\n const { schema, view } = describe;\n const section = tableSection(collection);\n const fields = schema.field_order.filter(\n (f) => !schema.fields[f]?.deleted && f !== titleField && f !== bodyField,\n );\n const body = row && bodyField ? row[bodyField] : null;\n\n return (\n <Dialog open={row !== undefined} onOpenChange={(open) => !open && onClose()}>\n {row ? (\n <DialogContent\n data-testid={testId}\n className=\"max-w-lg\"\n title={String((titleField && row[titleField]) || \"—\")}\n >\n <DialogBody>\n {typeof body === \"string\" && body ? (\n <p className=\"mb-4 text-[13px] leading-relaxed whitespace-pre-wrap text-muted-foreground\">\n {body}\n </p>\n ) : null}\n <dl className=\"grid grid-cols-[minmax(7rem,auto)_1fr] gap-x-4 border-t border-border\">\n {fields.map((field) => (\n <div key={field} className=\"contents\" data-testid={`${testId}-${field}`}>\n <dt className=\"border-b border-dashed border-border/80 py-2 text-xs text-muted-foreground\">\n {t(section, field)}\n </dt>\n <dd className=\"min-w-0 border-b border-dashed border-border/80 py-2 text-[13px]\">\n <CellValue\n value={labels[field]?.get(String(row[field])) ?? row[field]}\n column={view.columns.find((c) => c.field === field) ?? { field }}\n def={schema.fields[field]}\n locale={locale}\n intlLocale={intlLocale}\n />\n </dd>\n </div>\n ))}\n </dl>\n </DialogBody>\n </DialogContent>\n ) : null}\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,iBAAiB,EAC/B,KACA,UACA,YACA,QACA,SACA,aAAa,SAAS,KAAK,gBAAgB,KAAK,aAChD,YAAY,SAAS,KAAK,gBAAgB,KAAK,YAC/C,SAAS,mBAWR;CACD,MAAM,EAAE,GAAG,QAAQ,eAAe,QAAQ;CAC1C,MAAM,EAAE,QAAQ,SAAS;CACzB,MAAM,UAAU,aAAa,UAAU;CACvC,MAAM,SAAS,OAAO,YAAY,QAC/B,MAAM,CAAC,OAAO,OAAO,EAAE,EAAE,WAAW,MAAM,cAAc,MAAM,SACjE;CACA,MAAM,OAAO,OAAO,YAAY,IAAI,aAAa;CAEjD,OACE,oBAAC,QAAD;EAAQ,MAAM,QAAQ,KAAA;EAAW,eAAe,SAAS,CAAC,QAAQ,QAAQ;EACvE,UAAA,MACC,oBAAC,eAAD;GACE,eAAa;GACb,WAAU;GACV,OAAO,OAAQ,cAAc,IAAI,eAAgB,GAAG;GAEpD,UAAA,qBAAC,YAAD,EAAA,UAAA,CACG,OAAO,SAAS,YAAY,OAC3B,oBAAC,KAAD;IAAG,WAAU;IACV,UAAA;GACA,CAAA,IACD,MACJ,oBAAC,MAAD;IAAI,WAAU;IACX,UAAA,OAAO,KAAK,UACX,qBAAC,OAAD;KAAiB,WAAU;KAAW,eAAa,GAAG,OAAO,GAAG;KAAhE,UAAA,CACE,oBAAC,MAAD;MAAI,WAAU;MACX,UAAA,EAAE,SAAS,KAAK;KACf,CAAA,GACJ,oBAAC,MAAD;MAAI,WAAU;MACZ,UAAA,oBAAC,WAAD;OACE,OAAO,OAAO,MAAM,EAAE,IAAI,OAAO,IAAI,MAAM,CAAC,KAAK,IAAI;OACrD,QAAQ,KAAK,QAAQ,MAAM,MAAM,EAAE,UAAU,KAAK,KAAK,EAAE,MAAM;OAC/D,KAAK,OAAO,OAAO;OACX;OACI;MACb,CAAA;KACC,CAAA,CACD;IAbK,GAAA,KAaL,CACN;GACC,CAAA,CACM,EAAA,CAAA;EACC,CAAA,IACb;CACE,CAAA;AAEZ"}
1
+ {"version":3,"file":"CardDetailDialog.js","names":[],"sources":["../../src/kanban/CardDetailDialog.tsx"],"sourcesContent":["import type { DescribeResponse, Row } from \"@jsudc/core\";\nimport { tableSection, useI18n } from \"../i18n/i18n.js\";\nimport { CellValue } from \"../table/cells.js\";\nimport { useUiKit } from \"../ui-kit/context.js\";\n\n/**\n * A card, read-only: its title and body, then every live field as the table\n * formats it; the board and bucket ids read as their names. The tree opens\n * its nodes in it too, naming its own title and body fields.\n */\nexport function CardDetailDialog({\n row,\n describe,\n collection,\n labels,\n onClose,\n titleField = describe.view.kanban_options?.card.title_field,\n bodyField = describe.view.kanban_options?.card.body_field,\n testId = \"kanban-detail\",\n}: {\n row: Row | undefined;\n describe: DescribeResponse;\n collection: string;\n /** Names for id fields the board knows (the board and the bucket), by field. */\n labels: Record<string, ReadonlyMap<string, string>>;\n onClose: () => void;\n titleField?: string | undefined;\n bodyField?: string | undefined;\n testId?: string;\n}) {\n const { Dialog, DialogBody, DialogContent } = useUiKit();\n const { t, locale, intlLocale } = useI18n();\n const { schema, view } = describe;\n const section = tableSection(collection);\n const fields = schema.field_order.filter(\n (f) => !schema.fields[f]?.deleted && f !== titleField && f !== bodyField,\n );\n const body = row && bodyField ? row[bodyField] : null;\n\n return (\n <Dialog open={row !== undefined} onOpenChange={(open) => !open && onClose()}>\n {row ? (\n <DialogContent\n data-testid={testId}\n className=\"udc:max-w-lg\"\n title={String((titleField && row[titleField]) || \"—\")}\n >\n <DialogBody>\n {typeof body === \"string\" && body ? (\n <p className=\"udc:mb-4 udc:text-[13px] udc:leading-relaxed udc:whitespace-pre-wrap udc:text-muted-foreground\">\n {body}\n </p>\n ) : null}\n <dl className=\"udc:grid udc:grid-cols-[minmax(7rem,auto)_1fr] udc:gap-x-4 udc:border-t udc:border-border\">\n {fields.map((field) => (\n <div key={field} className=\"udc:contents\" data-testid={`${testId}-${field}`}>\n <dt className=\"udc:border-b udc:border-dashed udc:border-border/80 udc:py-2 udc:text-xs udc:text-muted-foreground\">\n {t(section, field)}\n </dt>\n <dd className=\"udc:min-w-0 udc:border-b udc:border-dashed udc:border-border/80 udc:py-2 udc:text-[13px]\">\n <CellValue\n value={labels[field]?.get(String(row[field])) ?? row[field]}\n column={view.columns.find((c) => c.field === field) ?? { field }}\n def={schema.fields[field]}\n locale={locale}\n intlLocale={intlLocale}\n />\n </dd>\n </div>\n ))}\n </dl>\n </DialogBody>\n </DialogContent>\n ) : null}\n </Dialog>\n );\n}\n"],"mappings":";;;;;;;;;;AAUA,SAAgB,iBAAiB,EAC/B,KACA,UACA,YACA,QACA,SACA,aAAa,SAAS,KAAK,gBAAgB,KAAK,aAChD,YAAY,SAAS,KAAK,gBAAgB,KAAK,YAC/C,SAAS,mBAWR;CACD,MAAM,EAAE,QAAQ,YAAY,kBAAkB,SAAS;CACvD,MAAM,EAAE,GAAG,QAAQ,eAAe,QAAQ;CAC1C,MAAM,EAAE,QAAQ,SAAS;CACzB,MAAM,UAAU,aAAa,UAAU;CACvC,MAAM,SAAS,OAAO,YAAY,QAC/B,MAAM,CAAC,OAAO,OAAO,EAAE,EAAE,WAAW,MAAM,cAAc,MAAM,SACjE;CACA,MAAM,OAAO,OAAO,YAAY,IAAI,aAAa;CAEjD,OACE,oBAAC,QAAD;EAAQ,MAAM,QAAQ,KAAA;EAAW,eAAe,SAAS,CAAC,QAAQ,QAAQ;EACvE,UAAA,MACC,oBAAC,eAAD;GACE,eAAa;GACb,WAAU;GACV,OAAO,OAAQ,cAAc,IAAI,eAAgB,GAAG;GAEpD,UAAA,qBAAC,YAAD,EAAA,UAAA,CACG,OAAO,SAAS,YAAY,OAC3B,oBAAC,KAAD;IAAG,WAAU;IACV,UAAA;GACA,CAAA,IACD,MACJ,oBAAC,MAAD;IAAI,WAAU;IACX,UAAA,OAAO,KAAK,UACX,qBAAC,OAAD;KAAiB,WAAU;KAAe,eAAa,GAAG,OAAO,GAAG;KAApE,UAAA,CACE,oBAAC,MAAD;MAAI,WAAU;MACX,UAAA,EAAE,SAAS,KAAK;KACf,CAAA,GACJ,oBAAC,MAAD;MAAI,WAAU;MACZ,UAAA,oBAAC,WAAD;OACE,OAAO,OAAO,MAAM,EAAE,IAAI,OAAO,IAAI,MAAM,CAAC,KAAK,IAAI;OACrD,QAAQ,KAAK,QAAQ,MAAM,MAAM,EAAE,UAAU,KAAK,KAAK,EAAE,MAAM;OAC/D,KAAK,OAAO,OAAO;OACX;OACI;MACb,CAAA;KACC,CAAA,CACD;IAbK,GAAA,KAaL,CACN;GACC,CAAA,CACM,EAAA,CAAA;EACC,CAAA,IACb;CACE,CAAA;AAEZ"}
@@ -1,19 +1,19 @@
1
- import { Skeleton } from "../components/ui/misc.js";
2
- import { Select } from "../components/ui/select.js";
3
1
  import { useI18n } from "../i18n/i18n.js";
2
+ import { useUiKit } from "../ui-kit/context.js";
4
3
  import { useKanbanBoard } from "./useKanbanBoard.js";
5
4
  import { jsx } from "react/jsx-runtime";
6
5
  // src/kanban/KanbanBoardSwitcher.tsx
7
6
  /** The board select in the toolbar; writes `?board=`. */
8
7
  function KanbanBoardSwitcher({ describe }) {
8
+ const { Select, Skeleton } = useUiKit();
9
9
  const { t } = useI18n();
10
10
  const { boards, boardId, setBoard, isLoading } = useKanbanBoard(describe);
11
- if (isLoading) return /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-44" });
11
+ if (isLoading) return /* @__PURE__ */ jsx(Skeleton, { className: "udc:h-8 udc:w-44" });
12
12
  if (boards.length === 0) return null;
13
13
  return /* @__PURE__ */ jsx(Select, {
14
14
  "aria-label": t("APP", "KANBAN_BOARD"),
15
15
  "data-testid": "board-switcher",
16
- className: "w-48",
16
+ className: "udc:w-48",
17
17
  value: boardId ?? void 0,
18
18
  onValueChange: setBoard,
19
19
  options: boards.map((b) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanBoardSwitcher.js","names":[],"sources":["../../src/kanban/KanbanBoardSwitcher.tsx"],"sourcesContent":["import type { DescribeResponse } from \"@jsudc/core\";\nimport { Skeleton } from \"../components/ui/misc\";\nimport { Select } from \"../components/ui/select\";\nimport { useI18n } from \"../i18n/i18n\";\nimport { useKanbanBoard } from \"./useKanbanBoard\";\n\n/** The board select in the toolbar; writes `?board=`. */\nexport function KanbanBoardSwitcher({\n describe,\n}: {\n collection: string;\n describe: DescribeResponse;\n}) {\n const { t } = useI18n();\n const { boards, boardId, setBoard, isLoading } = useKanbanBoard(describe);\n if (isLoading) return <Skeleton className=\"h-8 w-44\" />;\n if (boards.length === 0) return null;\n return (\n <Select\n aria-label={t(\"APP\", \"KANBAN_BOARD\")}\n data-testid=\"board-switcher\"\n className=\"w-48\"\n value={boardId ?? undefined}\n onValueChange={setBoard}\n options={boards.map((b) => ({ value: b.id, label: b.label }))}\n />\n );\n}\n"],"mappings":";;;;;;;AAOA,SAAgB,oBAAoB,EAClC,YAIC;CACD,MAAM,EAAE,MAAM,QAAQ;CACtB,MAAM,EAAE,QAAQ,SAAS,UAAU,cAAc,eAAe,QAAQ;CACxE,IAAI,WAAW,OAAO,oBAAC,UAAD,EAAU,WAAU,WAAY,CAAA;CACtD,IAAI,OAAO,WAAW,GAAG,OAAO;CAChC,OACE,oBAAC,QAAD;EACE,cAAY,EAAE,OAAO,cAAc;EACnC,eAAY;EACZ,WAAU;EACV,OAAO,WAAW,KAAA;EAClB,eAAe;EACf,SAAS,OAAO,KAAK,OAAO;GAAE,OAAO,EAAE;GAAI,OAAO,EAAE;EAAM,EAAE;CAC7D,CAAA;AAEL"}
1
+ {"version":3,"file":"KanbanBoardSwitcher.js","names":[],"sources":["../../src/kanban/KanbanBoardSwitcher.tsx"],"sourcesContent":["import type { DescribeResponse } from \"@jsudc/core\";\nimport { useI18n } from \"../i18n/i18n.js\";\nimport { useUiKit } from \"../ui-kit/context.js\";\nimport { useKanbanBoard } from \"./useKanbanBoard.js\";\n\n/** The board select in the toolbar; writes `?board=`. */\nexport function KanbanBoardSwitcher({\n describe,\n}: {\n collection: string;\n describe: DescribeResponse;\n}) {\n const { Select, Skeleton } = useUiKit();\n const { t } = useI18n();\n const { boards, boardId, setBoard, isLoading } = useKanbanBoard(describe);\n if (isLoading) return <Skeleton className=\"udc:h-8 udc:w-44\" />;\n if (boards.length === 0) return null;\n return (\n <Select\n aria-label={t(\"APP\", \"KANBAN_BOARD\")}\n data-testid=\"board-switcher\"\n className=\"udc:w-48\"\n value={boardId ?? undefined}\n onValueChange={setBoard}\n options={boards.map((b) => ({ value: b.id, label: b.label }))}\n />\n );\n}\n"],"mappings":";;;;;;AAMA,SAAgB,oBAAoB,EAClC,YAIC;CACD,MAAM,EAAE,QAAQ,aAAa,SAAS;CACtC,MAAM,EAAE,MAAM,QAAQ;CACtB,MAAM,EAAE,QAAQ,SAAS,UAAU,cAAc,eAAe,QAAQ;CACxE,IAAI,WAAW,OAAO,oBAAC,UAAD,EAAU,WAAU,mBAAoB,CAAA;CAC9D,IAAI,OAAO,WAAW,GAAG,OAAO;CAChC,OACE,oBAAC,QAAD;EACE,cAAY,EAAE,OAAO,cAAc;EACnC,eAAY;EACZ,WAAU;EACV,OAAO,WAAW,KAAA;EAClB,eAAe;EACf,SAAS,OAAO,KAAK,OAAO;GAAE,OAAO,EAAE;GAAI,OAAO,EAAE;EAAM,EAAE;CAC7D,CAAA;AAEL"}