solid-ui 5.0.2-5 → 5.0.2-6

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 (45) hide show
  1. package/dist/chunks/{ResourceActionsMenu-Bx7YWY3E.js → ResourceActionsMenu-KFMLta44.js} +53 -44
  2. package/dist/chunks/ResourceActionsMenu-KFMLta44.js.map +1 -0
  3. package/dist/chunks/{access-control-modal-B1mFFIyz.js → access-control-modal-BZdBv6VD.js} +2 -2
  4. package/dist/chunks/{access-control-modal-B1mFFIyz.js.map → access-control-modal-BZdBv6VD.js.map} +1 -1
  5. package/dist/chunks/{file-explorer-header-Djp_eFuT.js → file-explorer-header-BJzo6xDU.js} +3 -3
  6. package/dist/chunks/{file-explorer-header-Djp_eFuT.js.map → file-explorer-header-BJzo6xDU.js.map} +1 -1
  7. package/dist/chunks/square-arrow-out-up-right-DaALlpHo.js +9 -0
  8. package/dist/chunks/square-arrow-out-up-right-DaALlpHo.js.map +1 -0
  9. package/dist/chunks/{src-akaVfkuf.js → src-Cv9Lm1V-.js} +2944 -2927
  10. package/dist/chunks/src-Cv9Lm1V-.js.map +1 -0
  11. package/dist/chunks/{widgets-B1hBVhRL.js → widgets-C92ihtlF.js} +483 -487
  12. package/dist/chunks/widgets-C92ihtlF.js.map +1 -0
  13. package/dist/components/access-control-modal.js +1 -1
  14. package/dist/components/file-explorer-header.js +1 -1
  15. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +7 -1
  16. package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
  17. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +1 -0
  18. package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
  19. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +11 -2
  20. package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
  21. package/dist/components/resource-actions-menu.js +1 -1
  22. package/dist/components.js +2 -2
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.cjs.js.map +1 -1
  25. package/dist/index.esm.js +4 -3
  26. package/dist/index.esm.js.map +1 -1
  27. package/dist/index.js +8 -8
  28. package/dist/lib/file-explorer/index.cjs.js +1 -1
  29. package/dist/lib/file-explorer/index.d.ts +1 -0
  30. package/dist/lib/file-explorer/index.d.ts.map +1 -1
  31. package/dist/lib/file-explorer/index.esm.js +2 -1
  32. package/dist/lib/file-explorer/pane-menu-items.cjs.js +2 -0
  33. package/dist/lib/file-explorer/pane-menu-items.cjs.js.map +1 -0
  34. package/dist/lib/file-explorer/pane-menu-items.d.ts +22 -0
  35. package/dist/lib/file-explorer/pane-menu-items.d.ts.map +1 -0
  36. package/dist/lib/file-explorer/pane-menu-items.esm.js +20 -0
  37. package/dist/lib/file-explorer/pane-menu-items.esm.js.map +1 -0
  38. package/dist/loader.js +3 -3
  39. package/dist/solid-ui.js +30 -24
  40. package/dist/solid-ui.min.js +30 -24
  41. package/dist/solid-ui.min.js.map +1 -1
  42. package/package.json +1 -1
  43. package/dist/chunks/ResourceActionsMenu-Bx7YWY3E.js.map +0 -1
  44. package/dist/chunks/src-akaVfkuf.js.map +0 -1
  45. package/dist/chunks/widgets-B1hBVhRL.js.map +0 -1
@@ -1 +1 @@
1
- export { n as AccessControlModal, t as default } from "../chunks/access-control-modal-B1mFFIyz.js";
1
+ export { n as AccessControlModal, t as default } from "../chunks/access-control-modal-BZdBv6VD.js";
@@ -1 +1 @@
1
- export { n as FileExplorerHeader, t as default } from "../chunks/file-explorer-header-Djp_eFuT.js";
1
+ export { n as FileExplorerHeader, t as default } from "../chunks/file-explorer-header-BJzo6xDU.js";
@@ -1,4 +1,4 @@
1
- const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/components/web-component/WebComponent.cjs.js");require("../../lib/components/index.cjs.js"),require("../button/index.cjs.js"),require("../menu/index.cjs.js"),require("../menu-item/index.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js"),require("../../_virtual/~icons/lucide/user-round-cog.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/file.cjs.js");const n=require("./ResourceActionsMenu.styles.cjs.js"),r=require("../../utils/podUtils.cjs.js");let i=require("lit"),a=require("lit/decorators.js");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H;function U(e,t,n){W(e,t),t.set(e,n)}function W(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function G(e,t,n){return e.set(q(e,t),n),n}function K(e,t){return e.get(q(e,t))}function q(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function J(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Q(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Q(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ee(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:X(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function X(e){var t=Z(e,`string`);return typeof t==`symbol`?t:t+``}function Z(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Q(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ee(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function te(e){return e}b=[e.customElement(`solid-ui-resource-actions-menu`)];var $;new(V=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakMap,H=(x=(0,a.property)({attribute:!1}),C=(0,a.property)({type:String}),T=(0,a.property)({attribute:!1}),D=(0,a.property)({attribute:!1}),k=(0,a.property)({type:Boolean}),j=(0,a.property)({type:Boolean}),N=(0,a.property)({type:Boolean}),F=(0,a.property)({type:Boolean}),L=(0,a.property)({type:Boolean,attribute:`show-access-in-menu`}),z=(0,a.property)({attribute:!1}),`store`),s=class extends t.default{constructor(...e){super(...e),U(this,c,(v(this),S(this))),U(this,l,w(this)),U(this,u,E(this,void 0)),U(this,d,O(this,void 0)),U(this,f,A(this,!1)),U(this,p,M(this,!1)),U(this,m,P(this,!1)),U(this,h,I(this,!1)),U(this,g,R(this,!1)),U(this,_,B(this,[]))}get[H](){return K(c,this)}set store(e){G(c,this,e)}get subjectUri(){return K(l,this)}set subjectUri(e){G(l,this,e)}get handleAccessClick(){return K(u,this)}set handleAccessClick(e){G(u,this,e)}get handleEditingClick(){return K(d,this)}set handleEditingClick(e){G(d,this,e)}get paneSupportsEditing(){return K(f,this)}set paneSupportsEditing(e){G(f,this,e)}get canEdit(){return K(p,this)}set canEdit(e){G(p,this,e)}get canManageAccess(){return K(m,this)}set canManageAccess(e){G(m,this,e)}get isMobile(){return K(h,this)}set isMobile(e){G(h,this,e)}get showAccessInMenu(){return K(g,this)}set showAccessInMenu(e){G(g,this,e)}get menuItems(){return K(_,this)}set menuItems(e){G(_,this,e)}render(){let e=!r.isContainerSubject(this.store,this.subjectUri)&&this.isMobile&&this.paneSupportsEditing&&this.canEdit&&!!this.handleEditingClick,t=this.canManageAccess&&!!this.handleAccessClick&&(this.showAccessInMenu||this.isMobile),n=this.menuItems.filter(e=>typeof e.action==`function`);return i.html`
1
+ require("../../lib/components/index.cjs.js");const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/components/web-component/WebComponent.cjs.js");require("../button/index.cjs.js"),require("../menu/index.cjs.js"),require("../menu-item/index.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js"),require("../../_virtual/~icons/lucide/user-round-cog.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/file.cjs.js"),require("../../_virtual/~icons/lucide/square-arrow-out-up-right.cjs.js");const n=require("./ResourceActionsMenu.styles.cjs.js"),r=require("../../utils/podUtils.cjs.js");let i=require("lit"),a=require("lit/decorators.js");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H;function U(e,t,n){W(e,t),t.set(e,n)}function W(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function G(e,t,n){return e.set(q(e,t),n),n}function K(e,t){return e.get(q(e,t))}function q(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function J(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t,n,r,i,a){function o(e,t,n){return function(r,i){return n&&n(r),e[t].call(r,i)}}function s(e,t){for(var n=0;n<e.length;n++)e[n].call(t);return t}function c(e,t,n,r){if(typeof e!=`function`&&(r||e!==void 0))throw TypeError(t+` must `+(n||`be`)+` a function`+(r?``:` or undefined`));return e}function l(e,t,n,r,i,a,s,l,u,d,f,p,m){function h(e){if(!m(e))throw TypeError(`Attempted to access private element on non-instance`)}var g,_=t[0],v=t[3],y=!l;if(!y){n||Array.isArray(_)||(_=[_]);var b={},x=[],S=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?b={get:Q(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||Q(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var C=e,w=_.length-1;w>=0;w-=n?2:1){var T=_[w],E=n?_[w-1]:void 0,D={},O={kind:[`field`,`accessor`,`method`,`getter`,`setter`,`class`][i],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw Error(`attempted to call addInitializer after decoration was finished`);c(t,`An initializer`,`be`,!0),s.push(t)}.bind(null,D)};try{if(y)(g=c(T.call(E,C,O),`class decorators`,`return`))&&(C=g);else{var k,A;O.static=u,O.private=d,d?i===2?k=function(e){return h(e),b.value}:(i<4&&(k=o(b,`get`,h)),i!==3&&(A=o(b,`set`,h))):(k=function(e){return e[r]},(i<2||i===4)&&(A=function(e,t){e[r]=t}));var j=O.access={has:d?m.bind():function(e){return r in e}};if(k&&(j.get=k),A&&(j.set=A),C=T.call(E,p?{get:b.get,set:b.set}:b[S],O),p){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);else if(C!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(C,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(C):b[S]=C)}}finally{D.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=x.length-1;n>=0;n--)t=x[n].call(e,t);return t}),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}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for(`Symbol.metadata`),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var d=a[Symbol.metadata||Symbol.for(`Symbol.metadata`)];var f=Object.create(d??null),p=function(e,t,n,r){var i,a,o=[],c=function(t){return ee(t)===e},u=new Map;function d(e){e&&o.push(s.bind(null,e))}for(var f=0;f<t.length;f++){var p=t[f];if(Array.isArray(p)){var m=p[1],h=p[2],g=p.length>3,_=16&m,v=!!(8&m),y=(m&=7)==0,b=h+`/`+v;if(!y&&!g){var x=u.get(b);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);u.set(b,!(m>2)||m)}l(v?e:e.prototype,p,_,g?`#`+h:X(h),m,r,v?a||=[]:i||=[],o,v,g,y,m===1,v&&g?c:n)}}return d(i),d(a),o}(e,t,i,f);return n.length||u(e,f),{e:p,get c(){var t=[];return n.length&&[u(l(e,[n],r,e.name,5,f,t),f),s.bind(null,t,e)]}}}function X(e){var t=Z(e,`string`);return typeof t==`symbol`?t:t+``}function Z(e,t){if(typeof e!=`object`||!e)return e;var n;if(typeof Symbol<`u`&&(n=e[Symbol.toPrimitive])!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Q(e,t,n){typeof t==`symbol`&&(t=(t=t.description)?`[`+t+`]`:``);try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+` `+t:t})}catch{}return e}function ee(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}function te(e){return e}b=[e.customElement(`solid-ui-resource-actions-menu`)];var $;new(V=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,h=new WeakMap,g=new WeakMap,_=new WeakMap,H=(x=(0,a.property)({attribute:!1}),C=(0,a.property)({type:String}),T=(0,a.property)({attribute:!1}),D=(0,a.property)({attribute:!1}),k=(0,a.property)({type:Boolean}),j=(0,a.property)({type:Boolean}),N=(0,a.property)({type:Boolean}),F=(0,a.property)({type:Boolean}),L=(0,a.property)({type:Boolean,attribute:`show-access-in-menu`}),z=(0,a.property)({attribute:!1}),`store`),s=class extends t.default{constructor(...e){super(...e),U(this,c,(v(this),S(this))),U(this,l,w(this)),U(this,u,E(this,void 0)),U(this,d,O(this,void 0)),U(this,f,A(this,!1)),U(this,p,M(this,!1)),U(this,m,P(this,!1)),U(this,h,I(this,!1)),U(this,g,R(this,!1)),U(this,_,B(this,[])),J(this,`handleOpenInNewTab`,()=>{this.subjectUri&&window.open(this.subjectUri,`_blank`,`noopener,noreferrer`)})}get[H](){return K(c,this)}set store(e){G(c,this,e)}get subjectUri(){return K(l,this)}set subjectUri(e){G(l,this,e)}get handleAccessClick(){return K(u,this)}set handleAccessClick(e){G(u,this,e)}get handleEditingClick(){return K(d,this)}set handleEditingClick(e){G(d,this,e)}get paneSupportsEditing(){return K(f,this)}set paneSupportsEditing(e){G(f,this,e)}get canEdit(){return K(p,this)}set canEdit(e){G(p,this,e)}get canManageAccess(){return K(m,this)}set canManageAccess(e){G(m,this,e)}get isMobile(){return K(h,this)}set isMobile(e){G(h,this,e)}get showAccessInMenu(){return K(g,this)}set showAccessInMenu(e){G(g,this,e)}get menuItems(){return K(_,this)}set menuItems(e){G(_,this,e)}render(){let e=!r.isContainerSubject(this.store,this.subjectUri)&&this.isMobile&&this.paneSupportsEditing&&this.canEdit&&!!this.handleEditingClick,t=this.canManageAccess&&!!this.handleAccessClick&&(this.showAccessInMenu||this.isMobile),n=this.menuItems.filter(e=>typeof e.action==`function`);return i.html`
2
2
  <solid-ui-menu>
