@uipath/apollo-wind 0.9.0 → 0.10.0-pr257.2a4b17b
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/components/forms/field-renderer.cjs +120 -69
- package/dist/components/forms/field-renderer.js +120 -69
- package/dist/components/forms/form-designer.cjs +2352 -1488
- package/dist/components/forms/form-designer.js +2353 -1489
- package/dist/components/forms/form-examples.cjs +10 -10
- package/dist/components/forms/form-examples.js +10 -10
- package/dist/components/forms/form-state-viewer.cjs +988 -433
- package/dist/components/forms/form-state-viewer.js +988 -433
- package/dist/components/forms/metadata-form.cjs +446 -170
- package/dist/components/forms/metadata-form.js +446 -170
- package/dist/components/forms/schema-viewer.cjs +173 -80
- package/dist/components/forms/schema-viewer.js +173 -80
- package/dist/components/ui/accordion.cjs +131 -27
- package/dist/components/ui/accordion.js +131 -27
- package/dist/components/ui/alert-dialog.cjs +273 -45
- package/dist/components/ui/alert-dialog.js +273 -45
- package/dist/components/ui/alert.cjs +106 -17
- package/dist/components/ui/alert.js +106 -17
- package/dist/components/ui/avatar.cjs +100 -15
- package/dist/components/ui/avatar.js +100 -15
- package/dist/components/ui/badge.cjs +36 -6
- package/dist/components/ui/badge.js +36 -6
- package/dist/components/ui/breadcrumb.cjs +258 -52
- package/dist/components/ui/breadcrumb.js +258 -52
- package/dist/components/ui/button-group.cjs +119 -19
- package/dist/components/ui/button-group.js +119 -19
- package/dist/components/ui/button.cjs +48 -8
- package/dist/components/ui/button.js +48 -8
- package/dist/components/ui/calendar.cjs +88 -30
- package/dist/components/ui/calendar.js +88 -30
- package/dist/components/ui/card.cjs +199 -30
- package/dist/components/ui/card.js +199 -30
- package/dist/components/ui/checkbox.cjs +42 -8
- package/dist/components/ui/checkbox.js +42 -8
- package/dist/components/ui/combobox.cjs +150 -53
- package/dist/components/ui/combobox.js +150 -53
- package/dist/components/ui/command.cjs +291 -53
- package/dist/components/ui/command.js +291 -53
- package/dist/components/ui/context-menu.cjs +370 -72
- package/dist/components/ui/context-menu.js +370 -72
- package/dist/components/ui/data-table.cjs +76 -39
- package/dist/components/ui/data-table.js +76 -39
- package/dist/components/ui/date-picker.cjs +179 -68
- package/dist/components/ui/date-picker.js +179 -68
- package/dist/components/ui/datetime-picker.cjs +225 -104
- package/dist/components/ui/datetime-picker.js +225 -104
- package/dist/components/ui/dialog.cjs +290 -78
- package/dist/components/ui/dialog.js +290 -78
- package/dist/components/ui/drawer.cjs +220 -39
- package/dist/components/ui/drawer.js +220 -39
- package/dist/components/ui/dropdown-menu.cjs +376 -73
- package/dist/components/ui/dropdown-menu.js +376 -73
- package/dist/components/ui/editable-cell.cjs +106 -42
- package/dist/components/ui/editable-cell.js +106 -42
- package/dist/components/ui/empty-state.cjs +106 -33
- package/dist/components/ui/empty-state.js +106 -33
- package/dist/components/ui/file-upload.cjs +405 -187
- package/dist/components/ui/file-upload.d.ts +3 -1
- package/dist/components/ui/file-upload.js +405 -187
- package/dist/components/ui/hover-card.cjs +46 -7
- package/dist/components/ui/hover-card.js +46 -7
- package/dist/components/ui/index.cjs +4 -4
- package/dist/components/ui/input.cjs +39 -6
- package/dist/components/ui/input.js +39 -6
- package/dist/components/ui/label.cjs +34 -5
- package/dist/components/ui/label.js +34 -5
- package/dist/components/ui/layout/column.cjs +209 -41
- package/dist/components/ui/layout/column.js +209 -41
- package/dist/components/ui/layout/grid.cjs +275 -60
- package/dist/components/ui/layout/grid.js +275 -60
- package/dist/components/ui/layout/row.cjs +209 -41
- package/dist/components/ui/layout/row.js +209 -41
- package/dist/components/ui/menubar.cjs +540 -106
- package/dist/components/ui/menubar.js +540 -106
- package/dist/components/ui/multi-select.cjs +289 -135
- package/dist/components/ui/multi-select.js +289 -135
- package/dist/components/ui/navigation-menu.cjs +244 -47
- package/dist/components/ui/navigation-menu.js +244 -47
- package/dist/components/ui/pagination.cjs +301 -65
- package/dist/components/ui/pagination.js +301 -65
- package/dist/components/ui/popover.cjs +48 -9
- package/dist/components/ui/popover.js +48 -9
- package/dist/components/ui/progress.cjs +48 -8
- package/dist/components/ui/progress.js +48 -8
- package/dist/components/ui/radio-group.cjs +74 -12
- package/dist/components/ui/radio-group.js +74 -12
- package/dist/components/ui/resizable.cjs +75 -10
- package/dist/components/ui/resizable.js +75 -10
- package/dist/components/ui/scroll-area.cjs +113 -21
- package/dist/components/ui/scroll-area.js +113 -21
- package/dist/components/ui/search.cjs +280 -98
- package/dist/components/ui/search.js +280 -98
- package/dist/components/ui/select.cjs +334 -68
- package/dist/components/ui/select.js +334 -68
- package/dist/components/ui/separator.cjs +48 -7
- package/dist/components/ui/separator.js +48 -7
- package/dist/components/ui/sheet.cjs +236 -50
- package/dist/components/ui/sheet.js +236 -50
- package/dist/components/ui/skeleton.cjs +31 -5
- package/dist/components/ui/skeleton.js +31 -5
- package/dist/components/ui/slider.cjs +71 -21
- package/dist/components/ui/slider.js +71 -21
- package/dist/components/ui/sonner.cjs +43 -15
- package/dist/components/ui/sonner.js +43 -15
- package/dist/components/ui/spinner.cjs +83 -21
- package/dist/components/ui/spinner.js +83 -21
- package/dist/components/ui/stats-card.cjs +169 -60
- package/dist/components/ui/stats-card.js +169 -60
- package/dist/components/ui/stepper.cjs +126 -57
- package/dist/components/ui/stepper.js +126 -57
- package/dist/components/ui/switch.cjs +42 -8
- package/dist/components/ui/switch.js +42 -8
- package/dist/components/ui/table.cjs +267 -42
- package/dist/components/ui/table.js +267 -42
- package/dist/components/ui/tabs.cjs +100 -15
- package/dist/components/ui/tabs.js +100 -15
- package/dist/components/ui/textarea.cjs +34 -5
- package/dist/components/ui/textarea.js +34 -5
- package/dist/components/ui/toggle-group.cjs +112 -19
- package/dist/components/ui/toggle-group.js +112 -19
- package/dist/components/ui/toggle.cjs +43 -6
- package/dist/components/ui/toggle.js +43 -6
- package/dist/components/ui/tooltip.cjs +40 -6
- package/dist/components/ui/tooltip.js +40 -6
- package/dist/examples/admin-layout-example.cjs +879 -347
- package/dist/examples/admin-layout-example.js +879 -347
- package/dist/examples/app-shell-example.cjs +14 -14
- package/dist/examples/app-shell-example.js +14 -14
- package/dist/examples/dashboard-example.cjs +495 -334
- package/dist/examples/dashboard-example.js +495 -334
- package/dist/examples/data-management-example.cjs +501 -303
- package/dist/examples/data-management-example.js +502 -304
- package/dist/examples/flow-editor-layout-example.cjs +435 -231
- package/dist/examples/flow-editor-layout-example.js +436 -232
- package/dist/examples/flow-start-example.cjs +508 -251
- package/dist/examples/flow-start-example.js +509 -252
- package/dist/examples/form-builder-example.cjs +1006 -602
- package/dist/examples/form-builder-example.js +1007 -603
- package/dist/examples/new-project-example.cjs +806 -474
- package/dist/examples/new-project-example.js +807 -475
- package/dist/examples/settings-example.cjs +792 -704
- package/dist/examples/settings-example.js +792 -704
- package/dist/examples/vscode-example.cjs +731 -236
- package/dist/examples/vscode-example.js +731 -236
- package/package.json +4 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
3
4
|
import { CheckboxItem, Content, Group, Item, ItemIndicator, Label, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger } from "@radix-ui/react-context-menu";
|
|
4
5
|
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
5
6
|
import { forwardRef } from "react";
|
|
@@ -10,88 +11,385 @@ const ContextMenuGroup = Group;
|
|
|
10
11
|
const ContextMenuPortal = Portal;
|
|
11
12
|
const ContextMenuSub = Sub;
|
|
12
13
|
const ContextMenuRadioGroup = RadioGroup;
|
|
13
|
-
const ContextMenuSubTrigger = /*#__PURE__*/ forwardRef((
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
]
|
|
23
|
-
|
|
14
|
+
const ContextMenuSubTrigger = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
15
|
+
const $ = c(14);
|
|
16
|
+
let children;
|
|
17
|
+
let className;
|
|
18
|
+
let inset;
|
|
19
|
+
let props;
|
|
20
|
+
if ($[0] !== t0) {
|
|
21
|
+
({ className, inset, children, ...props } = t0);
|
|
22
|
+
$[0] = t0;
|
|
23
|
+
$[1] = children;
|
|
24
|
+
$[2] = className;
|
|
25
|
+
$[3] = inset;
|
|
26
|
+
$[4] = props;
|
|
27
|
+
} else {
|
|
28
|
+
children = $[1];
|
|
29
|
+
className = $[2];
|
|
30
|
+
inset = $[3];
|
|
31
|
+
props = $[4];
|
|
32
|
+
}
|
|
33
|
+
const t1 = inset && "pl-8";
|
|
34
|
+
let t2;
|
|
35
|
+
if ($[5] !== className || $[6] !== t1) {
|
|
36
|
+
t2 = cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t1, className);
|
|
37
|
+
$[5] = className;
|
|
38
|
+
$[6] = t1;
|
|
39
|
+
$[7] = t2;
|
|
40
|
+
} else t2 = $[7];
|
|
41
|
+
let t3;
|
|
42
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
43
|
+
t3 = /*#__PURE__*/ jsx(ChevronRight, {
|
|
44
|
+
className: "ml-auto h-4 w-4"
|
|
45
|
+
});
|
|
46
|
+
$[8] = t3;
|
|
47
|
+
} else t3 = $[8];
|
|
48
|
+
let t4;
|
|
49
|
+
if ($[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t2) {
|
|
50
|
+
t4 = /*#__PURE__*/ jsxs(SubTrigger, {
|
|
51
|
+
ref: ref,
|
|
52
|
+
className: t2,
|
|
53
|
+
...props,
|
|
54
|
+
children: [
|
|
55
|
+
children,
|
|
56
|
+
t3
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
$[9] = children;
|
|
60
|
+
$[10] = props;
|
|
61
|
+
$[11] = ref;
|
|
62
|
+
$[12] = t2;
|
|
63
|
+
$[13] = t4;
|
|
64
|
+
} else t4 = $[13];
|
|
65
|
+
return t4;
|
|
66
|
+
});
|
|
24
67
|
ContextMenuSubTrigger.displayName = SubTrigger.displayName;
|
|
25
|
-
const ContextMenuSubContent = /*#__PURE__*/ forwardRef((
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
68
|
+
const ContextMenuSubContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
69
|
+
const $ = c(9);
|
|
70
|
+
let className;
|
|
71
|
+
let props;
|
|
72
|
+
if ($[0] !== t0) {
|
|
73
|
+
({ className, ...props } = t0);
|
|
74
|
+
$[0] = t0;
|
|
75
|
+
$[1] = className;
|
|
76
|
+
$[2] = props;
|
|
77
|
+
} else {
|
|
78
|
+
className = $[1];
|
|
79
|
+
props = $[2];
|
|
80
|
+
}
|
|
81
|
+
let t1;
|
|
82
|
+
if ($[3] !== className) {
|
|
83
|
+
t1 = cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]", className);
|
|
84
|
+
$[3] = className;
|
|
85
|
+
$[4] = t1;
|
|
86
|
+
} else t1 = $[4];
|
|
87
|
+
let t2;
|
|
88
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
89
|
+
t2 = /*#__PURE__*/ jsx(SubContent, {
|
|
33
90
|
ref: ref,
|
|
34
|
-
className:
|
|
91
|
+
className: t1,
|
|
35
92
|
...props
|
|
36
|
-
})
|
|
37
|
-
|
|
93
|
+
});
|
|
94
|
+
$[5] = props;
|
|
95
|
+
$[6] = ref;
|
|
96
|
+
$[7] = t1;
|
|
97
|
+
$[8] = t2;
|
|
98
|
+
} else t2 = $[8];
|
|
99
|
+
return t2;
|
|
100
|
+
});
|
|
101
|
+
ContextMenuSubContent.displayName = SubContent.displayName;
|
|
102
|
+
const ContextMenuContent = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
103
|
+
const $ = c(9);
|
|
104
|
+
let className;
|
|
105
|
+
let props;
|
|
106
|
+
if ($[0] !== t0) {
|
|
107
|
+
({ className, ...props } = t0);
|
|
108
|
+
$[0] = t0;
|
|
109
|
+
$[1] = className;
|
|
110
|
+
$[2] = props;
|
|
111
|
+
} else {
|
|
112
|
+
className = $[1];
|
|
113
|
+
props = $[2];
|
|
114
|
+
}
|
|
115
|
+
let t1;
|
|
116
|
+
if ($[3] !== className) {
|
|
117
|
+
t1 = cn("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-context-menu-content-transform-origin]", className);
|
|
118
|
+
$[3] = className;
|
|
119
|
+
$[4] = t1;
|
|
120
|
+
} else t1 = $[4];
|
|
121
|
+
let t2;
|
|
122
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
123
|
+
t2 = /*#__PURE__*/ jsx(Portal, {
|
|
124
|
+
children: /*#__PURE__*/ jsx(Content, {
|
|
125
|
+
ref: ref,
|
|
126
|
+
className: t1,
|
|
127
|
+
...props
|
|
128
|
+
})
|
|
129
|
+
});
|
|
130
|
+
$[5] = props;
|
|
131
|
+
$[6] = ref;
|
|
132
|
+
$[7] = t1;
|
|
133
|
+
$[8] = t2;
|
|
134
|
+
} else t2 = $[8];
|
|
135
|
+
return t2;
|
|
136
|
+
});
|
|
38
137
|
ContextMenuContent.displayName = Content.displayName;
|
|
39
|
-
const ContextMenuItem = /*#__PURE__*/ forwardRef((
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
138
|
+
const ContextMenuItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
139
|
+
const $ = c(11);
|
|
140
|
+
let className;
|
|
141
|
+
let inset;
|
|
142
|
+
let props;
|
|
143
|
+
if ($[0] !== t0) {
|
|
144
|
+
({ className, inset, ...props } = t0);
|
|
145
|
+
$[0] = t0;
|
|
146
|
+
$[1] = className;
|
|
147
|
+
$[2] = inset;
|
|
148
|
+
$[3] = props;
|
|
149
|
+
} else {
|
|
150
|
+
className = $[1];
|
|
151
|
+
inset = $[2];
|
|
152
|
+
props = $[3];
|
|
153
|
+
}
|
|
154
|
+
const t1 = inset && "pl-8";
|
|
155
|
+
let t2;
|
|
156
|
+
if ($[4] !== className || $[5] !== t1) {
|
|
157
|
+
t2 = cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t1, className);
|
|
158
|
+
$[4] = className;
|
|
159
|
+
$[5] = t1;
|
|
160
|
+
$[6] = t2;
|
|
161
|
+
} else t2 = $[6];
|
|
162
|
+
let t3;
|
|
163
|
+
if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
|
|
164
|
+
t3 = /*#__PURE__*/ jsx(Item, {
|
|
165
|
+
ref: ref,
|
|
166
|
+
className: t2,
|
|
167
|
+
...props
|
|
168
|
+
});
|
|
169
|
+
$[7] = props;
|
|
170
|
+
$[8] = ref;
|
|
171
|
+
$[9] = t2;
|
|
172
|
+
$[10] = t3;
|
|
173
|
+
} else t3 = $[10];
|
|
174
|
+
return t3;
|
|
175
|
+
});
|
|
44
176
|
ContextMenuItem.displayName = Item.displayName;
|
|
45
|
-
const ContextMenuCheckboxItem = /*#__PURE__*/ forwardRef((
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
177
|
+
const ContextMenuCheckboxItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
178
|
+
const $ = c(14);
|
|
179
|
+
let checked;
|
|
180
|
+
let children;
|
|
181
|
+
let className;
|
|
182
|
+
let props;
|
|
183
|
+
if ($[0] !== t0) {
|
|
184
|
+
({ className, children, checked, ...props } = t0);
|
|
185
|
+
$[0] = t0;
|
|
186
|
+
$[1] = checked;
|
|
187
|
+
$[2] = children;
|
|
188
|
+
$[3] = className;
|
|
189
|
+
$[4] = props;
|
|
190
|
+
} else {
|
|
191
|
+
checked = $[1];
|
|
192
|
+
children = $[2];
|
|
193
|
+
className = $[3];
|
|
194
|
+
props = $[4];
|
|
195
|
+
}
|
|
196
|
+
let t1;
|
|
197
|
+
if ($[5] !== className) {
|
|
198
|
+
t1 = cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className);
|
|
199
|
+
$[5] = className;
|
|
200
|
+
$[6] = t1;
|
|
201
|
+
} else t1 = $[6];
|
|
202
|
+
let t2;
|
|
203
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
204
|
+
t2 = /*#__PURE__*/ jsx("span", {
|
|
205
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
206
|
+
children: /*#__PURE__*/ jsx(ItemIndicator, {
|
|
207
|
+
children: /*#__PURE__*/ jsx(Check, {
|
|
208
|
+
className: "h-4 w-4"
|
|
57
209
|
})
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
]
|
|
61
|
-
}
|
|
210
|
+
})
|
|
211
|
+
});
|
|
212
|
+
$[7] = t2;
|
|
213
|
+
} else t2 = $[7];
|
|
214
|
+
let t3;
|
|
215
|
+
if ($[8] !== checked || $[9] !== children || $[10] !== props || $[11] !== ref || $[12] !== t1) {
|
|
216
|
+
t3 = /*#__PURE__*/ jsxs(CheckboxItem, {
|
|
217
|
+
ref: ref,
|
|
218
|
+
className: t1,
|
|
219
|
+
checked: checked,
|
|
220
|
+
...props,
|
|
221
|
+
children: [
|
|
222
|
+
t2,
|
|
223
|
+
children
|
|
224
|
+
]
|
|
225
|
+
});
|
|
226
|
+
$[8] = checked;
|
|
227
|
+
$[9] = children;
|
|
228
|
+
$[10] = props;
|
|
229
|
+
$[11] = ref;
|
|
230
|
+
$[12] = t1;
|
|
231
|
+
$[13] = t3;
|
|
232
|
+
} else t3 = $[13];
|
|
233
|
+
return t3;
|
|
234
|
+
});
|
|
62
235
|
ContextMenuCheckboxItem.displayName = CheckboxItem.displayName;
|
|
63
|
-
const ContextMenuRadioItem = /*#__PURE__*/ forwardRef((
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
236
|
+
const ContextMenuRadioItem = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
237
|
+
const $ = c(12);
|
|
238
|
+
let children;
|
|
239
|
+
let className;
|
|
240
|
+
let props;
|
|
241
|
+
if ($[0] !== t0) {
|
|
242
|
+
({ className, children, ...props } = t0);
|
|
243
|
+
$[0] = t0;
|
|
244
|
+
$[1] = children;
|
|
245
|
+
$[2] = className;
|
|
246
|
+
$[3] = props;
|
|
247
|
+
} else {
|
|
248
|
+
children = $[1];
|
|
249
|
+
className = $[2];
|
|
250
|
+
props = $[3];
|
|
251
|
+
}
|
|
252
|
+
let t1;
|
|
253
|
+
if ($[4] !== className) {
|
|
254
|
+
t1 = cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className);
|
|
255
|
+
$[4] = className;
|
|
256
|
+
$[5] = t1;
|
|
257
|
+
} else t1 = $[5];
|
|
258
|
+
let t2;
|
|
259
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
260
|
+
t2 = /*#__PURE__*/ jsx("span", {
|
|
261
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
262
|
+
children: /*#__PURE__*/ jsx(ItemIndicator, {
|
|
263
|
+
children: /*#__PURE__*/ jsx(Circle, {
|
|
264
|
+
className: "h-2 w-2 fill-current"
|
|
74
265
|
})
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
]
|
|
78
|
-
}
|
|
266
|
+
})
|
|
267
|
+
});
|
|
268
|
+
$[6] = t2;
|
|
269
|
+
} else t2 = $[6];
|
|
270
|
+
let t3;
|
|
271
|
+
if ($[7] !== children || $[8] !== props || $[9] !== ref || $[10] !== t1) {
|
|
272
|
+
t3 = /*#__PURE__*/ jsxs(RadioItem, {
|
|
273
|
+
ref: ref,
|
|
274
|
+
className: t1,
|
|
275
|
+
...props,
|
|
276
|
+
children: [
|
|
277
|
+
t2,
|
|
278
|
+
children
|
|
279
|
+
]
|
|
280
|
+
});
|
|
281
|
+
$[7] = children;
|
|
282
|
+
$[8] = props;
|
|
283
|
+
$[9] = ref;
|
|
284
|
+
$[10] = t1;
|
|
285
|
+
$[11] = t3;
|
|
286
|
+
} else t3 = $[11];
|
|
287
|
+
return t3;
|
|
288
|
+
});
|
|
79
289
|
ContextMenuRadioItem.displayName = RadioItem.displayName;
|
|
80
|
-
const ContextMenuLabel = /*#__PURE__*/ forwardRef((
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
290
|
+
const ContextMenuLabel = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
291
|
+
const $ = c(11);
|
|
292
|
+
let className;
|
|
293
|
+
let inset;
|
|
294
|
+
let props;
|
|
295
|
+
if ($[0] !== t0) {
|
|
296
|
+
({ className, inset, ...props } = t0);
|
|
297
|
+
$[0] = t0;
|
|
298
|
+
$[1] = className;
|
|
299
|
+
$[2] = inset;
|
|
300
|
+
$[3] = props;
|
|
301
|
+
} else {
|
|
302
|
+
className = $[1];
|
|
303
|
+
inset = $[2];
|
|
304
|
+
props = $[3];
|
|
305
|
+
}
|
|
306
|
+
const t1 = inset && "pl-8";
|
|
307
|
+
let t2;
|
|
308
|
+
if ($[4] !== className || $[5] !== t1) {
|
|
309
|
+
t2 = cn("px-2 py-1.5 text-sm font-semibold text-foreground", t1, className);
|
|
310
|
+
$[4] = className;
|
|
311
|
+
$[5] = t1;
|
|
312
|
+
$[6] = t2;
|
|
313
|
+
} else t2 = $[6];
|
|
314
|
+
let t3;
|
|
315
|
+
if ($[7] !== props || $[8] !== ref || $[9] !== t2) {
|
|
316
|
+
t3 = /*#__PURE__*/ jsx(Label, {
|
|
317
|
+
ref: ref,
|
|
318
|
+
className: t2,
|
|
319
|
+
...props
|
|
320
|
+
});
|
|
321
|
+
$[7] = props;
|
|
322
|
+
$[8] = ref;
|
|
323
|
+
$[9] = t2;
|
|
324
|
+
$[10] = t3;
|
|
325
|
+
} else t3 = $[10];
|
|
326
|
+
return t3;
|
|
327
|
+
});
|
|
85
328
|
ContextMenuLabel.displayName = Label.displayName;
|
|
86
|
-
const ContextMenuSeparator = /*#__PURE__*/ forwardRef((
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
329
|
+
const ContextMenuSeparator = /*#__PURE__*/ forwardRef((t0, ref)=>{
|
|
330
|
+
const $ = c(9);
|
|
331
|
+
let className;
|
|
332
|
+
let props;
|
|
333
|
+
if ($[0] !== t0) {
|
|
334
|
+
({ className, ...props } = t0);
|
|
335
|
+
$[0] = t0;
|
|
336
|
+
$[1] = className;
|
|
337
|
+
$[2] = props;
|
|
338
|
+
} else {
|
|
339
|
+
className = $[1];
|
|
340
|
+
props = $[2];
|
|
341
|
+
}
|
|
342
|
+
let t1;
|
|
343
|
+
if ($[3] !== className) {
|
|
344
|
+
t1 = cn("-mx-1 my-1 h-px bg-border", className);
|
|
345
|
+
$[3] = className;
|
|
346
|
+
$[4] = t1;
|
|
347
|
+
} else t1 = $[4];
|
|
348
|
+
let t2;
|
|
349
|
+
if ($[5] !== props || $[6] !== ref || $[7] !== t1) {
|
|
350
|
+
t2 = /*#__PURE__*/ jsx(Separator, {
|
|
351
|
+
ref: ref,
|
|
352
|
+
className: t1,
|
|
353
|
+
...props
|
|
354
|
+
});
|
|
355
|
+
$[5] = props;
|
|
356
|
+
$[6] = ref;
|
|
357
|
+
$[7] = t1;
|
|
358
|
+
$[8] = t2;
|
|
359
|
+
} else t2 = $[8];
|
|
360
|
+
return t2;
|
|
361
|
+
});
|
|
91
362
|
ContextMenuSeparator.displayName = Separator.displayName;
|
|
92
|
-
const ContextMenuShortcut = (
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
363
|
+
const ContextMenuShortcut = (t0)=>{
|
|
364
|
+
const $ = c(8);
|
|
365
|
+
let className;
|
|
366
|
+
let props;
|
|
367
|
+
if ($[0] !== t0) {
|
|
368
|
+
({ className, ...props } = t0);
|
|
369
|
+
$[0] = t0;
|
|
370
|
+
$[1] = className;
|
|
371
|
+
$[2] = props;
|
|
372
|
+
} else {
|
|
373
|
+
className = $[1];
|
|
374
|
+
props = $[2];
|
|
375
|
+
}
|
|
376
|
+
let t1;
|
|
377
|
+
if ($[3] !== className) {
|
|
378
|
+
t1 = cn("ml-auto text-xs tracking-widest text-muted-foreground", className);
|
|
379
|
+
$[3] = className;
|
|
380
|
+
$[4] = t1;
|
|
381
|
+
} else t1 = $[4];
|
|
382
|
+
let t2;
|
|
383
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
384
|
+
t2 = /*#__PURE__*/ jsx("span", {
|
|
385
|
+
className: t1,
|
|
386
|
+
...props
|
|
387
|
+
});
|
|
388
|
+
$[5] = props;
|
|
389
|
+
$[6] = t1;
|
|
390
|
+
$[7] = t2;
|
|
391
|
+
} else t2 = $[7];
|
|
392
|
+
return t2;
|
|
393
|
+
};
|
|
96
394
|
ContextMenuShortcut.displayName = 'ContextMenuShortcut';
|
|
97
395
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
|
|
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
DataTableColumnHeader: ()=>DataTableColumnHeader
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const compiler_runtime_namespaceObject = require("react/compiler-runtime");
|
|
32
33
|
const external_react_namespaceObject = require("react");
|
|
33
34
|
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
34
35
|
const external_button_cjs_namespaceObject = require("./button.cjs");
|
|
@@ -118,12 +119,12 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
118
119
|
}),
|
|
119
120
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuContent, {
|
|
120
121
|
align: "end",
|
|
121
|
-
children: table.getAllColumns().filter((column)=>column.getCanHide()).map((
|
|
122
|
+
children: table.getAllColumns().filter((column)=>column.getCanHide()).map((column_0)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_dropdown_menu_cjs_namespaceObject.DropdownMenuCheckboxItem, {
|
|
122
123
|
className: "capitalize",
|
|
123
|
-
checked:
|
|
124
|
-
onCheckedChange: (
|
|
125
|
-
children:
|
|
126
|
-
},
|
|
124
|
+
checked: column_0.getIsVisible(),
|
|
125
|
+
onCheckedChange: (value_0)=>column_0.toggleVisibility(!!value_0),
|
|
126
|
+
children: column_0.id
|
|
127
|
+
}, column_0.id))
|
|
127
128
|
})
|
|
128
129
|
]
|
|
129
130
|
})
|
|
@@ -140,13 +141,13 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
140
141
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableHeader, {
|
|
141
142
|
children: table.getHeaderGroups().map((headerGroup)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow, {
|
|
142
143
|
children: headerGroup.headers.map((header)=>{
|
|
143
|
-
const { column } = header;
|
|
144
|
+
const { column: column_1 } = header;
|
|
144
145
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_table_cjs_namespaceObject.TableHead, {
|
|
145
146
|
className: compact ? 'relative h-8 px-2 py-1' : 'relative',
|
|
146
147
|
style: {
|
|
147
|
-
width: resizable ? header.getSize() : 150 !==
|
|
148
|
-
minWidth:
|
|
149
|
-
maxWidth:
|
|
148
|
+
width: resizable ? header.getSize() : 150 !== column_1.getSize() ? column_1.getSize() : void 0,
|
|
149
|
+
minWidth: column_1.columnDef.minSize,
|
|
150
|
+
maxWidth: column_1.columnDef.maxSize
|
|
150
151
|
},
|
|
151
152
|
children: [
|
|
152
153
|
header.isPlaceholder ? null : (0, react_table_namespaceObject.flexRender)(header.column.columnDef.header, header.getContext()),
|
|
@@ -167,13 +168,13 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
167
168
|
children: table.getRowModel().rows?.length ? table.getRowModel().rows.map((row)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableRow, {
|
|
168
169
|
"data-state": row.getIsSelected() && 'selected',
|
|
169
170
|
children: row.getVisibleCells().map((cell)=>{
|
|
170
|
-
const { column } = cell;
|
|
171
|
+
const { column: column_2 } = cell;
|
|
171
172
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_table_cjs_namespaceObject.TableCell, {
|
|
172
173
|
className: compact ? 'truncate px-2 py-1' : 'truncate',
|
|
173
174
|
style: {
|
|
174
|
-
width: resizable ? cell.column.getSize() : 150 !==
|
|
175
|
-
minWidth:
|
|
176
|
-
maxWidth:
|
|
175
|
+
width: resizable ? cell.column.getSize() : 150 !== column_2.getSize() ? column_2.getSize() : void 0,
|
|
176
|
+
minWidth: column_2.columnDef.minSize,
|
|
177
|
+
maxWidth: column_2.columnDef.maxSize
|
|
177
178
|
},
|
|
178
179
|
children: (0, react_table_namespaceObject.flexRender)(cell.column.columnDef.cell, cell.getContext())
|
|
179
180
|
}, cell.id);
|
|
@@ -235,32 +236,68 @@ function DataTable({ columns, data, searchKey, searchPlaceholder = 'Search...',
|
|
|
235
236
|
]
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
|
-
function DataTableColumnHeader(
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
239
|
+
function DataTableColumnHeader(t0) {
|
|
240
|
+
const $ = (0, compiler_runtime_namespaceObject.c)(14);
|
|
241
|
+
const { column, title, children } = t0;
|
|
242
|
+
let t1;
|
|
243
|
+
if ($[0] !== column) {
|
|
244
|
+
t1 = column.getIsSorted();
|
|
245
|
+
$[0] = column;
|
|
246
|
+
$[1] = t1;
|
|
247
|
+
} else t1 = $[1];
|
|
248
|
+
const sorted = t1;
|
|
249
|
+
let t2;
|
|
250
|
+
if ($[2] !== column || $[3] !== sorted) {
|
|
251
|
+
t2 = ()=>{
|
|
252
|
+
if ("asc" === sorted) column.toggleSorting(true);
|
|
253
|
+
else if ("desc" === sorted) column.clearSorting();
|
|
254
|
+
else column.toggleSorting(false);
|
|
255
|
+
};
|
|
256
|
+
$[2] = column;
|
|
257
|
+
$[3] = sorted;
|
|
258
|
+
$[4] = t2;
|
|
259
|
+
} else t2 = $[4];
|
|
260
|
+
const handleClick = t2;
|
|
261
|
+
let t3;
|
|
262
|
+
if ($[5] !== title) {
|
|
263
|
+
t3 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
264
|
+
children: title
|
|
265
|
+
});
|
|
266
|
+
$[5] = title;
|
|
267
|
+
$[6] = t3;
|
|
268
|
+
} else t3 = $[6];
|
|
269
|
+
let t4;
|
|
270
|
+
if ($[7] !== sorted) {
|
|
271
|
+
t4 = "asc" === sorted ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowUp, {
|
|
272
|
+
className: "ml-2 h-4 w-4"
|
|
273
|
+
}) : "desc" === sorted ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowDown, {
|
|
274
|
+
className: "ml-2 h-4 w-4"
|
|
275
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.ArrowUpDown, {
|
|
276
|
+
className: "ml-2 h-4 w-4"
|
|
277
|
+
});
|
|
278
|
+
$[7] = sorted;
|
|
279
|
+
$[8] = t4;
|
|
280
|
+
} else t4 = $[8];
|
|
281
|
+
let t5;
|
|
282
|
+
if ($[9] !== children || $[10] !== handleClick || $[11] !== t3 || $[12] !== t4) {
|
|
283
|
+
t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_button_cjs_namespaceObject.Button, {
|
|
284
|
+
variant: "ghost",
|
|
285
|
+
size: "sm",
|
|
286
|
+
className: "-ml-3 h-8 data-[state=open]:bg-accent",
|
|
287
|
+
onClick: handleClick,
|
|
288
|
+
children: [
|
|
289
|
+
t3,
|
|
290
|
+
children,
|
|
291
|
+
t4
|
|
292
|
+
]
|
|
293
|
+
});
|
|
294
|
+
$[9] = children;
|
|
295
|
+
$[10] = handleClick;
|
|
296
|
+
$[11] = t3;
|
|
297
|
+
$[12] = t4;
|
|
298
|
+
$[13] = t5;
|
|
299
|
+
} else t5 = $[13];
|
|
300
|
+
return t5;
|
|
264
301
|
}
|
|
265
302
|
function DataTableSelectColumn() {
|
|
266
303
|
return {
|