@eclipse-docks/extension-catalog 0.7.70 → 0.7.72
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/docks-catalog.d.ts.map +1 -1
- package/dist/loader.js +29 -7
- package/dist/loader.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docks-catalog.d.ts","sourceRoot":"","sources":["../src/docks-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,cAAc,EAKjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,SAAS,EAET,QAAQ,EASX,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"docks-catalog.d.ts","sourceRoot":"","sources":["../src/docks-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,cAAc,EAKjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,SAAS,EAET,QAAQ,EASX,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAK/C,qBACa,YAAa,SAAQ,SAAS;IAEvC,OAAO,CAAC,SAAS,CAAC,CAAa;IAE/B,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,8BAA8B,CAAC,CAAS;IAEhD,SAAS,CAAC,UAAU;IASpB,SAAS,CAAC,OAAO;IAQjB,OAAO,CAAC,WAAW;IAQnB,SAAS,CAAC,aAAa;IAkBvB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,yBAAyB;IASjC,gBAAgB,CAAC,KAAK,EAAE,KAAK;IAc7B,OAAO,CAAC,mBAAmB;IAQ3B,kBAAkB,CAAC,KAAK,EAAE,KAAK;IAM/B,SAAS,CAAC,iBAAiB;IAapB,cAAc,CAAC,QAAQ,EAAE,OAAO;IAShC,OAAO;IAId,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,UAAQ,GAAG,cAAc;IAgBjE,SAAS,CAAC,aAAa;IA0BvB,MAAM,CAAC,MAAM,0BAiBX;CACL;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACJ"}
|
package/dist/loader.js
CHANGED
|
@@ -4,6 +4,7 @@ import _decorate from "@oxc-project/runtime/helpers/decorate";
|
|
|
4
4
|
//#region src/docks-catalog.ts
|
|
5
5
|
var _DocksCatalog;
|
|
6
6
|
var CID_CATALOG_ROOT = "catalog.root";
|
|
7
|
+
var CATALOG_EMPTY_MESSAGE = "No catalog entries yet. Install or enable extensions that contribute catalog items.";
|
|
7
8
|
var DocksCatalog = class DocksCatalog extends DocksPart {
|
|
8
9
|
static {
|
|
9
10
|
_DocksCatalog = this;
|
|
@@ -120,13 +121,22 @@ var DocksCatalog = class DocksCatalog extends DocksPart {
|
|
|
120
121
|
}
|
|
121
122
|
renderContent() {
|
|
122
123
|
return html`
|
|
123
|
-
<
|
|
124
|
-
${
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
<div class="catalog-root">
|
|
125
|
+
${(this.rootNodes?.length ?? 0) > 0 ? html`
|
|
126
|
+
<wa-tree
|
|
127
|
+
${ref(this.treeRef)}
|
|
128
|
+
@wa-selection-change=${this.nobubble(this.onSelectionChanged)}
|
|
129
|
+
style="--indent-guide-width: 1px;"
|
|
130
|
+
>
|
|
131
|
+
${this.rootNodes.map((node) => this.createTreeItems(node, true))}
|
|
132
|
+
</wa-tree>
|
|
133
|
+
` : html`
|
|
134
|
+
<docks-no-content
|
|
135
|
+
message=${CATALOG_EMPTY_MESSAGE}
|
|
136
|
+
icon="book"
|
|
137
|
+
></docks-no-content>
|
|
138
|
+
`}
|
|
139
|
+
</div>
|
|
130
140
|
`;
|
|
131
141
|
}
|
|
132
142
|
static {
|
|
@@ -135,6 +145,18 @@ var DocksCatalog = class DocksCatalog extends DocksPart {
|
|
|
135
145
|
display: flex;
|
|
136
146
|
flex-direction: column;
|
|
137
147
|
}
|
|
148
|
+
|
|
149
|
+
.catalog-root {
|
|
150
|
+
height: 100%;
|
|
151
|
+
min-height: 0;
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-direction: column;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.catalog-root wa-tree {
|
|
157
|
+
flex: 1;
|
|
158
|
+
min-height: 0;
|
|
159
|
+
}
|
|
138
160
|
`;
|
|
139
161
|
}
|
|
140
162
|
};
|
package/dist/loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","names":[],"sources":["../src/docks-catalog.ts","../src/loader.ts"],"sourcesContent":["import {\n css,\n html,\n TemplateResult,\n customElement,\n state,\n createRef,\n ref,\n} from \"@eclipse-docks/core/externals/lit\";\nimport {\n DocksPart,\n TreeContribution,\n TreeNode,\n contributionRegistry,\n activePartSignal,\n activeSelectionSignal,\n subscribe,\n unsubscribe,\n TOPIC_CONTRIBUTEIONS_CHANGED,\n type ContributionChangeEvent,\n icon,\n} from \"@eclipse-docks/core\";\n\nexport const CID_CATALOG_ROOT = \"catalog.root\";\n\n@customElement(\"docks-catalog\")\nexport class DocksCatalog extends DocksPart {\n @state()\n private rootNodes?: TreeNode[];\n\n private treeRef = createRef<HTMLElement>();\n private contributionsSubscriptionToken?: string;\n\n protected doBeforeUI() {\n this.rebuildTree();\n this.contributionsSubscriptionToken = subscribe(TOPIC_CONTRIBUTEIONS_CHANGED, (event: ContributionChangeEvent) => {\n if (event.target === CID_CATALOG_ROOT || event.target?.startsWith(\"catalog.\")) {\n this.rebuildTree();\n }\n });\n }\n\n protected doClose() {\n if (this.contributionsSubscriptionToken) {\n unsubscribe(this.contributionsSubscriptionToken);\n this.contributionsSubscriptionToken = undefined;\n }\n super.doClose();\n }\n\n private rebuildTree() {\n const contributions = contributionRegistry.getContributions(\n CID_CATALOG_ROOT\n ) as TreeContribution[];\n this.rootNodes = this.toTreeNodes(contributions);\n this.requestUpdate();\n }\n\n protected renderToolbar() {\n const isActiveAndHasSelection =\n activePartSignal.get() instanceof DocksCatalog &&\n activeSelectionSignal.get() !== undefined;\n\n return html`\n <docks-command\n icon=\"file-arrow-down\"\n title=\"Checkout\"\n ?disabled=${!isActiveAndHasSelection}\n .action=${() => this.runWgetForSelection()}\n ></docks-command>\n <docks-command icon=\"arrows-rotate\" title=\"Refresh Catalog\" .action=${() => this.refresh()}></docks-command>\n <docks-command icon=\"angles-down\" slot=\"end\" title=\"Expand All\" .action=${() => this.setAllExpanded(true)}></docks-command>\n <docks-command icon=\"angles-up\" slot=\"end\" title=\"Collapse All\" .action=${() => this.setAllExpanded(false)}></docks-command>\n `;\n }\n\n private toTreeNodes(contributions: TreeContribution[]) {\n return contributions.map((c) => {\n const node = {\n data: c.state,\n icon: c.icon,\n label: c.label,\n leaf: false,\n } as TreeNode;\n if (c.contributionId) {\n const children = contributionRegistry.getContributions(\n c.contributionId\n ) as TreeContribution[];\n node.leaf = children.length === 0;\n node.children = this.toTreeNodes(children);\n }\n return node;\n });\n }\n\n private wgetParamsFromCatalogData(data: { url?: string; filename?: string }) {\n if (!data?.url) return null;\n const params: { url: string; filename?: string } = { url: data.url };\n if (typeof data.filename === \"string\" && data.filename.trim()) {\n params.filename = data.filename.trim();\n }\n return params;\n }\n\n onItemDblClicked(event: Event) {\n const item = event.currentTarget as HTMLElement & { model?: TreeNode; expanded?: boolean };\n const node = item?.model;\n if (!node) return;\n const wgetParams = this.wgetParamsFromCatalogData(node.data);\n if (wgetParams) {\n this.executeCommand(\"wget\", wgetParams);\n return;\n }\n if (!node.leaf && \"expanded\" in item) {\n item.expanded = !item.expanded;\n }\n }\n\n private runWgetForSelection() {\n const item = activeSelectionSignal.get();\n const wgetParams = item && this.wgetParamsFromCatalogData(item as { url?: string; filename?: string });\n if (wgetParams) {\n this.executeCommand(\"wget\", wgetParams);\n }\n }\n\n onSelectionChanged(event: Event) {\n const node: TreeNode = (event as CustomEvent).detail.selection[0]\n .model;\n activeSelectionSignal.set(node.data);\n }\n\n protected renderContextMenu() {\n const item = activePartSignal.get() instanceof DocksCatalog ? activeSelectionSignal.get() : undefined;\n const hasUrl = item && \"url\" in item && item.url;\n return html`\n <docks-command\n icon=\"file-arrow-down\"\n title=\"Checkout\"\n ?disabled=${!hasUrl}\n .action=${() => this.runWgetForSelection()}\n >Checkout</docks-command>\n `;\n }\n\n public setAllExpanded(expanded: boolean) {\n const tree = this.treeRef.value;\n if (tree) {\n tree.querySelectorAll(\"wa-tree-item\").forEach((item: any) => {\n item.expanded = expanded;\n });\n }\n }\n\n public refresh() {\n this.rebuildTree();\n }\n\n createTreeItems(node: TreeNode, expanded = false): TemplateResult {\n if (!node) {\n return html``;\n }\n return html`\n <wa-tree-item\n @dblclick=${this.nobubble(this.onItemDblClicked)}\n .model=${node}\n ?expanded=${expanded}\n >\n <span>${icon(node.icon)} ${node.label}</span>\n ${node.children?.map((child) => this.createTreeItems(child))}\n </wa-tree-item>\n `;\n }\n\n protected renderContent() {\n return html`\n <wa-tree\n ${ref(this.treeRef)}\n @wa-selection-change=${this.nobubble(this.onSelectionChanged)}\n style=\"--indent-guide-width: 1px;\"\n >\n ${this.rootNodes?.map((node) =>\n this.createTreeItems(node, true)\n )}\n </wa-tree>\n `;\n }\n\n static styles = css`\n :host {\n display: flex;\n flex-direction: column;\n }\n `;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"docks-catalog\": DocksCatalog;\n }\n}\n","import { html } from \"@eclipse-docks/core/externals/lit\";\nimport { contributionRegistry, SIDEBAR_MAIN } from \"@eclipse-docks/core\";\nimport \"./docks-catalog\";\n\ncontributionRegistry.registerContribution(SIDEBAR_MAIN, {\n name: \"catalog\",\n label: \"Catalog\",\n icon: \"book\",\n component: (id: string) => html`<docks-catalog id=\"${id}\"></docks-catalog>`,\n} as any);\n"],"mappings":";;;;;AAuBA,IAAa,mBAAmB;AAGzB,IAAA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,CACnC,CAAC;;;;;gBAKE,GAAG;;;;;;;;WAjKlB,OAAO,CAAA,EAAA,aAAA,WAAA,aAAA,KAAA,EAAA;0CAFX,cAAc,gBAAgB,CAAA,EAAA,aAAA;;;ACrB/B,qBAAqB,qBAAqB,cAAc;CACpD,MAAM;CACN,OAAO;CACP,MAAM;CACN,YAAY,OAAe,IAAI,sBAAsB,GAAG;CAC3D,CAAQ"}
|
|
1
|
+
{"version":3,"file":"loader.js","names":[],"sources":["../src/docks-catalog.ts","../src/loader.ts"],"sourcesContent":["import {\n css,\n html,\n TemplateResult,\n customElement,\n state,\n createRef,\n ref,\n} from \"@eclipse-docks/core/externals/lit\";\nimport {\n DocksPart,\n TreeContribution,\n TreeNode,\n contributionRegistry,\n activePartSignal,\n activeSelectionSignal,\n subscribe,\n unsubscribe,\n TOPIC_CONTRIBUTEIONS_CHANGED,\n type ContributionChangeEvent,\n icon,\n} from \"@eclipse-docks/core\";\n\nexport const CID_CATALOG_ROOT = \"catalog.root\";\n\nconst CATALOG_EMPTY_MESSAGE =\n \"No catalog entries yet. Install or enable extensions that contribute catalog items.\";\n\n@customElement(\"docks-catalog\")\nexport class DocksCatalog extends DocksPart {\n @state()\n private rootNodes?: TreeNode[];\n\n private treeRef = createRef<HTMLElement>();\n private contributionsSubscriptionToken?: string;\n\n protected doBeforeUI() {\n this.rebuildTree();\n this.contributionsSubscriptionToken = subscribe(TOPIC_CONTRIBUTEIONS_CHANGED, (event: ContributionChangeEvent) => {\n if (event.target === CID_CATALOG_ROOT || event.target?.startsWith(\"catalog.\")) {\n this.rebuildTree();\n }\n });\n }\n\n protected doClose() {\n if (this.contributionsSubscriptionToken) {\n unsubscribe(this.contributionsSubscriptionToken);\n this.contributionsSubscriptionToken = undefined;\n }\n super.doClose();\n }\n\n private rebuildTree() {\n const contributions = contributionRegistry.getContributions(\n CID_CATALOG_ROOT\n ) as TreeContribution[];\n this.rootNodes = this.toTreeNodes(contributions);\n this.requestUpdate();\n }\n\n protected renderToolbar() {\n const isActiveAndHasSelection =\n activePartSignal.get() instanceof DocksCatalog &&\n activeSelectionSignal.get() !== undefined;\n\n return html`\n <docks-command\n icon=\"file-arrow-down\"\n title=\"Checkout\"\n ?disabled=${!isActiveAndHasSelection}\n .action=${() => this.runWgetForSelection()}\n ></docks-command>\n <docks-command icon=\"arrows-rotate\" title=\"Refresh Catalog\" .action=${() => this.refresh()}></docks-command>\n <docks-command icon=\"angles-down\" slot=\"end\" title=\"Expand All\" .action=${() => this.setAllExpanded(true)}></docks-command>\n <docks-command icon=\"angles-up\" slot=\"end\" title=\"Collapse All\" .action=${() => this.setAllExpanded(false)}></docks-command>\n `;\n }\n\n private toTreeNodes(contributions: TreeContribution[]) {\n return contributions.map((c) => {\n const node = {\n data: c.state,\n icon: c.icon,\n label: c.label,\n leaf: false,\n } as TreeNode;\n if (c.contributionId) {\n const children = contributionRegistry.getContributions(\n c.contributionId\n ) as TreeContribution[];\n node.leaf = children.length === 0;\n node.children = this.toTreeNodes(children);\n }\n return node;\n });\n }\n\n private wgetParamsFromCatalogData(data: { url?: string; filename?: string }) {\n if (!data?.url) return null;\n const params: { url: string; filename?: string } = { url: data.url };\n if (typeof data.filename === \"string\" && data.filename.trim()) {\n params.filename = data.filename.trim();\n }\n return params;\n }\n\n onItemDblClicked(event: Event) {\n const item = event.currentTarget as HTMLElement & { model?: TreeNode; expanded?: boolean };\n const node = item?.model;\n if (!node) return;\n const wgetParams = this.wgetParamsFromCatalogData(node.data);\n if (wgetParams) {\n void this.executeCommand(\"wget\", wgetParams);\n return;\n }\n if (!node.leaf && \"expanded\" in item) {\n item.expanded = !item.expanded;\n }\n }\n\n private runWgetForSelection() {\n const item = activeSelectionSignal.get();\n const wgetParams = item && this.wgetParamsFromCatalogData(item as { url?: string; filename?: string });\n if (wgetParams) {\n void this.executeCommand(\"wget\", wgetParams);\n }\n }\n\n onSelectionChanged(event: Event) {\n const node: TreeNode = (event as CustomEvent).detail.selection[0]\n .model;\n activeSelectionSignal.set(node.data);\n }\n\n protected renderContextMenu() {\n const item = activePartSignal.get() instanceof DocksCatalog ? activeSelectionSignal.get() : undefined;\n const hasUrl = item && \"url\" in item && item.url;\n return html`\n <docks-command\n icon=\"file-arrow-down\"\n title=\"Checkout\"\n ?disabled=${!hasUrl}\n .action=${() => this.runWgetForSelection()}\n >Checkout</docks-command>\n `;\n }\n\n public setAllExpanded(expanded: boolean) {\n const tree = this.treeRef.value;\n if (tree) {\n tree.querySelectorAll(\"wa-tree-item\").forEach((item: any) => {\n item.expanded = expanded;\n });\n }\n }\n\n public refresh() {\n this.rebuildTree();\n }\n\n createTreeItems(node: TreeNode, expanded = false): TemplateResult {\n if (!node) {\n return html``;\n }\n return html`\n <wa-tree-item\n @dblclick=${this.nobubble(this.onItemDblClicked)}\n .model=${node}\n ?expanded=${expanded}\n >\n <span>${icon(node.icon)} ${node.label}</span>\n ${node.children?.map((child) => this.createTreeItems(child))}\n </wa-tree-item>\n `;\n }\n\n protected renderContent() {\n const hasItems = (this.rootNodes?.length ?? 0) > 0;\n return html`\n <div class=\"catalog-root\">\n ${hasItems\n ? html`\n <wa-tree\n ${ref(this.treeRef)}\n @wa-selection-change=${this.nobubble(this.onSelectionChanged)}\n style=\"--indent-guide-width: 1px;\"\n >\n ${this.rootNodes!.map((node) =>\n this.createTreeItems(node, true)\n )}\n </wa-tree>\n `\n : html`\n <docks-no-content\n message=${CATALOG_EMPTY_MESSAGE}\n icon=\"book\"\n ></docks-no-content>\n `}\n </div>\n `;\n }\n\n static styles = css`\n :host {\n display: flex;\n flex-direction: column;\n }\n\n .catalog-root {\n height: 100%;\n min-height: 0;\n display: flex;\n flex-direction: column;\n }\n\n .catalog-root wa-tree {\n flex: 1;\n min-height: 0;\n }\n `;\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"docks-catalog\": DocksCatalog;\n }\n}\n","import { html } from \"@eclipse-docks/core/externals/lit\";\nimport { contributionRegistry, SIDEBAR_MAIN } from \"@eclipse-docks/core\";\nimport \"./docks-catalog\";\n\ncontributionRegistry.registerContribution(SIDEBAR_MAIN, {\n name: \"catalog\",\n label: \"Catalog\",\n icon: \"book\",\n component: (id: string) => html`<docks-catalog id=\"${id}\"></docks-catalog>`,\n} as any);\n"],"mappings":";;;;;AAuBA,IAAa,mBAAmB;AAEhC,IAAM,wBACF;AAGG,IAAA,eAAA,MAAM,qBAAqB,UAAU;;;;;;iBAItB,WAAwB;;CAG1C,aAAuB;AACnB,OAAK,aAAa;AAClB,OAAK,iCAAiC,UAAU,+BAA+B,UAAmC;AAC9G,OAAI,MAAM,WAAA,kBAA+B,MAAM,QAAQ,WAAW,WAAW,CACzE,MAAK,aAAa;IAExB;;CAGN,UAAoB;AAChB,MAAI,KAAK,gCAAgC;AACrC,eAAY,KAAK,+BAA+B;AAChD,QAAK,iCAAiC,KAAA;;AAE1C,QAAM,SAAS;;CAGnB,cAAsB;EAClB,MAAM,gBAAgB,qBAAqB,iBACvC,iBACH;AACD,OAAK,YAAY,KAAK,YAAY,cAAc;AAChD,OAAK,eAAe;;CAGxB,gBAA0B;AAKtB,SAAO,IAAI;;;;4BAIS,EAPhB,iBAAiB,KAAK,YAAA,iBACtB,sBAAsB,KAAK,KAAK,KAAA,GAMS;gCACrB,KAAK,qBAAqB,CAAC;;wFAE6B,KAAK,SAAS,CAAC;4FACX,KAAK,eAAe,KAAK,CAAC;4FAC1B,KAAK,eAAe,MAAM,CAAC;;;CAInH,YAAoB,eAAmC;AACnD,SAAO,cAAc,KAAK,MAAM;GAC5B,MAAM,OAAO;IACT,MAAM,EAAE;IACR,MAAM,EAAE;IACR,OAAO,EAAE;IACT,MAAM;IACT;AACD,OAAI,EAAE,gBAAgB;IAClB,MAAM,WAAW,qBAAqB,iBAClC,EAAE,eACL;AACD,SAAK,OAAO,SAAS,WAAW;AAChC,SAAK,WAAW,KAAK,YAAY,SAAS;;AAE9C,UAAO;IACT;;CAGN,0BAAkC,MAA2C;AACzE,MAAI,CAAC,MAAM,IAAK,QAAO;EACv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