3
3
  <solid-ui-button slot="trigger" class="file-explorer-header-more-button" variant="ghost" title="More options">
4
4
  <icon-lucide-ellipsis-vertical slot="icon" class="ellipsisIcon"></icon-lucide-ellipsis-vertical>
@@ -10,6 +10,12 @@ const e=require("../../lib/components/decorators.cjs.js"),t=require("../../lib/c
10
10
  ${e.label}
11
11
  </solid-ui-menu-item>
12
12
  `)}
13
+ ${this.subjectUri?i.html`
14
+ <solid-ui-menu-item @solid-ui-select=${this.handleOpenInNewTab}>
15
+ <icon-lucide-square-arrow-out-up-right slot="left-icon"></icon-lucide-square-arrow-out-up-right>
16
+ Open in New Tab
17
+ </solid-ui-menu-item>
18
+ `:i.nothing}
13
19
  ${e?i.html`
14
20
  <solid-ui-menu-item @solid-ui-select=${this.handleEditingClick}>
15
21
  <icon-lucide-pencil slot="left-icon"></icon-lucide-pencil>
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceActionsMenu.cjs.js","names":["customElement","WebComponent","property","html","nothing","styles","isContainerSubject","_classDecs","_ResourceActionsMenu","_ResourceActionsMenu2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_ref","_storeDecs","attribute","_subjectUriDecs","type","String","_handleAccessClickDecs","_handleEditingClickDecs","_paneSupportsEditingDecs","Boolean","_canEditDecs","_canManageAccessDecs","_isMobileDecs","_showAccessInMenuDecs","_menuItemsDecs","_ResourceActionsMenu3","ResourceActionsMenu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subjectUri","_init_handleAccessClick","undefined","_init_handleEditingClick","_init_paneSupportsEditing","_init_canEdit","_init_canManageAccess","_init_isMobile","_init_showAccessInMenu","_init_menuItems","_classPrivateFieldGet","store","v","_classPrivateFieldSet","subjectUri","handleAccessClick","handleEditingClick","paneSupportsEditing","canEdit","canManageAccess","isMobile","showAccessInMenu","menuItems","render","isContainerResource","actionableMenuItems","filter","item","action","map","event","icon","label","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","customElement","property","WebComponent","isContainerSubject","nothing","styles","require_decorators","require_WebComponent","require_ResourceActionsMenu_styles","require_podUtils","lit","lit_decorators_js","_Class","_ResourceActionsMenu3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectUriDecs","_init_subjectUri","_handleAccessClickDecs","_init_handleAccessClick","_handleEditingClickDecs","_init_handleEditingClick","_paneSupportsEditingDecs","_init_paneSupportsEditing","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_showAccessInMenuDecs","_init_showAccessInMenu","_menuItemsDecs","_init_menuItems","_ResourceActionsMenu2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_ResourceActionsMenu","args","canEdit","canManageAccess","actionableMenuItems","item","event"],"sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property } from 'lit/decorators.js'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '@/components/menu'\nimport '@/components/menu-item'\nimport '~icons/lucide/ellipsis-vertical'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/file'\nimport { LiveStore } from 'rdflib'\nimport styles from './ResourceActionsMenu.styles.css'\nimport { isContainerSubject } from '@/utils/podUtils'\n\ntype ResourceActionMenuItem = {\n label: string\n icon?: HTMLElement | string\n action?: (event: Event) => void\n}\n\ntype ActionableResourceActionMenuItem = ResourceActionMenuItem & {\n action: (event: Event) => void\n}\n\n@customElement('solid-ui-resource-actions-menu')\nexport default class ResourceActionsMenu extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | undefined\n\n @property({ type: String })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor handleEditingClick: (() => void) | undefined = undefined\n\n @property({ type: Boolean })\n accessor paneSupportsEditing = false\n\n @property({ type: Boolean })\n accessor canEdit = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @property({ type: Boolean })\n accessor isMobile = false\n\n @property({ type: Boolean, attribute: 'show-access-in-menu' })\n accessor showAccessInMenu = false\n\n @property({ attribute: false })\n accessor menuItems: ResourceActionMenuItem[] = []\n\n render () {\n const isContainerResource = isContainerSubject(this.store, this.subjectUri)\n const canEdit = !isContainerResource && this.isMobile && this.paneSupportsEditing && this.canEdit && !!this.handleEditingClick\n const canManageAccess = this.canManageAccess && !!this.handleAccessClick &&\n (this.showAccessInMenu || this.isMobile)\n const actionableMenuItems = this.menuItems.filter((item): item is ActionableResourceActionMenuItem => typeof item.action === 'function')\n return html`\n <solid-ui-menu>\n <solid-ui-button slot=\"trigger\" class=\"file-explorer-header-more-button\" variant=\"ghost\" title=\"More options\">\n <icon-lucide-ellipsis-vertical slot=\"icon\" class=\"ellipsisIcon\"></icon-lucide-ellipsis-vertical>\n <span class=\"sr-only\">More options</span>\n </solid-ui-button>\n ${actionableMenuItems.map(item => html`\n <solid-ui-menu-item @solid-ui-select=${(event: Event) => item.action(event)}>\n ${typeof item.icon === 'string'\n ? html`<img slot=\"left-icon\" src=${item.icon} alt=\"\">`\n : item.icon ?? html`<icon-lucide-file slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-file>`}\n ${item.label}\n </solid-ui-menu-item>\n `)}\n ${canEdit\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleEditingClick}>\n <icon-lucide-pencil slot=\"left-icon\"></icon-lucide-pencil>\n Edit\n </solid-ui-menu-item>\n `\n : nothing}\n ${canManageAccess\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleAccessClick}>\n <icon-lucide-user-round-cog slot=\"left-icon\"></icon-lucide-user-round-cog>\n Manage Access\n </solid-ui-menu-item>\n `\n : nothing}\n </solid-ui-menu>\n `\n }\n}\n"],"mappings":"A,yyJAYqDO,EAAA,CAYpDP,EAAAA,cAAc,gCAAgC,CAAC,EAAA,IAAAQ,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,EAAA,IAAAN,QAAAO,EAAA,IAAAP,QAAAQ,EAAA,IAAAR,QAAAS,EAAA,IAAAT,QAAAU,GAAAC,GAAAA,EAI7CpB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BtB,EAAAA,SAAAA,CAAS,CAAEuB,KAAMC,MAAO,CAAC,EAACC,GAAAA,EAG1BzB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACK,GAAAA,EAG9B1B,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACM,GAAAA,EAG9B3B,EAAAA,SAAAA,CAAS,CAAEuB,KAAMK,OAAQ,CAAC,EAACC,GAAAA,EAG3B7B,EAAAA,SAAAA,CAAS,CAAEuB,KAAMK,OAAQ,CAAC,EAACE,GAAAA,EAG3B9B,EAAAA,SAAAA,CAAS,CAAEuB,KAAMK,OAAQ,CAAC,EAACG,GAAAA,EAG3B/B,EAAAA,SAAAA,CAAS,CAAEuB,KAAMK,OAAQ,CAAC,EAACI,GAAAA,EAG3BhC,EAAAA,SAAAA,CAAS,CAAEuB,KAAMK,QAASP,UAAW,qBAAsB,CAAC,EAACY,GAAAA,EAG7DjC,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC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AA,IAAI,6BAA6BmE,EAAKI,KAAI,UAC1CJ,EAAKI,MAAQvE,EAAAA,IAAI,4EAA2E;cAC9FmE,EAAKK,MAAK;;SAEf,EAAC;UACAd,EACE1D,EAAAA,IAAI;qDACqC,KAAKwD,mBAAkB;;;;cAKhEvD,EAAAA,QAAO;UACT0D,EACE3D,EAAAA,IAAI;qDACqC,KAAKuD,kBAAiB;;;;cAK/DtD,EAAAA,QAAO;;KAGjB,CACF,EAAC,CAAAwE,EAAA,CAAAlC,EAAAC,EAAAC,EAAAE,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAX,GAAAoC,EAAA,CAAArE,EAAAsE,IAAAC,EAAA3C,EAAA,CAAA,CAAAd,EAAA,EAAA,OAAA,EAAA,CAAAE,EAAA,EAAA,YAAA,EAAA,CAAAG,EAAA,EAAA,mBAAA,EAAA,CAAAC,EAAA,EAAA,oBAAA,EAAA,CAAAC,EAAA,EAAA,qBAAA,EAAA,CAAAE,EAAA,EAAA,SAAA,EAAA,CAAAC,EAAA,EAAA,iBAAA,EAAA,CAAAC,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,EAAA,CAAAC,EAAA,EAAA,WAAA,CAAA,EAAA5B,EAAA,EAAA,IAAA,GAxEgDN,EAAAA,OAAY,EAAAmC,GAAA4C,EAAA,cAAAC,EAAA,CAAA3C,aAAA,CAAA,MAAA9B,CAAA,EAAA0E,EAAA,KAAA,SAC3C7E,EAAAA,OAAM,EAAAyE,EAAA,CAAA,CAAA,EAAAI,EAAAF,EAAAvE,EAAA,IAAA,EAAA,EAAAuE,G"}
1
+ {"version":3,"file":"ResourceActionsMenu.cjs.js","names":["customElement","WebComponent","property","html","nothing","styles","isContainerSubject","_classDecs","_ResourceActionsMenu","_ResourceActionsMenu2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_ref","_storeDecs","attribute","_subjectUriDecs","type","String","_handleAccessClickDecs","_handleEditingClickDecs","_paneSupportsEditingDecs","Boolean","_canEditDecs","_canManageAccessDecs","_isMobileDecs","_showAccessInMenuDecs","_menuItemsDecs","_ResourceActionsMenu3","ResourceActionsMenu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subjectUri","_init_handleAccessClick","undefined","_init_handleEditingClick","_init_paneSupportsEditing","_init_canEdit","_init_canManageAccess","_init_isMobile","_init_showAccessInMenu","_init_menuItems","_defineProperty","subjectUri","window","open","_classPrivateFieldGet","store","v","_classPrivateFieldSet","handleAccessClick","handleEditingClick","paneSupportsEditing","canEdit","canManageAccess","isMobile","showAccessInMenu","menuItems","render","isContainerResource","actionableMenuItems","filter","item","action","map","event","icon","label","handleOpenInNewTab","e","c","_initClass","_applyDecs","_Class","_identity","default","customElement","property","WebComponent","isContainerSubject","nothing","styles","require_decorators","require_WebComponent","require_ResourceActionsMenu_styles","require_podUtils","lit","lit_decorators_js","_Class","_ResourceActionsMenu3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectUriDecs","_init_subjectUri","_handleAccessClickDecs","_init_handleAccessClick","_handleEditingClickDecs","_init_handleEditingClick","_paneSupportsEditingDecs","_init_paneSupportsEditing","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_showAccessInMenuDecs","_init_showAccessInMenu","_menuItemsDecs","_init_menuItems","_ResourceActionsMenu2","_ref","_classPrivateFieldInitSpec","_checkPrivateRedeclaration","a","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","f","p","_setFunctionName","P","j","D","I","F","l","N","_checkInRHS","_toPrimitive","e","_identity","_ResourceActionsMenu","args","canEdit","canManageAccess","actionableMenuItems","item","event"],"sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property } from 'lit/decorators.js'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '@/components/menu'\nimport '@/components/menu-item'\nimport '~icons/lucide/ellipsis-vertical'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/file'\nimport '~icons/lucide/square-arrow-out-up-right'\nimport { LiveStore } from 'rdflib'\nimport styles from './ResourceActionsMenu.styles.css'\nimport { isContainerSubject } from '@/utils/podUtils'\n\ntype ResourceActionMenuItem = {\n label: string\n icon?: HTMLElement | string\n action?: (event: Event) => void\n}\n\ntype ActionableResourceActionMenuItem = ResourceActionMenuItem & {\n action: (event: Event) => void\n}\n\n@customElement('solid-ui-resource-actions-menu')\nexport default class ResourceActionsMenu extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | undefined\n\n @property({ type: String })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor handleEditingClick: (() => void) | undefined = undefined\n\n @property({ type: Boolean })\n accessor paneSupportsEditing = false\n\n @property({ type: Boolean })\n accessor canEdit = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @property({ type: Boolean })\n accessor isMobile = false\n\n @property({ type: Boolean, attribute: 'show-access-in-menu' })\n accessor showAccessInMenu = false\n\n @property({ attribute: false })\n accessor menuItems: ResourceActionMenuItem[] = []\n\n private handleOpenInNewTab = () => {\n if (!this.subjectUri) return\n window.open(this.subjectUri, '_blank', 'noopener,noreferrer')\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.store, this.subjectUri)\n const canEdit = !isContainerResource && this.isMobile && this.paneSupportsEditing && this.canEdit && !!this.handleEditingClick\n const canManageAccess = this.canManageAccess && !!this.handleAccessClick &&\n (this.showAccessInMenu || this.isMobile)\n const actionableMenuItems = this.menuItems.filter((item): item is ActionableResourceActionMenuItem => typeof item.action === 'function')\n return html`\n <solid-ui-menu>\n <solid-ui-button slot=\"trigger\" class=\"file-explorer-header-more-button\" variant=\"ghost\" title=\"More options\">\n <icon-lucide-ellipsis-vertical slot=\"icon\" class=\"ellipsisIcon\"></icon-lucide-ellipsis-vertical>\n <span class=\"sr-only\">More options</span>\n </solid-ui-button>\n ${actionableMenuItems.map(item => html`\n <solid-ui-menu-item @solid-ui-select=${(event: Event) => item.action(event)}>\n ${typeof item.icon === 'string'\n ? html`<img slot=\"left-icon\" src=${item.icon} alt=\"\">`\n : item.icon ?? html`<icon-lucide-file slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-file>`}\n ${item.label}\n </solid-ui-menu-item>\n `)}\n ${this.subjectUri\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleOpenInNewTab}>\n <icon-lucide-square-arrow-out-up-right slot=\"left-icon\"></icon-lucide-square-arrow-out-up-right>\n Open in New Tab\n </solid-ui-menu-item>\n `\n : nothing}\n ${canEdit\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleEditingClick}>\n <icon-lucide-pencil slot=\"left-icon\"></icon-lucide-pencil>\n Edit\n </solid-ui-menu-item>\n `\n : nothing}\n ${canManageAccess\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleAccessClick}>\n <icon-lucide-user-round-cog slot=\"left-icon\"></icon-lucide-user-round-cog>\n Manage Access\n </solid-ui-menu-item>\n `\n : nothing}\n </solid-ui-menu>\n `\n }\n}\n"],"mappings":"A,k3JAaqDO,EAAA,CAYpDP,EAAAA,cAAc,gCAAgC,CAAC,EAAA,IAAAQ,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,EAAA,IAAAJ,QAAAK,EAAA,IAAAL,QAAAM,EAAA,IAAAN,QAAAO,EAAA,IAAAP,QAAAQ,EAAA,IAAAR,QAAAS,EAAA,IAAAT,QAAAU,GAAAC,GAAAA,EAI7CpB,EAAAA,SAAAA,CAAS,CAAEqB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AC,EAAAC,EAAAX,GAAAwC,EAAA,CAAAzE,EAAA0E,IAAAC,EAAA/C,EAAA,CAAA,CAAAd,EAAA,EAAA,OAAA,EAAA,CAAAE,EAAA,EAAA,YAAA,EAAA,CAAAG,EAAA,EAAA,mBAAA,EAAA,CAAAC,EAAA,EAAA,oBAAA,EAAA,CAAAC,EAAA,EAAA,qBAAA,EAAA,CAAAE,EAAA,EAAA,SAAA,EAAA,CAAAC,EAAA,EAAA,iBAAA,EAAA,CAAAC,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,EAAA,CAAAC,EAAA,EAAA,WAAA,CAAA,EAAA5B,EAAA,EAAA,IAAA,GArFgDN,EAAAA,OAAY,EAAAmC,GAAAgD,EAAA,cAAAC,EAAA,CAAA/C,aAAA,CAAA,MAAA9B,CAAA,EAAA6C,EAAA,KAAA,SAC3ChD,EAAAA,OAAM,EAAA6E,EAAA,CAAA,CAAA,EAAA7B,EAAA+B,EAAA3E,EAAA,IAAA,EAAA,EAAA2E,G"}
@@ -17,6 +17,7 @@ export default class ResourceActionsMenu extends WebComponent {
17
17
  accessor isMobile: boolean;
18
18
  accessor showAccessInMenu: boolean;
19
19
  accessor menuItems: ResourceActionMenuItem[];
20
+ private handleOpenInNewTab;
20
21
  render(): import('lit-html').TemplateResult<1>;
21
22
  }
