nath-angular-ui 0.8.10 → 0.8.12
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.
|
@@ -1991,6 +1991,7 @@ class NathMenuBar {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
toggleSubmenu(item, index, event) {
|
|
1993
1993
|
if (this.activeItem() === item) {
|
|
1994
|
+
this.dropdownMenu()?.hide();
|
|
1994
1995
|
this.activeItem.set(null);
|
|
1995
1996
|
this.activeItemIndex.set(-1);
|
|
1996
1997
|
}
|
|
@@ -3962,39 +3963,37 @@ class NathProgressBar {
|
|
|
3962
3963
|
}, /* @ts-ignore */
|
|
3963
3964
|
...(ngDevMode ? [{ debugName: "barWidthPercent" }] : /* istanbul ignore next */ []));
|
|
3964
3965
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NathProgressBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3965
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: NathProgressBar, isStandalone: true, selector: "nath-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, barClass: { classPropertyName: "barClass", publicName: "barClass", isSignal: true, isRequired: false, transformFunction: null }, valueClass: { classPropertyName: "valueClass", publicName: "valueClass", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3966
|
-
<div
|
|
3967
|
-
class="nath-progress-bar-fill"
|
|
3968
|
-
[class.nath-progress-bar-fill--indeterminate]="mode() === 'indeterminate'"
|
|
3969
|
-
[
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
`, isInline: true, styles: ["nath-progress-bar,.nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-100, oklch(96.7% .003 286.375));--nath-progress-bar-fill: var(--color-blue-500, oklch(62.3% .214 259.815));--nath-progress-bar-text: #ffffff;--nath-progress-bar-height: 1rem;--nath-progress-bar-radius: 9999px}.dark nath-progress-bar,.dark .nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-800, oklch(27.8% .006 285.923));--nath-progress-bar-fill: var(--color-blue-600, oklch(51.9% .21 259.429))}nath-progress-bar{display:flex;width:100%;height:var(--nath-progress-bar-height);background-color:var(--nath-progress-bar-bg);border-radius:var(--nath-progress-bar-radius);overflow:hidden}.nath-progress-bar-fill{height:100%;background-color:var(--nath-progress-bar-fill);display:flex;align-items:center;justify-content:center;transition:width .3s ease-in-out}.nath-progress-bar-value{color:var(--nath-progress-bar-text);font-size:.75rem;font-weight:500;padding:0 .5rem;white-space:nowrap}@keyframes nath-progress-pulse{0%,to{opacity:1}50%{opacity:.5}}.nath-progress-bar-fill--indeterminate{animation:nath-progress-pulse 2s cubic-bezier(.4,0,.6,1) infinite}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
3966
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: NathProgressBar, isStandalone: true, selector: "nath-progress-bar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, maxValue: { classPropertyName: "maxValue", publicName: "maxValue", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, barClass: { classPropertyName: "barClass", publicName: "barClass", isSignal: true, isRequired: false, transformFunction: null }, valueClass: { classPropertyName: "valueClass", publicName: "valueClass", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3967
|
+
<div
|
|
3968
|
+
class="nath-progress-bar-fill {{ barClass() }}"
|
|
3969
|
+
[class.nath-progress-bar-fill--indeterminate]="mode() === 'indeterminate'"
|
|
3970
|
+
[style.width.%]="barWidthPercent()"
|
|
3971
|
+
>
|
|
3972
|
+
@if (showValue()) {
|
|
3973
|
+
<span class="nath-progress-bar-value" [class]="valueClass()">
|
|
3974
|
+
{{ value() }}
|
|
3975
|
+
</span>
|
|
3976
|
+
}
|
|
3977
|
+
<ng-content></ng-content>
|
|
3978
|
+
</div>
|
|
3979
|
+
`, isInline: true, styles: ["@layer base{nath-progress-bar,.nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-100, oklch(96.7% .003 286.375));--nath-progress-bar-fill: var(--color-blue-500, oklch(62.3% .214 259.815));--nath-progress-bar-text: #ffffff;--nath-progress-bar-height: 1rem;--nath-progress-bar-radius: 9999px}.dark nath-progress-bar,.dark .nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-800, oklch(27.8% .006 285.923));--nath-progress-bar-fill: var(--color-blue-600, oklch(51.9% .21 259.429))}nath-progress-bar{display:flex;width:100%;height:var(--nath-progress-bar-height);background-color:var(--nath-progress-bar-bg);border-radius:var(--nath-progress-bar-radius);overflow:hidden}.nath-progress-bar-fill{height:100%;background-color:var(--nath-progress-bar-fill);display:flex;align-items:center;justify-content:center;transition:width .3s ease-in-out}.nath-progress-bar-value{color:var(--nath-progress-bar-text);font-size:.75rem;font-weight:500;padding:0 .5rem;white-space:nowrap}@keyframes nath-progress-pulse{0%,to{opacity:1}50%{opacity:.5}}.nath-progress-bar-fill--indeterminate{animation:nath-progress-pulse 2s cubic-bezier(.4,0,.6,1) infinite}}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
3980
3980
|
}
|
|
3981
3981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NathProgressBar, decorators: [{
|
|
3982
3982
|
type: Component,
|
|
3983
|
-
args: [{ selector: 'nath-progress-bar', imports: [], template: `
|
|
3984
|
-
<div
|
|
3985
|
-
class="nath-progress-bar-fill"
|
|
3986
|
-
[class.nath-progress-bar-fill--indeterminate]="mode() === 'indeterminate'"
|
|
3987
|
-
[
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
`, encapsulation: ViewEncapsulation.None, styles: ["nath-progress-bar,.nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-100, oklch(96.7% .003 286.375));--nath-progress-bar-fill: var(--color-blue-500, oklch(62.3% .214 259.815));--nath-progress-bar-text: #ffffff;--nath-progress-bar-height: 1rem;--nath-progress-bar-radius: 9999px}.dark nath-progress-bar,.dark .nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-800, oklch(27.8% .006 285.923));--nath-progress-bar-fill: var(--color-blue-600, oklch(51.9% .21 259.429))}nath-progress-bar{display:flex;width:100%;height:var(--nath-progress-bar-height);background-color:var(--nath-progress-bar-bg);border-radius:var(--nath-progress-bar-radius);overflow:hidden}.nath-progress-bar-fill{height:100%;background-color:var(--nath-progress-bar-fill);display:flex;align-items:center;justify-content:center;transition:width .3s ease-in-out}.nath-progress-bar-value{color:var(--nath-progress-bar-text);font-size:.75rem;font-weight:500;padding:0 .5rem;white-space:nowrap}@keyframes nath-progress-pulse{0%,to{opacity:1}50%{opacity:.5}}.nath-progress-bar-fill--indeterminate{animation:nath-progress-pulse 2s cubic-bezier(.4,0,.6,1) infinite}\n"] }]
|
|
3983
|
+
args: [{ selector: 'nath-progress-bar', imports: [], template: `
|
|
3984
|
+
<div
|
|
3985
|
+
class="nath-progress-bar-fill {{ barClass() }}"
|
|
3986
|
+
[class.nath-progress-bar-fill--indeterminate]="mode() === 'indeterminate'"
|
|
3987
|
+
[style.width.%]="barWidthPercent()"
|
|
3988
|
+
>
|
|
3989
|
+
@if (showValue()) {
|
|
3990
|
+
<span class="nath-progress-bar-value" [class]="valueClass()">
|
|
3991
|
+
{{ value() }}
|
|
3992
|
+
</span>
|
|
3993
|
+
}
|
|
3994
|
+
<ng-content></ng-content>
|
|
3995
|
+
</div>
|
|
3996
|
+
`, encapsulation: ViewEncapsulation.None, styles: ["@layer base{nath-progress-bar,.nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-100, oklch(96.7% .003 286.375));--nath-progress-bar-fill: var(--color-blue-500, oklch(62.3% .214 259.815));--nath-progress-bar-text: #ffffff;--nath-progress-bar-height: 1rem;--nath-progress-bar-radius: 9999px}.dark nath-progress-bar,.dark .nath-progress-bar-theme{--nath-progress-bar-bg: var(--color-zinc-800, oklch(27.8% .006 285.923));--nath-progress-bar-fill: var(--color-blue-600, oklch(51.9% .21 259.429))}nath-progress-bar{display:flex;width:100%;height:var(--nath-progress-bar-height);background-color:var(--nath-progress-bar-bg);border-radius:var(--nath-progress-bar-radius);overflow:hidden}.nath-progress-bar-fill{height:100%;background-color:var(--nath-progress-bar-fill);display:flex;align-items:center;justify-content:center;transition:width .3s ease-in-out}.nath-progress-bar-value{color:var(--nath-progress-bar-text);font-size:.75rem;font-weight:500;padding:0 .5rem;white-space:nowrap}@keyframes nath-progress-pulse{0%,to{opacity:1}50%{opacity:.5}}.nath-progress-bar-fill--indeterminate{animation:nath-progress-pulse 2s cubic-bezier(.4,0,.6,1) infinite}}\n"] }]
|
|
3998
3997
|
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], maxValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxValue", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], barClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "barClass", required: false }] }], valueClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueClass", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }] } });
|
|
3999
3998
|
|
|
4000
3999
|
class NathProgressCircle {
|