@bfrs/agentic-components 0.7.7 → 0.7.8
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/BFRS_AGENTIC_COMPONENTS.md +4 -2
- package/dist/components/data-display/DataTable/DataTable.js +6 -0
- package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
- package/dist/components/data-display/DataTable/DataTable.types.d.ts +1 -0
- package/dist/components/data-display/DataTable/TableSaveView.js +6 -1
- package/dist/components/data-display/DataTable/TableSaveView.js.map +1 -1
- package/dist/components/data-display/DataTable/TableSkeleton.js +3 -1
- package/dist/components/data-display/DataTable/TableSkeleton.js.map +1 -1
- package/dist/components/data-display/DataTable/TableViewSelector.js +296 -269
- package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -1
- package/dist/components/data-display/DataTable/saveViewApi.d.ts +13 -4
- package/dist/components/data-display/DataTable/saveViewApi.js +154 -144
- package/dist/components/data-display/DataTable/saveViewApi.js.map +1 -1
- package/dist/components/data-display/DataTable/useSavedViews.d.ts +8 -8
- package/dist/components/data-display/DataTable/useSavedViews.js +33 -51
- package/dist/components/data-display/DataTable/useSavedViews.js.map +1 -1
- package/dist/components/data-display/DataTable/viewCache.d.ts +75 -0
- package/dist/components/data-display/DataTable/viewCache.js +83 -0
- package/dist/components/data-display/DataTable/viewCache.js.map +1 -0
- package/dist/components/data-display/DataTable/viewStore.d.ts +11 -8
- package/dist/components/data-display/DataTable/viewStore.js +201 -208
- package/dist/components/data-display/DataTable/viewStore.js.map +1 -1
- package/dist/custom-elements.js +10597 -10516
- package/dist/custom-elements.js.map +1 -1
- package/package.json +1 -1
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js +0 -11
- package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js.map +0 -1
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowCounterClockwise.es.js +0 -31
- package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowCounterClockwise.es.js.map +0 -1
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import { jsxs as s, jsx as r, Fragment as
|
|
2
|
-
import { Root as
|
|
3
|
-
import { Root as
|
|
4
|
-
import {
|
|
5
|
-
import { BookmarkSimple as At } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
|
|
1
|
+
import { jsxs as s, jsx as r, Fragment as xe } from "react/jsx-runtime";
|
|
2
|
+
import { Root as Se, Portal as Te, Overlay as Tt, Content as _t, Title as Rt, Description as Ct } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
3
|
+
import { Root as kt, Trigger as zt, Portal as At, Content as Vt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
|
+
import { BookmarkSimple as _e } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
|
|
6
5
|
import { CaretDown as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
|
|
7
|
-
import { DotsThreeVertical as
|
|
8
|
-
import { PencilSimple as
|
|
6
|
+
import { DotsThreeVertical as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
|
|
7
|
+
import { PencilSimple as Ot } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
|
|
9
8
|
import { Star as le } from "../../../node_modules/@phosphor-icons/react/dist/csr/Star.es.js";
|
|
10
|
-
import { Trash as
|
|
11
|
-
import { useRef as k, useMemo as ie, useState as
|
|
12
|
-
import
|
|
13
|
-
import { IconButton as
|
|
14
|
-
import { twRing as
|
|
9
|
+
import { Trash as Bt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
|
|
10
|
+
import { useRef as k, useMemo as ie, useState as m, useId as Ht, useEffect as E, useCallback as N } from "react";
|
|
11
|
+
import n from "@emotion/styled";
|
|
12
|
+
import { IconButton as Lt, Button as j } from "../../primitives/Button/Button.js";
|
|
13
|
+
import { twRing as M, twTransform as Oe, kfContentIn as Ft, kfOverlayIn as Dt, kfModalContentIn as Pt } from "../../../lib/emotionTw.js";
|
|
15
14
|
import { floatingCollisionPadding as Et } from "../../ui/overlays/overlayPositioning.js";
|
|
16
|
-
import { createTableViewSelectorStore as
|
|
15
|
+
import { createTableViewSelectorStore as Nt, isReservedViewName as Re } from "./viewStore.js";
|
|
17
16
|
import { BfrsPortalScope as ae } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
|
|
18
17
|
import { ActionMenu as jt } from "../../navigation/ActionMenu/ActionMenu.js";
|
|
19
18
|
const z = {
|
|
20
19
|
"--tw-text-opacity": "1",
|
|
21
20
|
color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
|
|
22
|
-
},
|
|
21
|
+
}, Be = {
|
|
23
22
|
"--tw-text-opacity": "1",
|
|
24
23
|
color: "hsl(var(--bfrs-color-text-secondary) / var(--tw-text-opacity, 1))"
|
|
25
|
-
},
|
|
24
|
+
}, B = {
|
|
26
25
|
"--tw-text-opacity": "1",
|
|
27
26
|
color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
|
|
28
|
-
},
|
|
27
|
+
}, se = {
|
|
29
28
|
"--tw-bg-opacity": "1",
|
|
30
29
|
backgroundColor: "hsl(var(--bfrs-color-surface-card) / var(--tw-bg-opacity, 1))"
|
|
31
|
-
},
|
|
30
|
+
}, He = {
|
|
32
31
|
"--tw-bg-opacity": "1",
|
|
33
32
|
backgroundColor: "hsl(var(--bfrs-color-primary-soft) / var(--tw-bg-opacity, 1))"
|
|
34
|
-
},
|
|
33
|
+
}, ce = {
|
|
35
34
|
"--tw-border-opacity": "1",
|
|
36
35
|
borderColor: "hsl(var(--bfrs-color-border) / var(--tw-border-opacity, 1))"
|
|
37
|
-
},
|
|
36
|
+
}, Mt = /* @__PURE__ */ n("div", {
|
|
38
37
|
label: "AgenticTableViewSelector-root"
|
|
39
38
|
})({
|
|
40
39
|
display: "inline-flex",
|
|
41
40
|
minWidth: "0px"
|
|
42
|
-
}),
|
|
41
|
+
}), Kt = /* @__PURE__ */ n("button", {
|
|
43
42
|
label: "AgenticTableViewSelector-trigger",
|
|
44
|
-
shouldForwardProp: (
|
|
45
|
-
})(({ ownerState:
|
|
43
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
44
|
+
})(({ ownerState: o }) => [
|
|
46
45
|
{
|
|
47
46
|
display: "inline-flex",
|
|
48
47
|
minWidth: "0px",
|
|
@@ -52,7 +51,7 @@ const z = {
|
|
|
52
51
|
gap: ".5rem",
|
|
53
52
|
borderRadius: "7px",
|
|
54
53
|
borderWidth: "1px",
|
|
55
|
-
...
|
|
54
|
+
...se,
|
|
56
55
|
paddingLeft: ".75rem",
|
|
57
56
|
paddingRight: ".75rem",
|
|
58
57
|
fontSize: "12px",
|
|
@@ -64,20 +63,24 @@ const z = {
|
|
|
64
63
|
transitionProperty: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
|
|
65
64
|
transitionTimingFunction: "cubic-bezier(0,0,.2,1)",
|
|
66
65
|
transitionDuration: ".15s",
|
|
67
|
-
"&:hover":
|
|
68
|
-
"&:focus-visible":
|
|
66
|
+
"&:hover": He,
|
|
67
|
+
"&:focus-visible": M("2px", "hsl(var(--bfrs-color-border-focus) / .25)"),
|
|
69
68
|
"&:disabled": {
|
|
70
69
|
pointerEvents: "none",
|
|
71
70
|
opacity: ".55"
|
|
72
71
|
}
|
|
73
72
|
},
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
o.size === "sm" ? { height: "1.75rem" } : { height: "2.25rem" },
|
|
74
|
+
// Stays highlighted once a view is selected, not just while the popover is
|
|
75
|
+
// open — matches the data-filled convention every other Select-like
|
|
76
|
+
// trigger in the library already follows (Select, MultiSelect,
|
|
77
|
+
// SearchableSelect, DateRangePicker, TagInput, Input).
|
|
78
|
+
o.open || o.filled ? {
|
|
76
79
|
"--tw-border-opacity": "1",
|
|
77
80
|
borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))"
|
|
78
|
-
} :
|
|
79
|
-
|
|
80
|
-
]),
|
|
81
|
+
} : ce,
|
|
82
|
+
o.empty && B
|
|
83
|
+
]), $t = /* @__PURE__ */ n("span", {
|
|
81
84
|
label: "AgenticTableViewSelector-triggerLabel"
|
|
82
85
|
})({
|
|
83
86
|
minWidth: "0px",
|
|
@@ -85,25 +88,25 @@ const z = {
|
|
|
85
88
|
overflow: "hidden",
|
|
86
89
|
textOverflow: "ellipsis",
|
|
87
90
|
whiteSpace: "nowrap"
|
|
88
|
-
}),
|
|
91
|
+
}), Ce = /* @__PURE__ */ n(le, {
|
|
89
92
|
label: "AgenticTableViewSelector-primaryStar"
|
|
90
93
|
})({
|
|
91
94
|
flexShrink: 0,
|
|
92
95
|
"--tw-text-opacity": "1",
|
|
93
96
|
color: "hsl(var(--bfrs-color-warning) / var(--tw-text-opacity, 1))"
|
|
94
|
-
}),
|
|
97
|
+
}), qt = /* @__PURE__ */ n(Wt, {
|
|
95
98
|
label: "AgenticTableViewSelector-caret",
|
|
96
|
-
shouldForwardProp: (
|
|
97
|
-
})(({ ownerState:
|
|
99
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
100
|
+
})(({ ownerState: o }) => [
|
|
98
101
|
{
|
|
99
102
|
flexShrink: 0,
|
|
100
|
-
...
|
|
103
|
+
...B,
|
|
101
104
|
transitionProperty: "transform",
|
|
102
105
|
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
|
|
103
106
|
transitionDuration: ".15s"
|
|
104
107
|
},
|
|
105
|
-
|
|
106
|
-
]),
|
|
108
|
+
o.open && Oe({ "--tw-rotate": "180deg" })
|
|
109
|
+
]), Ut = /* @__PURE__ */ n(Vt, {
|
|
107
110
|
label: "AgenticTableViewSelector-content"
|
|
108
111
|
})({
|
|
109
112
|
zIndex: 1e3,
|
|
@@ -111,16 +114,16 @@ const z = {
|
|
|
111
114
|
overflow: "hidden",
|
|
112
115
|
borderRadius: "var(--bfrs-radius-lg)",
|
|
113
116
|
borderWidth: "1px",
|
|
114
|
-
...
|
|
115
|
-
|
|
117
|
+
...ce,
|
|
118
|
+
backgroundColor: "#F6F9F6",
|
|
116
119
|
"--tw-shadow": "var(--bfrs-shadow-elevated)",
|
|
117
120
|
"--tw-shadow-colored": "var(--bfrs-shadow-elevated)",
|
|
118
121
|
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
|
|
119
122
|
outline: "2px solid transparent",
|
|
120
123
|
outlineOffset: "2px",
|
|
121
|
-
...
|
|
124
|
+
...Ft,
|
|
122
125
|
animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
|
|
123
|
-
}),
|
|
126
|
+
}), Yt = /* @__PURE__ */ n("div", {
|
|
124
127
|
label: "AgenticTableViewSelector-header"
|
|
125
128
|
})({
|
|
126
129
|
paddingLeft: ".75rem",
|
|
@@ -132,8 +135,8 @@ const z = {
|
|
|
132
135
|
fontWeight: 700,
|
|
133
136
|
letterSpacing: ".08em",
|
|
134
137
|
textTransform: "uppercase",
|
|
135
|
-
...
|
|
136
|
-
}),
|
|
138
|
+
...B
|
|
139
|
+
}), Gt = /* @__PURE__ */ n("div", {
|
|
137
140
|
label: "AgenticTableViewSelector-list"
|
|
138
141
|
})({
|
|
139
142
|
display: "flex",
|
|
@@ -141,7 +144,7 @@ const z = {
|
|
|
141
144
|
flexDirection: "column",
|
|
142
145
|
overflowY: "auto",
|
|
143
146
|
paddingBottom: ".25rem"
|
|
144
|
-
}),
|
|
147
|
+
}), Jt = /* @__PURE__ */ n("div", {
|
|
145
148
|
label: "AgenticTableViewSelector-row"
|
|
146
149
|
})({
|
|
147
150
|
display: "flex",
|
|
@@ -150,10 +153,10 @@ const z = {
|
|
|
150
153
|
gap: ".375rem",
|
|
151
154
|
paddingLeft: ".5rem",
|
|
152
155
|
paddingRight: ".625rem"
|
|
153
|
-
}),
|
|
156
|
+
}), Qt = /* @__PURE__ */ n("button", {
|
|
154
157
|
label: "AgenticTableViewSelector-viewButton",
|
|
155
|
-
shouldForwardProp: (
|
|
156
|
-
})(({ ownerState:
|
|
158
|
+
shouldForwardProp: (o) => o !== "ownerState"
|
|
159
|
+
})(({ ownerState: o }) => [
|
|
157
160
|
{
|
|
158
161
|
display: "flex",
|
|
159
162
|
minWidth: "0px",
|
|
@@ -173,13 +176,13 @@ const z = {
|
|
|
173
176
|
...z,
|
|
174
177
|
outline: "2px solid transparent",
|
|
175
178
|
outlineOffset: "2px",
|
|
176
|
-
"&:hover":
|
|
177
|
-
"&:focus-visible":
|
|
179
|
+
"&:hover": Be,
|
|
180
|
+
"&:focus-visible": M("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
|
|
178
181
|
},
|
|
179
|
-
|
|
182
|
+
o.selected && {
|
|
180
183
|
fontWeight: 700
|
|
181
184
|
}
|
|
182
|
-
]),
|
|
185
|
+
]), Xt = /* @__PURE__ */ n("span", {
|
|
183
186
|
label: "AgenticTableViewSelector-name"
|
|
184
187
|
})({
|
|
185
188
|
minWidth: "0px",
|
|
@@ -187,13 +190,13 @@ const z = {
|
|
|
187
190
|
overflow: "hidden",
|
|
188
191
|
textOverflow: "ellipsis",
|
|
189
192
|
whiteSpace: "nowrap"
|
|
190
|
-
}),
|
|
193
|
+
}), Zt = /* @__PURE__ */ n("div", {
|
|
191
194
|
label: "AgenticTableViewSelector-divider"
|
|
192
195
|
})({
|
|
193
196
|
height: "1px",
|
|
194
197
|
"--tw-bg-opacity": "1",
|
|
195
198
|
backgroundColor: "hsl(var(--bfrs-color-border-light) / var(--tw-bg-opacity, 1))"
|
|
196
|
-
}),
|
|
199
|
+
}), er = /* @__PURE__ */ n("button", {
|
|
197
200
|
label: "AgenticTableViewSelector-resetButton"
|
|
198
201
|
})({
|
|
199
202
|
display: "flex",
|
|
@@ -206,12 +209,12 @@ const z = {
|
|
|
206
209
|
fontSize: ".75rem",
|
|
207
210
|
lineHeight: "1rem",
|
|
208
211
|
fontWeight: 500,
|
|
209
|
-
...
|
|
212
|
+
...Be,
|
|
210
213
|
outline: "2px solid transparent",
|
|
211
214
|
outlineOffset: "2px",
|
|
212
|
-
"&:hover":
|
|
213
|
-
"&:focus-visible":
|
|
214
|
-
}),
|
|
215
|
+
"&:hover": He,
|
|
216
|
+
"&:focus-visible": M("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
|
|
217
|
+
}), ke = /* @__PURE__ */ n("div", {
|
|
215
218
|
label: "AgenticTableViewSelector-empty"
|
|
216
219
|
})({
|
|
217
220
|
paddingLeft: ".75rem",
|
|
@@ -220,17 +223,17 @@ const z = {
|
|
|
220
223
|
paddingBottom: ".75rem",
|
|
221
224
|
fontSize: ".75rem",
|
|
222
225
|
lineHeight: "1rem",
|
|
223
|
-
...
|
|
224
|
-
}),
|
|
226
|
+
...B
|
|
227
|
+
}), ze = /* @__PURE__ */ n(Tt, {
|
|
225
228
|
label: "AgenticTableViewSelector-renameOverlay"
|
|
226
229
|
})({
|
|
227
230
|
position: "fixed",
|
|
228
231
|
inset: 0,
|
|
229
232
|
zIndex: 1050,
|
|
230
233
|
backgroundColor: "hsl(var(--bfrs-color-text-primary) / .45)",
|
|
231
|
-
...
|
|
234
|
+
...Dt,
|
|
232
235
|
animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
|
|
233
|
-
}),
|
|
236
|
+
}), Ae = /* @__PURE__ */ n(_t, {
|
|
234
237
|
label: "AgenticTableViewSelector-renameContent"
|
|
235
238
|
})({
|
|
236
239
|
position: "fixed",
|
|
@@ -243,8 +246,8 @@ const z = {
|
|
|
243
246
|
overflow: "auto",
|
|
244
247
|
borderRadius: "var(--bfrs-radius-lg)",
|
|
245
248
|
borderWidth: "1px",
|
|
249
|
+
...ce,
|
|
246
250
|
...se,
|
|
247
|
-
...M,
|
|
248
251
|
padding: "1.25rem",
|
|
249
252
|
...z,
|
|
250
253
|
"--tw-shadow": "var(--bfrs-shadow-overlay)",
|
|
@@ -252,24 +255,24 @@ const z = {
|
|
|
252
255
|
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
|
|
253
256
|
outline: "2px solid transparent",
|
|
254
257
|
outlineOffset: "2px",
|
|
255
|
-
...
|
|
256
|
-
...
|
|
258
|
+
...Oe({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
|
|
259
|
+
...Pt,
|
|
257
260
|
animation: "bfrs-bfrs-modal-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
|
|
258
|
-
}),
|
|
261
|
+
}), Ve = /* @__PURE__ */ n(Rt, {
|
|
259
262
|
label: "AgenticTableViewSelector-renameTitle"
|
|
260
263
|
})({
|
|
261
264
|
fontSize: "1.125rem",
|
|
262
265
|
lineHeight: "1.5rem",
|
|
263
266
|
fontWeight: 700,
|
|
264
267
|
...z
|
|
265
|
-
}),
|
|
268
|
+
}), We = /* @__PURE__ */ n(Ct, {
|
|
266
269
|
label: "AgenticTableViewSelector-renameDescription"
|
|
267
270
|
})({
|
|
268
271
|
marginTop: ".25rem",
|
|
269
272
|
fontSize: ".75rem",
|
|
270
273
|
lineHeight: "1.25rem",
|
|
271
|
-
...
|
|
272
|
-
}),
|
|
274
|
+
...B
|
|
275
|
+
}), tr = /* @__PURE__ */ n("label", {
|
|
273
276
|
label: "AgenticTableViewSelector-renameLabel"
|
|
274
277
|
})({
|
|
275
278
|
display: "block",
|
|
@@ -278,7 +281,7 @@ const z = {
|
|
|
278
281
|
lineHeight: "1rem",
|
|
279
282
|
fontWeight: 700,
|
|
280
283
|
...z
|
|
281
|
-
}),
|
|
284
|
+
}), rr = /* @__PURE__ */ n("input", {
|
|
282
285
|
label: "AgenticTableViewSelector-renameInput"
|
|
283
286
|
})({
|
|
284
287
|
marginTop: ".5rem",
|
|
@@ -288,7 +291,7 @@ const z = {
|
|
|
288
291
|
borderWidth: "1.5px",
|
|
289
292
|
"--tw-border-opacity": "1",
|
|
290
293
|
borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))",
|
|
291
|
-
...
|
|
294
|
+
...se,
|
|
292
295
|
paddingLeft: ".75rem",
|
|
293
296
|
paddingRight: ".75rem",
|
|
294
297
|
fontSize: ".875rem",
|
|
@@ -297,185 +300,200 @@ const z = {
|
|
|
297
300
|
...z,
|
|
298
301
|
outline: "2px solid transparent",
|
|
299
302
|
outlineOffset: "2px",
|
|
300
|
-
"&:focus-visible":
|
|
301
|
-
}),
|
|
303
|
+
"&:focus-visible": M("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
|
|
304
|
+
}), Ie = /* @__PURE__ */ n("div", {
|
|
302
305
|
label: "AgenticTableViewSelector-renameFooter"
|
|
303
306
|
})({
|
|
304
307
|
marginTop: "1.5rem",
|
|
305
308
|
display: "flex",
|
|
306
309
|
justifyContent: "flex-end",
|
|
307
310
|
gap: ".625rem"
|
|
311
|
+
}), or = /* @__PURE__ */ n(j, {
|
|
312
|
+
label: "AgenticTableViewSelector-renameSubmitButton"
|
|
313
|
+
})({
|
|
314
|
+
"&&:disabled": {
|
|
315
|
+
opacity: 1,
|
|
316
|
+
cursor: "not-allowed",
|
|
317
|
+
"--tw-bg-opacity": "1",
|
|
318
|
+
backgroundColor: "hsl(var(--bfrs-color-surface-muted) / var(--tw-bg-opacity, 1))",
|
|
319
|
+
"--tw-text-opacity": "1",
|
|
320
|
+
color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
|
|
321
|
+
}
|
|
322
|
+
}), nr = /* @__PURE__ */ n("p", {
|
|
323
|
+
label: "AgenticTableViewSelector-renameFieldError"
|
|
324
|
+
})({
|
|
325
|
+
marginTop: ".375rem",
|
|
326
|
+
fontSize: ".75rem",
|
|
327
|
+
lineHeight: "1rem",
|
|
328
|
+
"--tw-text-opacity": "1",
|
|
329
|
+
color: "hsl(var(--bfrs-color-danger) / var(--tw-text-opacity, 1))"
|
|
308
330
|
});
|
|
309
|
-
function
|
|
310
|
-
return
|
|
331
|
+
function O(o, i) {
|
|
332
|
+
return i ? o.find((t) => t.view_id === i) ?? null : null;
|
|
311
333
|
}
|
|
312
|
-
function
|
|
313
|
-
var
|
|
314
|
-
const w = [], y = /* @__PURE__ */ new Set(), x =
|
|
334
|
+
function ir(o, i, t) {
|
|
335
|
+
var p;
|
|
336
|
+
const w = [], y = /* @__PURE__ */ new Set(), x = i ?? ((p = o.find((c) => c.is_default)) == null ? void 0 : p.view_id) ?? null, f = (c) => {
|
|
315
337
|
if (!c || y.has(c)) return;
|
|
316
|
-
const
|
|
317
|
-
|
|
338
|
+
const b = O(o, c);
|
|
339
|
+
b && (w.push(b), y.add(b.view_id));
|
|
318
340
|
};
|
|
319
|
-
|
|
320
|
-
for (const c of
|
|
341
|
+
f(x), f(t);
|
|
342
|
+
for (const c of o)
|
|
321
343
|
y.has(c.view_id) || (w.push(c), y.add(c.view_id));
|
|
322
344
|
return w;
|
|
323
345
|
}
|
|
324
|
-
function
|
|
325
|
-
return
|
|
346
|
+
function ar(o) {
|
|
347
|
+
return o ? [
|
|
326
348
|
"api",
|
|
327
|
-
|
|
328
|
-
|
|
349
|
+
o.viewType && o.tab ? "scoped" : "local",
|
|
350
|
+
o.saveEndpoint || o.endpoint ? "remote-save" : "local-save"
|
|
329
351
|
].join(":") : "none";
|
|
330
352
|
}
|
|
331
|
-
function
|
|
332
|
-
const
|
|
353
|
+
function lr(o) {
|
|
354
|
+
const i = () => o.current;
|
|
333
355
|
return {
|
|
334
356
|
get baseUrl() {
|
|
335
357
|
var t;
|
|
336
|
-
return (t =
|
|
358
|
+
return (t = i()) == null ? void 0 : t.baseUrl;
|
|
337
359
|
},
|
|
338
360
|
get endpoint() {
|
|
339
361
|
var t;
|
|
340
|
-
return (t =
|
|
362
|
+
return (t = i()) == null ? void 0 : t.endpoint;
|
|
341
363
|
},
|
|
342
364
|
get saveEndpoint() {
|
|
343
365
|
var t;
|
|
344
|
-
return (t =
|
|
366
|
+
return (t = i()) == null ? void 0 : t.saveEndpoint;
|
|
345
367
|
},
|
|
346
368
|
get listEndpoint() {
|
|
347
369
|
var t;
|
|
348
|
-
return (t =
|
|
349
|
-
},
|
|
350
|
-
get getEndpoint() {
|
|
351
|
-
var t;
|
|
352
|
-
return (t = o()) == null ? void 0 : t.getEndpoint;
|
|
370
|
+
return (t = i()) == null ? void 0 : t.listEndpoint;
|
|
353
371
|
},
|
|
354
372
|
get updateEndpoint() {
|
|
355
373
|
var t;
|
|
356
|
-
return (t =
|
|
374
|
+
return (t = i()) == null ? void 0 : t.updateEndpoint;
|
|
357
375
|
},
|
|
358
376
|
get deleteEndpoint() {
|
|
359
377
|
var t;
|
|
360
|
-
return (t =
|
|
378
|
+
return (t = i()) == null ? void 0 : t.deleteEndpoint;
|
|
361
379
|
},
|
|
362
380
|
get viewType() {
|
|
363
381
|
var t;
|
|
364
|
-
return (t =
|
|
382
|
+
return (t = i()) == null ? void 0 : t.viewType;
|
|
365
383
|
},
|
|
366
384
|
get tab() {
|
|
367
385
|
var t;
|
|
368
|
-
return (t =
|
|
386
|
+
return (t = i()) == null ? void 0 : t.tab;
|
|
369
387
|
},
|
|
370
388
|
get token() {
|
|
371
389
|
var t;
|
|
372
|
-
return (t =
|
|
390
|
+
return (t = i()) == null ? void 0 : t.token;
|
|
373
391
|
},
|
|
374
392
|
get headers() {
|
|
375
393
|
var t;
|
|
376
|
-
return (t =
|
|
394
|
+
return (t = i()) == null ? void 0 : t.headers;
|
|
377
395
|
},
|
|
378
396
|
get credentials() {
|
|
379
397
|
var t;
|
|
380
|
-
return (t =
|
|
398
|
+
return (t = i()) == null ? void 0 : t.credentials;
|
|
381
399
|
},
|
|
382
400
|
get fetcher() {
|
|
383
401
|
var t;
|
|
384
|
-
return (t =
|
|
402
|
+
return (t = i()) == null ? void 0 : t.fetcher;
|
|
385
403
|
}
|
|
386
404
|
};
|
|
387
405
|
}
|
|
388
|
-
function
|
|
389
|
-
screenName:
|
|
390
|
-
store:
|
|
406
|
+
function Rr({
|
|
407
|
+
screenName: o,
|
|
408
|
+
store: i,
|
|
391
409
|
saveApi: t,
|
|
392
410
|
value: w,
|
|
393
411
|
defaultValue: y,
|
|
394
412
|
selectPrimaryByDefault: x = !0,
|
|
395
|
-
onValueChange:
|
|
396
|
-
onViewSelect:
|
|
413
|
+
onValueChange: f,
|
|
414
|
+
onViewSelect: p,
|
|
397
415
|
onPrimaryViewChange: c,
|
|
398
|
-
onUnsetPrimaryView:
|
|
416
|
+
onUnsetPrimaryView: b,
|
|
399
417
|
onRenameView: K,
|
|
400
418
|
onDeleteView: $,
|
|
401
419
|
onResetSavedFilters: q,
|
|
402
|
-
onError:
|
|
403
|
-
triggerLabel:
|
|
404
|
-
placeholder:
|
|
405
|
-
viewsLabel:
|
|
406
|
-
emptyLabel:
|
|
407
|
-
loadingLabel:
|
|
408
|
-
defaultViewLabel:
|
|
409
|
-
setPrimaryLabel:
|
|
410
|
-
unsetPrimaryLabel:
|
|
411
|
-
renameLabel:
|
|
412
|
-
deleteLabel:
|
|
413
|
-
renameTitle:
|
|
414
|
-
renameDescription:
|
|
415
|
-
renameInputLabel:
|
|
416
|
-
renameCancelLabel:
|
|
417
|
-
renameSaveLabel:
|
|
418
|
-
deleteTitle:
|
|
419
|
-
deleteDescription:
|
|
420
|
-
deleteCancelLabel:
|
|
421
|
-
deleteConfirmLabel:
|
|
422
|
-
size:
|
|
423
|
-
disabled:
|
|
424
|
-
className:
|
|
425
|
-
triggerClassName:
|
|
426
|
-
contentClassName:
|
|
427
|
-
actionMenuClassName:
|
|
420
|
+
onError: H,
|
|
421
|
+
triggerLabel: Le,
|
|
422
|
+
placeholder: Fe = "Views",
|
|
423
|
+
viewsLabel: De = "VIEWS",
|
|
424
|
+
emptyLabel: Pe = "No saved views",
|
|
425
|
+
loadingLabel: Ee = "Loading views",
|
|
426
|
+
defaultViewLabel: Ne = "Default",
|
|
427
|
+
setPrimaryLabel: je = "Set as Primary View",
|
|
428
|
+
unsetPrimaryLabel: Me = "Unset as Primary",
|
|
429
|
+
renameLabel: Ke = "Rename",
|
|
430
|
+
deleteLabel: $e = "Delete",
|
|
431
|
+
renameTitle: qe = "Rename view",
|
|
432
|
+
renameDescription: de = "Update the saved view name.",
|
|
433
|
+
renameInputLabel: Ue = "View name",
|
|
434
|
+
renameCancelLabel: Ye = "Cancel",
|
|
435
|
+
renameSaveLabel: Ge = "Save",
|
|
436
|
+
deleteTitle: Je = "Delete view",
|
|
437
|
+
deleteDescription: Qe,
|
|
438
|
+
deleteCancelLabel: Xe = "Cancel",
|
|
439
|
+
deleteConfirmLabel: Ze = "Delete",
|
|
440
|
+
size: et = "sm",
|
|
441
|
+
disabled: tt = !1,
|
|
442
|
+
className: rt,
|
|
443
|
+
triggerClassName: ot,
|
|
444
|
+
contentClassName: nt,
|
|
445
|
+
actionMenuClassName: it
|
|
428
446
|
}) {
|
|
429
|
-
const
|
|
430
|
-
|
|
431
|
-
const
|
|
432
|
-
() =>
|
|
433
|
-
[
|
|
447
|
+
const ue = k(t);
|
|
448
|
+
ue.current = t;
|
|
449
|
+
const me = ar(t), U = ie(
|
|
450
|
+
() => me === "none" ? void 0 : lr(ue),
|
|
451
|
+
[me]
|
|
434
452
|
), u = ie(
|
|
435
|
-
() =>
|
|
436
|
-
[
|
|
437
|
-
),
|
|
453
|
+
() => i ?? Nt(o, U ? { saveApi: U } : void 0),
|
|
454
|
+
[o, i, U]
|
|
455
|
+
), L = w !== void 0, [Y, G] = m(!1), [A, at] = m([]), [J, lt] = m(null), [st, fe] = m(y ?? null), [pe, be] = m(!1), [F, he] = m(null), [V, Q] = m(""), [h, ge] = m(null), W = w ?? st, I = k(W), D = k(L), X = k(!1), g = k(!1), S = k(null), ve = Ht();
|
|
438
456
|
E(() => {
|
|
439
|
-
|
|
457
|
+
I.current = W, W && (g.current = !1);
|
|
440
458
|
}, [W]), E(() => {
|
|
441
|
-
|
|
442
|
-
}, [
|
|
443
|
-
S.current = null,
|
|
444
|
-
}, [u,
|
|
445
|
-
const T =
|
|
459
|
+
D.current = L;
|
|
460
|
+
}, [L]), E(() => {
|
|
461
|
+
S.current = null, X.current = !1, g.current = !1;
|
|
462
|
+
}, [u, o]);
|
|
463
|
+
const T = N(
|
|
446
464
|
(e) => {
|
|
447
|
-
|
|
465
|
+
H == null || H(e);
|
|
448
466
|
},
|
|
449
|
-
[
|
|
450
|
-
),
|
|
467
|
+
[H]
|
|
468
|
+
), v = N(
|
|
451
469
|
(e) => {
|
|
452
|
-
e && (
|
|
470
|
+
e && (g.current = !1), D.current || fe((e == null ? void 0 : e.view_id) ?? null), f == null || f((e == null ? void 0 : e.view_id) ?? null, e), e && (p == null || p(e));
|
|
453
471
|
},
|
|
454
|
-
[
|
|
455
|
-
),
|
|
472
|
+
[f, p]
|
|
473
|
+
), Z = N(
|
|
456
474
|
(e) => {
|
|
457
|
-
|
|
475
|
+
v(e);
|
|
458
476
|
},
|
|
459
|
-
[
|
|
460
|
-
), _ =
|
|
477
|
+
[v]
|
|
478
|
+
), _ = N(
|
|
461
479
|
async (e) => {
|
|
462
|
-
var
|
|
463
|
-
const
|
|
464
|
-
if (((
|
|
465
|
-
const d = { key:
|
|
480
|
+
var we;
|
|
481
|
+
const l = e === void 0 ? "__default__" : e ?? "__none__";
|
|
482
|
+
if (((we = S.current) == null ? void 0 : we.key) === l) return S.current.promise;
|
|
483
|
+
const d = { key: l, promise: Promise.resolve(null) };
|
|
466
484
|
return S.current = d, d.promise = (async () => {
|
|
467
|
-
|
|
485
|
+
be(!0);
|
|
468
486
|
try {
|
|
469
|
-
const R = await u.list(), C = R.find((
|
|
470
|
-
return
|
|
487
|
+
const R = await u.list(), C = R.find((St) => St.is_default) ?? null, yt = e !== void 0 ? e : I.current, ye = O(R, yt), xt = !g.current && (e !== void 0 || x || !D.current), ne = ye || !xt ? null : O(R, C == null ? void 0 : C.view_id), P = ye ?? ne ?? null;
|
|
488
|
+
return at(R), lt((C == null ? void 0 : C.view_id) ?? null), D.current || fe((P == null ? void 0 : P.view_id) ?? null), x && ne && e === void 0 && !I.current && !X.current && (X.current = !0, Z(ne)), P;
|
|
471
489
|
} catch (R) {
|
|
472
490
|
return T(R), null;
|
|
473
491
|
} finally {
|
|
474
|
-
|
|
492
|
+
be(!1), S.current === d && (S.current = null);
|
|
475
493
|
}
|
|
476
494
|
})(), d.promise;
|
|
477
495
|
},
|
|
478
|
-
[
|
|
496
|
+
[Z, T, u, x, v]
|
|
479
497
|
);
|
|
480
498
|
E(() => {
|
|
481
499
|
const e = () => {
|
|
@@ -483,78 +501,79 @@ function Tr({
|
|
|
483
501
|
};
|
|
484
502
|
return e(), u.subscribe(e);
|
|
485
503
|
}, [_, u]);
|
|
486
|
-
const
|
|
487
|
-
() =>
|
|
488
|
-
[J,
|
|
489
|
-
),
|
|
490
|
-
G(!1),
|
|
491
|
-
},
|
|
492
|
-
u.setPrimary(e.view_id).then(async (
|
|
504
|
+
const a = O(A, W) ?? (!g.current && (x || !L) ? O(A, J) : null), ct = ie(
|
|
505
|
+
() => ir(A, J, a == null ? void 0 : a.view_id),
|
|
506
|
+
[J, a == null ? void 0 : a.view_id, A]
|
|
507
|
+
), dt = !a && g.current, ut = Le ?? (a == null ? void 0 : a.name) ?? (dt ? Ne : Fe), ee = A.length > 0, mt = (e) => {
|
|
508
|
+
G(!1), Z(e);
|
|
509
|
+
}, ft = (e) => {
|
|
510
|
+
u.setPrimary(e.view_id).then(async (l) => {
|
|
493
511
|
const d = await _(e.view_id);
|
|
494
|
-
|
|
512
|
+
v(d ?? l), c == null || c(l);
|
|
495
513
|
}).catch(T);
|
|
496
|
-
},
|
|
497
|
-
u.unsetPrimary(e.view_id).then(async (
|
|
514
|
+
}, pt = (e) => {
|
|
515
|
+
u.unsetPrimary(e.view_id).then(async (l) => {
|
|
498
516
|
const d = await _(e.view_id);
|
|
499
|
-
|
|
517
|
+
v(d ?? l), b == null || b(l);
|
|
500
518
|
}).catch(T);
|
|
501
|
-
},
|
|
502
|
-
const
|
|
519
|
+
}, te = () => ge(null), bt = (e) => {
|
|
520
|
+
const l = I.current === e.view_id;
|
|
503
521
|
u.remove(e.view_id).then(async () => {
|
|
504
|
-
const d = await _(
|
|
505
|
-
|
|
506
|
-
}).catch(T).finally(
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
},
|
|
510
|
-
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
|
|
515
|
-
},
|
|
522
|
+
const d = await _(l ? null : I.current);
|
|
523
|
+
l && v(d), $ == null || $(e.view_id);
|
|
524
|
+
}).catch(T).finally(te);
|
|
525
|
+
}, ht = () => {
|
|
526
|
+
h && bt(h);
|
|
527
|
+
}, gt = () => {
|
|
528
|
+
g.current = !0, v(null), q == null || q(), G(!1);
|
|
529
|
+
}, vt = (e) => {
|
|
530
|
+
he(e), Q(e.name);
|
|
531
|
+
}, re = () => {
|
|
532
|
+
he(null), Q("");
|
|
533
|
+
}, wt = (e) => {
|
|
516
534
|
e.preventDefault();
|
|
517
|
-
const
|
|
518
|
-
!
|
|
519
|
-
await _(
|
|
535
|
+
const l = V.trim();
|
|
536
|
+
!F || !l || Re(l) || u.rename(F.view_id, l).then(async (d) => {
|
|
537
|
+
await _(F.view_id), K == null || K(d), re();
|
|
520
538
|
}).catch(T);
|
|
521
|
-
};
|
|
522
|
-
return
|
|
523
|
-
/* @__PURE__ */ s(
|
|
524
|
-
/* @__PURE__ */ r(
|
|
525
|
-
|
|
539
|
+
}, oe = Re(V);
|
|
540
|
+
return ee ? /* @__PURE__ */ s(Mt, { className: rt, children: [
|
|
541
|
+
/* @__PURE__ */ s(kt, { open: Y, onOpenChange: G, children: [
|
|
542
|
+
/* @__PURE__ */ r(zt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
543
|
+
Kt,
|
|
526
544
|
{
|
|
527
545
|
type: "button",
|
|
528
546
|
"aria-label": "Saved views",
|
|
529
|
-
className:
|
|
530
|
-
disabled:
|
|
531
|
-
|
|
547
|
+
className: ot,
|
|
548
|
+
disabled: tt,
|
|
549
|
+
"data-filled": a ? "" : void 0,
|
|
550
|
+
ownerState: { open: Y, empty: !a, filled: !!a, size: et },
|
|
532
551
|
children: [
|
|
533
|
-
/* @__PURE__ */ r(
|
|
534
|
-
/* @__PURE__ */ r(
|
|
535
|
-
|
|
536
|
-
/* @__PURE__ */ r(
|
|
552
|
+
/* @__PURE__ */ r(_e, { size: 13 }),
|
|
553
|
+
/* @__PURE__ */ r($t, { children: ut }),
|
|
554
|
+
a != null && a.is_default ? /* @__PURE__ */ r(Ce, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
|
|
555
|
+
/* @__PURE__ */ r(qt, { size: 13, ownerState: { open: Y } })
|
|
537
556
|
]
|
|
538
557
|
}
|
|
539
558
|
) }),
|
|
540
|
-
/* @__PURE__ */ r(
|
|
541
|
-
|
|
559
|
+
/* @__PURE__ */ r(At, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
|
|
560
|
+
Ut,
|
|
542
561
|
{
|
|
543
562
|
align: "start",
|
|
544
563
|
sideOffset: 8,
|
|
545
564
|
collisionPadding: Et,
|
|
546
|
-
className:
|
|
565
|
+
className: nt,
|
|
547
566
|
children: [
|
|
548
|
-
/* @__PURE__ */ r(
|
|
549
|
-
/* @__PURE__ */ s(
|
|
550
|
-
|
|
551
|
-
!
|
|
552
|
-
|
|
553
|
-
const
|
|
554
|
-
return /* @__PURE__ */ s(
|
|
555
|
-
/* @__PURE__ */ s(
|
|
556
|
-
/* @__PURE__ */ r(
|
|
557
|
-
e.is_default ? /* @__PURE__ */ r(
|
|
567
|
+
/* @__PURE__ */ r(Yt, { children: De }),
|
|
568
|
+
/* @__PURE__ */ s(Gt, { children: [
|
|
569
|
+
pe && !ee ? /* @__PURE__ */ r(ke, { children: Ee }) : null,
|
|
570
|
+
!pe && !ee ? /* @__PURE__ */ r(ke, { children: Pe }) : null,
|
|
571
|
+
ct.map((e) => {
|
|
572
|
+
const l = (a == null ? void 0 : a.view_id) === e.view_id;
|
|
573
|
+
return /* @__PURE__ */ s(Jt, { children: [
|
|
574
|
+
/* @__PURE__ */ s(Qt, { type: "button", ownerState: { selected: l }, onClick: () => mt(e), children: [
|
|
575
|
+
/* @__PURE__ */ r(Xt, { children: e.name }),
|
|
576
|
+
e.is_default ? /* @__PURE__ */ r(Ce, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
|
|
558
577
|
] }),
|
|
559
578
|
/* @__PURE__ */ r(
|
|
560
579
|
jt,
|
|
@@ -562,36 +581,38 @@ function Tr({
|
|
|
562
581
|
align: "start",
|
|
563
582
|
side: "right",
|
|
564
583
|
size: "sm",
|
|
565
|
-
className:
|
|
584
|
+
className: it,
|
|
566
585
|
trigger: /* @__PURE__ */ r(
|
|
567
|
-
|
|
586
|
+
Lt,
|
|
568
587
|
{
|
|
569
588
|
variant: "secondary",
|
|
570
589
|
size: "sm",
|
|
571
|
-
icon: /* @__PURE__ */ r(
|
|
590
|
+
icon: /* @__PURE__ */ r(It, { size: 14, weight: "bold" }),
|
|
572
591
|
"aria-label": `View actions for ${e.name}`
|
|
573
592
|
}
|
|
574
593
|
),
|
|
575
594
|
items: [
|
|
576
|
-
e.
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
595
|
+
...e.is_system_defined ? [] : [
|
|
596
|
+
e.is_default ? {
|
|
597
|
+
label: Me,
|
|
598
|
+
icon: /* @__PURE__ */ r(le, { size: 16 }),
|
|
599
|
+
onSelect: () => pt(e)
|
|
600
|
+
} : {
|
|
601
|
+
label: je,
|
|
602
|
+
icon: /* @__PURE__ */ r(le, { size: 16 }),
|
|
603
|
+
onSelect: () => ft(e)
|
|
604
|
+
}
|
|
605
|
+
],
|
|
585
606
|
{
|
|
586
|
-
label:
|
|
587
|
-
icon: /* @__PURE__ */ r(
|
|
588
|
-
onSelect: () =>
|
|
607
|
+
label: Ke,
|
|
608
|
+
icon: /* @__PURE__ */ r(Ot, { size: 16 }),
|
|
609
|
+
onSelect: () => vt(e)
|
|
589
610
|
},
|
|
590
611
|
{
|
|
591
|
-
label:
|
|
592
|
-
icon: /* @__PURE__ */ r(
|
|
612
|
+
label: $e,
|
|
613
|
+
icon: /* @__PURE__ */ r(Bt, { size: 16 }),
|
|
593
614
|
destructive: !0,
|
|
594
|
-
onSelect: () =>
|
|
615
|
+
onSelect: () => ge(e)
|
|
595
616
|
}
|
|
596
617
|
]
|
|
597
618
|
}
|
|
@@ -599,62 +620,68 @@ function Tr({
|
|
|
599
620
|
] }, e.view_id);
|
|
600
621
|
})
|
|
601
622
|
] }),
|
|
602
|
-
/* @__PURE__ */ r(
|
|
603
|
-
/* @__PURE__ */ s(
|
|
604
|
-
/* @__PURE__ */ r(
|
|
623
|
+
/* @__PURE__ */ r(Zt, {}),
|
|
624
|
+
/* @__PURE__ */ s(er, { type: "button", onClick: gt, children: [
|
|
625
|
+
/* @__PURE__ */ r(_e, { size: 16 }),
|
|
605
626
|
/* @__PURE__ */ r("span", { children: "Switch to default" })
|
|
606
627
|
] })
|
|
607
628
|
]
|
|
608
629
|
}
|
|
609
630
|
) }) })
|
|
610
631
|
] }),
|
|
611
|
-
/* @__PURE__ */ r(
|
|
612
|
-
e ||
|
|
613
|
-
}, children: /* @__PURE__ */ r(
|
|
614
|
-
/* @__PURE__ */ r(
|
|
615
|
-
/* @__PURE__ */ r(
|
|
616
|
-
/* @__PURE__ */ r(
|
|
617
|
-
|
|
618
|
-
/* @__PURE__ */ r(
|
|
632
|
+
/* @__PURE__ */ r(Se, { open: !!F, onOpenChange: (e) => {
|
|
633
|
+
e || re();
|
|
634
|
+
}, children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ s(ae, { children: [
|
|
635
|
+
/* @__PURE__ */ r(ze, {}),
|
|
636
|
+
/* @__PURE__ */ r(Ae, { children: /* @__PURE__ */ s("form", { onSubmit: wt, children: [
|
|
637
|
+
/* @__PURE__ */ r(Ve, { children: qe }),
|
|
638
|
+
de ? /* @__PURE__ */ r(We, { children: de }) : null,
|
|
639
|
+
/* @__PURE__ */ r(tr, { htmlFor: ve, children: Ue }),
|
|
619
640
|
/* @__PURE__ */ r(
|
|
620
|
-
|
|
641
|
+
rr,
|
|
621
642
|
{
|
|
622
|
-
id:
|
|
643
|
+
id: ve,
|
|
623
644
|
autoFocus: !0,
|
|
624
|
-
value:
|
|
625
|
-
onChange: (e) =>
|
|
645
|
+
value: V,
|
|
646
|
+
onChange: (e) => Q(e.currentTarget.value),
|
|
647
|
+
"aria-invalid": oe
|
|
626
648
|
}
|
|
627
649
|
),
|
|
628
|
-
/* @__PURE__ */ s(
|
|
629
|
-
|
|
630
|
-
|
|
650
|
+
oe ? /* @__PURE__ */ s(nr, { children: [
|
|
651
|
+
"“",
|
|
652
|
+
V.trim(),
|
|
653
|
+
"” is reserved. Choose a different name."
|
|
654
|
+
] }) : null,
|
|
655
|
+
/* @__PURE__ */ s(Ie, { children: [
|
|
656
|
+
/* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: re, children: Ye }),
|
|
657
|
+
/* @__PURE__ */ r(or, { type: "submit", disabled: V.trim().length === 0 || oe, children: Ge })
|
|
631
658
|
] })
|
|
632
659
|
] }) })
|
|
633
660
|
] }) }) }),
|
|
634
|
-
/* @__PURE__ */ r(
|
|
635
|
-
e ||
|
|
636
|
-
}, children: /* @__PURE__ */ r(
|
|
637
|
-
/* @__PURE__ */ r(
|
|
638
|
-
/* @__PURE__ */ s(
|
|
639
|
-
/* @__PURE__ */ r(
|
|
640
|
-
/* @__PURE__ */ r(
|
|
661
|
+
/* @__PURE__ */ r(Se, { open: !!h, onOpenChange: (e) => {
|
|
662
|
+
e || te();
|
|
663
|
+
}, children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ s(ae, { children: [
|
|
664
|
+
/* @__PURE__ */ r(ze, {}),
|
|
665
|
+
/* @__PURE__ */ s(Ae, { children: [
|
|
666
|
+
/* @__PURE__ */ r(Ve, { children: Je }),
|
|
667
|
+
/* @__PURE__ */ r(We, { children: Qe ?? /* @__PURE__ */ s(xe, { children: [
|
|
641
668
|
"Are you sure you want to delete",
|
|
642
|
-
|
|
669
|
+
h != null && h.name ? /* @__PURE__ */ s(xe, { children: [
|
|
643
670
|
" “",
|
|
644
|
-
/* @__PURE__ */ r("strong", { children:
|
|
671
|
+
/* @__PURE__ */ r("strong", { children: h.name }),
|
|
645
672
|
"”"
|
|
646
673
|
] }) : " this view",
|
|
647
674
|
"? This can’t be undone."
|
|
648
675
|
] }) }),
|
|
649
|
-
/* @__PURE__ */ s(
|
|
650
|
-
/* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick:
|
|
651
|
-
/* @__PURE__ */ r(j, { type: "button", variant: "danger", onClick:
|
|
676
|
+
/* @__PURE__ */ s(Ie, { children: [
|
|
677
|
+
/* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: te, children: Xe }),
|
|
678
|
+
/* @__PURE__ */ r(j, { type: "button", variant: "danger", onClick: ht, children: Ze })
|
|
652
679
|
] })
|
|
653
680
|
] })
|
|
654
681
|
] }) }) })
|
|
655
682
|
] }) : null;
|
|
656
683
|
}
|
|
657
684
|
export {
|
|
658
|
-
|
|
685
|
+
Rr as TableViewSelector
|
|
659
686
|
};
|
|
660
687
|
//# sourceMappingURL=TableViewSelector.js.map
|