@ship-ui/core 0.17.8 → 0.17.9
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.
|
@@ -6453,7 +6453,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
6453
6453
|
class ShipToggleCard {
|
|
6454
6454
|
constructor() {
|
|
6455
6455
|
this.isActive = model(false, ...(ngDevMode ? [{ debugName: "isActive" }] : []));
|
|
6456
|
-
this.
|
|
6456
|
+
this.disableToggle = input(false, ...(ngDevMode ? [{ debugName: "disableToggle" }] : []));
|
|
6457
6457
|
this.color = input(null, ...(ngDevMode ? [{ debugName: "color" }] : []));
|
|
6458
6458
|
this.variant = input(null, ...(ngDevMode ? [{ debugName: "variant" }] : []));
|
|
6459
6459
|
this.hostClasses = shipComponentClasses('card', {
|
|
@@ -6461,20 +6461,15 @@ class ShipToggleCard {
|
|
|
6461
6461
|
variant: this.variant,
|
|
6462
6462
|
});
|
|
6463
6463
|
}
|
|
6464
|
-
ngOnInit() {
|
|
6465
|
-
if (this.disallowToggle()) {
|
|
6466
|
-
this.isActive.set(true);
|
|
6467
|
-
}
|
|
6468
|
-
}
|
|
6469
6464
|
toggle() {
|
|
6470
6465
|
this.isActive.set(!this.isActive());
|
|
6471
6466
|
}
|
|
6472
6467
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: ShipToggleCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: ShipToggleCard, isStandalone: true, selector: "sh-toggle-card", inputs: { isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null },
|
|
6474
|
-
<h3 (click)="
|
|
6468
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.0", type: ShipToggleCard, isStandalone: true, selector: "sh-toggle-card", inputs: { isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null }, disableToggle: { classPropertyName: "disableToggle", publicName: "disableToggle", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isActive: "isActiveChange" }, host: { properties: { "class.active": "isActive()", "class": "hostClasses()" } }, ngImport: i0, template: `
|
|
6469
|
+
<h3 (click)="!disableToggle() && toggle()">
|
|
6475
6470
|
<ng-content select="[title]">Title</ng-content>
|
|
6476
6471
|
|
|
6477
|
-
@if (!
|
|
6472
|
+
@if (!disableToggle()) {
|
|
6478
6473
|
<sh-icon class="toggle-icon">caret-down</sh-icon>
|
|
6479
6474
|
}
|
|
6480
6475
|
</h3>
|
|
@@ -6492,10 +6487,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
6492
6487
|
selector: 'sh-toggle-card',
|
|
6493
6488
|
imports: [ShipIcon],
|
|
6494
6489
|
template: `
|
|
6495
|
-
<h3 (click)="
|
|
6490
|
+
<h3 (click)="!disableToggle() && toggle()">
|
|
6496
6491
|
<ng-content select="[title]">Title</ng-content>
|
|
6497
6492
|
|
|
6498
|
-
@if (!
|
|
6493
|
+
@if (!disableToggle()) {
|
|
6499
6494
|
<sh-icon class="toggle-icon">caret-down</sh-icon>
|
|
6500
6495
|
}
|
|
6501
6496
|
</h3>
|
|
@@ -6512,7 +6507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImpor
|
|
|
6512
6507
|
'[class]': 'hostClasses()',
|
|
6513
6508
|
},
|
|
6514
6509
|
}]
|
|
6515
|
-
}], propDecorators: { isActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isActive", required: false }] }, { type: i0.Output, args: ["isActiveChange"] }],
|
|
6510
|
+
}], propDecorators: { isActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isActive", required: false }] }, { type: i0.Output, args: ["isActiveChange"] }], disableToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableToggle", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }] } });
|
|
6516
6511
|
|
|
6517
6512
|
class ShipToggle {
|
|
6518
6513
|
constructor() {
|