@godxjp/ui 6.3.0 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/app/index.js +4 -4
  2. package/dist/{chunk-LFLHBTDK.js → chunk-2WGV7GGO.js} +1 -1
  3. package/dist/{chunk-PPXBEAAM.js → chunk-AQWA7G5X.js} +2 -2
  4. package/dist/{chunk-7JN4JXK6.js → chunk-AYTQ7CD3.js} +110 -22
  5. package/dist/{chunk-7W3CHMLL.js → chunk-CJVXTCYD.js} +1 -1
  6. package/dist/{chunk-R2B7XJ6A.js → chunk-DGDQNZS3.js} +13 -4
  7. package/dist/{chunk-UGQ3HQD5.js → chunk-DGI4B3GN.js} +1 -1
  8. package/dist/chunk-DV52WNXO.js +8 -0
  9. package/dist/{chunk-5DRKN2HI.js → chunk-HGRRL34G.js} +1 -1
  10. package/dist/{chunk-PUY25RRT.js → chunk-I2SHXSYY.js} +1 -1
  11. package/dist/{chunk-UCF25X5E.js → chunk-IJULK64S.js} +2 -2
  12. package/dist/{chunk-J6ZZVN6T.js → chunk-K6D7LQWC.js} +2 -2
  13. package/dist/{chunk-FKAXA6OI.js → chunk-LQGSZODY.js} +1 -1
  14. package/dist/{chunk-EYLUVDHJ.js → chunk-NHD5XDMX.js} +1 -1
  15. package/dist/{chunk-MIVDO3Z3.js → chunk-QT3T2HEI.js} +2 -2
  16. package/dist/{chunk-RGSH6FQN.js → chunk-RP3NH5QJ.js} +1 -1
  17. package/dist/{chunk-6BJ2X7PA.js → chunk-TRVOPU4U.js} +9 -3
  18. package/dist/{chunk-QDAASTWZ.js → chunk-WDJOIRXN.js} +1 -1
  19. package/dist/{chunk-WUXFOY6M.js → chunk-WM5MKEOD.js} +2 -2
  20. package/dist/{chunk-FNZQTYAG.js → chunk-Z33J65PB.js} +2 -2
  21. package/dist/{chunk-TDTNDXWK.js → chunk-ZFK2XCXU.js} +3 -3
  22. package/dist/components/admin/index.d.ts +4 -4
  23. package/dist/components/admin/index.js +15 -14
  24. package/dist/components/data-display/index.d.ts +1 -1
  25. package/dist/components/data-display/index.js +5 -8
  26. package/dist/components/data-entry/autocomplete.js +3 -3
  27. package/dist/components/data-entry/cascader.js +3 -3
  28. package/dist/components/data-entry/color-picker.js +3 -3
  29. package/dist/components/data-entry/command.d.ts +5 -5
  30. package/dist/components/data-entry/date-picker.js +3 -3
  31. package/dist/components/data-entry/date-range-picker.js +3 -3
  32. package/dist/components/data-entry/index.js +13 -13
  33. package/dist/components/data-entry/time-picker.js +3 -3
  34. package/dist/components/data-entry/transfer.js +3 -3
  35. package/dist/components/data-entry/tree-select.js +3 -3
  36. package/dist/components/data-entry/upload.js +5 -5
  37. package/dist/components/feedback/alert.js +4 -4
  38. package/dist/components/feedback/dialog.js +3 -3
  39. package/dist/components/feedback/index.js +5 -5
  40. package/dist/components/layout/index.d.ts +3 -3
  41. package/dist/components/layout/index.js +2 -1
  42. package/dist/components/navigation/index.d.ts +2 -2
  43. package/dist/components/navigation/index.js +4 -4
  44. package/dist/components/navigation/pagination.js +3 -3
  45. package/dist/components/query/index.js +5 -5
  46. package/dist/components/ui/index.js +12 -12
  47. package/dist/{data-table-Pd62B4WQ.d.ts → data-table-CnRksymA.d.ts} +5 -1
  48. package/dist/{filter-bar-XpspcQdZ.d.ts → filter-bar-CNEdQB7i.d.ts} +1 -1
  49. package/dist/i18n/index.d.ts +3 -1
  50. package/dist/i18n/index.js +2 -2
  51. package/dist/index.d.ts +4 -4
  52. package/dist/index.js +15 -14
  53. package/dist/{inline-C5u6ptJV.d.ts → inline-BuyFYZah.d.ts} +1 -1
  54. package/dist/{layout.prop-C795F0qg.d.ts → layout.prop-CjlAEWgr.d.ts} +2 -0
  55. package/dist/lib/datetime/index.js +1 -1
  56. package/dist/props/components/index.d.ts +1 -1
  57. package/dist/props/index.d.ts +1 -1
  58. package/dist/props/index.js +1 -1
  59. package/dist/styles/shell-layout.css +75 -0
  60. package/dist/styles/table-layout.css +5 -0
  61. package/package.json +1 -1
