@kumori/aurora-wui-components 0.0.298 → 0.0.299-dev4447
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-box-form/axebow-box-form.d.ts +2 -0
- package/dist/components/axebow-box-form/axebow-box-form.d.ts.map +1 -1
- package/dist/components/axebow-registry-selector/axebow-registry-selector.d.ts +2 -1
- package/dist/components/axebow-registry-selector/axebow-registry-selector.d.ts.map +1 -1
- package/dist/components/axebow-status/axebow-status.d.ts +3 -0
- package/dist/components/axebow-status/axebow-status.d.ts.map +1 -1
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/playground/schemas/axebow-resource-box-form.schema.d.ts.map +1 -1
- package/dist/playground/schemas/axebow-status.schema.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,8 @@ export declare class AxebowResourceBoxForm extends LitElement {
|
|
|
7
7
|
statusColor: string;
|
|
8
8
|
showTrash: boolean;
|
|
9
9
|
deleting: boolean;
|
|
10
|
+
trashDisabled: boolean;
|
|
11
|
+
trashTooltip: string;
|
|
10
12
|
items: ResourceBoxFormItem[];
|
|
11
13
|
private _openMenuId;
|
|
12
14
|
private _menuOpenUpwards;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-box-form.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-box-form/axebow-box-form.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAwB,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,uDAAuD,CAAC;AAC/D,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,6BAA6B,CAAC;AAErC,cAAc,6BAA6B,CAAC;AAE5C,qBACa,qBAAsB,SAAQ,UAAU;IACnD,MAAM,CAAC,MAAM,4BAQX;IAE0B,UAAU,SAAU;IACpB,WAAW,SAA2B;IACrC,SAAS,UAAQ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vB;IAEF,OAAO,CAAC,mBAAmB;IAS3B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,WAAW;IAmCnB,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,YAAY;IA8NpB,MAAM;CAmDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,qBAAqB,CAAC;KACnD;CACF"}
|
|
@@ -20,6 +20,7 @@ export interface RegistrySecretOption {
|
|
|
20
20
|
export declare class AxebowRegistrySelector extends LitElement {
|
|
21
21
|
static styles: import('lit').CSSResult[];
|
|
22
22
|
disabled: boolean;
|
|
23
|
+
hideTabs: boolean;
|
|
23
24
|
activeTab: number;
|
|
24
25
|
registries: CarouselItem[];
|
|
25
26
|
selectedRegistry: string;
|
|
@@ -39,7 +40,7 @@ export declare class AxebowRegistrySelector extends LitElement {
|
|
|
39
40
|
private _renderRegistryItem;
|
|
40
41
|
private _renderRegistryCarousel;
|
|
41
42
|
private _renderOneShotRegistryInputs;
|
|
42
|
-
render(): TemplateResult
|
|
43
|
+
render(): TemplateResult;
|
|
43
44
|
}
|
|
44
45
|
declare global {
|
|
45
46
|
interface HTMLElementTagNameMap {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-registry-selector.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-registry-selector/axebow-registry-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvE,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AACnE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,+BAA+B,CAAC;AACvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,iCAAiC,CAAC;AACzC,OAAO,iDAAiD,CAAC;AACzD,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AE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAOzD,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,mBAAmB;IAkB3B,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,4BAA4B;IAuDpC,MAAM;
|
|
1
|
+
{"version":3,"file":"axebow-registry-selector.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-registry-selector/axebow-registry-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGvE,OAAO,2DAA2D,CAAC;AACnE,OAAO,2DAA2D,CAAC;AACnE,OAAO,qCAAqC,CAAC;AAC7C,OAAO,+BAA+B,CAAC;AACvC,OAAO,+CAA+C,CAAC;AACvD,OAAO,iCAAiC,CAAC;AACzC,OAAO,iDAAiD,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAIxE,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,uBAAuB,EAAE,MAAM,CAAC;IAChC,0BAA0B,EAAE,MAAM,CAAC;IACnC,gBAAgB,EAAE,MAAM,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;IACjC,8BAA8B,EAAE,MAAM,CAAC;IACvC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAYD,qBACa,sBAAuB,SAAQ,UAAU;IACpD,MAAM,CAAC,MAAM,4BAQX;IAE2B,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,SAAS,SAAK;IACf,UAAU,EAAE,YAAY,EAAE,CAAM;IAC/B,gBAAgB,SAAM;IACtB,kBAAkB,SAAM;IACxB,qBAAqB,SAAM;IAC5B,OAAO,EAAE,oBAAoB,EAAE,CAAM;IAChC,MAAM,EAAG,sBAAsB,CAAC;IAEhC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACpD,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,sBAAsB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAE9E,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAOzD,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,mBAAmB;IAkB3B,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,4BAA4B;IAuDpC,MAAM;CAkBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,sBAAsB,CAAC;KACpD;CACF"}
|
|
@@ -5,10 +5,13 @@ export declare class AxebowStatus extends LitElement {
|
|
|
5
5
|
statusText: string;
|
|
6
6
|
statusColor: string;
|
|
7
7
|
deleting: boolean;
|
|
8
|
+
trashDisabled: boolean;
|
|
9
|
+
trashTooltip: string;
|
|
8
10
|
private _isTrashHovered;
|
|
9
11
|
private _handleDelete;
|
|
10
12
|
private _handleTrashMouseEnter;
|
|
11
13
|
private _handleTrashMouseLeave;
|
|
14
|
+
private _renderDisabledTrash;
|
|
12
15
|
render(): import('lit-html').TemplateResult<1>;
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=axebow-status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-status.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-status/axebow-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"axebow-status.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-status/axebow-status.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,UAAU,EAAa,MAAM,KAAK,CAAC;AAEvD,OAAO,+BAA+B,CAAC;AACvC,OAAO,qCAAqC,CAAC;AAE7C,qBACa,YAAa,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,4BAOX;IAE2B,SAAS,UAAS;IACnB,UAAU,SAAU;IACpB,WAAW,SAA2B;IACrC,QAAQ,UAAS;IACjB,aAAa,UAAS;IACvB,YAAY,SAAM;IAErC,OAAO,CAAC,eAAe,CAAS;IAEzC,OAAO,CAAC,aAAa;IAMrB,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,sBAAsB;IAM9B,OAAO,CAAC,oBAAoB;IAc5B,MAAM;CA0BT"}
|
package/dist/index.js
CHANGED
|
@@ -3922,6 +3922,7 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
3922
3922
|
constructor(..._args) {
|
|
3923
3923
|
super(..._args);
|
|
3924
3924
|
this.disabled = false;
|
|
3925
|
+
this.hideTabs = false;
|
|
3925
3926
|
this.activeTab = 0;
|
|
3926
3927
|
this.registries = [];
|
|
3927
3928
|
this.selectedRegistry = "";
|
|
@@ -4034,6 +4035,7 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
4034
4035
|
`;
|
|
4035
4036
|
}
|
|
4036
4037
|
render() {
|
|
4038
|
+
if (this.hideTabs) return this._renderRegistryCarousel();
|
|
4037
4039
|
return html`
|
|
4038
4040
|
<axebow-tab-selector
|
|
4039
4041
|
class="w-full"
|
|
@@ -4051,6 +4053,7 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
4051
4053
|
}
|
|
4052
4054
|
};
|
|
4053
4055
|
__decorate([property({ type: Boolean })], AxebowRegistrySelector.prototype, "disabled", void 0);
|
|
4056
|
+
__decorate([property({ type: Boolean })], AxebowRegistrySelector.prototype, "hideTabs", void 0);
|
|
4054
4057
|
__decorate([property({ type: Number })], AxebowRegistrySelector.prototype, "activeTab", void 0);
|
|
4055
4058
|
__decorate([property({ type: Array })], AxebowRegistrySelector.prototype, "registries", void 0);
|
|
4056
4059
|
__decorate([property({ type: String })], AxebowRegistrySelector.prototype, "selectedRegistry", void 0);
|
|
@@ -11969,6 +11972,8 @@ var AxebowStatus = class AxebowStatus extends LitElement {
|
|
|
11969
11972
|
this.statusText = "Free";
|
|
11970
11973
|
this.statusColor = "var(--axebow-success)";
|
|
11971
11974
|
this.deleting = false;
|
|
11975
|
+
this.trashDisabled = false;
|
|
11976
|
+
this.trashTooltip = "";
|
|
11972
11977
|
this._isTrashHovered = false;
|
|
11973
11978
|
}
|
|
11974
11979
|
static {
|
|
@@ -12004,6 +12009,19 @@ var AxebowStatus = class AxebowStatus extends LitElement {
|
|
|
12004
12009
|
composed: true
|
|
12005
12010
|
}));
|
|
12006
12011
|
}
|
|
12012
|
+
_renderDisabledTrash() {
|
|
12013
|
+
return html`
|
|
12014
|
+
<axebow-tooltip content=${this.trashTooltip} ?disabled=${!this.trashTooltip}>
|
|
12015
|
+
<button
|
|
12016
|
+
type="button"
|
|
12017
|
+
aria-disabled="true"
|
|
12018
|
+
class="p-0 border-0 bg-transparent flex items-center justify-center text-(--axebow-gray) opacity-50 cursor-not-allowed"
|
|
12019
|
+
>
|
|
12020
|
+
<axebow-icon iconName="delete" iconColor="currentColor" size="lg"></axebow-icon>
|
|
12021
|
+
</button>
|
|
12022
|
+
</axebow-tooltip>
|
|
12023
|
+
`;
|
|
12024
|
+
}
|
|
12007
12025
|
render() {
|
|
12008
12026
|
const isDeleting = this.deleting;
|
|
12009
12027
|
const currentText = isDeleting ? "Deleting" : this.statusText;
|
|
@@ -12015,7 +12033,7 @@ var AxebowStatus = class AxebowStatus extends LitElement {
|
|
|
12015
12033
|
${currentColor ? html`<div class="h-2 w-2 rounded-full shrink-0 transition-colors duration-200" style="background-color: ${currentColor};"></div>` : ""}
|
|
12016
12034
|
<span class="font-medium text-(--axebow-strong-gray)">${currentText}</span>
|
|
12017
12035
|
</div>
|
|
12018
|
-
${showTrashIcon ? html`
|
|
12036
|
+
${showTrashIcon && this.trashDisabled ? this._renderDisabledTrash() : showTrashIcon ? html`
|
|
12019
12037
|
<button
|
|
12020
12038
|
type="button"
|
|
12021
12039
|
class="p-0 border-0 bg-transparent cursor-pointer flex items-center justify-center text-(--axebow-error) hover:text-(--axebow-gray) transition-colors"
|
|
@@ -12034,6 +12052,8 @@ __decorate([property({ type: Boolean })], AxebowStatus.prototype, "showTrash", v
|
|
|
12034
12052
|
__decorate([property({ type: String })], AxebowStatus.prototype, "statusText", void 0);
|
|
12035
12053
|
__decorate([property({ type: String })], AxebowStatus.prototype, "statusColor", void 0);
|
|
12036
12054
|
__decorate([property({ type: Boolean })], AxebowStatus.prototype, "deleting", void 0);
|
|
12055
|
+
__decorate([property({ type: Boolean })], AxebowStatus.prototype, "trashDisabled", void 0);
|
|
12056
|
+
__decorate([property({ type: String })], AxebowStatus.prototype, "trashTooltip", void 0);
|
|
12037
12057
|
__decorate([state()], AxebowStatus.prototype, "_isTrashHovered", void 0);
|
|
12038
12058
|
AxebowStatus = __decorate([customElement("axebow-status")], AxebowStatus);
|
|
12039
12059
|
//#endregion
|
|
@@ -12342,6 +12362,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
|
|
|
12342
12362
|
this.statusColor = "var(--axebow-success)";
|
|
12343
12363
|
this.showTrash = true;
|
|
12344
12364
|
this.deleting = false;
|
|
12365
|
+
this.trashDisabled = false;
|
|
12366
|
+
this.trashTooltip = "";
|
|
12345
12367
|
this.items = [];
|
|
12346
12368
|
this._openMenuId = null;
|
|
12347
12369
|
this._menuOpenUpwards = false;
|
|
@@ -12644,6 +12666,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
|
|
|
12644
12666
|
.statusColor=${computedStatusColor}
|
|
12645
12667
|
?showTrash=${this.showTrash && !isDeleting}
|
|
12646
12668
|
?deleting=${this.deleting}
|
|
12669
|
+
?trashDisabled=${this.trashDisabled}
|
|
12670
|
+
.trashTooltip=${this.trashTooltip}
|
|
12647
12671
|
@trash-hover=${this._handleTrashHover}
|
|
12648
12672
|
@delete=${this._handleDelete}
|
|
12649
12673
|
></axebow-status>
|
|
@@ -12669,6 +12693,8 @@ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statu
|
|
|
12669
12693
|
__decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statusColor", void 0);
|
|
12670
12694
|
__decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "showTrash", void 0);
|
|
12671
12695
|
__decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "deleting", void 0);
|
|
12696
|
+
__decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "trashDisabled", void 0);
|
|
12697
|
+
__decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "trashTooltip", void 0);
|
|
12672
12698
|
__decorate([property({ type: Array })], AxebowResourceBoxForm.prototype, "items", void 0);
|
|
12673
12699
|
__decorate([state()], AxebowResourceBoxForm.prototype, "_openMenuId", void 0);
|
|
12674
12700
|
__decorate([state()], AxebowResourceBoxForm.prototype, "_menuOpenUpwards", void 0);
|