@ynput/ayon-frontend-shared 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/DetailsPanel.es.js +2 -2
  2. package/dist/ListTable.es.js +1 -1
  3. package/dist/NewEntity.es.js +5 -3
  4. package/dist/ProjectTreeTable.es.js +4153 -4130
  5. package/dist/ProjectsTable.es.js +5 -4
  6. package/dist/Slicer.es.js +326 -293
  7. package/dist/Views.es.js +724 -714
  8. package/dist/chunks/ColumnDropIndicator.es.js +10 -10
  9. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +44 -38
  10. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  11. package/dist/chunks/Feed.es.js +41 -39
  12. package/dist/chunks/FilmstripEntityCard.es.js +1 -1
  13. package/dist/chunks/GroupSettingsFallback.es.js +3 -2
  14. package/dist/chunks/MetaWidget.es.js +425 -411
  15. package/dist/chunks/NewEntityContextInstance.es.js +6 -5
  16. package/dist/chunks/ReviewablesSelector.es.js +76 -76
  17. package/dist/chunks/SimpleTable.es.js +151 -149
  18. package/dist/chunks/Slicer.es.js +637 -617
  19. package/dist/chunks/TableExportContextInstance.es.js +141 -136
  20. package/dist/chunks/ThumbnailSimple.es.js +11 -11
  21. package/dist/chunks/Watchers.es.js +46 -46
  22. package/dist/chunks/getUris.es.js +1 -1
  23. package/dist/chunks/searchTerms.es.js +618 -581
  24. package/dist/chunks/useCreateContextMenu.es.js +15 -13
  25. package/dist/components.es.js +1393 -1314
  26. package/dist/context.es.js +1 -1
  27. package/dist/hooks.es.js +2 -2
  28. package/dist/index.es.js +11 -10
  29. package/dist/types/ContextMenu.d.ts +1 -1
  30. package/dist/types/Feed.d.ts +1 -1
  31. package/dist/types/ListTable.d.ts +1 -1
  32. package/dist/types/NewEntity.d.ts +2 -0
  33. package/dist/types/ProjectTreeTable.d.ts +121 -3
  34. package/dist/types/ProjectsTable.d.ts +1 -1
  35. package/dist/types/SimpleTable.d.ts +1 -1
  36. package/dist/types/Slicer.d.ts +7 -1
  37. package/dist/types/Views.d.ts +5 -0
  38. package/dist/types/api.d.ts +1 -0
  39. package/dist/types/components.d.ts +164 -1
  40. package/dist/types/context.d.ts +2 -1
  41. package/dist/types/util.d.ts +21 -0
  42. package/dist/util.es.js +116 -113
  43. package/package.json +2 -2
package/dist/Views.es.js CHANGED
@@ -1,628 +1,638 @@
1
- import { jsx as C, jsxs as H, Fragment as j } from "react/jsx-runtime";
2
- import { useMemo as q, useCallback as p, useRef as se, useState as W, useEffect as U } from "react";
3
- import { createPortal as we } from "react-dom";
1
+ import { jsx as L, jsxs as G, Fragment as Y } from "react/jsx-runtime";
2
+ import { useMemo as q, useCallback as v, useRef as oe, useState as R, useEffect as W } from "react";
3
+ import { createPortal as ge } from "react-dom";
4
4
  import "./chunks/searchTerms.es.js";
5
- import { aU as oe, bx as ge, dd as ie, b8 as fe, dD as Ve, dG as A, X as ee, co as Ke, d1 as me, cK as pe, bt as Y, cI as Qe } from "./chunks/getUris.es.js";
6
- import { confirmDialog as ze } from "primereact/confirmdialog";
7
- import { b as K, ar as he, as as Xe, c as ve, o as ye, at as je, ao as G, au as Ye, av as Ze, aw as Ne, ap as ke } from "./chunks/TableExportContextInstance.es.js";
8
- import { ax as ts, aq as ss, ay as os } from "./chunks/TableExportContextInstance.es.js";
9
- import { Icon as Q, Button as be, Dialog as Te } from "@ynput/ayon-react-components";
5
+ import { aU as ie, bx as fe, dd as ne, b8 as Ve, dD as pe, dG as A, X as te, co as Xe, d1 as me, cK as he, bt as Z, cI as je } from "./chunks/getUris.es.js";
6
+ import { confirmDialog as Ye } from "primereact/confirmdialog";
7
+ import { b as z, ao as ve, ap as Ze, c as ye, o as ke, aq as Ne, ar as J, as as Te, at as et, au as tt, av as Ce } from "./chunks/TableExportContextInstance.es.js";
8
+ import { aw as is, ax as ns, ay as rs } from "./chunks/TableExportContextInstance.es.js";
9
+ import { Icon as X, Button as be, Dialog as st } from "@ynput/ayon-react-components";
10
10
  import "uuid";
11
- import { toast as O } from "react-toastify";
11
+ import { toast as x } from "react-toastify";
12
12
  import "@module-federation/enhanced/runtime";
13
13
  import "@ynput/ayon-addon/host";
14
14
  import "lodash";
15
15
  import "axios";
16
16
  import "./chunks/ContextMenuContextInstance.es.js";
17
- import Ce from "clsx";
17
+ import Le from "clsx";
18
18
  import "react-router-dom";
19
19
  import "semver";
