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
package/dist/RDFXMLPane.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RDFXMLPane.d.ts","sourceRoot":"","sources":["../src/RDFXMLPane.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RDFXMLPane.d.ts","sourceRoot":"","sources":["../src/RDFXMLPane.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAc,KAAK,SAAS,EAAkB,MAAM,QAAQ,CAAA;AACnE,OAAO,kBAAkB,CAAA;AACzB,OAAO,0BAA0B,CAAA;AAEjC,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB,KAAK,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,KAAK,MAAM,GAAG,IAAI,CAAA;IACzE,MAAM,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,kBAAkB,KAAK,cAAc,CAAA;CAC5E,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,oBAuDxB,CAAA"}
|
package/dist/RDFXMLPane2.cjs.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.rdfxml-pane{border
|
|
2
|
-
`).forEach(e=>{let t=r.createElement(`div`),n=r.createElement(`span`),o=r.createElement(`span`),s=i(e);t.classList.add(`rdfxml-pane__line`),t.style.setProperty(`--rdfxml-indent`,`${s}ch`),n.classList.add(`rdfxml-pane__line-indent`),n.setAttribute(`aria-hidden`,`true`),o.classList.add(`rdfxml-pane__line-content`),o.textContent=e.length>0?a(e):` `,t.appendChild(n),t.appendChild(o),f.appendChild(t)}),c.appendChild(f),c}};exports.RDFXMLPane=o;
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.rdfxml-pane{border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);box-sizing:border-box;width:100%;min-width:0}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();require("./components/editor-card/index.cjs.js");let e=require("solid-ui"),t=require("rdflib");var n={icon:e.icons.originalIconBase+`22-text-xml4.png`,name:`RDFXML`,audience:[e.ns.solid(`Developer`)],label:function(e,t){let n=t.session.store;if(`http://www.w3.org/2007/ont/link#ProtocolEvent`in n.findTypeURIs(e))return null;let r=n.statementsMatching(void 0,void 0,void 0,e).length;return r===0?null:`As RDF/XML (`+r+`)`},render:function(e,n){let r=n.dom,i=n.session.store,a=r.createElement(`div`);a.setAttribute(`class`,`rdfxml-pane`);let o=i.statementsMatching(void 0,void 0,void 0,e),s=(0,t.Serializer)(i);s.suggestNamespaces(i.namespaces),s.setBase(e.uri);let c=s.statementsToXML(o),l=r.createElement(`solid-panes-editor-card`);return l.contentType=`application/rdf+xml`,l.content=c,a.appendChild(l),a}};exports.RDFXMLPane=n;
|
|
3
2
|
//# sourceMappingURL=RDFXMLPane2.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RDFXMLPane2.cjs.js","names":[],"sources":["../src/RDFXMLPane.ts"],"sourcesContent":["/* RDF/XML content Pane\n **\n ** This pane shows the content of a particular RDF resource\n ** or at least the RDF semantics we attribute to that resource,\n ** in generated N3 syntax.\n */\n\nimport
|
|
1
|
+
{"version":3,"file":"RDFXMLPane2.cjs.js","names":[],"sources":["../src/RDFXMLPane.ts"],"sourcesContent":["/* RDF/XML content Pane\n **\n ** This pane shows the content of a particular RDF resource\n ** or at least the RDF semantics we attribute to that resource,\n ** in generated N3 syntax.\n */\n\nimport { ns, icons } from 'solid-ui'\nimport type { DataBrowserContext } from 'pane-registry'\nimport { Serializer, type NamedNode, type Statement } from 'rdflib'\nimport './RDFXMLPane.css'\nimport './components/editor-card'\n\ntype RDFXMLPaneDefinition = {\n icon: string\n name: string\n audience: NamedNode[]\n label: (subject: NamedNode, context: DataBrowserContext) => string | null\n render: (subject: NamedNode, context: DataBrowserContext) => HTMLDivElement\n}\n\nexport const RDFXMLPane: RDFXMLPaneDefinition = {\n icon: icons.originalIconBase + '22-text-xml4.png',\n\n name: 'RDFXML',\n\n audience: [ns.solid('Developer')],\n\n label: function (subject: NamedNode, context: DataBrowserContext): string | null {\n const store = context.session.store\n if (\n 'http://www.w3.org/2007/ont/link#ProtocolEvent' in\n store.findTypeURIs(subject)\n ) {\n return null\n }\n\n const n = store.statementsMatching(undefined, undefined, undefined, subject)\n .length\n if (n === 0) return null\n return 'As RDF/XML (' + n + ')'\n },\n\n render: function (\n subject: NamedNode,\n context: DataBrowserContext\n ): HTMLDivElement {\n const myDocument = context.dom\n const kb = context.session.store\n\n const div = myDocument.createElement('div')\n div.setAttribute('class', 'rdfxml-pane')\n // Because of smushing etc, this will not be a copy of the original source\n // We could instead either fetch and re-parse the source,\n // or we could keep all the pre-smushed triples.\n const statements = kb.statementsMatching(\n undefined,\n undefined,\n undefined,\n subject\n ) as Statement[]\n\n const sz = Serializer(kb)\n sz.suggestNamespaces(kb.namespaces)\n sz.setBase(subject.uri)\n const serializedContent = sz.statementsToXML(statements)\n const source = myDocument.createElement('solid-panes-editor-card') as HTMLElement & {\n contentType?: string\n content?: string\n }\n source.contentType = 'application/rdf+xml'\n source.content = serializedContent\n\n div.appendChild(source)\n return div\n }\n}\n"],"mappings":"8HAqBA,IAAa,EAAmC,CAC9C,KAAM,EAAA,MAAM,iBAAmB,mBAE/B,KAAM,SAEN,SAAU,CAAC,EAAA,GAAG,MAAM,WAAW,CAAC,EAEhC,MAAO,SAAU,EAAoB,EAA4C,CAC/E,IAAM,EAAQ,EAAQ,QAAQ,MAC9B,GACE,kDACA,EAAM,aAAa,CAAO,EAE1B,OAAO,KAGT,IAAM,EAAI,EAAM,mBAAmB,IAAA,GAAW,IAAA,GAAW,IAAA,GAAW,CAAO,CAAC,CACzE,OAEH,OADI,IAAM,EAAU,KACb,eAAiB,EAAI,GAC9B,EAEA,OAAQ,SACN,EACA,EACgB,CAChB,IAAM,EAAa,EAAQ,IACrB,EAAK,EAAQ,QAAQ,MAErB,EAAM,EAAW,cAAc,KAAK,EAC1C,EAAI,aAAa,QAAS,aAAa,EAIvC,IAAM,EAAa,EAAG,mBACpB,IAAA,GACA,IAAA,GACA,IAAA,GACA,CACF,EAEM,GAAA,EAAK,EAAA,WAAA,CAAW,CAAE,EACxB,EAAG,kBAAkB,EAAG,UAAU,EAClC,EAAG,QAAQ,EAAQ,GAAG,EACtB,IAAM,EAAoB,EAAG,gBAAgB,CAAU,EACjD,EAAS,EAAW,cAAc,yBAAyB,EAQjE,MAJA,GAAO,YAAc,sBACrB,EAAO,QAAU,EAEjB,EAAI,YAAY,CAAM,EACf,CACT,CACF"}
|
package/dist/RDFXMLPane2.esm.js
CHANGED
|
@@ -1,55 +1,28 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.rdfxml-pane{border
|
|
2
|
-
|
|
3
|
-
import
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.rdfxml-pane{border:1px solid var(--solid-ui-color-slate-200,#e2e8f0);box-sizing:border-box;width:100%;min-width:0}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import "./components/editor-card/index.esm.js";
|
|
2
|
+
|
|
3
|
+
import { icons as e, ns as t } from "solid-ui";
|
|
4
|
+
import { Serializer as n } from "rdflib";
|
|
4
5
|
//#region src/RDFXMLPane.ts
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
if (e.trim().length === 0) return 0;
|
|
8
|
-
let t = 0;
|
|
9
|
-
for (let n of e) {
|
|
10
|
-
if (n === " ") {
|
|
11
|
-
t += 1;
|
|
12
|
-
continue;
|
|
13
|
-
}
|
|
14
|
-
if (n === " ") {
|
|
15
|
-
t += 2;
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
18
|
-
break;
|
|
19
|
-
}
|
|
20
|
-
return Math.max(t, 2);
|
|
21
|
-
}
|
|
22
|
-
function i(e) {
|
|
23
|
-
return e.replace(/^[ \t]+/, "");
|
|
24
|
-
}
|
|
25
|
-
var a = {
|
|
26
|
-
icon: e.icons.originalIconBase + "22-text-xml4.png",
|
|
6
|
+
var r = {
|
|
7
|
+
icon: e.originalIconBase + "22-text-xml4.png",
|
|
27
8
|
name: "RDFXML",
|
|
28
|
-
audience: [
|
|
9
|
+
audience: [t.solid("Developer")],
|
|
29
10
|
label: function(e, t) {
|
|
30
11
|
let n = t.session.store;
|
|
31
12
|
if ("http://www.w3.org/2007/ont/link#ProtocolEvent" in n.findTypeURIs(e)) return null;
|
|
32
13
|
let r = n.statementsMatching(void 0, void 0, void 0, e).length;
|
|
33
14
|
return r === 0 ? null : "As RDF/XML (" + r + ")";
|
|
34
15
|
},
|
|
35
|
-
render: function(e,
|
|
36
|
-
let
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
c.setAttribute("class", "rdfxml-pane"), s(c);
|
|
43
|
-
let l = o.statementsMatching(void 0, void 0, void 0, e), u = t.Serializer(o);
|
|
44
|
-
u.suggestNamespaces(o.namespaces), u.setBase(e.uri);
|
|
45
|
-
let d = u.statementsToXML(l), f = a.createElement("div");
|
|
46
|
-
return f.classList.add("rdfxml-pane__source"), d.split("\n").forEach((e) => {
|
|
47
|
-
let t = a.createElement("div"), n = a.createElement("span"), o = a.createElement("span"), s = r(e);
|
|
48
|
-
t.classList.add("rdfxml-pane__line"), t.style.setProperty("--rdfxml-indent", `${s}ch`), n.classList.add("rdfxml-pane__line-indent"), n.setAttribute("aria-hidden", "true"), o.classList.add("rdfxml-pane__line-content"), o.textContent = e.length > 0 ? i(e) : " ", t.appendChild(n), t.appendChild(o), f.appendChild(t);
|
|
49
|
-
}), c.appendChild(f), c;
|
|
16
|
+
render: function(e, t) {
|
|
17
|
+
let r = t.dom, i = t.session.store, a = r.createElement("div");
|
|
18
|
+
a.setAttribute("class", "rdfxml-pane");
|
|
19
|
+
let o = i.statementsMatching(void 0, void 0, void 0, e), s = n(i);
|
|
20
|
+
s.suggestNamespaces(i.namespaces), s.setBase(e.uri);
|
|
21
|
+
let c = s.statementsToXML(o), l = r.createElement("solid-panes-editor-card");
|
|
22
|
+
return l.contentType = "application/rdf+xml", l.content = c, a.appendChild(l), a;
|
|
50
23
|
}
|
|
51
24
|
};
|
|
52
25
|
//#endregion
|
|
53
|
-
export {
|
|
26
|
+
export { r as RDFXMLPane };
|
|
54
27
|
|
|
55
28
|
//# sourceMappingURL=RDFXMLPane2.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RDFXMLPane2.esm.js","names":[],"sources":["../src/RDFXMLPane.ts"],"sourcesContent":["/* RDF/XML content Pane\n **\n ** This pane shows the content of a particular RDF resource\n ** or at least the RDF semantics we attribute to that resource,\n ** in generated N3 syntax.\n */\n\nimport
|
|
1
|
+
{"version":3,"file":"RDFXMLPane2.esm.js","names":[],"sources":["../src/RDFXMLPane.ts"],"sourcesContent":["/* RDF/XML content Pane\n **\n ** This pane shows the content of a particular RDF resource\n ** or at least the RDF semantics we attribute to that resource,\n ** in generated N3 syntax.\n */\n\nimport { ns, icons } from 'solid-ui'\nimport type { DataBrowserContext } from 'pane-registry'\nimport { Serializer, type NamedNode, type Statement } from 'rdflib'\nimport './RDFXMLPane.css'\nimport './components/editor-card'\n\ntype RDFXMLPaneDefinition = {\n icon: string\n name: string\n audience: NamedNode[]\n label: (subject: NamedNode, context: DataBrowserContext) => string | null\n render: (subject: NamedNode, context: DataBrowserContext) => HTMLDivElement\n}\n\nexport const RDFXMLPane: RDFXMLPaneDefinition = {\n icon: icons.originalIconBase + '22-text-xml4.png',\n\n name: 'RDFXML',\n\n audience: [ns.solid('Developer')],\n\n label: function (subject: NamedNode, context: DataBrowserContext): string | null {\n const store = context.session.store\n if (\n 'http://www.w3.org/2007/ont/link#ProtocolEvent' in\n store.findTypeURIs(subject)\n ) {\n return null\n }\n\n const n = store.statementsMatching(undefined, undefined, undefined, subject)\n .length\n if (n === 0) return null\n return 'As RDF/XML (' + n + ')'\n },\n\n render: function (\n subject: NamedNode,\n context: DataBrowserContext\n ): HTMLDivElement {\n const myDocument = context.dom\n const kb = context.session.store\n\n const div = myDocument.createElement('div')\n div.setAttribute('class', 'rdfxml-pane')\n // Because of smushing etc, this will not be a copy of the original source\n // We could instead either fetch and re-parse the source,\n // or we could keep all the pre-smushed triples.\n const statements = kb.statementsMatching(\n undefined,\n undefined,\n undefined,\n subject\n ) as Statement[]\n\n const sz = Serializer(kb)\n sz.suggestNamespaces(kb.namespaces)\n sz.setBase(subject.uri)\n const serializedContent = sz.statementsToXML(statements)\n const source = myDocument.createElement('solid-panes-editor-card') as HTMLElement & {\n contentType?: string\n content?: string\n }\n source.contentType = 'application/rdf+xml'\n source.content = serializedContent\n\n div.appendChild(source)\n return div\n }\n}\n"],"mappings":";;;;;AAqBA,IAAa,IAAmC;CAC9C,MAAM,EAAM,mBAAmB;CAE/B,MAAM;CAEN,UAAU,CAAC,EAAG,MAAM,WAAW,CAAC;CAEhC,OAAO,SAAU,GAAoB,GAA4C;EAC/E,IAAM,IAAQ,EAAQ,QAAQ;EAC9B,IACE,mDACA,EAAM,aAAa,CAAO,GAE1B,OAAO;EAGT,IAAM,IAAI,EAAM,mBAAmB,KAAA,GAAW,KAAA,GAAW,KAAA,GAAW,CAAO,CAAC,CACzE;EAEH,OADI,MAAM,IAAU,OACb,iBAAiB,IAAI;CAC9B;CAEA,QAAQ,SACN,GACA,GACgB;EAChB,IAAM,IAAa,EAAQ,KACrB,IAAK,EAAQ,QAAQ,OAErB,IAAM,EAAW,cAAc,KAAK;EAC1C,EAAI,aAAa,SAAS,aAAa;EAIvC,IAAM,IAAa,EAAG,mBACpB,KAAA,GACA,KAAA,GACA,KAAA,GACA,CACF,GAEM,IAAK,EAAW,CAAE;EAExB,AADA,EAAG,kBAAkB,EAAG,UAAU,GAClC,EAAG,QAAQ,EAAQ,GAAG;EACtB,IAAM,IAAoB,EAAG,gBAAgB,CAAU,GACjD,IAAS,EAAW,cAAc,yBAAyB;EAQjE,OAJA,EAAO,cAAc,uBACrB,EAAO,UAAU,GAEjB,EAAI,YAAY,CAAM,GACf;CACT;AACF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>`}};customElements.get(`icon-lucide-folder`)||customElements.define(`icon-lucide-folder`,e),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=folder.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder.cjs.js","names":[],"sources":[],"mappings":""}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//#region ~icons/lucide/
|
|
1
|
+
//#region ~icons/lucide/folder
|
|
2
2
|
var e = class extends HTMLElement {
|
|
3
3
|
constructor() {
|
|
4
|
-
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"
|
|
4
|
+
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\"/></svg>";
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
|
-
customElements.get("icon-lucide-
|
|
7
|
+
customElements.get("icon-lucide-folder") || customElements.define("icon-lucide-folder", e);
|
|
8
8
|
//#endregion
|
|
9
9
|
export { e as default };
|
|
10
10
|
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=folder.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folder.esm.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:`open`}).innerHTML=`<style>:host { display: inline-flex; }</style><svg viewBox="0 0 24 24" width="100%" height="100%" ><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m14.305 19.53l.923-.382m0-2.296l-.923-.383m2.547-1.241l-.383-.923m.383 6.467l-.383.924m2.679-6.468l.383-.923m-.001 7.391l-.382-.924M2 21a8 8 0 0 1 10.434-7.62m8.338 3.472l.924-.383m-.924 2.679l.924.383"/><circle cx="10" cy="8" r="5"/><circle cx="18" cy="18" r="3"/></g></svg>`}};customElements.get(`icon-lucide-user-round-cog`)||customElements.define(`icon-lucide-user-round-cog`,e),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=user-round-cog.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-round-cog.cjs.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ~icons/lucide/user-round-cog
|
|
2
|
+
var e = class extends HTMLElement {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(), this.attachShadow({ mode: "open" }).innerHTML = "<style>:host { display: inline-flex; }</style><svg viewBox=\"0 0 24 24\" width=\"100%\" height=\"100%\" ><g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\"><path d=\"m14.305 19.53l.923-.382m0-2.296l-.923-.383m2.547-1.241l-.383-.923m.383 6.467l-.383.924m2.679-6.468l.383-.923m-.001 7.391l-.382-.924M2 21a8 8 0 0 1 10.434-7.62m8.338 3.472l.924-.383m-.924 2.679l.924.383\"/><circle cx=\"10\" cy=\"8\" r=\"5\"/><circle cx=\"18\" cy=\"18\" r=\"3\"/></g></svg>";
|
|
5
|
+
}
|
|
6
|
+
};
|
|
7
|
+
customElements.get("icon-lucide-user-round-cog") || customElements.define("icon-lucide-user-round-cog", e);
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as default };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=user-round-cog.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-round-cog.esm.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const e=require("./EditorCard.styles.cjs.js");let t=require("solid-ui"),n=require("lit/decorators.js"),r=require("lit");var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y;function b(e,t,n){x(e,t),t.set(e,n)}function x(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function S(e,t,n){return e.set(w(e,t),n),n}function C(e,t){return e.get(w(e,t))}function w(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 T(e,t,n){return(t=D(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(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:k(function(){return v(this)},r,`get`),set:function(e){t[4](this,e)}}:b[S]=v,f||k(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 A,j;O.static=u,O.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=O.access={has:d?m.bind():function(e){return r in e}};if(A&&(M.get=A),j&&(M.set=j),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 A(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:D(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 D(e){var t=O(e,`string`);return typeof t==`symbol`?t:t+``}function O(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 k(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 A(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 j(e){return e}d=[(0,n.customElement)(`solid-panes-editor-card`)];var M;new(v=(o=new WeakMap,s=new WeakMap,c=new WeakMap,y=(f=(0,n.query)(`.editor`),m=(0,n.property)(),g=(0,n.property)(),`_editor`),a=class extends t.WebComponent{constructor(...e){super(...e),T(this,y,void l(this)),T(this,`_initializing`,!1),b(this,o,p(this,null)),b(this,s,h(this)),b(this,c,_(this))}get _editorMount(){return C(o,this)}set _editorMount(e){S(o,this,e)}get contentType(){return C(s,this)}set contentType(e){S(s,this,e)}get content(){return C(c,this)}set content(e){S(c,this,e)}getEditor(){return this._editor}setReadOnly(e){this._editor?.setReadOnly(e)}async _initializeEditor(){if(this._editor||this._initializing)return;this._initializing=!0;let e=this._editorMount;if(!e){this._initializing=!1;return}try{let{CodeEditor:t}=await import(`solid-ui`);this._editor=new t;try{await this._editor.initialize(e,this.content??``,this.contentType??``,`dark`)}catch(e){throw Error(`Error initializing code editor: ${e instanceof Error?e.message:String(e)}`)}this._editor?.setReadOnly(!0)}catch(e){console.log(`Error loading CodeEditor module:`,e)}finally{this._initializing=!1}}async firstUpdated(){await this._initializeEditor()}disconnectedCallback(){super.disconnectedCallback(),this._editor&&=(this._editor.destroy(),void 0),this._initializing=!1}render(){return r.html`
|
|
2
|
+
<section class="editor-card">
|
|
3
|
+
<div class="editor"></div>
|
|
4
|
+
</section>
|
|
5
|
+
`}},{e:[p,h,_,l],c:[M,u]}=E(a,[[f,1,`_editorMount`],[m,1,`contentType`],[g,1,`content`]],d,0,void 0,t.WebComponent),a),i=class extends j{constructor(){super(M),T(this,`styles`,e.default),u()}},T(i,v,void 0),i),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return M}});
|
|
6
|
+
//# sourceMappingURL=EditorCard.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCard.cjs.js","names":["html","customElement","property","query","WebComponent","styles","_classDecs","_EditorCard","_EditorCard2","_A","WeakMap","_B","_C","_ref","_editorMountDecs","_contentTypeDecs","_contentDecs","_EditorCard3","EditorCard","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init__editorMount","_init_contentType","_init_content","_editorMount","_classPrivateFieldGet","v","_classPrivateFieldSet","contentType","content","getEditor","_editor","setReadOnly","readOnly","_initializeEditor","_initializing","editorDiv","CodeEditor","initialize","err","Error","message","String","console","log","firstUpdated","disconnectedCallback","destroy","undefined","render","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/editor-card/EditorCard.ts"],"sourcesContent":["import { html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { WebComponent, type CodeEditor } from 'solid-ui'\nimport styles from './EditorCard.styles.css'\n\n@customElement('solid-panes-editor-card')\nexport default class EditorCard extends WebComponent {\n static styles = styles\n\n private _editor?: CodeEditor\n private _initializing = false\n\n @query('.editor')\n accessor _editorMount: HTMLDivElement | null = null\n\n @property()\n accessor contentType: string | undefined\n\n @property()\n accessor content: string | undefined\n\n getEditor () {\n return this._editor\n }\n\n setReadOnly (readOnly: boolean) {\n this._editor?.setReadOnly(readOnly)\n }\n\n private async _initializeEditor () {\n if (this._editor || this._initializing) return\n this._initializing = true\n const editorDiv = this._editorMount\n\n if (!editorDiv) {\n this._initializing = false\n return\n }\n\n try {\n const { CodeEditor } = await import('solid-ui')\n this._editor = new CodeEditor()\n try {\n await this._editor.initialize(editorDiv, this.content ?? '', this.contentType ?? '', 'dark')\n } catch (err) {\n throw new Error(`Error initializing code editor: ${err instanceof Error ? err.message : String(err)}`)\n }\n this._editor?.setReadOnly(true)\n } catch (err) {\n // TODO: Bring in error handling and debug\n console.log('Error loading CodeEditor module:', err)\n } finally {\n this._initializing = false\n }\n }\n\n async firstUpdated () {\n await this._initializeEditor()\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n if (this._editor) {\n this._editor.destroy()\n this._editor = undefined\n }\n\n this._initializing = false\n }\n\n render () {\n return html`\n <section class=\"editor-card\">\n <div class=\"editor\"></div>\n </section>\n `\n }\n}\n"],"mappings":"gtIAG4CM,EAAA,EAAA,EAE3CL,EAAAA,cAAAA,CAAc,yBAAyB,CAAC,EAAA,IAAAM,EAAA,IAAAC,GAAAC,EAAA,IAAAC,QAAAC,EAAA,IAAAD,QAAAE,EAAA,IAAAF,QAAAG,GAAAC,GAAAA,EAOtCX,EAAAA,MAAAA,CAAM,SAAS,EAACY,GAAAA,EAGhBb,EAAAA,SAAAA,CAAS,EAACc,GAAAA,EAGVd,EAAAA,SAAAA,CAAS,EAAC,WAAAe,EAbb,cACwCb,EAAAA,YAAa,CAAAe,YAAA,GAAAC,EAAA,CAAA,MAAA,GAAAA,CAAA,EAAAC,EAAA,KAAAR,EAAA,KAAAS,EAAA,IAAA,CAAA,EAAAD,EAAA,KAAA,gBAI3B,EAAK,EAAAE,EAAA,KAAAd,EAAAe,EAAA,KAGkB,IAAI,CAAA,EAAAD,EAAA,KAAAZ,EAAAc,EAAA,IAAA,CAAA,EAAAF,EAAA,KAAAX,EAAAc,EAAA,IAAA,CAAA,CAAA,CAAA,IAA1CC,cAAY,CAAA,OAAAC,EAAAnB,EAAA,IAAA,CAAA,CAAA,IAAZkB,aAAYE,EAAA,CAAAC,EAAArB,EAAA,KAAAoB,CAAA,CAAA,CAAA,IAGZE,aAAW,CAAA,OAAAH,EAAAjB,EAAA,IAAA,CAAA,CAAA,IAAXoB,YAAWF,EAAA,CAAAC,EAAAnB,EAAA,KAAAkB,CAAA,CAAA,CAAA,IAGXG,SAAO,CAAA,OAAAJ,EAAAhB,EAAA,IAAA,CAAA,CAAA,IAAPoB,QAAOH,EAAA,CAAAC,EAAAlB,EAAA,KAAAiB,CAAA,CAAA,CAEhBI,WAAa,CACX,OAAO,KAAKC,OACd,CAEAC,YAAaC,EAAmB,CAC9B,KAAKF,SAASC,YAAYC,CAAQ,CACpC,CAEA,MAAcC,mBAAqB,CACjC,GAAI,KAAKH,SAAW,KAAKI,cAAe,OACxC,KAAKA,cAAgB,GACrB,IAAMC,EAAY,KAAKZ,aAEvB,GAAI,CAACY,EAAW,CACd,KAAKD,cAAgB,GACrB,MACF,CAEA,GAAI,CACF,GAAM,CAAEE,cAAe,MAAM,OAAO,YACpC,KAAKN,QAAU,IAAIM,EACnB,GAAI,CACF,MAAM,KAAKN,QAAQO,WAAWF,EAAW,KAAKP,SAAW,GAAI,KAAKD,aAAe,GAAI,MAAM,CAC7F,OAASW,EAAK,CACZ,MAAUC,MAAM,mCAAmCD,aAAeC,MAAQD,EAAIE,QAAUC,OAAOH,CAAG,GAAG,CACvG,CACA,KAAKR,SAASC,YAAY,EAAI,CAChC,OAASO,EAAK,CAEZI,QAAQC,IAAI,mCAAoCL,CAAG,CACrD,QAAU,CACR,KAAKJ,cAAgB,EACvB,CACF,CAEA,MAAMU,cAAgB,CACpB,MAAM,KAAKX,kBAAkB,CAC/B,CAEAY,sBAAwB,CACtB,MAAMA,qBAAqB,EAC3B,AAEE,KAAKf,WADL,KAAKA,QAAQgB,QAAQ,EACNC,IAAAA,IAGjB,KAAKb,cAAgB,EACvB,CAEAc,QAAU,CACR,MAAOpD,GAAAA,IAAI;;;;KAKb,CACF,EAAC,CAAAqD,EAAA,CAAA7B,EAAAC,EAAAC,EAAAJ,GAAAgC,EAAA,CAAA/C,EAAAgD,IAAAC,EAAAvC,EAAA,CAAA,CAAAH,EAAA,EAAA,cAAA,EAAA,CAAAC,EAAA,EAAA,aAAA,EAAA,CAAAC,EAAA,EAAA,SAAA,CAAA,EAAAV,EAAA,EAAA,IAAA,GAvEuCF,EAAAA,YAAY,EAAAa,GAAAwC,EAAA,cAAAC,CAAA,CAAAvC,aAAA,CAAA,MAAAZ,CAAA,EAAAc,EAAA,KAAA,SAClChB,EAAAA,OAAM,EAAAkD,EAAA,CAAA,CAAA,EAAAlC,EAAAoC,EAAAjD,EAAA,IAAA,EAAA,EAAAiD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WebComponent, CodeEditor } from 'solid-ui';
|
|
2
|
+
export default class EditorCard extends WebComponent {
|
|
3
|
+
static styles: any;
|
|
4
|
+
private _editor?;
|
|
5
|
+
private _initializing;
|
|
6
|
+
accessor _editorMount: HTMLDivElement | null;
|
|
7
|
+
accessor contentType: string | undefined;
|
|
8
|
+
accessor content: string | undefined;
|
|
9
|
+
getEditor(): CodeEditor | undefined;
|
|
10
|
+
setReadOnly(readOnly: boolean): void;
|
|
11
|
+
private _initializeEditor;
|
|
12
|
+
firstUpdated(): Promise<void>;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=EditorCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCard.d.ts","sourceRoot":"","sources":["../../../src/components/editor-card/EditorCard.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAIxD,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IAClD,MAAM,CAAC,MAAM,MAAS;IAEtB,OAAO,CAAC,OAAO,CAAC,CAAY;IAC5B,OAAO,CAAC,aAAa,CAAQ;IAG7B,QAAQ,CAAC,YAAY,EAAE,cAAc,GAAG,IAAI,CAAO;IAGnD,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAA;IAGxC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IAEpC,SAAS;IAIT,WAAW,CAAE,QAAQ,EAAE,OAAO;YAIhB,iBAAiB;IA2BzB,YAAY;IAIlB,oBAAoB;IAUpB,MAAM;CAOP"}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import e from "./EditorCard.styles.esm.js";
|
|
2
|
+
import { WebComponent as t } from "solid-ui";
|
|
3
|
+
import { customElement as n, property as r, query as i } from "lit/decorators.js";
|
|
4
|
+
import { html as a } from "lit";
|
|
5
|
+
//#region src/components/editor-card/EditorCard.ts
|
|
6
|
+
var o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x;
|
|
7
|
+
function S(e, t, n) {
|
|
8
|
+
C(e, t), t.set(e, n);
|
|
9
|
+
}
|
|
10
|
+
function C(e, t) {
|
|
11
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
12
|
+
}
|
|
13
|
+
function w(e, t, n) {
|
|
14
|
+
return e.set(E(e, t), n), n;
|
|
15
|
+
}
|
|
16
|
+
function T(e, t) {
|
|
17
|
+
return e.get(E(e, t));
|
|
18
|
+
}
|
|
19
|
+
function E(e, t, n) {
|
|
20
|
+
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
21
|
+
throw TypeError("Private element is not present on this object");
|
|
22
|
+
}
|
|
23
|
+
function D(e, t, n) {
|
|
24
|
+
return (t = k(t)) in e ? Object.defineProperty(e, t, {
|
|
25
|
+
value: n,
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
configurable: !0,
|
|
28
|
+
writable: !0
|
|
29
|
+
}) : e[t] = n, e;
|
|
30
|
+
}
|
|
31
|
+
function O(e, t, n, r, i, a) {
|
|
32
|
+
function o(e, t, n) {
|
|
33
|
+
return function(r, i) {
|
|
34
|
+
return n && n(r), e[t].call(r, i);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function s(e, t) {
|
|
38
|
+
for (var n = 0; n < e.length; n++) e[n].call(t);
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
function c(e, t, n, r) {
|
|
42
|
+
if (typeof e != "function" && (r || e !== void 0)) throw TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
|
|
43
|
+
return e;
|
|
44
|
+
}
|
|
45
|
+
function l(e, t, n, r, i, a, s, l, u, d, f, p, m) {
|
|
46
|
+
function h(e) {
|
|
47
|
+
if (!m(e)) throw TypeError("Attempted to access private element on non-instance");
|
|
48
|
+
}
|
|
49
|
+
var g, _ = t[0], v = t[3], y = !l;
|
|
50
|
+
if (!y) {
|
|
51
|
+
n || Array.isArray(_) || (_ = [_]);
|
|
52
|
+
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
53
|
+
d ? (f || p ? b = {
|
|
54
|
+
get: j(function() {
|
|
55
|
+
return v(this);
|
|
56
|
+
}, r, "get"),
|
|
57
|
+
set: function(e) {
|
|
58
|
+
t[4](this, e);
|
|
59
|
+
}
|
|
60
|
+
} : b[S] = v, f || j(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
61
|
+
}
|
|
62
|
+
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
63
|
+
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
64
|
+
kind: [
|
|
65
|
+
"field",
|
|
66
|
+
"accessor",
|
|
67
|
+
"method",
|
|
68
|
+
"getter",
|
|
69
|
+
"setter",
|
|
70
|
+
"class"
|
|
71
|
+
][i],
|
|
72
|
+
name: r,
|
|
73
|
+
metadata: a,
|
|
74
|
+
addInitializer: function(e, t) {
|
|
75
|
+
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
|
|
76
|
+
c(t, "An initializer", "be", !0), s.push(t);
|
|
77
|
+
}.bind(null, D)
|
|
78
|
+
};
|
|
79
|
+
try {
|
|
80
|
+
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
81
|
+
else {
|
|
82
|
+
var k, A;
|
|
83
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
84
|
+
return h(e), b.value;
|
|
85
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
86
|
+
return e[r];
|
|
87
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
88
|
+
e[r] = t;
|
|
89
|
+
}));
|
|
90
|
+
var M = O.access = { has: d ? m.bind() : function(e) {
|
|
91
|
+
return r in e;
|
|
92
|
+
} };
|
|
93
|
+
if (k && (M.get = k), A && (M.set = A), C = T.call(E, p ? {
|
|
94
|
+
get: b.get,
|
|
95
|
+
set: b.set
|
|
96
|
+
} : b[S], O), p) {
|
|
97
|
+
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);
|
|
98
|
+
else if (C !== void 0) throw TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
|
99
|
+
} else c(C, (f ? "field" : "method") + " decorators", "return") && (f ? x.push(C) : b[S] = C);
|
|
100
|
+
}
|
|
101
|
+
} finally {
|
|
102
|
+
D.v = !0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return (f || p) && l.push(function(e, t) {
|
|
106
|
+
for (var n = x.length - 1; n >= 0; n--) t = x[n].call(e, t);
|
|
107
|
+
return t;
|
|
108
|
+
}), 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;
|
|
109
|
+
}
|
|
110
|
+
function u(e, t) {
|
|
111
|
+
return Object.defineProperty(e, Symbol.metadata || Symbol.for("Symbol.metadata"), {
|
|
112
|
+
configurable: !0,
|
|
113
|
+
enumerable: !0,
|
|
114
|
+
value: t
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
118
|
+
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
119
|
+
var i, a, o = [], c = function(t) {
|
|
120
|
+
return M(t) === e;
|
|
121
|
+
}, u = /* @__PURE__ */ new Map();
|
|
122
|
+
function d(e) {
|
|
123
|
+
e && o.push(s.bind(null, e));
|
|
124
|
+
}
|
|
125
|
+
for (var f = 0; f < t.length; f++) {
|
|
126
|
+
var p = t[f];
|
|
127
|
+
if (Array.isArray(p)) {
|
|
128
|
+
var m = p[1], h = p[2], g = p.length > 3, _ = 16 & m, v = !!(8 & m), y = (m &= 7) == 0, b = h + "/" + v;
|
|
129
|
+
if (!y && !g) {
|
|
130
|
+
var x = u.get(b);
|
|
131
|
+
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);
|
|
132
|
+
u.set(b, !(m > 2) || m);
|
|
133
|
+
}
|
|
134
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : k(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
return d(i), d(a), o;
|
|
138
|
+
}(e, t, i, f);
|
|
139
|
+
return n.length || u(e, f), {
|
|
140
|
+
e: p,
|
|
141
|
+
get c() {
|
|
142
|
+
var t = [];
|
|
143
|
+
return n.length && [u(l(e, [n], r, e.name, 5, f, t), f), s.bind(null, t, e)];
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function k(e) {
|
|
148
|
+
var t = A(e, "string");
|
|
149
|
+
return typeof t == "symbol" ? t : t + "";
|
|
150
|
+
}
|
|
151
|
+
function A(e, t) {
|
|
152
|
+
if (typeof e != "object" || !e) return e;
|
|
153
|
+
var n = e[Symbol.toPrimitive];
|
|
154
|
+
if (n !== void 0) {
|
|
155
|
+
var r = n.call(e, t || "default");
|
|
156
|
+
if (typeof r != "object") return r;
|
|
157
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
158
|
+
}
|
|
159
|
+
return (t === "string" ? String : Number)(e);
|
|
160
|
+
}
|
|
161
|
+
function j(e, t, n) {
|
|
162
|
+
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
163
|
+
try {
|
|
164
|
+
Object.defineProperty(e, "name", {
|
|
165
|
+
configurable: !0,
|
|
166
|
+
value: n ? n + " " + t : t
|
|
167
|
+
});
|
|
168
|
+
} catch {}
|
|
169
|
+
return e;
|
|
170
|
+
}
|
|
171
|
+
function M(e) {
|
|
172
|
+
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
173
|
+
return e;
|
|
174
|
+
}
|
|
175
|
+
function N(e) {
|
|
176
|
+
return e;
|
|
177
|
+
}
|
|
178
|
+
p = [n("solid-panes-editor-card")];
|
|
179
|
+
var P;
|
|
180
|
+
new (b = (c = /*#__PURE__*/ new WeakMap(), l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), x = (m = i(".editor"), g = r(), v = r(), "_editor"), s = class extends t {
|
|
181
|
+
constructor(...e) {
|
|
182
|
+
super(...e), D(this, x, void d(this)), D(this, "_initializing", !1), S(this, c, h(this, null)), S(this, l, _(this)), S(this, u, y(this));
|
|
183
|
+
}
|
|
184
|
+
get _editorMount() {
|
|
185
|
+
return T(c, this);
|
|
186
|
+
}
|
|
187
|
+
set _editorMount(e) {
|
|
188
|
+
w(c, this, e);
|
|
189
|
+
}
|
|
190
|
+
get contentType() {
|
|
191
|
+
return T(l, this);
|
|
192
|
+
}
|
|
193
|
+
set contentType(e) {
|
|
194
|
+
w(l, this, e);
|
|
195
|
+
}
|
|
196
|
+
get content() {
|
|
197
|
+
return T(u, this);
|
|
198
|
+
}
|
|
199
|
+
set content(e) {
|
|
200
|
+
w(u, this, e);
|
|
201
|
+
}
|
|
202
|
+
getEditor() {
|
|
203
|
+
return this._editor;
|
|
204
|
+
}
|
|
205
|
+
setReadOnly(e) {
|
|
206
|
+
this._editor?.setReadOnly(e);
|
|
207
|
+
}
|
|
208
|
+
async _initializeEditor() {
|
|
209
|
+
if (this._editor || this._initializing) return;
|
|
210
|
+
this._initializing = !0;
|
|
211
|
+
let e = this._editorMount;
|
|
212
|
+
if (!e) {
|
|
213
|
+
this._initializing = !1;
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
try {
|
|
217
|
+
let { CodeEditor: t } = await import("solid-ui");
|
|
218
|
+
this._editor = new t();
|
|
219
|
+
try {
|
|
220
|
+
await this._editor.initialize(e, this.content ?? "", this.contentType ?? "", "dark");
|
|
221
|
+
} catch (e) {
|
|
222
|
+
throw Error(`Error initializing code editor: ${e instanceof Error ? e.message : String(e)}`);
|
|
223
|
+
}
|
|
224
|
+
this._editor?.setReadOnly(!0);
|
|
225
|
+
} catch (e) {
|
|
226
|
+
console.log("Error loading CodeEditor module:", e);
|
|
227
|
+
} finally {
|
|
228
|
+
this._initializing = !1;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
async firstUpdated() {
|
|
232
|
+
await this._initializeEditor();
|
|
233
|
+
}
|
|
234
|
+
disconnectedCallback() {
|
|
235
|
+
super.disconnectedCallback(), this._editor &&= (this._editor.destroy(), void 0), this._initializing = !1;
|
|
236
|
+
}
|
|
237
|
+
render() {
|
|
238
|
+
return a`
|
|
239
|
+
<section class="editor-card">
|
|
240
|
+
<div class="editor"></div>
|
|
241
|
+
</section>
|
|
242
|
+
`;
|
|
243
|
+
}
|
|
244
|
+
}, {e: [h, _, y, d], c: [P, f]} = O(s, [
|
|
245
|
+
[
|
|
246
|
+
m,
|
|
247
|
+
1,
|
|
248
|
+
"_editorMount"
|
|
249
|
+
],
|
|
250
|
+
[
|
|
251
|
+
g,
|
|
252
|
+
1,
|
|
253
|
+
"contentType"
|
|
254
|
+
],
|
|
255
|
+
[
|
|
256
|
+
v,
|
|
257
|
+
1,
|
|
258
|
+
"content"
|
|
259
|
+
]
|
|
260
|
+
], p, 0, void 0, t), s), o = class extends N {
|
|
261
|
+
constructor() {
|
|
262
|
+
super(P), D(this, "styles", e), f();
|
|
263
|
+
}
|
|
264
|
+
}, D(o, b, void 0), o)();
|
|
265
|
+
//#endregion
|
|
266
|
+
export { P as default };
|
|
267
|
+
|
|
268
|
+
//# sourceMappingURL=EditorCard.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCard.esm.js","names":["html","customElement","property","query","WebComponent","styles","_classDecs","_EditorCard","_EditorCard2","_A","WeakMap","_B","_C","_ref","_editorMountDecs","_contentTypeDecs","_contentDecs","_EditorCard3","EditorCard","constructor","args","_defineProperty","_initProto","_classPrivateFieldInitSpec","_init__editorMount","_init_contentType","_init_content","_editorMount","_classPrivateFieldGet","v","_classPrivateFieldSet","contentType","content","getEditor","_editor","setReadOnly","readOnly","_initializeEditor","_initializing","editorDiv","CodeEditor","initialize","err","Error","message","String","console","log","firstUpdated","disconnectedCallback","destroy","undefined","render","e","c","_initClass","_applyDecs","_Class","_identity","default"],"sources":["../../../src/components/editor-card/EditorCard.ts"],"sourcesContent":["import { html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { WebComponent, type CodeEditor } from 'solid-ui'\nimport styles from './EditorCard.styles.css'\n\n@customElement('solid-panes-editor-card')\nexport default class EditorCard extends WebComponent {\n static styles = styles\n\n private _editor?: CodeEditor\n private _initializing = false\n\n @query('.editor')\n accessor _editorMount: HTMLDivElement | null = null\n\n @property()\n accessor contentType: string | undefined\n\n @property()\n accessor content: string | undefined\n\n getEditor () {\n return this._editor\n }\n\n setReadOnly (readOnly: boolean) {\n this._editor?.setReadOnly(readOnly)\n }\n\n private async _initializeEditor () {\n if (this._editor || this._initializing) return\n this._initializing = true\n const editorDiv = this._editorMount\n\n if (!editorDiv) {\n this._initializing = false\n return\n }\n\n try {\n const { CodeEditor } = await import('solid-ui')\n this._editor = new CodeEditor()\n try {\n await this._editor.initialize(editorDiv, this.content ?? '', this.contentType ?? '', 'dark')\n } catch (err) {\n throw new Error(`Error initializing code editor: ${err instanceof Error ? err.message : String(err)}`)\n }\n this._editor?.setReadOnly(true)\n } catch (err) {\n // TODO: Bring in error handling and debug\n console.log('Error loading CodeEditor module:', err)\n } finally {\n this._initializing = false\n }\n }\n\n async firstUpdated () {\n await this._initializeEditor()\n }\n\n disconnectedCallback () {\n super.disconnectedCallback()\n if (this._editor) {\n this._editor.destroy()\n this._editor = undefined\n }\n\n this._initializing = false\n }\n\n render () {\n return html`\n <section class=\"editor-card\">\n <div class=\"editor\"></div>\n </section>\n `\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG4CM,IAAA,CAE3CL,EAAc,yBAAyB,CAAC;AAAA,IAAAM;AAAA,KAAAC,KAAAC,kBAAA,IAAAC,QAAA,GAAAC,kBAAA,IAAAD,QAAA,GAAAE,kBAAA,IAAAF,QAAA,GAAAG,KAAAC,IAOtCX,EAAM,SAAS,GAACY,IAGhBb,EAAS,GAACc,IAGVd,EAAS,GAAC,YAAAe,IAbb,cACwCb,EAAa;CAAAe,YAAA,GAAAC,GAAA;EAOAG,AAPA,MAAA,GAAAH,CAAA,GAAAC,EAAA,MAAAR,GAAA,KAAAS,EAAA,IAAA,CAAA,GAAAD,EAAA,MAAA,iBAI3B,EAAK,GAAAE,EAAA,MAAAd,GAAAe,EAAA,MAGkB,IAAI,CAAA,GAAAD,EAAA,MAAAZ,GAAAc,EAAA,IAAA,CAAA,GAAAF,EAAA,MAAAX,GAAAc,EAAA,IAAA,CAAA;CAAA;CAAA,IAA1CC,eAAY;EAAA,OAAAC,EAAAnB,GAAA,IAAA;CAAA;CAAA,IAAZkB,aAAYE,GAAA;EAAAC,EAAArB,GAAA,MAAAoB,CAAA;CAAA;CAAA,IAGZE,cAAW;EAAA,OAAAH,EAAAjB,GAAA,IAAA;CAAA;CAAA,IAAXoB,YAAWF,GAAA;EAAAC,EAAAnB,GAAA,MAAAkB,CAAA;CAAA;CAAA,IAGXG,UAAO;EAAA,OAAAJ,EAAAhB,GAAA,IAAA;CAAA;CAAA,IAAPoB,QAAOH,GAAA;EAAAC,EAAAlB,GAAA,MAAAiB,CAAA;CAAA;CAEhBI,YAAa;EACX,OAAO,KAAKC;CACd;CAEAC,YAAaC,GAAmB;EAC9B,KAAKF,SAASC,YAAYC,CAAQ;CACpC;CAEA,MAAcC,oBAAqB;EACjC,IAAI,KAAKH,WAAW,KAAKI,eAAe;EACxC,KAAKA,gBAAgB;EACrB,IAAMC,IAAY,KAAKZ;EAEvB,IAAI,CAACY,GAAW;GACd,KAAKD,gBAAgB;GACrB;EACF;EAEA,IAAI;GACF,IAAM,EAAEE,kBAAe,MAAM,OAAO;GACpC,KAAKN,UAAU,IAAIM,EAAW;GAC9B,IAAI;IACF,MAAM,KAAKN,QAAQO,WAAWF,GAAW,KAAKP,WAAW,IAAI,KAAKD,eAAe,IAAI,MAAM;GAC7F,SAASW,GAAK;IACZ,MAAUC,MAAM,mCAAmCD,aAAeC,QAAQD,EAAIE,UAAUC,OAAOH,CAAG,GAAG;GACvG;GACA,KAAKR,SAASC,YAAY,EAAI;EAChC,SAASO,GAAK;GAEZI,QAAQC,IAAI,oCAAoCL,CAAG;EACrD,UAAU;GACR,KAAKJ,gBAAgB;EACvB;CACF;CAEA,MAAMU,eAAgB;EACpB,MAAM,KAAKX,kBAAkB;CAC/B;CAEAY,uBAAwB;EAOtB,AANA,MAAMA,qBAAqB,GAC3B,AAEE,KAAKf,aADL,KAAKA,QAAQgB,QAAQ,GACNC,KAAAA,IAGjB,KAAKb,gBAAgB;CACvB;CAEAc,SAAU;EACR,OAAOpD,CAAI;;;;;CAKb;AACF,GAAC,CAAAqD,GAAA,CAAA7B,GAAAC,GAAAC,GAAAJ,IAAAgC,GAAA,CAAA/C,GAAAgD,MAAAC,EAAAvC,GAAA;CAAA;EAAAH;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;CAAA;EAAAC;EAAA;EAAA;CAAA;AAAA,GAAAV,GAAA,GAAA,KAAA,GAvEuCF,CAAY,GAAAa,IAAAwC,IAAA,cAAAC,EAAA;CAAAvC,cAAA;EAAA,MAAAZ,CAAA,GAAAc,EAAA,MAAA,UAClChB,CAAM,GAAAkD,EAAA;CAAA;AAAA,GAAAlC,EAAAoC,GAAAjD,GAAA,KAAA,CAAA,GAAAiD,GAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=require("lit").css`:host{width:100%;height:100%;display:block}:host section{flex-direction:column;width:100%;height:100%;min-height:0;margin:0;padding:0 40px 25px;display:flex}:host .editor{flex:auto;width:100%;min-height:0}@media (width<=768px){:host section{padding:0 0 25px}}`;exports.default=e;
|
|
2
|
+
//# sourceMappingURL=EditorCard.styles.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCard.styles.cjs.js","names":[],"sources":["../../../src/components/editor-card/EditorCard.styles.css"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n height: 100%;\n\n section {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n margin: 0;\n padding: 0px 40px 25px;\n }\n\n .editor {\n flex: 1 1 auto;\n width: 100%;\n min-height: 0;\n }\n\n @media (max-width: 768px) {\n section {\n padding: 0px 0px 25px;\n }\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { css as e } from "lit";
|
|
2
|
+
//#region src/components/editor-card/EditorCard.styles.css
|
|
3
|
+
var t = e`:host{width:100%;height:100%;display:block}:host section{flex-direction:column;width:100%;height:100%;min-height:0;margin:0;padding:0 40px 25px;display:flex}:host .editor{flex:auto;width:100%;min-height:0}@media (width<=768px){:host section{padding:0 0 25px}}`;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as default };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=EditorCard.styles.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorCard.styles.esm.js","names":[],"sources":["../../../src/components/editor-card/EditorCard.styles.css"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n height: 100%;\n\n section {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n margin: 0;\n padding: 0px 40px 25px;\n }\n\n .editor {\n flex: 1 1 auto;\n width: 100%;\n min-height: 0;\n }\n\n @media (max-width: 768px) {\n section {\n padding: 0px 0px 25px;\n }\n }\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./EditorCard.cjs.js");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,CAAA;AACrB,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./EditorCard.esm.js";
|