package/dist/app/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { useAppContext } from '../chunk-EYLUVDHJ.js';
2
- export { APP_LOCALES, APP_REQUEST_HEADER_LOCALE, APP_REQUEST_HEADER_TIMEZONE, APP_TIMEZONE_OPTIONS, APP_TIMEZONE_PRESET, APP_TIME_FORMAT_OPTIONS, AppProvider, DEFAULT_STORAGE_KEY, TIMEZONE_ALIASES, formatTimezoneDisplayLabel, getAllIanaTimezones, getAppRequestHeaders, getBrowserTimezone, getTimeFormatLabel, getTimezoneCityName, getTimezoneLabel, getTimezoneOffsetLabel, isKnownAppTimezone, isValidIanaTimezone, readStoredPreferences, resetAppRequestHeaders, resetIanaTimezoneCacheForTests, resolveDefaultTimeFormat, resolveDefaultTimezone, resolveTimezoneForIntl, resolveTimezonePickerOptions, syncAppRequestHeaders, useAppContext, useAppDateFormat, useAppLocale, useAppTimeFormat, useAppTimezone, useOptionalAppContext, usePickerLocales, useTranslation, writeStoredPreferences } from '../chunk-EYLUVDHJ.js';
3
- import { formatDate } from '../chunk-6BJ2X7PA.js';
4
- export { APP_DATE_FORMATS, APP_DATE_FORMAT_OPTIONS, APP_LOCALE_CONFIG, APP_REQUEST_HEADER_DATE_FORMAT, APP_REQUEST_HEADER_TIME_FORMAT, APP_TIME_FORMATS, detectFormatDateKind, formatAppDate, formatAppDateLong, formatAppDateTime, formatAppRelative, formatAppTime, formatCalendarDate, formatDate, formatTimeOfDay, getDateFnsLocale, getDateFormatLabel, getDatePattern, getDateTimePattern, getDatetimeContext, getDayPickerLocale, getTimePattern, isAppDateFormat, isAppLocale, isAppTimeFormat, isFormatDateValue, isValidHhmm, normalizeHhmm, parseDateInput, resolveDefaultDateFormat, syncDatetimeContext } from '../chunk-6BJ2X7PA.js';
1
+ import { useAppContext } from '../chunk-NHD5XDMX.js';
2
+ export { APP_LOCALES, APP_REQUEST_HEADER_LOCALE, APP_REQUEST_HEADER_TIMEZONE, APP_TIMEZONE_OPTIONS, APP_TIMEZONE_PRESET, APP_TIME_FORMAT_OPTIONS, AppProvider, DEFAULT_STORAGE_KEY, TIMEZONE_ALIASES, formatTimezoneDisplayLabel, getAllIanaTimezones, getAppRequestHeaders, getBrowserTimezone, getTimeFormatLabel, getTimezoneCityName, getTimezoneLabel, getTimezoneOffsetLabel, isKnownAppTimezone, isValidIanaTimezone, readStoredPreferences, resetAppRequestHeaders, resetIanaTimezoneCacheForTests, resolveDefaultTimeFormat, resolveDefaultTimezone, resolveTimezoneForIntl, resolveTimezonePickerOptions, syncAppRequestHeaders, useAppContext, useAppDateFormat, useAppLocale, useAppTimeFormat, useAppTimezone, useOptionalAppContext, usePickerLocales, useTranslation, writeStoredPreferences } from '../chunk-NHD5XDMX.js';
3
+ import { formatDate } from '../chunk-TRVOPU4U.js';
4
+ export { APP_DATE_FORMATS, APP_DATE_FORMAT_OPTIONS, APP_LOCALE_CONFIG, APP_REQUEST_HEADER_DATE_FORMAT, APP_REQUEST_HEADER_TIME_FORMAT, APP_TIME_FORMATS, detectFormatDateKind, formatAppDate, formatAppDateLong, formatAppDateTime, formatAppRelative, formatAppTime, formatCalendarDate, formatDate, formatTimeOfDay, getDateFnsLocale, getDateFormatLabel, getDatePattern, getDateTimePattern, getDatetimeContext, getDayPickerLocale, getTimePattern, isAppDateFormat, isAppLocale, isAppTimeFormat, isFormatDateValue, isValidHhmm, normalizeHhmm, parseDateInput, resolveDefaultDateFormat, syncDatetimeContext } from '../chunk-TRVOPU4U.js';
5
5
  import { useMemo } from 'react';
6
6
 
7
7
  function useFormatting() {
@@ -4,7 +4,7 @@ import { Input } from './chunk-VOHTRR5X.js';
4
4
  import { ScrollArea } from './chunk-3KPEZ5CF.js';
5
5
  import { Button } from './chunk-HJEBRCXL.js';
6
6
  import { Label } from './chunk-7PWBC4BY.js';
7
- import { useTranslation } from './chunk-EYLUVDHJ.js';
7
+ import { useTranslation } from './chunk-NHD5XDMX.js';
8
8
  import { cn } from './chunk-U7N2A7A3.js';
9
9
  import * as React from 'react';
10
10
  import { useState, useEffect } from 'react';
@@ -2,8 +2,8 @@ import { Calendar } from './chunk-I2V4Y2VF.js';
2
2
  import { Input } from './chunk-VOHTRR5X.js';
3
3
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
4
4
  import { Button } from './chunk-HJEBRCXL.js';
5
- import { useTranslation, usePickerLocales } from './chunk-EYLUVDHJ.js';
6
- import { toIsoDate, parseDateInput } from './chunk-6BJ2X7PA.js';
5
+ import { useTranslation, usePickerLocales } from './chunk-NHD5XDMX.js';
6
+ import { toIsoDate, parseDateInput } from './chunk-TRVOPU4U.js';
7
7
  import { cn } from './chunk-U7N2A7A3.js';
8
8
  import * as React from 'react';
9
9
  import { CalendarIcon } from 'lucide-react';
@@ -1,3 +1,4 @@
1
+ import { Collapsible, CollapsibleTrigger, CollapsibleContent } from './chunk-DV52WNXO.js';
1
2
  import { densityClass, pageContainerVariantClass, stackGapClass } from './chunk-S66TJXJU.js';
2
3
  import { Badge } from './chunk-PIIRNAXA.js';
3
4
  import { cn } from './chunk-U7N2A7A3.js';
@@ -196,6 +197,97 @@ function ShellApp({ menu, breadcrumb, children }) {
196
197
  }
197
198
  );
