@kumori/aurora-wui-components 0.0.188 → 0.0.190
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/components/axebow-draggable-service/axebow-draggable-service.d.ts +2 -0
- package/dist/components/axebow-draggable-service/axebow-draggable-service.d.ts.map +1 -1
- package/dist/components/axebow-mesh-node-renderer/axebow-mesh-node-renderer.d.ts.map +1 -1
- package/dist/components/axebow-services-panel/axebow-services-panel.d.ts +1 -10
- package/dist/components/axebow-services-panel/axebow-services-panel.d.ts.map +1 -1
- package/dist/index.js +10 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,8 @@ export declare class AxebowDraggableService extends LitElement {
|
|
|
8
8
|
showVersionSelector: boolean;
|
|
9
9
|
revisions: RevisionItem[];
|
|
10
10
|
displayedRevision: string;
|
|
11
|
+
dragData: string;
|
|
12
|
+
private _handleDragStart;
|
|
11
13
|
render(): import('lit-html').TemplateResult<1>;
|
|
12
14
|
}
|
|
13
15
|
//# sourceMappingURL=axebow-draggable-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-draggable-service.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-draggable-service/axebow-draggable-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,4BAQX;IAE0B,WAAW,SAAM;IACjB,gBAAgB,SAAM;IACrB,QAAQ,UAAS;IACjB,mBAAmB,UAAS;IAC9B,SAAS,EAAE,YAAY,EAAE,CAAM;IAC9B,iBAAiB,SAAM;
|
|
1
|
+
{"version":3,"file":"axebow-draggable-service.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-draggable-service/axebow-draggable-service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,4BAQX;IAE0B,WAAW,SAAM;IACjB,gBAAgB,SAAM;IACrB,QAAQ,UAAS;IACjB,mBAAmB,UAAS;IAC9B,SAAS,EAAE,YAAY,EAAE,CAAM;IAC9B,iBAAiB,SAAM;IACvB,QAAQ,SAAM;IAE1C,OAAO,CAAC,gBAAgB;IAMxB,MAAM;CA6BP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-mesh-node-renderer.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-mesh-node-renderer/axebow-mesh-node-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,iFAAiF;IACjF,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAA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
4
|
resourcesSummary: string;
|
|
5
5
|
disabled: boolean;
|
|
6
|
+
dragData: string;
|
|
6
7
|
}
|
|
7
|
-
/**
|
|
8
|
-
* Purely presentational "available services" side panel for the mesh
|
|
9
|
-
* canvas: collapsed (a small "+" affordance) or expanded (a 242px search +
|
|
10
|
-
* draggable-service list card). Every label, the filtered/formatted item
|
|
11
|
-
* list, and the search term all come in via properties - the caller owns
|
|
12
|
-
* filtering, resource-summary formatting and the actual drag payload
|
|
13
|
-
* (read from the dragstart event's target, which is the dragged
|
|
14
|
-
* axebow-draggable-service and still exposes its own `serviceName`).
|
|
15
|
-
*/
|
|
16
8
|
export declare class AxebowServicesPanel extends LitElement {
|
|
17
9
|
static styles: import('lit').CSSResult[];
|
|
18
10
|
collapsed: boolean;
|
|
@@ -23,7 +15,6 @@ export declare class AxebowServicesPanel extends LitElement {
|
|
|
23
15
|
searchPlaceholder: string;
|
|
24
16
|
noServicesFoundText: string;
|
|
25
17
|
addButtonTooltip: string;
|
|
26
|
-
infoTooltip: string;
|
|
27
18
|
render(): import('lit-html').TemplateResult<1>;
|
|
28
19
|
private _renderCard;
|
|
29
20
|
private _renderServicesList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-services-panel.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-services-panel/axebow-services-panel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yDAAyD,CAAC;AACjE,OAAO,6DAA6D,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"axebow-services-panel.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-services-panel/axebow-services-panel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,yDAAyD,CAAC;AACjE,OAAO,6DAA6D,CAAC;AAErE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,qBACa,mBAAoB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,4BASX;IAE2B,SAAS,UAAQ;IACnB,QAAQ,EAAE,qBAAqB,EAAE,CAAM;IACtC,UAAU,SAAM;IAEhB,KAAK,SAAM;IACX,YAAY,SAAM;IAClB,iBAAiB,SAAM;IACvB,mBAAmB,SAAM;IACzB,gBAAgB,SAAM;IAElD,MAAM;IAgCN,OAAO,CAAC,WAAW;IAwBnB,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,mBAAmB;CAG5B"}
|
package/dist/index.js
CHANGED
|
@@ -4009,6 +4009,7 @@ var AxebowDraggableService = class AxebowDraggableService extends LitElement {
|
|
|
4009
4009
|
this.showVersionSelector = false;
|
|
4010
4010
|
this.revisions = [];
|
|
4011
4011
|
this.displayedRevision = "";
|
|
4012
|
+
this.dragData = "";
|
|
4012
4013
|
}
|
|
4013
4014
|
static {
|
|
4014
4015
|
this.styles = [
|
|
@@ -4021,11 +4022,17 @@ var AxebowDraggableService = class AxebowDraggableService extends LitElement {
|
|
|
4021
4022
|
`
|
|
4022
4023
|
];
|
|
4023
4024
|
}
|
|
4025
|
+
_handleDragStart(e) {
|
|
4026
|
+
if (this.disabled || !e.dataTransfer) return;
|
|
4027
|
+
e.dataTransfer.setData("application/json", this.dragData);
|
|
4028
|
+
e.dataTransfer.effectAllowed = "copy";
|
|
4029
|
+
}
|
|
4024
4030
|
render() {
|
|
4025
4031
|
return html`
|
|
4026
4032
|
<div
|
|
4027
4033
|
class="w-56.5 h-12.75 pt-2 pb-2 pr-2 box-border flex items-center gap-1 rounded-md ${this.disabled ? "bg-(--axebow-base) opacity-50 cursor-not-allowed" : "bg-(--axebow-base) cursor-grab"}"
|
|
4028
4034
|
draggable="${this.disabled ? "false" : "true"}"
|
|
4035
|
+
@dragstart=${this._handleDragStart}
|
|
4029
4036
|
>
|
|
4030
4037
|
<axebow-icon class="w-4.5 h-4.5 shrink-0" iconName="drag_indicator" iconColor="var(--axebow-gray)"></axebow-icon>
|
|
4031
4038
|
<div class="flex flex-col gap-1 min-w-0 flex-1">
|
|
@@ -4052,6 +4059,7 @@ __decorate([property({ type: Boolean })], AxebowDraggableService.prototype, "dis
|
|
|
4052
4059
|
__decorate([property({ type: Boolean })], AxebowDraggableService.prototype, "showVersionSelector", void 0);
|
|
4053
4060
|
__decorate([property({ type: Array })], AxebowDraggableService.prototype, "revisions", void 0);
|
|
4054
4061
|
__decorate([property({ type: String })], AxebowDraggableService.prototype, "displayedRevision", void 0);
|
|
4062
|
+
__decorate([property({ type: String })], AxebowDraggableService.prototype, "dragData", void 0);
|
|
4055
4063
|
AxebowDraggableService = __decorate([customElement("axebow-draggable-service")], AxebowDraggableService);
|
|
4056
4064
|
//#endregion
|
|
4057
4065
|
//#region src/components/axebow-services-panel/axebow-services-panel.ts
|
|
@@ -4066,18 +4074,12 @@ var AxebowServicesPanel = class AxebowServicesPanel extends LitElement {
|
|
|
4066
4074
|
this.searchPlaceholder = "";
|
|
4067
4075
|
this.noServicesFoundText = "";
|
|
4068
4076
|
this.addButtonTooltip = "";
|
|
4069
|
-
this.infoTooltip = "";
|
|
4070
4077
|
}
|
|
4071
4078
|
static {
|
|
4072
4079
|
this.styles = [
|
|
4073
4080
|
unsafeCSS(tailwind_default),
|
|
4074
4081
|
axebowTheme,
|
|
4075
4082
|
css`
|
|
4076
|
-
/* No width of its own - exactly as wide as its content (the 242px
|
|
4077
|
-
card, or the small collapsed "+" button) and never flex-grows, so
|
|
4078
|
-
whatever extra width the canvas row gets always goes to the
|
|
4079
|
-
canvas, never here. flex-shrink:0 only stops it being squeezed
|
|
4080
|
-
smaller than that content. */
|
|
4081
4083
|
:host {
|
|
4082
4084
|
display: block;
|
|
4083
4085
|
flex-shrink: 0;
|
|
@@ -4119,9 +4121,6 @@ var AxebowServicesPanel = class AxebowServicesPanel extends LitElement {
|
|
|
4119
4121
|
<div class="h-full bg-white rounded-md axebow-shadow p-2 box-border">
|
|
4120
4122
|
<div class="flex justify-between items-center gap-4">
|
|
4121
4123
|
<h1 class="font-semibold text-sm text-(--axebow-secondary) uppercase px-1">${this.title}</h1>
|
|
4122
|
-
<sl-tooltip class="cursor-pointer" content=${this.infoTooltip} style="--max-width: 250px;">
|
|
4123
|
-
<axebow-icon iconName="help" iconColor="var(--axebow-secondary)" size="small"></axebow-icon>
|
|
4124
|
-
</sl-tooltip>
|
|
4125
4124
|
</div>
|
|
4126
4125
|
<div class="w-full h-px bg-(--axebow-light-gray)/80"></div>
|
|
4127
4126
|
<p class="text-sm text-(--axebow-secondary) px-2 my-2">${this.dragDropText}</p>
|
|
@@ -4148,6 +4147,7 @@ var AxebowServicesPanel = class AxebowServicesPanel extends LitElement {
|
|
|
4148
4147
|
.serviceName=${service.name}
|
|
4149
4148
|
.resourcesSummary=${service.resourcesSummary}
|
|
4150
4149
|
.disabled=${service.disabled}
|
|
4150
|
+
.dragData=${service.dragData}
|
|
4151
4151
|
></axebow-draggable-service>
|
|
4152
4152
|
`)}
|
|
4153
4153
|
</div>
|
|
@@ -4175,7 +4175,6 @@ __decorate([property({ type: String })], AxebowServicesPanel.prototype, "dragDro
|
|
|
4175
4175
|
__decorate([property({ type: String })], AxebowServicesPanel.prototype, "searchPlaceholder", void 0);
|
|
4176
4176
|
__decorate([property({ type: String })], AxebowServicesPanel.prototype, "noServicesFoundText", void 0);
|
|
4177
4177
|
__decorate([property({ type: String })], AxebowServicesPanel.prototype, "addButtonTooltip", void 0);
|
|
4178
|
-
__decorate([property({ type: String })], AxebowServicesPanel.prototype, "infoTooltip", void 0);
|
|
4179
4178
|
AxebowServicesPanel = __decorate([customElement("axebow-services-panel")], AxebowServicesPanel);
|
|
4180
4179
|
//#endregion
|
|
4181
4180
|
//#region src/components/axebow-channel-config-panel/axebow-channel-config-panel.ts
|
|
@@ -4374,10 +4373,7 @@ function buildExternalNodeContent(data, labels) {
|
|
|
4374
4373
|
const clientSection = buildChannelSection(labels.clientChannelsTitle, labels.noChannelsText, data.clientChannels || [], null);
|
|
4375
4374
|
card.appendChild(clientSection);
|
|
4376
4375
|
root.appendChild(card);
|
|
4377
|
-
const trashBtn =
|
|
4378
|
-
trashBtn.setAttribute("variant", "danger");
|
|
4379
|
-
trashBtn.setAttribute("outline", "");
|
|
4380
|
-
trashBtn.classList.add("trash-button");
|
|
4376
|
+
const trashBtn = createElement("div", "trash-button");
|
|
4381
4377
|
const trashIcon = createIcon("delete", "var(--axebow-error)", "x-small");
|
|
4382
4378
|
trashIcon.classList.add("delete-button");
|
|
4383
4379
|
trashBtn.appendChild(trashIcon);
|