@nanahoshi/mona-ui 0.26.3 → 0.27.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/docs/circular-progress-bar.md +38 -0
- package/docs/sidebar-menus.md +548 -0
- package/docs/sidebar-state.md +519 -0
- package/docs/sidebar.md +17 -661
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +38 -10
- package/llms.txt +2 -0
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +17 -3
|
@@ -35,7 +35,7 @@ const circularProgressBarBaseThemeVariants = cva(`
|
|
|
35
35
|
[&_svg]:h-full [&_svg]:w-full
|
|
36
36
|
[&_svg_circle]:origin-center
|
|
37
37
|
[&_svg_circle]:-rotate-90
|
|
38
|
-
[&_svg_circle]:transition-[stroke-dashoffset,stroke]
|
|
38
|
+
[&_svg_circle]:transition-[stroke-dashoffset,stroke-dasharray,stroke]
|
|
39
39
|
[&_svg_circle]:duration-(--mona-motion-fast)
|
|
40
40
|
[&_svg_circle]:ease-in
|
|
41
41
|
[&_svg_circle]:data-[stroke-trail='true']:stroke-surface-muted
|
|
@@ -50,6 +50,8 @@ const circularProgressBarBaseThemeVariants = cva(`
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
+
/** The share of the ring the spinning arc covers in indeterminate mode. */
|
|
54
|
+
const INDETERMINATE_ARC_FRACTION = 1 - 1 / 1.42;
|
|
53
55
|
class CircularProgressBarComponent {
|
|
54
56
|
#i18n;
|
|
55
57
|
constructor() {
|
|
@@ -90,6 +92,31 @@ class CircularProgressBarComponent {
|
|
|
90
92
|
...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
|
|
91
93
|
this.radius = computed(() => Math.max(0, this.size() / 2 - this.thickness() / 2), /* @ts-ignore */
|
|
92
94
|
...(ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []));
|
|
95
|
+
this.stroke = computed(() => {
|
|
96
|
+
const circumference = this.circumference();
|
|
97
|
+
const fraction = this.indeterminate()
|
|
98
|
+
? INDETERMINATE_ARC_FRACTION
|
|
99
|
+
: Math.min(Math.max(this.progress(), 0), 100) / 100;
|
|
100
|
+
if (this.lineCap() === "flat") {
|
|
101
|
+
return { dashArray: `${circumference}`, dashOffset: circumference * (1 - fraction), lineCap: "butt" };
|
|
102
|
+
}
|
|
103
|
+
if (fraction <= 0) {
|
|
104
|
+
// A zero-length dash still paints its round caps as a dot, so an empty ring drops them.
|
|
105
|
+
return { dashArray: `0 ${circumference}`, dashOffset: 0, lineCap: "butt" };
|
|
106
|
+
}
|
|
107
|
+
if (fraction >= 1) {
|
|
108
|
+
return { dashArray: `${circumference} ${circumference}`, dashOffset: 0, lineCap: "round" };
|
|
109
|
+
}
|
|
110
|
+
// Each round cap reaches half the thickness past its end of the dash. Shortening the dash by the thickness and
|
|
111
|
+
// starting it half a thickness in keeps the painted arc between the start of the ring and the value.
|
|
112
|
+
const thickness = Math.min(this.thickness(), circumference * fraction);
|
|
113
|
+
return {
|
|
114
|
+
dashArray: `${circumference * fraction - thickness} ${circumference}`,
|
|
115
|
+
dashOffset: -thickness / 2,
|
|
116
|
+
lineCap: "round"
|
|
117
|
+
};
|
|
118
|
+
}, /* @ts-ignore */
|
|
119
|
+
...(ngDevMode ? [{ debugName: "stroke" }] : /* istanbul ignore next */ []));
|
|
93
120
|
this.strokeColor = computed(() => {
|
|
94
121
|
if (typeof this.color() === "string") {
|
|
95
122
|
return this.color() || "var(--mona-indicator-color, var(--color-primary))";
|
|
@@ -98,12 +125,6 @@ class CircularProgressBarComponent {
|
|
|
98
125
|
return colorize(this.progress());
|
|
99
126
|
}, /* @ts-ignore */
|
|
100
127
|
...(ngDevMode ? [{ debugName: "strokeColor" }] : /* istanbul ignore next */ []));
|
|
101
|
-
this.strokeDashOffset = computed(() => {
|
|
102
|
-
const progress = Math.min(Math.max(this.progress(), 0), 100);
|
|
103
|
-
const dashOffset = this.circumference() * (1 - progress / 100);
|
|
104
|
-
return this.indeterminate() ? this.circumference() / 1.42 : dashOffset;
|
|
105
|
-
}, /* @ts-ignore */
|
|
106
|
-
...(ngDevMode ? [{ debugName: "strokeDashOffset" }] : /* istanbul ignore next */ []));
|
|
107
128
|
/**
|
|
108
129
|
* @description Enables CSS transitions on stroke and color changes.
|
|
109
130
|
* Set to `false` when updating `value` at a high frequency.
|
|
@@ -152,6 +173,13 @@ class CircularProgressBarComponent {
|
|
|
152
173
|
*/
|
|
153
174
|
this.labelVisible = input(true, /* @ts-ignore */
|
|
154
175
|
...(ngDevMode ? [{ debugName: "labelVisible" }] : /* istanbul ignore next */ []));
|
|
176
|
+
/**
|
|
177
|
+
* @description Shape of the arc's two ends. `"round"` draws rounded ends that stay within the value's span, so the
|
|
178
|
+
* arc covers the same part of the ring as `"flat"`, which cuts them straight. An empty ring draws nothing either way.
|
|
179
|
+
* @default "round"
|
|
180
|
+
*/
|
|
181
|
+
this.lineCap = input("round", /* @ts-ignore */
|
|
182
|
+
...(ngDevMode ? [{ debugName: "lineCap" }] : /* istanbul ignore next */ []));
|
|
155
183
|
/**
|
|
156
184
|
* @description Upper bound of the value range. Must be greater than `min`; otherwise the bar reports no values and a
|
|
157
185
|
* warning is logged in development.
|
|
@@ -198,7 +226,7 @@ class CircularProgressBarComponent {
|
|
|
198
226
|
}
|
|
199
227
|
}
|
|
200
228
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: CircularProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
201
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: CircularProgressBarComponent, isStandalone: true, selector: "mona-circular-progress-bar", inputs: { animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaValueText: { classPropertyName: "ariaValueText", publicName: "aria-valuetext", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelVisible: { classPropertyName: "labelVisible", publicName: "labelVisible", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, thickness: { classPropertyName: "thickness", publicName: "thickness", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "class": "baseClasses()", "attr.aria-label": "ariaLabel() || messages().label", "attr.aria-valuemin": "ariaRange()?.min", "attr.aria-valuemax": "ariaRange()?.max", "attr.aria-valuenow": "ariaRange()?.now", "attr.aria-valuetext": "ariaValueText() || null", "attr.aria-disabled": "disabled() || null", "attr.data-disabled": "disabled()", "style.width": "pixelSize()", "style.height": "pixelSize()" } }, queries: [{ propertyName: "labelTemplate", first: true, predicate: CircularProgressBarLabelTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<svg>\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.data-stroke-trail]=\"true\"\n [attr.stroke-dasharray]=\"circumference()\"\n [attr.stroke-width]=\"thickness()\"\n fill=\"transparent\" />\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.stroke]=\"strokeColor()\"\n [attr.stroke-dasharray]=\"
|
|
229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: CircularProgressBarComponent, isStandalone: true, selector: "mona-circular-progress-bar", inputs: { animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaValueText: { classPropertyName: "ariaValueText", publicName: "aria-valuetext", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, indeterminate: { classPropertyName: "indeterminate", publicName: "indeterminate", isSignal: true, isRequired: false, transformFunction: null }, labelVisible: { classPropertyName: "labelVisible", publicName: "labelVisible", isSignal: true, isRequired: false, transformFunction: null }, lineCap: { classPropertyName: "lineCap", publicName: "lineCap", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, thickness: { classPropertyName: "thickness", publicName: "thickness", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "class": "baseClasses()", "attr.aria-label": "ariaLabel() || messages().label", "attr.aria-valuemin": "ariaRange()?.min", "attr.aria-valuemax": "ariaRange()?.max", "attr.aria-valuenow": "ariaRange()?.now", "attr.aria-valuetext": "ariaValueText() || null", "attr.aria-disabled": "disabled() || null", "attr.data-disabled": "disabled()", "style.width": "pixelSize()", "style.height": "pixelSize()" } }, queries: [{ propertyName: "labelTemplate", first: true, predicate: CircularProgressBarLabelTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<svg>\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.data-stroke-trail]=\"true\"\n [attr.stroke-dasharray]=\"circumference()\"\n [attr.stroke-width]=\"thickness()\"\n fill=\"transparent\" />\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.stroke]=\"strokeColor()\"\n [attr.stroke-dasharray]=\"stroke().dashArray\"\n [attr.stroke-dashoffset]=\"stroke().dashOffset\"\n [attr.stroke-linecap]=\"stroke().lineCap\"\n [attr.stroke-width]=\"thickness()\"\n fill=\"transparent\"\n [class.indeterminate]=\"indeterminate()\" />\n</svg>\n@if (!indeterminate() && labelVisible()) {\n <div class=\"mona-circular-progress-bar-label\">\n @if (labelTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"labelTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), min: min(), max: max(), percent: progress() }\">\n </ng-container>\n } @else {\n {{ formattedProgress() }}\n }\n </div>\n}\n", styles: [".indeterminate{animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes fade{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){.indeterminate{animation:fade 2s ease-in-out infinite}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
202
230
|
}
|
|
203
231
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: CircularProgressBarComponent, decorators: [{
|
|
204
232
|
type: Component,
|
|
@@ -214,8 +242,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
214
242
|
role: "progressbar",
|
|
215
243
|
"[style.width]": "pixelSize()",
|
|
216
244
|
"[style.height]": "pixelSize()"
|
|
217
|
-
}, template: "<svg>\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.data-stroke-trail]=\"true\"\n [attr.stroke-dasharray]=\"circumference()\"\n [attr.stroke-width]=\"thickness()\"\n fill=\"transparent\" />\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.stroke]=\"strokeColor()\"\n [attr.stroke-dasharray]=\"
|
|
218
|
-
}], ctorParameters: () => [], propDecorators: { labelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CircularProgressBarLabelTemplateDirective), { isSignal: true }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuetext", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], labelVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelVisible", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], thickness: [{ type: i0.Input, args: [{ isSignal: true, alias: "thickness", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
245
|
+
}, template: "<svg>\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.data-stroke-trail]=\"true\"\n [attr.stroke-dasharray]=\"circumference()\"\n [attr.stroke-width]=\"thickness()\"\n fill=\"transparent\" />\n <circle\n [attr.cx]=\"center().x\"\n [attr.cy]=\"center().y\"\n [attr.r]=\"radius()\"\n [attr.stroke]=\"strokeColor()\"\n [attr.stroke-dasharray]=\"stroke().dashArray\"\n [attr.stroke-dashoffset]=\"stroke().dashOffset\"\n [attr.stroke-linecap]=\"stroke().lineCap\"\n [attr.stroke-width]=\"thickness()\"\n fill=\"transparent\"\n [class.indeterminate]=\"indeterminate()\" />\n</svg>\n@if (!indeterminate() && labelVisible()) {\n <div class=\"mona-circular-progress-bar-label\">\n @if (labelTemplate()) {\n <ng-container\n [ngTemplateOutlet]=\"labelTemplate()?.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: value(), min: min(), max: max(), percent: progress() }\">\n </ng-container>\n } @else {\n {{ formattedProgress() }}\n }\n </div>\n}\n", styles: [".indeterminate{animation:rotate 2s linear infinite}@keyframes rotate{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes fade{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){.indeterminate{animation:fade 2s ease-in-out infinite}}\n"] }]
|
|
246
|
+
}], ctorParameters: () => [], propDecorators: { labelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => CircularProgressBarLabelTemplateDirective), { isSignal: true }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-valuetext", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], indeterminate: [{ type: i0.Input, args: [{ isSignal: true, alias: "indeterminate", required: false }] }], labelVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelVisible", required: false }] }], lineCap: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineCap", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], thickness: [{ type: i0.Input, args: [{ isSignal: true, alias: "thickness", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }] } });
|
|
219
247
|
|
|
220
248
|
/*
|
|
221
249
|
* Public API Surface of @nanahoshi/mona-ui/circular-progress-bar
|
package/llms.txt
CHANGED
|
@@ -113,6 +113,8 @@ Mona UI is an Angular component library styled with Tailwind CSS 4. Its componen
|
|
|
113
113
|
- [Menubar](docs/menubar.md): A persistent horizontal bar of top-level menus.
|
|
114
114
|
- [Popup Menu](docs/popup-menu.md): Opens a menu from an element you already have, such as an icon button or a row action.
|
|
115
115
|
- [Sidebar](docs/sidebar.md): A composable application shell with collapsible side panels.
|
|
116
|
+
- [Sidebar Menus](docs/sidebar-menus.md): Groups, menus, rows, submenus, badges, actions and loading rows inside a sidebar.
|
|
117
|
+
- [Sidebar State & Behavior](docs/sidebar-state.md): Collapsing, controlled and remembered state, the drawer on small screens, and reading a sidebar from code.
|
|
116
118
|
- [Stepper](docs/stepper.md): Guides users through a sequential, multi-step process.
|
|
117
119
|
- [Tabs](docs/tabs.md): Switches between panels of related content.
|
|
118
120
|
|
package/package.json
CHANGED
|
@@ -24,6 +24,8 @@ declare class CircularProgressBarLabelTemplateDirective {
|
|
|
24
24
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CircularProgressBarLabelTemplateDirective, "ng-template[monaCircularProgressBarLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
type CircularProgressBarLineCap = "flat" | "round";
|
|
28
|
+
|
|
27
29
|
declare const circularProgressBarBaseThemeVariants: (props?: ({
|
|
28
30
|
disabled?: boolean | null | undefined;
|
|
29
31
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -31,6 +33,12 @@ type CircularProgressBarBaseVariantProps = VariantProps<typeof circularProgressB
|
|
|
31
33
|
type CircularProgressBarBaseVariantInput = VariantInputs<CircularProgressBarBaseVariantProps>;
|
|
32
34
|
type CircularProgressBarVariantInput = CircularProgressBarBaseVariantInput;
|
|
33
35
|
|
|
36
|
+
interface CircularProgressBarStroke {
|
|
37
|
+
readonly dashArray: string;
|
|
38
|
+
readonly dashOffset: number;
|
|
39
|
+
/** The SVG `stroke-linecap` value. */
|
|
40
|
+
readonly lineCap: "butt" | "round";
|
|
41
|
+
}
|
|
34
42
|
declare class CircularProgressBarComponent implements CircularProgressBarVariantInput {
|
|
35
43
|
#private;
|
|
36
44
|
protected readonly ariaRange: _angular_core.Signal<_nanahoshi_mona_ui_common.ProgressRange | null>;
|
|
@@ -46,8 +54,8 @@ declare class CircularProgressBarComponent implements CircularProgressBarVariant
|
|
|
46
54
|
protected readonly pixelSize: _angular_core.Signal<string>;
|
|
47
55
|
protected readonly progress: _angular_core.Signal<number>;
|
|
48
56
|
protected readonly radius: _angular_core.Signal<number>;
|
|
57
|
+
protected readonly stroke: _angular_core.Signal<CircularProgressBarStroke>;
|
|
49
58
|
protected readonly strokeColor: _angular_core.Signal<string | Action<number, string>>;
|
|
50
|
-
protected readonly strokeDashOffset: _angular_core.Signal<number>;
|
|
51
59
|
/**
|
|
52
60
|
* @description Enables CSS transitions on stroke and color changes.
|
|
53
61
|
* Set to `false` when updating `value` at a high frequency.
|
|
@@ -91,6 +99,12 @@ declare class CircularProgressBarComponent implements CircularProgressBarVariant
|
|
|
91
99
|
* @default true
|
|
92
100
|
*/
|
|
93
101
|
readonly labelVisible: _angular_core.InputSignal<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* @description Shape of the arc's two ends. `"round"` draws rounded ends that stay within the value's span, so the
|
|
104
|
+
* arc covers the same part of the ring as `"flat"`, which cuts them straight. An empty ring draws nothing either way.
|
|
105
|
+
* @default "round"
|
|
106
|
+
*/
|
|
107
|
+
readonly lineCap: _angular_core.InputSignal<CircularProgressBarLineCap>;
|
|
94
108
|
/**
|
|
95
109
|
* @description Upper bound of the value range. Must be greater than `min`; otherwise the bar reports no values and a
|
|
96
110
|
* warning is logged in development.
|
|
@@ -125,8 +139,8 @@ declare class CircularProgressBarComponent implements CircularProgressBarVariant
|
|
|
125
139
|
readonly value: _angular_core.InputSignal<number>;
|
|
126
140
|
constructor();
|
|
127
141
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CircularProgressBarComponent, never>;
|
|
128
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CircularProgressBarComponent, "mona-circular-progress-bar", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "labelVisible": { "alias": "labelVisible"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, ["labelTemplate"], never, true, never>;
|
|
142
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CircularProgressBarComponent, "mona-circular-progress-bar", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaValueText": { "alias": "aria-valuetext"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "labelVisible": { "alias": "labelVisible"; "required": false; "isSignal": true; }; "lineCap": { "alias": "lineCap"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "thickness": { "alias": "thickness"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, ["labelTemplate"], never, true, never>;
|
|
129
143
|
}
|
|
130
144
|
|
|
131
145
|
export { CircularProgressBarComponent, CircularProgressBarLabelTemplateDirective };
|
|
132
|
-
export type { LabelTemplateContext };
|
|
146
|
+
export type { CircularProgressBarLineCap, LabelTemplateContext };
|