198
199
  }
200
+ function isItemActive(item, activeId) {
201
+ if (item.id === activeId) return true;
202
+ return (item.children ?? []).some((child) => isItemActive(child, activeId));
203
+ }
204
+ function NavLeaf({ item, activeId, collapsed, onSelect, sub = false }) {
205
+ const Icon = item.icon;
206
+ const active = item.id === activeId;
207
+ return /* @__PURE__ */ jsxs(
208
+ "button",
209
+ {
210
+ type: "button",
211
+ className: cn("sb-nav-item", sub && "sb-nav-item--sub"),
212
+ "data-active": active ? "true" : void 0,
213
+ "aria-current": active ? "page" : void 0,
214
+ "aria-disabled": item.disabled,
215
+ "aria-label": collapsed ? item.label : void 0,
216
+ onClick: () => {
217
+ if (!item.disabled) onSelect?.(item.id);
218
+ },
219
+ children: [
220
+ !sub ? /* @__PURE__ */ jsx("span", { className: "sb-icon", children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }) }) : null,
221
+ !collapsed && /* @__PURE__ */ jsx("span", { className: "sb-label", children: item.label }),
222
+ !collapsed && item.badge !== void 0 && item.badge !== "" ? /* @__PURE__ */ jsx("span", { className: "sb-badge", children: item.badge }) : null,
223
+ collapsed && !sub ? /* @__PURE__ */ jsx("span", { className: "sb-flyout", children: item.label }) : null
224
+ ]
225
+ }
226
+ );
227
+ }
228
+ function NavGroup({ item, activeId, collapsed, onSelect }) {
229
+ const Icon = item.icon;
230
+ const active = isItemActive(item, activeId);
231
+ const children = item.children ?? [];
232
+ if (collapsed) {
233
+ return /* @__PURE__ */ jsxs("div", { className: "sb-nav-fly", children: [
234
+ /* @__PURE__ */ jsx(
235
+ "button",
236
+ {
237
+ type: "button",
238
+ className: "sb-nav-item",
239
+ "data-active": active ? "true" : void 0,
240
+ "aria-label": item.label,
241
+ "aria-haspopup": "menu",
242
+ children: /* @__PURE__ */ jsx("span", { className: "sb-icon", children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }) })
243
+ }
244
+ ),
245
+ /* @__PURE__ */ jsxs("span", { className: "sb-flyout sb-flyout--group", role: "menu", children: [
246
+ /* @__PURE__ */ jsx("span", { className: "sb-flyout-title", children: item.label }),
247
+ children.map((child) => /* @__PURE__ */ jsx(
248
+ "button",
249
+ {
250
+ type: "button",
251
+ role: "menuitem",
252
+ className: "sb-nav-item sb-nav-item--sub",
253
+ "data-active": child.id === activeId ? "true" : void 0,
254
+ "aria-current": child.id === activeId ? "page" : void 0,
255
+ onClick: () => {
256
+ if (!child.disabled) onSelect?.(child.id);
257
+ },
258
+ children: /* @__PURE__ */ jsx("span", { className: "sb-label", children: child.label })
259
+ },
260
+ child.id
261
+ ))
262
+ ] })
263
+ ] });
264
+ }
265
+ return /* @__PURE__ */ jsxs(Collapsible, { defaultOpen: active, children: [
266
+ /* @__PURE__ */ jsxs(
267
+ CollapsibleTrigger,
268
+ {
269
+ className: "sb-nav-item sb-nav-group-trigger",
270
+ "data-active": active ? "true" : void 0,
271
+ children: [
272
+ /* @__PURE__ */ jsx("span", { className: "sb-icon", children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }) }),
273
+ /* @__PURE__ */ jsx("span", { className: "sb-label", children: item.label }),
274
+ /* @__PURE__ */ jsx(ChevronDown, { className: "sb-chevron", "aria-hidden": "true" })
275
+ ]
276
+ }
277
+ ),
278
+ /* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "sb-nav-sub", children: children.map((child) => /* @__PURE__ */ jsx(
279
+ NavLeaf,
280
+ {
281
+ item: child,
282
+ activeId,
283
+ collapsed: false,
284
+ onSelect,
285
+ sub: true
286
+ },
287
+ child.id
288
+ )) }) })
289
+ ] });
290
+ }
199
291
  function Sidebar({
200
292
  activeId,
201
293
  onSelect,
@@ -233,31 +325,27 @@ function Sidebar({
233
325
  ) : null,
234
326
  /* @__PURE__ */ jsx("div", { className: "sb-nav-scroll", children: sections.map((section, sectionIndex) => /* @__PURE__ */ jsxs("div", { className: "sb-section", children: [
235
327
  section.label && !collapsed ? /* @__PURE__ */ jsx("div", { className: "sb-section-label", children: section.label }) : null,
236
- /* @__PURE__ */ jsx("div", { className: "sb-nav", role: "navigation", children: section.items.map((item) => {
237
- const Icon = item.icon;
238
- const isActive = item.id === activeId;
239
- return /* @__PURE__ */ jsxs(
240
- "button",
328
+ /* @__PURE__ */ jsx("div", { className: "sb-nav", role: "navigation", children: section.items.map(
329
+ (item) => item.children && item.children.length > 0 ? /* @__PURE__ */ jsx(
330
+ NavGroup,
241
331
  {
242
- type: "button",
243
- className: cn("sb-nav-item"),
244
- "data-active": isActive ? "true" : void 0,
245
- "aria-current": isActive ? "page" : void 0,
246
- "aria-disabled": item.disabled,
247
- "aria-label": collapsed ? item.label : void 0,
248
- title: collapsed ? item.label : void 0,
249
- onClick: () => {
250
- if (!item.disabled) onSelect?.(item.id);
251
- },
252
- children: [
253
- /* @__PURE__ */ jsx("span", { className: "sb-icon", children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" }) }),
254
- !collapsed && /* @__PURE__ */ jsx("span", { className: "sb-label", children: item.label }),
255
- !collapsed && item.badge !== void 0 && item.badge !== "" ? /* @__PURE__ */ jsx("span", { className: "sb-badge", children: item.badge }) : null
256
- ]
332
+ item,
333
+ activeId,
334
+ collapsed,
335
+ onSelect
336
+ },
337
+ item.id
338
+ ) : /* @__PURE__ */ jsx(
339
+ NavLeaf,
340
+ {
341
+ item,
342
+ activeId,
343
+ collapsed,
344
+ onSelect
257
345
  },
258
346
  item.id
259
- );
260
- }) })
347
+ )
348
+ ) })
261
349
  ] }, section.label ?? sectionIndex)) }),
262
350
  footer ? /* @__PURE__ */ jsx("div", { className: "sb-footer", children: footer }) : null
263
351
  ] });
@@ -1,4 +1,4 @@
1
- import { formatDate, translateCurrent } from './chunk-6BJ2X7PA.js';
1
+ import { formatDate, translateCurrent } from './chunk-TRVOPU4U.js';
2
2
 
3
3
  // src/lib/format.ts
4
4
  function formatDateTime(value, options) {
@@ -2,7 +2,7 @@ import { Inline, densityClass } from './chunk-S66TJXJU.js';
2
2
  import { Table, TableHeader, TableRow, TableHead, TableBody, TableCell } from './chunk-ZS6DTAM2.js';
3
3
  import { Button } from './chunk-HJEBRCXL.js';
4
4
  import { tableCellPaddingClass, tableRowHeightClass, controlIconSmClass, toneNeutralClass, toneInfoClass, toneDestructiveClass, toneWarningClass, toneSuccessClass } from './chunk-ICM6XBST.js';
5
- import { useTranslation } from './chunk-EYLUVDHJ.js';
5
+ import { useTranslation } from './chunk-NHD5XDMX.js';
6
6
  import { cn } from './chunk-U7N2A7A3.js';
7
7
  import { jsx, jsxs } from 'react/jsx-runtime';
8
8
  import { Layers, Layers2, ArrowUp, ArrowDown, ChevronsUpDown, MoreHorizontal, XCircle, Pause, CheckCircle2, Circle, Trash2, AlertCircle, Clock, Play } from 'lucide-react';
@@ -101,6 +101,8 @@ function DataTable({
101
101
  onDensityChange,
102
102
  sort,
103
103
  onSortChange,
104
+ loading = false,
105
+ empty,
104
106
  className,
105
107
  children
106
108
  }) {
@@ -122,6 +124,7 @@ function DataTable({
122
124
  else next.add(id);
123
125
  setSelected(next);
124
126
  };
127
+ const emptyColSpan = columns.length + (selectable ? 1 : 0);
125
128
  const allSelected = data.length > 0 && data.every((r) => selected.has(getRowId(r)));
126
129
  const someSelected = !allSelected && data.some((r) => selected.has(getRowId(r)));
127
130
  const toggleSelectAll = () => {
@@ -142,7 +145,10 @@ function DataTable({
142
145
  getRowId,
143
146
  onRowClick,
144
147
  sort,
145
- onSortChange
148
+ onSortChange,
149
+ loading,
150
+ empty,
151
+ emptyColSpan
146
152
  };
147
153
  const hasContent = React.Children.toArray(children).some(
148
154
  (c) => React.isValidElement(c) && c.type.displayName === "DataTable.Content"
@@ -244,7 +250,10 @@ DataTable.Content = function DataTableContent() {
244
250
  getRowId,
245
251
  onRowClick,
246
252
  sort,
247
- onSortChange
253
+ onSortChange,
254
+ loading,
255
+ empty,
256
+ emptyColSpan
248
257
  } = useDataTableContext();
249
258
  const { t } = useTranslation();
250
259
  const rowPadding = tableRowHeightClass;
@@ -290,7 +299,7 @@ DataTable.Content = function DataTableContent() {
290
299
  col.key
291
300
  ))
292
301
  ] }) }),
293
- /* @__PURE__ */ jsx(TableBody, { children: data.map((row) => {
302
+ /* @__PURE__ */ jsx(TableBody, { children: loading ? /* @__PURE__ */ jsx(TableRow, { className: "hover:bg-transparent", children: /* @__PURE__ */ jsx(TableCell, { colSpan: emptyColSpan, className: "h-32 text-center", children: /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm", children: t("dataTable.loading") }) }) }) : data.length === 0 ? /* @__PURE__ */ jsx(TableRow, { className: "hover:bg-transparent", children: /* @__PURE__ */ jsx(TableCell, { colSpan: emptyColSpan, className: "ui-data-table-empty", children: empty ?? /* @__PURE__ */ jsx(EmptyState, { title: t("dataTable.empty") }) }) }) : data.map((row) => {
294
303
  const id = getRowId(row);
295
304
  const isSelected = selected.has(id);
296
305
  return /* @__PURE__ */ jsxs(
@@ -4,7 +4,7 @@ import { ScrollArea } from './chunk-3KPEZ5CF.js';
4
4
  import { Command, CommandInput } from './chunk-V6UWJKZF.js';
5
5
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
6
6
  import { Button } from './chunk-HJEBRCXL.js';
7
- import { useTranslation } from './chunk-EYLUVDHJ.js';
7
+ import { useTranslation } from './chunk-NHD5XDMX.js';
8
8
  import { cn } from './chunk-U7N2A7A3.js';
9
9
  import * as React from 'react';
10
10
  import { X, ChevronsUpDown, ChevronDown, ChevronRight } from 'lucide-react';
@@ -0,0 +1,8 @@
1
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
+
3
+ // src/components/data-display/collapsible.tsx
4
+ var Collapsible = CollapsiblePrimitive.Root;
5
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
6
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
7
+
8
+ export { Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger };
@@ -1,7 +1,7 @@
1
1
  import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from './chunk-V6UWJKZF.js';
2
2
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
3
3
  import { Button } from './chunk-HJEBRCXL.js';
4
- import { useTranslation } from './chunk-EYLUVDHJ.js';
4
+ import { useTranslation } from './chunk-NHD5XDMX.js';
5
5
  import { cn } from './chunk-U7N2A7A3.js';
6
6
  import * as React from 'react';
7
7
  import { ChevronsUpDown, Check } from 'lucide-react';
@@ -1,6 +1,6 @@
1
1
  import { Input } from './chunk-VOHTRR5X.js';
2
2
  import { controlIconClass } from './chunk-ICM6XBST.js';
3
- import { useTranslation } from './chunk-EYLUVDHJ.js';
3
+ import { useTranslation } from './chunk-NHD5XDMX.js';
4
4
  import { cn } from './chunk-U7N2A7A3.js';
5
5
  import * as React from 'react';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -2,8 +2,8 @@ import { Calendar } from './chunk-I2V4Y2VF.js';
2
2
  import { Input } from './chunk-VOHTRR5X.js';
3
3
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
4
4
  import { Button } from './chunk-HJEBRCXL.js';
5
- import { useTranslation, usePickerLocales } from './chunk-EYLUVDHJ.js';
6
- import { toIsoDate, parseDateInput } from './chunk-6BJ2X7PA.js';
5
+ import { useTranslation, usePickerLocales } from './chunk-NHD5XDMX.js';
6
+ import { toIsoDate, parseDateInput } from './chunk-TRVOPU4U.js';
7
7
  import { cn } from './chunk-U7N2A7A3.js';
8
8
  import * as React from 'react';
9
9
  import { CalendarIcon } from 'lucide-react';
@@ -1,8 +1,8 @@
1
1
  import { Input } from './chunk-VOHTRR5X.js';
2
2
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
3
3
  import { Button } from './chunk-HJEBRCXL.js';
4
- import { useTranslation } from './chunk-EYLUVDHJ.js';
5
- import { normalizeHhmm, isValidHhmm } from './chunk-6BJ2X7PA.js';
4
+ import { useTranslation } from './chunk-NHD5XDMX.js';
5
+ import { normalizeHhmm, isValidHhmm } from './chunk-TRVOPU4U.js';
6
6
  import { cn } from './chunk-U7N2A7A3.js';
7
7
  import * as React from 'react';
8
8
  import { Clock } from 'lucide-react';
@@ -1,7 +1,7 @@
1
1
  import { Input } from './chunk-VOHTRR5X.js';
2
2
  import { buttonVariants, Button } from './chunk-HJEBRCXL.js';
3
3
  import { Label } from './chunk-7PWBC4BY.js';
4
- import { useTranslation } from './chunk-EYLUVDHJ.js';
4
+ import { useTranslation } from './chunk-NHD5XDMX.js';
5
5
  import { cn } from './chunk-U7N2A7A3.js';
6
6
  import * as React from 'react';
7
7
  import * as DialogPrimitive from '@radix-ui/react-dialog';
@@ -1,4 +1,4 @@
1
- import { APP_TIME_FORMATS, isAppDateFormat, isAppTimeFormat, isAppLocale, translate, getDateFnsLocale, syncI18nLocale, syncDatetimeContext, disableLiveRelativeFormatting, enableLiveRelativeFormatting, getDayPickerLocale, APP_REQUEST_HEADER_DATE_FORMAT, APP_REQUEST_HEADER_TIME_FORMAT, resolveDefaultDateFormat } from './chunk-6BJ2X7PA.js';
1
+ import { APP_TIME_FORMATS, isAppDateFormat, isAppTimeFormat, isAppLocale, translate, getDateFnsLocale, syncI18nLocale, syncDatetimeContext, disableLiveRelativeFormatting, enableLiveRelativeFormatting, getDayPickerLocale, APP_REQUEST_HEADER_DATE_FORMAT, APP_REQUEST_HEADER_TIME_FORMAT, resolveDefaultDateFormat } from './chunk-TRVOPU4U.js';
2
2
  import * as React from 'react';
3
3
  import { useMemo } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,7 +1,7 @@
1
1
  import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-UX634MYF.js';
2
2
  import { Button } from './chunk-HJEBRCXL.js';
3
- import { useTranslation, useOptionalAppContext, APP_LOCALES, resolveTimezonePickerOptions, getTimezoneLabel, APP_TIME_FORMAT_OPTIONS, getTimeFormatLabel } from './chunk-EYLUVDHJ.js';
4
- import { APP_DATE_FORMAT_OPTIONS, getDateFormatLabel } from './chunk-6BJ2X7PA.js';
3
+ import { useTranslation, useOptionalAppContext, APP_LOCALES, resolveTimezonePickerOptions, getTimezoneLabel, APP_TIME_FORMAT_OPTIONS, getTimeFormatLabel } from './chunk-NHD5XDMX.js';
4
+ import { APP_DATE_FORMAT_OPTIONS, getDateFormatLabel } from './chunk-TRVOPU4U.js';
5
5
  import { cn } from './chunk-U7N2A7A3.js';
6
6
  import { X, ChevronRight, Languages, Globe, Clock, CalendarDays } from 'lucide-react';
7
7
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from './chunk-UX634MYF.js';
2
2
  import { Button } from './chunk-HJEBRCXL.js';
3
- import { useTranslation } from './chunk-EYLUVDHJ.js';
3
+ import { useTranslation } from './chunk-NHD5XDMX.js';
4
4
  import { cn } from './chunk-U7N2A7A3.js';
5
5
  import { ChevronLeft, ChevronRight, MoreHorizontal } from 'lucide-react';
6
6
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -198,7 +198,9 @@ var en_default = {
198
198
  densityCompact: "Compact",
199
199
  densityComfortable: "Comfortable",
200
200
  densitySwitch: "Switch to {density} density",
201
- rowActions: "Row actions"
201
+ rowActions: "Row actions",
202
+ empty: "No data",
203
+ loading: "Loading\u2026"
202
204
  },
203
205
  status: {
204
206
  active: "Active",
@@ -376,7 +378,9 @@ var ja_default = {
376
378
  densityCompact: "\u30B3\u30F3\u30D1\u30AF\u30C8",
377
379
  densityComfortable: "\u5FEB\u9069",
378
380
  densitySwitch: "{density} \u8868\u793A\u306B\u5207\u308A\u66FF\u3048",
379
- rowActions: "\u884C\u306E\u64CD\u4F5C"
381
+ rowActions: "\u884C\u306E\u64CD\u4F5C",
382
+ empty: "\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093",
383
+ loading: "\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"
380
384
  },
381
385
  status: {
382
386
  active: "\u6709\u52B9",
@@ -554,7 +558,9 @@ var vi_default = {
554
558
  densityCompact: "G\u1ECDn",
555
559
  densityComfortable: "Tho\u1EA3i m\xE1i",
556
560
  densitySwitch: "Chuy\u1EC3n sang m\u1EADt \u0111\u1ED9 {density}",
557
- rowActions: "Thao t\xE1c d\xF2ng"
561
+ rowActions: "Thao t\xE1c d\xF2ng",
562
+ empty: "Ch\u01B0a c\xF3 d\u1EEF li\u1EC7u",
563
+ loading: "\u0110ang t\u1EA3i\u2026"
558
564
  },
559
565
  status: {
560
566
  active: "\u0110ang ho\u1EA1t \u0111\u1ED9ng",
@@ -4,7 +4,7 @@ import { ScrollArea, ScrollBar } from './chunk-3KPEZ5CF.js';
4
4
  import { Command, CommandInput } from './chunk-V6UWJKZF.js';
5
5
  import { Popover, PopoverTrigger, PopoverContent } from './chunk-DY5C44UP.js';
6
6
  import { Button } from './chunk-HJEBRCXL.js';
7
- import { useTranslation } from './chunk-EYLUVDHJ.js';
7
+ import { useTranslation } from './chunk-NHD5XDMX.js';
8
8
  import { cn } from './chunk-U7N2A7A3.js';
9
9
  import * as React from 'react';
10
10
  import { X, ChevronsUpDown, Check, ChevronRight } from 'lucide-react';
@@ -1,6 +1,6 @@
1
- import { AlertQueryError } from './chunk-FNZQTYAG.js';
1
+ import { AlertQueryError } from './chunk-Z33J65PB.js';
2
2
  import { Button } from './chunk-HJEBRCXL.js';
3
- import { useTranslation } from './chunk-EYLUVDHJ.js';
3
+ import { useTranslation } from './chunk-NHD5XDMX.js';
4
4
  import * as React from 'react';
5
5
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
6
6
  import { RefreshCw } from 'lucide-react';
@@ -1,7 +1,7 @@
1
- import { humanError } from './chunk-7W3CHMLL.js';
1
+ import { humanError } from './chunk-CJVXTCYD.js';
2
2
  import { Inline } from './chunk-S66TJXJU.js';
3
3
  import { Button } from './chunk-HJEBRCXL.js';
4
- import { useTranslation } from './chunk-EYLUVDHJ.js';
4
+ import { useTranslation } from './chunk-NHD5XDMX.js';
5
5
  import { cn } from './chunk-U7N2A7A3.js';
6
6
  import * as React from 'react';
7
7
  import { CheckCircle2, TriangleAlert, AlertCircle, Info, X, RefreshCw } from 'lucide-react';
@@ -1,9 +1,9 @@
1
- import { formatBytes } from './chunk-7W3CHMLL.js';
2
- import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-FKAXA6OI.js';
1
+ import { formatBytes } from './chunk-CJVXTCYD.js';
2
+ import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from './chunk-LQGSZODY.js';
3
3
  import { Slider } from './chunk-CRERCLIZ.js';
4
4
  import { Button } from './chunk-HJEBRCXL.js';
5
5
  import { controlIconClass } from './chunk-ICM6XBST.js';
6
- import { useTranslation } from './chunk-EYLUVDHJ.js';
6
+ import { useTranslation } from './chunk-NHD5XDMX.js';
7
7
  import { cn } from './chunk-U7N2A7A3.js';
8
8
  import * as React2 from 'react';
9
9
  import { Upload as Upload$1, ImagePlus, Camera, Trash2, RotateCcw, X } from 'lucide-react';
@@ -1,8 +1,8 @@
1
1
  export { B as BreadcrumbItem } from '../../navigation.prop-DxBiClEH.js';
2
- export { I as InlineProp, P as PageContainerProp, P as PageContainerProps, a as PageHeaderProp, f as StackProp } from '../../layout.prop-C795F0qg.js';
3
- export { F as FilterBar, a as FilterGroup, P as PageHeader } from '../../filter-bar-XpspcQdZ.js';
4
- export { I as Inline, P as PageContainer, S as Stack } from '../../inline-C5u6ptJV.js';
5
- export { C as ColumnDef, D as DataTable, a as Density, E as EmptyState, K as KeyValueGrid, S as StatusBadge } from '../../data-table-Pd62B4WQ.js';
2
+ export { I as InlineProp, P as PageContainerProp, P as PageContainerProps, a as PageHeaderProp, f as StackProp } from '../../layout.prop-CjlAEWgr.js';
3
+ export { F as FilterBar, a as FilterGroup, P as PageHeader } from '../../filter-bar-CNEdQB7i.js';
4
+ export { I as Inline, P as PageContainer, S as Stack } from '../../inline-BuyFYZah.js';
5
+ export { C as ColumnDef, D as DataTable, a as Density, E as EmptyState, K as KeyValueGrid, S as StatusBadge } from '../../data-table-CnRksymA.js';
6
6
  export { F as FormField, S as SearchInput } from '../../search-input-JWJMFVqC.js';
7
7
  export { L as LegacyToastOptions, S as SkeletonCard, a as SkeletonDetail, b as SkeletonRows, c as SkeletonTable, t as toast, u as useToast } from '../../use-toast-Dol5bdY3.js';
8
8
  export { DataState, InfiniteQueryState, MutationFeedback, PrefetchLink, QueryRefetchButton, flattenItemPages } from '../query/index.js';
@@ -1,28 +1,29 @@
1
1
  import '../../chunk-LDSLS6HE.js';
2
- export { DataState, InfiniteQueryState, MutationFeedback, PrefetchLink, QueryRefetchButton, flattenItemPages } from '../../chunk-WUXFOY6M.js';
3
- export { FilterBar, FilterGroup, PageHeader } from '../../chunk-MIVDO3Z3.js';
2
+ export { DataState, InfiniteQueryState, MutationFeedback, PrefetchLink, QueryRefetchButton, flattenItemPages } from '../../chunk-WM5MKEOD.js';
3
+ export { PageContainer, Stack } from '../../chunk-AYTQ7CD3.js';
4
+ export { FilterBar, FilterGroup, PageHeader } from '../../chunk-QT3T2HEI.js';
4
5
  import '../../chunk-TO33OY4L.js';
5
- export { Pagination } from '../../chunk-RGSH6FQN.js';
6
+ export { Pagination } from '../../chunk-RP3NH5QJ.js';
6
7
  export { Steps } from '../../chunk-L6J44O74.js';
7
8
  export { TabsItems } from '../../chunk-BPSKQUL2.js';
8
9
  export { Tabs, TabsContent, TabsList, TabsTrigger } from '../../chunk-XG7XDYIM.js';
9
- export { PageContainer, Stack } from '../../chunk-7JN4JXK6.js';
10
10
  export { SkeletonCard, SkeletonDetail, SkeletonRows, SkeletonTable, toast, useToast } from '../../chunk-M64MVRLS.js';
11
- export { Alert, AlertActions, AlertContent, AlertDescription, AlertQueryError, AlertTitle } from '../../chunk-FNZQTYAG.js';
11
+ export { Alert, AlertActions, AlertContent, AlertDescription, AlertQueryError, AlertTitle } from '../../chunk-Z33J65PB.js';
12
12
  export { Toaster } from '../../chunk-TO7URV7U.js';
13
- export { TreeSelect } from '../../chunk-UGQ3HQD5.js';
14
- export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-TDTNDXWK.js';
15
- export { formatBytes, formatCurrency, formatDateLong, formatDateTime, formatRelative, humanError, shortId } from '../../chunk-7W3CHMLL.js';
16
- export { Dialog, DialogConfirm, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-FKAXA6OI.js';
13
+ export { TreeSelect } from '../../chunk-DGI4B3GN.js';
14
+ export { Upload, collectUploadCommitActions, createUploadItem, useUploadDraft } from '../../chunk-ZFK2XCXU.js';
15
+ export { formatBytes, formatCurrency, formatDateLong, formatDateTime, formatRelative, humanError, shortId } from '../../chunk-CJVXTCYD.js';
16
+ export { Dialog, DialogConfirm, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from '../../chunk-LQGSZODY.js';
17
17
  import '../../chunk-UX634MYF.js';
18
18
  import '../../chunk-CRERCLIZ.js';
19
- export { SearchInput, Transfer, useDebouncedValue, useTimeoutFlag } from '../../chunk-LFLHBTDK.js';
20
- export { Cascader } from '../../chunk-QDAASTWZ.js';
19
+ export { SearchInput, Transfer, useDebouncedValue, useTimeoutFlag } from '../../chunk-2WGV7GGO.js';
20
+ export { Cascader } from '../../chunk-WDJOIRXN.js';
21
21
  import '../../chunk-SMLKNECP.js';
22
22
  import '../../chunk-E76QIYSY.js';
23
23
  import '../../chunk-CQBADMFG.js';
24
24
  import '../../chunk-VOHTRR5X.js';
25
- export { DataTable, EmptyState, KeyValueGrid, StatusBadge } from '../../chunk-R2B7XJ6A.js';
25
+ export { DataTable, EmptyState, KeyValueGrid, StatusBadge } from '../../chunk-DGDQNZS3.js';
26
+ import '../../chunk-DV52WNXO.js';
26
27
  export { Inline } from '../../chunk-S66TJXJU.js';
27
28
  import '../../chunk-PIIRNAXA.js';
28
29
  import '../../chunk-3KPEZ5CF.js';
@@ -33,6 +34,6 @@ import '../../chunk-HJEBRCXL.js';
33
34
  import '../../chunk-ICM6XBST.js';
34
35
  export { FormField } from '../../chunk-F7PG4OEV.js';
35
36
  import '../../chunk-7PWBC4BY.js';
36
- import '../../chunk-EYLUVDHJ.js';
37
- export { formatDate } from '../../chunk-6BJ2X7PA.js';
37
+ import '../../chunk-NHD5XDMX.js';
38
+ export { formatDate } from '../../chunk-TRVOPU4U.js';
38
39
  import '../../chunk-U7N2A7A3.js';
@@ -1,7 +1,7 @@
1
1
  export { Badge, BadgeProps } from './badge.js';
2
2
  export { Card, CardAction, CardContent, CardCover, CardDescription, CardFooter, CardHeader, CardStat, CardStatProps, CardTitle } from './card.js';
3
3
  export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './table.js';
4
- export { C as ColumnDef, D as DataTable, E as EmptyState, K as KeyValueGrid, S as StatusBadge, b as StatusBadgeTone, a as TableDensity } from '../../data-table-Pd62B4WQ.js';
4
+ export { C as ColumnDef, D as DataTable, E as EmptyState, K as KeyValueGrid, S as StatusBadge, b as StatusBadgeTone, a as TableDensity } from '../../data-table-CnRksymA.js';
5
5
  export { c as SortStateProp } from '../../interaction.prop-Cdn7wOtq.js';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import * as React from 'react';
@@ -1,5 +1,6 @@
1
1
  export { Card, CardAction, CardContent, CardCover, CardDescription, CardFooter, CardHeader, CardStat, CardTitle } from '../../chunk-GXHZAJUA.js';
2
- export { DataTable, EmptyState, KeyValueGrid, StatusBadge } from '../../chunk-R2B7XJ6A.js';
2
+ export { DataTable, EmptyState, KeyValueGrid, StatusBadge } from '../../chunk-DGDQNZS3.js';
3
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../chunk-DV52WNXO.js';
3
4
  import '../../chunk-S66TJXJU.js';
4
5
  import { Badge } from '../../chunk-PIIRNAXA.js';
5
6
  export { Badge } from '../../chunk-PIIRNAXA.js';
@@ -8,12 +9,11 @@ export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '.
8
9
  export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '../../chunk-DY5C44UP.js';
9
10
  import '../../chunk-HJEBRCXL.js';
10
11
  import '../../chunk-ICM6XBST.js';
11
- import '../../chunk-EYLUVDHJ.js';
12
- import '../../chunk-6BJ2X7PA.js';
12
+ import '../../chunk-NHD5XDMX.js';
13
+ import '../../chunk-TRVOPU4U.js';
13
14
  import '../../chunk-U7N2A7A3.js';
14
15
  import { Truck, ShoppingBag, Hash, ChevronRight, Package, Plane, CheckCircle2, ScanLine } from 'lucide-react';
15
16
  import { jsxs, jsx } from 'react/jsx-runtime';
16
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
17
17
 
18
18
  var codeBadgeConfig = {
19
19
  internal: { label: "INT", icon: Hash },
@@ -82,8 +82,5 @@ function ScanPanel({ title, description }) {
82
82
  description ? /* @__PURE__ */ jsx("div", { className: "ui-scan-description", children: description }) : null
83
83
  ] });
84
84
  }
85
- var Collapsible = CollapsiblePrimitive.Root;
86
- var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
87
- var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
88
85
 
89
- export { CodeBadge, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, ProgressMeter, ScanPanel, Timeline, TreeList };
86
+ export { CodeBadge, ProgressMeter, ScanPanel, Timeline, TreeList };
@@ -1,8 +1,8 @@
1
- export { Autocomplete } from '../../chunk-5DRKN2HI.js';
1
+ export { Autocomplete } from '../../chunk-HGRRL34G.js';
2
2
  import '../../chunk-V6UWJKZF.js';
3
3
  import '../../chunk-DY5C44UP.js';
4
4
  import '../../chunk-HJEBRCXL.js';
5
5
  import '../../chunk-ICM6XBST.js';
6
- import '../../chunk-EYLUVDHJ.js';
7
- import '../../chunk-6BJ2X7PA.js';
6
+ import '../../chunk-NHD5XDMX.js';
7
+ import '../../chunk-TRVOPU4U.js';
8
8
  import '../../chunk-U7N2A7A3.js';
@@ -1,4 +1,4 @@
1
- export { Cascader } from '../../chunk-QDAASTWZ.js';
1
+ export { Cascader } from '../../chunk-WDJOIRXN.js';
2
2
  import '../../chunk-SMLKNECP.js';
3
3
  import '../../chunk-E76QIYSY.js';
4
4
  import '../../chunk-CQBADMFG.js';
@@ -8,6 +8,6 @@ import '../../chunk-DY5C44UP.js';
8
8
  import '../../chunk-HJEBRCXL.js';
9
9
  import '../../chunk-ICM6XBST.js';
10
10
  import '../../chunk-7PWBC4BY.js';
11
- import '../../chunk-EYLUVDHJ.js';
12
- import '../../chunk-6BJ2X7PA.js';
11
+ import '../../chunk-NHD5XDMX.js';
12
+ import '../../chunk-TRVOPU4U.js';
13
13
  import '../../chunk-U7N2A7A3.js';
@@ -1,6 +1,6 @@
1
- export { ColorPicker } from '../../chunk-PUY25RRT.js';
1
+ export { ColorPicker } from '../../chunk-I2SHXSYY.js';
2
2
  import '../../chunk-VOHTRR5X.js';
3
3
  import '../../chunk-ICM6XBST.js';
4
- import '../../chunk-EYLUVDHJ.js';
5
- import '../../chunk-6BJ2X7PA.js';
4
+ import '../../chunk-NHD5XDMX.js';
5
+ import '../../chunk-TRVOPU4U.js';
6
6
  import '../../chunk-U7N2A7A3.js';