@kumori/aurora-wui-components 0.0.188 → 0.0.189
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-services-panel/axebow-services-panel.d.ts +1 -9
- package/dist/components/axebow-services-panel/axebow-services-panel.d.ts.map +1 -1
- package/dist/index.js +9 -5
- 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"}
|
|
@@ -3,16 +3,8 @@ export interface AxebowServiceListItem {
|
|
|
3
3
|
name: string;
|
|
4
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;
|
|
@@ -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;IACtB,WAAW,SAAM;IAE7C,MAAM;IAgCN,OAAO,CAAC,WAAW;IA2BnB,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
|
|
@@ -4073,11 +4081,6 @@ var AxebowServicesPanel = class AxebowServicesPanel extends LitElement {
|
|
|
4073
4081
|
unsafeCSS(tailwind_default),
|
|
4074
4082
|
axebowTheme,
|
|
4075
4083
|
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
4084
|
:host {
|
|
4082
4085
|
display: block;
|
|
4083
4086
|
flex-shrink: 0;
|
|
@@ -4148,6 +4151,7 @@ var AxebowServicesPanel = class AxebowServicesPanel extends LitElement {
|
|
|
4148
4151
|
.serviceName=${service.name}
|
|
4149
4152
|
.resourcesSummary=${service.resourcesSummary}
|
|
4150
4153
|
.disabled=${service.disabled}
|
|
4154
|
+
.dragData=${service.dragData}
|
|
4151
4155
|
></axebow-draggable-service>
|
|
4152
4156
|
`)}
|
|
4153
4157
|
</div>
|