@interopio/home-ui-react 2.1.0-beta.0 → 2.1.1-beta.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.mjs CHANGED
@@ -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((h) => h.isSelected), lockedChannelRestrictions: r, onVariantChange: i, onChannelSelect: a, onChannelRestrict: s }), [o, n, r, i, a, s]), p = { single: "Select Channel", directionalSingle: "Select Directional Channel", multi: "Select Channels", directionalMulti: "Select Directional Channels" };
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-${p[n]}`, append: e && l(Yg, { variant: n, onVariantChange: i }), children: p[n] }), o == null ? void 0 : o.map((h) => l(Gg, { channel: h, isSelected: h.isSelected, onChannelSelect: a, onChannelRestrict: s, "data-testid": `channel-selector-channel-${h.name}` }, h.name))] }) }) });
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) => {
@@ -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-beta.0 ====="), this.getBulkActionsSupport(), this.subscribe();
3575
+ this.logger.publishLevel(e), this.logger.consoleLevel(o), this.logger.info("===== IO Notifications v.0.8.1-beta.0 ====="), this.getBulkActionsSupport(), this.subscribe();
3576
3576
  }
3577
3577
  onPanelVisibilityChanged(t) {
3578
3578
  return this.registry.add("on-panel-visibility-changed", t);