@bfrs/agentic-components 0.7.6 → 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 +7 -0
- package/dist/components/data-display/DataTable/TableSaveView.js +158 -138
- 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.d.ts +1 -2
- package/dist/components/data-display/DataTable/TableViewSelector.js +290 -264
- 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 +161 -146
- 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 +14 -4
- package/dist/components/data-display/DataTable/viewStore.js +191 -188
- package/dist/components/data-display/DataTable/viewStore.js.map +1 -1
- package/dist/custom-elements.js +11080 -10972
- 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 {
|
|
6
|
-
import { CaretDown as Vt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.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";
|
|
5
|
+
import { CaretDown as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
|
|
7
6
|
import { DotsThreeVertical as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
|
|
8
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
|
|
15
|
-
import { floatingCollisionPadding as
|
|
16
|
-
import { createTableViewSelectorStore 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";
|
|
14
|
+
import { floatingCollisionPadding as Et } from "../../ui/overlays/overlayPositioning.js";
|
|
15
|
+
import { createTableViewSelectorStore as Nt, isReservedViewName as Re } from "./viewStore.js";
|
|
17
16
|
import { BfrsPortalScope as ae } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
|
|
18
|
-
import { ActionMenu as
|
|
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
|
-
}, Mt = /* @__PURE__ */
|
|
36
|
+
}, Mt = /* @__PURE__ */ n("div", {
|
|
38
37
|
label: "AgenticTableViewSelector-root"
|
|
39
38
|
})({
|
|
40
39
|
display: "inline-flex",
|
|
41
40
|
minWidth: "0px"
|
|
42
|
-
}), Kt = /* @__PURE__ */
|
|
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
|
-
]), $t = /* @__PURE__ */
|
|
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
|
-
}), qt = /* @__PURE__ */
|
|
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
|
-
]), Ut = /* @__PURE__ */
|
|
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
|
-
}), Yt = /* @__PURE__ */
|
|
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
|
-
}), Gt = /* @__PURE__ */
|
|
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
|
-
}), Jt = /* @__PURE__ */
|
|
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
|
-
}), Qt = /* @__PURE__ */
|
|
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
|
-
]), Xt = /* @__PURE__ */
|
|
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
|
-
}), Zt = /* @__PURE__ */
|
|
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
|
-
}), er = /* @__PURE__ */
|
|
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
|
-
}), tr = /* @__PURE__ */
|
|
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
|
-
}), rr = /* @__PURE__ */
|
|
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,186 +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
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
actionMenuClassName: nt
|
|
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
|
|
429
446
|
}) {
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
const
|
|
433
|
-
() =>
|
|
434
|
-
[
|
|
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]
|
|
435
452
|
), u = ie(
|
|
436
|
-
() =>
|
|
437
|
-
[
|
|
438
|
-
),
|
|
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();
|
|
439
456
|
E(() => {
|
|
440
|
-
|
|
457
|
+
I.current = W, W && (g.current = !1);
|
|
441
458
|
}, [W]), E(() => {
|
|
442
|
-
|
|
443
|
-
}, [
|
|
444
|
-
S.current = null,
|
|
445
|
-
}, [u,
|
|
446
|
-
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(
|
|
447
464
|
(e) => {
|
|
448
|
-
|
|
465
|
+
H == null || H(e);
|
|
449
466
|
},
|
|
450
|
-
[
|
|
451
|
-
),
|
|
467
|
+
[H]
|
|
468
|
+
), v = N(
|
|
452
469
|
(e) => {
|
|
453
|
-
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));
|
|
454
471
|
},
|
|
455
|
-
[
|
|
456
|
-
),
|
|
472
|
+
[f, p]
|
|
473
|
+
), Z = N(
|
|
457
474
|
(e) => {
|
|
458
|
-
|
|
475
|
+
v(e);
|
|
459
476
|
},
|
|
460
|
-
[
|
|
461
|
-
), _ =
|
|
477
|
+
[v]
|
|
478
|
+
), _ = N(
|
|
462
479
|
async (e) => {
|
|
463
|
-
var
|
|
464
|
-
const
|
|
465
|
-
if (((
|
|
466
|
-
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) };
|
|
467
484
|
return S.current = d, d.promise = (async () => {
|
|
468
|
-
|
|
485
|
+
be(!0);
|
|
469
486
|
try {
|
|
470
|
-
const R = await u.list(), C = R.find((
|
|
471
|
-
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;
|
|
472
489
|
} catch (R) {
|
|
473
490
|
return T(R), null;
|
|
474
491
|
} finally {
|
|
475
|
-
|
|
492
|
+
be(!1), S.current === d && (S.current = null);
|
|
476
493
|
}
|
|
477
494
|
})(), d.promise;
|
|
478
495
|
},
|
|
479
|
-
[
|
|
496
|
+
[Z, T, u, x, v]
|
|
480
497
|
);
|
|
481
498
|
E(() => {
|
|
482
499
|
const e = () => {
|
|
@@ -484,88 +501,89 @@ function _r({
|
|
|
484
501
|
};
|
|
485
502
|
return e(), u.subscribe(e);
|
|
486
503
|
}, [_, u]);
|
|
487
|
-
const
|
|
488
|
-
() =>
|
|
489
|
-
[J,
|
|
490
|
-
),
|
|
491
|
-
G(!1),
|
|
492
|
-
},
|
|
493
|
-
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) => {
|
|
494
511
|
const d = await _(e.view_id);
|
|
495
|
-
|
|
512
|
+
v(d ?? l), c == null || c(l);
|
|
496
513
|
}).catch(T);
|
|
497
|
-
},
|
|
498
|
-
u.unsetPrimary(e.view_id).then(async (
|
|
514
|
+
}, pt = (e) => {
|
|
515
|
+
u.unsetPrimary(e.view_id).then(async (l) => {
|
|
499
516
|
const d = await _(e.view_id);
|
|
500
|
-
|
|
517
|
+
v(d ?? l), b == null || b(l);
|
|
501
518
|
}).catch(T);
|
|
502
|
-
},
|
|
503
|
-
const
|
|
519
|
+
}, te = () => ge(null), bt = (e) => {
|
|
520
|
+
const l = I.current === e.view_id;
|
|
504
521
|
u.remove(e.view_id).then(async () => {
|
|
505
|
-
const d = await _(
|
|
506
|
-
|
|
507
|
-
}).catch(T).finally(
|
|
508
|
-
},
|
|
509
|
-
|
|
510
|
-
},
|
|
511
|
-
|
|
512
|
-
},
|
|
513
|
-
|
|
514
|
-
},
|
|
515
|
-
|
|
516
|
-
},
|
|
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) => {
|
|
517
534
|
e.preventDefault();
|
|
518
|
-
const
|
|
519
|
-
!
|
|
520
|
-
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();
|
|
521
538
|
}).catch(T);
|
|
522
|
-
};
|
|
523
|
-
return
|
|
524
|
-
/* @__PURE__ */ s(
|
|
525
|
-
/* @__PURE__ */ r(
|
|
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(
|
|
526
543
|
Kt,
|
|
527
544
|
{
|
|
528
545
|
type: "button",
|
|
529
546
|
"aria-label": "Saved views",
|
|
530
|
-
className:
|
|
531
|
-
disabled:
|
|
532
|
-
|
|
547
|
+
className: ot,
|
|
548
|
+
disabled: tt,
|
|
549
|
+
"data-filled": a ? "" : void 0,
|
|
550
|
+
ownerState: { open: Y, empty: !a, filled: !!a, size: et },
|
|
533
551
|
children: [
|
|
534
|
-
/* @__PURE__ */ r(
|
|
535
|
-
/* @__PURE__ */ r($t, { children:
|
|
536
|
-
|
|
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,
|
|
537
555
|
/* @__PURE__ */ r(qt, { size: 13, ownerState: { open: Y } })
|
|
538
556
|
]
|
|
539
557
|
}
|
|
540
558
|
) }),
|
|
541
|
-
/* @__PURE__ */ r(
|
|
559
|
+
/* @__PURE__ */ r(At, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
|
|
542
560
|
Ut,
|
|
543
561
|
{
|
|
544
562
|
align: "start",
|
|
545
563
|
sideOffset: 8,
|
|
546
|
-
collisionPadding:
|
|
547
|
-
className:
|
|
564
|
+
collisionPadding: Et,
|
|
565
|
+
className: nt,
|
|
548
566
|
children: [
|
|
549
|
-
/* @__PURE__ */ r(Yt, { children:
|
|
567
|
+
/* @__PURE__ */ r(Yt, { children: De }),
|
|
550
568
|
/* @__PURE__ */ s(Gt, { children: [
|
|
551
|
-
|
|
552
|
-
!
|
|
553
|
-
|
|
554
|
-
const
|
|
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;
|
|
555
573
|
return /* @__PURE__ */ s(Jt, { children: [
|
|
556
|
-
/* @__PURE__ */ s(Qt, { type: "button", ownerState: { selected:
|
|
574
|
+
/* @__PURE__ */ s(Qt, { type: "button", ownerState: { selected: l }, onClick: () => mt(e), children: [
|
|
557
575
|
/* @__PURE__ */ r(Xt, { children: e.name }),
|
|
558
|
-
e.is_default ? /* @__PURE__ */ r(
|
|
576
|
+
e.is_default ? /* @__PURE__ */ r(Ce, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
|
|
559
577
|
] }),
|
|
560
578
|
/* @__PURE__ */ r(
|
|
561
|
-
|
|
579
|
+
jt,
|
|
562
580
|
{
|
|
563
581
|
align: "start",
|
|
564
582
|
side: "right",
|
|
565
583
|
size: "sm",
|
|
566
|
-
className:
|
|
584
|
+
className: it,
|
|
567
585
|
trigger: /* @__PURE__ */ r(
|
|
568
|
-
|
|
586
|
+
Lt,
|
|
569
587
|
{
|
|
570
588
|
variant: "secondary",
|
|
571
589
|
size: "sm",
|
|
@@ -574,25 +592,27 @@ function _r({
|
|
|
574
592
|
}
|
|
575
593
|
),
|
|
576
594
|
items: [
|
|
577
|
-
e.
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
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
|
+
],
|
|
586
606
|
{
|
|
587
|
-
label:
|
|
607
|
+
label: Ke,
|
|
588
608
|
icon: /* @__PURE__ */ r(Ot, { size: 16 }),
|
|
589
|
-
onSelect: () =>
|
|
609
|
+
onSelect: () => vt(e)
|
|
590
610
|
},
|
|
591
611
|
{
|
|
592
|
-
label:
|
|
593
|
-
icon: /* @__PURE__ */ r(
|
|
612
|
+
label: $e,
|
|
613
|
+
icon: /* @__PURE__ */ r(Bt, { size: 16 }),
|
|
594
614
|
destructive: !0,
|
|
595
|
-
onSelect: () =>
|
|
615
|
+
onSelect: () => ge(e)
|
|
596
616
|
}
|
|
597
617
|
]
|
|
598
618
|
}
|
|
@@ -601,61 +621,67 @@ function _r({
|
|
|
601
621
|
})
|
|
602
622
|
] }),
|
|
603
623
|
/* @__PURE__ */ r(Zt, {}),
|
|
604
|
-
/* @__PURE__ */ s(er, { type: "button", onClick:
|
|
605
|
-
/* @__PURE__ */ r(
|
|
606
|
-
/* @__PURE__ */ r("span", { children:
|
|
624
|
+
/* @__PURE__ */ s(er, { type: "button", onClick: gt, children: [
|
|
625
|
+
/* @__PURE__ */ r(_e, { size: 16 }),
|
|
626
|
+
/* @__PURE__ */ r("span", { children: "Switch to default" })
|
|
607
627
|
] })
|
|
608
628
|
]
|
|
609
629
|
}
|
|
610
630
|
) }) })
|
|
611
631
|
] }),
|
|
612
|
-
/* @__PURE__ */ r(
|
|
613
|
-
e ||
|
|
614
|
-
}, children: /* @__PURE__ */ r(
|
|
615
|
-
/* @__PURE__ */ r(
|
|
616
|
-
/* @__PURE__ */ r(
|
|
617
|
-
/* @__PURE__ */ r(
|
|
618
|
-
|
|
619
|
-
/* @__PURE__ */ r(tr, { htmlFor:
|
|
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 }),
|
|
620
640
|
/* @__PURE__ */ r(
|
|
621
641
|
rr,
|
|
622
642
|
{
|
|
623
|
-
id:
|
|
643
|
+
id: ve,
|
|
624
644
|
autoFocus: !0,
|
|
625
|
-
value:
|
|
626
|
-
onChange: (e) =>
|
|
645
|
+
value: V,
|
|
646
|
+
onChange: (e) => Q(e.currentTarget.value),
|
|
647
|
+
"aria-invalid": oe
|
|
627
648
|
}
|
|
628
649
|
),
|
|
629
|
-
/* @__PURE__ */ s(
|
|
630
|
-
|
|
631
|
-
|
|
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 })
|
|
632
658
|
] })
|
|
633
659
|
] }) })
|
|
634
660
|
] }) }) }),
|
|
635
|
-
/* @__PURE__ */ r(
|
|
636
|
-
e ||
|
|
637
|
-
}, children: /* @__PURE__ */ r(
|
|
638
|
-
/* @__PURE__ */ r(
|
|
639
|
-
/* @__PURE__ */ s(
|
|
640
|
-
/* @__PURE__ */ r(
|
|
641
|
-
/* @__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: [
|
|
642
668
|
"Are you sure you want to delete",
|
|
643
|
-
|
|
669
|
+
h != null && h.name ? /* @__PURE__ */ s(xe, { children: [
|
|
644
670
|
" “",
|
|
645
|
-
/* @__PURE__ */ r("strong", { children:
|
|
671
|
+
/* @__PURE__ */ r("strong", { children: h.name }),
|
|
646
672
|
"”"
|
|
647
673
|
] }) : " this view",
|
|
648
674
|
"? This can’t be undone."
|
|
649
675
|
] }) }),
|
|
650
|
-
/* @__PURE__ */ s(
|
|
651
|
-
/* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick:
|
|
652
|
-
/* @__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 })
|
|
653
679
|
] })
|
|
654
680
|
] })
|
|
655
681
|
] }) }) })
|
|
656
682
|
] }) : null;
|
|
657
683
|
}
|
|
658
684
|
export {
|
|
659
|
-
|
|
685
|
+
Rr as TableViewSelector
|
|
660
686
|
};
|
|
661
687
|
//# sourceMappingURL=TableViewSelector.js.map
|