solid-ui 5.0.2-2 → 5.0.2-4

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 (236) hide show
  1. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
  2. package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
  3. package/dist/_virtual/~icons/lucide/arrow-left.esm.js +10 -0
  4. package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
  5. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
  6. package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
  7. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +10 -0
  8. package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
  9. package/dist/_virtual/~icons/lucide/file.cjs.js +2 -0
  10. package/dist/_virtual/~icons/lucide/file.cjs.js.map +1 -0
  11. package/dist/_virtual/~icons/lucide/file.esm.js +10 -0
  12. package/dist/_virtual/~icons/lucide/file.esm.js.map +1 -0
  13. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
  14. package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
  15. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +10 -0
  16. package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
  17. package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
  18. package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
  19. package/dist/_virtual/~icons/lucide/pencil.esm.js +10 -0
  20. package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
  21. package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
  22. package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
  23. package/dist/_virtual/~icons/lucide/share-2.esm.js +10 -0
  24. package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
  25. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
  26. package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
  27. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +10 -0
  28. package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
  29. package/dist/chunks/DialogProvider-CdesAsw-.js +208 -0
  30. package/dist/chunks/DialogProvider-CdesAsw-.js.map +1 -0
  31. package/dist/chunks/ResourceActionsMenu-Bllpr4M5.js +378 -0
  32. package/dist/chunks/ResourceActionsMenu-Bllpr4M5.js.map +1 -0
  33. package/dist/chunks/{access-control-modal-Dcg6-f4V.js → access-control-modal-CwmY_Dod.js} +419 -432
  34. package/dist/chunks/access-control-modal-CwmY_Dod.js.map +1 -0
  35. package/dist/chunks/{account-D6JK-n7u.js → account-CoHPKKDu.js} +6 -6
  36. package/dist/chunks/{account-D6JK-n7u.js.map → account-CoHPKKDu.js.map} +1 -1
  37. package/dist/chunks/{auth-B_abPDvH.js → auth-CocCqS1p.js} +23 -22
  38. package/dist/chunks/{auth-B_abPDvH.js.map → auth-CocCqS1p.js.map} +1 -1
  39. package/dist/chunks/{avatar-BR3COVSQ.js → avatar-sNdKdWVO.js} +2 -2
  40. package/dist/chunks/{avatar-BR3COVSQ.js.map → avatar-sNdKdWVO.js.map} +1 -1
  41. package/dist/chunks/context-BDrfQ9bN.js +21 -0
  42. package/dist/chunks/context-BDrfQ9bN.js.map +1 -0
  43. package/dist/chunks/{dialogs-root-BcQo2XMF.js → dialogs-root-BNF3_SA8.js} +2 -2
  44. package/dist/chunks/{dialogs-root-BcQo2XMF.js.map → dialogs-root-BNF3_SA8.js.map} +1 -1
  45. package/dist/chunks/events-CXQHDCs2.js +8 -0
  46. package/dist/chunks/events-CXQHDCs2.js.map +1 -0
  47. package/dist/chunks/file-explorer-header-D0TebSYR.js +962 -0
  48. package/dist/chunks/file-explorer-header-D0TebSYR.js.map +1 -0
  49. package/dist/chunks/file-explorer-provider-DpjC7uds.js +295 -0
  50. package/dist/chunks/file-explorer-provider-DpjC7uds.js.map +1 -0
  51. package/dist/chunks/globe-CsCgZcy5.js +16 -0
  52. package/dist/chunks/globe-CsCgZcy5.js.map +1 -0
  53. package/dist/chunks/{guard-bTeM7wd7.js → guard-BOicu9dt.js} +2 -2
  54. package/dist/chunks/{guard-bTeM7wd7.js.map → guard-BOicu9dt.js.map} +1 -1
  55. package/dist/chunks/index.esm-C9oV3H3X.js +6 -0
  56. package/dist/chunks/index.esm-C9oV3H3X.js.map +1 -0
  57. package/dist/chunks/{jsonld-CnfzCyCn.js → jsonld-D-TE94B0.js} +2 -2
  58. package/dist/chunks/{jsonld-CnfzCyCn.js.map → jsonld-D-TE94B0.js.map} +1 -1
  59. package/dist/chunks/{login-button-Div4ZT4J.js → login-button-clTw_9tX.js} +2 -2
  60. package/dist/chunks/{login-button-Div4ZT4J.js.map → login-button-clTw_9tX.js.map} +1 -1
  61. package/dist/chunks/{logout-button-D3lqlnCX.js → logout-button-CP-Pz70O.js} +2 -2
  62. package/dist/chunks/{logout-button-D3lqlnCX.js.map → logout-button-CP-Pz70O.js.map} +1 -1
  63. package/dist/chunks/provide-z9U64q4m.js +111 -0
  64. package/dist/chunks/provide-z9U64q4m.js.map +1 -0
  65. package/dist/chunks/{provider-Dcd1NPYx.js → provider-Cuv3Kp6G.js} +4 -4
  66. package/dist/chunks/{provider-Dcd1NPYx.js.map → provider-Cuv3Kp6G.js.map} +1 -1
  67. package/dist/chunks/{rdf-form-CmPnHKR-.js → rdf-form-DVmTw3RG.js} +20 -20
  68. package/dist/chunks/{rdf-form-CmPnHKR-.js.map → rdf-form-DVmTw3RG.js.map} +1 -1
  69. package/dist/chunks/{rdf-input-3AgoeCkJ.js → rdf-input-CRYLK-27.js} +42 -42
  70. package/dist/chunks/{rdf-input-3AgoeCkJ.js.map → rdf-input-CRYLK-27.js.map} +1 -1
  71. package/dist/chunks/{signup-button-2fAoS0Nv.js → signup-button-CexdMWj6.js} +2 -2
  72. package/dist/chunks/{signup-button-2fAoS0Nv.js.map → signup-button-CexdMWj6.js.map} +1 -1
  73. package/dist/chunks/{index.esm-CECfD0e9.js → solidLogicSingleton.esm-BXyHD7mn.js} +1210 -1161
  74. package/dist/chunks/solidLogicSingleton.esm-BXyHD7mn.js.map +1 -0
  75. package/dist/chunks/{src-Dx7k_VIe.js → src-DQgHAH3d.js} +4579 -4542
  76. package/dist/chunks/src-DQgHAH3d.js.map +1 -0
  77. package/dist/chunks/{style-w0Fl0xnd.js → style-CXaw5EYi.js} +9 -8
  78. package/dist/chunks/{style-w0Fl0xnd.js.map → style-CXaw5EYi.js.map} +1 -1
  79. package/dist/chunks/{widgets-BWpm5CPx.js → widgets-BBEQu0CS.js} +722 -721
  80. package/dist/chunks/{widgets-BWpm5CPx.js.map → widgets-BBEQu0CS.js.map} +1 -1
  81. package/dist/components/access-control-modal/AccessControlModal.cjs.js +1 -1
  82. package/dist/components/access-control-modal/AccessControlModal.cjs.js.map +1 -1
  83. package/dist/components/access-control-modal/AccessControlModal.esm.js +1 -1
  84. package/dist/components/access-control-modal/AccessControlModal.esm.js.map +1 -1
  85. package/dist/components/access-control-modal.js +1 -1
  86. package/dist/components/account.js +1 -1
  87. package/dist/components/all.cjs.js +1 -1
  88. package/dist/components/all.esm.js +3 -0
  89. package/dist/components/avatar.js +1 -1
  90. package/dist/components/dialog-provider.js +1 -1
  91. package/dist/components/dialogs-root.js +1 -1
  92. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +15 -0
  93. package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
  94. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +20 -0
  95. package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
  96. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +310 -0
  97. package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
  98. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
  99. package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
  100. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +6 -0
  101. package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
  102. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +35 -0
  103. package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
  104. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +23 -0
  105. package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
  106. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +318 -0
  107. package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
  108. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
  109. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
  110. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +6 -0
  111. package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
  112. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +35 -0
  113. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
  114. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +22 -0
  115. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
  116. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +356 -0
  117. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
  118. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
  119. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
  120. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +6 -0
  121. package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
  122. package/dist/components/file-explorer-header/index.cjs.js +2 -0
  123. package/dist/components/file-explorer-header/index.cjs.js.map +1 -0
  124. package/dist/components/file-explorer-header/index.d.ts +4 -0
  125. package/dist/components/file-explorer-header/index.d.ts.map +1 -0
  126. package/dist/components/file-explorer-header/index.esm.js +6 -0
  127. package/dist/components/file-explorer-header/index.esm.js.map +1 -0
  128. package/dist/components/file-explorer-header/types.d.ts +11 -0
  129. package/dist/components/file-explorer-header/types.d.ts.map +1 -0
  130. package/dist/components/file-explorer-header.js +1 -0
  131. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js +2 -0
  132. package/dist/components/file-explorer-provider/FileExplorerProvider.cjs.js.map +1 -0
  133. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts +17 -0
  134. package/dist/components/file-explorer-provider/FileExplorerProvider.d.ts.map +1 -0
  135. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js +297 -0
  136. package/dist/components/file-explorer-provider/FileExplorerProvider.esm.js.map +1 -0
  137. package/dist/components/file-explorer-provider/index.cjs.js +2 -0
  138. package/dist/components/file-explorer-provider/index.cjs.js.map +1 -0
  139. package/dist/components/file-explorer-provider/index.d.ts +4 -0
  140. package/dist/components/file-explorer-provider/index.d.ts.map +1 -0
  141. package/dist/components/file-explorer-provider/index.esm.js +6 -0
  142. package/dist/components/file-explorer-provider/index.esm.js.map +1 -0
  143. package/dist/components/file-explorer-provider.js +1 -0
  144. package/dist/components/guard.js +1 -1
  145. package/dist/components/index.cjs.js +1 -1
  146. package/dist/components/index.d.ts.map +1 -1
  147. package/dist/components/index.esm.js +1 -0
  148. package/dist/components/login-button.js +1 -1
  149. package/dist/components/login-modal.js +1 -1
  150. package/dist/components/logout-button.js +1 -1
  151. package/dist/components/provider.js +1 -1
  152. package/dist/components/rdf-form.js +1 -1
  153. package/dist/components/rdf-input.js +1 -1
  154. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
  155. package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
  156. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +27 -0
  157. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
  158. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +23 -0
  159. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
  160. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +344 -0
  161. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
  162. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
  163. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
  164. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +6 -0
  165. package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
  166. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts +1 -0
  167. package/dist/components/resource-actions-menu/ResourceActionsMenu.test.d.ts.map +1 -0
  168. package/dist/components/resource-actions-menu/index.cjs.js +1 -0
  169. package/dist/components/resource-actions-menu/index.d.ts +2 -0
  170. package/dist/components/resource-actions-menu/index.d.ts.map +1 -0
  171. package/dist/components/resource-actions-menu/index.esm.js +1 -0
  172. package/dist/components/resource-actions-menu.js +1 -0
  173. package/dist/components/signup-button.js +1 -1
  174. package/dist/components.js +15 -12
  175. package/dist/index.cjs.js +1 -1
  176. package/dist/index.cjs.js.map +1 -1
  177. package/dist/index.d.ts +1 -1
  178. package/dist/index.d.ts.map +1 -1
  179. package/dist/index.esm.js +8 -4
  180. package/dist/index.esm.js.map +1 -1
  181. package/dist/index.js +11 -9
  182. package/dist/lib/context/noopContext.cjs.js +2 -0
  183. package/dist/lib/context/noopContext.cjs.js.map +1 -0
  184. package/dist/lib/context/noopContext.d.ts +2 -0
  185. package/dist/lib/context/noopContext.d.ts.map +1 -0
  186. package/dist/lib/context/noopContext.esm.js +18 -0
  187. package/dist/lib/context/noopContext.esm.js.map +1 -0
  188. package/dist/lib/file-explorer/compose-explorer.cjs.js +2 -0
  189. package/dist/lib/file-explorer/compose-explorer.cjs.js.map +1 -0
  190. package/dist/lib/file-explorer/compose-explorer.d.ts +17 -0
  191. package/dist/lib/file-explorer/compose-explorer.d.ts.map +1 -0
  192. package/dist/lib/file-explorer/compose-explorer.esm.js +18 -0
  193. package/dist/lib/file-explorer/compose-explorer.esm.js.map +1 -0
  194. package/dist/lib/file-explorer/context.cjs.js +1 -1
  195. package/dist/lib/file-explorer/context.cjs.js.map +1 -1
  196. package/dist/lib/file-explorer/context.d.ts +12 -14
  197. package/dist/lib/file-explorer/context.d.ts.map +1 -1
  198. package/dist/lib/file-explorer/context.esm.js +4 -3
  199. package/dist/lib/file-explorer/context.esm.js.map +1 -1
  200. package/dist/lib/file-explorer/events.cjs.js +2 -0
  201. package/dist/lib/file-explorer/events.cjs.js.map +1 -0
  202. package/dist/lib/file-explorer/events.d.ts +16 -0
  203. package/dist/lib/file-explorer/events.d.ts.map +1 -0
  204. package/dist/lib/file-explorer/events.esm.js +8 -0
  205. package/dist/lib/file-explorer/events.esm.js.map +1 -0
  206. package/dist/lib/file-explorer/index.cjs.js +1 -0
  207. package/dist/lib/file-explorer/index.d.ts +5 -0
  208. package/dist/lib/file-explorer/index.d.ts.map +1 -0
  209. package/dist/lib/file-explorer/index.esm.js +5 -0
  210. package/dist/lib/file-explorer/relevant-panes.cjs.js +2 -0
  211. package/dist/lib/file-explorer/relevant-panes.cjs.js.map +1 -0
  212. package/dist/lib/file-explorer/relevant-panes.d.ts +22 -0
  213. package/dist/lib/file-explorer/relevant-panes.d.ts.map +1 -0
  214. package/dist/lib/file-explorer/relevant-panes.esm.js +23 -0
  215. package/dist/lib/file-explorer/relevant-panes.esm.js.map +1 -0
  216. package/dist/loader.js +11 -9
  217. package/dist/solid-ui.js +211 -107
  218. package/dist/solid-ui.min.js +211 -107
  219. package/dist/solid-ui.min.js.map +1 -1
  220. package/dist/theme.css +1 -1
  221. package/dist/utils/podUtils.cjs.js +2 -0
  222. package/dist/utils/podUtils.cjs.js.map +1 -0
  223. package/dist/utils/podUtils.d.ts +6 -0
  224. package/dist/utils/podUtils.d.ts.map +1 -0
  225. package/dist/utils/podUtils.esm.js +22 -0
  226. package/dist/utils/podUtils.esm.js.map +1 -0
  227. package/dist/utils/webIdUtils.cjs.js +1 -0
  228. package/dist/utils/webIdUtils.d.ts +7 -0
  229. package/dist/utils/webIdUtils.d.ts.map +1 -0
  230. package/dist/utils/webIdUtils.esm.js +3 -0
  231. package/package.json +3 -3
  232. package/dist/chunks/DialogProvider-C89v7x0r.js +0 -314
  233. package/dist/chunks/DialogProvider-C89v7x0r.js.map +0 -1
  234. package/dist/chunks/access-control-modal-Dcg6-f4V.js.map +0 -1
  235. package/dist/chunks/index.esm-CECfD0e9.js.map +0 -1
  236. package/dist/chunks/src-Dx7k_VIe.js.map +0 -1
