solid-ui 5.0.1-0 → 5.0.1-1

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 (68) hide show
  1. package/README.md +21 -0
  2. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.cjs.js +2 -0
  3. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.cjs.js.map +1 -0
  4. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.esm.js +11 -0
  5. package/dist/_virtual/~icons/lucide/square-arrow-out-up-right.esm.js.map +1 -0
  6. package/dist/chunks/{access-control-modal-C9ECFvn0.js → access-control-modal-eOv2-U27.js} +3 -3
  7. package/dist/chunks/{access-control-modal-C9ECFvn0.js.map → access-control-modal-eOv2-U27.js.map} +1 -1
  8. package/dist/chunks/{account-BUnArMjm.js → account-DpmYJEd-.js} +6 -6
  9. package/dist/chunks/{account-BUnArMjm.js.map → account-DpmYJEd-.js.map} +1 -1
  10. package/dist/chunks/{auth-BgEyix2g.js → auth-Hp8M6TQf.js} +2 -2
  11. package/dist/chunks/{auth-BgEyix2g.js.map → auth-Hp8M6TQf.js.map} +1 -1
  12. package/dist/chunks/{avatar-DiGyEwvL.js → avatar-D5rcw6gN.js} +2 -2
  13. package/dist/chunks/{avatar-DiGyEwvL.js.map → avatar-D5rcw6gN.js.map} +1 -1
  14. package/dist/chunks/{combobox-a0vVnPo8.js → combobox-Dmv-TZtI.js} +2 -2
  15. package/dist/chunks/combobox-Dmv-TZtI.js.map +1 -0
  16. package/dist/chunks/{guard-c6JOj8UM.js → guard-FbhNrJGh.js} +2 -2
  17. package/dist/chunks/{guard-c6JOj8UM.js.map → guard-FbhNrJGh.js.map} +1 -1
  18. package/dist/chunks/{login-button-gUZbphp9.js → login-button-DCq4Gi3_.js} +2 -2
  19. package/dist/chunks/{login-button-gUZbphp9.js.map → login-button-DCq4Gi3_.js.map} +1 -1
  20. package/dist/chunks/{logout-button-GWQMrdx4.js → logout-button-D3dJrsV4.js} +2 -2
  21. package/dist/chunks/{logout-button-GWQMrdx4.js.map → logout-button-D3dJrsV4.js.map} +1 -1
  22. package/dist/chunks/{provider-DLNWLlfX.js → provider-D9UgRI4G.js} +2 -2
  23. package/dist/chunks/{provider-DLNWLlfX.js.map → provider-D9UgRI4G.js.map} +1 -1
  24. package/dist/chunks/{signup-button-i9d5eTUY.js → signup-button-BQ4AWem2.js} +2 -2
  25. package/dist/chunks/{signup-button-i9d5eTUY.js.map → signup-button-BQ4AWem2.js.map} +1 -1
  26. package/dist/chunks/{src-B9ABTiyW.js → src-DQMZZG1B.js} +2319 -2281
  27. package/dist/chunks/src-DQMZZG1B.js.map +1 -0
  28. package/dist/chunks/{widgets-CQOLuw3A.js → widgets-CVLwnfkU.js} +122 -74
  29. package/dist/chunks/widgets-CVLwnfkU.js.map +1 -0
  30. package/dist/components/access-control-modal.js +1 -1
  31. package/dist/components/account.js +1 -1
  32. package/dist/components/avatar.js +1 -1
  33. package/dist/components/combobox/Combobox.styles.cjs.js +1 -1
  34. package/dist/components/combobox/Combobox.styles.cjs.js.map +1 -1
  35. package/dist/components/combobox/Combobox.styles.esm.js +1 -1
  36. package/dist/components/combobox/Combobox.styles.esm.js.map +1 -1
  37. package/dist/components/combobox.js +1 -1
  38. package/dist/components/guard.js +1 -1
  39. package/dist/components/login-button.js +1 -1
  40. package/dist/components/login-modal.js +1 -1
  41. package/dist/components/logout-button.js +1 -1
  42. package/dist/components/provider.js +1 -1
  43. package/dist/components/signup-button.js +1 -1
  44. package/dist/components.js +10 -10
  45. package/dist/index.js +3 -3
  46. package/dist/lib/iconBase.cjs.js +1 -1
  47. package/dist/lib/iconBase.cjs.js.map +1 -1
  48. package/dist/lib/iconBase.esm.js +3 -2
  49. package/dist/lib/iconBase.esm.js.map +1 -1
  50. package/dist/loader.js +3 -3
  51. package/dist/solid-ui.js +30 -30
  52. package/dist/solid-ui.min.js +30 -30
  53. package/dist/solid-ui.min.js.map +1 -1
  54. package/dist/widgets/buttons/iconLinks.cjs.js +1 -1
  55. package/dist/widgets/buttons/iconLinks.cjs.js.map +1 -1
  56. package/dist/widgets/buttons/iconLinks.d.ts.map +1 -1
  57. package/dist/widgets/buttons/iconLinks.esm.js +16 -10
  58. package/dist/widgets/buttons/iconLinks.esm.js.map +1 -1
  59. package/dist/widgets/buttons.cjs.js +1 -1
  60. package/dist/widgets/buttons.cjs.js.map +1 -1
  61. package/dist/widgets/buttons.d.ts +5 -1
  62. package/dist/widgets/buttons.d.ts.map +1 -1
  63. package/dist/widgets/buttons.esm.js +67 -34
  64. package/dist/widgets/buttons.esm.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunks/combobox-a0vVnPo8.js.map +0 -1
  67. package/dist/chunks/src-B9ABTiyW.js.map +0 -1
  68. package/dist/chunks/widgets-CQOLuw3A.js.map +0 -1
