@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/grid/src/lib/llms.txt
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
# KptGrid / KptCol / KptFlex (@konce-pt/angular/grid)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
custom properties
|
|
5
|
-
|
|
3
|
+
Angular ergonomics over the `@konce-pt/grid` stylesheet. The directives set nothing but
|
|
4
|
+
inline custom properties — they neither add nor remove classes, and the layout is computed by
|
|
5
|
+
the native CSS engine.
|
|
6
6
|
|
|
7
7
|
Import: `import { KptGrid, KptCol, KptFlex } from '@konce-pt/angular/grid';`
|
|
8
|
-
|
|
8
|
+
Shorthand: `import { KPT_GRID_IMPORTS } from '@konce-pt/angular/grid';` → `imports: [...KPT_GRID_IMPORTS]`
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Requires the stylesheet: `import '@konce-pt/grid';` (Angular CLI: `angular.json` → `styles[]`).
|
|
11
11
|
|
|
12
|
-
##
|
|
12
|
+
## Breakpoints (mobile-first)
|
|
13
13
|
`sm` >= 640px, `md` >= 768px, `lg` >= 1024px, `xl` >= 1280px, `2xl` >= 1536px.
|
|
14
|
-
|
|
15
|
-
`[kptCol]="12" [kptColLg]="5"`
|
|
14
|
+
A value applies from its breakpoint upward until the next one overrides it:
|
|
15
|
+
`[kptCol]="12" [kptColLg]="5"` gives 12 on mobile, `sm` and `md`, and 5 only from `lg` up.
|
|
16
16
|
|
|
17
|
-
## KptGrid —
|
|
18
|
-
|
|
19
|
-
- `columns`: number —
|
|
17
|
+
## KptGrid — selector `[kptGrid]`, `kpt-grid`
|
|
18
|
+
Host class: `kpt-grid`.
|
|
19
|
+
- `columns`: number — the column count (12 by default, from CSS). Variants: `columnsSm`,
|
|
20
20
|
`columnsMd`, `columnsLg`, `columnsXl`, `columns2xl`.
|
|
21
|
-
- `gap`: string —
|
|
22
|
-
- `gapX`, `gapY`: string —
|
|
23
|
-
- `container`: boolean —
|
|
24
|
-
|
|
25
|
-
## KptCol —
|
|
26
|
-
- `kptCol`: number | string —
|
|
27
|
-
- `kptColSm`, `kptColMd`, `kptColLg`, `kptColXl`, `kptCol2xl` —
|
|
28
|
-
- `kptColStart`: number —
|
|
29
|
-
- `kptColOrder`: number —
|
|
30
|
-
|
|
21
|
+
- `gap`: string — the gap on both axes, e.g. `'1.5rem'`, `'var(--kpt-space-6)'`.
|
|
22
|
+
- `gapX`, `gapY`: string — the gap on one axis, overriding `gap`.
|
|
23
|
+
- `container`: boolean — container query mode (see below).
|
|
24
|
+
|
|
25
|
+
## KptCol — selector `[kptCol]`, `[kptColSm]` … `[kptColSelf]`
|
|
26
|
+
- `kptCol`: number | string — the span, the mobile-first base.
|
|
27
|
+
- `kptColSm`, `kptColMd`, `kptColLg`, `kptColXl`, `kptCol2xl` — per-breakpoint overrides.
|
|
28
|
+
- `kptColStart`: number — the grid line the column starts at (1-based); this is how offsets are done.
|
|
29
|
+
- `kptColOrder`: number — the visual order. It does not change the DOM: screen readers
|
|
30
|
+
and keyboard navigation follow the DOM, so do not use it to move interactive content around.
|
|
31
31
|
- `kptColSelf`: string — `align-self` (`start`, `end`, `center`, `stretch`, `baseline`).
|
|
32
32
|
|
|
33
|
-
## KptFlex —
|
|
34
|
-
|
|
33
|
+
## KptFlex — selector `[kptFlex]`
|
|
34
|
+
Host class: `kpt-flex`. The same variables and breakpoints as the grid, in one dimension.
|
|
35
35
|
- `direction`: 'row' | 'row-reverse' | 'column' | 'column-reverse' (+ `directionMd`, `directionLg`)
|
|
36
36
|
- `wrap`: 'wrap' | 'nowrap' | 'wrap-reverse'
|
|
37
37
|
- `justify`, `align` (+ `justifyMd`, `alignMd`): `start` | `end` | `center` | `stretch` |
|
|
@@ -39,53 +39,53 @@ Klasa hosta: `kpt-flex`. Te same zmienne i breakpointy co grid, jeden wymiar.
|
|
|
39
39
|
- `gap`, `gapX`, `gapY`: string
|
|
40
40
|
- `container`: boolean
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
Values with no matching input are supplied with utility classes from `@konce-pt/grid`:
|
|
43
43
|
`kpt-grow-1`, `kpt-shrink-0`, `kpt-order-first`, `kpt-self-end`, `kpt-gap-6`.
|
|
44
44
|
|
|
45
|
-
##
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
## Container mode (`container`)
|
|
46
|
+
The children's spans react to the width of THIS grid instead of the window — a card in a narrow
|
|
47
|
+
sidebar lays itself out in a single column even though the viewport is wide.
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
start, order, self);
|
|
49
|
+
A CSS limitation, not a package one: `@container` queries the nearest ancestor container,
|
|
50
|
+
so an element cannot query its own. What is responsive are the child's variables (span,
|
|
51
|
+
start, order, self); the column count and the gaps still follow the viewport.
|
|
52
52
|
|
|
53
|
-
##
|
|
53
|
+
## Examples
|
|
54
54
|
<div kptGrid>
|
|
55
|
-
<div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">
|
|
56
|
-
<div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">
|
|
57
|
-
<div [kptCol]="12" [kptColMd]="4">
|
|
55
|
+
<div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">Card</div>
|
|
56
|
+
<div [kptCol]="12" [kptColSm]="6" [kptColMd]="4">Card</div>
|
|
57
|
+
<div [kptCol]="12" [kptColMd]="4">Card</div>
|
|
58
58
|
</div>
|
|
59
59
|
|
|
60
|
-
<!-- 18
|
|
60
|
+
<!-- 18 columns with no SCSS recompilation -->
|
|
61
61
|
<div kptGrid [columns]="18" gap="1.5rem">
|
|
62
62
|
<div [kptCol]="18" [kptColLg]="5">Sidebar</div>
|
|
63
|
-
<div [kptCol]="18" [kptColLg]="13">
|
|
63
|
+
<div [kptCol]="18" [kptColLg]="13">Content</div>
|
|
64
64
|
</div>
|
|
65
65
|
|
|
66
|
-
<!-- offset
|
|
66
|
+
<!-- an offset and a reordering on mobile -->
|
|
67
67
|
<div kptGrid>
|
|
68
68
|
<div [kptCol]="6" [kptColStart]="4">start 4, span 6</div>
|
|
69
|
-
<div [kptCol]="12" [kptColMd]="6" class="kpt-order-first kpt-order-md-none">
|
|
70
|
-
<div [kptCol]="12" [kptColMd]="6">
|
|
69
|
+
<div [kptCol]="12" [kptColMd]="6" class="kpt-order-first kpt-order-md-none">second in the DOM</div>
|
|
70
|
+
<div [kptCol]="12" [kptColMd]="6">first in the DOM</div>
|
|
71
71
|
</div>
|
|
72
72
|
|
|
73
73
|
<!-- flexbox -->
|
|
74
74
|
<div kptFlex direction="column" directionMd="row" justify="space-between" align="center" gap="1rem">
|
|
75
|
-
<span>
|
|
76
|
-
<span>
|
|
75
|
+
<span>Left</span>
|
|
76
|
+
<span>Right</span>
|
|
77
77
|
</div>
|
|
78
78
|
|
|
79
|
-
<!--
|
|
79
|
+
<!-- a form layout (a CSS preset, no classes on the children) -->
|
|
80
80
|
<form class="kpt-grid kpt-form-grid">
|
|
81
|
-
<kpt-form-field label="
|
|
82
|
-
<kpt-form-field label="
|
|
83
|
-
<kpt-form-field label="
|
|
81
|
+
<kpt-form-field label="First name"><kpt-input [(value)]="firstName" /></kpt-form-field>
|
|
82
|
+
<kpt-form-field label="Last name"><kpt-input [(value)]="lastName" /></kpt-form-field>
|
|
83
|
+
<kpt-form-field label="Notes" class="kpt-col-md-12"><kpt-input [(value)]="notes" /></kpt-form-field>
|
|
84
84
|
</form>
|
|
85
85
|
|
|
86
86
|
## Custom properties
|
|
87
|
-
|
|
87
|
+
The grid: `--kpt-grid-columns`, `--kpt-gap`, `--kpt-gap-x`, `--kpt-gap-y`,
|
|
88
88
|
`--kpt-justify`, `--kpt-align`, `--kpt-content`, `--kpt-flex-direction`, `--kpt-flex-wrap`.
|
|
89
|
-
|
|
89
|
+
The child: `--kpt-col`, `--kpt-col-start`, `--kpt-order`, `--kpt-self`, `--kpt-flex`,
|
|
90
90
|
`--kpt-grow`, `--kpt-shrink`.
|
|
91
|
-
|
|
91
|
+
Each one has per-breakpoint variants: `--kpt-col` → `--kpt-col-md`.
|