@@ -1,314 +0,0 @@
1
- import { S as e, g as t, i as n, o as r, v as i } from "./components-C8c2Ucm5.js";
2
- // node_modules/@lit/context/lib/value-notifier.js
3
- var a = class {
4
- get value() {
5
- return this.o;
6
- }
7
- set value(e) {
8
- this.setValue(e);
9
- }
10
- setValue(e, t = !1) {
11
- let n = t || !Object.is(e, this.o);
12
- this.o = e, n && this.updateObservers();
13
- }
14
- constructor(e) {
15
- this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
16
- for (let [e, { disposer: t }] of this.subscriptions) e(this.o, t);
17
- }, e !== void 0 && (this.value = e);
18
- }
19
- addCallback(e, t, n) {
20
- if (!n) return void e(this.value);
21
- this.subscriptions.has(e) || this.subscriptions.set(e, {
22
- disposer: () => {
23
- this.subscriptions.delete(e);
24
- },
25
- consumerHost: t
26
- });
27
- let { disposer: r } = this.subscriptions.get(e);
28
- e(this.value, r);
29
- }
30
- clearCallbacks() {
31
- this.subscriptions.clear();
32
- }
33
- }, o = class extends Event {
34
- constructor(e, t) {
35
- super("context-provider", {
36
- bubbles: !0,
37
- composed: !0
38
- }), this.context = e, this.contextTarget = t;
39
- }
40
- }, s = class extends a {
41
- constructor(t, n, r) {
42
- super(n.context === void 0 ? r : n.initialValue), this.onContextRequest = (e) => {
43
- if (e.context !== this.context) return;
44
- let t = e.contextTarget ?? e.composedPath()[0];
45
- t !== this.host && (e.stopPropagation(), this.addCallback(e.callback, t, e.subscribe));
46
- }, this.onProviderRequest = (t) => {
47
- if (t.context !== this.context || (t.contextTarget ?? t.composedPath()[0]) === this.host) return;
48
- let n = /* @__PURE__ */ new Set();
49
- for (let [t, { consumerHost: r }] of this.subscriptions) n.has(t) || (n.add(t), r.dispatchEvent(new e(this.context, r, t, !0)));
50
- t.stopPropagation();
51
- }, this.host = t, this.context = n.context === void 0 ? n : n.context, this.attachListeners(), this.host.addController?.(this);
52
- }
53
- attachListeners() {
54
- this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
55
- }
56
- hostConnected() {
57
- this.host.dispatchEvent(new o(this.context, this.host));
58
- }
59
- };
60
- // node_modules/@lit/context/lib/decorators/provide.js
61
- function c({ context: e }) {
62
- return (t, n) => {
63
- let r = /* @__PURE__ */ new WeakMap();
64
- if (typeof n == "object") return {
65
- get() {
66
- return t.get.call(this);
67
- },
68
- set(e) {
69
- return r.get(this).setValue(e), t.set.call(this, e);
70
- },
71
- init(t) {
72
- return r.set(this, new s(this, {
73
- context: e,
74
- initialValue: t
75
- })), t;
76
- }
77
- };
78
- {
79
- t.constructor.addInitializer(((t) => {
80
- r.set(t, new s(t, { context: e }));
81
- }));
82
- let i = Object.getOwnPropertyDescriptor(t, n), a;
83
- if (i === void 0) {
84
- let e = /* @__PURE__ */ new WeakMap();
85
- a = {
86
- get() {
87
- return e.get(this);
88
- },
89
- set(t) {
90
- r.get(this).setValue(t), e.set(this, t);
91
- },
92
- configurable: !0,
93
- enumerable: !0
94
- };
95
- } else {
96
- let e = i.set;
97
- a = {
98
- ...i,
99
- set(t) {
100
- r.get(this).setValue(t), e?.call(this, t);
101
- }
102
- };
103
- }
104
- Object.defineProperty(t, n, a);
105
- return;
106
- }
107
- };
108
- }
109
- // src/components/dialog-provider/DialogProvider.ts
110
- var l, u, d, f, p, m, h, g, _;
111
- function v(e, t, n) {
112
- y(e, t), t.set(e, n);
113
- }
114
- function y(e, t) {
115
- if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
116
- }
117
- function b(e, t, n) {
118
- return e.set(S(e, t), n), n;
119
- }
120
- function x(e, t) {
121
- return e.get(S(e, t));
122
- }
123
- function S(e, t, n) {
124
- if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
125
- throw TypeError("Private element is not present on this object");
126
- }
127
- function C(e, t, n, r, i, a) {
128
- function o(e, t, n) {
129
- return function(r, i) {
130
- return n && n(r), e[t].call(r, i);
131
- };
132
- }
133
- function s(e, t) {
134
- for (var n = 0; n < e.length; n++) e[n].call(t);
135
- return t;
136
- }
137
- function c(e, t, n, r) {
138
- if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
139
- return e;
140
- }
141
- function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
142
- function h(e) {
143
- if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
144
- }
145
- var g, _ = t[0], v = t[3], y = !l;
146
- if (!y) {
147
- n || Array.isArray(_) || (_ = [_]);
148
- var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
149
- d ? (f || p ? b = {
150
- get: E(function() {
151
- return v(this);
152
- }, r, "get"),
153
- set: function(e) {
154
- t[4](this, e);
155
- }
156
- } : b[S] = v, f || E(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
157
- }
158
- for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
159
- var T = _[w], D = n ? _[w - 1] : void 0, O = {}, k = {
160
- kind: [
161
- "field",
162
- "accessor",
163
- "method",
164
- "getter",
165
- "setter",
166
- "class"
167
- ][i],
168
- name: r,
169
- metadata: a,
170
- addInitializer: function(e, t) {
171
- if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
172
- c(t, "An initializer", "be", !0), s.push(t);
173
- }.bind(null, O)
174
- };
175
- try {
176
- if (y) (g = c(T.call(D, C, k), "class decorators", "return")) && (C = g);
177
- else {
178
- var A, j;
179
- k.static = u, k.private = d, d ? i === 2 ? A = function(e) {
180
- return h(e), b.value;
181
- } : (i < 4 && (A = o(b, "get", h)), i !== 3 && (j = o(b, "set", h))) : (A = function(e) {
182
- return e[r];
183
- }, (i < 2 || i === 4) && (j = function(e, t) {
184
- e[r] = t;
185
- }));
186
- var M = k.access = { has: d ? m.bind() : function(e) {
187
- return r in e;
188
- } };
189
- if (A && (M.get = A), j && (M.set = j), C = T.call(D, p ? {
190
- get: b.get,
191
- set: b.set
192
- } : b[S], k), p) {
193
- if (typeof C == "object" && C) (g = c(C.get, "accessor.get")) && (b.get = g), (g = c(C.set, "accessor.set")) && (b.set = g), (g = c(C.init, "accessor.init")) && x.push(g);
194
- else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
195
- } else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
196
- }
197
- } finally {
198
- O.v = !0;
199
- }
200
- }
201
- return (f || p) && l.push(function(e, t) {
202
- for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
203
- return t;
204
- }), f || y || (d ? p ? l.push(o(b, "get"), o(b, "set")) : l.push(i === 2 ? b[S] : o.call.bind(b[S])) : Object.defineProperty(e, r, b)), C;
205
- }
206
- function u(e, t) {
207
- return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
208
- configurable: !0,
209
- enumerable: !0,
210
- value: t
211
- });
212
- }
213
- if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
214
- var f = Object.create(d ?? null), p = function(e, t, n, r) {
215
- var i, a, o = [], c = function(t) {
216
- return D(t) === e;
217
- }, u = /* @__PURE__ */ new Map();
218
- function d(e) {
219
- e && o.push(s.bind(null, e));
220
- }
221
- for (var f = 0; f < t.length; f++) {
222
- var p = t[f];
223
- if (Array.isArray(p)) {
224
- var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
225
- if (!y && !g) {
226
- var x = u.get(b);
227
- if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
228
- u.set(b, !(m > 2) || m);
229
- }
230
- l(v ? e : e.prototype, p, _, g ? "#" + h : w(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
231
- }
232
- }
233
- return d(i), d(a), o;
234
- }(e, t, i, f);
235
- return n.length || u(e, f), {
236
- e: p,
237
- get c() {
238
- var t = [];
239
- return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
240
- }
241
- };
242
- }
243
- function w(e) {
244
- var t = T(e, "string");
245
- return typeof t == "symbol" ? t : t + "";
246
- }
247
- function T(e, t) {
248
- if (typeof e != "object" || !e) return e;
249
- var n;
250
- if (typeof Symbol < "u" && (n = e[Symbol.toPrimitive]) !== void 0) {
251
- var r = n.call(e, t || "default");
252
- if (typeof r != "object") return r;
253
- throw TypeError("@@toPrimitive must return a primitive value.");
254
- }
255
- return (t === "string" ? String : Number)(e);
256
- }
257
- function E(e, t, n) {
258
- typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
259
- try {
260
- Object.defineProperty(e, "name", {
261
- configurable: !0,
262
- value: n ? n + " " + t : t
263
- });
264
- } catch {}
265
- return e;
266
- }
267
- function D(e) {
268
- if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
269
- return e;
270
- }
271
- f = [t("solid-ui-dialog-provider")];
272
- var O, k = /*#__PURE__*/ new WeakMap(), A = /*#__PURE__*/ new WeakMap();
273
- _ = (p = n({
274
- type: String,
275
- reflect: !0
276
- }), h = c({ context: i }), "dialogId"), l = class extends r {
277
- constructor(...e) {
278
- super(...e), v(this, k, (u(this), m(this))), v(this, A, g(this, { id: "" }));
279
- }
280
- get [_]() {
281
- return x(k, this);
282
- }
283
- set dialogId(e) {
284
- b(k, this, e);
285
- }
286
- get dialog() {
287
- return x(A, this);
288
- }
289
- set dialog(e) {
290
- b(A, this, e);
291
- }
292
- willUpdate(e) {
293
- super.willUpdate(e), e.has("dialogId") && this.dialogId && (this.dialog = { id: this.dialogId });
294
- }
295
- firstUpdated() {
296
- let e = this.shadowRoot?.querySelector("slot");
297
- this.dispatchEvent(new CustomEvent("mounted", {
298
- bubbles: !0,
299
- composed: !0,
300
- detail: e?.assignedElements()[0]
301
- }));
302
- }
303
- }, {e: [m, g, u], c: [O, d]} = C(l, [[
304
- p,
305
- 1,
306
- "dialogId"
307
- ], [
308
- h,
309
- 1,
310
- "dialog"
311
- ]], f, 0, void 0, r), d();
312
- export { c as n, O as t };
313
-
314
- //# sourceMappingURL=DialogProvider-C89v7x0r.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DialogProvider-C89v7x0r.js","names":["e","t","i","t","customElement","WebComponent","provide","property","dialogContext","_classDecs","_DialogProvider","_A","WeakMap","_B","_ref","_dialogIdDecs","type","String","reflect","_dialogDecs","context","DialogProvider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_dialogId","_init_dialog","id","_classPrivateFieldGet","dialogId","v","_classPrivateFieldSet","dialog","willUpdate","changedProperties","has","firstUpdated","slot","shadowRoot","querySelector","dispatchEvent","CustomEvent","bubbles","composed","detail","assignedElements","_DialogProvider2","e","c","_initClass","_applyDecs","default","property","provide","s$1","customElement","WebComponent","dialogContext","s","i","h","e$1","t","e","i$1","n","o","_DialogProvider2","_initProto","_initClass","_classDecs","_dialogIdDecs","_init_dialogId","_dialogDecs","_init_dialog","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","_assertClassBrand","r","_classPrivateFieldGet","_applyDecs","c","applyDec","m","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","E","I","O","k","F","l","f","N","_checkInRHS","_toPropertyKey","_toPrimitive","_DialogProvider","_A","_B","args","changedProperties","slot"],"sources":["../../node_modules/@lit/context/lib/value-notifier.js","../../node_modules/@lit/context/lib/controllers/context-provider.js","../../node_modules/@lit/context/lib/decorators/provide.js","../../src/components/dialog-provider/DialogProvider.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\nclass s{get value(){return this.o}set value(s){this.setValue(s)}setValue(s,t=!1){const i=t||!Object.is(s,this.o);this.o=s,i&&this.updateObservers()}constructor(s){this.subscriptions=new Map,this.updateObservers=()=>{for(const[s,{disposer:t}]of this.subscriptions)s(this.o,t)},void 0!==s&&(this.value=s)}addCallback(s,t,i){if(!i)return void s(this.value);this.subscriptions.has(s)||this.subscriptions.set(s,{disposer:()=>{this.subscriptions.delete(s)},consumerHost:t});const{disposer:h}=this.subscriptions.get(s);s(this.value,h)}clearCallbacks(){this.subscriptions.clear()}}export{s as ValueNotifier};\n//# sourceMappingURL=value-notifier.js.map\n","import{ContextRequestEvent as t}from\"../context-request-event.js\";import{ValueNotifier as s}from\"../value-notifier.js\";\n/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */class e extends Event{constructor(t,s){super(\"context-provider\",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s}}class i extends s{constructor(s,e,i){super(void 0!==e.context?e.initialValue:i),this.onContextRequest=t=>{if(t.context!==this.context)return;const s=t.contextTarget??t.composedPath()[0];s!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,s,t.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context)return;if((s.contextTarget??s.composedPath()[0])===this.host)return;const e=new Set;for(const[s,{consumerHost:i}]of this.subscriptions)e.has(s)||(e.add(s),i.dispatchEvent(new t(this.context,i,s,!0)));s.stopPropagation()},this.host=s,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener(\"context-request\",this.onContextRequest),this.host.addEventListener(\"context-provider\",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new e(this.context,this.host))}}export{i as ContextProvider,e as ContextProviderEvent};\n//# sourceMappingURL=context-provider.js.map\n","import{ContextProvider as t}from\"../controllers/context-provider.js\";\n/**\n * @license\n * Copyright 2017 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */function e({context:e}){return(n,i)=>{const r=new WeakMap;if(\"object\"==typeof i)return{get(){return n.get.call(this)},set(t){return r.get(this).setValue(t),n.set.call(this,t)},init(n){return r.set(this,new t(this,{context:e,initialValue:n})),n}};{n.constructor.addInitializer((n=>{r.set(n,new t(n,{context:e}))}));const o=Object.getOwnPropertyDescriptor(n,i);let s;if(void 0===o){const t=new WeakMap;s={get(){return t.get(this)},set(e){r.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=o.set;s={...o,set(e){r.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(n,i,s)}}}export{e as provide};\n//# sourceMappingURL=provide.js.map\n","import { customElement, WebComponent } from '@/lib/components'\nimport { provide } from '@lit/context'\nimport { property } from 'lit/decorators.js'\nimport { DialogContext, dialogContext } from '@/lib/dialogs/context'\nimport type { PropertyValues } from 'lit'\n\n@customElement('solid-ui-dialog-provider')\nexport default class DialogProvider extends WebComponent {\n @property({ type: String, reflect: true })\n accessor dialogId: string | undefined\n\n @provide({ context: dialogContext })\n private accessor dialog: DialogContext = { id: '' }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n\n if (changedProperties.has('dialogId') && this.dialogId) {\n this.dialog = { id: this.dialogId }\n }\n }\n\n protected firstUpdated () {\n const slot = this.shadowRoot?.querySelector('slot') as HTMLSlotElement | undefined\n\n this.dispatchEvent(new CustomEvent('mounted', { bubbles: true, composed: true, detail: slot?.assignedElements()[0] }))\n }\n}\n"],"ignoreList":[0,1,2],"mappings":";;AAKA,IAAM2D,IAAN,MAAO;CAAC,IAAI,QAAO;EAAC,OAAO,KAAK;CAAC;CAAC,IAAI,MAAM,GAAE;EAAC,KAAK,SAASA,CAAC;CAAC;CAAC,SAAS,GAAE,IAAE,CAAC,GAAE;EAAC,IAAMC,IAAE,KAAG,CAAC,OAAO,GAAGD,GAAE,KAAK,CAAC;EAAE,KAAK,IAAEA,GAAEC,KAAG,KAAK,gBAAgB;CAAC;CAAC,YAAY,GAAE;EAAC,KAAK,gCAAc,IAAI,IAAE,GAAE,KAAK,wBAAoB;GAAC,KAAI,IAAK,CAACD,GAAE,EAAC,UAAS,QAAM,KAAK,eAAc,EAAE,KAAK,GAAE,CAAC;EAAC,GAAWA,MAAT,KAAK,MAAQ,KAAK,QAAMA;CAAE;CAAC,YAAY,GAAE,GAAE,GAAE;EAAC,IAAG,CAACC,GAAE,OAAO,KAAKD,EAAE,KAAK,KAAK;EAAE,KAAK,cAAc,IAAIA,CAAC,KAAG,KAAK,cAAc,IAAIA,GAAE;GAAC,gBAAa;IAAC,KAAK,cAAc,OAAOA,CAAC;GAAC;GAAE,cAAa;EAAC,CAAC;EAAE,IAAK,EAAC,UAASE,MAAG,KAAK,cAAc,IAAIF,CAAC;EAAE,EAAE,KAAK,OAAME,CAAC;CAAC;CAAC,iBAAgB;EAAC,KAAK,cAAc,MAAM;CAAC;AAAC,GCAnjB7D,IAAN,cAAgB,MAAK;CAAC,YAAY,GAAE,GAAE;EAAC,MAAM,oBAAmB;GAAC,SAAQ,CAAC;GAAE,UAAS,CAAC;EAAC,CAAC,GAAE,KAAK,UAAQ+D,GAAE,KAAK,gBAAcJ;CAAC;AAAC,GAAOC,IAAN,cAAgBD,EAAC;CAAC,YAAY,GAAE,GAAE,GAAE;EAAC,MAAeK,EAAE,YAAX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