@@ -8043,7 +8043,11 @@ var fe = "https://solidos.github.io/solid-ui/src", R = typeof module < "u" && mo
8043
8043
  originalIconBase: fe + "/originalIcons/"
8044
8044
  };
8045
8045
  O(" icons.iconBase is set to : " + R.iconBase);
8046
- var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.store, he = class {
8046
+ var pe = R.iconBase;
8047
+ R.originalIconBase;
8048
+ //#endregion
8049
+ //#region src/widgets/peoplePicker.js
8050
+ var z = /* @__PURE__ */ d(M()), B = p.store, me = class {
8047
8051
  constructor(e, t, n, r) {
8048
8052
  this.options = r || {}, this.element = e, this.typeIndex = t, this.groupPickedCb = n, this.selectedgroup = this.options.selectedgroup, this.onSelectGroup = this.onSelectGroup.bind(this);
8049
8053
  }
@@ -8052,7 +8056,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8052
8056
  if (e.style.maxWidth = "350px", e.style.minHeight = "200px", e.style.outline = "1px solid black", e.style.display = "flex", this.selectedgroup) {
8053
8057
  e.style.flexDirection = "column";
8054
8058
  let t = document.createElement("div");
8055
- new _e(t, this.selectedgroup).render();
8059
+ new ge(t, this.selectedgroup).render();
8056
8060
  let n = document.createElement("button");
8057
8061
  n.textContent = (0, z.default)("Change group"), n.addEventListener("click", (e) => {
8058
8062
  this.selectedgroup = null, this.render();
@@ -8060,12 +8064,12 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8060
8064
  } else this.findAddressBook(this.typeIndex).then(({ book: t }) => {
8061
8065
  let n = document.createElement("button");
8062
8066
  n.textContent = (0, z.default)("Pick an existing group"), n.style.margin = "auto", n.addEventListener("click", (n) => {
8063
- new ge(e, t, this.onSelectGroup).render();
8067
+ new he(e, t, this.onSelectGroup).render();
8064
8068
  });
8065
8069
  let r = document.createElement("button");
8066
8070
  r.textContent = (0, z.default)("Create a new group"), r.style.margin = "auto", r.addEventListener("click", (e) => {
8067
8071
  this.createNewGroup(t, this.options.defaultNewGroupName).then(({ group: e }) => {
8068
- new ve(this.element, t, e, this.onSelectGroup).render();
8072
+ new _e(this.element, t, e, this.onSelectGroup).render();
8069
8073
  }).catch((e) => {
8070
8074
  this.element.appendChild(L(document, (0, z.default)(`Error creating a new group. (${e})`)));
8071
8075
  });
@@ -8092,13 +8096,13 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8092
8096
  });
8093
8097
  }
8094
8098
  createNewGroup(t, n) {
8095
- let { groupIndex: r, groupContainer: i } = Se(t), a = e(`${i.uri}${te().slice(0, 8)}.ttl#this`), o = n || "Untitled Group", s = [a.doc(), r].map((e) => {
8099
+ let { groupIndex: r, groupContainer: i } = xe(t), a = e(`${i.uri}${te().slice(0, 8)}.ttl#this`), o = n || "Untitled Group", s = [a.doc(), r].map((e) => {
8096
8100
  let n = l(a, f.rdf("type"), f.vcard("Group"), e), i = l(a, f.vcard("fn"), o, a.doc(), e), s = l(t, f.vcard("includesGroup"), a, e), c = e.equals(r) ? [
8097
8101
  n,
8098
8102
  i,
8099
8103
  s
8100
8104
  ] : [n, i];
8101
- return xe(e.uri, { toIns: c }).then(() => {
8105
+ return be(e.uri, { toIns: c }).then(() => {
8102
8106
  c.forEach((e) => {
8103
8107
  B.add(e);
8104
8108
  });
@@ -8111,7 +8115,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8111
8115
  onSelectGroup(e) {
8112
8116
  this.selectedgroup = e, this.groupPickedCb(e), this.render();
8113
8117
  }
8114
- }, ge = class {
8118
+ }, he = class {
8115
8119
  constructor(e, t, n) {
8116
8120
  this.element = e, this.book = t, this.onSelectGroup = n;
8117
8121
  }
@@ -8120,7 +8124,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8120
8124
  let t = document.createElement("div");
8121
8125
  t.style.display = "flex", t.style.flexDirection = "column", e.forEach((e) => {
8122
8126
  let n = document.createElement("button");
8123
- n.addEventListener("click", this.handleClickGroup(e)), new _e(n, e).render(), t.appendChild(n);
8127
+ n.addEventListener("click", this.handleClickGroup(e)), new ge(n, e).render(), t.appendChild(n);
8124
8128
  }), this.element.innerHTML = "", this.element.appendChild(t);
8125
8129
  }).catch((e) => {
8126
8130
  this.element.appendChild(L(document, (0, z.default)(`There was an error loading your groups. (${e})`)));
@@ -8128,7 +8132,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8128
8132
  }
8129
8133
  loadGroups() {
8130
8134
  return new Promise((e, t) => {
8131
- let { groupIndex: n } = Se(this.book);
8135
+ let { groupIndex: n } = xe(this.book);
8132
8136
  B.fetcher.nowOrWhenFetched(n, (n, r) => n ? e(B.each(this.book, f.vcard("includesGroup"))) : t(r));
8133
8137
  });
8134
8138
  }
@@ -8137,15 +8141,15 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8137
8141
  this.onSelectGroup(e);
8138
8142
  };
8139
8143
  }
8140
- }, _e = class {
8144
+ }, ge = class {
8141
8145
  constructor(e, t) {
8142
8146
  this.element = e, this.group = t;
8143
8147
  }
8144
8148
  render() {
8145
8149
  let e = document.createElement("div");
8146
- return e.textContent = (0, z.default)(be(this.group, f.vcard("fn"), `[${this.group.value}]`)), this.element.innerHTML = "", this.element.appendChild(e), this;
8150
+ return e.textContent = (0, z.default)(ye(this.group, f.vcard("fn"), `[${this.group.value}]`)), this.element.innerHTML = "", this.element.appendChild(e), this;
8147
8151
  }
8148
- }, ve = class {
8152
+ }, _e = class {
8149
8153
  constructor(e, t, n, r, i) {
8150
8154
  this.element = e, this.book = t, this.group = n, this.onGroupChanged = (e, t, n) => {
8151
8155
  i && i(e, t, n);
@@ -8162,7 +8166,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8162
8166
  });
8163
8167
  });
8164
8168
  let t = document.createElement("input");
8165
- t.type = "text", t.value = be(this.group, f.vcard("fn"), "Untitled Group"), t.addEventListener("change", (e) => {
8169
+ t.type = "text", t.value = ye(this.group, f.vcard("fn"), "Untitled Group"), t.addEventListener("change", (e) => {
8166
8170
  this.setGroupName(e.target.value).catch((e) => {
8167
8171
  this.element.appendChild(L(document, `Error changing group name. (${e})`));
8168
8172
  });
@@ -8170,7 +8174,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8170
8174
  let n = document.createElement("label");
8171
8175
  if (n.textContent = (0, z.default)("Group Name:"), n.appendChild(t), e.appendChild(n), B.any(this.group, f.vcard("hasMember"))) B.match(this.group, f.vcard("hasMember")).forEach((t) => {
8172
8176
  let n = t.object, r = document.createElement("div");
8173
- new ye(r, n, this.handleRemove(n)).render(), e.appendChild(r);
8177
+ new ve(r, n, this.handleRemove(n)).render(), e.appendChild(r);
8174
8178
  });
8175
8179
  else {
8176
8180
  let t = document.createElement("p");
@@ -8192,7 +8196,7 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8192
8196
  });
8193
8197
  }).then((e) => {
8194
8198
  let t = l(this.group, f.vcard("hasMember"), e);
8195
- return B.holdsStatement(t) ? e : xe(this.group.doc().uri, { toIns: [t] }).then(() => {
8199
+ return B.holdsStatement(t) ? e : be(this.group.doc().uri, { toIns: [t] }).then(() => {
8196
8200
  t.why = this.group.doc(), B.add(t), this.onGroupChanged(null, "added", e), this.render();
8197
8201
  });
8198
8202
  });
@@ -8200,16 +8204,16 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8200
8204
  handleRemove(e) {
8201
8205
  return (t) => {
8202
8206
  let n = l(this.group, f.vcard("hasMember"), e);
8203
- return xe(this.group.doc().uri, { toDel: [n] }).then(() => (B.remove(n), this.onGroupChanged(null, "removed", e), this.render(), !0)).catch((t) => {
8207
+ return be(this.group.doc().uri, { toDel: [n] }).then(() => (B.remove(n), this.onGroupChanged(null, "removed", e), this.render(), !0)).catch((t) => {
8204
8208
  let n = B.any(e, f.foaf("name")), r = n && n.value ? `Could not remove ${n.value}. (${t})` : `Could not remove ${e.value}. (${t})`;
8205
8209
  throw Error(r);
8206
8210
  });
8207
8211
  };
8208
8212
  }
8209
8213
  setGroupName(e) {
8210
- let { groupIndex: n } = Se(this.book), r = [this.group.doc(), n].map((n) => {
8214
+ let { groupIndex: n } = xe(this.book), r = [this.group.doc(), n].map((n) => {
8211
8215
  let r = B.match(this.group, f.vcard("fn"), null, n), i = l(this.group, f.vcard("fn"), t(e));
8212
- return xe(n.value, {
8216
+ return be(n.value, {
8213
8217
  toDel: r,
8214
8218
  toIns: [i]
8215
8219
  }).then((e) => {
@@ -8218,16 +8222,16 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8218
8222
  });
8219
8223
  return Promise.all(r);
8220
8224
  }
8221
- }, ye = class {
8225
+ }, ve = class {
8222
8226
  constructor(e, t, n) {
8223
8227
  this.webIdNode = t, this.element = e, this.handleRemove = n;
8224
8228
  }
8225
8229
  render() {
8226
8230
  let e = document.createElement("div");
8227
8231
  e.style.display = "flex";
8228
- let t = be(this.webIdNode, f.foaf("img"), pe + "noun_15059.svg"), n = document.createElement("img");
8232
+ let t = ye(this.webIdNode, f.foaf("img"), pe + "noun_15059.svg"), n = document.createElement("img");
8229
8233
  n.src = (0, z.default)(t), n.width = "50", n.height = "50", n.style.margin = "5px";
8230
- let r = be(this.webIdNode, f.foaf("name"), `[${this.webIdNode}]`), i = document.createElement("span");
8234
+ let r = ye(this.webIdNode, f.foaf("name"), `[${this.webIdNode}]`), i = document.createElement("span");
8231
8235
  i.innerHTML = (0, z.default)(r), i.style.flexGrow = "1", i.style.margin = "auto 0";
8232
8236
  let a = document.createElement("button");
8233
8237
  return a.textContent = "Remove", a.addEventListener("click", (e) => this.handleRemove().catch((e) => {
@@ -8235,11 +8239,11 @@ var pe = R.iconBase, me = R.originalIconBase, z = /* @__PURE__ */ d(M()), B = p.
8235
8239
  })), a.style.margin = "5px", e.appendChild(n), e.appendChild(i), e.appendChild(a), this.element.innerHTML = "", this.element.appendChild(e), this;
8236
8240
  }
8237
8241
  };
8238
- function be(e, t, n) {
8242
+ function ye(e, t, n) {
8239
8243
  let r = B.any(e, t);
8240
8244
  return r ? r.value : n;
8241
8245
  }
8242
- function xe(e, { toDel: t, toIns: n }) {
8246
+ function be(e, { toDel: t, toIns: n }) {
8243
8247
  return new Promise((e, r) => {
8244
8248
  B.updater.update(t, n, (t, n, i) => {
8245
8249
  if (!n) return r(/* @__PURE__ */ Error(`PATCH failed for resource <${t}>: ${i}`));
@@ -8247,7 +8251,7 @@ function xe(e, { toDel: t, toIns: n }) {
8247
8251
  });
8248
8252
  });
8249
8253
  }
8250
- function Se(e) {
8254
+ function xe(e) {
8251
8255
  return {
8252
8256
  groupIndex: B.any(e, f.vcard("groupIndex")),
8253
8257
  groupContainer: B.sym(e.dir().uri + "Group/")
@@ -8255,22 +8259,33 @@ function Se(e) {
8255
8259
  }
8256
8260
  //#endregion
8257
8261
  //#region src/lib/newperson.js
8258
- var Ce = "data:image/svg+xml;base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DOC4wMjEyMSA4LjcxNzk3IDYuNDEwODYgNy4xMDc1OCA2LjQxMDg2IDUuMTI4MlpNMTUuNjQxNiAxOC40NjE1SDQuMzU5NTdDMy42NTI2NiAxOC40NjE1IDMuMDc3NTQgMTcuODg2NCAzLjA3NzU0IDE3LjE3OTVDMy4wNzc1NCAxMy4zNjIgNi4xODMxNiAxMC4yNTY0IDEwLjAwMDYgMTAuMjU2NEMxMy44MTgxIDEwLjI1NjQgMTYuOTIzNyAxMy4zNjIgMTYuOTIzNyAxNy4xNzk1QzE2LjkyMzcgMTcuODg2NCAxNi4zNDg2IDE4LjQ2MTUgMTUuNjQxNiAxOC40NjE1WiIgZmlsbD0iIzMxNDE1OCIvPgo8L3N2Zz4K", Ce = (e, t, n) => {
8259
8263
  let r = e.createElement("tr");
8260
8264
  return r.appendChild(e.createElement("td")).appendChild(t), r.subject = n, r;
8261
- }, Te = (e, t) => {
8265
+ }, we = (e, t) => {
8262
8266
  e.addEventListener("click", t);
8263
- }, Ee = (e, t, n) => {
8267
+ }, Te = (e, t, n) => {
8264
8268
  let r = t.appendChild(e.createElement("div"));
8265
8269
  r.setAttribute("style", E.imageDivStyle), r.appendChild(n), n.setAttribute("draggable", "false");
8270
+ }, Ee = class extends HTMLElement {
8271
+ constructor() {
8272
+ super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6m10 0l-9 9m3-9h6v6\"/></svg>";
8273
+ }
8266
8274
  };
8275
+ customElements.get("icon-lucide-square-arrow-out-up-right") || customElements.define("icon-lucide-square-arrow-out-up-right", Ee);
8267
8276
  //#endregion
8268
8277
  //#region src/widgets/buttons/iconLinks.ts
8269
8278
  function De(e, t, n) {
8270
8279
  let r = e.createElement("a");
8271
- r.setAttribute("href", t.uri), t.uri.startsWith("http") && r.setAttribute("target", "_blank");
8272
- let i = r.appendChild(e.createElement("img"));
8273
- return i.setAttribute("src", n || me + "go-to-this.png"), i.setAttribute("style", "margin: 0.3em;"), r;
8280
+ if (r.setAttribute("href", t.uri), t.uri.startsWith("http") && r.setAttribute("target", "_blank"), n) {
8281
+ let t = r.appendChild(e.createElement("img"));
8282
+ t.setAttribute("src", n), t.setAttribute("style", "margin: 0.3em;");
8283
+ } else {
8284
+ r.setAttribute("aria-label", "Open resource");
8285
+ let t = r.appendChild(e.createElement("icon-lucide-square-arrow-out-up-right"));
8286
+ t.setAttribute("aria-hidden", "true"), t.setAttribute("style", "display: inline-block; width: 1em; height: 1em; margin: 0.2em; color: var(--color-text-secondary, #4A5565);");
8287
+ }
8288
+ return r;
8274
8289
  }
8275
8290
  var Oe = (e, t, n) => {
8276
8291
  let r = De(e, n);
@@ -8358,9 +8373,9 @@ var Ve = {
8358
8373
  "solid:Pod": "noun_Cabinet_1434380.svg",
8359
8374
  "vcard:Group": "noun_339237.svg",
8360
8375
  "vcard:Organization": "noun_143899.svg",
8361
- "vcard:Individual": Ce,
8362
- "schema:Person": Ce,
8363
- "foaf:Person": Ce,
8376
+ "vcard:Individual": Se,
8377
+ "schema:Person": Se,
8378
+ "foaf:Person": Se,
8364
8379
  "foaf:Agent": "noun_98053.svg",
8365
8380
  "acl:AuthenticatedAgent": "noun_99101.svg",
8366
8381
  "prov:SoftwareAgent": "noun_Robot_849764.svg",
@@ -8430,37 +8445,69 @@ function qe(e, t) {
8430
8445
  }
8431
8446
  return Ke(n, t), n;
8432
8447
  }
8433
- function Je(e, t, n, r) {
8434
- function i() {
8435
- t.parentElement.removeChild(t);
8436
- }
8448
+ function Je(e, t, n, r, i) {
8437
8449
  function a() {
8438
- i(), r();
8450
+ t.remove(), i();
8451
+ }
8452
+ function o() {
8453
+ a();
8454
+ let e = r();
8455
+ if (e && typeof e.then == "function") return e.then(i);
8456
+ i();
8439
8457
  }
8440
- let o = e.createElement("div");
8441
- o.style = E.confirmPopupStyle, o.style.position = "absolute", o.style.top = "-1em", o.style.display = "grid", o.style.gridTemplateColumns = "auto auto";
8442
8458
  let s = e.createElement("div");
8443
- s.style.gridColumn = "1/2", s.style.gridRow = "1";
8459
+ s.style.cssText = E.confirmPopupStyle, s.style.position = "absolute", s.style.top = "-1em", s.style.display = "grid", s.style.gridTemplateColumns = "auto auto";
8444
8460
  let c = e.createElement("div");
8445
- c.style.gridColumn = "1/2", c.style.gridRow = "2";
8446
- let l = W(e, i);
8447
- o.appendChild(l), l.style.gridColumn = "1", l.style.gridRow = "2";
8448
- let u = o.appendChild(e.createElement("button"));
8449
- u.style = E.buttonStyle, u.style.gridRow = "2", u.style.gridColumn = "2", u.textContent = "Cancel";
8450
- let d = U(e, R.iconBase + "noun_925021.svg", "Delete it");
8451
- o.appendChild(d), d.style.gridRow = "1", d.style.gridColumn = "1";
8452
- let f = o.appendChild(e.createElement("button"));
8453
- return f.style = E.buttonStyle, f.style.gridRow = "1", f.style.gridColumn = "2", f.textContent = n, o.appendChild(f), d.addEventListener("click", a), f.addEventListener("click", a), u.addEventListener("click", i), o;
8461
+ c.style.gridColumn = "1/2", c.style.gridRow = "1";
8462
+ let l = e.createElement("div");
8463
+ l.style.gridColumn = "1/2", l.style.gridRow = "2";
8464
+ let u = W(e, a);
8465
+ s.appendChild(u), u.style.gridColumn = "1", u.style.gridRow = "2";
8466
+ let d = s.appendChild(e.createElement("button"));
8467
+ d.style.cssText = E.buttonStyle, d.style.gridRow = "2", d.style.gridColumn = "2", d.textContent = "Cancel";
8468
+ let f = U(e, R.iconBase + "noun_925021.svg", "Delete it");
8469
+ s.appendChild(f), f.style.gridRow = "1", f.style.gridColumn = "1";
8470
+ let p = s.appendChild(e.createElement("button"));
8471
+ return p.style.cssText = E.buttonStyle, p.style.gridRow = "1", p.style.gridColumn = "2", p.textContent = n, s.appendChild(p), f.addEventListener("click", o), p.addEventListener("click", o), d.addEventListener("click", a), s;
8454
8472
  }
8455
- function H(e, t, n, r) {
8456
- function i() {
8457
- let n = e.createElement("div");
8458
- t.insertBefore(n, o), n.style.position = "relative", n.appendChild(Je(e, n, s, r));
8459
- }
8460
- let a = V + "noun_2188_red.svg", o = e.createElement("img");
8461
- o.setAttribute("src", a), o.setAttribute("style", E.smallButtonStyle), o.style.float = "right";
8462
- let s = "Remove this " + n;
8463
- return o.title = s, o.classList.add("hoverControlHide"), o.addEventListener("click", i), t.classList.add("hoverControl"), t.appendChild(o), o.setAttribute("data-testid", "deleteButtonWithCheck"), o;
8473
+ function H(e, t, n, r, i) {
8474
+ function a() {
8475
+ let n = "button:not([disabled]), a[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", a = [];
8476
+ if (i) for (let e = t; e; e = e.parentElement) {
8477
+ let t = Array.from(e.querySelectorAll(n));
8478
+ a.push({
8479
+ element: e,
8480
+ index: t.indexOf(s)
8481
+ });
8482
+ }
8483
+ function o() {
8484
+ if (!i) return;
8485
+ if (s.isConnected) {
8486
+ s.focus();
8487
+ return;
8488
+ }
8489
+ for (let e of a) {
8490
+ if (!e.element.isConnected) continue;
8491
+ let t = e.element.querySelectorAll(n);
8492
+ if (t.length) {
8493
+ t[Math.min(Math.max(e.index, 0), t.length - 1)].focus();
8494
+ return;
8495
+ }
8496
+ }
8497
+ let e = a.find((e) => e.element.isConnected);
8498
+ e && (e.element.tabIndex = -1, e.element.focus());
8499
+ }
8500
+ let l = e.createElement("div");
8501
+ i ? (i.querySelector(":scope > [data-delete-confirmation]")?.remove(), l.setAttribute("data-delete-confirmation", ""), l.setAttribute("role", "dialog"), l.setAttribute("aria-label", c), i.appendChild(l)) : (t.insertBefore(l, s), l.style.position = "relative");
8502
+ let u = Je(e, l, c, r, o);
8503
+ l.appendChild(u), i && (u.style.position = "static", u.style.top = "", Array.from(u.querySelectorAll("button")).find((e) => e.textContent === "Cancel")?.focus());
8504
+ }
8505
+ let o = V + "noun_2188_red.svg", s = e.createElement("img");
8506
+ s.setAttribute("src", o), s.tabIndex = 0, s.setAttribute("role", "button"), s.setAttribute("style", E.smallButtonStyle), s.style.float = "right";
8507
+ let c = "Remove this " + n;
8508
+ return s.title = c, s.setAttribute("aria-label", c), s.classList.add("hoverControlHide"), s.addEventListener("click", a), s.addEventListener("keydown", (e) => {
8509
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s.click());
8510
+ }), t.classList.add("hoverControl"), t.appendChild(s), s.setAttribute("data-testid", "deleteButtonWithCheck"), s;
8464
8511
  }
8465
8512
  function U(e, t, n, r, i = {
8466
8513
  buttonColor: "Primary",
@@ -8525,7 +8572,7 @@ function Qe(e, t, n, r) {
8525
8572
  n.setAttribute("style", "font-size: 90%; opacity: 0.8;"), typeof t == "string" ? n.textContent = t : n.appendChild(t);
8526
8573
  }
8527
8574
  }
8528
- return r.deleteFunction && H(e, s, r.noun || "one", r.deleteFunction), n.uri && (r.link !== !1 && (s.appendChild(De(e, n)).classList.add("HoverControlHide"), s.appendChild(e.createElement("br"))), r.draggable !== !1 && (c.setAttribute("draggable", "false"), ue(i, n))), i.subject = n, i;
8575
+ return r.deleteFunction && H(e, s, r.noun || "one", r.deleteFunction, r.confirmationContainer), n.uri && (r.link !== !1 && (s.appendChild(De(e, n)).classList.add("HoverControlHide"), s.appendChild(e.createElement("br"))), r.draggable !== !1 && (c.setAttribute("draggable", "false"), ue(i, n))), i.subject = n, i;
8529
8576
  }
8530
8577
  function $e(e, t, n, r) {
8531
8578
  let i = t.appendChild(e.createElement("div"));
@@ -8533,11 +8580,11 @@ function $e(e, t, n, r) {
8533
8580
  }
8534
8581
  function et(e, t, n, r) {
8535
8582
  let i = t.appendChild(e.createElement("div"));
8536
- i.setAttribute("style", E.linkDivStyle), r.deleteFunction && H(e, i, r.noun || "one", r.deleteFunction), n.uri && (r.link !== !1 && Oe(e, i, n), ue(t, n));
8583
+ i.setAttribute("style", E.linkDivStyle), r.deleteFunction && H(e, i, r.noun || "one", r.deleteFunction, r.confirmationContainer), n.uri && (r.link !== !1 && Oe(e, i, n), ue(t, n));
8537
8584
  }
8538
8585
  function tt(e, t, n) {
8539
8586
  let r = e.createElement("div");
8540
- return r.setAttribute("style", E.renderAsDivStyle), n ||= {}, Ee(e, r, n.image || qe(e, t)), $e(e, r, n.title, t), et(e, r, t, n), n.clickable && n.onClickFunction && Te(r, n.onClickFunction), n.wrapInATR ? we(e, r, t) : r;
8587
+ return r.setAttribute("style", E.renderAsDivStyle), n ||= {}, Te(e, r, n.image || qe(e, t)), $e(e, r, n.title, t), et(e, r, t, n), n.clickable && n.onClickFunction && we(r, n.onClickFunction), n.wrapInATR ? Ce(e, r, t) : r;
8541
8588
  }
8542
8589
  function nt(e) {
8543
8590
  if (e.refresh) e.refresh();
@@ -8545,21 +8592,22 @@ function nt(e) {
8545
8592
  }
8546
8593
  function rt(t, n, r, i = {}) {
8547
8594
  let a = /* @__PURE__ */ new Set(), o = !!(i.renderSupportingInfo || i.renderNameSuffix), s = i.refreshOnDocumentLoad ?? !0, c = function(e) {
8548
- if (!x.updater) throw Error("kb has no updater");
8549
- x.updater.update(l(n, y, e, h), [], function(e, t, n, r) {
8550
- t ? d() : Me(void 0, "Error deleting one: " + n);
8551
- });
8595
+ let t = x.updater;
8596
+ if (!t) throw Error("kb has no updater");
8597
+ return new Promise((r) => t.update(l(n, y, e, h), [], function(e, t, n, i) {
8598
+ t ? d() : Me(void 0, "Error deleting one: " + n), r();
8599
+ }));
8552
8600
  };
8553
8601
  function u(e) {
8554
8602
  let n = e, r = { noun: b };
8555
- if (r.renderSupportingInfo = i.renderSupportingInfo, r.renderNameSuffix = i.renderNameSuffix, o && s && e?.uri && x.fetcher) {
8603
+ if (r.renderSupportingInfo = i.renderSupportingInfo, r.renderNameSuffix = i.renderNameSuffix, r.confirmationContainer = i.confirmationContainer, o && s && e?.uri && x.fetcher) {
8556
8604
  let t = e.doc(), n = t?.uri ? x.fetcher.requested?.[t.uri] : void 0, r = n !== "done" && n !== "failed";
8557
8605
  t?.uri && r && !a.has(t.uri) && (a.add(t.uri), x.fetcher.nowOrWhenFetched(t, void 0, () => {
8558
8606
  a.delete(t.uri), d();
8559
8607
  }));
8560
8608
  }
8561
8609
  return _ && (r.deleteFunction = function() {
8562
- c(n);
8610
+ return c(n);
8563
8611
  }), Ze(t, y, e, r);
8564
8612
  }
8565
8613
  let d = function() {
@@ -10517,11 +10565,11 @@ function Hn(e, t, n) {
10517
10565
  //#endregion
10518
10566
  //#region src/widgets/index.js
10519
10567
  var Un = /* @__PURE__ */ h({
10520
- Group: () => _e,
10521
- GroupBuilder: () => ve,
10522
- GroupPicker: () => ge,
10523
- PeoplePicker: () => he,
10524
- Person: () => ye,
10568
+ Group: () => ge,
10569
+ GroupBuilder: () => _e,
10570
+ GroupPicker: () => he,
10571
+ PeoplePicker: () => me,
10572
+ Person: () => ve,
10525
10573
  addStyleSheet: () => gt,
10526
10574
  allClassURIs: () => ot,
10527
10575
  appendForm: () => En,
@@ -10601,4 +10649,4 @@ var Un = /* @__PURE__ */ h({
10601
10649
  //#endregion
10602
10650
  export { I as C, j as D, O as E, k as O, ue as S, A as T, nt as _, kt as a, R as b, W as c, Ye as d, H as f, Ze as g, it as h, $ as i, Ne as l, Ve as m, En as n, Xe as o, We as p, zn as r, U as s, Un as t, Me as u, Ke as v, de as w, L as x, Fe as y };
10603
10651
 
10604
- //# sourceMappingURL=widgets-CQOLuw3A.js.map
10652
+ //# sourceMappingURL=widgets-CVLwnfkU.js.map