@kumori/aurora-wui-components 0.0.298 → 0.0.299-dev4447.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/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 +3 -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 +30 -2
- 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,UAA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AEvB;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,8 @@ 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;
|
|
24
|
+
required: boolean;
|
|
23
25
|
activeTab: number;
|
|
24
26
|
registries: CarouselItem[];
|
|
25
27
|
selectedRegistry: string;
|
|
@@ -39,7 +41,7 @@ export declare class AxebowRegistrySelector extends LitElement {
|
|
|
39
41
|
private _renderRegistryItem;
|
|
40
42
|
private _renderRegistryCarousel;
|
|
41
43
|
private _renderOneShotRegistryInputs;
|
|
42
|
-
render(): TemplateResult
|
|
44
|
+
render(): TemplateResult;
|
|
43
45
|
}
|
|
44
46
|
declare global {
|
|
45
47
|
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,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;
|
|
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,CAA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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,8 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
3922
3922
|
constructor(..._args) {
|
|
3923
3923
|
super(..._args);
|
|
3924
3924
|
this.disabled = false;
|
|
3925
|
+
this.hideTabs = false;
|
|
3926
|
+
this.required = true;
|
|
3925
3927
|
this.activeTab = 0;
|
|
3926
3928
|
this.registries = [];
|
|
3927
3929
|
this.selectedRegistry = "";
|
|
@@ -3973,7 +3975,7 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
3973
3975
|
<axebow-input
|
|
3974
3976
|
.disabled=${this.disabled}
|
|
3975
3977
|
label="${this.labels.registryLabel}"
|
|
3976
|
-
required
|
|
3978
|
+
?required=${this.required}
|
|
3977
3979
|
description="${this.labels.registryDescription}"
|
|
3978
3980
|
controlType="carousel"
|
|
3979
3981
|
.value="${this.selectedRegistry}"
|
|
@@ -4034,6 +4036,7 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
4034
4036
|
`;
|
|
4035
4037
|
}
|
|
4036
4038
|
render() {
|
|
4039
|
+
if (this.hideTabs) return this._renderRegistryCarousel();
|
|
4037
4040
|
return html`
|
|
4038
4041
|
<axebow-tab-selector
|
|
4039
4042
|
class="w-full"
|
|
@@ -4051,6 +4054,8 @@ var AxebowRegistrySelector = class AxebowRegistrySelector extends LitElement {
|
|
|
4051
4054
|
}
|
|
4052
4055
|
};
|
|
4053
4056
|
__decorate([property({ type: Boolean })], AxebowRegistrySelector.prototype, "disabled", void 0);
|
|
4057
|
+
__decorate([property({ type: Boolean })], AxebowRegistrySelector.prototype, "hideTabs", void 0);
|
|
4058
|
+
__decorate([property({ type: Boolean })], AxebowRegistrySelector.prototype, "required", void 0);
|
|
4054
4059
|
__decorate([property({ type: Number })], AxebowRegistrySelector.prototype, "activeTab", void 0);
|
|
4055
4060
|
__decorate([property({ type: Array })], AxebowRegistrySelector.prototype, "registries", void 0);
|
|
4056
4061
|
__decorate([property({ type: String })], AxebowRegistrySelector.prototype, "selectedRegistry", void 0);
|
|
@@ -11969,6 +11974,8 @@ var AxebowStatus = class AxebowStatus extends LitElement {
|
|
|
11969
11974
|
this.statusText = "Free";
|
|
11970
11975
|
this.statusColor = "var(--axebow-success)";
|
|
11971
11976
|
this.deleting = false;
|
|
11977
|
+
this.trashDisabled = false;
|
|
11978
|
+
this.trashTooltip = "";
|
|
11972
11979
|
this._isTrashHovered = false;
|
|
11973
11980
|
}
|
|
11974
11981
|
static {
|
|
@@ -12004,6 +12011,19 @@ var AxebowStatus = class AxebowStatus extends LitElement {
|
|
|
12004
12011
|
composed: true
|
|
12005
12012
|
}));
|
|
12006
12013
|
}
|
|
12014
|
+
_renderDisabledTrash() {
|
|
12015
|
+
return html`
|
|
12016
|
+
<axebow-tooltip content=${this.trashTooltip} ?disabled=${!this.trashTooltip}>
|
|
12017
|
+
<button
|
|
12018
|
+
type="button"
|
|
12019
|
+
aria-disabled="true"
|
|
12020
|
+
class="p-0 border-0 bg-transparent flex items-center justify-center text-(--axebow-gray) opacity-50 cursor-not-allowed"
|
|
12021
|
+
>
|
|
12022
|
+
<axebow-icon iconName="delete" iconColor="currentColor" size="lg"></axebow-icon>
|
|
12023
|
+
</button>
|
|
12024
|
+
</axebow-tooltip>
|
|
12025
|
+
`;
|
|
12026
|
+
}
|
|
12007
12027
|
render() {
|
|
12008
12028
|
const isDeleting = this.deleting;
|
|
12009
12029
|
const currentText = isDeleting ? "Deleting" : this.statusText;
|
|
@@ -12015,7 +12035,7 @@ var AxebowStatus = class AxebowStatus extends LitElement {
|
|
|
12015
12035
|
${currentColor ? html`<div class="h-2 w-2 rounded-full shrink-0 transition-colors duration-200" style="background-color: ${currentColor};"></div>` : ""}
|
|
12016
12036
|
<span class="font-medium text-(--axebow-strong-gray)">${currentText}</span>
|
|
12017
12037
|
</div>
|
|
12018
|
-
${showTrashIcon ? html`
|
|
12038
|
+
${showTrashIcon && this.trashDisabled ? this._renderDisabledTrash() : showTrashIcon ? html`
|
|
12019
12039
|
<button
|
|
12020
12040
|
type="button"
|
|
12021
12041
|
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 +12054,8 @@ __decorate([property({ type: Boolean })], AxebowStatus.prototype, "showTrash", v
|
|
|
12034
12054
|
__decorate([property({ type: String })], AxebowStatus.prototype, "statusText", void 0);
|
|
12035
12055
|
__decorate([property({ type: String })], AxebowStatus.prototype, "statusColor", void 0);
|
|
12036
12056
|
__decorate([property({ type: Boolean })], AxebowStatus.prototype, "deleting", void 0);
|
|
12057
|
+
__decorate([property({ type: Boolean })], AxebowStatus.prototype, "trashDisabled", void 0);
|
|
12058
|
+
__decorate([property({ type: String })], AxebowStatus.prototype, "trashTooltip", void 0);
|
|
12037
12059
|
__decorate([state()], AxebowStatus.prototype, "_isTrashHovered", void 0);
|
|
12038
12060
|
AxebowStatus = __decorate([customElement("axebow-status")], AxebowStatus);
|
|
12039
12061
|
//#endregion
|
|
@@ -12342,6 +12364,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
|
|
|
12342
12364
|
this.statusColor = "var(--axebow-success)";
|
|
12343
12365
|
this.showTrash = true;
|
|
12344
12366
|
this.deleting = false;
|
|
12367
|
+
this.trashDisabled = false;
|
|
12368
|
+
this.trashTooltip = "";
|
|
12345
12369
|
this.items = [];
|
|
12346
12370
|
this._openMenuId = null;
|
|
12347
12371
|
this._menuOpenUpwards = false;
|
|
@@ -12644,6 +12668,8 @@ var AxebowResourceBoxForm = class AxebowResourceBoxForm extends LitElement {
|
|
|
12644
12668
|
.statusColor=${computedStatusColor}
|
|
12645
12669
|
?showTrash=${this.showTrash && !isDeleting}
|
|
12646
12670
|
?deleting=${this.deleting}
|
|
12671
|
+
?trashDisabled=${this.trashDisabled}
|
|
12672
|
+
.trashTooltip=${this.trashTooltip}
|
|
12647
12673
|
@trash-hover=${this._handleTrashHover}
|
|
12648
12674
|
@delete=${this._handleDelete}
|
|
12649
12675
|
></axebow-status>
|
|
@@ -12669,6 +12695,8 @@ __decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statu
|
|
|
12669
12695
|
__decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "statusColor", void 0);
|
|
12670
12696
|
__decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "showTrash", void 0);
|
|
12671
12697
|
__decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "deleting", void 0);
|
|
12698
|
+
__decorate([property({ type: Boolean })], AxebowResourceBoxForm.prototype, "trashDisabled", void 0);
|
|
12699
|
+
__decorate([property({ type: String })], AxebowResourceBoxForm.prototype, "trashTooltip", void 0);
|
|
12672
12700
|
__decorate([property({ type: Array })], AxebowResourceBoxForm.prototype, "items", void 0);
|
|
12673
12701
|
__decorate([state()], AxebowResourceBoxForm.prototype, "_openMenuId", void 0);
|
|
12674
12702
|
__decorate([state()], AxebowResourceBoxForm.prototype, "_menuOpenUpwards", void 0);
|