@interopio/home-ui-react 2.1.0-beta.0 → 2.1.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.
- package/dist/index.css +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +149 -123
- package/dist/index.mjs.map +1 -1
- package/dist/lib/layouts-panel/layouts-list.d.ts +3 -2
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -46,7 +46,7 @@ Xi = lu, function() {
|
|
|
46
46
|
Xi.exports ? (n.default = n, Xi.exports = n) : window.classNames = n;
|
|
47
47
|
}();
|
|
48
48
|
var ee = cu(lu.exports);
|
|
49
|
-
function
|
|
49
|
+
function dt({ className: t, size: n = "16", variant: e = "workspace", ...o }) {
|
|
50
50
|
const r = ee("icon", n && [`icon-size-${n}`], t);
|
|
51
51
|
return l("span", { className: r, "aria-label": `icon-${e}`, role: "presentation", ...o, children: l("i", { className: `icon-${e}` }) });
|
|
52
52
|
}
|
|
@@ -56,13 +56,13 @@ const Je = Ke(({ className: t, variant: n = "default", icon: e = "workspace", si
|
|
|
56
56
|
return a ? a(h) : void 0;
|
|
57
57
|
h.preventDefault();
|
|
58
58
|
}, [a, s]);
|
|
59
|
-
return l("button", { className: d, type: "button", ref: f, "aria-label": "icon button", "aria-disabled": s, title: r, onClick: p, disabled: s, ...u, children: c ?? (e && l(
|
|
59
|
+
return l("button", { className: d, type: "button", ref: f, "aria-label": "icon button", "aria-disabled": s, title: r, onClick: p, disabled: s, ...u, children: c ?? (e && l(dt, { variant: e, size: i })) });
|
|
60
60
|
});
|
|
61
61
|
Je.displayName = "ButtonIcon";
|
|
62
62
|
const rm = { default: void 0, info: "info", success: "check-solid", warning: "exclamation-mark", critical: "exclamation-mark" };
|
|
63
63
|
function im({ className: t, variant: n = "default", size: e = "normal", text: o, close: r = !1, closeButtonOnClick: i, append: a, ...s }) {
|
|
64
64
|
const c = ee("io-alert", `io-alert-${n}`, e === "large" && "io-alert-lg", t), u = rm[n];
|
|
65
|
-
return N("div", { "data-testid": "io-alert", className: c, role: "alert", "aria-label": "alert", ...s, children: [u && l(
|
|
65
|
+
return N("div", { "data-testid": "io-alert", className: c, role: "alert", "aria-label": "alert", ...s, children: [u && l(dt, { "data-testid": "io-alert-icon", variant: u, className: "icon-severity" }), o && l("p", { "data-testid": "io-alert-text", className: "io-text-smaller", children: o }), e === "large" && a, r && l(Je, { "data-testid": "io-alert-close-button", className: "ms-auto", size: "16", iconSize: "10", icon: "close", onClick: i })] });
|
|
66
66
|
}
|
|
67
67
|
function am({ className: t, variant: n = "default", children: e, ...o }) {
|
|
68
68
|
const r = ee("io-badge", n !== "default" && [`io-badge-${n}`], t);
|
|
@@ -84,7 +84,7 @@ const Vn = (t) => t.key === "Enter" || t.key === " ", et = Ke(({ className: t, v
|
|
|
84
84
|
}, [s, c]), m = ne((g) => {
|
|
85
85
|
c || Vn(g) && (g.preventDefault(), h(g));
|
|
86
86
|
}, [h, c]);
|
|
87
|
-
return N("button", { className: p, ref: d, type: "button", "aria-disabled": c, onClick: h, onKeyDown: m, disabled: c, tabIndex: 0, ...f, children: [o && !i && l(
|
|
87
|
+
return N("button", { className: p, ref: d, type: "button", "aria-disabled": c, onClick: h, onKeyDown: m, disabled: c, tabIndex: 0, ...f, children: [o && !i && l(dt, { variant: o, size: r }), u ?? a, o && i && l(dt, { variant: o, size: r })] });
|
|
88
88
|
});
|
|
89
89
|
et.displayName = "Button";
|
|
90
90
|
const Oi = Xe({}), uu = Ke(({ icon: t = "chevron-down", onClick: n, onKeyDown: e, ...o }, r) => {
|
|
@@ -117,7 +117,7 @@ const pu = Xe({}), Ni = Ke((t, n) => {
|
|
|
117
117
|
const { className: e, prepend: o, append: r, isSelected: i, onClick: a, description: s, disabled: c = !1, children: u, tooltip: f, ...d } = t, { variant: p = "default", selected: h, checkIcon: m, handleItemClick: g } = Se(pu), v = i ?? (h == null ? void 0 : h.some((y) => y.children === u)), S = p !== "default" && !!m, k = S || o, w = ee("io-list-item", k && "io-list-item-left", r && "io-list-item-right", p !== "default" && v && "selected", s && "io-list-item-description", c && "io-list-item-disabled", e);
|
|
118
118
|
return N("li", { className: w, ref: n, role: "menuitem", "aria-roledescription": "menuitem", tabIndex: 0, onClick: (y) => {
|
|
119
119
|
c ? y.preventDefault() : (g == null || g(y, { children: u }), a == null || a(y));
|
|
120
|
-
}, ...d, children: [k && N("div", { className: "io-list-left-column", children: [S && l(
|
|
120
|
+
}, ...d, children: [k && N("div", { className: "io-list-left-column", children: [S && l(dt, { variant: m.variant, title: v ? m.tooltip : void 0, "data-testid": "list-item-check-icon" }), o] }), l("span", { className: "io-list-text", title: f, "data-testid": "list-item-title", children: u }), r && l("div", { className: "io-list-right-column", children: r }), s && l("div", { className: "io-list-text-description", children: s })] });
|
|
121
121
|
});
|
|
122
122
|
Ni.displayName = "ListItem";
|
|
123
123
|
const ks = Ke(({ className: t, prepend: n, append: e, children: o, tooltip: r, ...i }, a) => {
|
|
@@ -2243,14 +2243,14 @@ function sg({ className: t, variant: n = "active", value: e = 0, ...o }) {
|
|
|
2243
2243
|
function Li({ text: t = "Label", ...n }) {
|
|
2244
2244
|
return l("label", { ...n, children: t });
|
|
2245
2245
|
}
|
|
2246
|
-
Ro.displayName = "PanelBody", Oo.ButtonGroup = $e, Oo.Button = et, Oo.ButtonIcon = Je, Oo.Dropdown = he, Qe.Header = Rn, Qe.Body = Ro, Qe.Footer = Oo, Mi.Icon =
|
|
2246
|
+
Ro.displayName = "PanelBody", Oo.ButtonGroup = $e, Oo.Button = et, Oo.ButtonIcon = Je, Oo.Dropdown = he, Qe.Header = Rn, Qe.Body = Ro, Qe.Footer = Oo, Mi.Icon = dt;
|
|
2247
2247
|
const fo = Ke(({ id: t = "input", className: n, type: e = "text", name: o = "input", align: r = "up", label: i, iconPrepend: a, iconPrependOnClick: s, iconAppend: c, iconAppendOnClick: u, placeholder: f, disabled: d, readOnly: p, errorMessage: h, errorDataTestId: m, ...g }, v) => {
|
|
2248
2248
|
const S = ee("io-control-input", a && "io-control-leading-icon", c && "io-control-trailing-icon", d && "io-control-disabled", p && "io-control-readonly", h && "io-control-error", r && [`direction-${r}`], n), k = ne((y) => {
|
|
2249
2249
|
d ? y.preventDefault() : s && s(y);
|
|
2250
2250
|
}, [s, d]), w = ne((y) => {
|
|
2251
2251
|
d ? y.preventDefault() : u && u(y);
|
|
2252
2252
|
}, [u, d]);
|
|
2253
|
-
return N("div", { className: S, children: [i && l(Li, { htmlFor: t, text: i }), a && l(
|
|
2253
|
+
return N("div", { className: S, children: [i && l(Li, { htmlFor: t, text: i }), a && l(dt, { variant: a, onClick: (y) => k(y) }), l("input", { id: t, className: "io-input", ref: v, type: e, name: o, tabIndex: 0, placeholder: f ?? (() => {
|
|
2254
2254
|
switch (e) {
|
|
2255
2255
|
case "email":
|
|
2256
2256
|
return "Enter your email here...";
|
|
@@ -2265,7 +2265,7 @@ const fo = Ke(({ id: t = "input", className: n, type: e = "text", name: o = "inp
|
|
|
2265
2265
|
default:
|
|
2266
2266
|
return "Enter text here...";
|
|
2267
2267
|
}
|
|
2268
|
-
})(), "aria-label": i, disabled: d, readOnly: p, ...h ? { "aria-invalid": !0, "aria-describedby": `${t}-error` } : {}, ...g }), c && l(
|
|
2268
|
+
})(), "aria-label": i, disabled: d, readOnly: p, ...h ? { "aria-invalid": !0, "aria-describedby": `${t}-error` } : {}, ...g }), c && l(dt, { variant: c, onClick: (y) => w(y) }), h && N("div", { "data-testid": m, id: `${t}-error`, className: "io-input-error", children: [l(dt, { variant: "close" }), h] })] });
|
|
2269
2269
|
});
|
|
2270
2270
|
fo.displayName = "Input";
|
|
2271
2271
|
const Ri = Ke(({ id: t = "textarea", className: n, name: e = "textarea", align: o = "up", label: r, rows: i = 4, placeholder: a = "Enter text here...", disabled: s, readOnly: c, ...u }, f) => {
|
|
@@ -2275,7 +2275,7 @@ const Ri = Ke(({ id: t = "textarea", className: n, name: e = "textarea", align:
|
|
|
2275
2275
|
Ri.displayName = "Textarea";
|
|
2276
2276
|
const Fi = Ke(({ id: t = "checkbox", className: n, name: e = "checkbox", align: o = "left", label: r, checked: i, disabled: a, ...s }, c) => {
|
|
2277
2277
|
const u = ee("io-control-checkbox", i && "io-control-checked", a && "io-control-disabled", o && [`direction-${o}`], n);
|
|
2278
|
-
return N("div", { className: u, children: [l("input", { type: "checkbox", id: t, className: "io-checkbox", ref: c, name: e, tabIndex: a ? -1 : 0, checked: i, disabled: a, "aria-checked": i, ...s }), r && l(Li, { htmlFor: t, text: r })] });
|
|
2278
|
+
return N("div", { className: u, children: [l("input", { type: "checkbox", id: t, className: "io-checkbox", ref: c, name: e, tabIndex: a ? -1 : 0, checked: i, disabled: a, "aria-checked": i, ...s }), r && l(Li, { htmlFor: t, text: r, "data-testid": s["data-testid"] ? `${s["data-testid"]}-label` : void 0 })] });
|
|
2279
2279
|
});
|
|
2280
2280
|
Fi.displayName = "Checkbox";
|
|
2281
2281
|
const cg = Ke(({ id: t = "radio", className: n, name: e = "radio", align: o = "left", label: r, checked: i, disabled: a, ...s }, c) => {
|
|
@@ -3078,7 +3078,7 @@ function zg({ className: t, channel: n, ...e }) {
|
|
|
3078
3078
|
return l("div", { className: o, style: { color: r, backgroundColor: n.color }, "data-testid": `channel-selector-badge-${n.color}`, ...e, children: l("span", { className: "io-channel-selector-badge-label", "data-testid": "channel-selector-label", children: n.label }) });
|
|
3079
3079
|
}
|
|
3080
3080
|
function Ug() {
|
|
3081
|
-
return l(
|
|
3081
|
+
return l(dt, { variant: "check", "data-testid": "channel-selector-channel-selected" });
|
|
3082
3082
|
}
|
|
3083
3083
|
function Vg({ channel: t, handleChannelRestricted: n, lockedChannelRestriction: e }) {
|
|
3084
3084
|
const o = (r, i) => (a) => {
|
|
@@ -3111,8 +3111,8 @@ function Yg({ variant: t, onVariantChange: n, disabled: e = !1 }) {
|
|
|
3111
3111
|
return l(bt, { label: "Directional", align: "right", checked: o, onChange: r, onClick: i, onKeyDown: a, disabled: e, "data-testid": `channel-selector-toggle-${t}` });
|
|
3112
3112
|
}
|
|
3113
3113
|
const Zg = Ke(({ className: t, variant: n = "single", variantToggle: e = !1, channels: o = [], lockedChannelRestrictions: r = [], onVariantChange: i, onChannelSelect: a, onChannelRestrict: s, ...c }, u) => {
|
|
3114
|
-
const f = ee("io-channel-selector-panel", (n === "directionalSingle" || n === "directionalMulti") && "io-channel-selector-panel-directional", t), d = De(() => ({ variant: n, selectedChannels: o.filter((
|
|
3115
|
-
return l(Ed.Provider, { value: d, children: l("div", { className: f, ref: u, children: N(yt, { ...c, children: [l(yt.ItemTitle, { "data-testid":
|
|
3114
|
+
const f = ee("io-channel-selector-panel", (n === "directionalSingle" || n === "directionalMulti") && "io-channel-selector-panel-directional", t), d = De(() => ({ variant: n, selectedChannels: o.filter((p) => p.isSelected), lockedChannelRestrictions: r, onVariantChange: i, onChannelSelect: a, onChannelRestrict: s }), [o, n, r, i, a, s]);
|
|
3115
|
+
return l(Ed.Provider, { value: d, children: l("div", { className: f, ref: u, children: N(yt, { ...c, children: [l(yt.ItemTitle, { "data-testid": "channel-selector-title", append: e && l(Yg, { variant: n, onVariantChange: i }), children: { single: "Select Channel", directionalSingle: "Select Directional Channel", multi: "Select Channels", directionalMulti: "Select Directional Channels" }[n] }), o == null ? void 0 : o.map((p) => l(Gg, { channel: p, isSelected: p.isSelected, onChannelSelect: a, onChannelRestrict: s, "data-testid": `channel-selector-channel-${p.name}` }, p.name))] }) }) });
|
|
3116
3116
|
});
|
|
3117
3117
|
Zg.displayName = "ChannelSelector";
|
|
3118
3118
|
const Kg = Ke(({ className: t, title: n, ariaLabel: e, onClick: o, onKeyDown: r, children: i, disabled: a = !1, ...s }, c) => l("div", { ref: c, className: ee(t, { disabled: a }), title: n, role: "button", tabIndex: a ? -1 : 0, "aria-label": e, "aria-disabled": a, onClick: (u) => {
|
|
@@ -3216,7 +3216,7 @@ function Dd({ className: t, ...n }) {
|
|
|
3216
3216
|
}
|
|
3217
3217
|
function _d({ className: t, icon: n = "download", text: e = "No downloads to display.", ...o }) {
|
|
3218
3218
|
const r = ee("io-dm-no-items", t);
|
|
3219
|
-
return N("div", { className: r, ...o, children: [l(
|
|
3219
|
+
return N("div", { className: r, ...o, children: [l(dt, { variant: n }), l("p", { children: e })] });
|
|
3220
3220
|
}
|
|
3221
3221
|
function Md({ className: t, title: n, children: e, ...o }) {
|
|
3222
3222
|
const r = ee("io-dm-item-group", t);
|
|
@@ -3261,7 +3261,7 @@ function Fd({ className: t, state: n, url: e, bytesReceived: o = 0, bytesTotal:
|
|
|
3261
3261
|
const Jg = { success: "check-solid", warning: "exclamation-mark", critical: "exclamation-mark" };
|
|
3262
3262
|
function fa({ className: t, variant: n, text: e }) {
|
|
3263
3263
|
const o = ee("io-dm-item-status", `io-dm-item-status-${n}`, t);
|
|
3264
|
-
return N("div", { className: o, children: [n && l(
|
|
3264
|
+
return N("div", { className: o, children: [n && l(dt, { variant: Jg[n], className: "icon-severity", size: "10" }), e && l("p", { className: "io-text-smaller", children: e })] });
|
|
3265
3265
|
}
|
|
3266
3266
|
function Bd({ className: t, itemID: n, state: e, pauseResume: o, showInFolder: r, cancel: i, ...a }) {
|
|
3267
3267
|
const s = ee("io-dm-item-footer", t), { pauseResumeItem: c, showItemInFolder: u, cancelItem: f } = In(), d = ne((m) => {
|
|
@@ -3556,7 +3556,7 @@ function Vd({ className: t, title: n = "General", ...e }) {
|
|
|
3556
3556
|
const o = ee("io-notifications-settings-panel-general", t), { AllowNotifications: r, AllowNotificationToasts: i, ShowNotificationBadge: a, CloseNotificationOnClick: s, PanelAutoHide: c, HideToastsAfter: u } = go(), f = Ge();
|
|
3557
3557
|
return l("div", { className: o, ...e, children: N(nt, { title: n, children: [f && l(r, {}), f && l(i, {}), l(a, {}), f && l(c, {}), f && l(s, {}), f && l(u, {})] }) });
|
|
3558
3558
|
}
|
|
3559
|
-
var
|
|
3559
|
+
var lt = new class {
|
|
3560
3560
|
constructor() {
|
|
3561
3561
|
Ft(this, "subscribed", !1);
|
|
3562
3562
|
Ft(this, "io");
|
|
@@ -3572,7 +3572,7 @@ var ct = new class {
|
|
|
3572
3572
|
return;
|
|
3573
3573
|
this.subscribed = !0, this.io = t, this.logger = this.io.logger.subLogger("notifications");
|
|
3574
3574
|
const n = this.io.appManager.myApplication, e = ((i = (r = n == null ? void 0 : n.userProperties) == null ? void 0 : r.logger) == null ? void 0 : i.publishLevel) ?? "error", o = ((s = (a = n == null ? void 0 : n.userProperties) == null ? void 0 : a.logger) == null ? void 0 : s.consoleLevel) ?? "info";
|
|
3575
|
-
this.logger.publishLevel(e), this.logger.consoleLevel(o), this.logger.info("===== IO Notifications v.0.8.0
|
|
3575
|
+
this.logger.publishLevel(e), this.logger.consoleLevel(o), this.logger.info("===== IO Notifications v.0.8.0 ====="), this.getBulkActionsSupport(), this.subscribe();
|
|
3576
3576
|
}
|
|
3577
3577
|
onPanelVisibilityChanged(t) {
|
|
3578
3578
|
return this.registry.add("on-panel-visibility-changed", t);
|
|
@@ -3821,18 +3821,18 @@ const cl = (t) => {
|
|
|
3821
3821
|
}, ll = (t) => Array.from(t.reduce((n, e) => n.set(e.id, e), /* @__PURE__ */ new Map()).values());
|
|
3822
3822
|
function y0() {
|
|
3823
3823
|
const t = Se(He), [n, e] = ue({}), [o, r] = ue({}), [i, a] = ue([]), [s, c] = ue(0), [u, f] = ue(!0), { apps: d, allowedApps: p } = Ls(n), { notificationStacks: h } = Gd(i, { toastStacking: o.toastStacking ?? !1, stackBy: o.stackBy ?? "source" }, { sourceFilter: n.sourceFilter }), { selectedNotifications: m, selectNotification: g, selectAllNotifications: v } = Yd(i);
|
|
3824
|
-
|
|
3824
|
+
lt.init(t), me(() => {
|
|
3825
3825
|
(async () => {
|
|
3826
3826
|
await (async () => {
|
|
3827
3827
|
try {
|
|
3828
|
-
const w = await
|
|
3828
|
+
const w = await lt.getConfiguration();
|
|
3829
3829
|
e(w), r((y) => ({ ...y, ...cl(w) }));
|
|
3830
3830
|
} catch (w) {
|
|
3831
3831
|
console.error("Error fetching configuration:", w);
|
|
3832
3832
|
}
|
|
3833
3833
|
})(), await (async () => {
|
|
3834
3834
|
try {
|
|
3835
|
-
const w = await
|
|
3835
|
+
const w = await lt.getNotificationsList();
|
|
3836
3836
|
a(ll(w));
|
|
3837
3837
|
} catch (w) {
|
|
3838
3838
|
console.error("Error fetching notifications:", w);
|
|
@@ -3842,12 +3842,12 @@ function y0() {
|
|
|
3842
3842
|
console.error("Error in useNotifications fetch:", w);
|
|
3843
3843
|
}), S();
|
|
3844
3844
|
}, []), me(() => {
|
|
3845
|
-
const w =
|
|
3845
|
+
const w = lt.onNotificationsChanged((O) => {
|
|
3846
3846
|
a(ll(O));
|
|
3847
|
-
}), y =
|
|
3847
|
+
}), y = lt.onConfigurationChanged((O) => {
|
|
3848
3848
|
const B = cl(O);
|
|
3849
3849
|
e((F) => ({ ...F, ...O })), r((F) => ({ ...F, ...B }));
|
|
3850
|
-
}), E =
|
|
3850
|
+
}), E = lt.onCounterChanged((O) => {
|
|
3851
3851
|
c(O);
|
|
3852
3852
|
});
|
|
3853
3853
|
return () => {
|
|
@@ -3855,15 +3855,15 @@ function y0() {
|
|
|
3855
3855
|
};
|
|
3856
3856
|
}, []);
|
|
3857
3857
|
const S = () => {
|
|
3858
|
-
f(
|
|
3858
|
+
f(lt.bulkActionsSupported);
|
|
3859
3859
|
}, k = async (w) => {
|
|
3860
|
-
await
|
|
3860
|
+
await lt.setFilter(w);
|
|
3861
3861
|
};
|
|
3862
|
-
return { close: (w) =>
|
|
3863
|
-
await
|
|
3862
|
+
return { close: (w) => lt.close(w), clearAll: () => lt.clearAll(), settings: o, hidePanel: async () => {
|
|
3863
|
+
await lt.hidePanel();
|
|
3864
3864
|
}, showPanel: async () => {
|
|
3865
|
-
await
|
|
3866
|
-
}, saveFilter: k, clearAllOld: () =>
|
|
3865
|
+
await lt.showPanel();
|
|
3866
|
+
}, saveFilter: k, clearAllOld: () => lt.clearAllOld(), saveSetting: async (w) => {
|
|
3867
3867
|
const y = ((E, O) => {
|
|
3868
3868
|
const B = ((K) => ({ enabledNotifications: (L) => ({ enable: L }), enabledToasts: (L) => ({ enableToasts: L }), toastStacking: (L) => {
|
|
3869
3869
|
var T;
|
|
@@ -3874,22 +3874,22 @@ function y0() {
|
|
|
3874
3874
|
}, showNotificationBadge: (L) => ({ showNotificationBadge: L }), toastExpiry: (L) => ({ toastExpiry: L }), placement: (L) => ({ placement: L }), snooze: (L) => ({ snooze: L }), closeNotificationOnClick: (L) => ({ closeNotificationOnClick: L }), autoHidePanel: (L) => ({ autoHidePanel: L }) }))(O), F = Object.keys(E)[0], U = E[F];
|
|
3875
3875
|
return F && U !== void 0 && B[F] ? B[F](U) : {};
|
|
3876
3876
|
})(w, n);
|
|
3877
|
-
y && await
|
|
3877
|
+
y && await lt.configure(y);
|
|
3878
3878
|
}, allApps: d, saveAllFilter: async (w) => {
|
|
3879
3879
|
"subscribe" in w ? await k({ allowed: w.subscribe ? ["*"] : [], blocked: w.subscribe ? [] : ["*"] }) : "mute" in w && await k({ muted: w.mute ? ["*"] : [] });
|
|
3880
3880
|
}, configuration: n, notifications: i, notificationStacks: h, notificationsCount: s, allApplications: n.allApplications ?? 0, allowedApplications: p, isBulkActionsSupported: u, selectedNotifications: m, selectNotification: g, selectAllNotifications: v, clearMany: async (w) => {
|
|
3881
|
-
await
|
|
3881
|
+
await lt.clearMany(w);
|
|
3882
3882
|
}, snooze: async (w, y) => {
|
|
3883
|
-
await
|
|
3883
|
+
await lt.snooze(w, y);
|
|
3884
3884
|
}, snoozeMany: async (w, y) => {
|
|
3885
|
-
await
|
|
3885
|
+
await lt.snoozeMany(w, y);
|
|
3886
3886
|
}, setState: async (w, y) => {
|
|
3887
|
-
await
|
|
3887
|
+
await lt.setState(w, y);
|
|
3888
3888
|
}, setStates: async (w, y) => {
|
|
3889
|
-
await
|
|
3889
|
+
await lt.setStates(w, y);
|
|
3890
3890
|
}, setCount: (w) => {
|
|
3891
3891
|
c(w);
|
|
3892
|
-
}, getNotificationsList: async () => await
|
|
3892
|
+
}, getNotificationsList: async () => await lt.getNotificationsList() };
|
|
3893
3893
|
}
|
|
3894
3894
|
const Zd = Xe({ allApps: [], settings: {}, configuration: {}, notifications: [], notificationsCount: 0, onClose: () => {
|
|
3895
3895
|
}, allApplications: 0, clearAll: () => {
|
|
@@ -4470,7 +4470,7 @@ var op = Object.freeze({ __proto__: null, Notification: $i, NotificationBody: Bf
|
|
|
4470
4470
|
const { searchQuery: n, setSearch: e, isPanelVisible: o, sortNotificationsBy: r, setSortBy: i, viewNotificationsBy: a, setViewBy: s, isBulkActionsVisible: c, showBulkActions: u, hideBulkActions: f } = function() {
|
|
4471
4471
|
const p = Se(He), [h, m] = ue(!1), [g, v] = ue("newest"), [S, k] = ue("all"), [w, y] = ue(""), [E, O] = ue(!1), B = Ge(), { isBulkActionsSupported: F } = _e();
|
|
4472
4472
|
return me(() => {
|
|
4473
|
-
const U =
|
|
4473
|
+
const U = lt.onPanelVisibilityChanged((K) => m(K));
|
|
4474
4474
|
return () => {
|
|
4475
4475
|
U();
|
|
4476
4476
|
};
|
|
@@ -4847,7 +4847,7 @@ var At = function() {
|
|
|
4847
4847
|
return o;
|
|
4848
4848
|
};
|
|
4849
4849
|
function Z0(t, n) {
|
|
4850
|
-
var e = { config: At(At({}, Do),
|
|
4850
|
+
var e = { config: At(At({}, Do), ut.defaultConfig), l10n: Cr };
|
|
4851
4851
|
function o() {
|
|
4852
4852
|
var C;
|
|
4853
4853
|
return ((C = e.calendarContainer) === null || C === void 0 ? void 0 : C.getRootNode()).activeElement || document.activeElement;
|
|
@@ -5195,7 +5195,7 @@ function Z0(t, n) {
|
|
|
5195
5195
|
return e.config.wrap ? t.querySelector("[data-input]") : t;
|
|
5196
5196
|
}
|
|
5197
5197
|
function J() {
|
|
5198
|
-
typeof e.config.locale != "object" &&
|
|
5198
|
+
typeof e.config.locale != "object" && ut.l10ns[e.config.locale] === void 0 && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = At(At({}, ut.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? ut.l10ns[e.config.locale] : void 0), to.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", to.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", to.M = "(" + e.l10n.months.shorthand.join("|") + ")", to.F = "(" + e.l10n.months.longhand.join("|") + ")", to.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")", At(At({}, n), JSON.parse(JSON.stringify(t.dataset || {}))).time_24hr === void 0 && ut.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = ip(e), e.parseDate = ns({ config: e.config, l10n: e.l10n });
|
|
5199
5199
|
}
|
|
5200
5200
|
function H(C) {
|
|
5201
5201
|
if (typeof e.config.position != "function") {
|
|
@@ -5439,11 +5439,11 @@ function Z0(t, n) {
|
|
|
5439
5439
|
} });
|
|
5440
5440
|
var R = x.mode === "time";
|
|
5441
5441
|
if (!x.dateFormat && (x.enableTime || R)) {
|
|
5442
|
-
var oe =
|
|
5442
|
+
var oe = ut.defaultConfig.dateFormat || Do.dateFormat;
|
|
5443
5443
|
I.dateFormat = x.noCalendar || R ? "H:i" + (x.enableSeconds ? ":S" : "") : oe + " H:i" + (x.enableSeconds ? ":S" : "");
|
|
5444
5444
|
}
|
|
5445
5445
|
if (x.altInput && (x.enableTime || R) && !x.altFormat) {
|
|
5446
|
-
var be =
|
|
5446
|
+
var be = ut.defaultConfig.altFormat || Do.altFormat;
|
|
5447
5447
|
I.altFormat = x.noCalendar || R ? "h:i" + (x.enableSeconds ? ":S K" : " K") : be + " h:i" + (x.enableSeconds ? ":S" : "") + " K";
|
|
5448
5448
|
}
|
|
5449
5449
|
Object.defineProperty(e.config, "minDate", { get: function() {
|
|
@@ -5590,18 +5590,18 @@ typeof HTMLElement < "u" && typeof HTMLCollection < "u" && typeof NodeList < "u"
|
|
|
5590
5590
|
}, HTMLElement.prototype.flatpickr = function(t) {
|
|
5591
5591
|
return _o([this], t);
|
|
5592
5592
|
});
|
|
5593
|
-
var
|
|
5593
|
+
var ut = function(t, n) {
|
|
5594
5594
|
return typeof t == "string" ? _o(window.document.querySelectorAll(t), n) : t instanceof Node ? _o([t], n) : _o(t, n);
|
|
5595
5595
|
};
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
},
|
|
5599
|
-
|
|
5600
|
-
},
|
|
5596
|
+
ut.defaultConfig = {}, ut.l10ns = { en: At({}, Cr), default: At({}, Cr) }, ut.localize = function(t) {
|
|
5597
|
+
ut.l10ns.default = At(At({}, ut.l10ns.default), t);
|
|
5598
|
+
}, ut.setDefaults = function(t) {
|
|
5599
|
+
ut.defaultConfig = At(At({}, ut.defaultConfig), t);
|
|
5600
|
+
}, ut.parseDate = ns({}), ut.formatDate = ip({}), ut.compareDates = Gt, typeof jQuery < "u" && jQuery.fn !== void 0 && (jQuery.fn.flatpickr = function(t) {
|
|
5601
5601
|
return _o(this, t);
|
|
5602
5602
|
}), Date.prototype.fp_incr = function(t) {
|
|
5603
5603
|
return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof t == "string" ? parseInt(t, 10) : t));
|
|
5604
|
-
}, typeof window < "u" && (window.flatpickr =
|
|
5604
|
+
}, typeof window < "u" && (window.flatpickr = ut);
|
|
5605
5605
|
const K0 = ["onCreate", "onDestroy"], wa = ["onChange", "onOpen", "onClose", "onMonthChange", "onYearChange", "onReady", "onValueUpdate", "onDayCreate"], q0 = (t) => {
|
|
5606
5606
|
const n = De(() => ({ ...t }), [t]), { defaultValue: e, options: o = {}, value: r, children: i, render: a, onCreate: s, onDestroy: c } = n, u = De(() => ((m, g) => (wa.forEach((v) => {
|
|
5607
5607
|
const S = g[v], k = m[v];
|
|
@@ -5621,7 +5621,7 @@ const K0 = ["onCreate", "onDestroy"], wa = ["onChange", "onOpen", "onClose", "on
|
|
|
5621
5621
|
return u.onClose = u.onClose || (() => {
|
|
5622
5622
|
var g;
|
|
5623
5623
|
(g = f.current) != null && g.blur && f.current.blur();
|
|
5624
|
-
}), d.current = (((m =
|
|
5624
|
+
}), d.current = (((m = ut) == null ? void 0 : m.default) || ut)(f.current, u), s == null || s(d.current), () => {
|
|
5625
5625
|
c == null || c(d.current), d.current && d.current.destroy(), d.current = void 0;
|
|
5626
5626
|
};
|
|
5627
5627
|
var m;
|
|
@@ -5712,7 +5712,7 @@ function Gr(t, n) {
|
|
|
5712
5712
|
}
|
|
5713
5713
|
function cp({ className: t, variant: n, ...e }) {
|
|
5714
5714
|
const o = ee("io-block-list-gap", n, t), { enabled: r, time: i, frequency: a, day: s, setEnabled: c, setTime: u, setFrequency: f, setDay: d } = X0(n);
|
|
5715
|
-
return N(nt, { className: o, ...e, children: [l(bt, { label: `Schedule ${n}`, align: "right", onChange: (p) => c(p.target.checked), checked: r }), N("div", { className: "scheduler-controls", children: [N("div", { className: "io-control-input io-control-leading-icon direction-up", children: [l(
|
|
5715
|
+
return N(nt, { className: o, ...e, children: [l(bt, { label: `Schedule ${n}`, align: "right", onChange: (p) => c(p.target.checked), checked: r }), N("div", { className: "scheduler-controls", children: [N("div", { className: "io-control-input io-control-leading-icon direction-up", children: [l(dt, { variant: "clock" }), l(q0, { className: "io-input", options: { enableTime: !0, noCalendar: !0, dateFormat: "h:i K", defaultDate: i, clickOpens: !0 }, value: i, onClose: async ([p]) => {
|
|
5716
5716
|
const h = p.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: !0 });
|
|
5717
5717
|
await u(h);
|
|
5718
5718
|
} })] }), N(ln, { text: a.charAt(0).toUpperCase() + a.slice(1), icon: "chevron-down", iconRight: !0, children: [l(ln.Item, { onClick: () => f("daily"), children: "Daily" }), l(ln.Item, { onClick: () => f("weekly"), children: "Weekly" })] }), a === "weekly" && l(ln, { text: s, icon: "chevron-down", iconRight: !0, children: ap.map((p) => l(ln.Item, { onClick: () => d(p), children: p }, p)) })] })] });
|
|
@@ -6625,7 +6625,7 @@ var Fp = { exports: {} };
|
|
|
6625
6625
|
})();
|
|
6626
6626
|
})(Fp);
|
|
6627
6627
|
var _v = Fp.exports;
|
|
6628
|
-
const
|
|
6628
|
+
const ct = /* @__PURE__ */ Vi(_v);
|
|
6629
6629
|
function as(t) {
|
|
6630
6630
|
"@babel/helpers - typeof";
|
|
6631
6631
|
return as = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
@@ -6753,7 +6753,7 @@ var Vv = {
|
|
|
6753
6753
|
function Bp(t) {
|
|
6754
6754
|
var n = t.className;
|
|
6755
6755
|
t.cssModule;
|
|
6756
|
-
var e = t.variant, o = t.innerRef, r = zv(t, Hv), i = Gi(
|
|
6756
|
+
var e = t.variant, o = t.innerRef, r = zv(t, Hv), i = Gi(ct(n, "btn-close", e && "btn-close-".concat(e)));
|
|
6757
6757
|
return /* @__PURE__ */ Zt.createElement("button", ss({
|
|
6758
6758
|
ref: o,
|
|
6759
6759
|
type: "button",
|
|
@@ -6832,7 +6832,7 @@ function Si(t) {
|
|
|
6832
6832
|
}, [t.onClick, t.disabled]), e = t.active, o = t["aria-label"], r = t.block, i = t.className, a = t.close, s = t.cssModule, c = t.color, u = c === void 0 ? "secondary" : c, f = t.outline, d = t.size, p = t.tag, h = p === void 0 ? "button" : p, m = t.innerRef, g = Yv(t, Gv);
|
|
6833
6833
|
if (a)
|
|
6834
6834
|
return /* @__PURE__ */ Zt.createElement(Bp, g);
|
|
6835
|
-
var v = "btn".concat(f ? "-outline" : "", "-").concat(u), S = Gi(
|
|
6835
|
+
var v = "btn".concat(f ? "-outline" : "", "-").concat(u), S = Gi(ct(i, "btn", v, d ? "btn-".concat(d) : !1, r ? "d-block w-100" : !1, {
|
|
6836
6836
|
active: e,
|
|
6837
6837
|
disabled: t.disabled
|
|
6838
6838
|
}), s);
|
|
@@ -7966,7 +7966,7 @@ var my = {
|
|
|
7966
7966
|
vertical: Q.bool
|
|
7967
7967
|
};
|
|
7968
7968
|
function Zp(t) {
|
|
7969
|
-
var n = t.className, e = t.cssModule, o = t.size, r = t.vertical, i = t.tag, a = i === void 0 ? "div" : i, s = py(t, uy), c = Gi(
|
|
7969
|
+
var n = t.className, e = t.cssModule, o = t.size, r = t.vertical, i = t.tag, a = i === void 0 ? "div" : i, s = py(t, uy), c = Gi(ct(n, o ? "btn-group-" + o : !1, r ? "btn-group-vertical" : "btn-group"), e);
|
|
7970
7970
|
return /* @__PURE__ */ Zt.createElement(a, ds({}, dy({
|
|
7971
7971
|
role: "group"
|
|
7972
7972
|
}, s), {
|
|
@@ -8568,7 +8568,7 @@ var tc = /* @__PURE__ */ function(t) {
|
|
|
8568
8568
|
onExiting: this.onExiting,
|
|
8569
8569
|
onExited: this.onExited
|
|
8570
8570
|
}), function(S) {
|
|
8571
|
-
var k = Dy(S), w = Gi(
|
|
8571
|
+
var k = Dy(S), w = Gi(ct(u, s && "collapse-horizontal", k, f && "navbar-collapse"), d), y = m === null ? null : Ao({}, s ? "width" : "height", m);
|
|
8572
8572
|
return /* @__PURE__ */ Zt.createElement(a, Ei({}, v, {
|
|
8573
8573
|
style: Wo(Wo({}, v.style), y),
|
|
8574
8574
|
className: w,
|
|
@@ -8585,9 +8585,9 @@ const Jp = tc, _y = (t) => {
|
|
|
8585
8585
|
return /* @__PURE__ */ l(
|
|
8586
8586
|
yt.ItemHeader,
|
|
8587
8587
|
{
|
|
8588
|
-
className:
|
|
8589
|
-
prepend: r && /* @__PURE__ */ l(
|
|
8590
|
-
append: o && /* @__PURE__ */ l(
|
|
8588
|
+
className: ct("io-base-section-header", n),
|
|
8589
|
+
prepend: r && /* @__PURE__ */ l(dt, { size: "16", variant: e ? "folder-open" : "folder", "data-testid": "base-section-header-folder-icon" }),
|
|
8590
|
+
append: o && /* @__PURE__ */ l(dt, { className: ct("collapse-icon", !e && "collapsed"), size: "10", variant: "expand", "data-testid": "base-section-header-collapse-icon" }),
|
|
8591
8591
|
tooltip: i,
|
|
8592
8592
|
...a,
|
|
8593
8593
|
children: i
|
|
@@ -11218,7 +11218,7 @@ const xw = Ke((t, n) => {
|
|
|
11218
11218
|
yt,
|
|
11219
11219
|
{
|
|
11220
11220
|
ref: n,
|
|
11221
|
-
className:
|
|
11221
|
+
className: ct(r, "context-menu"),
|
|
11222
11222
|
onClick: (h) => h.stopPropagation(),
|
|
11223
11223
|
onKeyDown: (h) => mh({
|
|
11224
11224
|
event: h,
|
|
@@ -11233,7 +11233,7 @@ const xw = Ke((t, n) => {
|
|
|
11233
11233
|
children: [
|
|
11234
11234
|
e && /* @__PURE__ */ l(yt.ItemSection, { children: e }),
|
|
11235
11235
|
o.map((h, m) => {
|
|
11236
|
-
const g = h.displayName || h.name, v = h.iconSrc ? /* @__PURE__ */ l(Qu, { size: "16", src: h.iconSrc, alt: `${g} icon` }) : h.icon && /* @__PURE__ */ l(
|
|
11236
|
+
const g = h.displayName || h.name, v = h.iconSrc ? /* @__PURE__ */ l(Qu, { size: "16", src: h.iconSrc, alt: `${g} icon` }) : h.icon && /* @__PURE__ */ l(dt, { size: "16", variant: h.icon });
|
|
11237
11237
|
return /* @__PURE__ */ N(Xh, { children: [
|
|
11238
11238
|
/* @__PURE__ */ l(
|
|
11239
11239
|
yt.Item,
|
|
@@ -11361,7 +11361,7 @@ const Ow = (t) => {
|
|
|
11361
11361
|
return;
|
|
11362
11362
|
}
|
|
11363
11363
|
r(B);
|
|
11364
|
-
}, E = h ? /* @__PURE__ */ l(Qu, { size: "16", src: h, alt: `${g} icon`, "data-testid": "base-section-item-icon" }) : /* @__PURE__ */ l(
|
|
11364
|
+
}, E = h ? /* @__PURE__ */ l(Qu, { size: "16", src: h, alt: `${g} icon`, "data-testid": "base-section-item-icon" }) : /* @__PURE__ */ l(dt, { size: "16", variant: p, "data-testid": "base-section-item-icon" }), O = /* @__PURE__ */ N(qt, { children: [
|
|
11365
11365
|
m !== 0 && /* @__PURE__ */ l("span", { className: "open-instances io-text-smaller", "data-testid": "base-section-item-open-instances", children: m === 1 ? "Opened" : `${m} opened` }),
|
|
11366
11366
|
(n || k.length > 0) && /* @__PURE__ */ N($e, { className: "item-actions", children: [
|
|
11367
11367
|
n && /* @__PURE__ */ l(
|
|
@@ -11402,7 +11402,7 @@ const Ow = (t) => {
|
|
|
11402
11402
|
{
|
|
11403
11403
|
ref: a,
|
|
11404
11404
|
tabIndex: i ? 0 : -1,
|
|
11405
|
-
className:
|
|
11405
|
+
className: ct("io-base-section-item", S),
|
|
11406
11406
|
onKeyDown: y,
|
|
11407
11407
|
onClick: o,
|
|
11408
11408
|
prepend: E,
|
|
@@ -11549,7 +11549,7 @@ const _w = (t, n) => {
|
|
|
11549
11549
|
return /* @__PURE__ */ l(
|
|
11550
11550
|
Je,
|
|
11551
11551
|
{
|
|
11552
|
-
className:
|
|
11552
|
+
className: ct("launchpad-button", { active: n }, e),
|
|
11553
11553
|
"aria-label": "Launchpad",
|
|
11554
11554
|
icon: "logo",
|
|
11555
11555
|
variant: "circle",
|
|
@@ -11666,7 +11666,7 @@ const qw = /* @__PURE__ */ Vi(Kw), Jw = {
|
|
|
11666
11666
|
...s
|
|
11667
11667
|
}) => {
|
|
11668
11668
|
const c = qi && r === "granted", u = De(() => qw(Jw, t), [t]);
|
|
11669
|
-
return /* @__PURE__ */ l(dw, { close: o, isOpen: e, isGlobalLayoutsAvailable: c, children: /* @__PURE__ */ l(Xw, { settings: u, components: n, children: /* @__PURE__ */ l(Qw, { children: /* @__PURE__ */ l("div", { className:
|
|
11669
|
+
return /* @__PURE__ */ l(dw, { close: o, isOpen: e, isGlobalLayoutsAvailable: c, children: /* @__PURE__ */ l(Xw, { settings: u, components: n, children: /* @__PURE__ */ l(Qw, { children: /* @__PURE__ */ l("div", { className: ct("launchpad", a), "data-testid": "launchpad", ...s, children: i }) }) }) });
|
|
11670
11670
|
}, tb = Ke((t, n) => {
|
|
11671
11671
|
const { onSearch: e, searchTerm: o, onClear: r, className: i } = t, a = Se(He);
|
|
11672
11672
|
return me(() => {
|
|
@@ -11675,7 +11675,7 @@ const qw = /* @__PURE__ */ Vi(Kw), Jw = {
|
|
|
11675
11675
|
fo,
|
|
11676
11676
|
{
|
|
11677
11677
|
id: "search-input",
|
|
11678
|
-
className:
|
|
11678
|
+
className: ct("search-bar", i),
|
|
11679
11679
|
ref: n,
|
|
11680
11680
|
placeholder: "Find anything",
|
|
11681
11681
|
value: o,
|
|
@@ -11714,7 +11714,7 @@ const qw = /* @__PURE__ */ Vi(Kw), Jw = {
|
|
|
11714
11714
|
var S;
|
|
11715
11715
|
u(""), (S = f.current) == null || S.focus();
|
|
11716
11716
|
};
|
|
11717
|
-
return p ? /* @__PURE__ */ N("div", { className:
|
|
11717
|
+
return p ? /* @__PURE__ */ N("div", { className: ct("launchpad-header", n || i ? void 0 : "draggable", t), "data-testid": "launchpad-header", children: [
|
|
11718
11718
|
h && /* @__PURE__ */ l(h, {}),
|
|
11719
11719
|
d && /* @__PURE__ */ l(
|
|
11720
11720
|
tb,
|
|
@@ -11908,24 +11908,34 @@ const db = () => {
|
|
|
11908
11908
|
return { error: o, isLayoutsPanelOpen: t, setIsLayoutsPanelOpen: n, isLoading: e };
|
|
11909
11909
|
}, fb = ({ layoutName: t }) => {
|
|
11910
11910
|
const n = Se(He), e = Yo();
|
|
11911
|
-
return /* @__PURE__ */ l(
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11911
|
+
return /* @__PURE__ */ l(
|
|
11912
|
+
Je,
|
|
11913
|
+
{
|
|
11914
|
+
icon: "floppy",
|
|
11915
|
+
size: "24",
|
|
11916
|
+
iconSize: "12",
|
|
11917
|
+
onClick: (r) => {
|
|
11918
|
+
r.stopPropagation(), e(async () => {
|
|
11919
|
+
try {
|
|
11920
|
+
await n.layouts.save({ name: t, type: "Global" }), await ze({
|
|
11921
|
+
io: n,
|
|
11922
|
+
variant: We.SUCCESS,
|
|
11923
|
+
text: `Layout "${t}" was saved successfully.`
|
|
11924
|
+
});
|
|
11925
|
+
} catch (a) {
|
|
11926
|
+
await ze({
|
|
11927
|
+
io: n,
|
|
11928
|
+
variant: We.WARNING,
|
|
11929
|
+
text: `Failed to save Layout "${t}".`,
|
|
11930
|
+
error: a
|
|
11931
|
+
});
|
|
11932
|
+
}
|
|
11925
11933
|
});
|
|
11926
|
-
}
|
|
11927
|
-
|
|
11928
|
-
|
|
11934
|
+
},
|
|
11935
|
+
title: "Save Layout",
|
|
11936
|
+
"data-testid": "save-layout-button"
|
|
11937
|
+
}
|
|
11938
|
+
);
|
|
11929
11939
|
}, pb = ({ layout: t }) => {
|
|
11930
11940
|
const n = rh(), e = Yo(), o = async (r, i) => {
|
|
11931
11941
|
r.stopPropagation(), await e(() => n({
|
|
@@ -11945,31 +11955,43 @@ const db = () => {
|
|
|
11945
11955
|
placement: "top-end",
|
|
11946
11956
|
offset: [4, 0],
|
|
11947
11957
|
shouldCloseOnOutsideScroll: !0,
|
|
11948
|
-
shouldCloseOnWindowBlur: !0
|
|
11958
|
+
shouldCloseOnWindowBlur: !0,
|
|
11959
|
+
"data-testid": "layout-context-menu-button",
|
|
11960
|
+
contextMenuDataTestId: "layout-context-menu"
|
|
11949
11961
|
}
|
|
11950
11962
|
);
|
|
11951
|
-
}, Oh = ({ layouts: t }) => {
|
|
11952
|
-
const { isLaunchpadPinned:
|
|
11953
|
-
|
|
11954
|
-
},
|
|
11955
|
-
return /* @__PURE__ */ l(
|
|
11956
|
-
yt
|
|
11963
|
+
}, Oh = ({ layouts: t, className: n, ...e }) => {
|
|
11964
|
+
const { isLaunchpadPinned: o } = vo(), { close: r } = dn(), i = lc(), a = Yo(), s = () => {
|
|
11965
|
+
o || r == null || r();
|
|
11966
|
+
}, c = (u) => a(() => i(u.name, s));
|
|
11967
|
+
return /* @__PURE__ */ l(
|
|
11968
|
+
yt,
|
|
11957
11969
|
{
|
|
11958
|
-
className: "layouts-list
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11970
|
+
className: ct("layouts-list", n),
|
|
11971
|
+
variant: "single",
|
|
11972
|
+
checkIcon: { variant: "check", tooltip: "Active Layout" },
|
|
11973
|
+
...e,
|
|
11974
|
+
children: t.map((u) => /* @__PURE__ */ l(
|
|
11975
|
+
yt.Item,
|
|
11976
|
+
{
|
|
11977
|
+
className: "layouts-list-item",
|
|
11978
|
+
onClick: () => c(u),
|
|
11979
|
+
append: /* @__PURE__ */ N(qt, { children: [
|
|
11980
|
+
u.isDefault && /* @__PURE__ */ l(Mi, { variant: "default", title: "Default Layout", "data-testid": "default-layout-pill", children: "Default" }),
|
|
11981
|
+
/* @__PURE__ */ N(Zp, { children: [
|
|
11982
|
+
u.isActive && /* @__PURE__ */ l(fb, { layoutName: u.name }),
|
|
11983
|
+
/* @__PURE__ */ l(pb, { layout: u })
|
|
11984
|
+
] })
|
|
11985
|
+
] }),
|
|
11986
|
+
isSelected: u.isActive,
|
|
11987
|
+
tooltip: u.name,
|
|
11988
|
+
"data-testid": `layout-item-${u.name}`,
|
|
11989
|
+
children: u.name
|
|
11990
|
+
},
|
|
11991
|
+
u.name
|
|
11992
|
+
))
|
|
11993
|
+
}
|
|
11994
|
+
);
|
|
11973
11995
|
}, hb = () => {
|
|
11974
11996
|
const { layouts: t } = uh(), { activeLayout: n, defaultLayout: e } = dn(), o = De(
|
|
11975
11997
|
() => t.map((r) => ({
|
|
@@ -11979,7 +12001,7 @@ const db = () => {
|
|
|
11979
12001
|
})),
|
|
11980
12002
|
[t, n, e]
|
|
11981
12003
|
);
|
|
11982
|
-
return /* @__PURE__ */ l(Oh, { layouts: o });
|
|
12004
|
+
return /* @__PURE__ */ l(Oh, { layouts: o, "data-testid": "all-layouts" });
|
|
11983
12005
|
}, mb = () => {
|
|
11984
12006
|
const { defaultLayout: t, activeLayout: n } = dn();
|
|
11985
12007
|
return n ? /* @__PURE__ */ l(
|
|
@@ -11991,9 +12013,10 @@ const db = () => {
|
|
|
11991
12013
|
isDefault: n.name === (t == null ? void 0 : t.name),
|
|
11992
12014
|
isActive: !0
|
|
11993
12015
|
}
|
|
11994
|
-
]
|
|
12016
|
+
],
|
|
12017
|
+
"data-testid": "active-layout"
|
|
11995
12018
|
}
|
|
11996
|
-
) : /* @__PURE__ */ l("p", { className: "io-text-small no-active-layout", children: "Choose which Layout to load" });
|
|
12019
|
+
) : /* @__PURE__ */ l("p", { className: "io-text-small no-active-layout", "data-testid": "choose-layout-message", children: "Choose which Layout to load" });
|
|
11997
12020
|
}, gb = () => {
|
|
11998
12021
|
const t = Se(He), { setActiveLayout: n } = dn(), e = Yo(), o = async () => {
|
|
11999
12022
|
var d;
|
|
@@ -12049,7 +12072,8 @@ const db = () => {
|
|
|
12049
12072
|
{
|
|
12050
12073
|
variant: "primary",
|
|
12051
12074
|
text: "Create Layout",
|
|
12052
|
-
onClick: () => e(o)
|
|
12075
|
+
onClick: () => e(o),
|
|
12076
|
+
"data-testid": "create-layout-button"
|
|
12053
12077
|
}
|
|
12054
12078
|
) });
|
|
12055
12079
|
};
|
|
@@ -12059,7 +12083,7 @@ const vb = () => {
|
|
|
12059
12083
|
!e || n.length > 0 || !o || r(!1);
|
|
12060
12084
|
}, [n, e, o, r]);
|
|
12061
12085
|
const i = ne(() => r((a) => !a), [r]);
|
|
12062
|
-
return /* @__PURE__ */ N("footer", { className: "layouts-panel", ref: t, children: [
|
|
12086
|
+
return /* @__PURE__ */ N("footer", { className: "layouts-panel", ref: t, "data-testid": "layouts-panel", children: [
|
|
12063
12087
|
/* @__PURE__ */ l(Ir, { className: "layouts-panel-separator" }),
|
|
12064
12088
|
/* @__PURE__ */ N(
|
|
12065
12089
|
"div",
|
|
@@ -12068,18 +12092,20 @@ const vb = () => {
|
|
|
12068
12092
|
"aria-label": "Layouts panel",
|
|
12069
12093
|
"aria-expanded": o,
|
|
12070
12094
|
role: "button",
|
|
12095
|
+
"data-testid": "layouts-panel-header",
|
|
12071
12096
|
...Ki(n.length ? i : void 0),
|
|
12072
12097
|
children: [
|
|
12073
12098
|
/* @__PURE__ */ l(vn, { tag: "h2", size: "normal", text: n.length > 0 ? "Layouts" : "Start using Layouts" }),
|
|
12074
12099
|
n.length > 0 && /* @__PURE__ */ l(
|
|
12075
12100
|
Je,
|
|
12076
12101
|
{
|
|
12077
|
-
className:
|
|
12102
|
+
className: ct("layouts-panel-toggle-button", {
|
|
12078
12103
|
"layouts-panel-toggle-button-rotated": o
|
|
12079
12104
|
}),
|
|
12080
12105
|
icon: "expand",
|
|
12081
12106
|
iconSize: "12",
|
|
12082
|
-
size: "24"
|
|
12107
|
+
size: "24",
|
|
12108
|
+
"data-testid": "layouts-panel-toggle-button"
|
|
12083
12109
|
}
|
|
12084
12110
|
)
|
|
12085
12111
|
]
|
|
@@ -12090,7 +12116,7 @@ const vb = () => {
|
|
|
12090
12116
|
] });
|
|
12091
12117
|
}, yb = ({ className: t }) => {
|
|
12092
12118
|
const { isLaunchpadCollapsed: n } = lh(), { isGlobalLayoutsAvailable: e } = dn(), { components: o } = Ch(), { searchTerm: r } = kh(), { sections: i = ab } = o;
|
|
12093
|
-
return /* @__PURE__ */ N("div", { className:
|
|
12119
|
+
return /* @__PURE__ */ N("div", { className: ct("launchpad-body", n ? "collapsed" : void 0, t), children: [
|
|
12094
12120
|
/* @__PURE__ */ l("main", { className: "launchpad-main", children: nh(r) ? /* @__PURE__ */ l(ub, { searchTerm: r }) : /* @__PURE__ */ l(Tw, { children: /* @__PURE__ */ l(yt, { children: i.map(({ Component: a, placementId: s }) => /* @__PURE__ */ l(a, {}, s)) }) }) }),
|
|
12095
12121
|
e && /* @__PURE__ */ l(vb, {})
|
|
12096
12122
|
] });
|
|
@@ -12631,7 +12657,7 @@ const Ah = Ke((t, n) => {
|
|
|
12631
12657
|
return o && !i && console.error('Invalid use of PanelWrapper component. Please provide Panel component when "isOpen" is "true".'), /* @__PURE__ */ l(
|
|
12632
12658
|
"div",
|
|
12633
12659
|
{
|
|
12634
|
-
className:
|
|
12660
|
+
className: ct(e, "panel-wrapper", s, {
|
|
12635
12661
|
open: o,
|
|
12636
12662
|
pinned: a
|
|
12637
12663
|
}),
|
|
@@ -14046,7 +14072,7 @@ var Fh = {
|
|
|
14046
14072
|
}, Wh = function(t) {
|
|
14047
14073
|
return t === void 0 && (t = Bh), Se(t);
|
|
14048
14074
|
};
|
|
14049
|
-
const $h = ({ className: t, children: n, Logo: e }) => /* @__PURE__ */ N("div", { className:
|
|
14075
|
+
const $h = ({ className: t, children: n, Logo: e }) => /* @__PURE__ */ N("div", { className: ct("info-page-container", t), children: [
|
|
14050
14076
|
/* @__PURE__ */ l(e, { className: "info-page-logo" }),
|
|
14051
14077
|
/* @__PURE__ */ l("div", { className: "info-page-wrapper", children: n })
|
|
14052
14078
|
] }), p2 = {
|
|
@@ -14059,22 +14085,22 @@ const yo = ({ Logo: t = Mr, text: n = "Loading..." }) => /* @__PURE__ */ l("div"
|
|
|
14059
14085
|
/* @__PURE__ */ l("h1", { className: "system-loader-text io-title", children: n }),
|
|
14060
14086
|
/* @__PURE__ */ l(zh, {})
|
|
14061
14087
|
] }) });
|
|
14062
|
-
const Uh = ({ children: t, description: n, heading: e, Image: o, title: r, className: i }) => /* @__PURE__ */ N("div", { className:
|
|
14088
|
+
const Uh = ({ children: t, description: n, heading: e, Image: o, title: r, className: i }) => /* @__PURE__ */ N("div", { className: ct("info-card", i), children: [
|
|
14063
14089
|
r && /* @__PURE__ */ l("h1", { className: "info-card-title io-title-large", children: r }),
|
|
14064
14090
|
o && /* @__PURE__ */ l("div", { className: "info-card-image", children: /* @__PURE__ */ l(o, {}) }),
|
|
14065
14091
|
e && /* @__PURE__ */ l("h3", { className: "info-card-heading io-title", children: e }),
|
|
14066
14092
|
/* @__PURE__ */ l("p", { className: "info-card-description io-text-default-lh16", children: n }),
|
|
14067
14093
|
t
|
|
14068
14094
|
] }), g2 = ({ activeStepName: t, showWarnIcon: n, stepsStatuses: e }) => /* @__PURE__ */ l("ul", { className: "setup-flow-list io-text-default-lh16", children: ii.map(({ name: o, label: r }, i) => {
|
|
14069
|
-
const a = o === t, s = e[o].state, c = n && a ? /* @__PURE__ */ l(
|
|
14095
|
+
const a = o === t, s = e[o].state, c = n && a ? /* @__PURE__ */ l(dt, { variant: "exclamation-mark", size: "12" }) : /* @__PURE__ */ N("span", { children: [
|
|
14070
14096
|
i + 1,
|
|
14071
14097
|
"."
|
|
14072
14098
|
] });
|
|
14073
|
-
return /* @__PURE__ */ l("li", { className:
|
|
14099
|
+
return /* @__PURE__ */ l("li", { className: ct(a && "active"), children: /* @__PURE__ */ N("div", { className: "setup-flow-list-item", children: [
|
|
14074
14100
|
/* @__PURE__ */ N("div", { className: "setup-flow-list-item-icon-wrapper", children: [
|
|
14075
14101
|
s === "prompt" && c,
|
|
14076
|
-
s === "granted" && /* @__PURE__ */ l(
|
|
14077
|
-
s === "denied" && /* @__PURE__ */ l(
|
|
14102
|
+
s === "granted" && /* @__PURE__ */ l(dt, { variant: "check-solid", size: "12" }),
|
|
14103
|
+
s === "denied" && /* @__PURE__ */ l(dt, { variant: "close", size: "12" })
|
|
14078
14104
|
] }),
|
|
14079
14105
|
r
|
|
14080
14106
|
] }) }, o);
|
|
@@ -14281,7 +14307,7 @@ const Cc = ({ errorMessage: t }) => {
|
|
|
14281
14307
|
/* @__PURE__ */ l("br", {}),
|
|
14282
14308
|
"digital transformation."
|
|
14283
14309
|
] })
|
|
14284
|
-
] }), Gh = ({ Logo: t, children: n, className: e }) => /* @__PURE__ */ l("div", { className: "login-page-background", children: /* @__PURE__ */ N("div", { className:
|
|
14310
|
+
] }), Gh = ({ Logo: t, children: n, className: e }) => /* @__PURE__ */ l("div", { className: "login-page-background", children: /* @__PURE__ */ N("div", { className: ct(e, "login-form-container flex flex-column ai-center"), children: [
|
|
14285
14311
|
/* @__PURE__ */ l(t, {}),
|
|
14286
14312
|
n
|
|
14287
14313
|
] }) }), x2 = ({
|
|
@@ -14350,7 +14376,7 @@ const Cc = ({ errorMessage: t }) => {
|
|
|
14350
14376
|
),
|
|
14351
14377
|
/* @__PURE__ */ l(et, { type: "submit", size: "large", variant: "primary", children: "Log In" }),
|
|
14352
14378
|
e && /* @__PURE__ */ N("div", { className: "login-error-feedback", children: [
|
|
14353
|
-
/* @__PURE__ */ l(
|
|
14379
|
+
/* @__PURE__ */ l(dt, { className: "error-icon", variant: "close", size: "12" }),
|
|
14354
14380
|
e.message
|
|
14355
14381
|
] })
|
|
14356
14382
|
] });
|
|
@@ -14514,7 +14540,7 @@ const F2 = ({ actions: t, panelWrapperClassName: n }) => {
|
|
|
14514
14540
|
/* @__PURE__ */ l(
|
|
14515
14541
|
Ah,
|
|
14516
14542
|
{
|
|
14517
|
-
className:
|
|
14543
|
+
className: ct("system-menu-panel-wrapper", n),
|
|
14518
14544
|
isOpen: s,
|
|
14519
14545
|
onClose: a,
|
|
14520
14546
|
Panel: e,
|
|
@@ -14529,7 +14555,7 @@ const F2 = ({ actions: t, panelWrapperClassName: n }) => {
|
|
|
14529
14555
|
};
|
|
14530
14556
|
const H2 = (t) => {
|
|
14531
14557
|
const { className: n, active: e, ...o } = t;
|
|
14532
|
-
return /* @__PURE__ */ N("div", { className:
|
|
14558
|
+
return /* @__PURE__ */ N("div", { className: ct(n, "notifications-panel-button"), ...o, children: [
|
|
14533
14559
|
/* @__PURE__ */ l(Je, { icon: "bell", size: "32", iconSize: "16", variant: "circle" }),
|
|
14534
14560
|
/* @__PURE__ */ l(j2, {})
|
|
14535
14561
|
] });
|