solid-panes 4.4.2-5 → 4.4.2-7
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/RDFXMLPane2.cjs.js +1 -1
- package/dist/RDFXMLPane2.esm.js +1 -1
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/arrow-left.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/arrow-left.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/ellipsis-vertical.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/globe.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/globe.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/lock-keyhole.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/pencil.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/pencil.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/share-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/share-2.esm.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js +2 -0
- package/dist/_virtual/~icons/lucide/trash-2.cjs.js.map +1 -0
- package/dist/_virtual/~icons/lucide/trash-2.esm.js +11 -0
- package/dist/_virtual/~icons/lucide/trash-2.esm.js.map +1 -0
- package/dist/audio/audioPane.cjs.js +1 -1
- package/dist/audio/audioPane.cjs.js.map +1 -1
- package/dist/audio/audioPane.esm.js +13 -10
- package/dist/audio/audioPane.esm.js.map +1 -1
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js +14 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts +19 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js +292 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerHeader.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js +22 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts +15 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js +266 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderControls.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js +19 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts +19 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js +321 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerHeaderSummary.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js +13 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts +36 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.d.ts.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js +468 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.esm.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js +2 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js +7 -0
- package/dist/components/file-explorer-header/FileExplorerProvider.styles.esm.js.map +1 -0
- package/dist/components/file-explorer-header/helper.cjs.js +2 -0
- package/dist/components/file-explorer-header/helper.cjs.js.map +1 -0
- package/dist/components/file-explorer-header/helper.d.ts +15 -0
- package/dist/components/file-explorer-header/helper.d.ts.map +1 -0
- package/dist/components/file-explorer-header/helper.esm.js +64 -0
- package/dist/components/file-explorer-header/helper.esm.js.map +1 -0
- package/dist/components/file-explorer-header/types.d.ts +2 -0
- package/dist/components/file-explorer-header/types.d.ts.map +1 -0
- package/dist/components/header/Header.cjs.js +1 -1
- package/dist/components/header/Header.cjs.js.map +1 -1
- package/dist/components/header/Header.esm.js +3 -3
- package/dist/components/navbar/Navbar.cjs.js +1 -1
- package/dist/components/navbar/Navbar.cjs.js.map +1 -1
- package/dist/components/navbar/Navbar.esm.js +3 -3
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js +16 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts +8 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js +215 -0
- package/dist/components/resource-actions-menu/DeleteResourceDialog.esm.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js +18 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.cjs.js.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts +16 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.d.ts.map +1 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js +260 -0
- package/dist/components/resource-actions-menu/ResourceActionsMenu.esm.js.map +1 -0
- package/dist/dashboard/basicPreferences.cjs.js +1 -1
- package/dist/dashboard/basicPreferences.cjs.js.map +1 -1
- package/dist/dashboard/dashboardPane.cjs.js +1 -1
- package/dist/dashboard/dashboardPane.cjs.js.map +1 -1
- package/dist/home/homePane.cjs.js +1 -1
- package/dist/home/homePane.cjs.js.map +1 -1
- package/dist/internal/internalPane2.cjs.js +1 -1
- package/dist/internal/internalPane2.cjs.js.map +1 -1
- package/dist/mainPage/header.cjs.js +1 -1
- package/dist/mainPage/header.cjs.js.map +1 -1
- package/dist/n3Pane2.cjs.js +1 -1
- package/dist/n3Pane2.esm.js +1 -1
- package/dist/outline/manager2.cjs.js +1 -2
- package/dist/outline/manager2.cjs.js.map +1 -1
- package/dist/outline/manager2.esm.js +356 -397
- package/dist/outline/manager2.esm.js.map +1 -1
- package/dist/outline/propertyViews.cjs.js +1 -1
- package/dist/outline/propertyViews.cjs.js.map +1 -1
- package/dist/outline/sourcePaneIcon.d.ts +2 -0
- package/dist/outline/sourcePaneIcon.d.ts.map +1 -0
- package/dist/outline/userInput.cjs.js +1 -1
- package/dist/outline/userInput.cjs.js.map +1 -1
- package/dist/outline/userInput.esm.js +6 -4
- 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/sharing/sharingPane.cjs.js +1 -1
- package/dist/sharing/sharingPane.cjs.js.map +1 -1
- package/dist/social/editProfileDetails.cjs.js +1 -1
- package/dist/social/editProfileDetails.cjs.js.map +1 -1
- package/dist/social/editProfileDetails.esm.js +1 -1
- package/dist/social/socialPane2.cjs.js +1 -1
- package/dist/social/socialPane2.cjs.js.map +1 -1
- package/dist/social/socialSections.cjs.js +1 -1
- package/dist/social/socialSections.cjs.js.map +1 -1
- package/dist/social/socialSections.esm.js +7 -6
- package/dist/social/socialSections.esm.js.map +1 -1
- package/dist/social/triage.cjs.js +1 -1
- package/dist/social/triage.cjs.js.map +1 -1
- package/dist/tabbed/tabbedPane.cjs.js +1 -1
- package/dist/tabbed/tabbedPane.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.dom.cjs.js +1 -1
- package/dist/trustedApplications/trustedApplications.dom.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.utils.cjs.js +1 -1
- package/dist/trustedApplications/trustedApplications.utils.cjs.js.map +1 -1
- package/dist/trustedApplications/trustedApplications.view.cjs.js +1 -1
- package/dist/trustedApplications/trustedApplications.view.cjs.js.map +1 -1
- package/dist/utils/podUtils.cjs.js +1 -1
- package/dist/utils/podUtils.cjs.js.map +1 -1
- package/dist/utils/webIdUtils.cjs.js +1 -1
- package/dist/utils/webIdUtils.cjs.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 +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/file-explorer-header/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require("../../_virtual
|
|
1
|
+
require("../../_virtual/~icons/lucide/help-circle.cjs.js");const e=require("./Header.styles.cjs.js");let t=require("solid-ui"),n=require("lit"),r=require("lit/decorators.js");require("solid-ui/components/button"),require("solid-ui/components/menu"),require("solid-ui/components/menu-item"),require("solid-ui/components/account"),require("solid-ui/components/solid-emblem");var i,a,o,s,c,l,u,d,f,p;function m(e,t,n){h(e,t),t.set(e,n)}function h(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(v(e,t),n),n}function _(e,t){return e.get(v(e,t))}function v(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 y(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 b(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:C(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||C(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var w=e,T=_.length-1;T>=0;T-=n?2:1){var E=_[T],D=n?_[T-1]:void 0,O={},k={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,O)};try{if(y)(g=c(E.call(D,w,k),`class decorators`,`return`))&&(w=g);else{var A,j;k.static=u,k.private=d,d?i===2?A=function(e){return h(e),b.value}:(i<4&&(A=o(b,`get`,h)),i!==3&&(j=o(b,`set`,h))):(A=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=k.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),w=E.call(D,p?{get:b.get,set:b.set}:b[S],k),p){if(typeof w==`object`&&w)(g=c(w.get,`accessor.get`))&&(b.get=g),(g=c(w.set,`accessor.set`))&&(b.set=g),(g=c(w.init,`accessor.init`))&&x.push(g);else if(w!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(w,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(w):b[S]=w)}}finally{O.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)),w}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 w(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 S=u.get(b);if(!0===S||S===3&&m!==4||S===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=S(e,`string`);return typeof t==`symbol`?t:t+``}function S(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 C(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 w(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 T(e){return e}l=[(0,t.customElement)(`solid-panes-header`)];var E;new(f=(o=new WeakMap,p=(u=(0,r.property)({type:Array}),`menuItems`),a=class extends t.WebComponent{constructor(...e){super(...e),m(this,o,(s(this),d(this,[])))}get[p](){return _(o,this)}set menuItems(e){g(o,this,e)}render(){return n.html`
|
|
2
2
|
<a href="/" class="logo">
|
|
3
3
|
<span class="sr-only">Home</span>
|
|
4
4
|
<solid-ui-solid-emblem></solid-ui-solid-emblem>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.cjs.js","names":["customElement","WebComponent","html","property","styles","_classDecs","_Header","_Header2","_A","WeakMap","_ref","_menuItemsDecs","type","Array","_Header3","Header","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_menuItems","_classPrivateFieldGet","menuItems","v","_classPrivateFieldSet","render","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default"],"sources":["../../../src/components/header/Header.ts"],"sourcesContent":["import { customElement, WebComponent } from 'solid-ui'\nimport { html } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport type { AccountMenuItem } from 'solid-ui/components/account'\n\nimport 'solid-ui/components/account'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu-item'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/solid-emblem'\nimport '~icons/lucide/help-circle'\n\nimport styles from './Header.styles.css'\n\n@customElement('solid-panes-header')\nexport default class Header extends WebComponent {\n static styles = styles\n\n @property({ type: Array })\n accessor menuItems: AccountMenuItem[] = []\n\n render () {\n return html`\n <a href=\"/\" class=\"logo\">\n <span class=\"sr-only\">Home</span>\n <solid-ui-solid-emblem></solid-ui-solid-emblem>\n </a>\n <div class=\"spacer\"></div>\n <solid-ui-account .menuItems=${this.menuItems}></solid-ui-account>\n <span class=\"separator\"></span>\n <solid-ui-menu placement=\"bottom-end\" distance=\"5\">\n <solid-ui-button slot=\"trigger\" variant=\"ghost\" title=\"Open help\">\n <span class=\"sr-only\">Open help</span>\n <icon-lucide-help-circle slot=\"icon\"></icon-lucide-help-circle>\n </solid-ui-button>\n\n <solid-ui-menu-item href=\"https://solidos.github.io/userguide/\">User guide</solid-ui-menu-item>\n <solid-ui-menu-item href=\"https://github.com/solidos/solidos/issues\">Report a problem</solid-ui-menu-item>\n </solid-ui-menu>\n `\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.cjs.js","names":["customElement","WebComponent","html","property","styles","_classDecs","_Header","_Header2","_A","WeakMap","_ref","_menuItemsDecs","type","Array","_Header3","Header","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_menuItems","_classPrivateFieldGet","menuItems","v","_classPrivateFieldSet","render","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default"],"sources":["../../../src/components/header/Header.ts"],"sourcesContent":["import { customElement, WebComponent } from 'solid-ui'\nimport { html } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport type { AccountMenuItem } from 'solid-ui/components/account'\n\nimport 'solid-ui/components/account'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu-item'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/solid-emblem'\nimport '~icons/lucide/help-circle'\n\nimport styles from './Header.styles.css'\n\n@customElement('solid-panes-header')\nexport default class Header extends WebComponent {\n static styles = styles\n\n @property({ type: Array })\n accessor menuItems: AccountMenuItem[] = []\n\n render () {\n return html`\n <a href=\"/\" class=\"logo\">\n <span class=\"sr-only\">Home</span>\n <solid-ui-solid-emblem></solid-ui-solid-emblem>\n </a>\n <div class=\"spacer\"></div>\n <solid-ui-account .menuItems=${this.menuItems}></solid-ui-account>\n <span class=\"separator\"></span>\n <solid-ui-menu placement=\"bottom-end\" distance=\"5\">\n <solid-ui-button slot=\"trigger\" variant=\"ghost\" title=\"Open help\">\n <span class=\"sr-only\">Open help</span>\n <icon-lucide-help-circle slot=\"icon\"></icon-lucide-help-circle>\n </solid-ui-button>\n\n <solid-ui-menu-item href=\"https://solidos.github.io/userguide/\">User guide</solid-ui-menu-item>\n <solid-ui-menu-item href=\"https://github.com/solidos/solidos/issues\">Report a problem</solid-ui-menu-item>\n </solid-ui-menu>\n `\n }\n}\n"],"mappings":"i8IAYwCK,EAAA,EAAA,EAEvCL,EAAAA,cAAAA,CAAc,oBAAoB,CAAC,EAAA,IAAAM,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,GAAAC,GAAAA,EAIjCR,EAAAA,SAAAA,CAAS,CAAES,KAAMC,KAAM,CAAC,EAAC,aAAAC,EAJ5B,cACoCb,EAAAA,YAAa,CAAAe,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAV,GAAAW,EAAA,IAAA,EAAAC,EAAA,KAIP,CAAA,CAAE,EAAA,CAAA,CAAA,IAAAV,IAAA,CAAA,OAAAW,EAAAb,EAAA,IAAA,CAAA,CAAA,IAAjCc,UAASC,EAAA,CAAAC,EAAAhB,EAAA,KAAAe,CAAA,CAAA,CAElBE,QAAU,CACR,MAAOvB,GAAAA,IAAI;;;;;;uCAMwB,KAAKoB,UAAS;;;;;;;;;;;KAYnD,CACF,EAAC,CAAAI,EAAA,CAAAN,EAAAD,GAAAQ,EAAA,CAAArB,EAAAsB,IAAAC,EAAAf,EAAA,CAAA,CAAAH,EAAA,EAAA,WAAA,CAAA,EAAAN,EAAA,EAAA,IAAA,GA1BmCJ,EAAAA,YAAY,EAAAa,GAAAgB,EAAA,cAAAC,CAAA,CAAAf,aAAA,CAAA,MAAAV,CAAA,EAAA0B,EAAA,KAAA,SAC9B5B,EAAAA,OAAM,EAAAwB,EAAA,CAAA,CAAA,EAAAI,EAAAF,EAAAvB,EAAA,IAAA,EAAA,EAAAuB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../_virtual/~icons/lucide/help-circle.esm.js";
|
|
2
2
|
import e from "./Header.styles.esm.js";
|
|
3
3
|
import { WebComponent as t, customElement as n } from "solid-ui";
|
|
4
|
-
import "solid-ui/components/button";
|
|
5
4
|
import { html as r } from "lit";
|
|
6
5
|
import { property as i } from "lit/decorators.js";
|
|
7
|
-
import "solid-ui/components/
|
|
8
|
-
import "solid-ui/components/menu-item";
|
|
6
|
+
import "solid-ui/components/button";
|
|
9
7
|
import "solid-ui/components/menu";
|
|
8
|
+
import "solid-ui/components/menu-item";
|
|
9
|
+
import "solid-ui/components/account";
|
|
10
10
|
import "solid-ui/components/solid-emblem";
|
|
11
11
|
//#region src/components/header/Header.ts
|
|
12
12
|
var a, o, s, c, l, u, d, f, p, m;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require("../../_virtual
|
|
1
|
+
require("../../_virtual/~icons/lucide/help-circle.cjs.js");const e=require("./Navbar.styles.cjs.js");let t=require("solid-ui"),n=require("lit"),r=require("lit/decorators.js");require("solid-ui/components/button"),require("solid-ui/components/menu"),require("solid-ui/components/menu-item"),require("solid-ui/components/account"),require("solid-ui/components/solid-emblem");var i,a,o,s,c,l,u,d,f,p;function m(e,t,n){h(e,t),t.set(e,n)}function h(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(v(e,t),n),n}function _(e,t){return e.get(v(e,t))}function v(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 y(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 b(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:C(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||C(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var w=e,T=_.length-1;T>=0;T-=n?2:1){var E=_[T],D=n?_[T-1]:void 0,O={},k={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,O)};try{if(y)(g=c(E.call(D,w,k),`class decorators`,`return`))&&(w=g);else{var A,j;k.static=u,k.private=d,d?i===2?A=function(e){return h(e),b.value}:(i<4&&(A=o(b,`get`,h)),i!==3&&(j=o(b,`set`,h))):(A=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=k.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),w=E.call(D,p?{get:b.get,set:b.set}:b[S],k),p){if(typeof w==`object`&&w)(g=c(w.get,`accessor.get`))&&(b.get=g),(g=c(w.set,`accessor.set`))&&(b.set=g),(g=c(w.init,`accessor.init`))&&x.push(g);else if(w!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(w,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(w):b[S]=w)}}finally{O.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)),w}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 w(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 S=u.get(b);if(!0===S||S===3&&m!==4||S===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=S(e,`string`);return typeof t==`symbol`?t:t+``}function S(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 C(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 w(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 T(e){return e}l=[(0,t.customElement)(`solid-panes-navbar`)];var E;new(f=(o=new WeakMap,p=(u=(0,r.property)({type:Array}),`navbarItems`),a=class extends t.WebComponent{constructor(...e){super(...e),m(this,o,(s(this),d(this,[])))}get[p](){return _(o,this)}set navbarItems(e){g(o,this,e)}selectItem(e){this.dispatchEvent(new CustomEvent(`solid-ui-select`,{detail:e,bubbles:!0,composed:!0,cancelable:!0}))}render(){return n.html`
|
|
2
2
|
<nav class="navbar">
|
|
3
3
|
${this.navbarItems.map(e=>n.html`
|
|
4
4
|
<button
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Navbar.cjs.js","names":["customElement","WebComponent","html","property","styles","_classDecs","_Navbar","_Navbar2","_A","WeakMap","_ref","_navbarItemsDecs","type","Array","_Navbar3","Navbar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_navbarItems","_classPrivateFieldGet","navbarItems","v","_classPrivateFieldSet","selectItem","item","dispatchEvent","CustomEvent","detail","bubbles","composed","cancelable","render","map","menuItem","selected","label","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default"],"sources":["../../../src/components/navbar/Navbar.ts"],"sourcesContent":["import { customElement, WebComponent } from 'solid-ui'\nimport { html, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport 'solid-ui/components/account'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu-item'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/solid-emblem'\nimport '~icons/lucide/help-circle'\n\nimport styles from './Navbar.styles.css'\n\nexport interface NavbarMenuItem {\n label: string | TemplateResult\n selected?: boolean\n onSelected?(): void | Promise<void>\n}\n\n@customElement('solid-panes-navbar')\nexport default class Navbar extends WebComponent {\n static styles = styles\n\n @property({ type: Array })\n accessor navbarItems: NavbarMenuItem[] = []\n\n private selectItem (item: NavbarMenuItem) {\n this.dispatchEvent(new CustomEvent('solid-ui-select', {\n detail: item,\n bubbles: true,\n composed: true,\n cancelable: true\n }))\n }\n\n render () {\n return html`\n <nav class=\"navbar\">\n ${this.navbarItems.map(menuItem => html`\n <button\n type=\"button\"\n class=${menuItem.selected ? 'selected' : ''}\n @click=${() => this.selectItem(menuItem)}\n title=${typeof menuItem.label === 'string' ? menuItem.label : ''}\n >\n ${menuItem.label}\n </button>\n `)}\n </nav>\n `\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Navbar.cjs.js","names":["customElement","WebComponent","html","property","styles","_classDecs","_Navbar","_Navbar2","_A","WeakMap","_ref","_navbarItemsDecs","type","Array","_Navbar3","Navbar","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_navbarItems","_classPrivateFieldGet","navbarItems","v","_classPrivateFieldSet","selectItem","item","dispatchEvent","CustomEvent","detail","bubbles","composed","cancelable","render","map","menuItem","selected","label","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default"],"sources":["../../../src/components/navbar/Navbar.ts"],"sourcesContent":["import { customElement, WebComponent } from 'solid-ui'\nimport { html, TemplateResult } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport 'solid-ui/components/account'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu-item'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/solid-emblem'\nimport '~icons/lucide/help-circle'\n\nimport styles from './Navbar.styles.css'\n\nexport interface NavbarMenuItem {\n label: string | TemplateResult\n selected?: boolean\n onSelected?(): void | Promise<void>\n}\n\n@customElement('solid-panes-navbar')\nexport default class Navbar extends WebComponent {\n static styles = styles\n\n @property({ type: Array })\n accessor navbarItems: NavbarMenuItem[] = []\n\n private selectItem (item: NavbarMenuItem) {\n this.dispatchEvent(new CustomEvent('solid-ui-select', {\n detail: item,\n bubbles: true,\n composed: true,\n cancelable: true\n }))\n }\n\n render () {\n return html`\n <nav class=\"navbar\">\n ${this.navbarItems.map(menuItem => html`\n <button\n type=\"button\"\n class=${menuItem.selected ? 'selected' : ''}\n @click=${() => this.selectItem(menuItem)}\n title=${typeof menuItem.label === 'string' ? menuItem.label : ''}\n >\n ${menuItem.label}\n </button>\n `)}\n </nav>\n `\n }\n}\n"],"mappings":"i8IAWwCK,EAAA,EAAA,EAQvCL,EAAAA,cAAAA,CAAc,oBAAoB,CAAC,EAAA,IAAAM,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,GAAAC,GAAAA,EAIjCR,EAAAA,SAAAA,CAAS,CAAES,KAAMC,KAAM,CAAC,EAAC,eAAAC,EAJ5B,cACoCb,EAAAA,YAAa,CAAAe,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAV,GAAAW,EAAA,IAAA,EAAAC,EAAA,KAIN,CAAA,CAAE,EAAA,CAAA,CAAA,IAAAV,IAAA,CAAA,OAAAW,EAAAb,EAAA,IAAA,CAAA,CAAA,IAAlCc,YAAWC,EAAA,CAAAC,EAAAhB,EAAA,KAAAe,CAAA,CAAA,CAEZE,WAAYC,EAAsB,CACxC,KAAKC,cAAc,IAAIC,YAAY,kBAAmB,CACpDC,OAAQH,EACRI,QAAS,GACTC,SAAU,GACVC,WAAY,EACd,CAAC,CAAC,CACJ,CAEAC,QAAU,CACR,MAAO/B,GAAAA,IAAI;;SAEN,KAAKoB,YAAYY,IAAIC,GAAYjC,EAAAA,IAAI;;;kBAG5BiC,EAASC,SAAW,WAAa,GAAE;uBAC5B,KAAKX,WAAWU,CAAQ,EAAC;kBAChC,OAAOA,EAASE,OAAU,SAAWF,EAASE,MAAQ,GAAE;;YAE9DF,EAASE,MAAK;;OAEnB,EAAC;;KAGN,CACF,EAAC,CAAAC,EAAA,CAAAlB,EAAAD,GAAAoB,EAAA,CAAAjC,EAAAkC,IAAAC,EAAA3B,EAAA,CAAA,CAAAH,EAAA,EAAA,aAAA,CAAA,EAAAN,EAAA,EAAA,IAAA,GA/BmCJ,EAAAA,YAAY,EAAAa,GAAA4B,EAAA,cAAAC,CAAA,CAAA3B,aAAA,CAAA,MAAAV,CAAA,EAAAsC,EAAA,KAAA,SAC9BxC,EAAAA,OAAM,EAAAoC,EAAA,CAAA,CAAA,EAAAI,EAAAF,EAAAnC,EAAA,IAAA,EAAA,EAAAmC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../_virtual/~icons/lucide/help-circle.esm.js";
|
|
2
2
|
import e from "./Navbar.styles.esm.js";
|
|
3
3
|
import { WebComponent as t, customElement as n } from "solid-ui";
|
|
4
|
-
import "solid-ui/components/button";
|
|
5
4
|
import { html as r } from "lit";
|
|
6
5
|
import { property as i } from "lit/decorators.js";
|
|
7
|
-
import "solid-ui/components/
|
|
8
|
-
import "solid-ui/components/menu-item";
|
|
6
|
+
import "solid-ui/components/button";
|
|
9
7
|
import "solid-ui/components/menu";
|
|
8
|
+
import "solid-ui/components/menu-item";
|
|
9
|
+
import "solid-ui/components/account";
|
|
10
10
|
import "solid-ui/components/solid-emblem";
|
|
11
11
|
//#region src/components/navbar/Navbar.ts
|
|
12
12
|
var a, o, s, c, l, u, d, f, p, m;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
let e=require("solid-ui"),t=require("lit"),n=require("lit/decorators.js");require("solid-ui/components/button"),require("solid-ui/components/dialog"),require("solid-ui/components/dialog-content"),require("solid-ui/components/dialog-footer");var r,i,a,o,s,c,l;function u(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t,n){f(e,t),t.set(e,n)}function f(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function p(e,t,n){return e.set(h(e,t),n),n}function m(e,t){return e.get(h(e,t))}function h(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 g(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],b=!l;if(!b){n||Array.isArray(_)||(_=[_]);var x={},S=[],C=i===3?`get`:i===4||p?`set`:`value`;d?(f||p?x={get:y(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:x[C]=v,f||y(x[C],r,i===2?``:C)):f||(x=Object.getOwnPropertyDescriptor(e,r))}for(var w=e,T=_.length-1;T>=0;T-=n?2:1){var E=_[T],D=n?_[T-1]:void 0,O={},k={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,O)};try{if(b)(g=c(E.call(D,w,k),`class decorators`,`return`))&&(w=g);else{var A,j;k.static=u,k.private=d,d?i===2?A=function(e){return h(e),x.value}:(i<4&&(A=o(x,`get`,h)),i!==3&&(j=o(x,`set`,h))):(A=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=k.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),w=E.call(D,p?{get:x.get,set:x.set}:x[C],k),p){if(typeof w==`object`&&w)(g=c(w.get,`accessor.get`))&&(x.get=g),(g=c(w.set,`accessor.set`))&&(x.set=g),(g=c(w.init,`accessor.init`))&&S.push(g);else if(w!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(w,(f?`field`:`method`)+` decorators`,`return`)&&(f?S.push(w):x[C]=w)}}finally{O.v=!0}}return(f||p)&&l.push(function(e,t){for(var n=S.length-1;n>=0;n--)t=S[n].call(e,t);return t}),f||b||(d?p?l.push(o(x,`get`),o(x,`set`)):l.push(i===2?x[C]:o.call.bind(x[C])):Object.defineProperty(e,r,x)),w}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 b(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,v=16&m,y=!!(8&m),x=(m&=7)==0,S=h+`/`+y;if(!x&&!g){var C=u.get(S);if(!0===C||C===3&&m!==4||C===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(S,!(m>2)||m)}l(y?e:e.prototype,p,v,g?`#`+h:_(h),m,r,y?a||=[]:i||=[],o,y,g,x,m===1,y&&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 _(e){var t=v(e,`string`);return typeof t==`symbol`?t:t+``}function v(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 y(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 b(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}o=[(0,e.customElement)(`resource-delete-dialog`)];var x,S=new WeakMap;l=(s=(0,n.property)({type:String}),`resourceName`),r=class extends e.DialogComponent{constructor(...e){super(...e),d(this,S,(i(this),c(this,`this resource`))),u(this,`cancel`,()=>this.close(!1)),u(this,`confirm`,()=>this.close(!0))}get[l](){return m(S,this)}set resourceName(e){p(S,this,e)}render(){return t.html`
|
|
2
|
+
<solid-ui-dialog title="Delete resource">
|
|
3
|
+
<solid-ui-dialog-content>
|
|
4
|
+
<p>Are you sure you want to permanently delete ${this.resourceName}?</p>
|
|
5
|
+
</solid-ui-dialog-content>
|
|
6
|
+
<solid-ui-dialog-footer>
|
|
7
|
+
<solid-ui-button variant="secondary" @click=${this.cancel}>
|
|
8
|
+
Go back
|
|
9
|
+
</solid-ui-button>
|
|
10
|
+
<solid-ui-button @click=${this.confirm}>
|
|
11
|
+
Yes
|
|
12
|
+
</solid-ui-button>
|
|
13
|
+
</solid-ui-dialog-footer>
|
|
14
|
+
</solid-ui-dialog>
|
|
15
|
+
`}},{e:[c,i],c:[x,a]}=g(r,[[s,1,`resourceName`]],o,0,void 0,e.DialogComponent),a(),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return x}});
|
|
16
|
+
//# sourceMappingURL=DeleteResourceDialog.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteResourceDialog.cjs.js","names":["customElement","DialogComponent","html","property","_classDecs","_DeleteResourceDialog","_A","WeakMap","_ref","_resourceNameDecs","type","String","DeleteResourceDialog","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_resourceName","_defineProperty","close","_classPrivateFieldGet","resourceName","v","_classPrivateFieldSet","render","cancel","confirm","_DeleteResourceDialog2","e","c","_initClass","_applyDecs","default"],"sources":["../../../src/components/resource-actions-menu/DeleteResourceDialog.ts"],"sourcesContent":["import { customElement, DialogComponent } from 'solid-ui'\nimport { html } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/dialog'\nimport 'solid-ui/components/dialog-content'\nimport 'solid-ui/components/dialog-footer'\n\n@customElement('resource-delete-dialog')\nexport default class DeleteResourceDialog extends DialogComponent<boolean> {\n @property({ type: String })\n accessor resourceName = 'this resource'\n\n private cancel = () => this.close(false)\n\n private confirm = () => this.close(true)\n\n protected render () {\n return html`\n <solid-ui-dialog title=\"Delete resource\">\n <solid-ui-dialog-content>\n <p>Are you sure you want to permanently delete ${this.resourceName}?</p>\n </solid-ui-dialog-content>\n <solid-ui-dialog-footer>\n <solid-ui-button variant=\"secondary\" @click=${this.cancel}>\n Go back\n </solid-ui-button>\n <solid-ui-button @click=${this.confirm}>\n Yes\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </solid-ui-dialog>\n `\n }\n}\n"],"mappings":"gyIAO0CI,EAAA,EAAA,EAEzCJ,EAAAA,cAAAA,CAAc,wBAAwB,CAAC,EAAA,IAAAK,EAAAC,EAAA,IAAAC,QAAAC,GAAAC,GAAAA,EAErCN,EAAAA,SAAAA,CAAS,CAAEO,KAAMC,MAAO,CAAC,EAAC,gBAwB5BgB,EAAAf,cAzBiDX,EAAAA,eAAyB,CAAAY,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAT,GAAAU,EAAA,IAAA,EAAAC,EAAA,KAEjD,eAAe,EAAA,EAAAC,EAAA,KAAA,aAEhB,KAAKC,MAAM,EAAK,CAAC,EAAAD,EAAA,KAAA,cAEhB,KAAKC,MAAM,EAAI,CAAC,CAAA,CAAA,IAAAX,IAAA,CAAA,OAAAY,EAAAd,EAAA,IAAA,CAAA,CAAA,IAJ/Be,aAAYC,EAAA,CAAAC,EAAAjB,EAAA,KAAAgB,CAAA,CAAA,CAMXE,QAAU,CAClB,MAAOtB,GAAAA,IAAI;;;2DAG4C,KAAKmB,aAAY;;;wDAGpB,KAAKI,OAAM;;;oCAG/B,KAAKC,QAAO;;;;;KAM9C,CACF,EAAC,CAAAE,EAAA,CAAAX,EAAAD,GAAAa,EAAA,CAAAxB,EAAAyB,IAAAC,EAAAJ,EAAA,CAAA,CAAAlB,EAAA,EAAA,cAAA,CAAA,EAAAL,EAAA,EAAA,IAAA,GAzBiDH,EAAAA,eAAe,EAAA6B,EAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DialogComponent } from 'solid-ui';
|
|
2
|
+
export default class DeleteResourceDialog extends DialogComponent<boolean> {
|
|
3
|
+
accessor resourceName: string;
|
|
4
|
+
private cancel;
|
|
5
|
+
private confirm;
|
|
6
|
+
protected render(): import('lit-html').TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=DeleteResourceDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteResourceDialog.d.ts","sourceRoot":"","sources":["../../../src/components/resource-actions-menu/DeleteResourceDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAE,MAAM,UAAU,CAAA;AAIzD,OAAO,4BAA4B,CAAA;AACnC,OAAO,4BAA4B,CAAA;AACnC,OAAO,oCAAoC,CAAA;AAC3C,OAAO,mCAAmC,CAAA;AAG1C,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,eAAe,CAAC,OAAO,CAAC;IAExE,QAAQ,CAAC,YAAY,SAAkB;IAEvC,OAAO,CAAC,MAAM,CAA0B;IAExC,OAAO,CAAC,OAAO,CAAyB;IAExC,SAAS,CAAC,MAAM;CAiBjB"}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { DialogComponent as e, customElement as t } from "solid-ui";
|
|
2
|
+
import { html as n } from "lit";
|
|
3
|
+
import { property as r } from "lit/decorators.js";
|
|
4
|
+
import "solid-ui/components/button";
|
|
5
|
+
import "solid-ui/components/dialog";
|
|
6
|
+
import "solid-ui/components/dialog-content";
|
|
7
|
+
import "solid-ui/components/dialog-footer";
|
|
8
|
+
//#region src/components/resource-actions-menu/DeleteResourceDialog.ts
|
|
9
|
+
var i, a, o, s, c, l, u;
|
|
10
|
+
function d(e, t, n) {
|
|
11
|
+
return (t = v(t)) in e ? Object.defineProperty(e, t, {
|
|
12
|
+
value: n,
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
configurable: !0,
|
|
15
|
+
writable: !0
|
|
16
|
+
}) : e[t] = n, e;
|
|
17
|
+
}
|
|
18
|
+
function f(e, t, n) {
|
|
19
|
+
p(e, t), t.set(e, n);
|
|
20
|
+
}
|
|
21
|
+
function p(e, t) {
|
|
22
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
23
|
+
}
|
|
24
|
+
function m(e, t, n) {
|
|
25
|
+
return e.set(g(e, t), n), n;
|
|
26
|
+
}
|
|
27
|
+
function h(e, t) {
|
|
28
|
+
return e.get(g(e, t));
|
|
29
|
+
}
|
|
30
|
+
function g(e, t, n) {
|
|
31
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
32
|
+
throw TypeError("Private element is not present on this object");
|
|
33
|
+
}
|
|
34
|
+
function _(e, t, n, r, i, a) {
|
|
35
|
+
function o(e, t, n) {
|
|
36
|
+
return function(r, i) {
|
|
37
|
+
return n && n(r), e[t].call(r, i);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function s(e, t) {
|
|
41
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
function c(e, t, n, r) {
|
|
45
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
49
|
+
function h(e) {
|
|
50
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
51
|
+
}
|
|
52
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
53
|
+
if (!y) {
|
|
54
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
55
|
+
var x = {}, S = [], C = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
56
|
+
d ? (f || p ? x = {
|
|
57
|
+
get: b(function() {
|
|
58
|
+
return v(this);
|
|
59
|
+
}, r, "get"),
|
|
60
|
+
set: function(e) {
|
|
61
|
+
t[4](this, e);
|
|
62
|
+
}
|
|
63
|
+
} : x[C] = v, f || b(x[C], r, i === 2 ? "" : C)) : f || (x = Object.getOwnPropertyDescriptor(e, r));
|
|
64
|
+
}
|
|
65
|
+
for (var w = e, T = _.length - 1; T >= 0; T -= n ? 2 : 1) {
|
|
66
|
+
var E = _[T], D = n ? _[T - 1] : void 0, O = {}, k = {
|
|
67
|
+
kind: [
|
|
68
|
+
"field",
|
|
69
|
+
"accessor",
|
|
70
|
+
"method",
|
|
71
|
+
"getter",
|
|
72
|
+
"setter",
|
|
73
|
+
"class"
|
|
74
|
+
][i],
|
|
75
|
+
name: r,
|
|
76
|
+
metadata: a,
|
|
77
|
+
addInitializer: function(e, t) {
|
|
78
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
79
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
80
|
+
}.bind(null, O)
|
|
81
|
+
};
|
|
82
|
+
try {
|
|
83
|
+
if (y) (g = c(E.call(D, w, k), "class decorators", "return")) && (w = g);
|
|
84
|
+
else {
|
|
85
|
+
var A, j;
|
|
86
|
+
k.static = u, k.private = d, d ? i === 2 ? A = function(e) {
|
|
87
|
+
return h(e), x.value;
|
|
88
|
+
} : (i < 4 && (A = o(x, "get", h)), i !== 3 && (j = o(x, "set", h))) : (A = function(e) {
|
|
89
|
+
return e[r];
|
|
90
|
+
}, (i < 2 || i === 4) && (j = function(e, t) {
|
|
91
|
+
e[r] = t;
|
|
92
|
+
}));
|
|
93
|
+
var M = k.access = { has: d ? m.bind() : function(e) {
|
|
94
|
+
return r in e;
|
|
95
|
+
} };
|
|
96
|
+
if (A && (M.get = A), j && (M.set = j), w = E.call(D, p ? {
|
|
97
|
+
get: x.get,
|
|
98
|
+
set: x.set
|
|
99
|
+
} : x[C], k), p) {
|
|
100
|
+
if (typeof w == "object" && w) (g = c(w.get, "accessor.get")) && (x.get = g), (g = c(w.set, "accessor.set")) && (x.set = g), (g = c(w.init, "accessor.init")) && S.push(g);
|
|
101
|
+
else if (w !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
102
|
+
} else c(w, (f ? "field" : "method") + " decorators", "return") && (f ? S.push(w) : x[C] = w);
|
|
103
|
+
}
|
|
104
|
+
} finally {
|
|
105
|
+
O.v = !0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return (f || p) && l.push(function(e, t) {
|
|
109
|
+
for (var n = S.length - 1; n >= 0; n--) t = S[n].call(e, t);
|
|
110
|
+
return t;
|
|
111
|
+
}), f || y || (d ? p ? l.push(o(x, "get"), o(x, "set")) : l.push(i === 2 ? x[C] : o.call.bind(x[C])) : Object.defineProperty(e, r, x)), w;
|
|
112
|
+
}
|
|
113
|
+
function u(e, t) {
|
|
114
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
115
|
+
configurable: !0,
|
|
116
|
+
enumerable: !0,
|
|
117
|
+
value: t
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
121
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
122
|
+
var i, a, o = [], c = function(t) {
|
|
123
|
+
return x(t) === e;
|
|
124
|
+
}, u = /* @__PURE__ */ new Map();
|
|
125
|
+
function d(e) {
|
|
126
|
+
e && o.push(s.bind(null, e));
|
|
127
|
+
}
|
|
128
|
+
for (var f = 0; f < t.length; f++) {
|
|
129
|
+
var p = t[f];
|
|
130
|
+
if (Array.isArray(p)) {
|
|
131
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, y = !!(8 & m), b = (m &= 7) == 0, S = h + "/" + y;
|
|
132
|
+
if (!b && !g) {
|
|
133
|
+
var C = u.get(S);
|
|
134
|
+
if (!0 === C || C === 3 && m !== 4 || C === 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);
|
|
135
|
+
u.set(S, !(m > 2) || m);
|
|
136
|
+
}
|
|
137
|
+
l(y ? e : e.prototype, p, _, g ? "#" + h : v(h), m, r, y ? a ||= [] : i ||= [], o, y, g, b, m === 1, y && g ? c : n);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return d(i), d(a), o;
|
|
141
|
+
}(e, t, i, f);
|
|
142
|
+
return n.length || u(e, f), {
|
|
143
|
+
e: p,
|
|
144
|
+
get c() {
|
|
145
|
+
var t = [];
|
|
146
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function v(e) {
|
|
151
|
+
var t = y(e, "string");
|
|
152
|
+
return typeof t == "symbol" ? t : t + "";
|
|
153
|
+
}
|
|
154
|
+
function y(e, t) {
|
|
155
|
+
if (typeof e != "object" || !e) return e;
|
|
156
|
+
var n = e[Symbol.toPrimitive];
|
|
157
|
+
if (n !== void 0) {
|
|
158
|
+
var r = n.call(e, t || "default");
|
|
159
|
+
if (typeof r != "object") return r;
|
|
160
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
161
|
+
}
|
|
162
|
+
return (t === "string" ? String : Number)(e);
|
|
163
|
+
}
|
|
164
|
+
function b(e, t, n) {
|
|
165
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
166
|
+
try {
|
|
167
|
+
Object.defineProperty(e, "name", {
|
|
168
|
+
configurable: !0,
|
|
169
|
+
value: n ? n + " " + t : t
|
|
170
|
+
});
|
|
171
|
+
} catch {}
|
|
172
|
+
return e;
|
|
173
|
+
}
|
|
174
|
+
function x(e) {
|
|
175
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
176
|
+
return e;
|
|
177
|
+
}
|
|
178
|
+
s = [t("resource-delete-dialog")];
|
|
179
|
+
var S, C = /*#__PURE__*/ new WeakMap();
|
|
180
|
+
u = (c = r({ type: String }), "resourceName"), i = class extends e {
|
|
181
|
+
constructor(...e) {
|
|
182
|
+
super(...e), f(this, C, (a(this), l(this, "this resource"))), d(this, "cancel", () => this.close(!1)), d(this, "confirm", () => this.close(!0));
|
|
183
|
+
}
|
|
184
|
+
get [u]() {
|
|
185
|
+
return h(C, this);
|
|
186
|
+
}
|
|
187
|
+
set resourceName(e) {
|
|
188
|
+
m(C, this, e);
|
|
189
|
+
}
|
|
190
|
+
render() {
|
|
191
|
+
return n`
|
|
192
|
+
<solid-ui-dialog title="Delete resource">
|
|
193
|
+
<solid-ui-dialog-content>
|
|
194
|
+
<p>Are you sure you want to permanently delete ${this.resourceName}?</p>
|
|
195
|
+
</solid-ui-dialog-content>
|
|
196
|
+
<solid-ui-dialog-footer>
|
|
197
|
+
<solid-ui-button variant="secondary" @click=${this.cancel}>
|
|
198
|
+
Go back
|
|
199
|
+
</solid-ui-button>
|
|
200
|
+
<solid-ui-button @click=${this.confirm}>
|
|
201
|
+
Yes
|
|
202
|
+
</solid-ui-button>
|
|
203
|
+
</solid-ui-dialog-footer>
|
|
204
|
+
</solid-ui-dialog>
|
|
205
|
+
`;
|
|
206
|
+
}
|
|
207
|
+
}, {e: [l, a], c: [S, o]} = _(i, [[
|
|
208
|
+
c,
|
|
209
|
+
1,
|
|
210
|
+
"resourceName"
|
|
211
|
+
]], s, 0, void 0, e), o();
|
|
212
|
+
//#endregion
|
|
213
|
+
export { S as default };
|
|
214
|
+
|
|
215
|
+
//# sourceMappingURL=DeleteResourceDialog.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteResourceDialog.esm.js","names":["customElement","DialogComponent","html","property","_classDecs","_DeleteResourceDialog","_A","WeakMap","_ref","_resourceNameDecs","type","String","DeleteResourceDialog","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_resourceName","_defineProperty","close","_classPrivateFieldGet","resourceName","v","_classPrivateFieldSet","render","cancel","confirm","_DeleteResourceDialog2","e","c","_initClass","_applyDecs","default"],"sources":["../../../src/components/resource-actions-menu/DeleteResourceDialog.ts"],"sourcesContent":["import { customElement, DialogComponent } from 'solid-ui'\nimport { html } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/dialog'\nimport 'solid-ui/components/dialog-content'\nimport 'solid-ui/components/dialog-footer'\n\n@customElement('resource-delete-dialog')\nexport default class DeleteResourceDialog extends DialogComponent<boolean> {\n @property({ type: String })\n accessor resourceName = 'this resource'\n\n private cancel = () => this.close(false)\n\n private confirm = () => this.close(true)\n\n protected render () {\n return html`\n <solid-ui-dialog title=\"Delete resource\">\n <solid-ui-dialog-content>\n <p>Are you sure you want to permanently delete ${this.resourceName}?</p>\n </solid-ui-dialog-content>\n <solid-ui-dialog-footer>\n <solid-ui-button variant=\"secondary\" @click=${this.cancel}>\n Go back\n </solid-ui-button>\n <solid-ui-button @click=${this.confirm}>\n Yes\n </solid-ui-button>\n </solid-ui-dialog-footer>\n </solid-ui-dialog>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAO0CI,IAAA,CAEzCJ,EAAc,wBAAwB,CAAC;AAAA,IAAAK,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAErCN,EAAS,EAAEO,MAAMC,OAAO,CAAC,GAAC,iBAwB5BgB,IAAAf,cAzBiDX,EAAyB;CAAAY,YAAA,GAAAC,GAAA;EAIjCI,AAJiC,MAAA,GAAAJ,CAAA,GAAAC,EAAA,MAAAT,IAAAU,EAAA,IAAA,GAAAC,EAAA,MAEjD,eAAe,EAAA,GAAAC,EAAA,MAAA,gBAEhB,KAAKC,MAAM,EAAK,CAAC,GAAAD,EAAA,MAAA,iBAEhB,KAAKC,MAAM,EAAI,CAAC;CAAA;CAAA,KAAAX,KAAA;EAAA,OAAAY,EAAAd,GAAA,IAAA;CAAA;CAAA,IAJ/Be,aAAYC,GAAA;EAAAC,EAAAjB,GAAA,MAAAgB,CAAA;CAAA;CAMXE,SAAU;EAClB,OAAOtB,CAAI;;;2DAG4C,KAAKmB,aAAY;;;wDAGpB,KAAKI,OAAM;;;oCAG/B,KAAKC,QAAO;;;;;;CAM9C;AACF,GAAC,CAAAE,GAAA,CAAAX,GAAAD,IAAAa,GAAA,CAAAxB,GAAAyB,MAAAC,EAAAJ,GAAA,CAAA;CAAAlB;CAAA;CAAA;AAAA,CAAA,GAAAL,GAAA,GAAA,KAAA,GAzBiDH,CAAe,GAAA6B,EAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require("../../_virtual/~icons/lucide/ellipsis-vertical.cjs.js");const e=require("./DeleteResourceDialog.cjs.js");require("../../_virtual/~icons/lucide/trash-2.cjs.js");let t=require("solid-ui"),n=require("lit"),r=require("lit/decorators.js");require("solid-ui/components/button"),require("solid-ui/components/menu"),require("solid-ui/components/menu-item");var i,a,o,s,c,l,u,d,f,p,m;function h(e,t,n){g(e,t),t.set(e,n)}function g(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function _(e,t,n){return e.set(y(e,t),n),n}function v(e,t){return e.get(y(e,t))}function y(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 b(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:C(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||C(b[S],r,i===2?``:S)):f||(b=Object.getOwnPropertyDescriptor(e,r))}for(var w=e,T=_.length-1;T>=0;T-=n?2:1){var E=_[T],D=n?_[T-1]:void 0,O={},k={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,O)};try{if(y)(g=c(E.call(D,w,k),`class decorators`,`return`))&&(w=g);else{var A,j;k.static=u,k.private=d,d?i===2?A=function(e){return h(e),b.value}:(i<4&&(A=o(b,`get`,h)),i!==3&&(j=o(b,`set`,h))):(A=function(e){return e[r]},(i<2||i===4)&&(j=function(e,t){e[r]=t}));var M=k.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),w=E.call(D,p?{get:b.get,set:b.set}:b[S],k),p){if(typeof w==`object`&&w)(g=c(w.get,`accessor.get`))&&(b.get=g),(g=c(w.set,`accessor.set`))&&(b.set=g),(g=c(w.init,`accessor.init`))&&x.push(g);else if(w!==void 0)throw TypeError(`accessor decorators must return an object with get, set, or init properties or void 0`)}else c(w,(f?`field`:`method`)+` decorators`,`return`)&&(f?x.push(w):b[S]=w)}}finally{O.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)),w}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 w(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 S=u.get(b);if(!0===S||S===3&&m!==4||S===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=S(e,`string`);return typeof t==`symbol`?t:t+``}function S(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 C(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 w(e){if(Object(e)!==e)throw TypeError(`right-hand side of 'in' should be an object, got `+(e===null?`null`:typeof e));return e}s=[(0,r.customElement)(`resource-actions-menu`)];var T,E=new WeakMap,D=new WeakMap,O=new WeakMap;m=(c=(0,r.property)({attribute:!1}),u=(0,r.property)({type:String}),f=(0,r.property)({attribute:!1}),`store`),i=class extends t.WebComponent{constructor(...e){super(...e),h(this,E,(a(this),l(this))),h(this,D,d(this)),h(this,O,p(this,[]))}get[m](){return v(E,this)}set store(e){_(E,this,e)}get subjectUri(){return v(D,this)}set subjectUri(e){_(D,this,e)}get menuItems(){return v(O,this)}set menuItems(e){_(O,this,e)}confirmDelete(n){return new Promise(r=>{(0,t.showDialog)(e.default,{props:{resourceName:n},onClose:e=>r(e===!0)})})}async deleteResourceIfPresent(e,t){try{await e.fetcher.webOperation(`DELETE`,t)}catch(e){if((e?.response?.status??e?.status)===404)return;throw e}}async handleDelete(e){if(e.preventDefault(),!this.store?.fetcher||!this.subjectUri)return;let n=this.store,r=n.sym(this.subjectUri);if(await this.confirmDelete(t.utils.label(r)))try{await this.deleteResourceIfPresent(n,r.value);let e=this.subjectUri+`.acl`;e&&(await this.deleteResourceIfPresent(n,e),n.removeDocument(n.sym(e))),n.removeDocument(r)}catch{}}render(){return n.html`
|
|
2
|
+
<solid-ui-menu>
|
|
3
|
+
<solid-ui-button slot="trigger" variant="ghost" title="More options">
|
|
4
|
+
<icon-lucide-ellipsis-vertical slot="icon"></icon-lucide-ellipsis-vertical>
|
|
5
|
+
</solid-ui-button>
|
|
6
|
+
${this.menuItems.map(e=>n.html`
|
|
7
|
+
<solid-ui-menu-item @solid-ui-select=${t=>e.action(t)}>
|
|
8
|
+
${e.icon}
|
|
9
|
+
${e.label}
|
|
10
|
+
</solid-ui-menu-item>
|
|
11
|
+
`)}
|
|
12
|
+
<solid-ui-menu-item @solid-ui-select=${e=>this.handleDelete(e)}>
|
|
13
|
+
<icon-lucide-trash-2 slot="left-icon"></icon-lucide-trash-2>
|
|
14
|
+
Delete
|
|
15
|
+
</solid-ui-menu-item>
|
|
16
|
+
</solid-ui-menu>
|
|
17
|
+
`}},{e:[l,d,p,a],c:[T,o]}=b(i,[[c,1,`store`],[u,1,`subjectUri`],[f,1,`menuItems`]],s,0,void 0,t.WebComponent),o(),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return T}});
|
|
18
|
+
//# sourceMappingURL=ResourceActionsMenu.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceActionsMenu.cjs.js","names":["showDialog","utils","WebComponent","customElement","property","html","DeleteResourceDialog","_classDecs","_ResourceActionsMenu","_A","WeakMap","_B","_C","_ref","_storeDecs","attribute","_subjectUriDecs","type","String","_menuItemsDecs","ResourceActionsMenu","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_store","_init_subjectUri","_init_menuItems","_classPrivateFieldGet","store","v","_classPrivateFieldSet","subjectUri","menuItems","confirmDelete","resourceName","Promise","resolve","props","onClose","result","deleteResourceIfPresent","uri","fetcher","webOperation","err","status","response","handleDelete","event","preventDefault","resourceNode","sym","confirmation","label","value","aclUri","removeDocument","render","map","item","action","icon","_ResourceActionsMenu2","e","c","_initClass","_applyDecs","default"],"sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"sourcesContent":["import { showDialog, utils, WebComponent } from 'solid-ui'\nimport { customElement, property } from 'lit/decorators.js'\nimport { html } from 'lit'\nimport 'solid-ui/components/button'\nimport 'solid-ui/components/menu'\nimport 'solid-ui/components/menu-item'\nimport DeleteResourceDialog from './DeleteResourceDialog'\nimport '~icons/lucide/ellipsis-vertical'\nimport '~icons/lucide/trash-2'\nimport { LiveStore } from 'rdflib'\n// TODO: Add Error Status section\n\n@customElement('resource-actions-menu')\nexport default class ResourceActionsMenu extends WebComponent {\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 menuItems: Array<{ label: string, icon?: HTMLElement, action: (event: Event) => void }> = []\n\n private confirmDelete (resourceName: string) {\n return new Promise<boolean>(resolve => {\n showDialog(DeleteResourceDialog, {\n props: { resourceName },\n onClose: (result) => resolve(result === true)\n })\n })\n }\n\n /* private gotoParentFolder(resourceUri: string) {\n const sourceContext = this.sourceContext\n const outliner = sourceContext?.context?.getOutliner?.(sourceContext.context.dom)\n\n if (!outliner) return\n\n const parentFolderUri = this.getParentFolderUri(resourceUri)\n ;(outliner as any).GotoSubject(sourceContext.context.session.store.sym(parentFolderUri), true, undefined, true, undefined)\n } */\n\n private async deleteResourceIfPresent (store: LiveStore, uri: string) {\n try {\n await store.fetcher.webOperation('DELETE', uri)\n } catch (err: any) {\n const status = err?.response?.status ?? err?.status\n if (status === 404) return\n throw err\n }\n }\n\n // TODO: Below is for a file only. I need to move this to a function\n // that function needs to check if it's a container and if so we can do the\n // recursive delete function.\n // dont' forget public and private type indexes.\n private async handleDelete (event: Event) {\n event.preventDefault()\n\n if (!this.store?.fetcher || !this.subjectUri) return\n\n const store = this.store\n const resourceNode = store.sym(this.subjectUri)\n\n const confirmation = await this.confirmDelete(utils.label(resourceNode))\n if (!confirmation) return\n\n try {\n await this.deleteResourceIfPresent(store, resourceNode.value)\n\n const aclUri = this.subjectUri + '.acl'\n if (aclUri) {\n await this.deleteResourceIfPresent(store, aclUri)\n store.removeDocument(store.sym(aclUri))\n }\n\n store.removeDocument(resourceNode)\n // this.gotoParentFolder(resourceNode.value)\n } catch (err) {\n // error('Error deleting resource:', err)\n // getStatusSection()?.showError('Failed to delete resource. Check console for details.')\n }\n }\n\n render () {\n return html`\n <solid-ui-menu>\n <solid-ui-button slot=\"trigger\" variant=\"ghost\" title=\"More options\">\n <icon-lucide-ellipsis-vertical slot=\"icon\"></icon-lucide-ellipsis-vertical>\n </solid-ui-button>\n ${this.menuItems.map(item => html`\n <solid-ui-menu-item @solid-ui-select=${(event: Event) => item.action(event)}>\n ${item.icon}\n ${item.label}\n </solid-ui-menu-item>\n `)}\n <solid-ui-menu-item @solid-ui-select=${(event: Event) => this.handleDelete(event)}>\n <icon-lucide-trash-2 slot=\"left-icon\"></icon-lucide-trash-2>\n Delete\n </solid-ui-menu-item>\n </solid-ui-menu>\n `\n }\n}\n"],"mappings":"gyIAQ8BO,EAAA,EAAA,EAI7BJ,EAAAA,cAAAA,CAAc,uBAAuB,CAAC,EAAA,IAAAK,EAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,GAAAC,GAAAA,EAEpCV,EAAAA,SAAAA,CAAS,CAAEW,UAAW,EAAM,CAAC,EAACC,GAAAA,EAG9BZ,EAAAA,SAAAA,CAAS,CAAEa,KAAMC,MAAO,CAAC,EAACC,GAAAA,EAG1Bf,EAAAA,SAAAA,CAAS,CAAEW,UAAW,EAAM,CAAC,EAAC,SAmFhCgD,EAAA3C,cA1FgDlB,EAAAA,YAAa,CAAAmB,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAd,GAAAe,EAAA,IAAA,EAAAC,EAAA,IAAA,EAAA,EAAAF,EAAA,KAAAZ,EAAAe,EAAA,IAAA,CAAA,EAAAH,EAAA,KAAAX,EAAAe,EAAA,KAQuC,CAAA,CAAE,CAAA,CAAA,CAAA,IAAAd,IAAA,CAAA,OAAAe,EAAAnB,EAAA,IAAA,CAAA,CAAA,IAN5FoB,MAAKC,EAAA,CAAAC,EAAAtB,EAAA,KAAAqB,CAAA,CAAA,CAAA,IAGLE,YAAU,CAAA,OAAAJ,EAAAjB,EAAA,IAAA,CAAA,CAAA,IAAVqB,WAAUF,EAAA,CAAAC,EAAApB,EAAA,KAAAmB,CAAA,CAAA,CAAA,IAGVG,WAAS,CAAA,OAAAL,EAAAhB,EAAA,IAAA,CAAA,CAAA,IAATqB,UAASH,EAAA,CAAAC,EAAAnB,EAAA,KAAAkB,CAAA,CAAA,CAEVI,cAAeC,EAAsB,CAC3C,OAAO,IAAIC,QAAiBC,GAAW,EACrCrC,EAAAA,EAAAA,WAAAA,CAAWM,EAAAA,QAAsB,CAC/BgC,MAAO,CAAEH,cAAa,EACtBI,QAAUC,GAAWH,EAAQG,IAAW,EAAI,CAC9C,CAAC,CACH,CAAC,CACH,CAYA,MAAcC,wBAAyBZ,EAAkBa,EAAa,CACpE,GAAI,CACF,MAAMb,EAAMc,QAAQC,aAAa,SAAUF,CAAG,CAChD,OAASG,EAAU,CAEjB,IADeA,GAAKE,UAAUD,QAAUD,GAAKC,UAC9B,IAAK,OACpB,MAAMD,CACR,CACF,CAMA,MAAcG,aAAcC,EAAc,CAGxC,GAFAA,EAAMC,eAAe,EAEjB,CAAC,KAAKrB,OAAOc,SAAW,CAAC,KAAKX,WAAY,OAE9C,IAAMH,EAAQ,KAAKA,MACbsB,EAAetB,EAAMuB,IAAI,KAAKpB,UAAU,EAGzCqB,SADsB,KAAKnB,cAAcjC,EAAAA,MAAMqD,MAAMH,CAAY,CAAC,EAGvE,GAAI,CACF,MAAM,KAAKV,wBAAwBZ,EAAOsB,EAAaI,KAAK,EAE5D,IAAMC,EAAS,KAAKxB,WAAa,OAC7BwB,IACF,MAAM,KAAKf,wBAAwBZ,EAAO2B,CAAM,EAChD3B,EAAM4B,eAAe5B,EAAMuB,IAAII,CAAM,CAAC,GAGxC3B,EAAM4B,eAAeN,CAAY,CAEnC,MAAc,CAEZ,CAEJ,CAEAO,QAAU,CACR,MAAOrD,GAAAA,IAAI;;;;;UAKL,KAAK4B,UAAU0B,IAAIC,GAAQvD,EAAAA,IAAI;iDACS4C,GAAiBW,EAAKC,OAAOZ,CAAK,EAAC;cACvEW,EAAKE,KAAI;cACTF,EAAKN,MAAK;;SAEf,EAAC;+CACsCL,GAAiB,KAAKD,aAAaC,CAAK,EAAC;;;;;KAMvF,CACF,EAAC,CAAAe,EAAA,CAAAvC,EAAAC,EAAAC,EAAAH,GAAAyC,EAAA,CAAAzD,EAAA0D,IAAAC,EAAAJ,EAAA,CAAA,CAAAjD,EAAA,EAAA,OAAA,EAAA,CAAAE,EAAA,EAAA,YAAA,EAAA,CAAAG,EAAA,EAAA,WAAA,CAAA,EAAAZ,EAAA,EAAA,IAAA,GA1FgDL,EAAAA,YAAY,EAAAgE,EAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WebComponent } from 'solid-ui';
|
|
2
|
+
import { LiveStore } from '../../../node_modules/rdflib';
|
|
3
|
+
export default class ResourceActionsMenu extends WebComponent {
|
|
4
|
+
accessor store: LiveStore | undefined;
|
|
5
|
+
accessor subjectUri: string | undefined;
|
|
6
|
+
accessor menuItems: Array<{
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: HTMLElement;
|
|
9
|
+
action: (event: Event) => void;
|
|
10
|
+
}>;
|
|
11
|
+
private confirmDelete;
|
|
12
|
+
private deleteResourceIfPresent;
|
|
13
|
+
private handleDelete;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=ResourceActionsMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/resource-actions-menu/ResourceActionsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAE,MAAM,UAAU,CAAA;AAG1D,OAAO,4BAA4B,CAAA;AACnC,OAAO,0BAA0B,CAAA;AACjC,OAAO,+BAA+B,CAAA;AAEtC,OAAO,iCAAiC,CAAA;AACxC,OAAO,uBAAuB,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAIlC,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,YAAY;IAE3D,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAA;IAGrC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAGvC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;KAAE,CAAC,CAAK;IAErG,OAAO,CAAC,aAAa;YAmBP,uBAAuB;YAcvB,YAAY;IA4B1B,MAAM;CAmBP"}
|