@datum-cloud/datum-ui 0.3.0-alpha.36807e9 → 0.3.0-alpha.7487874
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-navigation/index.mjs +12 -0
- package/dist/app-navigation-CCvjPijd.mjs +416 -0
- package/dist/autocomplete/index.mjs +1 -1
- package/dist/{autocomplete-B9bCkXtz.mjs → autocomplete-DcKO7pj5.mjs} +1 -1
- package/dist/avatar-stack/index.mjs +2 -2
- package/dist/{avatar-stack-Bh-tLz0X.mjs → avatar-stack-B21McFeb.mjs} +1 -1
- package/dist/{calendar-date-picker-mlbzp3xR.mjs → calendar-date-picker-Bw6Mrr-P.mjs} +2 -1
- package/dist/components/base/index.d.ts +1 -0
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/base/sidebar/index.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts.map +1 -0
- package/dist/components/{features → base}/sidebar/sidebar.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/base/skeleton/index.d.ts +1 -1
- package/dist/components/base/skeleton/index.d.ts.map +1 -1
- package/dist/components/base/skeleton/skeleton.d.ts +22 -0
- package/dist/components/base/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/base/typography/typography.d.ts +2 -2
- package/dist/components/features/app-navigation/app-navigation.d.ts +14 -0
- package/dist/components/features/app-navigation/app-navigation.d.ts.map +1 -0
- package/dist/components/features/app-navigation/index.d.ts +4 -0
- package/dist/components/features/app-navigation/index.d.ts.map +1 -0
- package/dist/components/features/{sidebar/nav-main.d.ts → app-navigation/nav-menu.d.ts} +3 -3
- package/dist/components/features/app-navigation/nav-menu.d.ts.map +1 -0
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts +2 -1
- package/dist/components/features/calendar-date-picker/calendar-date-picker.d.ts.map +1 -1
- package/dist/components/features/data-table/components/active-filters.d.ts +1 -1
- package/dist/components/features/data-table/components/active-filters.d.ts.map +1 -1
- package/dist/components/features/data-table/components/loading.d.ts.map +1 -1
- package/dist/components/features/data-table/components/search.d.ts +1 -1
- package/dist/components/features/data-table/components/search.d.ts.map +1 -1
- package/dist/components/features/data-table/core/client-provider.d.ts +2 -2
- package/dist/components/features/data-table/core/client-provider.d.ts.map +1 -1
- package/dist/components/features/data-table/core/filter-engine.d.ts +5 -0
- package/dist/components/features/data-table/core/filter-engine.d.ts.map +1 -1
- package/dist/components/features/data-table/core/server-provider.d.ts +2 -2
- package/dist/components/features/data-table/core/server-provider.d.ts.map +1 -1
- package/dist/components/features/data-table/data-table.d.ts +1 -1
- package/dist/components/features/data-table/filters/checkbox-filter.d.ts +1 -1
- package/dist/components/features/data-table/filters/checkbox-filter.d.ts.map +1 -1
- package/dist/components/features/data-table/filters/date-picker-filter.d.ts +1 -1
- package/dist/components/features/data-table/filters/date-picker-filter.d.ts.map +1 -1
- package/dist/components/features/data-table/filters/select-filter.d.ts +1 -1
- package/dist/components/features/data-table/filters/select-filter.d.ts.map +1 -1
- package/dist/components/features/data-table/hooks/use-data-table-client.d.ts +2 -15
- package/dist/components/features/data-table/hooks/use-data-table-client.d.ts.map +1 -1
- package/dist/components/features/data-table/hooks/use-data-table-server.d.ts +2 -25
- package/dist/components/features/data-table/hooks/use-data-table-server.d.ts.map +1 -1
- package/dist/components/features/data-table/index.d.ts +1 -1
- package/dist/components/features/data-table/index.d.ts.map +1 -1
- package/dist/components/features/data-table/types.d.ts +21 -30
- package/dist/components/features/data-table/types.d.ts.map +1 -1
- package/dist/components/features/index.d.ts +1 -1
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/data-table/index.mjs +46 -36
- package/dist/date-picker/index.mjs +2 -2
- package/dist/dropdown/index.mjs +1 -1
- package/dist/dropzone/index.mjs +1 -1
- package/dist/empty-content/index.mjs +1 -1
- package/dist/form/index.mjs +3 -3
- package/dist/grid/index.mjs +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.mjs +34 -32
- package/dist/input-number/index.mjs +1 -1
- package/dist/input-with-addons/index.mjs +1 -1
- package/dist/loader-overlay/index.mjs +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/{map-ClJD-qxm.mjs → map-2RG9pYZR.mjs} +1 -1
- package/dist/more-actions/index.mjs +2 -2
- package/dist/{more-actions-DbC8dyed.mjs → more-actions-BODYgG1C.mjs} +2 -2
- package/dist/page-title/index.mjs +1 -1
- package/dist/sidebar/index.mjs +4 -5
- package/dist/{sidebar-C4NqSr4r.mjs → sidebar-BW76ss_f.mjs} +6 -415
- package/dist/skeleton/index.mjs +2 -1
- package/dist/skeleton-DZ31pU4B.mjs +28 -0
- package/dist/stepper/index.mjs +1 -1
- package/dist/styles/root.css +3 -0
- package/dist/switch/index.mjs +1 -1
- package/dist/table/index.mjs +1 -1
- package/dist/tabs/index.mjs +1 -1
- package/dist/tag-input/index.mjs +1 -1
- package/dist/task-queue/index.mjs +3 -3
- package/dist/{task-queue-dropdown-fo3TX58Q.mjs → task-queue-dropdown-DtS0IKci.mjs} +3 -3
- package/dist/textarea/index.mjs +1 -1
- package/dist/theme/index.mjs +1 -1
- package/dist/toast/index.mjs +1 -1
- package/dist/tooltip/index.mjs +1 -1
- package/dist/typography/index.mjs +1 -1
- package/dist/{use-copy-to-clipboard-C7xqNxBX.mjs → use-copy-to-clipboard-C9cT2Qb-.mjs} +1 -1
- package/dist/{use-stepper-CB1injte.mjs → use-stepper-DJd8o9dV.mjs} +8 -8
- package/dist/visually-hidden/index.mjs +1 -1
- package/package.json +32 -80
- package/dist/components/features/sidebar/app-sidebar.d.ts +0 -14
- package/dist/components/features/sidebar/app-sidebar.d.ts.map +0 -1
- package/dist/components/features/sidebar/index.d.ts +0 -4
- package/dist/components/features/sidebar/index.d.ts.map +0 -1
- package/dist/components/features/sidebar/nav-main.d.ts.map +0 -1
- package/dist/components/features/sidebar/sidebar.d.ts.map +0 -1
- /package/dist/{col-RfO7d6AR.mjs → col-DCneNxQj.mjs} +0 -0
- /package/dist/{dropdown-Cs7Xr8w7.mjs → dropdown-Dgm_b6Mm.mjs} +0 -0
- /package/dist/{dropzone-BT5fEDEF.mjs → dropzone-DR6O9OdU.mjs} +0 -0
- /package/dist/{empty-content-iDu3NUqG.mjs → empty-content-Dm7_5jO9.mjs} +0 -0
- /package/dist/{input-number-D9ydFith.mjs → input-number-D1HCcTXO.mjs} +0 -0
- /package/dist/{input-with-addons-CdgiUQce.mjs → input-with-addons-DN9LGwUU.mjs} +0 -0
- /package/dist/{loader-overlay-D83QeQNj.mjs → loader-overlay-CpA0zV8D.mjs} +0 -0
- /package/dist/{map-leaflet-imports-CdzvEnzY.mjs → map-leaflet-imports-CgEyVRnp.mjs} +0 -0
- /package/dist/{page-title-SGchAF6Y.mjs → page-title-D62FV6vD.mjs} +0 -0
- /package/dist/{skeleton-Cs6Q5GQc.mjs → skeleton-CkE23wsL.mjs} +0 -0
- /package/dist/{stepper-BG9DIzN5.mjs → stepper-CZeks9Ex.mjs} +0 -0
- /package/dist/{switch-B2VVauH6.mjs → switch-Cn9IM2gC.mjs} +0 -0
- /package/dist/{table-Dc3HfbM4.mjs → table-Dpzh0VPK.mjs} +0 -0
- /package/dist/{tabs-Ccb4uqbe.mjs → tabs-OYVCDOif.mjs} +0 -0
- /package/dist/{tag-input-BfHaKoMF.mjs → tag-input-DorFQ9bA.mjs} +0 -0
- /package/dist/{textarea-X4OjkqLJ.mjs → textarea-KZUKGHlO.mjs} +0 -0
- /package/dist/{theme.provider-Nun_O9-O.mjs → theme.provider-BG3cS9xe.mjs} +0 -0
- /package/dist/{to-api-format-zI26rEBI.mjs → to-api-format-CzPt5UAX.mjs} +0 -0
- /package/dist/{tooltip-DZFG1iMs.mjs → tooltip-U3XxlW4l.mjs} +0 -0
- /package/dist/{typography-T7WgvO77.mjs → typography-DdrxIJMd.mjs} +0 -0
- /package/dist/{use-debounce-Ctljs3MB.mjs → use-debounce-Dc95PFRX.mjs} +0 -0
- /package/dist/{use-toast-DN-fZBzJ.mjs → use-toast-DBmysDS6.mjs} +0 -0
- /package/dist/{visuallyhidden-CgkVhApW.mjs → visuallyhidden-CfBnXfvh.mjs} +0 -0
|
@@ -12,9 +12,10 @@ import { t as Label } from "../label-_ste_Re3.mjs";
|
|
|
12
12
|
import { i as DropdownMenuItem, l as DropdownMenuTrigger, r as DropdownMenuContent, t as DropdownMenu } from "../dropdown-menu-DAFyO-qD.mjs";
|
|
13
13
|
import { i as PopoverTrigger, r as PopoverContent, t as Popover } from "../popover-Ds9624qY.mjs";
|
|
14
14
|
import { i as SelectItem, l as SelectTrigger, n as SelectContent, t as Select, u as SelectValue } from "../select-CwVIFWFO.mjs";
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
15
|
+
import "../skeleton-CkE23wsL.mjs";
|
|
16
|
+
import { t as Skeleton } from "../skeleton-DZ31pU4B.mjs";
|
|
17
|
+
import { c as TableRow, i as TableCell, n as TableBody, o as TableHead, s as TableHeader, t as Table } from "../table-Dpzh0VPK.mjs";
|
|
18
|
+
import { t as CalendarDatePicker } from "../calendar-date-picker-Bw6Mrr-P.mjs";
|
|
18
19
|
import { ArrowDown, ArrowUp, ArrowUpDown, Check, ChevronDown, ChevronLeft, ChevronRight, MoreHorizontal, X } from "lucide-react";
|
|
19
20
|
import { createContext, memo, use, useCallback, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
20
21
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -157,6 +158,16 @@ function withSelectionColumn(columns, options = {}) {
|
|
|
157
158
|
|
|
158
159
|
//#endregion
|
|
159
160
|
//#region src/components/features/data-table/core/filter-engine.ts
|
|
161
|
+
/**
|
|
162
|
+
* Resolve a dot-path on an object (e.g. "status.registrationApproval").
|
|
163
|
+
* Falls back to a flat key lookup when the path has no dots.
|
|
164
|
+
*/
|
|
165
|
+
function resolvePath(obj, path) {
|
|
166
|
+
if (obj == null) return void 0;
|
|
167
|
+
const record = obj;
|
|
168
|
+
if (!path.includes(".")) return record[path];
|
|
169
|
+
return path.split(".").reduce((acc, key) => acc != null ? acc[key] : void 0, record);
|
|
170
|
+
}
|
|
160
171
|
const FILTER_STRATEGIES = {
|
|
161
172
|
"checkbox": (cellValue, filterValue) => {
|
|
162
173
|
if (filterValue == null) return true;
|
|
@@ -200,14 +211,13 @@ function applyFilters(data, filters, search, registeredFilters, customFilterFns,
|
|
|
200
211
|
console.warn(`[DataTable] No filter strategy registered for column "${column}". Filter ignored.`);
|
|
201
212
|
continue;
|
|
202
213
|
}
|
|
203
|
-
|
|
204
|
-
if (!fn(cellValue, value)) return false;
|
|
214
|
+
if (!fn(resolvePath(row, column), value)) return false;
|
|
205
215
|
}
|
|
206
216
|
if (hasSearch) {
|
|
207
217
|
const query = search.toLowerCase();
|
|
208
218
|
if (searchConfig.searchFn) return searchConfig.searchFn(row, search);
|
|
209
219
|
if (searchConfig.searchableColumns && searchConfig.searchableColumns.length > 0) return searchConfig.searchableColumns.some((col) => {
|
|
210
|
-
const cellValue = row
|
|
220
|
+
const cellValue = resolvePath(row, col);
|
|
211
221
|
return cellValue != null && String(cellValue).toLowerCase().includes(query);
|
|
212
222
|
});
|
|
213
223
|
return Object.values(row).some((val) => {
|
|
@@ -605,14 +615,15 @@ function FilterGroup({ label, children, className }) {
|
|
|
605
615
|
});
|
|
606
616
|
}
|
|
607
617
|
const EMPTY_LABELS = {};
|
|
608
|
-
function ActiveFiltersInner({ label = "Selected Filters", filterLabels = EMPTY_LABELS, formatFilterValue: formatter, clearAll = "icon", clearAllLabel = "Clear all", className, groupClassName, badgeClassName }) {
|
|
618
|
+
function ActiveFiltersInner({ label = "Selected Filters", excludeFilters, filterLabels = EMPTY_LABELS, formatFilterValue: formatter, clearAll = "icon", clearAllLabel = "Clear all", className, groupClassName, badgeClassName }) {
|
|
609
619
|
const { filters, setFilter, clearFilter, clearAllFilters } = useDataTableFilters();
|
|
610
620
|
const { search, clearSearch } = useDataTableSearch();
|
|
611
|
-
const
|
|
612
|
-
const
|
|
621
|
+
const excludeSet = useMemo(() => new Set(excludeFilters ?? []), [excludeFilters]);
|
|
622
|
+
const activeFilterEntries = Object.entries(filters).filter(([key, value]) => !excludeSet.has(key) && value != null && value !== "" && !(Array.isArray(value) && value.length === 0));
|
|
623
|
+
const showSearch = search.length > 0 && !excludeSet.has("search");
|
|
613
624
|
const hasFilters = activeFilterEntries.length > 0;
|
|
614
|
-
if (!
|
|
615
|
-
const totalGroups = activeFilterEntries.length + (
|
|
625
|
+
if (!showSearch && !hasFilters) return null;
|
|
626
|
+
const totalGroups = activeFilterEntries.length + (showSearch ? 1 : 0);
|
|
616
627
|
const removeArrayItem = (column, items, item) => {
|
|
617
628
|
const remaining = items.filter((v) => v !== item);
|
|
618
629
|
if (remaining.length > 0) setFilter(column, remaining);
|
|
@@ -620,7 +631,7 @@ function ActiveFiltersInner({ label = "Selected Filters", filterLabels = EMPTY_L
|
|
|
620
631
|
};
|
|
621
632
|
const handleClearAll = () => {
|
|
622
633
|
clearAllFilters();
|
|
623
|
-
if (
|
|
634
|
+
if (search.length > 0) clearSearch();
|
|
624
635
|
};
|
|
625
636
|
const badgeCn = cn("flex items-center gap-1.5 px-2 py-0.5 text-xs", badgeClassName);
|
|
626
637
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -633,7 +644,7 @@ function ActiveFiltersInner({ label = "Selected Filters", filterLabels = EMPTY_L
|
|
|
633
644
|
"data-slot": "dt-active-filters-label",
|
|
634
645
|
children: label
|
|
635
646
|
}),
|
|
636
|
-
|
|
647
|
+
showSearch && /* @__PURE__ */ jsx(FilterGroup, {
|
|
637
648
|
label: "Search",
|
|
638
649
|
className: groupClassName,
|
|
639
650
|
children: /* @__PURE__ */ jsxs(Badge, {
|
|
@@ -898,19 +909,8 @@ function DataTableLoading({ rows = DEFAULT_LOADING_ROWS, columns = 4, className
|
|
|
898
909
|
return /* @__PURE__ */ jsx("div", {
|
|
899
910
|
className,
|
|
900
911
|
"data-slot": "dt-loading",
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
904
|
-
className: "border-b",
|
|
905
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
906
|
-
className: "flex gap-4 p-4",
|
|
907
|
-
children: Array.from({ length: columns }, (_, i) => /* @__PURE__ */ jsx(Skeleton, { className: "h-4 flex-1" }, i))
|
|
908
|
-
})
|
|
909
|
-
}), Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx("div", {
|
|
910
|
-
className: "flex gap-4 border-b p-4 last:border-b-0",
|
|
911
|
-
children: Array.from({ length: columns }, (_, colIndex) => /* @__PURE__ */ jsx(Skeleton, { className: "h-4 flex-1" }, colIndex))
|
|
912
|
-
}, rowIndex))]
|
|
913
|
-
})
|
|
912
|
+
style: { overflowX: "auto" },
|
|
913
|
+
children: /* @__PURE__ */ jsxs(Table, { children: [/* @__PURE__ */ jsx(TableHeader, { children: /* @__PURE__ */ jsx(TableRow, { children: Array.from({ length: columns }, (_, i) => /* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }) }, i)) }) }), /* @__PURE__ */ jsx(TableBody, { children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx(TableRow, { children: Array.from({ length: columns }, (_, colIndex) => /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" }) }, colIndex)) }, rowIndex)) })] })
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
|
|
@@ -1075,7 +1075,7 @@ function DataTableRowActions({ row, actions, isLoading = false, className }) {
|
|
|
1075
1075
|
|
|
1076
1076
|
//#endregion
|
|
1077
1077
|
//#region src/components/features/data-table/components/search.tsx
|
|
1078
|
-
function DataTableSearch({ placeholder = "Search...", debounceMs = DEFAULT_DEBOUNCE_MS, className }) {
|
|
1078
|
+
function DataTableSearch({ placeholder = "Search...", debounceMs = DEFAULT_DEBOUNCE_MS, className, disabled }) {
|
|
1079
1079
|
const { search, setSearch } = useDataTableSearch();
|
|
1080
1080
|
const [inputValue, setInputValue] = useState(search);
|
|
1081
1081
|
useEffect(() => {
|
|
@@ -1097,6 +1097,7 @@ function DataTableSearch({ placeholder = "Search...", debounceMs = DEFAULT_DEBOU
|
|
|
1097
1097
|
value: inputValue,
|
|
1098
1098
|
onChange: (e) => setInputValue(e.target.value),
|
|
1099
1099
|
className,
|
|
1100
|
+
disabled,
|
|
1100
1101
|
"aria-label": placeholder,
|
|
1101
1102
|
"data-slot": "dt-search"
|
|
1102
1103
|
});
|
|
@@ -1237,7 +1238,10 @@ function ClientProviderInner({ className, children, ssrFallback: _ssrFallback, .
|
|
|
1237
1238
|
});
|
|
1238
1239
|
}
|
|
1239
1240
|
function ClientProvider(props) {
|
|
1240
|
-
if (!useIsClient()) return /* @__PURE__ */ jsx(Fragment$1, { children: props.ssrFallback
|
|
1241
|
+
if (!useIsClient()) return /* @__PURE__ */ jsx(Fragment$1, { children: props.ssrFallback === void 0 ? /* @__PURE__ */ jsx(DataTableLoading, {
|
|
1242
|
+
columns: props.columns.length,
|
|
1243
|
+
className: props?.className
|
|
1244
|
+
}) : props.ssrFallback });
|
|
1241
1245
|
return /* @__PURE__ */ jsx(ClientProviderInner, { ...props });
|
|
1242
1246
|
}
|
|
1243
1247
|
|
|
@@ -1305,7 +1309,7 @@ function useDataTableServer(options) {
|
|
|
1305
1309
|
const result = transformRef.current(response);
|
|
1306
1310
|
store.setServerData(result.data);
|
|
1307
1311
|
store.setError(null);
|
|
1308
|
-
if (result.
|
|
1312
|
+
if (result.cursor) cursorMapRef.current.set(pageIndex + 1, result.cursor);
|
|
1309
1313
|
hasNextPageRef.current = result.hasNextPage;
|
|
1310
1314
|
}).catch((error) => {
|
|
1311
1315
|
if (cancelled) return;
|
|
@@ -1404,14 +1408,17 @@ function ServerProviderInner({ className, children, ssrFallback: _ssrFallback, .
|
|
|
1404
1408
|
});
|
|
1405
1409
|
}
|
|
1406
1410
|
function ServerProvider(props) {
|
|
1407
|
-
if (!useIsClient()) return /* @__PURE__ */ jsx(Fragment$1, { children: props.ssrFallback
|
|
1411
|
+
if (!useIsClient()) return /* @__PURE__ */ jsx(Fragment$1, { children: props.ssrFallback === void 0 ? /* @__PURE__ */ jsx(DataTableLoading, {
|
|
1412
|
+
columns: props.columns.length,
|
|
1413
|
+
className: props?.className
|
|
1414
|
+
}) : props.ssrFallback });
|
|
1408
1415
|
return /* @__PURE__ */ jsx(ServerProviderInner, { ...props });
|
|
1409
1416
|
}
|
|
1410
1417
|
|
|
1411
1418
|
//#endregion
|
|
1412
1419
|
//#region src/components/features/data-table/filters/checkbox-filter.tsx
|
|
1413
1420
|
const MAX_VISIBLE_BADGES = 2;
|
|
1414
|
-
function CheckboxFilter({ column, label, options, className, checkboxPopoverClassName }) {
|
|
1421
|
+
function CheckboxFilter({ column, label, options, className, checkboxPopoverClassName, disabled }) {
|
|
1415
1422
|
const { filters, setFilter, clearFilter, registerFilter, unregisterFilter } = useDataTableFilters();
|
|
1416
1423
|
const [open, setOpen] = useState(false);
|
|
1417
1424
|
useEffect(() => {
|
|
@@ -1442,7 +1449,8 @@ function CheckboxFilter({ column, label, options, className, checkboxPopoverClas
|
|
|
1442
1449
|
asChild: true,
|
|
1443
1450
|
children: /* @__PURE__ */ jsxs(Button, {
|
|
1444
1451
|
theme: "outline",
|
|
1445
|
-
|
|
1452
|
+
disabled,
|
|
1453
|
+
className: cn("h-10 justify-between gap-1", className),
|
|
1446
1454
|
"data-slot": "dt-filter",
|
|
1447
1455
|
"data-testid": "dt-filter-trigger",
|
|
1448
1456
|
children: [selectedValues.length > 0 ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -1521,7 +1529,7 @@ function CheckboxFilter({ column, label, options, className, checkboxPopoverClas
|
|
|
1521
1529
|
|
|
1522
1530
|
//#endregion
|
|
1523
1531
|
//#region src/components/features/data-table/filters/date-picker-filter.tsx
|
|
1524
|
-
function DatePickerFilter({ column, label, className, datePickerPopoverClassName, disableFuture, disablePast, minDate, maxDate }) {
|
|
1532
|
+
function DatePickerFilter({ column, label, className, datePickerPopoverClassName, disableFuture, disablePast, minDate, maxDate, disabled }) {
|
|
1525
1533
|
const { filters, setFilter, clearFilter, registerFilter, unregisterFilter } = useDataTableFilters();
|
|
1526
1534
|
const rawValue = filters[column];
|
|
1527
1535
|
useEffect(() => {
|
|
@@ -1546,8 +1554,9 @@ function DatePickerFilter({ column, label, className, datePickerPopoverClassName
|
|
|
1546
1554
|
numberOfMonths: 1,
|
|
1547
1555
|
closeOnSelect: true,
|
|
1548
1556
|
placeholder: label,
|
|
1549
|
-
triggerClassName: className,
|
|
1557
|
+
triggerClassName: cn("h-10", className),
|
|
1550
1558
|
variant: "outline",
|
|
1559
|
+
disabled,
|
|
1551
1560
|
disableFuture,
|
|
1552
1561
|
disablePast,
|
|
1553
1562
|
minDate,
|
|
@@ -1563,7 +1572,7 @@ function DatePickerFilter({ column, label, className, datePickerPopoverClassName
|
|
|
1563
1572
|
|
|
1564
1573
|
//#endregion
|
|
1565
1574
|
//#region src/components/features/data-table/filters/select-filter.tsx
|
|
1566
|
-
function SelectFilter({ column, label, options, placeholder, searchable = true, className, selectPopoverClassName }) {
|
|
1575
|
+
function SelectFilter({ column, label, options, placeholder, searchable = true, className, selectPopoverClassName, disabled }) {
|
|
1567
1576
|
const { filters, setFilter, clearFilter, registerFilter, unregisterFilter } = useDataTableFilters();
|
|
1568
1577
|
const [open, setOpen] = useState(false);
|
|
1569
1578
|
const value = filters[column];
|
|
@@ -1585,7 +1594,8 @@ function SelectFilter({ column, label, options, placeholder, searchable = true,
|
|
|
1585
1594
|
theme: "outline",
|
|
1586
1595
|
role: "combobox",
|
|
1587
1596
|
"aria-expanded": open,
|
|
1588
|
-
|
|
1597
|
+
disabled,
|
|
1598
|
+
className: cn("h-10 justify-between", className),
|
|
1589
1599
|
"data-slot": "dt-filter",
|
|
1590
1600
|
"data-testid": "dt-filter-trigger",
|
|
1591
1601
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -4,7 +4,7 @@ import "../button-AzpnV-WB.mjs";
|
|
|
4
4
|
import "../input-DuyjEKEW.mjs";
|
|
5
5
|
import "../popover-Ds9624qY.mjs";
|
|
6
6
|
import "../select-CwVIFWFO.mjs";
|
|
7
|
-
import { t as CalendarDatePicker } from "../calendar-date-picker-
|
|
8
|
-
import { C as utcToLocalInputString, S as utcStringToZonedDate, _ as getBrowserTimezone, a as formatTimeRangeDisplay, b as getTimezoneOffset, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as formatUtcForDisplay, h as formatTimezoneLabel, i as formatSingleTimeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as TimeRangePicker, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatDateForInput, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as getDefaultTimezoneOptions, w as zonedDateToUtcString, x as localInputStringToUtc, y as getShortTimezoneDisplay } from "../to-api-format-
|
|
7
|
+
import { t as CalendarDatePicker } from "../calendar-date-picker-Bw6Mrr-P.mjs";
|
|
8
|
+
import { C as utcToLocalInputString, S as utcStringToZonedDate, _ as getBrowserTimezone, a as formatTimeRangeDisplay, b as getTimezoneOffset, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as formatUtcForDisplay, h as formatTimezoneLabel, i as formatSingleTimeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as TimeRangePicker, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatDateForInput, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as getDefaultTimezoneOptions, w as zonedDateToUtcString, x as localInputStringToUtc, y as getShortTimezoneDisplay } from "../to-api-format-CzPt5UAX.mjs";
|
|
9
9
|
|
|
10
10
|
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, CalendarDatePicker, DEFAULT_PRESETS, QuickRangesPanel, TimeRangePicker, TimezoneSelector, createTimezoneOption, formatDateForInput, formatSingleTimeDisplay, formatTimeRangeDisplay, formatTimezoneLabel, formatUtcForDisplay, getBrowserTimezone, getDefaultPreset, getDefaultTimezoneOptions, getPresetByKey, getPresetByShortcut, getPresetRange, getShortTimezoneDisplay, getTimezoneOffset, localInputStringToUtc, toApiTimeRange, utcStringToZonedDate, utcToLocalInputString, zonedDateToUtcString };
|
package/dist/dropdown/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-
|
|
1
|
+
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "../dropdown-Dgm_b6Mm.mjs";
|
|
2
2
|
|
|
3
3
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|
package/dist/dropzone/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../utils-Bfgoe-Gm.mjs";
|
|
2
2
|
import "../button-AzpnV-WB.mjs";
|
|
3
|
-
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "../dropzone-
|
|
3
|
+
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "../dropzone-DR6O9OdU.mjs";
|
|
4
4
|
|
|
5
5
|
export { Dropzone, DropzoneContent, DropzoneEmptyState, FileInputButton };
|
package/dist/form/index.mjs
CHANGED
|
@@ -9,9 +9,9 @@ import "../label-_ste_Re3.mjs";
|
|
|
9
9
|
import "../popover-Ds9624qY.mjs";
|
|
10
10
|
import "../radio-group-B9Hm77LQ.mjs";
|
|
11
11
|
import "../select-CwVIFWFO.mjs";
|
|
12
|
-
import "../
|
|
13
|
-
import "../
|
|
14
|
-
import { A as FormButton, C as FormField, D as FormCustom, E as FormDescription, O as FormCopyBox, S as FormFieldArray, T as FormDialog, _ as FormSelectItem, a as FormInputGroup, b as FormRadioItem, c as FormStep, d as useWatch, f as useWatchAll, g as FormSelect, h as FormSubmit, i as useField, j as FormAutocomplete, k as FormCheckbox, l as FormStepper, m as FormSwitch, n as useFormContext, o as StepperNavigation, p as FormTextarea, r as useFieldContext, s as StepperControls, t as useStepper, u as FormWhen, v as FormRoot, w as FormError, x as FormInput, y as FormRadioGroup } from "../use-stepper-
|
|
12
|
+
import "../tooltip-U3XxlW4l.mjs";
|
|
13
|
+
import "../switch-Cn9IM2gC.mjs";
|
|
14
|
+
import { A as FormButton, C as FormField, D as FormCustom, E as FormDescription, O as FormCopyBox, S as FormFieldArray, T as FormDialog, _ as FormSelectItem, a as FormInputGroup, b as FormRadioItem, c as FormStep, d as useWatch, f as useWatchAll, g as FormSelect, h as FormSubmit, i as useField, j as FormAutocomplete, k as FormCheckbox, l as FormStepper, m as FormSwitch, n as useFormContext, o as StepperNavigation, p as FormTextarea, r as useFieldContext, s as StepperControls, t as useStepper, u as FormWhen, v as FormRoot, w as FormError, x as FormInput, y as FormRadioGroup } from "../use-stepper-DJd8o9dV.mjs";
|
|
15
15
|
|
|
16
16
|
//#region src/components/features/form/index.ts
|
|
17
17
|
/**
|
package/dist/grid/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as getResponsiveValue, c as GRID_COLUMNS, d as RESPONSIVE_MAP, i as getGutter, l as GRID_PREFIX, n as Row, o as registerMediaQuery, r as RowContext, s as GRID_BREAKPOINTS, t as Col, u as RESPONSIVE_ARRAY } from "../col-
|
|
1
|
+
import { a as getResponsiveValue, c as GRID_COLUMNS, d as RESPONSIVE_MAP, i as getGutter, l as GRID_PREFIX, n as Row, o as registerMediaQuery, r as RowContext, s as GRID_BREAKPOINTS, t as Col, u as RESPONSIVE_ARRAY } from "../col-DCneNxQj.mjs";
|
|
2
2
|
|
|
3
3
|
export { Col, GRID_BREAKPOINTS, GRID_COLUMNS, GRID_PREFIX, RESPONSIVE_ARRAY, RESPONSIVE_MAP, Row, RowContext, getGutter, getResponsiveValue, registerMediaQuery };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useCopyToClipboard } from "../use-copy-to-clipboard-
|
|
2
|
-
import { t as useDebounce } from "../use-debounce-
|
|
1
|
+
import { t as useCopyToClipboard } from "../use-copy-to-clipboard-C9cT2Qb-.mjs";
|
|
2
|
+
import { t as useDebounce } from "../use-debounce-Dc95PFRX.mjs";
|
|
3
3
|
|
|
4
4
|
export { useCopyToClipboard, useDebounce };
|
package/dist/index.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import { t as Input } from "./input-fzXBheCN.mjs";
|
|
|
25
25
|
import "./textarea-QYRcDEpK.mjs";
|
|
26
26
|
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as InputGroupTextarea, r as InputGroupButton, t as InputGroup } from "./input-group-CPaFSTEV.mjs";
|
|
27
27
|
import { t as Label } from "./label-_ste_Re3.mjs";
|
|
28
|
-
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "./map-
|
|
28
|
+
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "./map-2RG9pYZR.mjs";
|
|
29
29
|
import "./dropdown-menu-DAFyO-qD.mjs";
|
|
30
30
|
import { t as Spinner } from "./spinner-earfjpJs.mjs";
|
|
31
31
|
import { i as PopoverTrigger, n as PopoverAnchor, r as PopoverContent, t as Popover } from "./popover-Ds9624qY.mjs";
|
|
@@ -33,37 +33,39 @@ import { n as RadioGroupItem, t as RadioGroup } from "./radio-group-B9Hm77LQ.mjs
|
|
|
33
33
|
import { a as SelectLabel, c as SelectSeparator, i as SelectItem, l as SelectTrigger, n as SelectContent, o as SelectScrollDownButton, r as SelectGroup, s as SelectScrollUpButton, t as Select, u as SelectValue } from "./select-CwVIFWFO.mjs";
|
|
34
34
|
import { a as SheetHeader, i as SheetFooter, o as SheetTitle, r as SheetDescription, s as SheetTrigger } from "./sheet-Cemwh78x.mjs";
|
|
35
35
|
import { i as SheetOverlay, n as SheetClose, r as SheetContent, t as Sheet } from "./sheet-mx5XjyEY.mjs";
|
|
36
|
-
import { t as
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { a as
|
|
43
|
-
import { t as
|
|
44
|
-
import { t as
|
|
45
|
-
import { t as
|
|
46
|
-
import { n as
|
|
47
|
-
import { t as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import { t as
|
|
51
|
-
import {
|
|
52
|
-
import { n as
|
|
53
|
-
import { t as
|
|
54
|
-
import { t as
|
|
55
|
-
import { t as
|
|
36
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "./sidebar-BW76ss_f.mjs";
|
|
37
|
+
import "./skeleton-CkE23wsL.mjs";
|
|
38
|
+
import { t as Tooltip } from "./tooltip-U3XxlW4l.mjs";
|
|
39
|
+
import { t as Skeleton } from "./skeleton-DZ31pU4B.mjs";
|
|
40
|
+
import { t as Switch } from "./switch-Cn9IM2gC.mjs";
|
|
41
|
+
import { a as TableFooter, c as TableRow, i as TableCell, n as TableBody, o as TableHead, r as TableCaption, s as TableHeader, t as Table } from "./table-Dpzh0VPK.mjs";
|
|
42
|
+
import { a as TabsTrigger, i as TabsList, n as TabsContent, r as TabsLinkTrigger, t as Tabs } from "./tabs-OYVCDOif.mjs";
|
|
43
|
+
import { t as Textarea } from "./textarea-KZUKGHlO.mjs";
|
|
44
|
+
import { a as ListItem, c as Title, d as titleVariants, i as List, l as paragraphVariants, n as Code, o as Paragraph, r as Link, s as Text, t as Blockquote, u as textVariants } from "./typography-DdrxIJMd.mjs";
|
|
45
|
+
import { t as VisuallyHidden } from "./visuallyhidden-CfBnXfvh.mjs";
|
|
46
|
+
import { n as NavMenu, t as AppNavigation } from "./app-navigation-CCvjPijd.mjs";
|
|
47
|
+
import { t as LoaderOverlay } from "./loader-overlay-CpA0zV8D.mjs";
|
|
48
|
+
import { t as Autocomplete } from "./autocomplete-DcKO7pj5.mjs";
|
|
49
|
+
import { n as avatarStackVariants, t as AvatarStack } from "./avatar-stack-B21McFeb.mjs";
|
|
50
|
+
import { t as CalendarDatePicker } from "./calendar-date-picker-Bw6Mrr-P.mjs";
|
|
51
|
+
import { a as DropdownMenuItem, c as DropdownMenuRadioGroup, d as DropdownMenuShortcut, f as DropdownMenuSub, h as DropdownMenuTrigger, i as DropdownMenuGroup, l as DropdownMenuRadioItem, m as DropdownMenuSubTrigger, n as DropdownMenuCheckboxItem, o as DropdownMenuLabel, p as DropdownMenuSubContent, r as DropdownMenuContent, s as DropdownMenuPortal, t as DropdownMenu, u as DropdownMenuSeparator } from "./dropdown-Dgm_b6Mm.mjs";
|
|
52
|
+
import { i as FileInputButton, n as DropzoneContent, r as DropzoneEmptyState, t as Dropzone } from "./dropzone-DR6O9OdU.mjs";
|
|
53
|
+
import { t as EmptyContent } from "./empty-content-Dm7_5jO9.mjs";
|
|
54
|
+
import { A as FormButton, C as FormField, D as FormCustom, E as FormDescription, O as FormCopyBox, S as FormFieldArray, T as FormDialog, _ as FormSelectItem, b as FormRadioItem, c as FormStep, d as useWatch, f as useWatchAll, g as FormSelect, h as FormSubmit, i as useField, j as FormAutocomplete, k as FormCheckbox, l as FormStepper, m as FormSwitch, n as useFormContext, o as StepperNavigation, p as FormTextarea, r as useFieldContext, s as StepperControls, t as useStepper, u as FormWhen, v as FormRoot, w as FormError, x as FormInput, y as FormRadioGroup } from "./use-stepper-DJd8o9dV.mjs";
|
|
55
|
+
import { n as Toaster, r as toast, t as useToast } from "./use-toast-DBmysDS6.mjs";
|
|
56
|
+
import { t as useCopyToClipboard } from "./use-copy-to-clipboard-C9cT2Qb-.mjs";
|
|
57
|
+
import { t as defineStepper } from "./stepper-CZeks9Ex.mjs";
|
|
58
|
+
import { t as InputWithAddons } from "./input-with-addons-DN9LGwUU.mjs";
|
|
56
59
|
import { Form } from "./form/index.mjs";
|
|
57
|
-
import { a as getResponsiveValue, c as GRID_COLUMNS, d as RESPONSIVE_MAP, i as getGutter, l as GRID_PREFIX, n as Row, o as registerMediaQuery, r as RowContext, s as GRID_BREAKPOINTS, t as Col, u as RESPONSIVE_ARRAY } from "./col-
|
|
58
|
-
import { t as InputNumber } from "./input-number-
|
|
59
|
-
import { t as MoreActions } from "./more-actions-
|
|
60
|
+
import { a as getResponsiveValue, c as GRID_COLUMNS, d as RESPONSIVE_MAP, i as getGutter, l as GRID_PREFIX, n as Row, o as registerMediaQuery, r as RowContext, s as GRID_BREAKPOINTS, t as Col, u as RESPONSIVE_ARRAY } from "./col-DCneNxQj.mjs";
|
|
61
|
+
import { t as InputNumber } from "./input-number-D1HCcTXO.mjs";
|
|
62
|
+
import { t as MoreActions } from "./more-actions-BODYgG1C.mjs";
|
|
60
63
|
import { configureProgress, startProgress, stopProgress } from "./nprogress/index.mjs";
|
|
61
|
-
import { t as PageTitle } from "./page-title-
|
|
62
|
-
import {
|
|
63
|
-
import { t as
|
|
64
|
-
import { _ as
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import { t as useDebounce } from "./use-debounce-Ctljs3MB.mjs";
|
|
64
|
+
import { t as PageTitle } from "./page-title-D62FV6vD.mjs";
|
|
65
|
+
import { t as TagsInput } from "./tag-input-DorFQ9bA.mjs";
|
|
66
|
+
import { _ as RedisTaskStorage, a as TaskPanelItem, b as createProjectMetadata, c as TaskPanelHeader, d as useCurrentScope, f as useTasksWithLabels, g as detectStorage, h as TaskQueue, i as TaskPanel, l as getContextLabel, m as TaskQueueProvider, n as TaskSummaryDialog, o as TaskPanelCounter, p as useTaskQueue, r as TaskQueueTrigger, s as TaskPanelActions, t as TaskQueueDropdown, u as matchesCurrentScope, v as LocalTaskStorage, x as createUserMetadata, y as createOrgMetadata } from "./task-queue-dropdown-DtS0IKci.mjs";
|
|
67
|
+
import { C as utcToLocalInputString, S as utcStringToZonedDate, _ as getBrowserTimezone, a as formatTimeRangeDisplay, b as getTimezoneOffset, c as getPresetByKey, d as TimezoneSelector, f as QuickRangesPanel, g as formatUtcForDisplay, h as formatTimezoneLabel, i as formatSingleTimeDisplay, l as getPresetByShortcut, m as createTimezoneOption, n as TimeRangePicker, o as DEFAULT_PRESETS, p as CustomRangePanel, r as formatDateForInput, s as getDefaultPreset, t as toApiTimeRange, u as getPresetRange, v as getDefaultTimezoneOptions, w as zonedDateToUtcString, x as localInputStringToUtc, y as getShortTimezoneDisplay } from "./to-api-format-CzPt5UAX.mjs";
|
|
68
|
+
import { i as ClientOnly, n as useTheme, r as ThemeScript, t as ThemeProvider } from "./theme.provider-BG3cS9xe.mjs";
|
|
69
|
+
import { t as useDebounce } from "./use-debounce-Dc95PFRX.mjs";
|
|
68
70
|
|
|
69
|
-
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, Alert, AlertDescription, AlertTitle,
|
|
71
|
+
export { CustomRangePanel as AbsoluteRangePanel, CustomRangePanel, Alert, AlertDescription, AlertTitle, AppNavigation, Autocomplete, AvatarStack, Badge, Blockquote, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDatePicker, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, ClientOnly, CloseIcon, Code, Col, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PRESETS, Dialog, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneContent, DropzoneEmptyState, EmptyContent, FileInputButton, Form, FormAutocomplete, FormButton, FormCheckbox, FormCopyBox, FormCustom, FormDescription, FormDialog, FormError, FormField, FormFieldArray, FormInput, FormRadioGroup, FormRadioItem, FormRoot, FormSelect, FormSelectItem, FormStep, FormStepper, FormSubmit, FormSwitch, FormTextarea, FormWhen, GRID_BREAKPOINTS, GRID_COLUMNS, GRID_PREFIX, HoverCard, HoverCardContent, HoverCardTrigger, Icon, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputNumber, InputWithAddons, Label, Link, LinkButton, List, ListItem, LoaderOverlay, LocalTaskStorage, Map, MapCircle, MapCircleMarker, MapControlContainer, MapDrawCircle, MapDrawControl, MapDrawDelete, MapDrawEdit, MapDrawMarker, MapDrawPolygon, MapDrawPolyline, MapDrawRectangle, MapDrawUndo, MapFeatureGroup, MapFullscreenControl, MapLayerGroup, MapLayers, MapLayersControl, MapLocateControl, MapMarker, MapMarkerClusterGroup, MapPolygon, MapPolyline, MapPopup, MapRectangle, MapSearchControl, MapTileLayer, MapTooltip, MapZoomControl, MoreActions, NavMenu, PageTitle, Paragraph, PlaceAutocomplete, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, QuickRangesPanel, RESPONSIVE_ARRAY, RESPONSIVE_MAP, RadioGroup, RadioGroupItem, RedisTaskStorage, Row, RowContext, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Spinner, SpinnerIcon, StepperControls, StepperNavigation, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsLinkTrigger, TabsList, TabsTrigger, TagsInput, TaskPanel, TaskPanelActions, TaskPanelCounter, TaskPanelHeader, TaskPanelItem, TaskQueue, TaskQueueDropdown, TaskQueueProvider, TaskQueueTrigger, TaskSummaryDialog, Text, Textarea, ThemeProvider, ThemeScript, TimeRangePicker, TimezoneSelector, Title, Toaster, Tooltip, VisuallyHidden, avatarStackVariants, badgeVariants, buttonGroupVariants, buttonVariants, cn, configureProgress, createOrgMetadata, createProjectMetadata, createTimezoneOption, createUserMetadata, defineStepper, detectStorage, formatDateForInput, formatSingleTimeDisplay, formatTimeRangeDisplay, formatTimezoneLabel, formatUtcForDisplay, getBrowserTimezone, getContextLabel, getDefaultPreset, getDefaultTimezoneOptions, getGutter, getPresetByKey, getPresetByShortcut, getPresetRange, getResponsiveValue, getShortTimezoneDisplay, getTimezoneOffset, localInputStringToUtc, matchesCurrentScope, paragraphVariants, registerMediaQuery, startProgress, stopProgress, textVariants, titleVariants, toApiTimeRange, toast, useCopyToClipboard, useCurrentScope, useDebounce, useField, useFieldContext, useFormContext, useLeaflet, useSidebar, useStepper, useTaskQueue, useTasksWithLabels, useTheme, useToast, useWatch, useWatchAll, utcStringToZonedDate, utcToLocalInputString, zonedDateToUtcString };
|
package/dist/map/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import "../command-s0Yv3abE.mjs";
|
|
|
7
7
|
import "../input-DuyjEKEW.mjs";
|
|
8
8
|
import "../textarea-QYRcDEpK.mjs";
|
|
9
9
|
import "../input-group-CPaFSTEV.mjs";
|
|
10
|
-
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "../map-
|
|
10
|
+
import { A as useLeaflet, C as MapPolyline, D as MapTileLayer, E as MapSearchControl, O as MapTooltip, S as MapPolygon, T as MapRectangle, _ as MapLayers, a as MapDrawCircle, b as MapMarker, c as MapDrawEdit, d as MapDrawPolyline, f as MapDrawRectangle, g as MapLayerGroup, h as MapFullscreenControl, i as MapControlContainer, j as PlaceAutocomplete, k as MapZoomControl, l as MapDrawMarker, m as MapFeatureGroup, n as MapCircle, o as MapDrawControl, p as MapDrawUndo, r as MapCircleMarker, s as MapDrawDelete, t as Map, u as MapDrawPolygon, v as MapLayersControl, w as MapPopup, x as MapMarkerClusterGroup, y as MapLocateControl } from "../map-2RG9pYZR.mjs";
|
|
11
11
|
import "../dropdown-menu-DAFyO-qD.mjs";
|
|
12
12
|
import "../spinner-earfjpJs.mjs";
|
|
13
13
|
|
|
@@ -228,7 +228,7 @@ function PlaceAutocomplete({ debounceMs = 300, lang, limit = 5, bbox, lat, lon,
|
|
|
228
228
|
//#region ../shadcn/ui/map.tsx
|
|
229
229
|
let _useMap;
|
|
230
230
|
let _useMapEvents;
|
|
231
|
-
if (typeof window !== "undefined") import("./map-leaflet-imports-
|
|
231
|
+
if (typeof window !== "undefined") import("./map-leaflet-imports-CgEyVRnp.mjs").then((mod) => {
|
|
232
232
|
_useMap = mod.useMap;
|
|
233
233
|
_useMapEvents = mod.useMapEvents;
|
|
234
234
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cn } from "./cn-DWCc1QRE.mjs";
|
|
2
2
|
import { t as Button } from "./button-C1wRfGtT.mjs";
|
|
3
|
-
import { t as Tooltip } from "./tooltip-
|
|
4
|
-
import { a as DropdownMenuItem, h as DropdownMenuTrigger, r as DropdownMenuContent, t as DropdownMenu } from "./dropdown-
|
|
3
|
+
import { t as Tooltip } from "./tooltip-U3XxlW4l.mjs";
|
|
4
|
+
import { a as DropdownMenuItem, h as DropdownMenuTrigger, r as DropdownMenuContent, t as DropdownMenu } from "./dropdown-Dgm_b6Mm.mjs";
|
|
5
5
|
import { Ellipsis } from "lucide-react";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/sidebar/index.mjs
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import "../utils-Bfgoe-Gm.mjs";
|
|
2
2
|
import "../separator-T2ppyD-8.mjs";
|
|
3
3
|
import "../button-AzpnV-WB.mjs";
|
|
4
|
-
import "../collapsible-Bt9UYfv3.mjs";
|
|
5
4
|
import "../input-DuyjEKEW.mjs";
|
|
6
5
|
import "../sheet-Cemwh78x.mjs";
|
|
7
|
-
import "../
|
|
8
|
-
import "../
|
|
9
|
-
import
|
|
6
|
+
import { C as SidebarTrigger, S as SidebarSeparator, _ as SidebarMenuSub, a as SidebarGroupAction, b as SidebarProvider, c as SidebarHeader, d as SidebarMenu, f as SidebarMenuAction, g as SidebarMenuSkeleton, h as SidebarMenuItem, i as SidebarGroup, l as SidebarInput, m as SidebarMenuButton, n as SidebarContent, o as SidebarGroupContent, p as SidebarMenuBadge, r as SidebarFooter, s as SidebarGroupLabel, t as Sidebar, u as SidebarInset, v as SidebarMenuSubButton, w as useSidebar, x as SidebarRail, y as SidebarMenuSubItem } from "../sidebar-BW76ss_f.mjs";
|
|
7
|
+
import "../skeleton-CkE23wsL.mjs";
|
|
8
|
+
import "../tooltip-U3XxlW4l.mjs";
|
|
10
9
|
|
|
11
|
-
export {
|
|
10
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
|