@nanahoshi/mona-ui 0.15.3 → 0.17.0
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/chart/README.md
CHANGED
|
@@ -167,12 +167,13 @@ The benchmark is intentionally non-gating and emits one compact JSON record for
|
|
|
167
167
|
<mona-chart-y-axis [nice]="true" />
|
|
168
168
|
|
|
169
169
|
<mona-bar-series field="revenue" name="Revenue" [borderRadius]="4" />
|
|
170
|
-
<mona-line-series field="target" name="Target" curve="monotone-x" [showPoints]="true" />
|
|
171
|
-
<mona-area-series field="forecast" name="Forecast" fillMode="gradient" />
|
|
170
|
+
<mona-line-series field="target" name="Target" curve="monotone-x" lineStyle="dashed" [showPoints]="true" />
|
|
171
|
+
<mona-area-series field="forecast" name="Forecast" fillMode="gradient" lineStyle="dotted" />
|
|
172
172
|
|
|
173
173
|
<mona-chart-legend position="bottom" [interactive]="true" />
|
|
174
174
|
<mona-chart-tooltip [shared]="true" />
|
|
175
175
|
</mona-chart>
|
|
176
|
+
|
|
176
177
|
```
|
|
177
178
|
|
|
178
179
|
### Stacked Bar Chart & 100% Stacked Bar Chart
|
|
@@ -348,26 +349,50 @@ Renders a Cartesian floating range bar series plotting discrete min-max interval
|
|
|
348
349
|
| `valueFormatter` | `ChartValueFormatter` | `undefined` | Custom formatter callback for formatting range bounds in tooltips and live region. |
|
|
349
350
|
| `visible` | `model(boolean)` | `true` | Two-way bindable series visibility. |
|
|
350
351
|
|
|
352
|
+
### `<mona-line-series>`
|
|
353
|
+
|
|
354
|
+
Renders a continuous Cartesian line series connecting data points with configurable curve interpolation and stroke pattern.
|
|
355
|
+
|
|
356
|
+
| Input / Output | Type | Default | Description |
|
|
357
|
+
| :--------------- | :----------------------- | :----------- | :--------------------------------------------------------------------------------------------------- |
|
|
358
|
+
| `field` | `ChartField` | `""` | Property key or accessor extracting numeric Y value. |
|
|
359
|
+
| `xField` | `ChartField | undefined` | `undefined` | Property key or accessor extracting X-axis coordinate (overrides chart-level `xField`). |
|
|
360
|
+
| `keyField` | `ChartField | undefined` | `undefined` | Unique identifier field for stable mark tracking across animation transitions. |
|
|
361
|
+
| `name` | `string` | `""` | Series name for tooltips, legend, and accessibility. |
|
|
362
|
+
| `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used to render the series line (`"solid"`, `"dashed"`, or `"dotted"`). |
|
|
363
|
+
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation algorithm (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, `"step-after"`). |
|
|
364
|
+
| `connectNulls` | `boolean` | `false` | Whether to interpolate across null/missing data points without gaps. |
|
|
365
|
+
| `showPoints` | `boolean` | `false` | Whether to render point markers at data coordinates. |
|
|
366
|
+
| `pointRadius` | `number | undefined` | `undefined` | Radius in pixels for point markers. Defaults to `--mona-chart-point-radius` (3px). |
|
|
367
|
+
| `strokeWidth` | `number | undefined` | `undefined` | Stroke width in pixels for the series line. Defaults to 2px. |
|
|
368
|
+
| `color` | `string` | `""` | Explicit stroke color override for the series line. Defaults to palette token. |
|
|
369
|
+
| `visible` | `model(boolean)` | `true` | Two-way bindable series visibility. |
|
|
370
|
+
|
|
351
371
|
### `<mona-area-series>`
|
|
352
372
|
|
|
353
373
|
Renders a continuous Cartesian area series supporting gradient fades, solid fills, cumulative stacking, and 100% normalized area bands.
|
|
354
374
|
|
|
355
|
-
| Input / Output | Type
|
|
356
|
-
| :--------------- |
|
|
357
|
-
| `field` | `ChartField`
|
|
358
|
-
| `xField` | `ChartField`
|
|
359
|
-
| `keyField` | `ChartField`
|
|
360
|
-
| `name` | `string`
|
|
361
|
-
| `stack` | `string`
|
|
362
|
-
| `stackMode` | `ChartStackMode`
|
|
363
|
-
| `fillMode` | `ChartAreaFillMode`
|
|
364
|
-
| `
|
|
365
|
-
| `
|
|
366
|
-
| `
|
|
367
|
-
| `
|
|
368
|
-
| `
|
|
369
|
-
| `
|
|
370
|
-
| `
|
|
375
|
+
| Input / Output | Type | Default | Description |
|
|
376
|
+
| :--------------- | :----------------------- | :----------- | :--------------------------------------------------------------------------------------------------- |
|
|
377
|
+
| `field` | `ChartField` | `""` | Property key or accessor extracting numeric Y value. |
|
|
378
|
+
| `xField` | `ChartField | undefined` | `undefined` | Property key or accessor extracting X-axis coordinate (overrides chart-level `xField`). |
|
|
379
|
+
| `keyField` | `ChartField | undefined` | `undefined` | Unique identifier field for stable mark tracking across animation transitions. |
|
|
380
|
+
| `name` | `string` | `""` | Series name for tooltips, legend, and accessibility. |
|
|
381
|
+
| `stack` | `string | undefined` | `undefined` | Stack group name. Series sharing the same stack identifier are stacked into cumulative bands. |
|
|
382
|
+
| `stackMode` | `ChartStackMode` | `"normal"` | Stacking calculation mode: `"normal"` (raw cumulative sum) or `"percent"` (normalized to 100%). |
|
|
383
|
+
| `fillMode` | `ChartAreaFillMode` | `"gradient"` | Area fill style: `"gradient"` fading to zero baseline, or uniform `"solid"`. |
|
|
384
|
+
| `lineStyle` | `ChartLineStyle` | `"solid"` | Stroke pattern used for the area's boundary line (`"solid"`, `"dashed"`, or `"dotted"`). Fill is unaffected. |
|
|
385
|
+
| `fillOpacity` | `number | undefined` | `undefined` | Maximum opacity applied to the area fill. Defaults to 0.18. |
|
|
386
|
+
| `curve` | `ChartCurve` | `"linear"` | Curve interpolation algorithm (`"linear"`, `"monotone-x"`, `"natural"`, `"step"`, `"step-after"`). |
|
|
387
|
+
| `connectNulls` | `boolean` | `false` | Whether to interpolate across null/missing data points without gaps. |
|
|
388
|
+
| `showPoints` | `boolean` | `false` | Whether to render point markers at data coordinates. |
|
|
389
|
+
| `pointRadius` | `number | undefined` | `undefined` | Radius in pixels for point markers. Defaults to `--mona-chart-point-radius` (4px). |
|
|
390
|
+
| `strokeWidth` | `number | undefined` | `undefined` | Stroke width in pixels for the area boundary line. Defaults to 2px. |
|
|
391
|
+
| `color` | `string` | `""` | Explicit stroke and fill color override for the area series. Defaults to palette token. |
|
|
392
|
+
| `valueFormatter` | `ChartValueFormatter | undefined` | `undefined` | Custom formatter callback for area raw values and stack totals in tooltips and live region. |
|
|
393
|
+
| `visible` | `model(boolean)` | `true` | Two-way bindable series visibility. |
|
|
394
|
+
|
|
395
|
+
|
|
371
396
|
|
|
372
397
|
### `<mona-range-area-series>`
|
|
373
398
|
|
|
@@ -20743,6 +20743,7 @@ class ChartStyleResolver {
|
|
|
20743
20743
|
const explicitStrokeWidth = "strokeWidth" in series ? series.strokeWidth?.() : undefined;
|
|
20744
20744
|
const explicitPointRadius = "pointRadius" in series ? series.pointRadius?.() : undefined;
|
|
20745
20745
|
const explicitFillOpacity = "fillOpacity" in series ? series.fillOpacity?.() : undefined;
|
|
20746
|
+
const explicitLineStyle = "lineStyle" in series ? series.lineStyle?.() : undefined;
|
|
20746
20747
|
let elementColor = "";
|
|
20747
20748
|
let cssLineWidth;
|
|
20748
20749
|
let cssPointRadius;
|
|
@@ -20807,11 +20808,13 @@ class ChartStyleResolver {
|
|
|
20807
20808
|
? Math.max(0, Math.min(1, explicitFillOpacity))
|
|
20808
20809
|
: (cssAreaFillOpacity ?? defaultFillOpacity);
|
|
20809
20810
|
const resolvedAreaFillColor = cssAreaFillColor ? this.resolveCssVariable(cssAreaFillColor) : resolvedColor;
|
|
20811
|
+
const lineStyle = explicitLineStyle ?? "solid";
|
|
20810
20812
|
return {
|
|
20811
20813
|
areaFillColor: resolvedAreaFillColor,
|
|
20812
20814
|
areaFillOpacity: resolvedFillOpacity,
|
|
20813
20815
|
color: resolvedColor,
|
|
20814
20816
|
fillOpacity: resolvedFillOpacity,
|
|
20817
|
+
lineStyle,
|
|
20815
20818
|
lineWidth: resolvedLineWidth,
|
|
20816
20819
|
opacity: 1,
|
|
20817
20820
|
pointRadius: resolvedPointRadius
|
|
@@ -36256,6 +36259,17 @@ function drawPointMarker(context, x, y, radius, fillColor, strokeColor, strokeWi
|
|
|
36256
36259
|
context.stroke();
|
|
36257
36260
|
}
|
|
36258
36261
|
}
|
|
36262
|
+
function resolveCanvasStrokeDashArray(lineStyle) {
|
|
36263
|
+
switch (lineStyle) {
|
|
36264
|
+
case "dashed":
|
|
36265
|
+
return [4, 4];
|
|
36266
|
+
case "dotted":
|
|
36267
|
+
return [2, 2];
|
|
36268
|
+
case "solid":
|
|
36269
|
+
default:
|
|
36270
|
+
return [];
|
|
36271
|
+
}
|
|
36272
|
+
}
|
|
36259
36273
|
|
|
36260
36274
|
const MIXED_BASELINE_OPACITY_RATIO = 0.25;
|
|
36261
36275
|
function withAlpha(color, alpha) {
|
|
@@ -36435,7 +36449,9 @@ class AreaSeriesRenderer {
|
|
|
36435
36449
|
lineGenerator(validPoints);
|
|
36436
36450
|
context.lineWidth = style.lineWidth;
|
|
36437
36451
|
context.strokeStyle = style.color;
|
|
36452
|
+
context.setLineDash([...resolveCanvasStrokeDashArray(style.lineStyle)]);
|
|
36438
36453
|
context.stroke();
|
|
36454
|
+
context.setLineDash([]);
|
|
36439
36455
|
// 3. Draw Point Markers
|
|
36440
36456
|
if (showPoints) {
|
|
36441
36457
|
for (const p of validPoints) {
|
|
@@ -36547,7 +36563,9 @@ class LineSeriesRenderer {
|
|
|
36547
36563
|
lineGenerator(validPoints);
|
|
36548
36564
|
context.lineWidth = style.lineWidth;
|
|
36549
36565
|
context.strokeStyle = style.color;
|
|
36566
|
+
context.setLineDash([...resolveCanvasStrokeDashArray(style.lineStyle)]);
|
|
36550
36567
|
context.stroke();
|
|
36568
|
+
context.setLineDash([]);
|
|
36551
36569
|
if (showPoints) {
|
|
36552
36570
|
for (const p of validPoints) {
|
|
36553
36571
|
if (p.defined) {
|
|
@@ -40715,6 +40733,7 @@ class SvgAreaSeriesRenderer {
|
|
|
40715
40733
|
setSvgAttribute(this.#strokePathElement, "fill", "none");
|
|
40716
40734
|
setSvgAttribute(this.#strokePathElement, "stroke", style.color);
|
|
40717
40735
|
setSvgAttribute(this.#strokePathElement, "stroke-width", style.lineWidth);
|
|
40736
|
+
setSvgAttribute(this.#strokePathElement, "stroke-dasharray", resolveStrokeDashArray(style.lineStyle));
|
|
40718
40737
|
setSvgAttribute(this.#strokePathElement, "opacity", seriesOpacity);
|
|
40719
40738
|
// 3. Markers
|
|
40720
40739
|
if (showPoints) {
|
|
@@ -40919,6 +40938,7 @@ class SvgLineSeriesRenderer {
|
|
|
40919
40938
|
setSvgAttribute(this.#pathElement, "fill", "none");
|
|
40920
40939
|
setSvgAttribute(this.#pathElement, "stroke", style.color);
|
|
40921
40940
|
setSvgAttribute(this.#pathElement, "stroke-width", style.lineWidth);
|
|
40941
|
+
setSvgAttribute(this.#pathElement, "stroke-dasharray", resolveStrokeDashArray(style.lineStyle));
|
|
40922
40942
|
setSvgAttribute(this.#pathElement, "opacity", seriesOpacity);
|
|
40923
40943
|
if (showPoints) {
|
|
40924
40944
|
if (!this.#markersGroup) {
|
|
@@ -57709,6 +57729,12 @@ class LineSeriesComponent {
|
|
|
57709
57729
|
*/
|
|
57710
57730
|
this.keyField = input(undefined, /* @ts-ignore */
|
|
57711
57731
|
...(ngDevMode ? [{ debugName: "keyField" }] : /* istanbul ignore next */ []));
|
|
57732
|
+
/**
|
|
57733
|
+
* @description Stroke pattern used to render the series line (`"solid"`, `"dashed"`, or `"dotted"`).
|
|
57734
|
+
* @default "solid"
|
|
57735
|
+
*/
|
|
57736
|
+
this.lineStyle = input("solid", /* @ts-ignore */
|
|
57737
|
+
...(ngDevMode ? [{ debugName: "lineStyle" }] : /* istanbul ignore next */ []));
|
|
57712
57738
|
/**
|
|
57713
57739
|
* @description Name of the series displayed in legends and tooltips.
|
|
57714
57740
|
* @default ""
|
|
@@ -57800,6 +57826,7 @@ class LineSeriesComponent {
|
|
|
57800
57826
|
});
|
|
57801
57827
|
effect(() => {
|
|
57802
57828
|
this.color();
|
|
57829
|
+
this.lineStyle();
|
|
57803
57830
|
this.userClass();
|
|
57804
57831
|
if (this.#registered) {
|
|
57805
57832
|
this.#chartContext?.invalidate(4 /* ChartInvalidationReason.Style */);
|
|
@@ -57830,6 +57857,7 @@ class LineSeriesComponent {
|
|
|
57830
57857
|
field: this.field,
|
|
57831
57858
|
id: this.#id,
|
|
57832
57859
|
keyField: this.keyField,
|
|
57860
|
+
lineStyle: this.lineStyle,
|
|
57833
57861
|
name: this.name,
|
|
57834
57862
|
pointRadius: this.pointRadius,
|
|
57835
57863
|
seriesKey: this.seriesKey,
|
|
@@ -57850,7 +57878,7 @@ class LineSeriesComponent {
|
|
|
57850
57878
|
this.#destroyRef.onDestroy(unregister);
|
|
57851
57879
|
}
|
|
57852
57880
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LineSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57853
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: LineSeriesComponent, isStandalone: true, selector: "mona-line-series", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, connectNulls: { classPropertyName: "connectNulls", publicName: "connectNulls", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, dataLabels: { classPropertyName: "dataLabels", publicName: "dataLabels", isSignal: true, isRequired: false, transformFunction: null }, downsampling: { classPropertyName: "downsampling", publicName: "downsampling", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, keyField: { classPropertyName: "keyField", publicName: "keyField", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, pointRadius: { classPropertyName: "pointRadius", publicName: "pointRadius", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, showPoints: { classPropertyName: "showPoints", publicName: "showPoints", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, xAxisId: { classPropertyName: "xAxisId", publicName: "xAxisId", isSignal: true, isRequired: false, transformFunction: null }, xField: { classPropertyName: "xField", publicName: "xField", isSignal: true, isRequired: false, transformFunction: null }, yAxisId: { classPropertyName: "yAxisId", publicName: "yAxisId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, host: { attributes: { "aria-hidden": "true" }, properties: { "class": "userClass()" }, styleAttribute: "display: none !important;" }, queries: [{ propertyName: "dataLabelTemplate", first: true, predicate: ChartDataLabelTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "", isInline: true }); }
|
|
57881
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: LineSeriesComponent, isStandalone: true, selector: "mona-line-series", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, connectNulls: { classPropertyName: "connectNulls", publicName: "connectNulls", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, dataLabels: { classPropertyName: "dataLabels", publicName: "dataLabels", isSignal: true, isRequired: false, transformFunction: null }, downsampling: { classPropertyName: "downsampling", publicName: "downsampling", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, keyField: { classPropertyName: "keyField", publicName: "keyField", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, pointRadius: { classPropertyName: "pointRadius", publicName: "pointRadius", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, showPoints: { classPropertyName: "showPoints", publicName: "showPoints", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, xAxisId: { classPropertyName: "xAxisId", publicName: "xAxisId", isSignal: true, isRequired: false, transformFunction: null }, xField: { classPropertyName: "xField", publicName: "xField", isSignal: true, isRequired: false, transformFunction: null }, yAxisId: { classPropertyName: "yAxisId", publicName: "yAxisId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, host: { attributes: { "aria-hidden": "true" }, properties: { "class": "userClass()" }, styleAttribute: "display: none !important;" }, queries: [{ propertyName: "dataLabelTemplate", first: true, predicate: ChartDataLabelTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "", isInline: true }); }
|
|
57854
57882
|
}
|
|
57855
57883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: LineSeriesComponent, decorators: [{
|
|
57856
57884
|
type: Component,
|
|
@@ -57863,7 +57891,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
57863
57891
|
style: "display: none !important;"
|
|
57864
57892
|
}
|
|
57865
57893
|
}]
|
|
57866
|
-
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], connectNulls: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectNulls", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], dataLabelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ChartDataLabelTemplateDirective), { isSignal: true }] }], dataLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataLabels", required: false }] }], downsampling: [{ type: i0.Input, args: [{ isSignal: true, alias: "downsampling", required: false }] }], field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }], keyField: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyField", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], pointRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointRadius", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], showPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPoints", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], xAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "xAxisId", required: false }] }], xField: [{ type: i0.Input, args: [{ isSignal: true, alias: "xField", required: false }] }], yAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisId", required: false }] }] } });
|
|
57894
|
+
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], connectNulls: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectNulls", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], dataLabelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ChartDataLabelTemplateDirective), { isSignal: true }] }], dataLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataLabels", required: false }] }], downsampling: [{ type: i0.Input, args: [{ isSignal: true, alias: "downsampling", required: false }] }], field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }], keyField: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyField", required: false }] }], lineStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStyle", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], pointRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointRadius", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], showPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPoints", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], xAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "xAxisId", required: false }] }], xField: [{ type: i0.Input, args: [{ isSignal: true, alias: "xField", required: false }] }], yAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisId", required: false }] }] } });
|
|
57867
57895
|
|
|
57868
57896
|
let nextSeriesId$8 = 0;
|
|
57869
57897
|
class AreaSeriesComponent {
|
|
@@ -57940,6 +57968,12 @@ class AreaSeriesComponent {
|
|
|
57940
57968
|
*/
|
|
57941
57969
|
this.keyField = input(undefined, /* @ts-ignore */
|
|
57942
57970
|
...(ngDevMode ? [{ debugName: "keyField" }] : /* istanbul ignore next */ []));
|
|
57971
|
+
/**
|
|
57972
|
+
* @description Stroke pattern used for the area's boundary line (`"solid"`, `"dashed"`, or `"dotted"`).
|
|
57973
|
+
* @default "solid"
|
|
57974
|
+
*/
|
|
57975
|
+
this.lineStyle = input("solid", /* @ts-ignore */
|
|
57976
|
+
...(ngDevMode ? [{ debugName: "lineStyle" }] : /* istanbul ignore next */ []));
|
|
57943
57977
|
/**
|
|
57944
57978
|
* @description Name of the series displayed in legends and tooltips.
|
|
57945
57979
|
* @default ""
|
|
@@ -58054,6 +58088,7 @@ class AreaSeriesComponent {
|
|
|
58054
58088
|
effect(() => {
|
|
58055
58089
|
this.color();
|
|
58056
58090
|
this.fillMode();
|
|
58091
|
+
this.lineStyle();
|
|
58057
58092
|
this.userClass();
|
|
58058
58093
|
if (this.#registered) {
|
|
58059
58094
|
this.#chartContext?.invalidate(4 /* ChartInvalidationReason.Style */);
|
|
@@ -58086,6 +58121,7 @@ class AreaSeriesComponent {
|
|
|
58086
58121
|
fillOpacity: this.fillOpacity,
|
|
58087
58122
|
id: this.#id,
|
|
58088
58123
|
keyField: this.keyField,
|
|
58124
|
+
lineStyle: this.lineStyle,
|
|
58089
58125
|
name: this.name,
|
|
58090
58126
|
pointRadius: this.pointRadius,
|
|
58091
58127
|
seriesKey: this.seriesKey,
|
|
@@ -58109,7 +58145,7 @@ class AreaSeriesComponent {
|
|
|
58109
58145
|
this.#destroyRef.onDestroy(unregister);
|
|
58110
58146
|
}
|
|
58111
58147
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AreaSeriesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
58112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: AreaSeriesComponent, isStandalone: true, selector: "mona-area-series", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, connectNulls: { classPropertyName: "connectNulls", publicName: "connectNulls", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, dataLabels: { classPropertyName: "dataLabels", publicName: "dataLabels", isSignal: true, isRequired: false, transformFunction: null }, downsampling: { classPropertyName: "downsampling", publicName: "downsampling", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, fillMode: { classPropertyName: "fillMode", publicName: "fillMode", isSignal: true, isRequired: false, transformFunction: null }, fillOpacity: { classPropertyName: "fillOpacity", publicName: "fillOpacity", isSignal: true, isRequired: false, transformFunction: null }, keyField: { classPropertyName: "keyField", publicName: "keyField", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, pointRadius: { classPropertyName: "pointRadius", publicName: "pointRadius", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, showPoints: { classPropertyName: "showPoints", publicName: "showPoints", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, stackMode: { classPropertyName: "stackMode", publicName: "stackMode", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, xAxisId: { classPropertyName: "xAxisId", publicName: "xAxisId", isSignal: true, isRequired: false, transformFunction: null }, xField: { classPropertyName: "xField", publicName: "xField", isSignal: true, isRequired: false, transformFunction: null }, yAxisId: { classPropertyName: "yAxisId", publicName: "yAxisId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, host: { attributes: { "aria-hidden": "true" }, properties: { "class": "userClass()" }, styleAttribute: "display: none !important;" }, queries: [{ propertyName: "dataLabelTemplate", first: true, predicate: ChartDataLabelTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "", isInline: true }); }
|
|
58148
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: AreaSeriesComponent, isStandalone: true, selector: "mona-area-series", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, connectNulls: { classPropertyName: "connectNulls", publicName: "connectNulls", isSignal: true, isRequired: false, transformFunction: null }, curve: { classPropertyName: "curve", publicName: "curve", isSignal: true, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, dataLabels: { classPropertyName: "dataLabels", publicName: "dataLabels", isSignal: true, isRequired: false, transformFunction: null }, downsampling: { classPropertyName: "downsampling", publicName: "downsampling", isSignal: true, isRequired: false, transformFunction: null }, field: { classPropertyName: "field", publicName: "field", isSignal: true, isRequired: false, transformFunction: null }, fillMode: { classPropertyName: "fillMode", publicName: "fillMode", isSignal: true, isRequired: false, transformFunction: null }, fillOpacity: { classPropertyName: "fillOpacity", publicName: "fillOpacity", isSignal: true, isRequired: false, transformFunction: null }, keyField: { classPropertyName: "keyField", publicName: "keyField", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, pointRadius: { classPropertyName: "pointRadius", publicName: "pointRadius", isSignal: true, isRequired: false, transformFunction: null }, seriesKey: { classPropertyName: "seriesKey", publicName: "seriesKey", isSignal: true, isRequired: false, transformFunction: null }, showPoints: { classPropertyName: "showPoints", publicName: "showPoints", isSignal: true, isRequired: false, transformFunction: null }, stack: { classPropertyName: "stack", publicName: "stack", isSignal: true, isRequired: false, transformFunction: null }, stackMode: { classPropertyName: "stackMode", publicName: "stackMode", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, xAxisId: { classPropertyName: "xAxisId", publicName: "xAxisId", isSignal: true, isRequired: false, transformFunction: null }, xField: { classPropertyName: "xField", publicName: "xField", isSignal: true, isRequired: false, transformFunction: null }, yAxisId: { classPropertyName: "yAxisId", publicName: "yAxisId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, host: { attributes: { "aria-hidden": "true" }, properties: { "class": "userClass()" }, styleAttribute: "display: none !important;" }, queries: [{ propertyName: "dataLabelTemplate", first: true, predicate: ChartDataLabelTemplateDirective, descendants: true, isSignal: true }], ngImport: i0, template: "", isInline: true }); }
|
|
58113
58149
|
}
|
|
58114
58150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AreaSeriesComponent, decorators: [{
|
|
58115
58151
|
type: Component,
|
|
@@ -58122,7 +58158,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
58122
58158
|
style: "display: none !important;"
|
|
58123
58159
|
}
|
|
58124
58160
|
}]
|
|
58125
|
-
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], connectNulls: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectNulls", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], dataLabelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ChartDataLabelTemplateDirective), { isSignal: true }] }], dataLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataLabels", required: false }] }], downsampling: [{ type: i0.Input, args: [{ isSignal: true, alias: "downsampling", required: false }] }], field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }], fillMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillMode", required: false }] }], fillOpacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillOpacity", required: false }] }], keyField: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyField", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], pointRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointRadius", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], showPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPoints", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], stackMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackMode", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormatter", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], xAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "xAxisId", required: false }] }], xField: [{ type: i0.Input, args: [{ isSignal: true, alias: "xField", required: false }] }], yAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisId", required: false }] }] } });
|
|
58161
|
+
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], connectNulls: [{ type: i0.Input, args: [{ isSignal: true, alias: "connectNulls", required: false }] }], curve: [{ type: i0.Input, args: [{ isSignal: true, alias: "curve", required: false }] }], data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], dataLabelTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => ChartDataLabelTemplateDirective), { isSignal: true }] }], dataLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataLabels", required: false }] }], downsampling: [{ type: i0.Input, args: [{ isSignal: true, alias: "downsampling", required: false }] }], field: [{ type: i0.Input, args: [{ isSignal: true, alias: "field", required: false }] }], fillMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillMode", required: false }] }], fillOpacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillOpacity", required: false }] }], keyField: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyField", required: false }] }], lineStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStyle", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], pointRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointRadius", required: false }] }], seriesKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "seriesKey", required: false }] }], showPoints: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPoints", required: false }] }], stack: [{ type: i0.Input, args: [{ isSignal: true, alias: "stack", required: false }] }], stackMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "stackMode", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormatter", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], xAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "xAxisId", required: false }] }], xField: [{ type: i0.Input, args: [{ isSignal: true, alias: "xField", required: false }] }], yAxisId: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxisId", required: false }] }] } });
|
|
58126
58162
|
|
|
58127
58163
|
let nextSeriesId$7 = 0;
|
|
58128
58164
|
class BarSeriesComponent {
|
|
@@ -36,6 +36,12 @@ const segmentedContainerThemeVariants = cva(`
|
|
|
36
36
|
transition-colors duration-(--mona-motion-fast)
|
|
37
37
|
`, {
|
|
38
38
|
variants: {
|
|
39
|
+
alignment: {
|
|
40
|
+
start: "justify-start",
|
|
41
|
+
center: "justify-center",
|
|
42
|
+
end: "justify-end",
|
|
43
|
+
stretch: "justify-stretch"
|
|
44
|
+
},
|
|
39
45
|
rounded: {
|
|
40
46
|
none: "rounded-none",
|
|
41
47
|
small: "rounded-sm",
|
|
@@ -45,11 +51,12 @@ const segmentedContainerThemeVariants = cva(`
|
|
|
45
51
|
}
|
|
46
52
|
},
|
|
47
53
|
defaultVariants: {
|
|
54
|
+
alignment: "stretch",
|
|
48
55
|
rounded: "medium"
|
|
49
56
|
}
|
|
50
57
|
});
|
|
51
58
|
const segmentedOptionThemeVariants = cva(`
|
|
52
|
-
relative flex
|
|
59
|
+
relative flex cursor-pointer items-center justify-center gap-1
|
|
53
60
|
whitespace-nowrap
|
|
54
61
|
transition-colors duration-(--mona-motion-fast)
|
|
55
62
|
data-[disabled='true']:pointer-events-none
|
|
@@ -63,6 +70,12 @@ const segmentedOptionThemeVariants = cva(`
|
|
|
63
70
|
data-[selected='true']:transition-none
|
|
64
71
|
`, {
|
|
65
72
|
variants: {
|
|
73
|
+
alignment: {
|
|
74
|
+
start: "flex-none",
|
|
75
|
+
center: "flex-none",
|
|
76
|
+
end: "flex-none",
|
|
77
|
+
stretch: "flex-1"
|
|
78
|
+
},
|
|
66
79
|
rounded: {
|
|
67
80
|
none: "rounded-none",
|
|
68
81
|
small: "rounded-xs",
|
|
@@ -77,6 +90,7 @@ const segmentedOptionThemeVariants = cva(`
|
|
|
77
90
|
}
|
|
78
91
|
},
|
|
79
92
|
defaultVariants: {
|
|
93
|
+
alignment: "stretch",
|
|
80
94
|
rounded: "medium",
|
|
81
95
|
size: "medium"
|
|
82
96
|
}
|
|
@@ -127,7 +141,7 @@ class SegmentedComponent {
|
|
|
127
141
|
this.#lastSize = null;
|
|
128
142
|
this.#resizeObserver = null;
|
|
129
143
|
this.containerClasses = computed(() => {
|
|
130
|
-
const classes = segmentedContainerThemeVariants({ rounded: this.rounded() });
|
|
144
|
+
const classes = segmentedContainerThemeVariants({ alignment: this.alignment(), rounded: this.rounded() });
|
|
131
145
|
return twMerge(classes, this.userClass());
|
|
132
146
|
}, /* @ts-ignore */
|
|
133
147
|
...(ngDevMode ? [{ debugName: "containerClasses" }] : /* istanbul ignore next */ []));
|
|
@@ -150,9 +164,10 @@ class SegmentedComponent {
|
|
|
150
164
|
...(ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []));
|
|
151
165
|
this.itemTemplate = contentChild(SegmentedItemTemplateDirective, { ...(ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {}), read: TemplateRef });
|
|
152
166
|
this.optionClasses = computed(() => {
|
|
167
|
+
const alignment = this.alignment();
|
|
153
168
|
const rounded = this.rounded();
|
|
154
169
|
const size = this.size();
|
|
155
|
-
return segmentedOptionThemeVariants({ rounded, size });
|
|
170
|
+
return segmentedOptionThemeVariants({ alignment, rounded, size });
|
|
156
171
|
}, /* @ts-ignore */
|
|
157
172
|
...(ngDevMode ? [{ debugName: "optionClasses" }] : /* istanbul ignore next */ []));
|
|
158
173
|
this.optionElements = viewChildren("optionElement", /* @ts-ignore */
|
|
@@ -171,6 +186,12 @@ class SegmentedComponent {
|
|
|
171
186
|
return this.disabled() || !!option?.disabled;
|
|
172
187
|
}, /* @ts-ignore */
|
|
173
188
|
...(ngDevMode ? [{ debugName: "selectedOptionDisabled" }] : /* istanbul ignore next */ []));
|
|
189
|
+
/**
|
|
190
|
+
* @description Controls the alignment of the items inside the segmented component.
|
|
191
|
+
* @default "stretch"
|
|
192
|
+
*/
|
|
193
|
+
this.alignment = input("stretch", /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "alignment" }] : /* istanbul ignore next */ []));
|
|
174
195
|
/**
|
|
175
196
|
* @description Controls whether the selection indicator animates between selected options.
|
|
176
197
|
* When false, selection changes are applied immediately without transition.
|
|
@@ -245,6 +266,7 @@ class SegmentedComponent {
|
|
|
245
266
|
read: () => {
|
|
246
267
|
this.selectedIndex();
|
|
247
268
|
this.optionElements();
|
|
269
|
+
this.alignment();
|
|
248
270
|
this.rounded();
|
|
249
271
|
this.animate();
|
|
250
272
|
const size = this.size();
|
|
@@ -335,7 +357,7 @@ class SegmentedComponent {
|
|
|
335
357
|
}
|
|
336
358
|
}
|
|
337
359
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SegmentedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
338
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SegmentedComponent, isStandalone: true, selector: "mona-segmented", inputs: { animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", 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 } }, outputs: { touch: "touch", value: "valueChange" }, host: { properties: { "attr.aria-disabled": "disabled() || undefined", "attr.aria-invalid": "invalidState() ? 'true' : null", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.data-disabled": "disabled()", "attr.data-invalid": "invalidState() || null", "attr.role": "'radiogroup'", "class": "containerClasses()" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: SegmentedItemTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "optionElements", predicate: ["optionElement"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = disabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n type=\"radio\"\n [name]=\"groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n (change)=\"onOptionChange(option)\"\n (blur)=\"onOptionBlur()\" />\n\n <span\n class=\"pointer-events-none flex flex-1 items-center justify-center gap-1\n [border-radius:inherit]\n peer-focus-visible:ring-2\n peer-focus-visible:ring-focus-indicator/35\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"createOptionContext(option, $index)\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
360
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: SegmentedComponent, isStandalone: true, selector: "mona-segmented", inputs: { alignment: { classPropertyName: "alignment", publicName: "alignment", isSignal: true, isRequired: false, transformFunction: null }, animate: { classPropertyName: "animate", publicName: "animate", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, touched: { classPropertyName: "touched", publicName: "touched", 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 } }, outputs: { touch: "touch", value: "valueChange" }, host: { properties: { "attr.aria-disabled": "disabled() || undefined", "attr.aria-invalid": "invalidState() ? 'true' : null", "attr.aria-label": "ariaLabel()", "attr.aria-labelledby": "ariaLabelledBy()", "attr.data-disabled": "disabled()", "attr.data-invalid": "invalidState() || null", "attr.role": "'radiogroup'", "class": "containerClasses()" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: SegmentedItemTemplateDirective, descendants: true, read: TemplateRef, isSignal: true }], viewQueries: [{ propertyName: "optionElements", predicate: ["optionElement"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = disabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n type=\"radio\"\n [name]=\"groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n (change)=\"onOptionChange(option)\"\n (blur)=\"onOptionBlur()\" />\n\n <span\n class=\"pointer-events-none flex flex-1 items-center justify-center gap-1\n [border-radius:inherit]\n peer-focus-visible:ring-2\n peer-focus-visible:ring-focus-indicator/35\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"createOptionContext(option, $index)\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
339
361
|
}
|
|
340
362
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: SegmentedComponent, decorators: [{
|
|
341
363
|
type: Component,
|
|
@@ -349,7 +371,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
349
371
|
"[attr.role]": "'radiogroup'",
|
|
350
372
|
"[class]": "containerClasses()"
|
|
351
373
|
}, template: "@if (indicatorGeometry(); as geometry) {\n <div\n aria-hidden=\"true\"\n [class]=\"indicatorClasses()\"\n [attr.data-disabled]=\"selectedOptionDisabled() ? 'true' : null\"\n [style.transform]=\"geometry.transform\"\n [style.width.px]=\"geometry.width\"\n [style.height.px]=\"geometry.height\"></div>\n}\n\n@for (option of options(); track option.value) {\n @let selected = option.value === value();\n @let optionDisabled = disabled() || option.disabled;\n\n <label\n #optionElement\n [class]=\"optionClasses()\"\n [attr.data-selected]=\"selected\"\n [attr.data-disabled]=\"optionDisabled\">\n <input\n type=\"radio\"\n [name]=\"groupName\"\n [value]=\"option.value\"\n [checked]=\"selected\"\n [disabled]=\"optionDisabled\"\n [class]=\"inputClasses()\"\n (change)=\"onOptionChange(option)\"\n (blur)=\"onOptionBlur()\" />\n\n <span\n class=\"pointer-events-none flex flex-1 items-center justify-center gap-1\n [border-radius:inherit]\n peer-focus-visible:ring-2\n peer-focus-visible:ring-focus-indicator/35\">\n @if (itemTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template\"\n [ngTemplateOutletContext]=\"createOptionContext(option, $index)\"></ng-container>\n } @else {\n {{ option.label }}\n }\n </span>\n </label>\n}\n\n" }]
|
|
352
|
-
}], ctorParameters: () => [], propDecorators: { itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SegmentedItemTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], optionElements: [{ type: i0.ViewChildren, args: ["optionElement", { 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 }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], touch: [{ type: i0.Output, args: ["touch"] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
374
|
+
}], ctorParameters: () => [], propDecorators: { itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SegmentedItemTemplateDirective), { ...{ read: TemplateRef }, isSignal: true }] }], optionElements: [{ type: i0.ViewChildren, args: ["optionElement", { isSignal: true }] }], alignment: [{ type: i0.Input, args: [{ isSignal: true, alias: "alignment", required: false }] }], animate: [{ type: i0.Input, args: [{ isSignal: true, alias: "animate", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], touch: [{ type: i0.Output, args: ["touch"] }], touched: [{ type: i0.Input, args: [{ isSignal: true, alias: "touched", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
353
375
|
|
|
354
376
|
/*
|
|
355
377
|
* Public API Surface of @nanahoshi/mona-ui/segmented
|
package/package.json
CHANGED
|
@@ -459,6 +459,7 @@ declare class ChartCrosshairLabelTemplateDirective {
|
|
|
459
459
|
|
|
460
460
|
type ChartAreaFillMode = "gradient" | "solid";
|
|
461
461
|
type ChartCurve = "linear" | "monotone-x" | "natural" | "step" | "step-after";
|
|
462
|
+
type ChartLineStyle = "solid" | "dashed" | "dotted";
|
|
462
463
|
type ChartSeriesType = "area" | "bar" | "bubble" | "candlestick" | "donut" | "funnel" | "gauge" | "heatmap" | "line" | "ohlc" | "pie" | "polar" | "radar" | "radialBar" | "rangeArea" | "rangeBar" | "rose" | "scatter" | "treemap" | "waterfall";
|
|
463
464
|
type ChartSeriesFamily = "cartesian" | "funnel" | "heatmap" | "hierarchy" | "polar" | "radar" | "radialArc" | "sector" | "waterfall";
|
|
464
465
|
declare function getChartSeriesFamily(type: ChartSeriesType): ChartSeriesFamily;
|
|
@@ -1588,6 +1589,7 @@ interface ChartSeriesStyle {
|
|
|
1588
1589
|
areaFillOpacity: number;
|
|
1589
1590
|
color: string;
|
|
1590
1591
|
fillOpacity: number;
|
|
1592
|
+
lineStyle?: ChartLineStyle;
|
|
1591
1593
|
lineWidth: number;
|
|
1592
1594
|
opacity: number;
|
|
1593
1595
|
pointRadius: number;
|
|
@@ -3268,6 +3270,7 @@ interface ChartLineSeriesRegistration extends ChartCartesianScalarSeriesRegistra
|
|
|
3268
3270
|
connectNulls?: Signal<boolean>;
|
|
3269
3271
|
curve?: Signal<ChartCurve>;
|
|
3270
3272
|
downsampling?: Signal<ChartDownsamplingInput | undefined>;
|
|
3273
|
+
lineStyle?: Signal<ChartLineStyle>;
|
|
3271
3274
|
pointRadius?: Signal<number | undefined>;
|
|
3272
3275
|
showPoints?: Signal<boolean>;
|
|
3273
3276
|
strokeWidth?: Signal<number | undefined>;
|
|
@@ -3279,6 +3282,7 @@ interface ChartAreaSeriesRegistration extends ChartCartesianScalarSeriesRegistra
|
|
|
3279
3282
|
downsampling?: Signal<ChartDownsamplingInput | undefined>;
|
|
3280
3283
|
fillMode?: Signal<ChartAreaFillMode>;
|
|
3281
3284
|
fillOpacity?: Signal<number | undefined>;
|
|
3285
|
+
lineStyle?: Signal<ChartLineStyle>;
|
|
3282
3286
|
pointRadius?: Signal<number | undefined>;
|
|
3283
3287
|
showPoints?: Signal<boolean>;
|
|
3284
3288
|
stack: Signal<string | undefined>;
|
|
@@ -4902,6 +4906,11 @@ declare class LineSeriesComponent implements OnInit {
|
|
|
4902
4906
|
* @default undefined
|
|
4903
4907
|
*/
|
|
4904
4908
|
readonly keyField: _angular_core.InputSignal<ChartField | undefined>;
|
|
4909
|
+
/**
|
|
4910
|
+
* @description Stroke pattern used to render the series line (`"solid"`, `"dashed"`, or `"dotted"`).
|
|
4911
|
+
* @default "solid"
|
|
4912
|
+
*/
|
|
4913
|
+
readonly lineStyle: _angular_core.InputSignal<ChartLineStyle>;
|
|
4905
4914
|
/**
|
|
4906
4915
|
* @description Name of the series displayed in legends and tooltips.
|
|
4907
4916
|
* @default ""
|
|
@@ -4955,7 +4964,7 @@ declare class LineSeriesComponent implements OnInit {
|
|
|
4955
4964
|
constructor();
|
|
4956
4965
|
ngOnInit(): void;
|
|
4957
4966
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LineSeriesComponent, never>;
|
|
4958
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineSeriesComponent, "mona-line-series", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "connectNulls": { "alias": "connectNulls"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "dataLabels": { "alias": "dataLabels"; "required": false; "isSignal": true; }; "downsampling": { "alias": "downsampling"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "pointRadius": { "alias": "pointRadius"; "required": false; "isSignal": true; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "showPoints": { "alias": "showPoints"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "xAxisId": { "alias": "xAxisId"; "required": false; "isSignal": true; }; "xField": { "alias": "xField"; "required": false; "isSignal": true; }; "yAxisId": { "alias": "yAxisId"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; }, ["dataLabelTemplate"], never, true, never>;
|
|
4967
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LineSeriesComponent, "mona-line-series", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "connectNulls": { "alias": "connectNulls"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "dataLabels": { "alias": "dataLabels"; "required": false; "isSignal": true; }; "downsampling": { "alias": "downsampling"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "lineStyle": { "alias": "lineStyle"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "pointRadius": { "alias": "pointRadius"; "required": false; "isSignal": true; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "showPoints": { "alias": "showPoints"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "xAxisId": { "alias": "xAxisId"; "required": false; "isSignal": true; }; "xField": { "alias": "xField"; "required": false; "isSignal": true; }; "yAxisId": { "alias": "yAxisId"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; }, ["dataLabelTemplate"], never, true, never>;
|
|
4959
4968
|
}
|
|
4960
4969
|
|
|
4961
4970
|
declare class AreaSeriesComponent implements OnInit {
|
|
@@ -5011,6 +5020,11 @@ declare class AreaSeriesComponent implements OnInit {
|
|
|
5011
5020
|
* @default undefined
|
|
5012
5021
|
*/
|
|
5013
5022
|
readonly keyField: _angular_core.InputSignal<ChartField | undefined>;
|
|
5023
|
+
/**
|
|
5024
|
+
* @description Stroke pattern used for the area's boundary line (`"solid"`, `"dashed"`, or `"dotted"`).
|
|
5025
|
+
* @default "solid"
|
|
5026
|
+
*/
|
|
5027
|
+
readonly lineStyle: _angular_core.InputSignal<ChartLineStyle>;
|
|
5014
5028
|
/**
|
|
5015
5029
|
* @description Name of the series displayed in legends and tooltips.
|
|
5016
5030
|
* @default ""
|
|
@@ -5079,7 +5093,7 @@ declare class AreaSeriesComponent implements OnInit {
|
|
|
5079
5093
|
constructor();
|
|
5080
5094
|
ngOnInit(): void;
|
|
5081
5095
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AreaSeriesComponent, never>;
|
|
5082
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AreaSeriesComponent, "mona-area-series", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "connectNulls": { "alias": "connectNulls"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "dataLabels": { "alias": "dataLabels"; "required": false; "isSignal": true; }; "downsampling": { "alias": "downsampling"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "fillMode": { "alias": "fillMode"; "required": false; "isSignal": true; }; "fillOpacity": { "alias": "fillOpacity"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "pointRadius": { "alias": "pointRadius"; "required": false; "isSignal": true; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "showPoints": { "alias": "showPoints"; "required": false; "isSignal": true; }; "stack": { "alias": "stack"; "required": false; "isSignal": true; }; "stackMode": { "alias": "stackMode"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "valueFormatter": { "alias": "valueFormatter"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "xAxisId": { "alias": "xAxisId"; "required": false; "isSignal": true; }; "xField": { "alias": "xField"; "required": false; "isSignal": true; }; "yAxisId": { "alias": "yAxisId"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; }, ["dataLabelTemplate"], never, true, never>;
|
|
5096
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AreaSeriesComponent, "mona-area-series", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "connectNulls": { "alias": "connectNulls"; "required": false; "isSignal": true; }; "curve": { "alias": "curve"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "dataLabels": { "alias": "dataLabels"; "required": false; "isSignal": true; }; "downsampling": { "alias": "downsampling"; "required": false; "isSignal": true; }; "field": { "alias": "field"; "required": false; "isSignal": true; }; "fillMode": { "alias": "fillMode"; "required": false; "isSignal": true; }; "fillOpacity": { "alias": "fillOpacity"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "lineStyle": { "alias": "lineStyle"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "pointRadius": { "alias": "pointRadius"; "required": false; "isSignal": true; }; "seriesKey": { "alias": "seriesKey"; "required": false; "isSignal": true; }; "showPoints": { "alias": "showPoints"; "required": false; "isSignal": true; }; "stack": { "alias": "stack"; "required": false; "isSignal": true; }; "stackMode": { "alias": "stackMode"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "valueFormatter": { "alias": "valueFormatter"; "required": false; "isSignal": true; }; "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "xAxisId": { "alias": "xAxisId"; "required": false; "isSignal": true; }; "xField": { "alias": "xField"; "required": false; "isSignal": true; }; "yAxisId": { "alias": "yAxisId"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; }, ["dataLabelTemplate"], never, true, never>;
|
|
5083
5097
|
}
|
|
5084
5098
|
|
|
5085
5099
|
declare class BarSeriesComponent implements OnInit {
|
|
@@ -7812,4 +7826,4 @@ declare class ChartBrushComponent implements OnInit {
|
|
|
7812
7826
|
}
|
|
7813
7827
|
|
|
7814
7828
|
export { AreaSeriesComponent, BarSeriesComponent, BubbleSeriesComponent, CandlestickSeriesComponent, ChartAngularAxisComponent, ChartAnnotationComponent, ChartAnnotationLabelTemplateDirective, ChartAxisLabelTemplateDirective, ChartBrushComponent, ChartCenterTemplateDirective, ChartComponent, ChartCrosshairComponent, ChartCrosshairLabelTemplateDirective, ChartDataLabelTemplateDirective, ChartExportError, ChartFunnelLabelTemplateDirective, ChartGaugeCenterTemplateDirective, ChartLegendComponent, ChartLegendItemTemplateDirective, ChartNoDataTemplateDirective, ChartRadialAxisComponent, ChartReferenceBandComponent, ChartReferenceLabelTemplateDirective, ChartReferenceLineComponent, ChartSelectionComponent, ChartSliceLabelTemplateDirective, ChartSubtitleTemplateDirective, ChartTitleTemplateDirective, ChartTooltipComponent, ChartTooltipTemplateDirective, ChartTreemapLabelTemplateDirective, ChartWaterfallLabelTemplateDirective, ChartXAxisComponent, ChartYAxisComponent, DonutSeriesComponent, FunnelSeriesComponent, GaugeSeriesComponent, HeatmapSeriesComponent, LineSeriesComponent, OhlcSeriesComponent, PieSeriesComponent, PolarSeriesComponent, RadarSeriesComponent, RadialBarSeriesComponent, RangeAreaSeriesComponent, RangeBarSeriesComponent, RoseSeriesComponent, ScatterSeriesComponent, TreemapSeriesComponent, WaterfallSeriesComponent, getChartSeriesFamily, isCartesianCoordinateFamily, isHierarchicalCoordinateFamily, isPolarCoordinateFamily };
|
|
7815
|
-
export type { ChartAnimationEasing, ChartAnimationInput, ChartAnimationOptions, ChartAnnotationAxisValue, ChartAnnotationLabelPlacement, ChartAnnotationLabelTemplateContext, ChartAnnotationMarker, ChartAreaFillMode, ChartAxisFormatter, ChartAxisLabelRotation, ChartAxisLabelTemplateContext, ChartAxisPosition, ChartAxisTick, ChartBarOrientation, ChartBrushActivation, ChartBrushAxisRange, ChartBrushCancelReason, ChartBrushCategoryRange, ChartBrushChangeEvent, ChartBrushContinuousRange, ChartBrushHitPolicy, ChartBrushLineStyle, ChartBrushMode, ChartBrushPhase, ChartBrushSelectionBehavior, ChartCategoryViewportWindow, ChartCenterTemplateContext, ChartColorLegendScale, ChartColorLegendStop, ChartColorLegendTick, ChartContinuousViewportWindow, ChartCoordinateSystem, ChartCrosshairAxisLabelContext, ChartCrosshairLineStyle, ChartCrosshairMode, ChartCrosshairResolvedAxisValue, ChartCrosshairSnapMode, ChartCrosshairSynchronizationOptions, ChartCurve, ChartDataLabelContext, ChartDataLabelFormatter, ChartDataLabelOptions, ChartDataLabelPosition, ChartDataLabelsInput, ChartDownloadOptions, ChartDownsamplingAlgorithm, ChartDownsamplingInput, ChartDownsamplingOptions, ChartExportBackground, ChartExportBaseOptions, ChartExportErrorCode, ChartExportFormat, ChartExportOptions, ChartExportPresentationOptions, ChartExportResult, ChartField, ChartFinancialDirection, ChartFinancialFillMode, ChartFunnelLabelContent, ChartFunnelLabelTemplateContext, ChartFunnelOrientation, ChartFunnelPointMetadata, ChartFunnelStageContext, ChartFunnelStageVisibilityEvent, ChartGaugeCenterTemplateContext, ChartGaugeIndicator, ChartHeaderAlignment, ChartHeatmapCategory, ChartHeatmapCellData, ChartHeatmapColorMode, ChartHierarchicalKind, ChartHierarchyNodeContext, ChartHierarchyPointMetadata, ChartLabelMeasurement, ChartLegendItem, ChartLegendItemKind, ChartLegendItemTemplateContext, ChartLegendMode, ChartNavigationAxisTarget, ChartNavigationInput, ChartNavigationOptions, ChartNumericScaleType, ChartOhlcPointValue, ChartOverlayLayer, ChartPadding, ChartPdfExportOptions, ChartPdfMargins, ChartPdfPageOptions, ChartPdfPageSize, ChartPdfRenderMode, ChartPngExportOptions, ChartPoint, ChartPointEvent, ChartPointFocusEvent, ChartPointValue, ChartPointValueKind, ChartPolarFillMode, ChartPolarLabelContent, ChartPolarLabelPosition, ChartPolarLabelSide, ChartRadialArcFillMode, ChartRadialCurve, ChartRadialDatumVisibilityEvent, ChartRadialFillMode, ChartRadialGridShape, ChartRangePointValue, ChartRect, ChartReferenceBandLabelContext, ChartReferenceLabelPosition, ChartReferenceLabelTemplateContext, ChartReferenceLineLabelContext, ChartReferenceLineStyle, ChartRendererMode, ChartRoseScaleMode, ChartScalarPointValue, ChartSelectedPoint, ChartSelectionChangeEvent, ChartSelectionChangeSource, ChartSelectionMode, ChartSeriesFamily, ChartSeriesStyle, ChartSeriesType, ChartSeriesVisibilityEvent, ChartSize, ChartSliceContext, ChartSliceLabelTemplateContext, ChartSliceVisibilityEvent, ChartStackMode, ChartSubtitleTemplateContext, ChartSvgExportOptions, ChartSynchronizationAxisMapping, ChartSynchronizationInput, ChartSynchronizationMode, ChartSynchronizationOptions, ChartTitleTemplateContext, ChartTooltipPointContext, ChartTooltipTemplateContext, ChartTreemapLabelTemplateContext, ChartTreemapNodeVisibilityEvent, ChartTreemapSort, ChartTreemapTile, ChartValueAccessor, ChartValueFormatter, ChartViewportAxisRef, ChartViewportChangeEvent, ChartViewportChangePhase, ChartViewportChangeSource, ChartViewportConstraint, ChartViewportLinkGroup, ChartViewportLinkMode, ChartViewportState, ChartViewportSynchronizationOptions, ChartViewportWindow, ChartWaterfallDatumKind, ChartWaterfallLabelTemplateContext, ChartWaterfallPointContext, ChartWaterfallPointValue, ChartWaterfallVisualKind, ChartXAxisPosition, ChartXAxisType, ChartYAxisPosition, ChartYAxisType, HeatmapCellClickEvent, HeatmapColorStop };
|
|
7829
|
+
export type { ChartAnimationEasing, ChartAnimationInput, ChartAnimationOptions, ChartAnnotationAxisValue, ChartAnnotationLabelPlacement, ChartAnnotationLabelTemplateContext, ChartAnnotationMarker, ChartAreaFillMode, ChartAxisFormatter, ChartAxisLabelRotation, ChartAxisLabelTemplateContext, ChartAxisPosition, ChartAxisTick, ChartBarOrientation, ChartBrushActivation, ChartBrushAxisRange, ChartBrushCancelReason, ChartBrushCategoryRange, ChartBrushChangeEvent, ChartBrushContinuousRange, ChartBrushHitPolicy, ChartBrushLineStyle, ChartBrushMode, ChartBrushPhase, ChartBrushSelectionBehavior, ChartCategoryViewportWindow, ChartCenterTemplateContext, ChartColorLegendScale, ChartColorLegendStop, ChartColorLegendTick, ChartContinuousViewportWindow, ChartCoordinateSystem, ChartCrosshairAxisLabelContext, ChartCrosshairLineStyle, ChartCrosshairMode, ChartCrosshairResolvedAxisValue, ChartCrosshairSnapMode, ChartCrosshairSynchronizationOptions, ChartCurve, ChartDataLabelContext, ChartDataLabelFormatter, ChartDataLabelOptions, ChartDataLabelPosition, ChartDataLabelsInput, ChartDownloadOptions, ChartDownsamplingAlgorithm, ChartDownsamplingInput, ChartDownsamplingOptions, ChartExportBackground, ChartExportBaseOptions, ChartExportErrorCode, ChartExportFormat, ChartExportOptions, ChartExportPresentationOptions, ChartExportResult, ChartField, ChartFinancialDirection, ChartFinancialFillMode, ChartFunnelLabelContent, ChartFunnelLabelTemplateContext, ChartFunnelOrientation, ChartFunnelPointMetadata, ChartFunnelStageContext, ChartFunnelStageVisibilityEvent, ChartGaugeCenterTemplateContext, ChartGaugeIndicator, ChartHeaderAlignment, ChartHeatmapCategory, ChartHeatmapCellData, ChartHeatmapColorMode, ChartHierarchicalKind, ChartHierarchyNodeContext, ChartHierarchyPointMetadata, ChartLabelMeasurement, ChartLegendItem, ChartLegendItemKind, ChartLegendItemTemplateContext, ChartLegendMode, ChartLineStyle, ChartNavigationAxisTarget, ChartNavigationInput, ChartNavigationOptions, ChartNumericScaleType, ChartOhlcPointValue, ChartOverlayLayer, ChartPadding, ChartPdfExportOptions, ChartPdfMargins, ChartPdfPageOptions, ChartPdfPageSize, ChartPdfRenderMode, ChartPngExportOptions, ChartPoint, ChartPointEvent, ChartPointFocusEvent, ChartPointValue, ChartPointValueKind, ChartPolarFillMode, ChartPolarLabelContent, ChartPolarLabelPosition, ChartPolarLabelSide, ChartRadialArcFillMode, ChartRadialCurve, ChartRadialDatumVisibilityEvent, ChartRadialFillMode, ChartRadialGridShape, ChartRangePointValue, ChartRect, ChartReferenceBandLabelContext, ChartReferenceLabelPosition, ChartReferenceLabelTemplateContext, ChartReferenceLineLabelContext, ChartReferenceLineStyle, ChartRendererMode, ChartRoseScaleMode, ChartScalarPointValue, ChartSelectedPoint, ChartSelectionChangeEvent, ChartSelectionChangeSource, ChartSelectionMode, ChartSeriesFamily, ChartSeriesStyle, ChartSeriesType, ChartSeriesVisibilityEvent, ChartSize, ChartSliceContext, ChartSliceLabelTemplateContext, ChartSliceVisibilityEvent, ChartStackMode, ChartSubtitleTemplateContext, ChartSvgExportOptions, ChartSynchronizationAxisMapping, ChartSynchronizationInput, ChartSynchronizationMode, ChartSynchronizationOptions, ChartTitleTemplateContext, ChartTooltipPointContext, ChartTooltipTemplateContext, ChartTreemapLabelTemplateContext, ChartTreemapNodeVisibilityEvent, ChartTreemapSort, ChartTreemapTile, ChartValueAccessor, ChartValueFormatter, ChartViewportAxisRef, ChartViewportChangeEvent, ChartViewportChangePhase, ChartViewportChangeSource, ChartViewportConstraint, ChartViewportLinkGroup, ChartViewportLinkMode, ChartViewportState, ChartViewportSynchronizationOptions, ChartViewportWindow, ChartWaterfallDatumKind, ChartWaterfallLabelTemplateContext, ChartWaterfallPointContext, ChartWaterfallPointValue, ChartWaterfallVisualKind, ChartXAxisPosition, ChartXAxisType, ChartYAxisPosition, ChartYAxisType, HeatmapCellClickEvent, HeatmapColorStop };
|
|
@@ -47,9 +47,11 @@ interface SegmentedItemTemplateContext<T extends SegmentedValue = SegmentedValue
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
declare const segmentedContainerThemeVariants: (props?: ({
|
|
50
|
+
alignment?: "start" | "center" | "end" | "stretch" | null | undefined;
|
|
50
51
|
rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
51
52
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
52
53
|
declare const segmentedOptionThemeVariants: (props?: ({
|
|
54
|
+
alignment?: "start" | "center" | "end" | "stretch" | null | undefined;
|
|
53
55
|
rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
|
54
56
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
55
57
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -75,6 +77,11 @@ declare class SegmentedComponent<T extends SegmentedValue = SegmentedValue> impl
|
|
|
75
77
|
protected readonly optionElements: _angular_core.Signal<readonly ElementRef<HTMLLabelElement>[]>;
|
|
76
78
|
protected readonly selectedIndex: _angular_core.Signal<number>;
|
|
77
79
|
protected readonly selectedOptionDisabled: _angular_core.Signal<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* @description Controls the alignment of the items inside the segmented component.
|
|
82
|
+
* @default "stretch"
|
|
83
|
+
*/
|
|
84
|
+
readonly alignment: _angular_core.InputSignal<"start" | "center" | "end" | "stretch" | null | undefined>;
|
|
78
85
|
/**
|
|
79
86
|
* @description Controls whether the selection indicator animates between selected options.
|
|
80
87
|
* When false, selection changes are applied immediately without transition.
|
|
@@ -144,7 +151,7 @@ declare class SegmentedComponent<T extends SegmentedValue = SegmentedValue> impl
|
|
|
144
151
|
private setupResizeObserver;
|
|
145
152
|
private updateIndicatorGeometry;
|
|
146
153
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SegmentedComponent<any>, never>;
|
|
147
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedComponent<any>, "mona-segmented", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "touch": "touch"; "value": "valueChange"; }, ["itemTemplate"], never, true, never>;
|
|
154
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SegmentedComponent<any>, "mona-segmented", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": true; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "touch": "touch"; "value": "valueChange"; }, ["itemTemplate"], never, true, never>;
|
|
148
155
|
}
|
|
149
156
|
|
|
150
157
|
/**
|