22
23
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAG9D,OAAO,qBAAqB,CAAA;AAC5B,OAAO,mBAAmB,CAAA;AAC1B,OAAO,wBAAwB,CAAA;AAC/B,OAAO,iCAAiC,CAAA;AACxC,OAAO,8BAA8B,CAAA;AACrC,OAAO,sBAAsB,CAAA;AAC7B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAA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KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAC3B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAChC,CAAA;AAOD,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,YAAY;IAC3D,MAAM,CAAC,MAAM,0BAAS;IAGtB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAA;IAGrC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAGvC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAY;IAGhE,QAAQ,CAAC,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAY;IAGjE,QAAQ,CAAC,mBAAmB,UAAQ;IAGpC,QAAQ,CAAC,OAAO,UAAQ;IAGxB,QAAQ,CAAC,eAAe,UAAQ;IAGhC,QAAQ,CAAC,QAAQ,UAAQ;IAGzB,QAAQ,CAAC,gBAAgB,UAAQ;IAGjC,QAAQ,CAAC,SAAS,EAAE,sBAAsB,EAAE,CAAK;IAEjD,OAAO,CAAC,kBAAkB,CAGzB;IAED,MAAM;CA+CP"}
@@ -1,6 +1,6 @@
1
+ import "../../lib/components/index.esm.js";
1
2
  import { customElement as e } from "../../lib/components/decorators.esm.js";
2
3
  import t from "../../lib/components/web-component/WebComponent.esm.js";
3
- import "../../lib/components/index.esm.js";
4
4
  import "../button/index.esm.js";
5
5
  import "../menu/index.esm.js";
6
6
  import "../menu-item/index.esm.js";
@@ -8,6 +8,7 @@ import "../../_virtual/~icons/lucide/ellipsis-vertical.esm.js";
8
8
  import "../../_virtual/~icons/lucide/user-round-cog.esm.js";
9
9
  import "../../_virtual/~icons/lucide/pencil.esm.js";
10
10
  import "../../_virtual/~icons/lucide/file.esm.js";
11
+ import "../../_virtual/~icons/lucide/square-arrow-out-up-right.esm.js";
11
12
  import n from "./ResourceActionsMenu.styles.esm.js";
12
13
  import { isContainerSubject as r } from "../../utils/podUtils.esm.js";
13
14
  import { html as i, nothing as a } from "lit";
