@konce-pt/angular 0.7.11 → 0.8.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/CHANGELOG.md +72 -0
- package/charts/src/lib/llms.txt +31 -30
- package/fesm2022/konce-pt-angular-charts.mjs +7 -498
- package/fesm2022/konce-pt-angular-charts.mjs.map +1 -1
- package/fesm2022/konce-pt-angular-icons.mjs +7 -5136
- package/fesm2022/konce-pt-angular-icons.mjs.map +1 -1
- package/fesm2022/konce-pt-angular-map.mjs +14 -1298
- package/fesm2022/konce-pt-angular-map.mjs.map +1 -1
- package/fesm2022/konce-pt-angular-roadmap.mjs +8 -1269
- package/fesm2022/konce-pt-angular-roadmap.mjs.map +1 -1
- package/fesm2022/konce-pt-angular.mjs +179 -1455
- package/fesm2022/konce-pt-angular.mjs.map +1 -1
- package/grid/src/lib/llms.txt +48 -48
- package/map/src/lib/llms.txt +447 -446
- package/package.json +9 -2
- package/roadmap/src/lib/llms.txt +75 -74
- package/src/lib/accordion/llms.txt +9 -9
- package/src/lib/alert/llms.txt +10 -10
- package/src/lib/app-shell/llms.txt +59 -59
- package/src/lib/auth/llms.txt +58 -58
- package/src/lib/autocomplete/llms.txt +8 -8
- package/src/lib/avatar/llms.txt +9 -9
- package/src/lib/avatar-group/llms.txt +8 -8
- package/src/lib/badge/llms.txt +9 -9
- package/src/lib/bottom-sheet/llms.txt +14 -14
- package/src/lib/breadcrumb/llms.txt +7 -7
- package/src/lib/breakpoint/llms.txt +21 -21
- package/src/lib/button/llms.txt +34 -34
- package/src/lib/button-group/llms.txt +5 -5
- package/src/lib/card/llms.txt +27 -27
- package/src/lib/carousel/llms.txt +11 -11
- package/src/lib/checkbox/llms.txt +7 -7
- package/src/lib/chip/llms.txt +6 -6
- package/src/lib/chips-input/llms.txt +9 -9
- package/src/lib/color-picker/llms.txt +7 -7
- package/src/lib/confirm/llms.txt +11 -11
- package/src/lib/context-menu/llms.txt +10 -10
- package/src/lib/data-table/llms.txt +170 -170
- package/src/lib/data-view/llms.txt +8 -8
- package/src/lib/date-range/llms.txt +25 -25
- package/src/lib/datepicker/llms.txt +52 -48
- package/src/lib/dialog/llms.txt +62 -62
- package/src/lib/divider/llms.txt +9 -9
- package/src/lib/drawer/llms.txt +18 -18
- package/src/lib/empty/llms.txt +9 -9
- package/src/lib/fab/llms.txt +12 -12
- package/src/lib/fieldset/llms.txt +9 -9
- package/src/lib/file-upload/llms.txt +10 -10
- package/src/lib/form-field/llms.txt +45 -45
- package/src/lib/galleria/llms.txt +7 -7
- package/src/lib/i18n/llms.txt +28 -22
- package/src/lib/icon/llms.txt +20 -20
- package/src/lib/icon-button/llms.txt +9 -8
- package/src/lib/image/llms.txt +9 -9
- package/src/lib/input/llms.txt +27 -27
- package/src/lib/input-mask/llms.txt +10 -10
- package/src/lib/input-number/llms.txt +34 -34
- package/src/lib/input-otp/llms.txt +11 -11
- package/src/lib/knob/llms.txt +14 -14
- package/src/lib/listbox/llms.txt +8 -8
- package/src/lib/megamenu/llms.txt +13 -13
- package/src/lib/menu/llms.txt +26 -26
- package/src/lib/menubar/llms.txt +10 -10
- package/src/lib/meter-group/llms.txt +8 -8
- package/src/lib/order-list/llms.txt +8 -8
- package/src/lib/paginator/llms.txt +12 -12
- package/src/lib/panel/llms.txt +12 -12
- package/src/lib/password/llms.txt +12 -12
- package/src/lib/pick-list/llms.txt +8 -8
- package/src/lib/popover/llms.txt +8 -8
- package/src/lib/progress/llms.txt +6 -6
- package/src/lib/radio-group/llms.txt +5 -5
- package/src/lib/rating/llms.txt +10 -6
- package/src/lib/rich-text/llms.txt +50 -50
- package/src/lib/scroll-top/llms.txt +7 -7
- package/src/lib/select/llms.txt +26 -26
- package/src/lib/sidenav/llms.txt +24 -24
- package/src/lib/skeleton/llms.txt +6 -6
- package/src/lib/slider/llms.txt +17 -17
- package/src/lib/speed-dial/llms.txt +7 -7
- package/src/lib/spinner/llms.txt +5 -5
- package/src/lib/split-button/llms.txt +15 -15
- package/src/lib/splitter/llms.txt +11 -11
- package/src/lib/stepper/llms.txt +10 -10
- package/src/lib/switch/llms.txt +10 -10
- package/src/lib/switch-group/llms.txt +16 -16
- package/src/lib/tabs/llms.txt +10 -10
- package/src/lib/textarea/llms.txt +5 -5
- package/src/lib/timeline/llms.txt +10 -10
- package/src/lib/toast/llms.txt +10 -10
- package/src/lib/toolbar/llms.txt +31 -31
- package/src/lib/tooltip/llms.txt +21 -21
- package/src/lib/tree/llms.txt +6 -6
- package/types/konce-pt-angular-charts.d.ts +10 -199
- package/types/konce-pt-angular-charts.d.ts.map +1 -1
- package/types/konce-pt-angular-icons.d.ts +2 -4
- package/types/konce-pt-angular-icons.d.ts.map +1 -1
- package/types/konce-pt-angular-map.d.ts +4 -609
- package/types/konce-pt-angular-map.d.ts.map +1 -1
- package/types/konce-pt-angular-roadmap.d.ts +6 -541
- package/types/konce-pt-angular-roadmap.d.ts.map +1 -1
- package/types/konce-pt-angular.d.ts +57 -529
- package/types/konce-pt-angular.d.ts.map +1 -1
package/src/lib/toolbar/llms.txt
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# KptToolbar (kpt-toolbar)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Import: `import { KptToolbar } from '@konce-pt/angular';`
|
|
5
|
-
|
|
6
|
-
##
|
|
7
|
-
`kpt-toolbar`
|
|
8
|
-
|
|
9
|
-
##
|
|
10
|
-
- `elevated`: boolean —
|
|
11
|
-
- `wrap`: boolean —
|
|
12
|
-
|
|
13
|
-
a
|
|
14
|
-
|
|
15
|
-
##
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
##
|
|
19
|
-
<kpt-toolbar elevated>
|
|
20
|
-
<strong>Koncept UI</strong>
|
|
21
|
-
<span kptToolbarSpacer></span>
|
|
22
|
-
<kpt-button variant="text">
|
|
23
|
-
</kpt-toolbar>
|
|
24
|
-
|
|
25
|
-
##
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
##
|
|
31
|
-
`--kpt-toolbar-{bg,fg,border,height,height-compact}`.
|
|
1
|
+
# KptToolbar (kpt-toolbar)
|
|
2
|
+
|
|
3
|
+
A top bar (toolbar) — a horizontal strip for application content.
|
|
4
|
+
Import: `import { KptToolbar } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Selector
|
|
7
|
+
`kpt-toolbar`
|
|
8
|
+
|
|
9
|
+
## Inputs
|
|
10
|
+
- `elevated`: boolean — a shadow under the bar
|
|
11
|
+
- `wrap`: boolean — lets the content wrap onto further rows. Optional, because
|
|
12
|
+
wrapping changes what `kptToolbarSpacer` does: in a single-row bar it pushes content apart,
|
|
13
|
+
while in a wrapping bar it can shove the remaining actions onto a new row.
|
|
14
|
+
|
|
15
|
+
## Spacer
|
|
16
|
+
An element carrying the `kptToolbarSpacer` attribute gets `flex: 1` and pushes the content apart.
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
<kpt-toolbar elevated>
|
|
20
|
+
<strong>Koncept UI</strong>
|
|
21
|
+
<span kptToolbarSpacer></span>
|
|
22
|
+
<kpt-button variant="text">Sign out</kpt-button>
|
|
23
|
+
</kpt-toolbar>
|
|
24
|
+
|
|
25
|
+
## Responsiveness
|
|
26
|
+
Below the `sm` breakpoint the bar shrinks itself to `--kpt-toolbar-height-compact` and narrower
|
|
27
|
+
margins. To hide parts of the content on a narrow screen use `@konce-pt/grid` classes,
|
|
28
|
+
e.g. `class="kpt-hide kpt-display-sm-inline"` on a subtitle.
|
|
29
|
+
|
|
30
|
+
## Tokens
|
|
31
|
+
`--kpt-toolbar-{bg,fg,border,height,height-compact}`.
|
package/src/lib/tooltip/llms.txt
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
# KptTooltip (kptTooltip)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
`body
|
|
3
|
+
A directive for a tooltip shown on hover/focus. Lightweight — the element is appended to
|
|
4
|
+
`body` and positioned relative to the host (works in zoneless mode).
|
|
5
5
|
Import: `import { KptTooltip } from '@konce-pt/angular';`
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Selector (attribute)
|
|
8
8
|
`[kptTooltip]`
|
|
9
9
|
|
|
10
|
-
##
|
|
11
|
-
- `kptTooltip`: string (
|
|
12
|
-
- `kptTooltipPosition`: 'top'|'bottom'|'left'|'right' (
|
|
13
|
-
- `kptTooltipOnlyWhenTruncated`: boolean (
|
|
14
|
-
|
|
10
|
+
## Inputs
|
|
11
|
+
- `kptTooltip`: string (the content, required) — empty content disables the tooltip
|
|
12
|
+
- `kptTooltipPosition`: 'top'|'bottom'|'left'|'right' (default 'top')
|
|
13
|
+
- `kptTooltipOnlyWhenTruncated`: boolean (default false) — shows the tooltip only when
|
|
14
|
+
the content does not fit the element (it is cut off with an ellipsis)
|
|
15
15
|
|
|
16
|
-
##
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
ellipsis`
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
## A tooltip only for truncated text
|
|
17
|
+
With `kptTooltipOnlyWhenTruncated` the tooltip does not repeat text that is visible anyway.
|
|
18
|
+
Overflow is measured on the host **and on its direct children** — `text-overflow:
|
|
19
|
+
ellipsis` usually sits on an inner element, and such an element shrinks to the available width
|
|
20
|
+
without stretching its parent, so measuring the host alone would detect nothing. When the text is deeper
|
|
21
|
+
than one level, put the directive on its direct parent.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
The check happens at hover (or focus) time, not at render — so the result is always
|
|
24
|
+
current after a change in width, zoom or layout, with no `ResizeObserver`.
|
|
25
25
|
|
|
26
26
|
<span class="ellipsis" [kptTooltip]="name" kptTooltipOnlyWhenTruncated>{{ name }}</span>
|
|
27
27
|
|
|
28
|
-
##
|
|
29
|
-
<kpt-button kptTooltip="
|
|
30
|
-
<span kptTooltip="
|
|
28
|
+
## Example
|
|
29
|
+
<kpt-button kptTooltip="Save changes" kptTooltipPosition="bottom">Save</kpt-button>
|
|
30
|
+
<span kptTooltip="More information">?</span>
|
|
31
31
|
|
|
32
|
-
##
|
|
33
|
-
|
|
32
|
+
## Tokens
|
|
33
|
+
Background `--kpt-color-on-surface`, text `--kpt-color-surface` (contrast in both themes), `--kpt-elevation-2`.
|
package/src/lib/tree/llms.txt
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# KptTree (kpt-tree)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A hierarchical tree (expanding, selection, icons). Rendered recursively.
|
|
4
4
|
Import: `import { KptTree, KptTreeNode } from '@konce-pt/angular';`
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## The node model (KptTreeNode)
|
|
7
7
|
`{ label: string; value?: T; icon?: string; children?: KptTreeNode[]; expanded?: boolean; disabled?: boolean }`
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Inputs / outputs
|
|
10
10
|
- `nodes`: KptTreeNode[]; `selectable`: boolean
|
|
11
11
|
- `selected`: model<KptTreeNode|null>; `nodeClick`: output<KptTreeNode>
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Example
|
|
14
14
|
<kpt-tree [nodes]="tree" selectable [(selected)]="node" (nodeClick)="open($event)" />
|
|
15
15
|
|
|
16
|
-
##
|
|
17
|
-
|
|
16
|
+
## Tokens
|
|
17
|
+
Row hover `--kpt-color-surface-variant`; the selected row `--kpt-color-primary`.
|
|
@@ -1,110 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _konce_pt_chart from '@konce-pt/chart';
|
|
2
|
+
import { KptChartConfig, KptAnimationOptions, KptAlign } from '@konce-pt/chart';
|
|
3
|
+
export { KPT_CHART_PALETTE, KptAlign, KptAnimationOptions, KptBarOrientation, KptChartConfig, KptChartSeries, KptChartType, KptFont, KptLegendOptions, KptLegendPosition, KptLegendTitle, KptLineInterpolation, KptPadding, KptPointStyle, KptTitleOptions, KptTooltipContext, KptTooltipOptions, areaPath, barLayout, linePath, niceScale, pieSlices, polarSlices, radarGrid, radarPoints, seriesColor } from '@konce-pt/chart';
|
|
2
4
|
import * as _angular_core from '@angular/core';
|
|
3
5
|
|
|
4
|
-
type KptChartType = 'line' | 'bar' | 'pie' | 'doughnut' | 'polarArea' | 'radar';
|
|
5
|
-
/** Tryb interpolacji linii dla wykresu liniowego. */
|
|
6
|
-
type KptLineInterpolation = 'linear' | 'cubic' | 'cubic-monotonic';
|
|
7
|
-
/** Orientacja słupków. */
|
|
8
|
-
type KptBarOrientation = 'vertical' | 'horizontal';
|
|
9
|
-
/** Pojedyncza seria danych. Kolejność wartości odpowiada `labels`. */
|
|
10
|
-
interface KptChartSeries {
|
|
11
|
-
/** Nazwa serii (legenda, tooltip). */
|
|
12
|
-
name: string;
|
|
13
|
-
/** Wartości; długość zwykle równa liczbie etykiet. */
|
|
14
|
-
data: number[];
|
|
15
|
-
/** Kolor (CSS). Domyślnie z palety tokenów. */
|
|
16
|
-
color?: string;
|
|
17
|
-
}
|
|
18
|
-
type KptLegendPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
19
|
-
type KptAlign = 'start' | 'center' | 'end';
|
|
20
|
-
type KptPointStyle = 'circle' | 'rect' | 'rectRot' | 'triangle' | 'line';
|
|
21
|
-
interface KptLegendTitle {
|
|
22
|
-
display?: boolean;
|
|
23
|
-
text?: string;
|
|
24
|
-
position?: KptAlign;
|
|
25
|
-
}
|
|
26
|
-
interface KptLegendOptions {
|
|
27
|
-
display?: boolean;
|
|
28
|
-
position?: KptLegendPosition;
|
|
29
|
-
align?: KptAlign;
|
|
30
|
-
pointStyle?: KptPointStyle;
|
|
31
|
-
title?: KptLegendTitle;
|
|
32
|
-
}
|
|
33
|
-
interface KptFont {
|
|
34
|
-
family?: string;
|
|
35
|
-
size?: number;
|
|
36
|
-
weight?: string | number;
|
|
37
|
-
}
|
|
38
|
-
interface KptPadding {
|
|
39
|
-
top?: number;
|
|
40
|
-
bottom?: number;
|
|
41
|
-
}
|
|
42
|
-
interface KptTitleOptions {
|
|
43
|
-
display?: boolean;
|
|
44
|
-
text?: string;
|
|
45
|
-
align?: KptAlign;
|
|
46
|
-
color?: string;
|
|
47
|
-
font?: KptFont;
|
|
48
|
-
padding?: KptPadding;
|
|
49
|
-
}
|
|
50
|
-
/** Kontekst przekazywany do formatera tooltipa. */
|
|
51
|
-
interface KptTooltipContext {
|
|
52
|
-
series: string;
|
|
53
|
-
label: string;
|
|
54
|
-
value: number;
|
|
55
|
-
}
|
|
56
|
-
interface KptTooltipOptions {
|
|
57
|
-
enabled?: boolean;
|
|
58
|
-
format?: (ctx: KptTooltipContext) => string;
|
|
59
|
-
}
|
|
60
|
-
interface KptAnimationOptions {
|
|
61
|
-
enabled?: boolean;
|
|
62
|
-
/** Czas trwania w ms (domyślnie 400). */
|
|
63
|
-
duration?: number;
|
|
64
|
-
/** Opóźnienie startu w ms (domyślnie 0). */
|
|
65
|
-
delay?: number;
|
|
66
|
-
/** Przesunięcie kolejnych elementów w ms (`delay = index * stagger`). */
|
|
67
|
-
stagger?: number;
|
|
68
|
-
}
|
|
69
|
-
/** Pełna konfiguracja wykresu. Jeden kształt dla wszystkich typów. */
|
|
70
|
-
interface KptChartConfig {
|
|
71
|
-
type: KptChartType;
|
|
72
|
-
/** Etykiety osi kategorii / wycinków. */
|
|
73
|
-
labels: string[];
|
|
74
|
-
series: KptChartSeries[];
|
|
75
|
-
/** Bar: orientacja słupków (domyślnie 'vertical'). */
|
|
76
|
-
orientation?: KptBarOrientation;
|
|
77
|
-
/** Line: tryb interpolacji (domyślnie 'linear'). */
|
|
78
|
-
interpolation?: KptLineInterpolation;
|
|
79
|
-
/** Line: wypełnienie obszaru pod linią. */
|
|
80
|
-
area?: boolean;
|
|
81
|
-
/** Line: punkty danych widoczne (domyślnie true). */
|
|
82
|
-
points?: boolean;
|
|
83
|
-
/** Line: pionowa prowadnica + podświetlona etykieta osi X przy hoverze punktu. */
|
|
84
|
-
crosshair?: boolean;
|
|
85
|
-
/** Doughnut/PolarArea/Radar: promień wewnętrzny 0..1 (doughnut, domyślnie 0.6). */
|
|
86
|
-
innerRadius?: number;
|
|
87
|
-
/** Bar: promień zaokrąglenia rogów w px (domyślnie 4). */
|
|
88
|
-
borderRadius?: number;
|
|
89
|
-
animation?: KptAnimationOptions;
|
|
90
|
-
legend?: KptLegendOptions;
|
|
91
|
-
title?: KptTitleOptions;
|
|
92
|
-
subtitle?: KptTitleOptions;
|
|
93
|
-
tooltip?: KptTooltipOptions;
|
|
94
|
-
}
|
|
95
|
-
/** Punkt w układzie SVG. */
|
|
96
|
-
interface KptPoint {
|
|
97
|
-
x: number;
|
|
98
|
-
y: number;
|
|
99
|
-
}
|
|
100
|
-
/** Prostokąt obszaru rysowania (plot area). */
|
|
101
|
-
interface KptRect {
|
|
102
|
-
x: number;
|
|
103
|
-
y: number;
|
|
104
|
-
width: number;
|
|
105
|
-
height: number;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
6
|
interface KptChartLegendItem {
|
|
109
7
|
key: string;
|
|
110
8
|
name: string;
|
|
@@ -224,17 +122,17 @@ declare class KptChart {
|
|
|
224
122
|
protected readonly tooltip: _angular_core.WritableSignal<KptChartTooltipState | null>;
|
|
225
123
|
/** Indeks kategorii pod kursorem (dla prowadnicy crosshair w wykresie liniowym). */
|
|
226
124
|
protected readonly activeIndex: _angular_core.WritableSignal<number | null>;
|
|
227
|
-
protected readonly type: _angular_core.Signal<
|
|
125
|
+
protected readonly type: _angular_core.Signal<_konce_pt_chart.KptChartType>;
|
|
228
126
|
protected readonly anim: _angular_core.Signal<Required<KptAnimationOptions>>;
|
|
229
127
|
protected readonly legendOpts: _angular_core.Signal<{
|
|
230
128
|
display: boolean;
|
|
231
|
-
position:
|
|
129
|
+
position: _konce_pt_chart.KptLegendPosition;
|
|
232
130
|
align: KptAlign;
|
|
233
|
-
pointStyle:
|
|
234
|
-
title:
|
|
131
|
+
pointStyle: _konce_pt_chart.KptPointStyle;
|
|
132
|
+
title: _konce_pt_chart.KptLegendTitle | undefined;
|
|
235
133
|
}>;
|
|
236
|
-
protected readonly titleOpts: _angular_core.Signal<
|
|
237
|
-
protected readonly subtitleOpts: _angular_core.Signal<
|
|
134
|
+
protected readonly titleOpts: _angular_core.Signal<_konce_pt_chart.KptTitleOptions | undefined>;
|
|
135
|
+
protected readonly subtitleOpts: _angular_core.Signal<_konce_pt_chart.KptTitleOptions | undefined>;
|
|
238
136
|
protected readonly titleStyle: _angular_core.Signal<string>;
|
|
239
137
|
protected readonly subtitleStyle: _angular_core.Signal<string>;
|
|
240
138
|
protected readonly legendItems: _angular_core.Signal<KptChartLegendItem[]>;
|
|
@@ -266,92 +164,5 @@ declare class KptChart {
|
|
|
266
164
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KptChart, "kpt-chart", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
267
165
|
}
|
|
268
166
|
|
|
269
|
-
|
|
270
|
-
min: number;
|
|
271
|
-
max: number;
|
|
272
|
-
step: number;
|
|
273
|
-
ticks: number[];
|
|
274
|
-
}
|
|
275
|
-
/**
|
|
276
|
-
* „Ładna" skala obejmująca [dataMin, dataMax] z ~`maxTicks` podziałkami.
|
|
277
|
-
* Wynikowy zakres jest rozszerzony do równych kroków; zawsze zawiera 0,
|
|
278
|
-
* gdy dane są jednoznakowe (typowe dla słupków/linii wartościowych).
|
|
279
|
-
*/
|
|
280
|
-
declare function niceScale(dataMin: number, dataMax: number, maxTicks?: number): NiceScale;
|
|
281
|
-
|
|
282
|
-
/** Ścieżka linii dla wybranego trybu interpolacji. */
|
|
283
|
-
declare function linePath(points: KptPoint[], mode?: KptLineInterpolation): string;
|
|
284
|
-
/** Ścieżka obszaru pod linią (domknięta do `baselineY`). */
|
|
285
|
-
declare function areaPath(points: KptPoint[], baselineY: number, mode?: KptLineInterpolation): string;
|
|
286
|
-
|
|
287
|
-
interface BarGeom {
|
|
288
|
-
rect: KptRect;
|
|
289
|
-
/** Ścieżka słupka z zaokrąglonymi rogami „od strony wzrostu". */
|
|
290
|
-
path: string;
|
|
291
|
-
seriesIndex: number;
|
|
292
|
-
categoryIndex: number;
|
|
293
|
-
value: number;
|
|
294
|
-
}
|
|
295
|
-
interface BarLayout {
|
|
296
|
-
bars: BarGeom[];
|
|
297
|
-
/** Podziałki osi wartości (wartość → współrzędna). */
|
|
298
|
-
ticks: {
|
|
299
|
-
value: number;
|
|
300
|
-
pos: number;
|
|
301
|
-
}[];
|
|
302
|
-
/** Współrzędna linii bazowej (0). */
|
|
303
|
-
baseline: number;
|
|
304
|
-
scale: ReturnType<typeof niceScale>;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Wylicza słupki dla obszaru `plot`.
|
|
308
|
-
* @param seriesData wartości[serie][kategorie]
|
|
309
|
-
* @param plot obszar rysowania {x,y,width,height}
|
|
310
|
-
* @param orientation pionowa (rośnie w górę) lub pozioma (rośnie w prawo)
|
|
311
|
-
* @param borderRadius promień zaokrąglenia w px
|
|
312
|
-
*/
|
|
313
|
-
declare function barLayout(seriesData: number[][], categoryCount: number, plot: KptRect, orientation: KptBarOrientation, borderRadius: number): BarLayout;
|
|
314
|
-
|
|
315
|
-
interface ArcSlice {
|
|
316
|
-
path: string;
|
|
317
|
-
/** Kąt środka wycinka (do pozycjonowania etykiet/tooltipa). */
|
|
318
|
-
midAngle: number;
|
|
319
|
-
startAngle: number;
|
|
320
|
-
endAngle: number;
|
|
321
|
-
value: number;
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Wycinki pie/doughnut: kąt proporcjonalny do wartości (Σ = 2π).
|
|
325
|
-
* `innerRadius` w px (0 dla pie).
|
|
326
|
-
*/
|
|
327
|
-
declare function pieSlices(values: number[], cx: number, cy: number, outerRadius: number, innerRadius?: number): ArcSlice[];
|
|
328
|
-
/**
|
|
329
|
-
* Wycinki polar area: równy kąt (2π/N), promień proporcjonalny do wartości.
|
|
330
|
-
* `maxValue` skaluje promień do `outerRadius`.
|
|
331
|
-
*/
|
|
332
|
-
declare function polarSlices(values: number[], cx: number, cy: number, outerRadius: number, maxValue?: number): ArcSlice[];
|
|
333
|
-
|
|
334
|
-
interface RadarAxis {
|
|
335
|
-
/** Punkt na obwodzie (koniec osi). */
|
|
336
|
-
end: KptPoint;
|
|
337
|
-
angle: number;
|
|
338
|
-
labelIndex: number;
|
|
339
|
-
}
|
|
340
|
-
interface RadarGrid {
|
|
341
|
-
/** Poziomy siatki (pierścienie) jako ścieżki wielokątów. */
|
|
342
|
-
rings: string[];
|
|
343
|
-
axes: RadarAxis[];
|
|
344
|
-
}
|
|
345
|
-
/** Siatka radaru: `levels` koncentrycznych wielokątów + osie do etykiet. */
|
|
346
|
-
declare function radarGrid(count: number, cx: number, cy: number, radius: number, levels?: number): RadarGrid;
|
|
347
|
-
/** Punkty wielokąta serii (wartość → promień, skalowane do `maxValue`). */
|
|
348
|
-
declare function radarPoints(values: number[], cx: number, cy: number, radius: number, maxValue: number): KptPoint[];
|
|
349
|
-
|
|
350
|
-
/** Kolejność kolorów dla kolejnych serii / wycinków. */
|
|
351
|
-
declare const KPT_CHART_PALETTE: readonly string[];
|
|
352
|
-
/** Kolor serii/wycinka: jawny z danych albo z palety (cyklicznie). */
|
|
353
|
-
declare function seriesColor(explicit: string | undefined, index: number, palette?: readonly string[]): string;
|
|
354
|
-
|
|
355
|
-
export { KPT_CHART_PALETTE, KptChart, areaPath, barLayout, linePath, niceScale, pieSlices, polarSlices, radarGrid, radarPoints, seriesColor };
|
|
356
|
-
export type { KptAlign, KptAnimationOptions, KptBarOrientation, KptChartConfig, KptChartSeries, KptChartType, KptFont, KptLegendOptions, KptLegendPosition, KptLegendTitle, KptLineInterpolation, KptPadding, KptPointStyle, KptTitleOptions, KptTooltipContext, KptTooltipOptions };
|
|
167
|
+
export { KptChart };
|
|
357
168
|
//# sourceMappingURL=konce-pt-angular-charts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"konce-pt-angular-charts.d.ts","sources":["../../charts/src/
|
|
1
|
+
{"version":3,"file":"konce-pt-angular-charts.d.ts","sources":["../../charts/src/lib/chart-legend.component.ts","../../charts/src/lib/chart-tooltip.component.ts","../../charts/src/lib/chart.component.ts"],"mappings":";;;;;UAGiB,kBAAkB;;;;;AAKlC;;UCNgB,kBAAkB;;;;AAIlC;UAEgB,oBAAoB;;;;;;UAM7B,kBAAkB;AACzB;;ACYD,UAAU,SAAS;;;;AAIjB;AACD;AACD,UAAU,QAAQ;;;;;AAKjB;AACD,UAAU,SAAS;;;;;AAKlB;AACD,UAAU,YAAY;;;;;AAKpB;YACQ,SAAS;AAClB;AACD,UAAU,MAAM;AACd;;;;;;YACQ,YAAY;UACd,QAAQ;iBACD,SAAS;eACX,SAAS;;AAErB;AACD,UAAU,KAAK;AACb;AACA;;;;;;;;;;AAAyI;UACnI,QAAQ;iBACD,SAAS;eACX,SAAS;AACrB;AACD,UAAU,OAAO;;;;;;;;AAQhB;AACD,UAAU,aAAa;;;;;YAKb,SAAS;AAClB;AACD,UAAU,OAAO;;eAEJ,QAAQ;gBACP,SAAS;YACb,aAAa;AACtB;AAKD;;;;;;;;AAQG;AACH,cAea,QAAQ;qBACJ,aAAA,CAAA,WAAA,CAAA,cAAA;;oBAED,aAAA,CAAA,WAAA;;qBAEC,aAAA,CAAA,WAAA;AAGf,+BAAyB,aAAA,CAAA,cAAA,CAAA,WAAA;AACzB,oCAA8B,aAAA,CAAA,cAAA;AAC9B,gCAA0B,aAAA,CAAA,cAAA,CAAA,oBAAA;;AAE1B,oCAA8B,aAAA,CAAA,cAAA;AAG9B,6BAAuB,aAAA,CAAA,MAAA,CAAA,eAAA,CAAA,YAAA;AACvB,6BAAuB,aAAA,CAAA,MAAA,CAAA,QAAA,CAAA,mBAAA;mCAIM,aAAA,CAAA,MAAA;;;;;;AAS1B;AACH,kCAA4B,aAAA,CAAA,MAAA,CAAA,eAAA,CAAA,eAAA;AAC5B,qCAA+B,aAAA,CAAA,MAAA,CAAA,eAAA,CAAA,eAAA;AAE/B,mCAA6B,aAAA,CAAA,MAAA;AAC7B,sCAAgC,aAAA,CAAA,MAAA;AAGhC,oCAA8B,aAAA,CAAA,MAAA,CAAA,kBAAA;AAgB9B,+BAAyB,aAAA,CAAA,MAAA,CAAA,MAAA;AAuCzB,8BAAwB,aAAA,CAAA,MAAA,CAAA,KAAA;AAmDxB,8BAAwB,aAAA,CAAA,MAAA,CAAA,OAAA;AAuBxB,gCAA0B,aAAA,CAAA,MAAA,CAAA,OAAA;kCAmCE,aAAA,CAAA,MAAA;;;;;;;;;;;AAqBzB;AAGH;;;;AAqBA;;;AAYA;oDAlQW,QAAQ;sDAAR,QAAQ;AAsQpB;;;;","names":[]}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
export { KPT_TABLER_ICONS, KPT_TABLER_ICON_NAMES } from '@konce-pt/icons/tabler';
|
|
1
2
|
import { EnvironmentProviders } from '@angular/core';
|
|
2
3
|
|
|
3
|
-
declare const KPT_TABLER_ICONS: Record<string, string>;
|
|
4
|
-
declare const KPT_TABLER_ICON_NAMES: readonly string[];
|
|
5
|
-
|
|
6
4
|
/**
|
|
7
5
|
* Rejestruje pełny zestaw Tabler Icons (5130) w `KptIconRegistry`, dzięki czemu
|
|
8
6
|
* `kpt-icon` może użyć dowolnej ikony po nazwie.
|
|
@@ -15,5 +13,5 @@ declare const KPT_TABLER_ICON_NAMES: readonly string[];
|
|
|
15
13
|
*/
|
|
16
14
|
declare function provideKptTablerIcons(): EnvironmentProviders;
|
|
17
15
|
|
|
18
|
-
export {
|
|
16
|
+
export { provideKptTablerIcons };
|
|
19
17
|
//# sourceMappingURL=konce-pt-angular-icons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"konce-pt-angular-icons.d.ts","sources":["../../icons/src/
|
|
1
|
+
{"version":3,"file":"konce-pt-angular-icons.d.ts","sources":["../../icons/src/provider.ts"],"mappings":";;;AAIA;;;;;;;;;AASG;AACH,iBAAgB,qBAAqB,IAAI,oBAAoB;;;;","names":[]}
|