solid-panes 5.0.0-0 → 5.0.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RDFXMLPane.d.ts.map +1 -1
- package/dist/RDFXMLPane2.cjs.js +1 -2
- package/dist/RDFXMLPane2.cjs.js.map +1 -1
- package/dist/RDFXMLPane2.esm.js +15 -42
- package/dist/RDFXMLPane2.esm.js.map +1 -1
- package/dist/_virtual/~icons/lucide/folder.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/folder.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/{trash-2.esm.js → folder.esm.js} +4 -4
- package/dist/_virtual/~icons/lucide/folder.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/user-round-cog.esm.js.map +1 -0
- package/dist/components/editor-card/EditorCard.cjs.js +6 -0
- package/dist/components/editor-card/EditorCard.cjs.js.map +1 -0
- package/dist/components/editor-card/EditorCard.d.ts +16 -0
- package/dist/components/editor-card/EditorCard.d.ts.map +1 -0
- package/dist/components/editor-card/EditorCard.esm.js +268 -0
- package/dist/components/editor-card/EditorCard.esm.js.map +1 -0
- package/dist/components/editor-card/EditorCard.styles.cjs.js +2 -0
- package/dist/components/editor-card/EditorCard.styles.cjs.js.map +1 -0
- package/dist/components/editor-card/EditorCard.styles.esm.js +7 -0
- package/dist/components/editor-card/EditorCard.styles.esm.js.map +1 -0
- package/dist/components/editor-card/index.cjs.js +1 -0
- package/dist/components/editor-card/index.d.ts +4 -0
- package/dist/components/editor-card/index.d.ts.map +1 -0
- package/dist/components/editor-card/index.esm.js +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +2 -2
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +1 -2
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +16 -16
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +24 -14
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +7 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +94 -66
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +22 -7
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +3 -2
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +90 -65
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +4 -4
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +17 -16
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -1
- package/dist/components/file-explorer-header/index.cjs.js +1 -0
- package/dist/components/file-explorer-header/index.d.ts +3 -0
- package/dist/components/file-explorer-header/index.d.ts.map +1 -0
- package/dist/components/file-explorer-header/index.esm.js +2 -0
- package/dist/components/file-explorer-header/types.d.ts +8 -0
- package/dist/components/file-explorer-header/types.d.ts.map +1 -1
- package/dist/components/header/Header.cjs.js +1 -1
- package/dist/components/header/Header.esm.js +4 -4
- package/dist/components/header/Header.styles.cjs.js +1 -1
- package/dist/components/header/Header.styles.cjs.js.map +1 -1
- package/dist/components/header/Header.styles.esm.js +1 -1
- package/dist/components/header/Header.styles.esm.js.map +1 -1
- package/dist/components/navbar/Navbar.cjs.js +2 -2
- package/dist/components/navbar/Navbar.esm.js +5 -5
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +23 -9
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +7 -4
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +146 -84
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -1
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js +2 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js +7 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.styles.esm.js.map +1 -0
- package/dist/dataContentPane2.cjs.js +1 -1
- package/dist/dataContentPane2.esm.js +1 -1
- package/dist/defaultPane2.cjs.js +1 -1
- package/dist/defaultPane2.cjs.js.map +1 -1
- package/dist/defaultPane2.esm.js +2 -2
- package/dist/defaultPane2.esm.js.map +1 -1
- package/dist/home/homePane.cjs.js +1 -1
- package/dist/home/homePane.cjs.js.map +1 -1
- package/dist/home/homePane.esm.js +1 -1
- package/dist/home/homePane.esm.js.map +1 -1
- package/dist/humanReadablePane.d.ts +1 -1
- package/dist/humanReadablePane.d.ts.map +1 -1
- package/dist/humanReadablePane2.cjs.js +1 -1
- package/dist/humanReadablePane2.cjs.js.map +1 -1
- package/dist/humanReadablePane2.esm.js +2 -2
- package/dist/humanReadablePane2.esm.js.map +1 -1
- package/dist/imagePane2.cjs.js +1 -1
- package/dist/imagePane2.cjs.js.map +1 -1
- package/dist/imagePane2.esm.js +1 -1
- package/dist/imagePane2.esm.js.map +1 -1
- package/dist/internal/internalPane2.cjs.js +1 -1
- package/dist/internal/internalPane2.cjs.js.map +1 -1
- package/dist/internal/internalPane2.esm.js +2 -2
- package/dist/internal/internalPane2.esm.js.map +1 -1
- package/dist/n3Pane.d.ts.map +1 -1
- package/dist/n3Pane2.cjs.js +1 -2
- package/dist/n3Pane2.cjs.js.map +1 -1
- package/dist/n3Pane2.esm.js +10 -34
- package/dist/n3Pane2.esm.js.map +1 -1
- package/dist/outline/manager2.cjs.js +1 -1
- package/dist/outline/manager2.cjs.js.map +1 -1
- package/dist/outline/manager2.esm.js +8 -11
- package/dist/outline/manager2.esm.js.map +1 -1
- package/dist/outline/queryByExample.cjs.js +1 -1
- package/dist/outline/queryByExample.cjs.js.map +1 -1
- package/dist/outline/queryByExample.esm.js +4 -4
- package/dist/outline/queryByExample.esm.js.map +1 -1
- package/dist/outline/userInput.cjs.js +1 -1
- package/dist/outline/userInput.cjs.js.map +1 -1
- package/dist/outline/userInput.esm.js +2 -2
- package/dist/outline/userInput.esm.js.map +1 -1
- package/dist/pad/padPane2.cjs.js +1 -1
- package/dist/pad/padPane2.cjs.js.map +1 -1
- package/dist/pad/padPane2.esm.js +3 -3
- package/dist/pad/padPane2.esm.js.map +1 -1
- package/dist/playlist/playlistPane.cjs.js +1 -1
- package/dist/playlist/playlistPane.cjs.js.map +1 -1
- package/dist/playlist/playlistPane.esm.js +1 -1
- package/dist/playlist/playlistPane.esm.js.map +1 -1
- package/dist/sharing/sharingPane.cjs.js +1 -1
- package/dist/sharing/sharingPane.cjs.js.map +1 -1
- package/dist/sharing/sharingPane.esm.js +1 -1
- package/dist/sharing/sharingPane.esm.js.map +1 -1
- package/dist/social/socialPane2.cjs.js +2 -2
- package/dist/social/socialPane2.cjs.js.map +1 -1
- package/dist/social/socialPane2.esm.js +3 -3
- package/dist/social/socialPane2.esm.js.map +1 -1
- package/dist/social/triage.cjs.js +1 -1
- package/dist/social/triage.cjs.js.map +1 -1
- package/dist/social/triage.esm.js +1 -1
- package/dist/social/triage.esm.js.map +1 -1
- package/dist/transaction/period.cjs.js +1 -1
- package/dist/transaction/period.cjs.js.map +1 -1
- package/dist/transaction/period.esm.js +1 -1
- package/dist/transaction/period.esm.js.map +1 -1
- package/dist/utils/podUtils.cjs.js +1 -1
- package/dist/utils/podUtils.cjs.js.map +1 -1
- package/dist/utils/podUtils.d.ts +6 -1
- package/dist/utils/podUtils.d.ts.map +1 -1
- package/dist/utils/podUtils.esm.js +93 -22
- package/dist/utils/podUtils.esm.js.map +1 -1
- package/dist/versionInfo.cjs.js +1 -1
- package/dist/versionInfo.cjs.js.map +1 -1
- package/dist/versionInfo.esm.js +3 -3
- package/dist/versionInfo.esm.js.map +1 -1
- package/package.json +5 -5
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js +0 -2
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +0 -1
- package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +0 -1
- package/dist/components/file-explorer-header/helper.cjs.js +0 -2
- package/dist/components/file-explorer-header/helper.cjs.js.map +0 -1
- package/dist/components/file-explorer-header/helper.d.ts +0 -15
- package/dist/components/file-explorer-header/helper.d.ts.map +0 -1
- package/dist/components/file-explorer-header/helper.esm.js +0 -64
- package/dist/components/file-explorer-header/helper.esm.js.map +0 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +0 -16
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +0 -1
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +0 -215
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js");const
|
|
1
|
+
const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js");const t=require("./FileExplorerHeader.styles.cjs.js");require("./FileExplorerHeaderSummary.cjs.js"),require("./FileExplorerHeaderControls.cjs.js");let n=require("solid-ui"),r=require("rdflib"),i=require("lit/decorators.js"),a=require("@lit/context"),o=require("lit");var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;function E(e,t,n){D(e,t),t.set(e,n)}function D(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function O(e,t,n){return e.set(A(e,t),n),n}function k(e,t){return e.get(A(e,t))}function A(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=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(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:F(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||F(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 I(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:N(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 N(e){var t=P(e,`string`);return typeof t==`symbol`?t:t+``}function P(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==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 F(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 I(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 L(e){return e}h=[(0,i.customElement)(`file-explorer-header`)];var R;new(w=(l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,T=(g=(0,a.consume)({context:n.fileExplorerContext,subscribe:!0}),v=(0,i.property)({attribute:!1}),b=(0,i.property)({attribute:!1}),S=(0,i.state)(),`_loadedMetadataForUri`),c=class extends n.WebComponent{constructor(...e){super(...e),j(this,T,void p(this)),E(this,l,_(this,void 0)),E(this,u,y(this,[])),E(this,d,x(this,void 0)),E(this,f,C(this,{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}))}get fileExplorerContext(){return k(l,this)}set fileExplorerContext(e){O(l,this,e)}get menuItems(){return k(u,this)}set menuItems(e){O(u,this,e)}get paneIcon(){return k(d,this)}set paneIcon(e){O(d,this,e)}get responseMetadata(){return k(f,this)}set responseMetadata(e){O(f,this,e)}getDefaultResponseMetadata(){return{modified:void 0,isPublic:!1,canEdit:!1,aclUri:void 0}}updated(){this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri&&this._loadedMetadataForUri!==this.fileExplorerContext.subjectUri&&(this._loadedMetadataForUri=this.fileExplorerContext.subjectUri,this.loadResponseMetadata())}async loadResponseMetadata(){if(this.fileExplorerContext?.store&&this.fileExplorerContext.subjectUri)try{let t=await e.fetchResourceMetadata(this.fileExplorerContext.store,(0,r.sym)(this.fileExplorerContext.subjectUri));this.responseMetadata={modified:t.modified,isPublic:t.isPublic,canEdit:t.canEdit,aclUri:t.aclUri}}catch(e){this.responseMetadata=this.getDefaultResponseMetadata(),console.warn(`Failed to load response metadata`,e)}}render(){return o.html`
|
|
2
2
|
<header>
|
|
3
3
|
<file-explorer-header-summary
|
|
4
4
|
.paneIcon=${this.paneIcon}
|
|
@@ -10,5 +10,5 @@ require("../../_virtual/~icons/lucide/share-2.cjs.js"),require("../../_virtual/~
|
|
|
10
10
|
.canEdit=${this.responseMetadata.canEdit}
|
|
11
11
|
></file-explorer-header-controls>
|
|
12
12
|
</header>
|
|
13
|
-
`}},{e:[_,y,x,C,p],c:[R,m]}=M(c,[[g,1,`fileExplorerContext`],[v,1,`menuItems`],[b,1,`paneIcon`],[S,1,`responseMetadata`]],h,0,void 0,n.WebComponent),c),s=class extends L{constructor(){super(R),j(this,`styles`,
|
|
13
|
+
`}},{e:[_,y,x,C,p],c:[R,m]}=M(c,[[g,1,`fileExplorerContext`],[v,1,`menuItems`],[b,1,`paneIcon`],[S,1,`responseMetadata`]],h,0,void 0,n.WebComponent),c),s=class extends L{constructor(){super(R),j(this,`styles`,t.default),m()}},j(s,w,void 0),s),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return R}});
|
|
14
14
|
//# sourceMappingURL=FileExplorerHeader.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeader.cjs.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.cjs.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","fetchResourceMetadata","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_paneIcon","_init_responseMetadata","modified","isPublic","canEdit","aclUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","updated","store","subjectUri","_loadedMetadataForUri","loadResponseMetadata","metadata","error","console","warn","render","onBack","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent, type FileExplorerContext, fileExplorerContext } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { fetchResourceMetadata } from '../../utils/podUtils'\nimport { type FileExplorerResourceMetadata } from './types'\n@customElement('file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n }\n\n protected updated () {\n if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri) {\n this._loadedMetadataForUri = this.fileExplorerContext.subjectUri\n this.loadResponseMetadata()\n }\n }\n\n private async loadResponseMetadata () {\n if (!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri) return\n\n try {\n const metadata = await fetchResourceMetadata(this.fileExplorerContext.store, sym(this.fileExplorerContext.subjectUri))\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.isPublic,\n canEdit: metadata.canEdit,\n aclUri: metadata.aclUri\n }\n } catch (error) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n\n render () {\n return html`\n <header>\n <file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.fileExplorerContext?.onBack}\n .responseMetadata=${this.responseMetadata}\n ></file-explorer-header-summary>\n <file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n ></file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":"skJAY4DU,EAAA,EAAA,EAE3DP,EAAAA,cAAAA,CAAc,sBAAsB,CAAC,EAAA,IAAAQ,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAMnCb,EAAAA,QAAAA,CAAQ,CAAEc,QAASlB,EAAAA,oBAAqBmB,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DlB,EAAAA,SAAAA,CAAS,CAAEmB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BpB,EAAAA,SAAAA,CAAS,CAAEmB,UAAW,EAAM,CAAC,EAACE,GAAAA,EAG9BpB,EAAAA,MAAAA,CAAM,EAAC,yBAAAqB,EAfV,cACgDzB,EAAAA,YAAa,CAAA2B,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAZ,EAAA,KAAAa,EAAA,IAAA,CAAA,EAAAC,EAAA,KAAAnB,EAAAoB,EAAA,KAMPC,IAAAA,EAAS,CAAA,EAAAF,EAAA,KAAAjB,EAAAoB,EAAA,KAGkB,CAAA,CAAE,CAAA,EAAAH,EAAA,KAAAhB,EAAAoB,EAAA,KAGnDF,IAAAA,EAAS,CAAA,EAAAF,EAAA,KAAAf,EAAAoB,EAAA,KAGyE,CAC9GC,SAAUJ,IAAAA,GACVK,SAAU,GACVC,QAAS,GACTC,OAAQP,IAAAA,EACV,CAAC,CAAA,CAAA,CAAA,IAdQhC,qBAAmB,CAAA,OAAAwC,EAAA7B,EAAA,IAAA,CAAA,CAAA,IAAn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ACV,KAAK5C,qBAAqByD,OAAM;8BAC3B,KAAKZ,iBAAgB;;;uBAG5B,KAAKF,UAAS;qBAChB,KAAKE,iBAAiBP,QAAO;;;KAIhD,CACF,EAAC,CAAAoB,EAAA,CAAA3B,EAAAE,EAAAC,EAAAC,EAAAN,GAAA8B,EAAA,CAAAlD,EAAAmD,IAAAC,EAAArC,EAAA,CAAA,CAAAP,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,WAAA,EAAA,CAAAE,EAAA,EAAA,UAAA,EAAA,CAAAC,EAAA,EAAA,kBAAA,CAAA,EAAAf,EAAA,EAAA,IAAA,GAtE+CT,EAAAA,YAAY,EAAAyB,GAAAsC,EAAA,cAAAC,CAAA,CAAArC,aAAA,CAAA,MAAAjB,CAAA,EAAAmB,EAAA,KAAA,SAC1CtB,EAAAA,OAAM,EAAAsD,EAAA,CAAA,CAAA,EAAAhC,EAAAkC,EAAApD,EAAA,IAAA,EAAA,EAAAoD"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WebComponent, FileExplorerContext } from 'solid-ui';
|
|
2
|
-
import { PaneIcon } from './types';
|
|
3
|
-
import { FileExplorerResourceMetadata } from './helper';
|
|
2
|
+
import { PaneIcon, FileExplorerResourceMetadata } from './types';
|
|
4
3
|
export default class FileExplorerHeader extends WebComponent {
|
|
5
4
|
static styles: any;
|
|
6
5
|
private _loadedMetadataForUri;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeader.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAuB,MAAM,UAAU,CAAA;AAItF,OAAO,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,iCAAiC,CAAA;AAExC,OAAO,6BAA6B,CAAA;AACpC,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAuB,MAAM,UAAU,CAAA;AAItF,OAAO,uBAAuB,CAAA;AAC9B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,iCAAiC,CAAA;AAExC,OAAO,6BAA6B,CAAA;AACpC,OAAO,8BAA8B,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,SAAS,CAAA;AAE3D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,MAAM,CAAC,MAAM,MAAS;IAEtB,OAAO,CAAC,qBAAqB,CAAoB;IAGjD,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAA8C;IAG/F,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;KAAE,CAAC,CAAK;IAGjF,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAmC;IAG9D,QAAQ,CAAC,gBAAgB,EAAE,IAAI,CAAC,4BAA4B,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC,CAK5G;IAED,OAAO,CAAC,0BAA0B;IASlC,SAAS,CAAC,OAAO;YAOH,oBAAoB;IAiBlC,MAAM;CAeP"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import { fetchResourceMetadata as e } from "../../utils/podUtils.esm.js";
|
|
1
2
|
import "../../_virtual/~icons/lucide/share-2.esm.js";
|
|
2
3
|
import "../../_virtual/~icons/lucide/pencil.esm.js";
|
|
3
4
|
import "../../_virtual/~icons/lucide/ellipsis-vertical.esm.js";
|
|
4
|
-
import
|
|
5
|
+
import t from "./FileExplorerHeader.styles.esm.js";
|
|
5
6
|
import "./FileExplorerHeaderSummary.esm.js";
|
|
6
7
|
import "./FileExplorerHeaderControls.esm.js";
|
|
7
|
-
import { fetchContentAndMetadata as t } from "./helper.esm.js";
|
|
8
8
|
import { WebComponent as n, fileExplorerContext as r } from "solid-ui";
|
|
9
9
|
import { sym as i } from "rdflib";
|
|
10
|
-
import {
|
|
11
|
-
import { consume as
|
|
12
|
-
import {
|
|
10
|
+
import { customElement as a, property as o, state as s } from "lit/decorators.js";
|
|
11
|
+
import { consume as c } from "@lit/context";
|
|
12
|
+
import { html as l } from "lit";
|
|
13
13
|
//#region src/components/file-explorer-header/FileExplorerHeader.ts
|
|
14
14
|
var u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O;
|
|
15
15
|
function k(e, t, n) {
|
|
@@ -183,12 +183,12 @@ function z(e) {
|
|
|
183
183
|
function B(e) {
|
|
184
184
|
return e;
|
|
185
185
|
}
|
|
186
|
-
v = [
|
|
186
|
+
v = [a("file-explorer-header")];
|
|
187
187
|
var V;
|
|
188
|
-
new (D = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), O = (y =
|
|
188
|
+
new (D = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m = /*#__PURE__*/ new WeakMap(), h = /*#__PURE__*/ new WeakMap(), O = (y = c({
|
|
189
189
|
context: r,
|
|
190
190
|
subscribe: !0
|
|
191
|
-
}), x =
|
|
191
|
+
}), x = o({ attribute: !1 }), C = o({ attribute: !1 }), T = s(), "_loadedMetadataForUri"), d = class extends n {
|
|
192
192
|
constructor(...e) {
|
|
193
193
|
super(...e), P(this, O, void g(this)), k(this, f, b(this, void 0)), k(this, p, S(this, [])), k(this, m, w(this, void 0)), k(this, h, E(this, {
|
|
194
194
|
modified: void 0,
|
|
@@ -233,20 +233,20 @@ new (D = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
233
233
|
this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri && (this._loadedMetadataForUri = this.fileExplorerContext.subjectUri, this.loadResponseMetadata());
|
|
234
234
|
}
|
|
235
235
|
async loadResponseMetadata() {
|
|
236
|
-
if (
|
|
237
|
-
let
|
|
236
|
+
if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri) try {
|
|
237
|
+
let t = await e(this.fileExplorerContext.store, i(this.fileExplorerContext.subjectUri));
|
|
238
238
|
this.responseMetadata = {
|
|
239
|
-
modified:
|
|
240
|
-
isPublic:
|
|
241
|
-
canEdit:
|
|
242
|
-
aclUri:
|
|
239
|
+
modified: t.modified,
|
|
240
|
+
isPublic: t.isPublic,
|
|
241
|
+
canEdit: t.canEdit,
|
|
242
|
+
aclUri: t.aclUri
|
|
243
243
|
};
|
|
244
244
|
} catch (e) {
|
|
245
245
|
this.responseMetadata = this.getDefaultResponseMetadata(), console.warn("Failed to load response metadata", e);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
render() {
|
|
249
|
-
return
|
|
249
|
+
return l`
|
|
250
250
|
<header>
|
|
251
251
|
<file-explorer-header-summary
|
|
252
252
|
.paneIcon=${this.paneIcon}
|
|
@@ -283,7 +283,7 @@ new (D = (f = /*#__PURE__*/ new WeakMap(), p = /*#__PURE__*/ new WeakMap(), m =
|
|
|
283
283
|
]
|
|
284
284
|
], v, 0, void 0, n), d), u = class extends B {
|
|
285
285
|
constructor() {
|
|
286
|
-
super(V), P(this, "styles",
|
|
286
|
+
super(V), P(this, "styles", t), _();
|
|
287
287
|
}
|
|
288
288
|
}, P(u, D, void 0), u)();
|
|
289
289
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeader.esm.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.esm.js","names":["sym","WebComponent","fileExplorerContext","customElement","property","state","consume","html","styles","fetchResourceMetadata","_classDecs","_FileExplorerHeader","_FileExplorerHeader2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_paneIconDecs","_responseMetadataDecs","_FileExplorerHeader3","FileExplorerHeader","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_paneIcon","_init_responseMetadata","modified","isPublic","canEdit","aclUri","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","paneIcon","responseMetadata","getDefaultResponseMetadata","updated","store","subjectUri","_loadedMetadataForUri","loadResponseMetadata","metadata","error","console","warn","render","onBack","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.ts"],"sourcesContent":["import { sym } from 'rdflib'\nimport { WebComponent, type FileExplorerContext, fileExplorerContext } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport '~icons/lucide/share-2'\nimport '~icons/lucide/pencil'\nimport '~icons/lucide/ellipsis-vertical'\nimport styles from './FileExplorerHeader.styles.css'\nimport './FileExplorerHeaderSummary'\nimport './FileExplorerHeaderControls'\nimport { PaneIcon } from './types'\nimport { fetchResourceMetadata } from '../../utils/podUtils'\nimport { type FileExplorerResourceMetadata } from './types'\n@customElement('file-explorer-header')\nexport default class FileExplorerHeader extends WebComponent {\n static styles = styles\n\n private _loadedMetadataForUri: string | undefined\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void }> = []\n\n @property({ attribute: false })\n accessor paneIcon: PaneIcon = undefined as unknown as PaneIcon\n\n @state()\n accessor responseMetadata: Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> = {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n\n private getDefaultResponseMetadata (): Pick<FileExplorerResourceMetadata, 'modified' | 'isPublic' | 'canEdit' | 'aclUri'> {\n return {\n modified: undefined,\n isPublic: false,\n canEdit: false,\n aclUri: undefined\n }\n }\n\n protected updated () {\n if (this.fileExplorerContext?.store && this.fileExplorerContext.subjectUri && this._loadedMetadataForUri !== this.fileExplorerContext.subjectUri) {\n this._loadedMetadataForUri = this.fileExplorerContext.subjectUri\n this.loadResponseMetadata()\n }\n }\n\n private async loadResponseMetadata () {\n if (!this.fileExplorerContext?.store || !this.fileExplorerContext.subjectUri) return\n\n try {\n const metadata = await fetchResourceMetadata(this.fileExplorerContext.store, sym(this.fileExplorerContext.subjectUri))\n this.responseMetadata = {\n modified: metadata.modified,\n isPublic: metadata.isPublic,\n canEdit: metadata.canEdit,\n aclUri: metadata.aclUri\n }\n } catch (error) {\n this.responseMetadata = this.getDefaultResponseMetadata()\n console.warn('Failed to load response metadata', error)\n }\n }\n\n render () {\n return html`\n <header>\n <file-explorer-header-summary\n .paneIcon=${this.paneIcon}\n .onBackClick=${this.fileExplorerContext?.onBack}\n .responseMetadata=${this.responseMetadata}\n ></file-explorer-header-summary>\n <file-explorer-header-controls\n .menuItems=${this.menuItems}\n .canEdit=${this.responseMetadata.canEdit}\n ></file-explorer-header-controls>\n </header>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAY4DU,IAAA,CAE3DP,EAAc,sBAAsB,CAAC;AAAA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AAA,GAtE+CT,CAAY,GAAAyB,IAAAsC,IAAA,cAAAC,EAAA;CAAArC,cAAA;EAAA,MAAAjB,CAAA,GAAAmB,EAAA,MAAA,UAC1CtB,CAAM,GAAAsD,EAAA;CAAA;AAAA,GAAAhC,EAAAkC,GAAApD,GAAA,KAAA,CAAA,GAAAoD,GAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=require("lit").css`:host header{text-align:right;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:
|
|
1
|
+
var e=require("lit").css`:host header{text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}`;exports.default=e;
|
|
2
2
|
//# sourceMappingURL=FileExplorerHeader.styles.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeader.styles.cjs.js","names":[],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n width: 100%;\n text-align: right;\n padding:
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.styles.cjs.js","names":[],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
//#region src/components/file-explorer-header/FileExplorerHeader.styles.css
|
|
3
|
-
var t = e`:host header{text-align:right;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:
|
|
3
|
+
var t = e`:host header{text-align:right;border-bottom:1px solid var(--solid-ui-color-gray-200,#cbd5e1);flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;padding:10px;display:flex}`;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t as default };
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeader.styles.esm.js","names":[],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n width: 100%;\n text-align: right;\n padding:
|
|
1
|
+
{"version":3,"file":"FileExplorerHeader.styles.esm.js","names":[],"sources":["../../../src/components/file-explorer-header/FileExplorerHeader.styles.css"],"sourcesContent":[":host {\n header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n flex-wrap: nowrap;\n width: 100%;\n text-align: right;\n padding: 10px;\n border-bottom: 1px solid var(--solid-ui-color-gray-200, #cbd5e1);\n }\n}\n"],"mappings":""}
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
-
require("../../_virtual/~icons/lucide/
|
|
1
|
+
const e=require("../../utils/podUtils.cjs.js");require("../../_virtual/~icons/lucide/pencil.cjs.js"),require("../../_virtual/~icons/lucide/user-round-cog.cjs.js");const t=require("./FileExplorerHeaderControls.styles.cjs.js");require("../resource-actions-menu/ResourceActionsMenu.cjs.js");let n=require("solid-ui"),r=require("lit/decorators.js"),i=require("@lit/context"),a=require("lit");require("solid-ui/components/button");var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;function T(e,t,n){E(e,t),t.set(e,n)}function E(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function D(e,t,n){return e.set(k(e,t),n),n}function O(e,t){return e.get(k(e,t))}function k(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 A(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(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:P(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||P(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 F(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:M(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 M(e){var t=N(e,`string`);return typeof t==`symbol`?t:t+``}function N(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==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 P(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 F(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 I(e){return e}m=[(0,r.customElement)(`file-explorer-header-controls`)];var L;new(C=(c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,w=(h=(0,i.consume)({context:n.fileExplorerContext,subscribe:!0}),_=(0,r.property)({attribute:!1}),y=(0,r.property)({type:Boolean}),x=(0,r.state)(),`mobileMediaQuery`),s=class extends n.WebComponent{constructor(...e){super(...e),A(this,w,void f(this)),A(this,`mobileQuery`,`(max-width: 600px)`),A(this,`handleMobileMediaChange`,e=>{this.isMobile=e.matches}),T(this,c,g(this,void 0)),T(this,l,v(this,[])),T(this,u,b(this,!1)),T(this,d,S(this,typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(max-width: 600px)`).matches))}get fileExplorerContext(){return O(c,this)}set fileExplorerContext(e){D(c,this,e)}get menuItems(){return O(l,this)}set menuItems(e){D(l,this,e)}get canEdit(){return O(u,this)}set canEdit(e){D(u,this,e)}get isMobile(){return O(d,this)}set isMobile(e){D(d,this,e)}connectedCallback(){super.connectedCallback(),!(typeof window>`u`||typeof window.matchMedia!=`function`)&&(this.mobileMediaQuery=window.matchMedia(this.mobileQuery),this.isMobile=this.mobileMediaQuery.matches,this.mobileMediaQuery.addEventListener(`change`,this.handleMobileMediaChange))}disconnectedCallback(){this.mobileMediaQuery?.removeEventListener(`change`,this.handleMobileMediaChange),this.mobileMediaQuery=void 0,super.disconnectedCallback()}getEditTooltip(){return this.canEdit?`Edit`:`No Access`}renderDirtyIndicator(){return this.fileExplorerContext.edit?.isDirty?a.html`<span class="dirtyIndicator" title="This file has unsaved changes">Unsaved</span>`:a.nothing}render(){let t=e.isContainerSubject(this.fileExplorerContext.store,this.fileExplorerContext.subjectUri),n=this.fileExplorerContext.paneSupportsEditing;return a.html`
|
|
2
2
|
<div>
|
|
3
3
|
${this.renderDirtyIndicator()}
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
${!t&&!this.isMobile?a.html`
|
|
5
|
+
<solid-ui-button class="file-explorer-header-action-button" variant="ghost" title="Manage Access" @click=${this.fileExplorerContext.handleAccessClick}>
|
|
6
|
+
<icon-lucide-user-round-cog slot="icon"></icon-lucide-user-round-cog>
|
|
7
|
+
</solid-ui-button>
|
|
8
|
+
${n?a.html`
|
|
9
|
+
<solid-ui-button
|
|
10
|
+
class="file-explorer-header-action-button"
|
|
11
|
+
variant="ghost"
|
|
12
|
+
title=${this.getEditTooltip()}
|
|
13
|
+
?disabled=${!this.canEdit}
|
|
14
|
+
@click=${this.fileExplorerContext.edit?.onEdit}
|
|
15
|
+
>
|
|
16
|
+
<icon-lucide-pencil slot="icon"></icon-lucide-pencil>
|
|
17
|
+
</solid-ui-button>
|
|
18
|
+
`:a.nothing}
|
|
19
|
+
`:a.nothing}
|
|
15
20
|
<resource-actions-menu
|
|
16
|
-
.store=${this.fileExplorerContext
|
|
21
|
+
.store=${this.fileExplorerContext.store}
|
|
22
|
+
.handleAccessClick=${this.fileExplorerContext.handleAccessClick}
|
|
23
|
+
.handleEditingClick=${this.fileExplorerContext.edit?.onEdit}
|
|
24
|
+
.paneSupportsEditing=${this.fileExplorerContext.paneSupportsEditing}
|
|
25
|
+
.canEdit=${this.canEdit}
|
|
17
26
|
.subjectUri=${this.fileExplorerContext?.subjectUri}
|
|
18
27
|
.menuItems=${this.menuItems}
|
|
28
|
+
.isMobile=${this.isMobile}
|
|
19
29
|
></resource-actions-menu>
|
|
20
30
|
</div>
|
|
21
|
-
`}},{e:[
|
|
31
|
+
`}},{e:[g,v,b,S,f],c:[L,p]}=j(s,[[h,1,`fileExplorerContext`],[_,1,`menuItems`],[y,1,`canEdit`],[x,1,`isMobile`]],m,0,void 0,n.WebComponent),s),o=class extends I{constructor(){super(L),A(this,`styles`,t.default),p()}},A(o,C,void 0),o),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return L}});
|
|
22
32
|
//# sourceMappingURL=FileExplorerHeaderControls.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeaderControls.cjs.js","names":["WebComponent","customElement","property","consume","html","nothing","styles","fileExplorerContext","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","
|
|
1
|
+
{"version":3,"file":"FileExplorerHeaderControls.cjs.js","names":["WebComponent","customElement","property","state","consume","html","nothing","styles","fileExplorerContext","isContainerSubject","_classDecs","_FileExplorerHeaderCo","_FileExplorerHeaderCo2","_A","WeakMap","_B","_C","_D","_ref","_fileExplorerContextDecs","context","subscribe","_menuItemsDecs","attribute","_canEditDecs","type","Boolean","_isMobileDecs","_FileExplorerHeaderControls","FileExplorerHeaderControls","constructor","args","_defineProperty","_initProto","event","isMobile","matches","_classPrivateFieldInitSpec","_init_fileExplorerContext","undefined","_init_menuItems","_init_canEdit","_init_isMobile","window","matchMedia","_classPrivateFieldGet","v","_classPrivateFieldSet","menuItems","canEdit","connectedCallback","mobileMediaQuery","mobileQuery","addEventListener","handleMobileMediaChange","disconnectedCallback","removeEventListener","getEditTooltip","renderDirtyIndicator","edit","isDirty","render","isContainerResource","store","subjectUri","supportsEditing","paneSupportsEditing","handleAccessClick","onEdit","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"sourcesContent":["import { WebComponent } from 'solid-ui'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { consume } from '@lit/context'\nimport { html, nothing } from 'lit'\nimport 'solid-ui/components/button'\nimport '~icons/lucide/user-round-cog'\nimport '~icons/lucide/pencil'\nimport styles from './FileExplorerHeaderControls.styles.css'\nimport '../resource-actions-menu/ResourceActionsMenu'\nimport { fileExplorerContext, type FileExplorerContext } from 'solid-ui'\nimport { isContainerSubject } from '../../utils/podUtils'\n\n@customElement('file-explorer-header-controls')\nexport default class FileExplorerHeaderControls extends WebComponent {\n static styles = styles\n\n private mobileMediaQuery: MediaQueryList | undefined\n private readonly mobileQuery = '(max-width: 600px)'\n private readonly handleMobileMediaChange = (event: MediaQueryListEvent) => {\n this.isMobile = event.matches\n }\n\n @consume({ context: fileExplorerContext, subscribe: true })\n accessor fileExplorerContext: FileExplorerContext = undefined as unknown as FileExplorerContext\n\n @property({ attribute: false })\n accessor menuItems: Array<{ label: string, action: (event: Event) => void, icon?: HTMLElement }> = []\n\n @property({ type: Boolean })\n accessor canEdit: boolean = false\n\n @state()\n accessor isMobile = typeof window !== 'undefined' && typeof window.matchMedia === 'function'\n ? window.matchMedia('(max-width: 600px)').matches\n : false\n\n connectedCallback () {\n super.connectedCallback()\n\n if (typeof window === 'undefined' || typeof window.matchMedia !== 'function') {\n return\n }\n\n this.mobileMediaQuery = window.matchMedia(this.mobileQuery)\n this.isMobile = this.mobileMediaQuery.matches\n this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange)\n }\n\n disconnectedCallback () {\n this.mobileMediaQuery?.removeEventListener('change', this.handleMobileMediaChange)\n this.mobileMediaQuery = undefined\n super.disconnectedCallback()\n }\n\n // TODO: Add broken then use this function to set tooltip and disable edit button\n /* private setEditable() {\n const sourcePaneState = this.sourceContext?.sourcePaneState\n const { canEdit } = this.sourceContext?.headerMetadata ?? { canEdit: false }\n const subject = this.sourceContext?.subject\n if (!sourcePaneState || !canEdit || sourcePaneState.broken || (subject && subject.endsWith('/'))) return\n\n this.sourceContext?.setEditing?.()\n } */\n\n private getEditTooltip () {\n if (!this.canEdit) return 'No Access'\n return 'Edit'\n }\n\n private renderDirtyIndicator () {\n if (!this.fileExplorerContext.edit?.isDirty) return nothing\n\n return html`<span class=\"dirtyIndicator\" title=\"This file has unsaved changes\">Unsaved</span>`\n }\n\n render () {\n const isContainerResource = isContainerSubject(this.fileExplorerContext.store, this.fileExplorerContext.subjectUri)\n const supportsEditing = this.fileExplorerContext.paneSupportsEditing\n\n return html`\n <div>\n ${this.renderDirtyIndicator()}\n ${!isContainerResource && !this.isMobile\n ? html`\n <solid-ui-button class=\"file-explorer-header-action-button\" variant=\"ghost\" title=\"Manage Access\" @click=${this.fileExplorerContext.handleAccessClick}>\n <icon-lucide-user-round-cog slot=\"icon\"></icon-lucide-user-round-cog>\n </solid-ui-button>\n ${supportsEditing\n ? html`\n <solid-ui-button\n class=\"file-explorer-header-action-button\"\n variant=\"ghost\"\n title=${this.getEditTooltip()}\n ?disabled=${!this.canEdit}\n @click=${this.fileExplorerContext.edit?.onEdit}\n >\n <icon-lucide-pencil slot=\"icon\"></icon-lucide-pencil>\n </solid-ui-button>\n `\n : nothing}\n `\n : nothing}\n <resource-actions-menu\n .store=${this.fileExplorerContext.store}\n .handleAccessClick=${this.fileExplorerContext.handleAccessClick}\n .handleEditingClick=${this.fileExplorerContext.edit?.onEdit}\n .paneSupportsEditing=${this.fileExplorerContext.paneSupportsEditing}\n .canEdit=${this.canEdit}\n .subjectUri=${this.fileExplorerContext?.subjectUri}\n .menuItems=${this.menuItems}\n .isMobile=${this.isMobile}\n ></resource-actions-menu>\n </div>\n `\n }\n}\n"],"mappings":"wgJAUyDU,EAAA,EAAA,EAExDT,EAAAA,cAAAA,CAAc,+BAA+B,CAAC,EAAA,IAAAU,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,EAAA,IAAAH,QAAAI,GAAAC,GAAAA,EAU5Cf,EAAAA,QAAAA,CAAQ,CAAEgB,QAASZ,EAAAA,oBAAqBa,UAAW,EAAK,CAAC,EAACC,GAAAA,EAG1DpB,EAAAA,SAAAA,CAAS,CAAEqB,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BtB,EAAAA,SAAAA,CAAS,CAAEuB,KAAMC,OAAQ,CAAC,EAACC,GAAAA,EAG3BxB,EA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EAAA,CAAA,CAAAT,EAAA,EAAA,qBAAA,EAAA,CAAAG,EAAA,EAAA,WAAA,EAAA,CAAAE,EAAA,EAAA,SAAA,EAAA,CAAAG,EAAA,EAAA,UAAA,CAAA,EAAAjB,EAAA,EAAA,IAAA,GAtGuDV,EAAAA,YAAY,EAAA4B,GAAA6C,EAAA,cAAAC,CAAA,CAAA5C,aAAA,CAAA,MAAAnB,CAAA,EAAAqB,EAAA,KAAA,SAClDzB,EAAAA,OAAM,EAAAgE,EAAA,CAAA,CAAA,EAAAvC,EAAAyC,EAAA7D,EAAA,IAAA,EAAA,EAAA6D"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { WebComponent, FileExplorerContext } from 'solid-ui';
|
|
2
2
|
export default class FileExplorerHeaderControls extends WebComponent {
|
|
3
3
|
static styles: any;
|
|
4
|
+
private mobileMediaQuery;
|
|
5
|
+
private readonly mobileQuery;
|
|
6
|
+
private readonly handleMobileMediaChange;
|
|
4
7
|
accessor fileExplorerContext: FileExplorerContext;
|
|
5
8
|
accessor menuItems: Array<{
|
|
6
9
|
label: string;
|
|
7
10
|
action: (event: Event) => void;
|
|
11
|
+
icon?: HTMLElement;
|
|
8
12
|
}>;
|
|
9
13
|
accessor canEdit: boolean;
|
|
10
|
-
|
|
14
|
+
accessor isMobile: boolean;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
11
17
|
private getEditTooltip;
|
|
12
18
|
private renderDirtyIndicator;
|
|
13
19
|
render(): import('lit-html').TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileExplorerHeaderControls.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAIvC,OAAO,4BAA4B,CAAA;AACnC,OAAO,
|
|
1
|
+
{"version":3,"file":"FileExplorerHeaderControls.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/FileExplorerHeaderControls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAIvC,OAAO,4BAA4B,CAAA;AACnC,OAAO,8BAA8B,CAAA;AACrC,OAAO,sBAAsB,CAAA;AAE7B,OAAO,8CAA8C,CAAA;AACrD,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAIxE,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,YAAY;IAClE,MAAM,CAAC,MAAM,MAAS;IAEtB,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAuB;IACnD,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAEvC;IAGD,QAAQ,CAAC,mBAAmB,EAAE,mBAAmB,CAA8C;IAG/F,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;QAAC,IAAI,CAAC,EAAE,WAAW,CAAA;KAAE,CAAC,CAAK;IAGrG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAQ;IAGjC,QAAQ,CAAC,QAAQ,UAER;IAET,iBAAiB;IAYjB,oBAAoB;IAgBpB,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,oBAAoB;IAM5B,MAAM;CAwCP"}
|