@@ -192,7 +193,9 @@ new (H = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
192
193
  attribute: "show-access-in-menu"
193
194
  }), B = o({ attribute: !1 }), "store"), c = class extends t {
194
195
  constructor(...e) {
195
- super(...e), W(this, l, (y(this), C(this))), W(this, u, T(this)), W(this, d, D(this, void 0)), W(this, f, k(this, void 0)), W(this, p, j(this, !1)), W(this, m, N(this, !1)), W(this, h, F(this, !1)), W(this, g, L(this, !1)), W(this, _, z(this, !1)), W(this, v, V(this, []));
196
+ super(...e), W(this, l, (y(this), C(this))), W(this, u, T(this)), W(this, d, D(this, void 0)), W(this, f, k(this, void 0)), W(this, p, j(this, !1)), W(this, m, N(this, !1)), W(this, h, F(this, !1)), W(this, g, L(this, !1)), W(this, _, z(this, !1)), W(this, v, V(this, [])), Y(this, "handleOpenInNewTab", () => {
197
+ this.subjectUri && window.open(this.subjectUri, "_blank", "noopener,noreferrer");
198
+ });
196
199
  }
197
200
  get [U]() {
198
201
  return q(l, this);
@@ -268,6 +271,12 @@ new (H = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d =
268
271
  ${e.label}
269
272
  </solid-ui-menu-item>
270
273
  `)}
274
+ ${this.subjectUri ? i`
275
+ <solid-ui-menu-item @solid-ui-select=${this.handleOpenInNewTab}>
276
+ <icon-lucide-square-arrow-out-up-right slot="left-icon"></icon-lucide-square-arrow-out-up-right>
277
+ Open in New Tab
278
+ </solid-ui-menu-item>
279
+ ` : a}
271
280
  ${e ? i`
272
281
  <solid-ui-menu-item @solid-ui-select=${this.handleEditingClick}>
273
282
  <icon-lucide-pencil slot="left-icon"></icon-lucide-pencil>
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceActionsMenu.esm.js","names":["customElement","WebComponent","property","html","nothing","styles","isContainerSubject","_classDecs","_ResourceActionsMenu","_ResourceActionsMenu2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_ref","_storeDecs","attribute","_subjectUriDecs","type","String","_handleAccessClickDecs","_handleEditingClickDecs","_paneSupportsEditingDecs","Boolean","_canEditDecs","_canManageAccessDecs","_isMobileDecs","_showAccessInMenuDecs","_menuItemsDecs","_ResourceActionsMenu3","ResourceActionsMenu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subjectUri","_init_handleAccessClick","undefined","_init_handleEditingClick","_init_paneSupportsEditing","_init_canEdit","_init_canManageAccess","_init_isMobile","_init_showAccessInMenu","_init_menuItems","_classPrivateFieldGet","store","v","_classPrivateFieldSet","subjectUri","handleAccessClick","handleEditingClick","paneSupportsEditing","canEdit","canManageAccess","isMobile","showAccessInMenu","menuItems","render","isContainerResource","actionableMenuItems","filter","item","action","map","event","icon","label","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","styles","WebComponent","ResourceActionsMenu_styles_default","_Class","_ResourceActionsMenu3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectUriDecs","_init_subjectUri","_handleAccessClickDecs","_init_handleAccessClick","_handleEditingClickDecs","_init_handleEditingClick","_paneSupportsEditingDecs","_init_paneSupportsEditing","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_showAccessInMenuDecs","_init_showAccessInMenu","_menuItemsDecs","_init_menuItems","_ResourceActionsMenu2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_ResourceActionsMenu","property","args","canEdit","isContainerSubject","canManageAccess","actionableMenuItems","item","event","nothing"],"sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property } from 'lit/decorators.js'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '@/components/menu'\nimport '@/components/menu-item'\nimport '~icons/lucide/ellipsis-vertical'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/file'\nimport { LiveStore } from 'rdflib'\nimport styles from './ResourceActionsMenu.styles.css'\nimport { isContainerSubject } from '@/utils/podUtils'\n\ntype ResourceActionMenuItem = {\n label: string\n icon?: HTMLElement | string\n action?: (event: Event) => void\n}\n\ntype ActionableResourceActionMenuItem = ResourceActionMenuItem & {\n action: (event: Event) => void\n}\n\n@customElement('solid-ui-resource-actions-menu')\nexport default class ResourceActionsMenu extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | undefined\n\n @property({ type: String })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor handleEditingClick: (() => void) | undefined = undefined\n\n @property({ type: Boolean })\n accessor paneSupportsEditing = false\n\n @property({ type: Boolean })\n accessor canEdit = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @property({ type: Boolean })\n accessor isMobile = false\n\n @property({ type: Boolean, attribute: 'show-access-in-menu' })\n accessor showAccessInMenu = false\n\n @property({ attribute: false })\n accessor menuItems: ResourceActionMenuItem[] = []\n\n render () {\n const isContainerResource = isContainerSubject(this.store, this.subjectUri)\n const canEdit = !isContainerResource && this.isMobile && this.paneSupportsEditing && this.canEdit && !!this.handleEditingClick\n const canManageAccess = this.canManageAccess && !!this.handleAccessClick &&\n (this.showAccessInMenu || this.isMobile)\n const actionableMenuItems = this.menuItems.filter((item): item is ActionableResourceActionMenuItem => typeof item.action === 'function')\n return html`\n <solid-ui-menu>\n <solid-ui-button slot=\"trigger\" class=\"file-explorer-header-more-button\" variant=\"ghost\" title=\"More options\">\n <icon-lucide-ellipsis-vertical slot=\"icon\" class=\"ellipsisIcon\"></icon-lucide-ellipsis-vertical>\n <span class=\"sr-only\">More options</span>\n </solid-ui-button>\n ${actionableMenuItems.map(item => html`\n <solid-ui-menu-item @solid-ui-select=${(event: Event) => item.action(event)}>\n ${typeof item.icon === 'string'\n ? html`<img slot=\"left-icon\" src=${item.icon} alt=\"\">`\n : item.icon ?? html`<icon-lucide-file slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-file>`}\n ${item.label}\n </solid-ui-menu-item>\n `)}\n ${canEdit\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleEditingClick}>\n <icon-lucide-pencil slot=\"left-icon\"></icon-lucide-pencil>\n Edit\n </solid-ui-menu-item>\n `\n : nothing}\n ${canManageAccess\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleAccessClick}>\n <icon-lucide-user-round-cog slot=\"left-icon\"></icon-lucide-user-round-cog>\n Manage Access\n </solid-ui-menu-item>\n `\n : nothing}\n </solid-ui-menu>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYqDO,IAAA,CAYpDP,EAAc,gCAAgC,CAAC;AAAA,IAAAQ;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,kBAAA,IAAAH,QAAA,GAAAI,kBAAA,IAAAJ,QAAA,GAAAK,kBAAA,IAAAL,QAAA,GAAAM,kBAAA,IAAAN,QAAA,GAAAO,kBAAA,IA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AAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAA5B,GAAA,GAAA,KAAA,GAxEgDN,CAAY,GAAAmC,IAAA4C,IAAA,cAAAC,GAAA;CAAA3C,cAAA;EAAA,MAAA9B,CAAA,GAAA0E,EAAA,MAAA,UAC3C7E,CAAM,GAAAyE,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAvE,GAAA,KAAA,CAAA,GAAAuE,GAAA"}
1
+ {"version":3,"file":"ResourceActionsMenu.esm.js","names":["customElement","WebComponent","property","html","nothing","styles","isContainerSubject","_classDecs","_ResourceActionsMenu","_ResourceActionsMenu2","_A","WeakMap","_B","_C","_D","_E","_F","_G","_H","_I","_J","_ref","_storeDecs","attribute","_subjectUriDecs","type","String","_handleAccessClickDecs","_handleEditingClickDecs","_paneSupportsEditingDecs","Boolean","_canEditDecs","_canManageAccessDecs","_isMobileDecs","_showAccessInMenuDecs","_menuItemsDecs","_ResourceActionsMenu3","ResourceActionsMenu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subjectUri","_init_handleAccessClick","undefined","_init_handleEditingClick","_init_paneSupportsEditing","_init_canEdit","_init_canManageAccess","_init_isMobile","_init_showAccessInMenu","_init_menuItems","_defineProperty","subjectUri","window","open","_classPrivateFieldGet","store","v","_classPrivateFieldSet","handleAccessClick","handleEditingClick","paneSupportsEditing","canEdit","canManageAccess","isMobile","showAccessInMenu","menuItems","render","isContainerResource","actionableMenuItems","filter","item","action","map","event","icon","label","handleOpenInNewTab","e","c","_initClass","_applyDecs","_Class","_identity","default","styles","WebComponent","ResourceActionsMenu_styles_default","_Class","_ResourceActionsMenu3","_A","_B","_C","_D","_E","_F","_G","_H","_I","_J","_initProto","_initClass","_classDecs","_storeDecs","_init_store","_subjectUriDecs","_init_subjectUri","_handleAccessClickDecs","_init_handleAccessClick","_handleEditingClickDecs","_init_handleEditingClick","_paneSupportsEditingDecs","_init_paneSupportsEditing","_canEditDecs","_init_canEdit","_canManageAccessDecs","_init_canManageAccess","_isMobileDecs","_init_isMobile","_showAccessInMenuDecs","_init_showAccessInMenu","_menuItemsDecs","_init_menuItems","_ResourceActionsMenu2","_ref","_classPrivateFieldInitSpec","a","_checkPrivateRedeclaration","_classPrivateFieldSet","s","_assertClassBrand","r","_classPrivateFieldGet","_defineProperty","_toPropertyKey","t","_applyDecs","i","n","o","c","applyDec","m","h","y","v","g","b","u","w","S","A","d","p","_setFunctionName","P","j","D","I","F","l","f","N","_checkInRHS","_toPrimitive","e","_identity","customElement","_ResourceActionsMenu","property","args","canEdit","isContainerSubject","canManageAccess","actionableMenuItems","item","event","nothing"],"sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { property } from 'lit/decorators.js'\nimport { html, nothing } from 'lit'\nimport '@/components/button'\nimport '@/components/menu'\nimport '@/components/menu-item'\nimport '~icons/lucide/ellipsis-vertical'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/file'\nimport '~icons/lucide/square-arrow-out-up-right'\nimport { LiveStore } from 'rdflib'\nimport styles from './ResourceActionsMenu.styles.css'\nimport { isContainerSubject } from '@/utils/podUtils'\n\ntype ResourceActionMenuItem = {\n label: string\n icon?: HTMLElement | string\n action?: (event: Event) => void\n}\n\ntype ActionableResourceActionMenuItem = ResourceActionMenuItem & {\n action: (event: Event) => void\n}\n\n@customElement('solid-ui-resource-actions-menu')\nexport default class ResourceActionsMenu extends WebComponent {\n static styles = styles\n\n @property({ attribute: false })\n accessor store: LiveStore | undefined\n\n @property({ type: String })\n accessor subjectUri: string | undefined\n\n @property({ attribute: false })\n accessor handleAccessClick: (() => void) | undefined = undefined\n\n @property({ attribute: false })\n accessor handleEditingClick: (() => void) | undefined = undefined\n\n @property({ type: Boolean })\n accessor paneSupportsEditing = false\n\n @property({ type: Boolean })\n accessor canEdit = false\n\n @property({ type: Boolean })\n accessor canManageAccess = false\n\n @property({ type: Boolean })\n accessor isMobile = false\n\n @property({ type: Boolean, attribute: 'show-access-in-menu' })\n accessor showAccessInMenu = false\n\n @property({ attribute: false })\n accessor menuItems: ResourceActionMenuItem[] = []\n\n private handleOpenInNewTab = () => {\n if (!this.subjectUri) return\n window.open(this.subjectUri, '_blank', 'noopener,noreferrer')\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.store, this.subjectUri)\n const canEdit = !isContainerResource && this.isMobile && this.paneSupportsEditing && this.canEdit && !!this.handleEditingClick\n const canManageAccess = this.canManageAccess && !!this.handleAccessClick &&\n (this.showAccessInMenu || this.isMobile)\n const actionableMenuItems = this.menuItems.filter((item): item is ActionableResourceActionMenuItem => typeof item.action === 'function')\n return html`\n <solid-ui-menu>\n <solid-ui-button slot=\"trigger\" class=\"file-explorer-header-more-button\" variant=\"ghost\" title=\"More options\">\n <icon-lucide-ellipsis-vertical slot=\"icon\" class=\"ellipsisIcon\"></icon-lucide-ellipsis-vertical>\n <span class=\"sr-only\">More options</span>\n </solid-ui-button>\n ${actionableMenuItems.map(item => html`\n <solid-ui-menu-item @solid-ui-select=${(event: Event) => item.action(event)}>\n ${typeof item.icon === 'string'\n ? html`<img slot=\"left-icon\" src=${item.icon} alt=\"\">`\n : item.icon ?? html`<icon-lucide-file slot=\"left-icon\" aria-hidden=\"true\"></icon-lucide-file>`}\n ${item.label}\n </solid-ui-menu-item>\n `)}\n ${this.subjectUri\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleOpenInNewTab}>\n <icon-lucide-square-arrow-out-up-right slot=\"left-icon\"></icon-lucide-square-arrow-out-up-right>\n Open in New Tab\n </solid-ui-menu-item>\n `\n : nothing}\n ${canEdit\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleEditingClick}>\n <icon-lucide-pencil slot=\"left-icon\"></icon-lucide-pencil>\n Edit\n </solid-ui-menu-item>\n `\n : nothing}\n ${canManageAccess\n ? html`\n <solid-ui-menu-item @solid-ui-select=${this.handleAccessClick}>\n <icon-l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AKC,OAAOE,CAAK,EAAC;cACvE,OAAOH,EAAKI,QAAS,WACnB1E,CAAI,6BAA6BsE,EAAKI,KAAI,YAC1CJ,EAAKI,QAAQ1E,CAAI,4EAA2E;cAC9FsE,EAAKK,MAAK;;SAEf,EAAC;UACA,KAAKxB,aACHnD,CAAI;qDACqC,KAAK4E,mBAAkB;;;;gBAKhE3E,EAAO;UACT4D,IACE7D,CAAI;qDACqC,KAAK2D,mBAAkB;;;;gBAKhE1D,EAAO;UACT6D,IACE9D,CAAI;qDACqC,KAAK0D,kBAAiB;;;;gBAK/DzD,EAAO;;;CAGjB;AACF,GAAC,CAAA4E,GAAA,CAAAtC,GAAAC,GAAAC,GAAAE,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAC,GAAAX,IAAAwC,GAAA,CAAAzE,GAAA0E,MAAAC,EAAA/C,GAAA;CAAA;EAAAd;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAG;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAA5B,GAAA,GAAA,KAAA,GArFgDN,CAAY,GAAAmC,IAAAgD,IAAA,cAAAC,GAAA;CAAA/C,cAAA;EAAA,MAAA9B,CAAA,GAAA6C,EAAA,MAAA,UAC3ChD,CAAM,GAAA6E,EAAA;CAAA;AAAA,GAAA7B,EAAA+B,GAAA3E,GAAA,KAAA,CAAA,GAAA2E,GAAA"}
@@ -1 +1 @@
1
- export { t as default } from "../chunks/ResourceActionsMenu-Bx7YWY3E.js";
1
+ export { t as default } from "../chunks/ResourceActionsMenu-KFMLta44.js";
@@ -1,6 +1,6 @@
1
1
  import "./chunks/provider-B3FoP2qW.js";
2
2
  import "./chunks/file-explorer-provider-DpjC7uds.js";
3
- import "./chunks/access-control-modal-B1mFFIyz.js";
3
+ import "./chunks/access-control-modal-BZdBv6VD.js";
4
4
  import "./chunks/account-DWmMJre6.js";
5
5
  import "./chunks/avatar-BBgvMlqv.js";
6
6
  import "./chunks/button-D6qO2idW.js";
@@ -13,7 +13,7 @@ import "./chunks/dialog-header-c3qOMQfb.js";
13
13
  import "./components/dialog-provider.js";
14
14
  import "./chunks/dialogs-root-BNF3_SA8.js";
15
15
  import "./chunks/error-state-jV9dlFX2.js";
16
- import "./chunks/file-explorer-header-Djp_eFuT.js";
16
+ import "./chunks/file-explorer-header-BJzo6xDU.js";
17
17
  import "./chunks/guard-SxVT1xr4.js";
18
18
  import "./chunks/input-Bz3l514j.js";
19
19
  import "./chunks/login-button-Dd0rwZJk.js";
package/dist/index.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib/ns.cjs.js"),t=require("./acl/index.cjs.js"),n=require("./create/index.cjs.js"),r=require("./lib/iconBase.cjs.js"),i=require("./widgets/forms/autocomplete/language.cjs.js"),a=require("./lib/log.cjs.js"),o=require("./matrix/index.cjs.js"),s=require("./media/index.cjs.js"),c=require("./lib/messageArea.cjs.js"),l=require("./chat/infinite.cjs.js"),u=require("./lib/pad.cjs.js"),d=require("./lib/participation.cjs.js"),f=require("./lib/preferences.cjs.js"),p=require("./lib/style.cjs.js"),m=require("./lib/table.cjs.js"),h=require("./lib/tabs.cjs.js"),g=require("./utils/index.cjs.js"),_=require("./login/login.cjs.js"),v=require("./widgets/index.cjs.js"),y=require("./header/index.cjs.js"),b=require("./footer/index.cjs.js"),x=require("./create/types.cjs.js"),S=require("./lib/auth/Account.cjs.js"),C=require("./lib/auth/NoopAuth.cjs.js"),w=require("./lib/auth/context.cjs.js"),T=require("./lib/components/ids.cjs.js"),E=require("./lib/dialogs/context.cjs.js"),D=require("./lib/components/decorators.cjs.js"),O=require("./lib/dialogs/events/close-dialog.cjs.js"),k=require("./lib/components/traits/DialogTrait.cjs.js"),A=require("./lib/components/web-component/WebComponent.cjs.js"),j=require("./lib/components/dialog-component/DialogComponent.cjs.js"),M=require("./lib/components/traits/FormControlTrait.cjs.js"),N=require("./lib/components/form-control-component/FormControlComponent.cjs.js");require("./lib/auth/index.cjs.js");const P=require("./lib/dialogs/Dialog.cjs.js"),F=require("./lib/dialogs/events/show-dialog.cjs.js"),I=require("./lib/dialogs/helpers.cjs.js");require("./lib/components/index.cjs.js");const L=require("./lib/auth/SolidAuth.cjs.js");require("./lib/dialogs/index.cjs.js");const R=require("./lib/file-explorer/context.cjs.js"),z=require("./lib/file-explorer/events.cjs.js"),B=require("./lib/file-explorer/relevant-panes.cjs.js"),V=require("./lib/file-explorer/compose-explorer.cjs.js");require("./lib/file-explorer/index.cjs.js");const H=require("./lib/code-editor/CodeEditor.cjs.js");require("./lib/code-editor/index.cjs.js");var U=typeof window<`u`?window.document:null;exports.Account=S.default,exports.CloseDialogEvent=O.CloseDialogEvent,exports.CodeEditor=H.CodeEditor,exports.DEFAULT_AUTH_CONTEXT=w.DEFAULT_AUTH_CONTEXT,exports.DEFAULT_DIALOG_CONTEXT=E.DEFAULT_DIALOG_CONTEXT,exports.DEFAULT_FILE_EXPLORER_CONTEXT=R.DEFAULT_FILE_EXPLORER_CONTEXT,exports.DEFAULT_SIGNUP_URL=L.DEFAULT_SIGNUP_URL,exports.Dialog=P.default,exports.DialogComponent=j.default,exports.DialogTrait=k.default,exports.FILE_EXPLORER_BACK_EVENT=z.FILE_EXPLORER_BACK_EVENT,exports.FILE_EXPLORER_MANAGE_ACCESS_EVENT=z.FILE_EXPLORER_MANAGE_ACCESS_EVENT,exports.FILE_EXPLORER_OPEN_PANE_EVENT=z.FILE_EXPLORER_OPEN_PANE_EVENT,exports.FormControlComponent=N.default,exports.FormControlTrait=M.default,exports.NoopAuth=C.default,exports.ShowDialogEvent=F.ShowDialogEvent,exports.SolidAuth=L.default,exports.WebComponent=A.default,exports.acl=t.acl,exports.aclControl=t.aclControl,exports.authContext=w.authContext,exports.composeExplorer=V.composeExplorer,exports.create=n.create,Object.defineProperty(exports,"createTypes",{enumerable:!0,get:function(){return x.types_exports}}),exports.customElement=D.customElement,exports.dialogContext=E.dialogContext,exports.dom=U,exports.fileExplorerContext=R.fileExplorerContext,exports.generateId=T.generateId,exports.getPreferredPane=B.getPreferredPane,exports.getRelevantPanes=B.getRelevantPanes,exports.icons=r.icons,exports.infiniteMessageArea=l.infiniteMessageArea,exports.initFooter=b.initFooter,exports.initHeader=y.initHeader,exports.isExplorerEvent=z.isExplorerEvent,Object.defineProperty(exports,"language",{enumerable:!0,get:function(){return i.language_exports}}),Object.defineProperty(exports,"log",{enumerable:!0,get:function(){return a.log_exports}}),Object.defineProperty(exports,"login",{enumerable:!0,get:function(){return _.login_exports}}),exports.matrix=o.matrix,exports.media=s.media,exports.messageArea=c.messageArea,exports.ns=e.default,Object.defineProperty(exports,"pad",{enumerable:!0,get:function(){return u.pad_exports}}),Object.defineProperty(exports,"participation",{enumerable:!0,get:function(){return d.participation_exports}}),Object.defineProperty(exports,"preferences",{enumerable:!0,get:function(){return f.preferences_exports}}),exports.showDialog=I.showDialog,exports.style=p.style,exports.table=m.renderTableViewPane,Object.defineProperty(exports,"tabs",{enumerable:!0,get:function(){return h.tabs_exports}}),Object.defineProperty(exports,"utils",{enumerable:!0,get:function(){return g.utils_exports}}),Object.defineProperty(exports,"widgets",{enumerable:!0,get:function(){return v.widgets_exports}});
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib/ns.cjs.js"),t=require("./acl/index.cjs.js"),n=require("./create/index.cjs.js"),r=require("./lib/iconBase.cjs.js"),i=require("./widgets/forms/autocomplete/language.cjs.js"),a=require("./lib/log.cjs.js"),o=require("./matrix/index.cjs.js"),s=require("./media/index.cjs.js"),c=require("./lib/messageArea.cjs.js"),l=require("./chat/infinite.cjs.js"),u=require("./lib/pad.cjs.js"),d=require("./lib/participation.cjs.js"),f=require("./lib/preferences.cjs.js"),p=require("./lib/style.cjs.js"),m=require("./lib/table.cjs.js"),h=require("./lib/tabs.cjs.js"),g=require("./utils/index.cjs.js"),_=require("./login/login.cjs.js"),v=require("./widgets/index.cjs.js"),y=require("./header/index.cjs.js"),b=require("./footer/index.cjs.js"),x=require("./create/types.cjs.js"),S=require("./lib/auth/Account.cjs.js"),C=require("./lib/auth/NoopAuth.cjs.js"),w=require("./lib/auth/context.cjs.js"),T=require("./lib/components/ids.cjs.js"),E=require("./lib/dialogs/context.cjs.js"),D=require("./lib/components/decorators.cjs.js"),O=require("./lib/dialogs/events/close-dialog.cjs.js"),k=require("./lib/components/traits/DialogTrait.cjs.js"),A=require("./lib/components/web-component/WebComponent.cjs.js"),j=require("./lib/components/dialog-component/DialogComponent.cjs.js"),M=require("./lib/components/traits/FormControlTrait.cjs.js"),N=require("./lib/components/form-control-component/FormControlComponent.cjs.js");require("./lib/auth/index.cjs.js");const P=require("./lib/dialogs/Dialog.cjs.js"),F=require("./lib/dialogs/events/show-dialog.cjs.js"),I=require("./lib/dialogs/helpers.cjs.js");require("./lib/components/index.cjs.js");const L=require("./lib/auth/SolidAuth.cjs.js");require("./lib/dialogs/index.cjs.js");const R=require("./lib/file-explorer/context.cjs.js"),z=require("./lib/file-explorer/events.cjs.js"),B=require("./lib/file-explorer/relevant-panes.cjs.js"),V=require("./lib/file-explorer/compose-explorer.cjs.js"),H=require("./lib/file-explorer/pane-menu-items.cjs.js");require("./lib/file-explorer/index.cjs.js");const U=require("./lib/code-editor/CodeEditor.cjs.js");require("./lib/code-editor/index.cjs.js");var W=typeof window<`u`?window.document:null;exports.Account=S.default,exports.CloseDialogEvent=O.CloseDialogEvent,exports.CodeEditor=U.CodeEditor,exports.DEFAULT_AUTH_CONTEXT=w.DEFAULT_AUTH_CONTEXT,exports.DEFAULT_DIALOG_CONTEXT=E.DEFAULT_DIALOG_CONTEXT,exports.DEFAULT_FILE_EXPLORER_CONTEXT=R.DEFAULT_FILE_EXPLORER_CONTEXT,exports.DEFAULT_SIGNUP_URL=L.DEFAULT_SIGNUP_URL,exports.Dialog=P.default,exports.DialogComponent=j.default,exports.DialogTrait=k.default,exports.FILE_EXPLORER_BACK_EVENT=z.FILE_EXPLORER_BACK_EVENT,exports.FILE_EXPLORER_MANAGE_ACCESS_EVENT=z.FILE_EXPLORER_MANAGE_ACCESS_EVENT,exports.FILE_EXPLORER_OPEN_PANE_EVENT=z.FILE_EXPLORER_OPEN_PANE_EVENT,exports.FormControlComponent=N.default,exports.FormControlTrait=M.default,exports.NoopAuth=C.default,exports.ShowDialogEvent=F.ShowDialogEvent,exports.SolidAuth=L.default,exports.WebComponent=A.default,exports.acl=t.acl,exports.aclControl=t.aclControl,exports.authContext=w.authContext,exports.composeExplorer=V.composeExplorer,exports.create=n.create,Object.defineProperty(exports,"createTypes",{enumerable:!0,get:function(){return x.types_exports}}),exports.customElement=D.customElement,exports.dialogContext=E.dialogContext,exports.dom=W,exports.fileExplorerContext=R.fileExplorerContext,exports.generateId=T.generateId,exports.getPreferredPane=B.getPreferredPane,exports.getRelevantPanes=B.getRelevantPanes,exports.icons=r.icons,exports.infiniteMessageArea=l.infiniteMessageArea,exports.initFooter=b.initFooter,exports.initHeader=y.initHeader,exports.isExplorerEvent=z.isExplorerEvent,Object.defineProperty(exports,"language",{enumerable:!0,get:function(){return i.language_exports}}),Object.defineProperty(exports,"log",{enumerable:!0,get:function(){return a.log_exports}}),Object.defineProperty(exports,"login",{enumerable:!0,get:function(){return _.login_exports}}),exports.matrix=o.matrix,exports.media=s.media,exports.messageArea=c.messageArea,exports.ns=e.default,Object.defineProperty(exports,"pad",{enumerable:!0,get:function(){return u.pad_exports}}),Object.defineProperty(exports,"participation",{enumerable:!0,get:function(){return d.participation_exports}}),Object.defineProperty(exports,"preferences",{enumerable:!0,get:function(){return f.preferences_exports}}),exports.preparePaneMenuItems=H.preparePaneMenuItems,exports.showDialog=I.showDialog,exports.style=p.style,exports.table=m.renderTableViewPane,Object.defineProperty(exports,"tabs",{enumerable:!0,get:function(){return h.tabs_exports}}),Object.defineProperty(exports,"utils",{enumerable:!0,get:function(){return g.utils_exports}}),Object.defineProperty(exports,"widgets",{enumerable:!0,get:function(){return v.widgets_exports}});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","names":["require_ns","require_index","require_index$1","require_iconBase","require_language","require_log","require_index$2","require_index$3","require_messageArea","require_infinite","require_pad","require_participation","require_preferences","require_style","require_table","require_tabs","require_index$4","require_login","require_index$5","require_index$6","require_index$7","require_types","require_Account","require_NoopAuth","require_context","require_ids","require_context$1","require_decorators","require_close_dialog","require_DialogTrait","require_WebComponent","require_DialogComponent","require_FormControlTrait","require_FormControlComponent","require_Dialog","require_show_dialog","require_helpers","require_SolidAuth","require_context$2","require_events","require_relevant_panes","require_compose_explorer","require_CodeEditor","dom"],"sources":["../src/index.ts"],"sourcesContent":["// REMOVE @ts-ignore as you migrate files to TypeScript\n// @ts-ignore\nimport ns from './lib/ns'\nimport { acl, aclControl } from './acl/index'\nimport { create } from './create/index'\n// @ts-ignore\nimport { icons } from './lib/iconBase'\nimport * as language from './widgets/forms/autocomplete/language'\nimport * as log from './lib/log'\nimport { matrix } from './matrix/index'\nimport { media } from './media/index'\n// @ts-ignore\nimport { messageArea } from './lib/messageArea'\n// @ts-ignore\nimport { infiniteMessageArea } from './chat/infinite'\n// @ts-ignore\nimport * as pad from './lib/pad'\n// @ts-ignore\nimport * as participation from './lib/participation'\n// @ts-ignore\nimport * as preferences from './lib/preferences'\n// @ts-ignore\nimport { style } from './lib/style'\n// @ts-ignore\nimport { renderTableViewPane as table } from './lib/table'\nimport * as tabs from './lib/tabs'\n// @ts-ignore\nimport * as utils from './utils'\nimport * as login from './login/login'\nimport * as widgets from './widgets/index'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\nimport * as createTypes from './create/types'\n\nexport const dom = typeof window !== 'undefined' ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\n\n// this variables are directly used in the storybook\nexport {\n ns,\n acl,\n aclControl,\n create,\n createTypes,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n initHeader,\n initFooter\n}\n// uses in solid-panes\nexport type { CreateContext, NewAppInstanceOptions } from './create/types'\n\nexport * from './lib/auth'\nexport * from './lib/components'\nexport * from './lib/dialogs'\nexport * from './lib/file-explorer'\nexport * from './lib/code-editor'\n"],"mappings":"A,2lEAkCA,IAAa2C,EAAM,OAAO,OAAW,IAAc,OAAO,SAAW,K"}
1
+ {"version":3,"file":"index.cjs.js","names":["require_ns","require_index","require_index$1","require_iconBase","require_language","require_log","require_index$2","require_index$3","require_messageArea","require_infinite","require_pad","require_participation","require_preferences","require_style","require_table","require_tabs","require_index$4","require_login","require_index$5","require_index$6","require_index$7","require_types","require_Account","require_NoopAuth","require_context","require_ids","require_context$1","require_decorators","require_close_dialog","require_DialogTrait","require_WebComponent","require_DialogComponent","require_FormControlTrait","require_FormControlComponent","require_Dialog","require_show_dialog","require_helpers","require_SolidAuth","require_context$2","require_events","require_relevant_panes","require_compose_explorer","require_pane_menu_items","require_CodeEditor","dom"],"sources":["../src/index.ts"],"sourcesContent":["// REMOVE @ts-ignore as you migrate files to TypeScript\n// @ts-ignore\nimport ns from './lib/ns'\nimport { acl, aclControl } from './acl/index'\nimport { create } from './create/index'\n// @ts-ignore\nimport { icons } from './lib/iconBase'\nimport * as language from './widgets/forms/autocomplete/language'\nimport * as log from './lib/log'\nimport { matrix } from './matrix/index'\nimport { media } from './media/index'\n// @ts-ignore\nimport { messageArea } from './lib/messageArea'\n// @ts-ignore\nimport { infiniteMessageArea } from './chat/infinite'\n// @ts-ignore\nimport * as pad from './lib/pad'\n// @ts-ignore\nimport * as participation from './lib/participation'\n// @ts-ignore\nimport * as preferences from './lib/preferences'\n// @ts-ignore\nimport { style } from './lib/style'\n// @ts-ignore\nimport { renderTableViewPane as table } from './lib/table'\nimport * as tabs from './lib/tabs'\n// @ts-ignore\nimport * as utils from './utils'\nimport * as login from './login/login'\nimport * as widgets from './widgets/index'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\nimport * as createTypes from './create/types'\n\nexport const dom = typeof window !== 'undefined' ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\n\n// this variables are directly used in the storybook\nexport {\n ns,\n acl,\n aclControl,\n create,\n createTypes,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n initHeader,\n initFooter\n}\n// uses in solid-panes\nexport type { CreateContext, NewAppInstanceOptions } from './create/types'\n\nexport * from './lib/auth'\nexport * from './lib/components'\nexport * from './lib/dialogs'\nexport * from './lib/file-explorer'\nexport * from './lib/code-editor'\n"],"mappings":"A,mpEAkCA,IAAa4C,EAAM,OAAO,OAAW,IAAc,OAAO,SAAW,K"}
package/dist/index.esm.js CHANGED
@@ -43,11 +43,12 @@ import { DEFAULT_FILE_EXPLORER_CONTEXT as H, fileExplorerContext as U } from "./
43
43
  import { FILE_EXPLORER_BACK_EVENT as W, FILE_EXPLORER_MANAGE_ACCESS_EVENT as G, FILE_EXPLORER_OPEN_PANE_EVENT as K, isExplorerEvent as q } from "./lib/file-explorer/events.esm.js";
44
44
  import { getPreferredPane as J, getRelevantPanes as Y } from "./lib/file-explorer/relevant-panes.esm.js";
45
45
  import { composeExplorer as X } from "./lib/file-explorer/compose-explorer.esm.js";
46
+ import { preparePaneMenuItems as Z } from "./lib/file-explorer/pane-menu-items.esm.js";
46
47
  import "./lib/file-explorer/index.esm.js";
47
- import { CodeEditor as Z } from "./lib/code-editor/CodeEditor.esm.js";
48
+ import { CodeEditor as Q } from "./lib/code-editor/CodeEditor.esm.js";
48
49
  import "./lib/code-editor/index.esm.js";
49
50
  // src/index.ts
50
- var Q = typeof window < "u" ? window.document : null;
51
- export { C as Account, j as CloseDialogEvent, Z as CodeEditor, T as DEFAULT_AUTH_CONTEXT, O as DEFAULT_DIALOG_CONTEXT, H as DEFAULT_FILE_EXPLORER_CONTEXT, V as DEFAULT_SIGNUP_URL, L as Dialog, P as DialogComponent, M as DialogTrait, W as FILE_EXPLORER_BACK_EVENT, G as FILE_EXPLORER_MANAGE_ACCESS_EVENT, K as FILE_EXPLORER_OPEN_PANE_EVENT, I as FormControlComponent, F as FormControlTrait, w as NoopAuth, R as ShowDialogEvent, B as SolidAuth, N as WebComponent, t as acl, n as aclControl, E as authContext, X as composeExplorer, r as create, S as createTypes, A as customElement, k as dialogContext, Q as dom, U as fileExplorerContext, D as generateId, J as getPreferredPane, Y as getRelevantPanes, i as icons, u as infiniteMessageArea, x as initFooter, b as initHeader, q as isExplorerEvent, a as language, o as log, v as login, s as matrix, c as media, l as messageArea, e as ns, d as pad, f as participation, p as preferences, z as showDialog, m as style, h as table, g as tabs, _ as utils, y as widgets };
51
+ var $ = typeof window < "u" ? window.document : null;
52
+ export { C as Account, j as CloseDialogEvent, Q as CodeEditor, T as DEFAULT_AUTH_CONTEXT, O as DEFAULT_DIALOG_CONTEXT, H as DEFAULT_FILE_EXPLORER_CONTEXT, V as DEFAULT_SIGNUP_URL, L as Dialog, P as DialogComponent, M as DialogTrait, W as FILE_EXPLORER_BACK_EVENT, G as FILE_EXPLORER_MANAGE_ACCESS_EVENT, K as FILE_EXPLORER_OPEN_PANE_EVENT, I as FormControlComponent, F as FormControlTrait, w as NoopAuth, R as ShowDialogEvent, B as SolidAuth, N as WebComponent, t as acl, n as aclControl, E as authContext, X as composeExplorer, r as create, S as createTypes, A as customElement, k as dialogContext, $ as dom, U as fileExplorerContext, D as generateId, J as getPreferredPane, Y as getRelevantPanes, i as icons, u as infiniteMessageArea, x as initFooter, b as initHeader, q as isExplorerEvent, a as language, o as log, v as login, s as matrix, c as media, l as messageArea, e as ns, d as pad, f as participation, p as preferences, Z as preparePaneMenuItems, z as showDialog, m as style, h as table, g as tabs, _ as utils, y as widgets };
52
53
 
53
54
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","names":["ns_default","Account","NoopAuth","DialogTrait","WebComponent","DialogComponent","FormControlTrait","FormControlComponent","Dialog","SolidAuth","dom","CloseDialogEvent","CodeEditor","DEFAULT_AUTH_CONTEXT","DEFAULT_DIALOG_CONTEXT","DEFAULT_FILE_EXPLORER_CONTEXT","DEFAULT_SIGNUP_URL","FILE_EXPLORER_BACK_EVENT","FILE_EXPLORER_MANAGE_ACCESS_EVENT","FILE_EXPLORER_OPEN_PANE_EVENT","ShowDialogEvent","acl","aclControl","authContext","composeExplorer","create","types_exports","customElement","dialogContext","fileExplorerContext","generateId","getPreferredPane","getRelevantPanes","icons","infiniteMessageArea","initFooter","initHeader","isExplorerEvent","language_exports","log_exports","login_exports","matrix","media","messageArea","pad_exports","participation_exports","preferences_exports","showDialog","style","renderTableViewPane","tabs_exports","utils_exports","widgets_exports"],"sources":["../src/index.ts"],"sourcesContent":["// REMOVE @ts-ignore as you migrate files to TypeScript\n// @ts-ignore\nimport ns from './lib/ns'\nimport { acl, aclControl } from './acl/index'\nimport { create } from './create/index'\n// @ts-ignore\nimport { icons } from './lib/iconBase'\nimport * as language from './widgets/forms/autocomplete/language'\nimport * as log from './lib/log'\nimport { matrix } from './matrix/index'\nimport { media } from './media/index'\n// @ts-ignore\nimport { messageArea } from './lib/messageArea'\n// @ts-ignore\nimport { infiniteMessageArea } from './chat/infinite'\n// @ts-ignore\nimport * as pad from './lib/pad'\n// @ts-ignore\nimport * as participation from './lib/participation'\n// @ts-ignore\nimport * as preferences from './lib/preferences'\n// @ts-ignore\nimport { style } from './lib/style'\n// @ts-ignore\nimport { renderTableViewPane as table } from './lib/table'\nimport * as tabs from './lib/tabs'\n// @ts-ignore\nimport * as utils from './utils'\nimport * as login from './login/login'\nimport * as widgets from './widgets/index'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\nimport * as createTypes from './create/types'\n\nexport const dom = typeof window !== 'undefined' ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\n\n// this variables are directly used in the storybook\nexport {\n ns,\n acl,\n aclControl,\n create,\n createTypes,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n initHeader,\n initFooter\n}\n// uses in solid-panes\nexport type { CreateContext, NewAppInstanceOptions } from './create/types'\n\nexport * from './lib/auth'\nexport * from './lib/components'\nexport * from './lib/dialogs'\nexport * from './lib/file-explorer'\nexport * from './lib/code-editor'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAaU,IAAM,OAAO,SAAW,MAAc,OAAO,WAAW"}
1
+ {"version":3,"file":"index.esm.js","names":["ns_default","Account","NoopAuth","DialogTrait","WebComponent","DialogComponent","FormControlTrait","FormControlComponent","Dialog","SolidAuth","dom","CloseDialogEvent","CodeEditor","DEFAULT_AUTH_CONTEXT","DEFAULT_DIALOG_CONTEXT","DEFAULT_FILE_EXPLORER_CONTEXT","DEFAULT_SIGNUP_URL","FILE_EXPLORER_BACK_EVENT","FILE_EXPLORER_MANAGE_ACCESS_EVENT","FILE_EXPLORER_OPEN_PANE_EVENT","ShowDialogEvent","acl","aclControl","authContext","composeExplorer","create","types_exports","customElement","dialogContext","fileExplorerContext","generateId","getPreferredPane","getRelevantPanes","icons","infiniteMessageArea","initFooter","initHeader","isExplorerEvent","language_exports","log_exports","login_exports","matrix","media","messageArea","pad_exports","participation_exports","preferences_exports","preparePaneMenuItems","showDialog","style","renderTableViewPane","tabs_exports","utils_exports","widgets_exports"],"sources":["../src/index.ts"],"sourcesContent":["// REMOVE @ts-ignore as you migrate files to TypeScript\n// @ts-ignore\nimport ns from './lib/ns'\nimport { acl, aclControl } from './acl/index'\nimport { create } from './create/index'\n// @ts-ignore\nimport { icons } from './lib/iconBase'\nimport * as language from './widgets/forms/autocomplete/language'\nimport * as log from './lib/log'\nimport { matrix } from './matrix/index'\nimport { media } from './media/index'\n// @ts-ignore\nimport { messageArea } from './lib/messageArea'\n// @ts-ignore\nimport { infiniteMessageArea } from './chat/infinite'\n// @ts-ignore\nimport * as pad from './lib/pad'\n// @ts-ignore\nimport * as participation from './lib/participation'\n// @ts-ignore\nimport * as preferences from './lib/preferences'\n// @ts-ignore\nimport { style } from './lib/style'\n// @ts-ignore\nimport { renderTableViewPane as table } from './lib/table'\nimport * as tabs from './lib/tabs'\n// @ts-ignore\nimport * as utils from './utils'\nimport * as login from './login/login'\nimport * as widgets from './widgets/index'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\nimport * as createTypes from './create/types'\n\nexport const dom = typeof window !== 'undefined' ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\n\n// this variables are directly used in the storybook\nexport {\n ns,\n acl,\n aclControl,\n create,\n createTypes,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n initHeader,\n initFooter\n}\n// uses in solid-panes\nexport type { CreateContext, NewAppInstanceOptions } from './create/types'\n\nexport * from './lib/auth'\nexport * from './lib/components'\nexport * from './lib/dialogs'\nexport * from './lib/file-explorer'\nexport * from './lib/code-editor'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAaU,IAAM,OAAO,SAAW,MAAc,OAAO,WAAW"}
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { y as e } from "./chunks/solidLogicSingleton.esm-Bvt7E7Vl.js";
2
2
  import { a as t, c as n, n as r, o as i, s as a, t as o } from "./chunks/auth-EK-iYNYZ.js";
3
3
  import { l as s, m as c, t as l } from "./chunks/style-Dlw9-wPn.js";
4
- import { a as u, b as d, t as f } from "./chunks/widgets-B1hBVhRL.js";
5
- import { _ as p, a as m, b as h, c as g, d as _, f as v, g as y, h as b, i as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, x as M, y as N } from "./chunks/src-akaVfkuf.js";
6
- import { _ as P, a as F, g as I, h as L, m as R, n as z, o as B, t as V, v as H, y as U } from "./chunks/components-C8c2Ucm5.js";
7
- import { n as W, t as G } from "./chunks/dialogs-BmtLjMzg.js";
8
- import { t as K } from "./chunks/show-dialog-DAmFslrf.js";
9
- import { n as q, t as J } from "./chunks/context-BDrfQ9bN.js";
10
- import { i as Y, n as X, r as Z, t as Q } from "./chunks/events-CXQHDCs2.js";
11
- export { n as Account, L as CloseDialogEvent, w as CodeEditor, t as DEFAULT_AUTH_CONTEXT, P as DEFAULT_DIALOG_CONTEXT, J as DEFAULT_FILE_EXPLORER_CONTEXT, o as DEFAULT_SIGNUP_URL, W as Dialog, F as DialogComponent, R as DialogTrait, Q as FILE_EXPLORER_BACK_EVENT, X as FILE_EXPLORER_MANAGE_ACCESS_EVENT, Z as FILE_EXPLORER_OPEN_PANE_EVENT, V as FormControlComponent, z as FormControlTrait, a as NoopAuth, K as ShowDialogEvent, r as SolidAuth, B as WebComponent, N as acl, h as aclControl, i as authContext, D as composeExplorer, j as create, T as createTypes, I as customElement, H as dialogContext, k as dom, q as fileExplorerContext, U as generateId, x as getPreferredPane, m as getRelevantPanes, d as icons, v as infiniteMessageArea, O as initFooter, g as initHeader, Y as isExplorerEvent, u as language, c as log, M as login, p as matrix, y as media, b as messageArea, e as ns, E as pad, C as participation, _ as preferences, G as showDialog, l as style, A as table, S as tabs, s as utils, f as widgets };
4
+ import { a as u, b as d, t as f } from "./chunks/widgets-C92ihtlF.js";
5
+ import { S as p, _ as m, a as h, b as g, c as _, d as v, f as y, g as b, h as x, i as S, l as C, m as w, n as T, o as E, p as D, r as O, s as k, t as A, u as j, v as M, x as N, y as P } from "./chunks/src-Cv9Lm1V-.js";
6
+ import { _ as F, a as I, g as L, h as R, m as z, n as B, o as V, t as H, v as U, y as W } from "./chunks/components-C8c2Ucm5.js";
7
+ import { n as G, t as K } from "./chunks/dialogs-BmtLjMzg.js";
8
+ import { t as q } from "./chunks/show-dialog-DAmFslrf.js";
9
+ import { n as J, t as Y } from "./chunks/context-BDrfQ9bN.js";
10
+ import { i as X, n as Z, r as Q, t as $ } from "./chunks/events-CXQHDCs2.js";
11
+ export { n as Account, R as CloseDialogEvent, T as CodeEditor, t as DEFAULT_AUTH_CONTEXT, F as DEFAULT_DIALOG_CONTEXT, Y as DEFAULT_FILE_EXPLORER_CONTEXT, o as DEFAULT_SIGNUP_URL, G as Dialog, I as DialogComponent, z as DialogTrait, $ as FILE_EXPLORER_BACK_EVENT, Z as FILE_EXPLORER_MANAGE_ACCESS_EVENT, Q as FILE_EXPLORER_OPEN_PANE_EVENT, H as FormControlComponent, B as FormControlTrait, a as NoopAuth, q as ShowDialogEvent, r as SolidAuth, V as WebComponent, g as acl, N as aclControl, i as authContext, S as composeExplorer, P as create, k as createTypes, L as customElement, U as dialogContext, A as dom, J as fileExplorerContext, W as generateId, h as getPreferredPane, E as getRelevantPanes, d as icons, D as infiniteMessageArea, _ as initFooter, C as initHeader, X as isExplorerEvent, u as language, c as log, p as login, M as matrix, m as media, b as messageArea, e as ns, w as pad, x as participation, y as preferences, O as preparePaneMenuItems, K as showDialog, l as style, v as table, j as tabs, s as utils, f as widgets };
@@ -1 +1 @@
1
- const e=require("./context.cjs.js"),t=require("./events.cjs.js"),n=require("./relevant-panes.cjs.js"),r=require("./compose-explorer.cjs.js");exports.DEFAULT_FILE_EXPLORER_CONTEXT=e.DEFAULT_FILE_EXPLORER_CONTEXT,exports.FILE_EXPLORER_BACK_EVENT=t.FILE_EXPLORER_BACK_EVENT,exports.FILE_EXPLORER_MANAGE_ACCESS_EVENT=t.FILE_EXPLORER_MANAGE_ACCESS_EVENT,exports.FILE_EXPLORER_OPEN_PANE_EVENT=t.FILE_EXPLORER_OPEN_PANE_EVENT,exports.composeExplorer=r.composeExplorer,exports.fileExplorerContext=e.fileExplorerContext,exports.getPreferredPane=n.getPreferredPane,exports.getRelevantPanes=n.getRelevantPanes,exports.isExplorerEvent=t.isExplorerEvent;
1
+ const e=require("./context.cjs.js"),t=require("./events.cjs.js"),n=require("./relevant-panes.cjs.js"),r=require("./compose-explorer.cjs.js"),i=require("./pane-menu-items.cjs.js");exports.DEFAULT_FILE_EXPLORER_CONTEXT=e.DEFAULT_FILE_EXPLORER_CONTEXT,exports.FILE_EXPLORER_BACK_EVENT=t.FILE_EXPLORER_BACK_EVENT,exports.FILE_EXPLORER_MANAGE_ACCESS_EVENT=t.FILE_EXPLORER_MANAGE_ACCESS_EVENT,exports.FILE_EXPLORER_OPEN_PANE_EVENT=t.FILE_EXPLORER_OPEN_PANE_EVENT,exports.composeExplorer=r.composeExplorer,exports.fileExplorerContext=e.fileExplorerContext,exports.getPreferredPane=n.getPreferredPane,exports.getRelevantPanes=n.getRelevantPanes,exports.isExplorerEvent=t.isExplorerEvent,exports.preparePaneMenuItems=i.preparePaneMenuItems;
@@ -2,4 +2,5 @@ export * from './context';
2
2
  export * from './events';
3
3
  export * from './relevant-panes';
4
4
  export * from './compose-explorer';
5
+ export * from './pane-menu-items';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/file-explorer/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/file-explorer/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA"}
@@ -2,4 +2,5 @@ import { DEFAULT_FILE_EXPLORER_CONTEXT as e, fileExplorerContext as t } from "./
2
2
  import { FILE_EXPLORER_BACK_EVENT as n, FILE_EXPLORER_MANAGE_ACCESS_EVENT as r, FILE_EXPLORER_OPEN_PANE_EVENT as i, isExplorerEvent as a } from "./events.esm.js";
3
3
  import { getPreferredPane as o, getRelevantPanes as s } from "./relevant-panes.esm.js";
4
4
  import { composeExplorer as c } from "./compose-explorer.esm.js";
5
- export { e as DEFAULT_FILE_EXPLORER_CONTEXT, n as FILE_EXPLORER_BACK_EVENT, r as FILE_EXPLORER_MANAGE_ACCESS_EVENT, i as FILE_EXPLORER_OPEN_PANE_EVENT, c as composeExplorer, t as fileExplorerContext, o as getPreferredPane, s as getRelevantPanes, a as isExplorerEvent };
5
+ import { preparePaneMenuItems as l } from "./pane-menu-items.esm.js";
6
+ export { e as DEFAULT_FILE_EXPLORER_CONTEXT, n as FILE_EXPLORER_BACK_EVENT, r as FILE_EXPLORER_MANAGE_ACCESS_EVENT, i as FILE_EXPLORER_OPEN_PANE_EVENT, c as composeExplorer, t as fileExplorerContext, o as getPreferredPane, s as getRelevantPanes, a as isExplorerEvent, l as preparePaneMenuItems };
@@ -0,0 +1,2 @@
1
+ async function e(e,t,n,r){return r?r(t,n):typeof e.icon==`function`?e.icon(t,n):e.icon}async function t(t){return(await Promise.all(t.panes.map(async n=>{let r=n.label(t.subject,t.context);if(!r)return;let i=await e(n,t.subject,t.context,t.iconOverrides?.[n.name]);return{key:n.name,label:r,...i?{icon:i}:{},action:e=>t.openPane(t.subject,n.name,e)}}))).filter(e=>e!==void 0)}exports.preparePaneMenuItems=t;
2
+ //# sourceMappingURL=pane-menu-items.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pane-menu-items.cjs.js","names":["resolvePaneIcon","override","subject","context","pane","preparePaneMenuItems","input","label","icon","event","item"],"sources":["../../../src/lib/file-explorer/pane-menu-items.ts"],"sourcesContent":["import type { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport type { NamedNode } from 'rdflib'\n\nexport type PaneMenuIcon = string\n\nexport type PaneMenuItem = {\n key?: string\n label: string\n icon?: PaneMenuIcon\n action: (event: Event) => void\n}\n\nexport type PaneMenuPane = Omit<PaneDefinition, 'icon'> & {\n icon: string | PaneIconResolver\n}\n\nexport type PaneIconResolver = (\n subject: NamedNode,\n context: DataBrowserContext\n) => PaneMenuIcon | undefined | Promise<PaneMenuIcon | undefined>\n\nexport type PaneMenuPreparation = {\n subject: NamedNode\n context: DataBrowserContext\n panes: PaneMenuPane[]\n openPane: (subject: NamedNode, paneName: string, event: Event) => void\n iconOverrides?: Record<string, PaneIconResolver>\n}\n\nasync function resolvePaneIcon (\n pane: PaneMenuPane,\n subject: NamedNode,\n context: DataBrowserContext,\n override: PaneIconResolver | undefined\n) {\n if (override) return override(subject, context)\n return typeof pane.icon === 'function'\n ? pane.icon(subject, context)\n : pane.icon\n}\n\nexport async function preparePaneMenuItems (\n input: PaneMenuPreparation\n): Promise<PaneMenuItem[]> {\n const items: Array<PaneMenuItem | undefined> = await Promise.all(input.panes.map(async pane => {\n const label = pane.label(input.subject, input.context)\n if (!label) return undefined\n\n const icon = await resolvePaneIcon(\n pane,\n input.subject,\n input.context,\n input.iconOverrides?.[pane.name]\n )\n\n const item: PaneMenuItem = {\n key: pane.name,\n label,\n ...(icon ? { icon } : {}),\n action: (event: Event) => input.openPane(input.subject, pane.name, event)\n }\n return item\n }))\n\n return items.filter((item): item is PaneMenuItem => item !== undefined)\n}\n"],"mappings":"AA6BA,eAAeA,EACb,EACA,EACA,EACA,EACA,CAEA,OADIC,EAAiBA,EAASC,EAASC,CAAO,EACvC,OAAOC,EAAK,MAAS,WACxBA,EAAK,KAAKF,EAASC,CAAO,EAC1BC,EAAK,IACX,CAEA,eAAsBC,EACpB,EACyB,CAqBzB,OAAO,MApB8C,QAAQ,IAAIC,EAAM,MAAM,IAAI,KAAM,IAAQ,CAC7F,IAAMC,EAAQH,EAAK,MAAME,EAAM,QAASA,EAAM,OAAO,EACrD,GAAI,CAACC,EAAO,OAEZ,IAAMC,EAAO,MAAMR,EACjBI,EACAE,EAAM,QACNA,EAAM,QACNA,EAAM,gBAAgBF,EAAK,KAC7B,EAQA,MAAO,CALL,IAAKA,EAAK,KACV,QACA,GAAII,EAAO,CAAE,MAAK,EAAI,CAAC,EACvB,OAAS,GAAiBF,EAAM,SAASA,EAAM,QAASF,EAAK,KAAMK,CAAK,CAEnE,CACT,CAAC,CAAC,EAAA,CAEW,OAAQ,GAA+BC,IAAS,IAAA,EAAS,CACxE,C"}
@@ -0,0 +1,22 @@
1
+ import { DataBrowserContext, PaneDefinition } from 'pane-registry';
2
+ import { NamedNode } from 'rdflib';
3
+ export type PaneMenuIcon = string;
4
+ export type PaneMenuItem = {
5
+ key?: string;
6
+ label: string;
7
+ icon?: PaneMenuIcon;
8
+ action: (event: Event) => void;
9
+ };
10
+ export type PaneMenuPane = Omit<PaneDefinition, 'icon'> & {
11
+ icon: string | PaneIconResolver;
12
+ };
13
+ export type PaneIconResolver = (subject: NamedNode, context: DataBrowserContext) => PaneMenuIcon | undefined | Promise<PaneMenuIcon | undefined>;
14
+ export type PaneMenuPreparation = {
15
+ subject: NamedNode;
16
+ context: DataBrowserContext;
17
+ panes: PaneMenuPane[];
18
+ openPane: (subject: NamedNode, paneName: string, event: Event) => void;
19
+ iconOverrides?: Record<string, PaneIconResolver>;
20
+ };
21
+ export declare function preparePaneMenuItems(input: PaneMenuPreparation): Promise<PaneMenuItem[]>;
22
+ //# sourceMappingURL=pane-menu-items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pane-menu-items.d.ts","sourceRoot":"","sources":["../../../src/lib/file-explorer/pane-menu-items.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AAEjC,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IACxD,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,CAC7B,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,kBAAkB,KACxB,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAA;AAEjE,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,SAAS,CAAA;IAClB,OAAO,EAAE,kBAAkB,CAAA;IAC3B,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CACjD,CAAA;AAcD,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,YAAY,EAAE,CAAC,CAsBzB"}
@@ -0,0 +1,20 @@
1
+ // src/lib/file-explorer/pane-menu-items.ts
2
+ async function e(e, t, n, r) {
3
+ return r ? r(t, n) : typeof e.icon == "function" ? e.icon(t, n) : e.icon;
4
+ }
5
+ async function t(t) {
6
+ return (await Promise.all(t.panes.map(async (n) => {
7
+ let r = n.label(t.subject, t.context);
8
+ if (!r) return;
9
+ let i = await e(n, t.subject, t.context, t.iconOverrides?.[n.name]);
10
+ return {
11
+ key: n.name,
12
+ label: r,
13
+ ...i ? { icon: i } : {},
14
+ action: (e) => t.openPane(t.subject, n.name, e)
15
+ };
16
+ }))).filter((e) => e !== void 0);
17
+ }
18
+ export { t as preparePaneMenuItems };
19
+
20
+ //# sourceMappingURL=pane-menu-items.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pane-menu-items.esm.js","names":["resolvePaneIcon","override","subject","context","pane","preparePaneMenuItems","input","label","icon","event","item"],"sources":["../../../src/lib/file-explorer/pane-menu-items.ts"],"sourcesContent":["import type { DataBrowserContext, PaneDefinition } from 'pane-registry'\nimport type { NamedNode } from 'rdflib'\n\nexport type PaneMenuIcon = string\n\nexport type PaneMenuItem = {\n key?: string\n label: string\n icon?: PaneMenuIcon\n action: (event: Event) => void\n}\n\nexport type PaneMenuPane = Omit<PaneDefinition, 'icon'> & {\n icon: string | PaneIconResolver\n}\n\nexport type PaneIconResolver = (\n subject: NamedNode,\n context: DataBrowserContext\n) => PaneMenuIcon | undefined | Promise<PaneMenuIcon | undefined>\n\nexport type PaneMenuPreparation = {\n subject: NamedNode\n context: DataBrowserContext\n panes: PaneMenuPane[]\n openPane: (subject: NamedNode, paneName: string, event: Event) => void\n iconOverrides?: Record<string, PaneIconResolver>\n}\n\nasync function resolvePaneIcon (\n pane: PaneMenuPane,\n subject: NamedNode,\n context: DataBrowserContext,\n override: PaneIconResolver | undefined\n) {\n if (override) return override(subject, context)\n return typeof pane.icon === 'function'\n ? pane.icon(subject, context)\n : pane.icon\n}\n\nexport async function preparePaneMenuItems (\n input: PaneMenuPreparation\n): Promise<PaneMenuItem[]> {\n const items: Array<PaneMenuItem | undefined> = await Promise.all(input.panes.map(async pane => {\n const label = pane.label(input.subject, input.context)\n if (!label) return undefined\n\n const icon = await resolvePaneIcon(\n pane,\n input.subject,\n input.context,\n input.iconOverrides?.[pane.name]\n )\n\n const item: PaneMenuItem = {\n key: pane.name,\n label,\n ...(icon ? { icon } : {}),\n action: (event: Event) => input.openPane(input.subject, pane.name, event)\n }\n return item\n }))\n\n return items.filter((item): item is PaneMenuItem => item !== undefined)\n}\n"],"mappings":";AA6BA,eAAeA,EACb,GACA,GACA,GACA,GACA;CAEA,OADIC,IAAiBA,EAASC,GAASC,CAAO,IACvC,OAAOC,EAAK,QAAS,aACxBA,EAAK,KAAKF,GAASC,CAAO,IAC1BC,EAAK;AACX;AAEA,eAAsBC,EACpB,GACyB;CAqBzB,QAAO,MApB8C,QAAQ,IAAIC,EAAM,MAAM,IAAI,OAAM,MAAQ;EAC7F,IAAMC,IAAQH,EAAK,MAAME,EAAM,SAASA,EAAM,OAAO;EACrD,IAAI,CAACC,GAAO;EAEZ,IAAMC,IAAO,MAAMR,EACjBI,GACAE,EAAM,SACNA,EAAM,SACNA,EAAM,gBAAgBF,EAAK,KAC7B;EAQA,OAAO;GALL,KAAKA,EAAK;GACV;GACA,GAAII,IAAO,EAAE,QAAK,IAAI,CAAC;GACvB,SAAS,MAAiBF,EAAM,SAASA,EAAM,SAASF,EAAK,MAAMK,CAAK;EAEnE;CACT,CAAC,CAAC,EAAA,CAEW,QAAQ,MAA+BC,MAAS,KAAA,CAAS;AACxE"}
package/dist/loader.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { y as e } from "./chunks/solidLogicSingleton.esm-Bvt7E7Vl.js";
2
2
  import { a as t, c as n, n as r, o as i, s as a, t as o } from "./chunks/auth-EK-iYNYZ.js";
3
3
  import { l as s, m as c, t as l } from "./chunks/style-Dlw9-wPn.js";
4
- import { a as u, b as d, t as f } from "./chunks/widgets-B1hBVhRL.js";
4
+ import { a as u, b as d, t as f } from "./chunks/widgets-C92ihtlF.js";
5
5
  import "./components.js";
6
6
  import { _ as p, a as m, g as h, h as g, m as _, n as v, o as y, t as b, v as x, y as S } from "./chunks/components-C8c2Ucm5.js";
7
7
  import { n as C, t as w } from "./chunks/dialogs-BmtLjMzg.js";
8
8
  import { t as T } from "./chunks/show-dialog-DAmFslrf.js";
9
9
  import { n as E, t as D } from "./chunks/context-BDrfQ9bN.js";
10
10
  import { i as O, n as k, r as A, t as j } from "./chunks/events-CXQHDCs2.js";
11
- import { _ as M, a as N, b as P, c as F, d as I, f as L, g as R, h as z, i as B, l as V, m as H, n as U, o as W, p as G, r as K, s as q, t as J, u as Y, v as X, x as Z, y as Q } from "./chunks/src-akaVfkuf.js";
12
- export { n as Account, g as CloseDialogEvent, U as CodeEditor, t as DEFAULT_AUTH_CONTEXT, p as DEFAULT_DIALOG_CONTEXT, D as DEFAULT_FILE_EXPLORER_CONTEXT, o as DEFAULT_SIGNUP_URL, C as Dialog, m as DialogComponent, _ as DialogTrait, j as FILE_EXPLORER_BACK_EVENT, k as FILE_EXPLORER_MANAGE_ACCESS_EVENT, A as FILE_EXPLORER_OPEN_PANE_EVENT, b as FormControlComponent, v as FormControlTrait, a as NoopAuth, T as ShowDialogEvent, r as SolidAuth, y as WebComponent, Q as acl, P as aclControl, i as authContext, K as composeExplorer, X as create, W as createTypes, h as customElement, x as dialogContext, J as dom, E as fileExplorerContext, S as generateId, B as getPreferredPane, N as getRelevantPanes, d as icons, L as infiniteMessageArea, q as initFooter, F as initHeader, O as isExplorerEvent, u as language, c as log, Z as login, M as matrix, R as media, z as messageArea, e as ns, G as pad, H as participation, I as preferences, w as showDialog, l as style, Y as table, V as tabs, s as utils, f as widgets };
11
+ import { S as M, _ as N, a as P, b as F, c as I, d as L, f as R, g as z, h as B, i as V, l as H, m as U, n as W, o as G, p as K, r as q, s as J, t as Y, u as X, v as Z, x as Q, y as $ } from "./chunks/src-Cv9Lm1V-.js";
12
+ export { n as Account, g as CloseDialogEvent, W as CodeEditor, t as DEFAULT_AUTH_CONTEXT, p as DEFAULT_DIALOG_CONTEXT, D as DEFAULT_FILE_EXPLORER_CONTEXT, o as DEFAULT_SIGNUP_URL, C as Dialog, m as DialogComponent, _ as DialogTrait, j as FILE_EXPLORER_BACK_EVENT, k as FILE_EXPLORER_MANAGE_ACCESS_EVENT, A as FILE_EXPLORER_OPEN_PANE_EVENT, b as FormControlComponent, v as FormControlTrait, a as NoopAuth, T as ShowDialogEvent, r as SolidAuth, y as WebComponent, F as acl, Q as aclControl, i as authContext, V as composeExplorer, $ as create, J as createTypes, h as customElement, x as dialogContext, Y as dom, E as fileExplorerContext, S as generateId, P as getPreferredPane, G as getRelevantPanes, d as icons, K as infiniteMessageArea, I as initFooter, H as initHeader, O as isExplorerEvent, u as language, c as log, M as login, Z as matrix, N as media, z as messageArea, e as ns, U as pad, B as participation, R as preferences, q as preparePaneMenuItems, w as showDialog, l as style, L as table, X as tabs, s as utils, f as widgets };