20
- import { useDispatch as et } from "react-redux";
21
- import J from "styled-components";
22
- import { u as Le } from "./chunks/useLoadModule.es.js";
23
- import { c as Be, a as te } from "./chunks/columnConfigConverter.es.js";
24
- const Qt = [
20
+ import { useDispatch as ot } from "react-redux";
21
+ import K from "styled-components";
22
+ import { u as Be } from "./chunks/useLoadModule.es.js";
23
+ import { c as De, a as se } from "./chunks/columnConfigConverter.es.js";
24
+ const jt = [
25
25
  "overview",
26
26
  "taskProgress",
27
27
  "versions",
28
28
  "lists",
29
29
  "reviews",
30
30
  "reports"
31
- ], ne = "_working_", tt = "_new_view_", De = "__base__", st = (e) => {
32
- const { viewsList: t, onEdit: i, onSelect: s, onSave: c } = e, a = (o, V = {}) => ({
33
- id: o.id,
34
- label: o.label,
31
+ ], re = "_working_", it = "_new_view_", Ie = "__base__", nt = (e) => {
32
+ const { viewsList: s, onEdit: o, onSelect: t, onSave: l } = e, c = (i, V = {}) => ({
33
+ id: i.id,
34
+ label: i.label,
35
35
  isSelected: !1,
36
- highlighted: o.highlighted,
37
- onClick: () => s(o.id),
36
+ highlighted: i.highlighted,
37
+ onClick: () => t(i.id),
38
38
  ...V
39
- }), r = t.filter((o) => o.visibility === "private" && o.isOwner && !o.working).map(
40
- (o) => a(o, {
39
+ }), a = s.filter((i) => i.visibility === "private" && i.isOwner && !i.working).map(
40
+ (i) => c(i, {
41
41
  isEditable: !0,
42
42
  isSaveable: !0,
43
- onEdit: () => i(o.id),
44
- onSave: () => c(o.id)
43
+ onEdit: () => o(i.id),
44
+ onSave: () => l(i.id)
45
45
  })
46
- ), w = t.filter((o) => o.visibility === "public" && !o.working).map(
47
- (o) => a(o, {
48
- isEditable: o.isOwner,
49
- isSaveable: o.isOwner,
50
- ...o.isOwner && {
51
- onEdit: () => i(o.id),
52
- onSave: () => c(o.id)
46
+ ), u = s.filter((i) => i.visibility === "public" && !i.working).map(
47
+ (i) => c(i, {
48
+ isEditable: i.isOwner,
49
+ isSaveable: i.isOwner,
50
+ ...i.isOwner && {
51
+ onEdit: () => o(i.id),
52
+ onSave: () => l(i.id)
53
53
  }
54
54
  })
55
- ), g = t.filter((o) => o.visibility === "private" && !o.isOwner && !o.working).map(
56
- (o) => a(o, {
55
+ ), r = s.filter((i) => i.visibility === "private" && !i.isOwner && !i.working).map(
56
+ (i) => c(i, {
57
57
  isEditable: !1,
58
58
  isSaveable: !1
59
59
  })
60
60
  );
61
61
  return {
62
- myViews: r,
63
- sharedViews: w,
64
- allPrivateViews: g
62
+ myViews: a,
63
+ sharedViews: u,
64
+ allPrivateViews: r
65
65
  };
66
- }, ot = ({
66
+ }, rt = ({
67
67
  viewsList: e,
68
- workingView: t,
69
- viewType: i,
70
- viewAlias: s,
71
- projectName: c,
72
- currentUser: a,
73
- useWorkingView: r,
74
- editingViewId: w,
75
- collapsed: g,
76
- setCollapsed: o,
68
+ workingView: s,
69
+ viewType: o,
70
+ viewAlias: t,
71
+ projectName: l,
72
+ currentUser: c,
73
+ useWorkingView: a,
74
+ editingViewId: u,
75
+ collapsed: r,
76
+ setCollapsed: i,
77
77
  onSelect: V,
78
- onEdit: h,
78
+ onEdit: p,
79
79
  onSave: m,
80
- onResetWorkingView: u,
81
- selectedId: l
80
+ onResetWorkingView: g,
81
+ selectedId: d
82
82
  }) => {
83
- const { powerLicense: n } = K(), [d] = oe(), y = q(
84
- () => e.map((v) => ({
85
- ...v,
86
- isOwner: v.owner === a?.name,
87
- highlighted: w === v.id ? "save" : void 0
83
+ const { powerLicense: n } = z(), [w] = ie(), C = q(
84
+ () => e.map((h) => ({
85
+ ...h,
86
+ isOwner: h.owner === c?.name,
87
+ highlighted: u === h.id ? "save" : void 0
88
88
  })),
89
- [e, a, w]
90
- ), b = {
91
- id: ne,
92
- label: r ? `Personal ${s.toLowerCase()}` : `Working ${s.toLowerCase()}`,
93
- startContent: r && /* @__PURE__ */ C(Q, { icon: "person" }),
89
+ [e, c, u]
90
+ ), k = {
91
+ id: re,
92
+ label: a ? `Personal ${t.toLowerCase()}` : `Working ${t.toLowerCase()}`,
93
+ startContent: a && /* @__PURE__ */ L(X, { icon: "person" }),
94
94
  isEditable: !1
95
- }, I = p(async () => {
96
- let v = t?.id;
97
- if (!t)
95
+ }, B = v(async () => {
96
+ let h = s?.id;
97
+ if (!s)
98
98
  try {
99
- console.warn(`No working ${s.toLowerCase()} found, creating a new one`);
100
- const S = he();
101
- await d({
102
- genericViewPostModel: S,
103
- viewType: i,
104
- projectName: c
105
- }).unwrap(), v = S.id;
106
- } catch (S) {
107
- O.error(`Failed to create working ${s}: ${S}`);
99
+ console.warn(`No working ${t.toLowerCase()} found, creating a new one`);
100
+ const $ = ve();
101
+ await w({
102
+ genericViewPostModel: $,
103
+ viewType: o,
104
+ projectName: l
105
+ }).unwrap(), h = $.id;
106
+ } catch ($) {
107
+ x.error(`Failed to create working ${t}: ${$}`);
108
108
  }
109
- V(v);
110
- }, [t, i, d, c, V]), L = async (v) => {
109
+ V(h);
110
+ }, [s, o, w, l, V]), F = async (h) => {
111
111
  try {
112
- await m(v), V(v);
113
- } catch (S) {
114
- O.error(S);
112
+ await m(h), V(h);
113
+ } catch ($) {
114
+ x.error($);
115
115
  }
116
- }, [E, { isLoading: f }] = Le({
116
+ }, [S, { isLoading: f }] = Be({
117
117
  addon: "powerpack",
118
118
  remote: "views",
119
119
  module: "getCustomViews",
120
- fallback: st,
120
+ fallback: nt,
121
121
  // minVersion: minVersion,
122
- skip: !i || !n
123
- }), { myViews: k, sharedViews: D, allPrivateViews: B } = E({
124
- viewsList: y,
125
- onEdit: h,
122
+ skip: !o || !n
123
+ }), { myViews: y, sharedViews: b, allPrivateViews: D } = S({
124
+ viewsList: C,
125
+ onEdit: p,
126
126
  onSelect: V,
127
- onSave: L
128
- }), M = p(
129
- (v) => {
130
- o({ ...g, [v]: !g[v] });
127
+ onSave: F
128
+ }), I = v(
129
+ (h) => {
130
+ i({ ...r, [h]: !r[h] });
131
131
  },
132
- [g, o]
133
- ), $ = q(() => [
134
- { id: "myViews", title: `My ${s.toLowerCase()}s`, items: k },
132
+ [r, i]
133
+ ), E = q(() => [
134
+ { id: "myViews", title: `My ${t.toLowerCase()}s`, items: y },
135
135
  {
136
136
  id: "sharedViews",
137
- title: `Shared ${s.toLowerCase()}s`,
138
- items: D
137
+ title: `Shared ${t.toLowerCase()}s`,
138
+ items: b
139
139
  },
140
140
  {
141
141
  id: "allPrivateViews",
142
- title: `All private ${s.toLowerCase()}s`,
143
- items: B
142
+ title: `All private ${t.toLowerCase()}s`,
143
+ items: D
144
144
  }
145
- ], [k, D, B]), F = q(() => ({
146
- ...b,
147
- onClick: I,
145
+ ], [y, b, D]), O = q(() => ({
146
+ ...k,
147
+ onClick: B,
148
148
  // expose reset button when handler is provided
149
- isEditable: !!u,
150
- onResetView: u
151
- }), [I, u]);
149
+ isEditable: !!g,
150
+ onResetView: g
151
+ }), [B, g]);
152
152
  return q(() => {
153
- const v = [F], S = $.filter((R) => n && (R.items?.length || 0) > 0);
154
- return S.length > 0 && v.push(Xe), S.forEach((R) => {
155
- const P = !!g[R.id];
156
- if (v.push({
153
+ const h = [O], $ = E.filter((U) => n && (U.items?.length || 0) > 0);
154
+ return $.length > 0 && h.push(Ze), $.forEach((U) => {
155
+ const H = !!r[U.id];
156
+ if (h.push({
157
157
  type: "section",
158
- id: R.id,
159
- title: R.title,
160
- collapsed: P,
161
- onToggle: () => M(R.id)
162
- }), !P)
163
- v.push(...R.items);
164
- else if (l) {
165
- const z = R.items.find((Z) => Z.id === l);
166
- z && v.push(z);
158
+ id: U.id,
159
+ title: U.title,
160
+ collapsed: H,
161
+ onToggle: () => I(U.id)
162
+ }), !H)
163
+ h.push(...U.items);
164
+ else if (d) {
165
+ const Q = U.items.find((P) => P.id === d);
166
+ Q && h.push(Q);
167
167
  }
168
- }), v;
169
- }, [F, $, g, M, l, n]);
170
- }, it = ({ viewType: e, projectName: t }) => {
171
- const { currentData: i, isLoading: s } = ge(
172
- { viewType: e, projectName: t },
168
+ }), h;
169
+ }, [O, E, r, I, d, n]);
170
+ }, at = ({ viewType: e, projectName: s }) => {
171
+ const { currentData: o, isLoading: t } = fe(
172
+ { viewType: e, projectName: s },
173
173
  { skip: !e }
174
- ), [c] = ie(), a = se({}), r = a.current[e];
175
- return [i, async (g) => {
174
+ ), [l] = ne(), c = oe({}), a = c.current[e];
175
+ return [o, async (r) => {
176
176
  if (!e) throw "No view type provided for setting default view";
177
- i?.id && i.id !== g && (a.current[e] = i.id);
177
+ o?.id && o.id !== r && (c.current[e] = o.id);
178
178
  try {
179
- await c({
179
+ await l({
180
180
  setDefaultViewRequestModel: {
181
- viewId: g
181
+ viewId: r
182
182
  },
183
183
  viewType: e,
184
- projectName: t
184
+ projectName: s
185
185
  }).unwrap();
186
- } catch (o) {
187
- O.warn(`Failed to set default view: ${o}`);
186
+ } catch (i) {
187
+ x.warn(`Failed to set default view: ${i}`);
188
188
  }
189
- }, r, s];
190
- }, nt = ({
189
+ }, a, t];
190
+ }, ct = ({
191
191
  viewType: e,
192
- projectName: t,
193
- viewsList: i,
194
- onCreate: s,
195
- onDelete: c,
196
- onUpdate: a
192
+ projectName: s,
193
+ viewsList: o,
194
+ onCreate: t,
195
+ onDelete: l,
196
+ onUpdate: c
197
197
  }) => {
198
- const r = et(), [w] = oe(), [g] = fe(), [o] = Ve(), [V] = ie(), h = p(
199
- async (n, d) => {
198
+ const a = ot(), [u] = ie(), [r] = Ve(), [i] = pe(), [V] = ne(), p = v(
199
+ async (n, w) => {
200
200
  if (!e)
201
201
  throw new Error("viewType are required for creating a view");
202
202
  try {
203
- await w({
203
+ await u({
204
204
  viewType: e,
205
- projectName: d ? void 0 : t,
205
+ projectName: w ? void 0 : s,
206
206
  genericViewPostModel: n
207
- }).unwrap(), s && s(n);
208
- } catch (y) {
209
- throw y;
207
+ }).unwrap(), t && t(n);
208
+ } catch (C) {
209
+ throw C;
210
210
  }
211
211
  },
212
- [w, e, t, s]
213
- ), m = p(
214
- async (n, d, y) => {
212
+ [u, e, s, t]
213
+ ), m = v(
214
+ async (n, w, C) => {
215
215
  if (!e)
216
216
  throw new Error("viewType are required for updating a view");
217
217
  try {
218
- await o({
218
+ await i({
219
219
  viewId: n,
220
220
  viewType: e,
221
- projectName: y ? void 0 : t,
222
- genericViewPatchModel: d
223
- }).unwrap(), a && a({ ...d, id: n });
224
- } catch (b) {
225
- throw b;
221
+ projectName: C ? void 0 : s,
222
+ genericViewPatchModel: w
223
+ }).unwrap(), c && c({ ...w, id: n });
224
+ } catch (k) {
225
+ throw k;
226
226
  }
227
227
  },
228
- [o, e, t, a]
229
- ), u = p(
230
- async (n, d) => {
228
+ [i, e, s, c]
229
+ ), g = v(
230
+ async (n, w) => {
231
231
  if (!e)
232
232
  throw new Error("viewType are required for deleting a view");
233
233
  try {
234
- await g({
234
+ await r({
235
235
  viewType: e,
236
- projectName: d ? void 0 : t,
236
+ projectName: w ? void 0 : s,
237
237
  viewId: n
238
- }).unwrap(), c && c(n);
239
- } catch (y) {
240
- throw y;
238
+ }).unwrap(), l && l(n);
239
+ } catch (C) {
240
+ throw C;
241
241
  }
242
242
  },
243
- [g, e, t, c]
244
- ), l = p(
243
+ [r, e, s, l]
244
+ ), d = v(
245
245
  async (n) => {
246
- const { existingWorkingViewId: d, selectedViewId: y, setSelectedView: b, setSettingsChanged: I, notify: L } = n || {};
246
+ const { existingWorkingViewId: w, selectedViewId: C, setSelectedView: k, setSettingsChanged: B, notify: F } = n || {};
247
247
  if (!e)
248
248
  throw new Error("viewType are required for resetting a view");
249
249
  try {
250
- r(
250
+ a(
251
251
  A.util.invalidateTags([
252
- { type: "Views", id: `base-${e}-${t}` },
252
+ { type: "Views", id: `base-${e}-${s}` },
253
253
  { type: "Views", id: `base-${e}` }
254
254
  ])
255
255
  );
256
- const k = (await r(
256
+ const y = (await a(
257
257
  A.endpoints.getBaseView.initiate(
258
- { viewType: e, projectName: t },
258
+ { viewType: e, projectName: s },
259
259
  { subscribe: !1, forceRefetch: !0 }
260
260
  )
261
261
  )).data;
262
- let D = {}, B = "default";
263
- if (k && k.settings && Object.keys(k.settings).length > 0)
264
- D = k.settings, B = "project";
262
+ let b = {}, D = "default";
263
+ if (y && y.settings && Object.keys(y.settings).length > 0)
264
+ b = y.settings, D = "project";
265
265
  else {
266
- const v = (await r(
266
+ const h = (await a(
267
267
  A.endpoints.getBaseView.initiate(
268
268
  { viewType: e },
269
269
  { subscribe: !1, forceRefetch: !0 }
270
270
  )
271
271
  )).data;
272
- v && v.settings && Object.keys(v.settings).length > 0 && (D = v.settings, B = "studio");
272
+ h && h.settings && Object.keys(h.settings).length > 0 && (b = h.settings, D = "studio");
273
273
  }
274
- const M = d ?? he().id;
275
- if (d ? await o({
276
- viewId: d,
274
+ const I = w ?? ve().id;
275
+ if (w ? await i({
276
+ viewId: w,
277
277
  viewType: e,
278
- projectName: t,
279
- genericViewPatchModel: { settings: D }
280
- }).unwrap() : await w({
278
+ projectName: s,
279
+ genericViewPatchModel: { settings: b }
280
+ }).unwrap() : await u({
281
281
  viewType: e,
282
- projectName: t,
282
+ projectName: s,
283
283
  genericViewPostModel: {
284
- id: M,
284
+ id: I,
285
285
  label: "Working",
286
286
  working: !0,
287
- settings: D
287
+ settings: b
288
288
  }
289
289
  }).unwrap(), await V({
290
290
  viewType: e,
291
- projectName: t,
292
- setDefaultViewRequestModel: { viewId: M }
293
- }).unwrap(), b && b(M), I && I(!1), L) {
294
- const F = B === "project" ? "View reset to project default view" : B === "studio" ? "View reset to studio default view" : "View reset to default settings";
295
- O.success(F);
291
+ projectName: s,
292
+ setDefaultViewRequestModel: { viewId: I }
293
+ }).unwrap(), k && k(I), B && B(!1), F) {
294
+ const O = D === "project" ? "View reset to project default view" : D === "studio" ? "View reset to studio default view" : "View reset to default settings";
295
+ x.success(O);
296
296
  }
297
- return M;
298
- } catch (E) {
299
- throw L && O.error("Failed to reset view to default"), E;
297
+ return I;
298
+ } catch (S) {
299
+ throw F && x.error("Failed to reset view to default"), S;
300
300
  }
301
301
  },
302
- [w, o, V, e, t, r]
302
+ [u, i, V, e, s, a]
303
303
  );
304
304
  return {
305
- onCreateView: h,
305
+ onCreateView: p,
306
306
  onUpdateView: m,
307
- onDeleteView: u,
308
- onResetWorkingView: l
307
+ onDeleteView: g,
308
+ onResetWorkingView: d
309
309
  };
310
- }, rt = ({
310
+ }, lt = ({
311
311
  viewType: e,
312
- projectName: t,
313
- viewSettings: i,
314
- workingView: s,
315
- dispatch: c
312
+ projectName: s,
313
+ viewSettings: o,
314
+ workingView: t,
315
+ dispatch: l
316
316
  }) => {
317
- const [a] = oe(), [r] = Ve(), [w] = fe(), [g] = ie(), o = p(
318
- async (u) => {
317
+ const [c] = ie(), [a] = pe(), [u] = Ve(), [r] = ne(), i = v(
318
+ async (g) => {
319
319
  try {
320
- const d = await a({
320
+ const w = await c({
321
321
  genericViewPostModel: {
322
- label: De,
322
+ label: Ie,
323
323
  working: !1,
324
- settings: i || {}
324
+ settings: o || {}
325
325
  },
326
326
  viewType: e,
327
- projectName: u ? void 0 : t
327
+ projectName: g ? void 0 : s
328
328
  }).unwrap();
329
- c(
329
+ l(
330
330
  A.util.invalidateTags([
331
- { type: "view", id: d.id },
332
- ee(e, u ? void 0 : t)
331
+ { type: "view", id: w.id },
332
+ te(e, g ? void 0 : s)
333
333
  ])
334
334
  );
335
- const y = u ? "Studio" : "Project";
336
- O.success(`${y} default view created successfully`);
337
- } catch (l) {
338
- const n = u ? "studio" : "project";
339
- O.error(`Failed to create ${n} base view: ${l?.message || l}`);
335
+ const C = g ? "Studio" : "Project";
336
+ x.success(`${C} default view created successfully`);
337
+ } catch (d) {
338
+ const n = g ? "studio" : "project";
339
+ x.error(`Failed to create ${n} base view: ${d?.message || d}`);
340
340
  }
341
341
  },
342
- [a, e, t, i, c]
343
- ), V = p(
344
- async (u, l) => {
342
+ [c, e, s, o, l]
343
+ ), V = v(
344
+ async (g, d) => {
345
345
  try {
346
- await r({
347
- viewId: u,
346
+ await a({
347
+ viewId: g,
348
348
  viewType: e,
349
- projectName: l ? void 0 : t,
350
- genericViewPatchModel: { settings: i || {} }
351
- }).unwrap(), c(
349
+ projectName: d ? void 0 : s,
350
+ genericViewPatchModel: { settings: o || {} }
351
+ }).unwrap(), l(
352
352
  A.util.invalidateTags([
353
- { type: "view", id: u },
354
- ee(e, l ? void 0 : t)
353
+ { type: "view", id: g },
354
+ te(e, d ? void 0 : s)
355
355
  ])
356
356
  );
357
- const d = l ? "Studio" : "Project";
358
- O.success(`${d} default view updated successfully`);
357
+ const w = d ? "Studio" : "Project";
358
+ x.success(`${w} default view updated successfully`);
359
359
  } catch (n) {
360
- const d = l ? "studio" : "project";
361
- O.error(`Failed to update ${d} base view: ${n?.message || n}`);
360
+ const w = d ? "studio" : "project";
361
+ x.error(`Failed to update ${w} base view: ${n?.message || n}`);
362
362
  }
363
363
  },
364
- [r, e, t, i, c]
365
- ), h = p(
366
- async (u, l) => {
364
+ [a, e, s, o, l]
365
+ ), p = v(
366
+ async (g, d) => {
367
367
  try {
368
- await w({
369
- viewId: u,
368
+ await u({
369
+ viewId: g,
370
370
  viewType: e,
371
- projectName: l ? void 0 : t
372
- }).unwrap(), c(
371
+ projectName: d ? void 0 : s
372
+ }).unwrap(), l(
373
373
  A.util.invalidateTags([
374
- { type: "view", id: u },
375
- ee(e, l ? void 0 : t)
374
+ { type: "view", id: g },
375
+ te(e, d ? void 0 : s)
376
376
  ])
377
377
  );
378
- const n = l ? "Studio" : "Project";
379
- O.success(`${n} default view removed successfully`);
378
+ const n = d ? "Studio" : "Project";
379
+ x.success(`${n} default view removed successfully`);
380
380
  } catch (n) {
381
- const d = l ? "studio" : "project";
382
- O.error(`Failed to remove ${d} base view: ${n?.message || n}`);
381
+ const w = d ? "studio" : "project";
382
+ x.error(`Failed to remove ${w} base view: ${n?.message || n}`);
383
383
  }
384
384
  },
385
- [w, e, t, c]
386
- ), m = p(
387
- async (u) => {
385
+ [u, e, s, l]
386
+ ), m = v(
387
+ async (g) => {
388
388
  try {
389
- if (!s?.id)
389
+ if (!t?.id)
390
390
  throw new Error("No working view available to update");
391
- const d = (await c(
391
+ const w = (await l(
392
392
  A.endpoints.getBaseView.initiate(
393
393
  {
394
394
  viewType: e,
395
- projectName: u ? void 0 : t
395
+ projectName: g ? void 0 : s
396
396
  },
397
397
  { subscribe: !1, forceRefetch: !0 }
398
398
  )
399
399
  )).data;
400
- if (!d || !d.settings)
400
+ if (!w || !w.settings)
401
401
  throw new Error("Base view not found or has no settings");
402
- await r({
403
- viewId: s.id,
402
+ await a({
403
+ viewId: t.id,
404
404
  viewType: e,
405
- projectName: t,
406
- genericViewPatchModel: { settings: d.settings }
407
- }).unwrap(), await g({
405
+ projectName: s,
406
+ genericViewPatchModel: { settings: w.settings }
407
+ }).unwrap(), await r({
408
408
  viewType: e,
409
- projectName: t,
410
- setDefaultViewRequestModel: { viewId: s.id }
409
+ projectName: s,
410
+ setDefaultViewRequestModel: { viewId: t.id }
411
411
  }).unwrap();
412
- const y = u ? "Studio" : "Project";
413
- O.success(`Loaded ${y} default view to working view`);
414
- } catch (l) {
415
- const n = u ? "studio" : "project";
416
- O.error(`Failed to load ${n} base view: ${l?.message || l}`);
412
+ const C = g ? "Studio" : "Project";
413
+ x.success(`Loaded ${C} default view to working view`);
414
+ } catch (d) {
415
+ const n = g ? "studio" : "project";
416
+ x.error(`Failed to load ${n} base view: ${d?.message || d}`);
417
417
  }
418
418
  },
419
- [s, r, g, e, t, c]
419
+ [t, a, r, e, s, l]
420
420
  );
421
421
  return {
422
- onCreateBaseView: o,
422
+ onCreateBaseView: i,
423
423
  onUpdateBaseView: V,
424
- onDeleteBaseView: h,
424
+ onDeleteBaseView: p,
425
425
  onLoadBaseView: m
426
426
  };
427
- }, Ie = (e, t) => e ? t.find((s) => s.id === e)?.scope === "studio" : !0, at = ({
427
+ }, Me = (e, s) => e ? s.find((t) => t.id === e)?.scope === "studio" : !0, dt = ({
428
428
  viewType: e,
429
- projectName: t,
430
- viewsList: i,
431
- sourceSettings: s,
432
- onUpdateView: c
433
- }) => ({ onSaveViewFromCurrent: p(
434
- async (r) => {
429
+ projectName: s,
430
+ viewsList: o,
431
+ sourceSettings: t,
432
+ onUpdateView: l
433
+ }) => ({ onSaveViewFromCurrent: v(
434
+ async (a) => {
435
435
  if (!e)
436
436
  throw "viewType are required for saving a view from another view";
437
- if (!s)
437
+ if (!t)
438
438
  throw "sourceView is required for saving a view from another view";
439
439
  try {
440
- await c(
441
- r,
440
+ await l(
441
+ a,
442
442
  {
443
- settings: s
443
+ settings: t
444
444
  },
445
- Ie(r, i)
446
- ), O.success("View settings saved");
447
- } catch (w) {
448
- const g = typeof w == "string" ? "Failed to save view settings: " + w : "Failed to save view settings";
449
- throw console.error(g), g;
445
+ Me(a, o)
446
+ ), x.success("View settings saved");
447
+ } catch (u) {
448
+ const r = typeof u == "string" ? "Failed to save view settings: " + u : "Failed to save view settings";
449
+ throw console.error(r), r;
450
450
  }
451
451
  },
452
- [e, t, s]
453
- ) }), ct = ({
452
+ [e, s, t]
453
+ ) }), ut = ({
454
454
  viewType: e
455
455
  }) => {
456
- const [t, i] = W({}), s = p(
457
- (a) => {
458
- e && i((r) => ({ ...r, [e]: a }));
456
+ const [s, o] = R({}), t = v(
457
+ (c) => {
458
+ e && o((a) => ({ ...a, [e]: c }));
459
459
  },
460
- [e, i]
460
+ [e, o]
461
461
  );
462
- return [e ? t[e] : !1, s];
463
- }, lt = "view", dt = [], zt = ({
462
+ return [e ? s[e] : !1, t];
463
+ }, wt = "view", gt = [], Yt = ({
464
464
  children: e,
465
- viewType: t,
466
- viewAlias: i = lt,
467
- projectName: s,
468
- dispatch: c,
469
- include: a,
470
- debug: r
465
+ viewType: s,
466
+ viewAlias: o = wt,
467
+ projectName: t,
468
+ dispatch: l,
469
+ include: c,
470
+ debug: a,
471
+ controlled: u
471
472
  }) => {
472
- const w = a?.viewsList ?? !0, g = a?.baseViews ?? !0;
473
- let { powerLicense: o } = K();
474
- r?.powerLicense !== void 0 && (console.warn("Using debug power license:", r.powerLicense), o = r.powerLicense);
475
- const { user: V } = ve(), [h, m] = W(!1), [u, l] = W(null), n = "viewsMenuCollapsed", [d, y] = ye(
476
- n,
473
+ const r = u ? void 0 : s, i = c?.viewsList ?? !0, V = c?.baseViews ?? !0;
474
+ let { powerLicense: p } = z();
475
+ a?.powerLicense !== void 0 && (console.warn("Using debug power license:", a.powerLicense), p = a.powerLicense);
476
+ const { user: m } = ye(), [g, d] = R(!1), [n, w] = R(null), C = "viewsMenuCollapsed", [k, B] = ke(
477
+ C,
477
478
  {}
478
- ), b = (x) => {
479
- const X = x.visibility === "private" ? "myViews" : "sharedViews";
480
- if (d[X]) {
481
- const de = { ...d };
482
- de[X] = !1, y(de);
479
+ ), F = (M) => {
480
+ const j = M.visibility === "private" ? "myViews" : "sharedViews";
481
+ if (k[j]) {
482
+ const ue = { ...k };
483
+ ue[j] = !1, B(ue);
483
484
  }
484
- }, { data: I } = Ke(
485
- { projectName: s },
486
- { skip: !o || !u }
487
- ), [L, E, f, k] = it({
488
- viewType: t,
489
- projectName: s
490
- }), [D, B] = ct({
491
- viewType: t
492
- }), { currentData: M = dt, isLoading: $ } = me(
493
- { projectName: s, viewType: t },
494
- { skip: !t || !w }
495
- ), F = q(
496
- () => M.filter(
497
- (x) => x.label !== De && !(s && x.working && x.scope === "studio")
485
+ }, { data: S } = Xe(
486
+ { projectName: t },
487
+ { skip: !p || !n }
488
+ ), [f, y, b, D] = at({
489
+ viewType: r,
490
+ projectName: t
491
+ }), [I, E] = ut({
492
+ viewType: r
493
+ }), { currentData: O = gt, isLoading: _ } = me(
494
+ { projectName: t, viewType: r },
495
+ { skip: !r || !i }
496
+ ), h = q(
497
+ () => O.filter(
498
+ (M) => M.label !== Ie && !(t && M.working && M.scope === "studio")
498
499
  ),
499
- [M]
500
- ), { onCreateView: _, onDeleteView: v, onUpdateView: S, onResetWorkingView: R } = nt({
501
- viewType: t,
502
- projectName: s,
503
- viewsList: F,
504
- onCreate: b
500
+ [O]
501
+ ), { onCreateView: $, onDeleteView: U, onUpdateView: H, onResetWorkingView: Q } = ct({
502
+ viewType: r,
503
+ projectName: t,
504
+ viewsList: h,
505
+ onCreate: F
505
506
  }), {
506
507
  currentData: P,
507
- isLoading: z,
508
- isError: Z
509
- } = pe(
510
- { projectName: s, viewType: t },
511
- { skip: !t }
512
- ), { currentData: Pe, isLoading: xe } = Y(
513
- { projectName: s, viewType: t },
514
- { skip: !t || !g }
515
- ), { currentData: Fe, isLoading: Se } = Y(
516
- { projectName: void 0, viewType: t },
517
- { skip: !t || !g }
518
- ), Oe = $ || k || z || xe || Se, re = P?.settings, N = L?.id === ne ? re : L?.settings, ae = L?.id === P?.id, ce = D && ae && f && f !== P?.id ? f : void 0, { currentData: T, isFetching: $e } = Qe(
508
+ isLoading: xe,
509
+ isError: Fe
510
+ } = he(
511
+ { projectName: t, viewType: r },
512
+ { skip: !r }
513
+ ), { currentData: Se, isLoading: Oe } = Z(
514
+ { projectName: t, viewType: r },
515
+ { skip: !r || !V }
516
+ ), { currentData: $e, isLoading: Re } = Z(
517
+ { projectName: void 0, viewType: r },
518
+ { skip: !r || !V }
519
+ ), We = _ || D || xe || Oe || Re, ae = P?.settings, N = u ? u.settings : f?.id === re ? ae : f?.settings, T = u?.onChange, ce = f?.id === P?.id, le = I && ce && b && b !== P?.id ? b : void 0, { currentData: ee, isFetching: Ue } = je(
519
520
  {
520
- viewId: u,
521
- projectName: Ie(u, F) ? void 0 : s,
522
- viewType: t
521
+ viewId: n,
522
+ projectName: Me(n, h) ? void 0 : t,
523
+ viewType: r
523
524
  },
524
- { skip: typeof u != "string" || !o }
525
- ), Re = q(
526
- () => u === T?.id ? T : void 0,
527
- [u, T]
528
- ), { onSaveViewFromCurrent: We } = at({
529
- viewType: t,
530
- projectName: s,
531
- viewsList: F,
525
+ { skip: typeof n != "string" || !p }
526
+ ), _e = q(
527
+ () => n === ee?.id ? ee : void 0,
528
+ [n, ee]
529
+ ), { onSaveViewFromCurrent: qe } = dt({
530
+ viewType: r,
531
+ projectName: t,
532
+ viewsList: h,
532
533
  sourceSettings: N,
533
- onUpdateView: S
534
- }), { onCreateBaseView: Ue, onUpdateBaseView: _e, onDeleteBaseView: qe, onLoadBaseView: Ae } = rt({
535
- viewType: t,
536
- projectName: s,
534
+ onUpdateView: H
535
+ }), { onCreateBaseView: Ae, onUpdateBaseView: He, onDeleteBaseView: Ge, onLoadBaseView: Je } = lt({
536
+ viewType: r,
537
+ projectName: t,
537
538
  viewSettings: N,
538
539
  workingView: P,
539
- dispatch: c
540
- }), He = p(
541
- async (x, { selectView: X } = {}) => {
540
+ dispatch: l
541
+ }), Ke = v(
542
+ async (M, { selectView: j } = {}) => {
542
543
  if (!P?.id) {
543
544
  console.error("No working view to update");
544
545
  return;
545
546
  }
546
- await S(P.id, x, !s), X && E(P.id);
547
+ await H(P.id, M, !t), j && y(P.id);
547
548
  },
548
- [S, P]
549
- ), le = p(async () => {
550
- try {
551
- await R({
552
- existingWorkingViewId: P?.id,
553
- selectedViewId: L?.id,
554
- setSelectedView: E,
555
- setSettingsChanged: B,
556
- notify: !0
557
- });
558
- } catch (x) {
559
- console.error("Failed to reset view:", x);
560
- }
561
- }, [P, R, L, E, B]), Ge = ot({
562
- viewsList: F,
549
+ [H, P]
550
+ ), de = v(async () => {
551
+ if (!T)
552
+ try {
553
+ await Q({
554
+ existingWorkingViewId: P?.id,
555
+ selectedViewId: f?.id,
556
+ setSelectedView: y,
557
+ setSettingsChanged: E,
558
+ notify: !0
559
+ });
560
+ } catch (M) {
561
+ console.error("Failed to reset view:", M);
562
+ }
563
+ }, [
564
+ T,
565
+ P,
566
+ Q,
567
+ f,
568
+ y,
569
+ E
570
+ ]), Qe = rt({
571
+ viewsList: h,
563
572
  workingView: P,
564
- viewType: t,
565
- viewAlias: i,
566
- projectName: s,
567
- currentUser: V,
568
- useWorkingView: !o,
569
- editingViewId: ce,
570
- selectedId: L?.id,
571
- collapsed: d,
572
- setCollapsed: y,
573
- onResetWorkingView: le,
574
- onSelect: (x) => {
575
- E(x), B(!1), m(!1);
573
+ viewType: r,
574
+ viewAlias: o,
575
+ projectName: t,
576
+ currentUser: m,
577
+ useWorkingView: !p,
578
+ editingViewId: le,
579
+ selectedId: f?.id,
580
+ collapsed: k,
581
+ setCollapsed: B,
582
+ onResetWorkingView: de,
583
+ onSelect: (M) => {
584
+ y(M), E(!1), d(!1);
576
585
  },
577
- onEdit: (x) => l(x),
578
- onSave: async (x) => We(x)
579
- }), Je = {
580
- viewType: t,
581
- viewAlias: i,
582
- projectName: s,
583
- isMenuOpen: h,
584
- editingView: u,
585
- currentUser: V,
586
- selectedView: L,
586
+ onEdit: (M) => w(M),
587
+ onSave: async (M) => qe(M)
588
+ }), ze = {
589
+ viewType: r,
590
+ viewAlias: o,
591
+ projectName: t,
592
+ isMenuOpen: g,
593
+ editingView: n,
594
+ currentUser: m,
595
+ selectedView: f,
587
596
  viewSettings: N,
588
- editingViewData: Re,
589
- isLoadingEditingViewData: $e,
590
- viewsList: F,
597
+ editingViewData: _e,
598
+ isLoadingEditingViewData: Ue,
599
+ viewsList: h,
591
600
  // Working view
592
- workingSettings: re,
601
+ workingSettings: ae,
593
602
  workingView: P,
594
- isViewWorking: ae,
595
- onUpdateWorkingView: He,
603
+ isViewWorking: ce,
604
+ onUpdateWorkingView: Ke,
596
605
  // base views
597
- projectBaseView: Pe,
598
- studioBaseView: Fe,
606
+ projectBaseView: Se,
607
+ studioBaseView: $e,
599
608
  // base view mutations
600
- onCreateBaseView: Ue,
601
- onUpdateBaseView: _e,
602
- onDeleteBaseView: qe,
603
- onLoadBaseView: Ae,
604
- editingViewId: ce,
605
- viewMenuItems: Ge,
606
- isLoadingViews: Oe,
607
- isErrorWorkingView: Z,
609
+ onCreateBaseView: Ae,
610
+ onUpdateBaseView: He,
611
+ onDeleteBaseView: Ge,
612
+ onLoadBaseView: Je,
613
+ editingViewId: le,
614
+ viewMenuItems: Qe,
615
+ isLoadingViews: We,
616
+ isErrorWorkingView: Fe,
608
617
  // data
609
- shareOptions: I,
610
- setIsMenuOpen: m,
611
- setEditingView: l,
612
- setSelectedView: E,
613
- onSettingsChanged: B,
618
+ shareOptions: S,
619
+ setIsMenuOpen: d,
620
+ setEditingView: w,
621
+ setSelectedView: y,
622
+ onSettingsChanged: E,
614
623
  // mutations
615
- onCreateView: _,
616
- onUpdateView: S,
617
- onDeleteView: v,
624
+ onCreateView: $,
625
+ onUpdateView: H,
626
+ onDeleteView: U,
618
627
  // shared actions
619
- resetWorkingView: le,
628
+ resetWorkingView: de,
629
+ updateControlledSettings: T,
620
630
  // api
621
631
  api: A,
622
- dispatch: c
632
+ dispatch: l
623
633
  };
624
- return /* @__PURE__ */ C(je.Provider, { value: Je, children: e });
625
- }, ut = (e) => `${e}-views-portal`, Me = (e) => e ? document.getElementById(ut(e)) : null, wt = J(Q)`
634
+ return /* @__PURE__ */ L(Ne.Provider, { value: ze, children: e });
635
+ }, ft = (e) => `${e}-views-portal`, Ee = (e) => e ? document.getElementById(ft(e)) : null, Vt = K(X)`
626
636
  padding: var(--padding-s);
627
637
  border-radius: var(--border-radius-m);
628
638
  margin: -4px 0;
@@ -643,7 +653,7 @@ const Qt = [
643
653
  background-color: var(--md-sys-color-primary-hover);
644
654
  }
645
655
  }
646
- `, gt = J.div`
656
+ `, pt = K.div`
647
657
  position: fixed;
648
658
  top: 0;
649
659
  left: 0;
@@ -658,13 +668,13 @@ const Qt = [
658
668
  background-color: var(--md-sys-color-surface-container-high);
659
669
  border-radius: var(--border-radius-l);
660
670
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
661
- `, ft = J.li`
671
+ `, mt = K.li`
662
672
  height: 1px;
663
673
  background-color: var(--md-sys-color-outline-variant);
664
674
  margin: 4px 0;
665
- `, Vt = J.div`
675
+ `, ht = K.div`
666
676
  margin-left: 6px;
667
- `, mt = J(be)`
677
+ `, vt = K(be)`
668
678
  padding: 0 8px 0 4px !important;
669
679
  outline: 1px dashed var(--md-sys-color-outline);
670
680
  margin: 0 8px 4px 0;
@@ -706,479 +716,479 @@ const Qt = [
706
716
  font-variation-settings: 'FILL' 1;
707
717
  }
708
718
  }
709
- `, pt = ({
719
+ `, yt = ({
710
720
  fullButton: e = !1,
711
- fullButtonProps: t = () => ({})
721
+ fullButtonProps: s = () => ({})
712
722
  }) => {
713
723
  const {
714
- viewType: i,
715
- viewAlias: s,
716
- isMenuOpen: c,
717
- setIsMenuOpen: a,
718
- selectedView: r,
719
- isViewWorking: w,
720
- editingViewId: g
721
- } = G(), o = se(null);
722
- if (!i) return null;
723
- const V = (l) => {
724
- l.preventDefault(), l.stopPropagation(), a(!c);
725
- }, h = {
724
+ viewType: o,
725
+ viewAlias: t,
726
+ isMenuOpen: l,
727
+ setIsMenuOpen: c,
728
+ selectedView: a,
729
+ isViewWorking: u,
730
+ editingViewId: r
731
+ } = J(), i = oe(null);
732
+ if (!o) return null;
733
+ const V = (d) => {
734
+ d.preventDefault(), d.stopPropagation(), c(!l);
735
+ }, p = {
726
736
  icon: "view_quilt",
727
737
  onClick: V,
728
- className: Ce({ active: !!g, open: c }),
738
+ className: Le({ active: !!r, open: l }),
729
739
  tabIndex: 0,
730
- "data-tooltip": w ? `Working ${s.toLowerCase()}` : `${s}: ` + r?.label || "None",
740
+ "data-tooltip": u ? `Working ${t.toLowerCase()}` : `${t}: ` + a?.label || "None",
731
741
  "data-tooltip-delay": 0,
732
- onKeyDown: (l) => {
733
- (l.key === "Enter" || l.key === " ") && V(l);
742
+ onKeyDown: (d) => {
743
+ (d.key === "Enter" || d.key === " ") && V(d);
734
744
  }
735
- }, m = e ? /* @__PURE__ */ C(be, { ...h, ...t(r) }) : /* @__PURE__ */ C(wt, { ref: o, ...h }), u = Me(i);
736
- return u ? we(m, u) : null;
737
- }, ht = () => null, Ee = "views-dialog", vt = ({}) => {
745
+ }, m = e ? /* @__PURE__ */ L(be, { ...p, ...s(a) }) : /* @__PURE__ */ L(Vt, { ref: i, ...p }), g = Ee(o);
746
+ return g ? ge(m, g) : null;
747
+ }, kt = () => null, Pe = "views-dialog", Ct = ({}) => {
738
748
  const {
739
749
  editingView: e,
740
- editingViewData: t,
741
- isLoadingEditingViewData: i,
742
- setEditingView: s,
743
- viewType: c,
744
- viewAlias: a,
745
- projectName: r,
746
- currentUser: w,
747
- viewSettings: g,
748
- shareOptions: o,
750
+ editingViewData: s,
751
+ isLoadingEditingViewData: o,
752
+ setEditingView: t,
753
+ viewType: l,
754
+ viewAlias: c,
755
+ projectName: a,
756
+ currentUser: u,
757
+ viewSettings: r,
758
+ shareOptions: i,
749
759
  setSelectedView: V,
750
- onCreateView: h,
760
+ onCreateView: p,
751
761
  onUpdateView: m,
752
- onDeleteView: u,
753
- api: l,
762
+ onDeleteView: g,
763
+ api: d,
754
764
  dispatch: n
755
- } = G(), { powerLicense: d } = K(), [y, { isLoading: b, outdated: I }] = Le({
765
+ } = J(), { powerLicense: w } = z(), [C, { isLoading: k, outdated: B }] = Be({
756
766
  addon: "powerpack",
757
767
  remote: "views",
758
768
  module: "ViewFormDialog",
759
- fallback: ht,
769
+ fallback: kt,
760
770
  minVersion: "1.1.1",
761
- skip: !c || !d
771
+ skip: !l || !w
762
772
  });
763
- return !c || !e ? null : e && I ? /* @__PURE__ */ C(
764
- Te,
773
+ return !l || !e ? null : e && B ? /* @__PURE__ */ L(
774
+ st,
765
775
  {
766
776
  isOpen: !0,
767
777
  header: "Powerpack Update Required",
768
- onClose: () => s(null),
778
+ onClose: () => t(null),
769
779
  size: "sm",
770
- children: /* @__PURE__ */ H("p", { children: [
780
+ children: /* @__PURE__ */ G("p", { children: [
771
781
  "Please update the Powerpack addon to at least ",
772
- I.required
782
+ B.required
773
783
  ] })
774
784
  }
775
- ) : /* @__PURE__ */ C(
776
- y,
785
+ ) : /* @__PURE__ */ L(
786
+ C,
777
787
  {
778
788
  editingView: {
779
789
  viewId: e === !0 ? void 0 : e,
780
- ...t || {}
790
+ ...s || {}
781
791
  },
782
- isLoading: i,
783
- viewSettings: g,
784
- setEditingView: s,
785
- viewType: c,
786
- viewAlias: a,
787
- projectName: r,
788
- shareOptions: o,
792
+ isLoading: o,
793
+ viewSettings: r,
794
+ setEditingView: t,
795
+ viewType: l,
796
+ viewAlias: c,
797
+ projectName: a,
798
+ shareOptions: i,
789
799
  setSelected: V,
790
- onCreateView: h,
800
+ onCreateView: p,
791
801
  onUpdateView: m,
792
- onDeleteView: u,
793
- api: l,
802
+ onDeleteView: g,
803
+ api: d,
794
804
  dispatch: n,
795
- currentUser: w,
805
+ currentUser: u,
796
806
  pt: {
797
807
  dialog: {
798
- className: Ee
808
+ className: Pe
799
809
  }
800
810
  }
801
811
  }
802
812
  );
803
- }, yt = ({ projectName: e }) => {
813
+ }, bt = ({ projectName: e }) => {
804
814
  const {
805
- projectBaseView: t,
806
- studioBaseView: i,
807
- onCreateBaseView: s,
808
- onDeleteBaseView: c,
809
- onLoadBaseView: a,
810
- viewAlias: r
811
- } = G(), { powerLicense: w, setPowerpackDialog: g } = K(), [o, V] = ye("collapsed-default-view", !1), h = async (m, u) => {
812
- const l = m ? i : t, n = !m && w === !1;
813
- if (n && !u) {
814
- g("sharedViews");
815
+ projectBaseView: s,
816
+ studioBaseView: o,
817
+ onCreateBaseView: t,
818
+ onDeleteBaseView: l,
819
+ onLoadBaseView: c,
820
+ viewAlias: a
821
+ } = J(), { powerLicense: u, setPowerpackDialog: r } = z(), [i, V] = ke("collapsed-default-view", !1), p = async (m, g) => {
822
+ const d = m ? o : s, n = !m && u === !1;
823
+ if (n && !g) {
824
+ r("sharedViews");
815
825
  return;
816
826
  }
817
- l ? u || n ? ze({
818
- message: `Are you sure you want to remove this default ${r.toLowerCase()}?`,
819
- header: `Remove Default ${r}`,
827
+ d ? g || n ? Ye({
828
+ message: `Are you sure you want to remove this default ${a.toLowerCase()}?`,
829
+ header: `Remove Default ${a}`,
820
830
  acceptLabel: "Remove",
821
831
  rejectLabel: "Cancel",
822
832
  accept: async () => {
823
- await c(l.id, m);
833
+ await l(d.id, m);
824
834
  }
825
- }) : await a(m) : await s(m);
835
+ }) : await c(m) : await t(m);
826
836
  };
827
- return /* @__PURE__ */ H(j, { children: [
828
- /* @__PURE__ */ C(
829
- Ye,
837
+ return /* @__PURE__ */ G(Y, { children: [
838
+ /* @__PURE__ */ L(
839
+ Te,
830
840
  {
831
- onClick: () => V(!o),
832
- collapsed: o,
841
+ onClick: () => V(!i),
842
+ collapsed: i,
833
843
  id: "default-views",
834
- title: `Default ${r.toLowerCase()}`,
844
+ title: `Default ${a.toLowerCase()}`,
835
845
  style: { marginBottom: "10px" }
836
846
  }
837
847
  ),
838
- !o && /* @__PURE__ */ H(Vt, { children: [
839
- /* @__PURE__ */ C(
840
- ue,
848
+ !i && /* @__PURE__ */ G(ht, { children: [
849
+ /* @__PURE__ */ L(
850
+ we,
841
851
  {
842
- existingView: !!i,
852
+ existingView: !!o,
843
853
  label: "Studio",
844
- onClick: (m) => h(!0, m)
854
+ onClick: (m) => p(!0, m)
845
855
  }
846
856
  ),
847
- e && /* @__PURE__ */ C(
848
- ue,
857
+ e && /* @__PURE__ */ L(
858
+ we,
849
859
  {
850
- existingView: !!t,
860
+ existingView: !!s,
851
861
  label: "Project",
852
- onClick: (m) => h(!1, m),
853
- powerLicense: w
862
+ onClick: (m) => p(!1, m),
863
+ powerLicense: u
854
864
  }
855
865
  )
856
866
  ] })
857
867
  ] });
858
- }, ue = ({
868
+ }, we = ({
859
869
  existingView: e,
860
- onClick: t,
861
- label: i,
862
- powerLicense: s = void 0
870
+ onClick: s,
871
+ label: o,
872
+ powerLicense: t = void 0
863
873
  }) => {
864
- const c = (r) => {
865
- r.stopPropagation(), t();
866
- }, a = (r) => {
867
- r.stopPropagation(), t(!0);
874
+ const l = (a) => {
875
+ a.stopPropagation(), s();
876
+ }, c = (a) => {
877
+ a.stopPropagation(), s(!0);
868
878
  };
869
- return /* @__PURE__ */ H(
870
- mt,
879
+ return /* @__PURE__ */ G(
880
+ vt,
871
881
  {
872
- className: Ce({
873
- "powerpack-locked": s === !1,
882
+ className: Le({
883
+ "powerpack-locked": t === !1,
874
884
  active: e
875
885
  }),
876
- onClick: c,
886
+ onClick: l,
877
887
  children: [
878
- /* @__PURE__ */ C(
879
- Q,
888
+ /* @__PURE__ */ L(
889
+ X,
880
890
  {
881
- icon: s === !1 ? "bolt" : e ? "close" : "add",
882
- onClick: (r) => e && a(r)
891
+ icon: t === !1 ? "bolt" : e ? "close" : "add",
892
+ onClick: (a) => e && c(a)
883
893
  }
884
894
  ),
885
- i
895
+ o
886
896
  ]
887
897
  }
888
898
  );
889
- }, kt = J(Q)`
899
+ }, Lt = K(X)`
890
900
  color: var(--md-sys-color-tertiary);
891
901
  font-variation-settings: 'FILL' 1;
892
- `, bt = () => {
902
+ `, Bt = () => {
893
903
  const {
894
904
  viewType: e,
895
- viewAlias: t,
896
- isMenuOpen: i,
897
- setIsMenuOpen: s,
898
- setEditingView: c,
899
- selectedView: a,
900
- workingView: r,
901
- viewMenuItems: w,
902
- projectName: g
903
- } = G(), { powerLicense: o, setPowerpackDialog: V } = K(), h = se(null), { user: m } = ve(), u = (m?.uiExposureLevel || 0) >= 900, l = Me(e), n = l?.getBoundingClientRect(), y = {
905
+ viewAlias: s,
906
+ isMenuOpen: o,
907
+ setIsMenuOpen: t,
908
+ setEditingView: l,
909
+ selectedView: c,
910
+ workingView: a,
911
+ viewMenuItems: u,
912
+ projectName: r
913
+ } = J(), { powerLicense: i, setPowerpackDialog: V } = z(), p = oe(null), { user: m } = ye(), g = (m?.uiExposureLevel || 0) >= 900, d = Ee(e), n = d?.getBoundingClientRect(), C = {
904
914
  top: n ? n.bottom + 8 : 0,
905
915
  left: n ? n.left : 0
906
916
  };
907
- U(() => {
908
- const L = (f) => {
909
- const k = f.target, D = h.current?.contains(k) || l?.contains(k), B = document.querySelector("." + Ee)?.contains(k), M = document.querySelector(".options")?.contains(k), $ = document.querySelector(".p-confirm-dialog")?.contains(k);
910
- !D && !B && !M && !$ && i && s(!1);
911
- }, E = (f) => {
912
- f.key === "Escape" && i && s(!1);
917
+ W(() => {
918
+ const F = (f) => {
919
+ const y = f.target, b = p.current?.contains(y) || d?.contains(y), D = document.querySelector("." + Pe)?.contains(y), I = document.querySelector(".options")?.contains(y), E = document.querySelector(".p-confirm-dialog")?.contains(y);
920
+ !b && !D && !I && !E && o && t(!1);
921
+ }, S = (f) => {
922
+ f.key === "Escape" && o && t(!1);
913
923
  };
914
- return document.addEventListener("mousedown", L), document.addEventListener("keydown", E), () => {
915
- document.removeEventListener("mousedown", L), document.removeEventListener("keydown", E);
924
+ return document.addEventListener("mousedown", F), document.addEventListener("keydown", S), () => {
925
+ document.removeEventListener("mousedown", F), document.removeEventListener("keydown", S);
916
926
  };
917
- }, [i, l, s]), U(() => {
918
- i && h.current && h.current.focus();
919
- }, [i]);
920
- const b = p(() => {
921
- o ? c(!0) : V("sharedViews");
922
- }, [o, V, c, s]), I = !a || r?.id === a.id ? ne : a.id;
923
- return /* @__PURE__ */ C(j, { children: i && we(
924
- /* @__PURE__ */ H(gt, { style: y, ref: h, tabIndex: 0, children: [
925
- /* @__PURE__ */ C(Ze, { items: w, selected: I }),
926
- u && /* @__PURE__ */ H(j, { children: [
927
- /* @__PURE__ */ C(yt, { projectName: g }),
928
- /* @__PURE__ */ C(ft, {})
927
+ }, [o, d, t]), W(() => {
928
+ o && p.current && p.current.focus();
929
+ }, [o]);
930
+ const k = v(() => {
931
+ i ? l(!0) : V("sharedViews");
932
+ }, [i, V, l, t]), B = !c || a?.id === c.id ? re : c.id;
933
+ return /* @__PURE__ */ L(Y, { children: o && ge(
934
+ /* @__PURE__ */ G(pt, { style: C, ref: p, tabIndex: 0, children: [
935
+ /* @__PURE__ */ L(et, { items: u, selected: B }),
936
+ g && /* @__PURE__ */ G(Y, { children: [
937
+ /* @__PURE__ */ L(bt, { projectName: r }),
938
+ /* @__PURE__ */ L(mt, {})
929
939
  ] }),
930
- /* @__PURE__ */ C(
931
- Ne,
940
+ /* @__PURE__ */ L(
941
+ tt,
932
942
  {
933
- label: `Create new ${t.toLowerCase()}`,
934
- id: tt,
935
- startContent: /* @__PURE__ */ C(Q, { icon: "add" }),
936
- endContent: !o && /* @__PURE__ */ C(kt, { icon: "bolt" }),
937
- onClick: b,
943
+ label: `Create new ${s.toLowerCase()}`,
944
+ id: it,
945
+ startContent: /* @__PURE__ */ L(X, { icon: "add" }),
946
+ endContent: !i && /* @__PURE__ */ L(Lt, { icon: "bolt" }),
947
+ onClick: k,
938
948
  tabIndex: 0
939
949
  }
940
950
  )
941
951
  ] }),
942
952
  document.body
943
953
  ) });
944
- }, Ct = () => {
945
- const { resetWorkingView: e } = G(), t = p(async () => {
954
+ }, Dt = () => {
955
+ const { resetWorkingView: e } = J(), s = v(async () => {
946
956
  await e();
947
957
  }, [e]);
948
- return U(() => {
949
- const i = (s) => {
950
- s.target instanceof HTMLElement && (s.target.tagName === "INPUT" || s.target.tagName === "TEXTAREA" || s.target.isContentEditable || s.target.getAttribute("role") === "textbox" || s.target.closest(".block-shortcuts")) || s.shiftKey && (s.ctrlKey || s.metaKey) && s.key === "0" && (s.preventDefault(), t());
958
+ return W(() => {
959
+ const o = (t) => {
960
+ t.target instanceof HTMLElement && (t.target.tagName === "INPUT" || t.target.tagName === "TEXTAREA" || t.target.isContentEditable || t.target.getAttribute("role") === "textbox" || t.target.closest(".block-shortcuts")) || t.shiftKey && (t.ctrlKey || t.metaKey) && t.key === "0" && (t.preventDefault(), s());
951
961
  };
952
- return window.addEventListener("keydown", i), () => {
953
- window.removeEventListener("keydown", i);
962
+ return window.addEventListener("keydown", o), () => {
963
+ window.removeEventListener("keydown", o);
954
964
  };
955
- }, [t]), {
956
- resetViewToDefault: t
965
+ }, [s]), {
966
+ resetViewToDefault: s
957
967
  };
958
- }, Xt = () => (Ct(), /* @__PURE__ */ H(j, { children: [
959
- /* @__PURE__ */ C(pt, {}),
960
- /* @__PURE__ */ C(bt, {}),
961
- /* @__PURE__ */ C(vt, {})
962
- ] })), jt = ({
968
+ }, Zt = () => (Dt(), /* @__PURE__ */ G(Y, { children: [
969
+ /* @__PURE__ */ L(yt, {}),
970
+ /* @__PURE__ */ L(Bt, {}),
971
+ /* @__PURE__ */ L(Ct, {})
972
+ ] })), Nt = ({
963
973
  viewType: e,
964
- projectName: t
974
+ projectName: s
965
975
  }) => {
966
- const i = !e, s = { viewType: e, projectName: t };
967
- ge(s, { skip: i }), me(s, { skip: i }), pe(s, { skip: i }), Y(s, { skip: i }), Y({ viewType: e, projectName: void 0 }, { skip: i });
968
- }, Yt = () => {
969
- const { viewSettings: e } = G(), [t, i] = W(null), [s, c] = W(null), { updateViewSettings: a } = ke(), r = e, w = r?.filter ?? {}, g = r?.columns ?? [], o = r?.sliceType;
970
- U(() => {
971
- i(null);
972
- }, [JSON.stringify(e?.filter)]), U(() => {
973
- c(null);
976
+ const o = !e, t = { viewType: e, projectName: s };
977
+ fe(t, { skip: o }), me(t, { skip: o }), he(t, { skip: o }), Z(t, { skip: o }), Z({ viewType: e, projectName: void 0 }, { skip: o });
978
+ }, Tt = () => {
979
+ const { viewSettings: e } = J(), [s, o] = R(null), [t, l] = R(null), { updateViewSettings: c } = Ce(), a = e, u = a?.filter ?? {}, r = a?.columns ?? [], i = a?.sliceType;
980
+ W(() => {
981
+ o(null);
982
+ }, [JSON.stringify(e?.filter)]), W(() => {
983
+ l(null);
974
984
  }, [JSON.stringify(e?.columns)]);
975
- const V = t !== null ? t : w, h = s !== null ? s : g, m = p(
976
- async (d) => {
977
- await a({ filter: d }, i, d, {
985
+ const V = s !== null ? s : u, p = t !== null ? t : r, m = v(
986
+ async (w) => {
987
+ await c({ filter: w }, o, w, {
978
988
  errorMessage: "Failed to update filter settings"
979
989
  });
980
990
  },
981
- [a]
982
- ), u = p(
983
- async (d) => {
984
- await a({ columns: d }, c, d, {
991
+ [c]
992
+ ), g = v(
993
+ async (w) => {
994
+ await c({ columns: w }, l, w, {
985
995
  errorMessage: "Failed to update column width settings"
986
996
  });
987
997
  },
988
- [a]
989
- ), l = p(() => {
990
- }, []), n = p(
991
- async (d) => {
992
- await a({ sliceType: d }, l, d, {
998
+ [c]
999
+ ), d = v(() => {
1000
+ }, []), n = v(
1001
+ async (w) => {
1002
+ await c({ sliceType: w }, d, w, {
993
1003
  errorMessage: "Failed to update slicer type"
994
1004
  });
995
1005
  },
996
- [a]
1006
+ [c]
997
1007
  );
998
1008
  return {
999
1009
  filters: V,
1000
1010
  onUpdateFilters: m,
1001
- columns: h,
1002
- onUpdateColumns: u,
1003
- sliceType: o,
1011
+ columns: p,
1012
+ onUpdateColumns: g,
1013
+ sliceType: i,
1004
1014
  onUpdateSliceType: n
1005
1015
  };
1006
- }, Zt = ({ viewSettings: e, updateViewSettings: t }) => {
1007
- const [i, s] = W(null), [c, a] = W(null), [r, w] = W(null), g = e, o = g?.filter ?? {}, V = g?.showHierarchy ?? !0, h = g?.sliceType, m = q(
1008
- () => Be(g),
1016
+ }, es = ({ viewSettings: e, updateViewSettings: s }) => {
1017
+ const [o, t] = R(null), [l, c] = R(null), [a, u] = R(null), r = e, i = r?.filter ?? {}, V = r?.showHierarchy ?? !0, p = r?.sliceType, m = q(
1018
+ () => De(r),
1009
1019
  [JSON.stringify(e)]
1010
1020
  );
1011
- U(() => {
1012
- s(null);
1013
- }, [JSON.stringify(e?.filter)]), U(() => {
1014
- a(null);
1021
+ W(() => {
1022
+ t(null);
1023
+ }, [JSON.stringify(e?.filter)]), W(() => {
1024
+ c(null);
1015
1025
  }, [
1016
1026
  e?.showHierarchy,
1017
1027
  e?.groupBy
1018
- ]), U(() => {
1019
- w(null);
1028
+ ]), W(() => {
1029
+ u(null);
1020
1030
  }, [JSON.stringify(e?.columns)]);
1021
- const u = i !== null ? i : o, l = c !== null ? c : V, n = r || m, d = p(() => {
1022
- }, []), y = p(
1031
+ const g = o !== null ? o : i, d = l !== null ? l : V, n = a || m, w = v(() => {
1032
+ }, []), C = v(
1023
1033
  async (f) => {
1024
- await t({ sliceType: f }, d, f, {
1034
+ await s({ sliceType: f }, w, f, {
1025
1035
  errorMessage: "Failed to update slicer type"
1026
1036
  });
1027
1037
  },
1028
- [t]
1029
- ), b = p(
1038
+ [s]
1039
+ ), k = v(
1030
1040
  async (f) => {
1031
- await t({ filter: f }, s, f, {
1041
+ await s({ filter: f }, t, f, {
1032
1042
  errorMessage: "Failed to update filter settings"
1033
1043
  });
1034
1044
  },
1035
- [t]
1036
- ), I = p(
1045
+ [s]
1046
+ ), B = v(
1037
1047
  async (f) => {
1038
1048
  if (f && n?.groupBy) {
1039
- const k = { ...n, groupBy: void 0 };
1040
- w(k);
1041
- const D = te(k);
1042
- await t(
1043
- { ...D, showHierarchy: !0 },
1044
- a,
1049
+ const y = { ...n, groupBy: void 0 };
1050
+ u(y);
1051
+ const b = se(y);
1052
+ await s(
1053
+ { ...b, showHierarchy: !0 },
1054
+ c,
1045
1055
  f,
1046
1056
  { errorMessage: "Failed to update hierarchy setting" }
1047
1057
  );
1048
1058
  return;
1049
1059
  }
1050
- await t(
1060
+ await s(
1051
1061
  { showHierarchy: f },
1052
- a,
1062
+ c,
1053
1063
  f,
1054
1064
  { errorMessage: "Failed to update hierarchy setting" }
1055
1065
  );
1056
1066
  },
1057
- [t, n]
1058
- ), L = p(
1059
- async (f, k) => {
1060
- const D = k || [
1067
+ [s, n]
1068
+ ), F = v(
1069
+ async (f, y) => {
1070
+ const b = y || [
1061
1071
  ...f.columnOrder || [],
1062
1072
  ...Object.keys(f.columnVisibility || {}),
1063
1073
  ...f.columnPinning?.left || [],
1064
1074
  ...f.columnPinning?.right || []
1065
- ].filter(Boolean).filter(($, F, _) => _.indexOf($) === F), B = te(f, D), M = !!f.groupBy;
1066
- M && a(!1), await t(
1067
- M ? { ...B, showHierarchy: !1 } : B,
1068
- w,
1075
+ ].filter(Boolean).filter((E, O, _) => _.indexOf(E) === O), D = se(f, b), I = !!f.groupBy;
1076
+ I && c(!1), await s(
1077
+ I ? { ...D, showHierarchy: !1 } : D,
1078
+ u,
1069
1079
  f,
1070
1080
  { errorMessage: "Failed to update columns" }
1071
1081
  );
1072
1082
  },
1073
- [t]
1074
- ), E = p(
1075
- async (f, k, D) => {
1076
- const B = {
1077
- showHierarchy: k,
1083
+ [s]
1084
+ ), S = v(
1085
+ async (f, y, b) => {
1086
+ const D = {
1087
+ showHierarchy: y,
1078
1088
  groupBy: f,
1079
- groupSortByDesc: f ? D ?? !1 : void 0
1080
- }, $ = {
1089
+ groupSortByDesc: f ? b ?? !1 : void 0
1090
+ }, E = {
1081
1091
  ...n,
1082
- groupBy: f ? { id: f, desc: D ?? !1 } : void 0
1092
+ groupBy: f ? { id: f, desc: b ?? !1 } : void 0
1083
1093
  };
1084
- await t(
1085
- B,
1094
+ await s(
1095
+ D,
1086
1096
  (_) => {
1087
- _ === null ? (a(null), w(null)) : (a(_.showHierarchy), w(_.columns));
1097
+ _ === null ? (c(null), u(null)) : (c(_.showHierarchy), u(_.columns));
1088
1098
  },
1089
- { showHierarchy: k, columns: $ },
1099
+ { showHierarchy: y, columns: E },
1090
1100
  { errorMessage: "Failed to update grouping" }
1091
1101
  );
1092
1102
  },
1093
- [t, n]
1103
+ [s, n]
1094
1104
  );
1095
1105
  return {
1096
- filters: u,
1097
- onUpdateFilters: b,
1098
- showHierarchy: l,
1099
- onUpdateHierarchy: I,
1106
+ filters: g,
1107
+ onUpdateFilters: k,
1108
+ showHierarchy: d,
1109
+ onUpdateHierarchy: B,
1100
1110
  columns: n,
1101
- onUpdateColumns: L,
1102
- onUpdateGroupBy: E,
1103
- sliceType: h,
1104
- onUpdateSliceType: y
1111
+ onUpdateColumns: F,
1112
+ onUpdateGroupBy: S,
1113
+ sliceType: p,
1114
+ onUpdateSliceType: C
1105
1115
  };
1106
- }, Nt = () => {
1107
- const { viewSettings: e } = G(), [t, i] = W(null), [s, c] = W(null), [a, r] = W(null), { updateViewSettings: w } = ke(), g = e, o = g?.filter ?? {}, V = q(
1108
- () => Be(g),
1116
+ }, ts = () => {
1117
+ const { viewSettings: e } = J(), [s, o] = R(null), [t, l] = R(null), [c, a] = R(null), { updateViewSettings: u } = Ce(), r = e, i = r?.filter ?? {}, V = q(
1118
+ () => De(r),
1109
1119
  [JSON.stringify(e)]
1110
1120
  );
1111
- U(() => {
1112
- i(null);
1113
- }, [JSON.stringify(e?.filter)]), U(() => {
1114
- c(null);
1121
+ W(() => {
1122
+ o(null);
1123
+ }, [JSON.stringify(e?.filter)]), W(() => {
1124
+ l(null);
1115
1125
  }, [JSON.stringify(e?.columns)]);
1116
- const h = e?.listValues;
1117
- U(() => {
1118
- r(null);
1119
- }, [JSON.stringify(h)]);
1120
- const m = t !== null ? t : o, u = s || V, l = a ?? h, n = p(
1121
- async (b) => {
1122
- await w({ filter: b }, i, b, {
1126
+ const p = e?.listValues;
1127
+ W(() => {
1128
+ a(null);
1129
+ }, [JSON.stringify(p)]);
1130
+ const m = s !== null ? s : i, g = t || V, d = c ?? p, n = v(
1131
+ async (k) => {
1132
+ await u({ filter: k }, o, k, {
1123
1133
  errorMessage: "Failed to update filter settings"
1124
1134
  });
1125
1135
  },
1126
- [w]
1127
- ), d = p(
1128
- async (b, I) => {
1129
- const L = te(b, I);
1130
- await w(L, c, b, {
1136
+ [u]
1137
+ ), w = v(
1138
+ async (k, B) => {
1139
+ const F = se(k, B);
1140
+ await u(F, l, k, {
1131
1141
  errorMessage: "Failed to update columns"
1132
1142
  });
1133
1143
  },
1134
- [w]
1135
- ), y = p(
1136
- async (b) => {
1137
- await w({ listValues: b }, r, b, {
1144
+ [u]
1145
+ ), C = v(
1146
+ async (k) => {
1147
+ await u({ listValues: k }, a, k, {
1138
1148
  errorMessage: "Failed to update list values settings"
1139
1149
  });
1140
1150
  },
1141
- [w]
1151
+ [u]
1142
1152
  );
1143
1153
  return {
1144
1154
  filters: m,
1145
1155
  onUpdateFilters: n,
1146
- columns: u,
1147
- onUpdateColumns: d,
1148
- listValues: l,
1149
- onUpdateListValues: y
1156
+ columns: g,
1157
+ onUpdateColumns: w,
1158
+ listValues: d,
1159
+ onUpdateListValues: C
1150
1160
  };
1151
1161
  };
1152
1162
  export {
1153
- De as BASE_VIEW_ID,
1154
- tt as NEW_VIEW_ID,
1155
- Xe as VIEW_DIVIDER,
1156
- Xt as Views,
1157
- pt as ViewsButton,
1158
- je as ViewsContext,
1159
- Ze as ViewsMenu,
1160
- bt as ViewsMenuContainer,
1161
- zt as ViewsProvider,
1162
- ne as WORKING_VIEW_ID,
1163
- ts as generateViewId,
1164
- he as generateWorkingView,
1165
- st as getCustomViewsFallback,
1166
- Me as getViewsPortalContainer,
1167
- ut as getViewsPortalId,
1168
- Ie as isViewStudioScope,
1169
- ss as updateViewSettings,
1170
- rt as useBaseViewMutations,
1171
- ot as useBuildViewMenuItems,
1172
- Nt as useListsViewSettings,
1173
- Zt as useOverviewViewSettings,
1174
- jt as usePrefetchViews,
1175
- at as useSaveViewFromCurrent,
1176
- it as useSelectedView,
1177
- Yt as useTaskProgressViewSettings,
1178
- ke as useViewUpdateHelper,
1179
- G as useViewsContext,
1180
- nt as useViewsMutations,
1181
- Ct as useViewsShortcuts,
1182
- os as useViewsState,
1183
- Qt as viewTypes
1163
+ Ie as BASE_VIEW_ID,
1164
+ it as NEW_VIEW_ID,
1165
+ Ze as VIEW_DIVIDER,
1166
+ Zt as Views,
1167
+ yt as ViewsButton,
1168
+ Ne as ViewsContext,
1169
+ et as ViewsMenu,
1170
+ Bt as ViewsMenuContainer,
1171
+ Yt as ViewsProvider,
1172
+ re as WORKING_VIEW_ID,
1173
+ is as generateViewId,
1174
+ ve as generateWorkingView,
1175
+ nt as getCustomViewsFallback,
1176
+ Ee as getViewsPortalContainer,
1177
+ ft as getViewsPortalId,
1178
+ Me as isViewStudioScope,
1179
+ ns as updateViewSettings,
1180
+ lt as useBaseViewMutations,
1181
+ rt as useBuildViewMenuItems,
1182
+ ts as useListsViewSettings,
1183
+ es as useOverviewViewSettings,
1184
+ Nt as usePrefetchViews,
1185
+ dt as useSaveViewFromCurrent,
1186
+ at as useSelectedView,
1187
+ Tt as useTaskProgressViewSettings,
1188
+ Ce as useViewUpdateHelper,
1189
+ J as useViewsContext,
1190
+ ct as useViewsMutations,
1191
+ Dt as useViewsShortcuts,
1192
+ rs as useViewsState,
1193
+ jt as viewTypes
1184
1194
  };