@konce-pt/angular 0.1.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/LICENSE +21 -0
- package/dist/fesm2022/konce-pt-angular-icons.mjs +5166 -0
- package/dist/fesm2022/konce-pt-angular-icons.mjs.map +1 -0
- package/dist/fesm2022/konce-pt-angular.mjs +5863 -0
- package/dist/fesm2022/konce-pt-angular.mjs.map +1 -0
- package/dist/package.json +47 -0
- package/dist/src/lib/accordion/llms.txt +18 -0
- package/dist/src/lib/alert/llms.txt +19 -0
- package/dist/src/lib/app-shell/llms.txt +29 -0
- package/dist/src/lib/autocomplete/llms.txt +16 -0
- package/dist/src/lib/avatar/llms.txt +15 -0
- package/dist/src/lib/avatar-group/llms.txt +15 -0
- package/dist/src/lib/badge/llms.txt +16 -0
- package/dist/src/lib/bottom-sheet/llms.txt +16 -0
- package/dist/src/lib/breadcrumb/llms.txt +12 -0
- package/dist/src/lib/button/llms.txt +35 -0
- package/dist/src/lib/button-group/llms.txt +14 -0
- package/dist/src/lib/card/llms.txt +24 -0
- package/dist/src/lib/carousel/llms.txt +24 -0
- package/dist/src/lib/checkbox/llms.txt +15 -0
- package/dist/src/lib/chip/llms.txt +14 -0
- package/dist/src/lib/chips-input/llms.txt +18 -0
- package/dist/src/lib/color-picker/llms.txt +18 -0
- package/dist/src/lib/confirm/llms.txt +21 -0
- package/dist/src/lib/context-menu/llms.txt +17 -0
- package/dist/src/lib/data-table/llms.txt +62 -0
- package/dist/src/lib/data-view/llms.txt +18 -0
- package/dist/src/lib/date-range/llms.txt +24 -0
- package/dist/src/lib/datepicker/llms.txt +17 -0
- package/dist/src/lib/dialog/llms.txt +27 -0
- package/dist/src/lib/divider/llms.txt +19 -0
- package/dist/src/lib/drawer/llms.txt +17 -0
- package/dist/src/lib/empty/llms.txt +17 -0
- package/dist/src/lib/fab/llms.txt +18 -0
- package/dist/src/lib/fieldset/llms.txt +15 -0
- package/dist/src/lib/file-upload/llms.txt +23 -0
- package/dist/src/lib/form-field/llms.txt +37 -0
- package/dist/src/lib/galleria/llms.txt +15 -0
- package/dist/src/lib/icon/llms.txt +34 -0
- package/dist/src/lib/icon-button/llms.txt +15 -0
- package/dist/src/lib/image/llms.txt +15 -0
- package/dist/src/lib/input/llms.txt +38 -0
- package/dist/src/lib/input-mask/llms.txt +20 -0
- package/dist/src/lib/input-number/llms.txt +17 -0
- package/dist/src/lib/input-otp/llms.txt +19 -0
- package/dist/src/lib/knob/llms.txt +20 -0
- package/dist/src/lib/listbox/llms.txt +17 -0
- package/dist/src/lib/megamenu/llms.txt +21 -0
- package/dist/src/lib/menu/llms.txt +17 -0
- package/dist/src/lib/menubar/llms.txt +19 -0
- package/dist/src/lib/meter-group/llms.txt +15 -0
- package/dist/src/lib/order-list/llms.txt +17 -0
- package/dist/src/lib/paginator/llms.txt +18 -0
- package/dist/src/lib/panel/llms.txt +18 -0
- package/dist/src/lib/password/llms.txt +20 -0
- package/dist/src/lib/pick-list/llms.txt +17 -0
- package/dist/src/lib/popover/llms.txt +17 -0
- package/dist/src/lib/progress/llms.txt +16 -0
- package/dist/src/lib/radio-group/llms.txt +15 -0
- package/dist/src/lib/rating/llms.txt +14 -0
- package/dist/src/lib/rich-text/llms.txt +16 -0
- package/dist/src/lib/scroll-top/llms.txt +15 -0
- package/dist/src/lib/select/llms.txt +22 -0
- package/dist/src/lib/sidenav/llms.txt +20 -0
- package/dist/src/lib/skeleton/llms.txt +14 -0
- package/dist/src/lib/slider/llms.txt +13 -0
- package/dist/src/lib/speed-dial/llms.txt +16 -0
- package/dist/src/lib/spinner/llms.txt +10 -0
- package/dist/src/lib/split-button/llms.txt +26 -0
- package/dist/src/lib/splitter/llms.txt +21 -0
- package/dist/src/lib/stepper/llms.txt +19 -0
- package/dist/src/lib/switch/llms.txt +13 -0
- package/dist/src/lib/tabs/llms.txt +19 -0
- package/dist/src/lib/textarea/llms.txt +14 -0
- package/dist/src/lib/timeline/llms.txt +22 -0
- package/dist/src/lib/toast/llms.txt +22 -0
- package/dist/src/lib/toolbar/llms.txt +23 -0
- package/dist/src/lib/tooltip/llms.txt +19 -0
- package/dist/src/lib/tree/llms.txt +17 -0
- package/dist/types/konce-pt-angular-icons.d.ts +18 -0
- package/dist/types/konce-pt-angular.d.ts +1858 -0
- package/package.json +61 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# KptSkeleton (kpt-skeleton)
|
|
2
|
+
|
|
3
|
+
Placeholder ładowania (shimmer). Import: `import { KptSkeleton } from '@konce-pt/angular';`
|
|
4
|
+
|
|
5
|
+
## Wejścia
|
|
6
|
+
- `variant`: 'text'|'circle'|'rect'; `width`: string; `height`: string; `lines`: number (dla text)
|
|
7
|
+
|
|
8
|
+
## Przykłady
|
|
9
|
+
<kpt-skeleton variant="text" [lines]="3" />
|
|
10
|
+
<kpt-skeleton variant="circle" width="3rem" height="3rem" />
|
|
11
|
+
<kpt-skeleton variant="rect" width="100%" height="8rem" />
|
|
12
|
+
|
|
13
|
+
## Tokeny
|
|
14
|
+
Gradient na `--kpt-color-surface-variant`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# KptSlider (kpt-slider)
|
|
2
|
+
|
|
3
|
+
Suwak wartości na Signal Forms. Import: `import { KptSlider } from '@konce-pt/angular';`
|
|
4
|
+
|
|
5
|
+
## Wejścia
|
|
6
|
+
- `value`: model<number>; `min`/`max`: number (zgodne z FormValueControl); `step`: number
|
|
7
|
+
- `showValue`: boolean; `disabled`/`invalid`/`touched`; `touch`
|
|
8
|
+
|
|
9
|
+
## Przykład
|
|
10
|
+
<kpt-slider [formField]="f.volume" [min]="0" [max]="100" [step]="5" showValue />
|
|
11
|
+
|
|
12
|
+
## Tokeny
|
|
13
|
+
Track wypełniany `--kpt-color-primary`, tło `--kpt-color-surface-variant`.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# KptSpeedDial (kpt-speed-dial)
|
|
2
|
+
|
|
3
|
+
Speed dial — FAB rozwijający zestaw akcji. Buduje na `kpt-fab`.
|
|
4
|
+
Import: `import { KptSpeedDial } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Wejścia / wyjścia
|
|
7
|
+
- `items`: KptMenuItem<T>[] — akcje (label, icon)
|
|
8
|
+
- `direction`: 'up' | 'down' | 'left' | 'right' (KptSpeedDialDirection)
|
|
9
|
+
- `icon`: string (domyślnie 'plus', obraca się o 45° po otwarciu); `ariaLabel`: string
|
|
10
|
+
- `select`: KptMenuItem<T>
|
|
11
|
+
|
|
12
|
+
## Przykład
|
|
13
|
+
<kpt-speed-dial [items]="actions" direction="up" (select)="onAction($event)" />
|
|
14
|
+
|
|
15
|
+
## Tokeny
|
|
16
|
+
FAB główny z `kpt-fab`; akcje `--kpt-color-surface-raised`, `--kpt-elevation-2`.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# KptSpinner (kpt-spinner)
|
|
2
|
+
|
|
3
|
+
Wskaźnik ładowania. Kolor z `currentColor`. Import: `import { KptSpinner } from '@konce-pt/angular';`
|
|
4
|
+
|
|
5
|
+
## Wejścia
|
|
6
|
+
- `size`: string (np. '2rem', domyślnie '1.5rem'); `label`: string (aria)
|
|
7
|
+
|
|
8
|
+
## Przykład
|
|
9
|
+
<kpt-spinner />
|
|
10
|
+
<kpt-spinner size="2rem" label="Wczytywanie…" />
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# KptSplitButton (kpt-split-button)
|
|
2
|
+
|
|
3
|
+
Przycisk dzielony — akcja główna + rozwijane menu akcji dodatkowych (CDK Overlay).
|
|
4
|
+
Import: `import { KptSplitButton } from '@konce-pt/angular';`
|
|
5
|
+
Wymaga `import '@angular/cdk/overlay-prebuilt.css';`
|
|
6
|
+
|
|
7
|
+
## Wejścia
|
|
8
|
+
- `variant`: KptButtonVariant (domyślnie 'filled')
|
|
9
|
+
- `items`: KptMenuItem<T>[] — { label, value?, icon?, danger?, disabled?, separator? }
|
|
10
|
+
- `disabled`: boolean
|
|
11
|
+
|
|
12
|
+
## Wyjścia
|
|
13
|
+
- `primaryClick`: void — klik przycisku głównego
|
|
14
|
+
- `select`: KptMenuItem<T> — wybór pozycji z menu
|
|
15
|
+
|
|
16
|
+
## Przykład
|
|
17
|
+
<kpt-split-button [items]="items" (primaryClick)="save()" (select)="onItem($event)">Zapisz</kpt-split-button>
|
|
18
|
+
|
|
19
|
+
items: KptMenuItem[] = [
|
|
20
|
+
{ label: 'Zapisz jako szkic', value: 'draft' },
|
|
21
|
+
{ separator: true },
|
|
22
|
+
{ label: 'Odrzuć', value: 'discard', danger: true },
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
## Tokeny
|
|
26
|
+
Kolory dziedziczone z przycisku; panel `--kpt-color-surface-raised`, `--kpt-elevation-3`.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# KptSplitter (kpt-splitter)
|
|
2
|
+
|
|
3
|
+
Dwa panele z przeciąganym uchwytem. Panele przez sloty `[kptSplitStart]` i `[kptSplitEnd]`.
|
|
4
|
+
Import: `import { KptSplitter } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Wejścia / model
|
|
7
|
+
- `orientation`: 'horizontal' | 'vertical' (KptSplitterOrientation)
|
|
8
|
+
- `startSize`: model<number> — rozmiar pierwszego panelu w % (dwukierunkowe)
|
|
9
|
+
- `minSize`: number (%) — minimalny rozmiar panelu
|
|
10
|
+
|
|
11
|
+
## Dostępność
|
|
12
|
+
Uchwyt `role="separator"`, strzałki zmieniają rozmiar; przeciąganie myszą.
|
|
13
|
+
|
|
14
|
+
## Przykład
|
|
15
|
+
<kpt-splitter orientation="horizontal" [(startSize)]="size">
|
|
16
|
+
<div kptSplitStart>Lewy</div>
|
|
17
|
+
<div kptSplitEnd>Prawy</div>
|
|
18
|
+
</kpt-splitter>
|
|
19
|
+
|
|
20
|
+
## Tokeny
|
|
21
|
+
Uchwyt `--kpt-color-border` → `--kpt-color-primary` (hover/focus).
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# KptStepper (kpt-stepper) + KptStep (kpt-step)
|
|
2
|
+
|
|
3
|
+
Kreator kroków. Nagłówek z numerowanymi krokami + aktywna treść (leniwa).
|
|
4
|
+
Import: `import { KptStepper, KptStep } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## KptStepper
|
|
7
|
+
- `activeIndex`: model<number>; metody publiczne: `next()`, `prev()`, `goTo(i)`
|
|
8
|
+
|
|
9
|
+
## KptStep
|
|
10
|
+
- `label`: string (wymagane)
|
|
11
|
+
|
|
12
|
+
## Przykład
|
|
13
|
+
<kpt-stepper #s [(activeIndex)]="step">
|
|
14
|
+
<kpt-step label="Konto">…<kpt-button (click)="s.next()">Dalej</kpt-button></kpt-step>
|
|
15
|
+
<kpt-step label="Profil">…</kpt-step>
|
|
16
|
+
</kpt-stepper>
|
|
17
|
+
|
|
18
|
+
## Tokeny
|
|
19
|
+
Aktywny/ukończony krok: `--kpt-color-primary` (marker, konektor).
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# KptSwitch (kpt-switch)
|
|
2
|
+
|
|
3
|
+
Przełącznik (toggle) na Signal Forms (`FormCheckboxControl`, model `checked`). `role="switch"`.
|
|
4
|
+
Import: `import { KptSwitch } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Użycie
|
|
7
|
+
<kpt-switch [formField]="f.notifications" label="Powiadomienia" />
|
|
8
|
+
|
|
9
|
+
## Wejścia
|
|
10
|
+
- `checked`: model<boolean>; `label`: string; `disabled`/`invalid`/`touched`: boolean; output `touch`.
|
|
11
|
+
|
|
12
|
+
## Tokeny
|
|
13
|
+
`--kpt-color-primary`, `--kpt-color-border-strong`, `--kpt-color-surface`, `--kpt-elevation-1`.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# KptTabs (kpt-tabs) + KptTab (kpt-tab)
|
|
2
|
+
|
|
3
|
+
Zakładki. Treść zakładek renderowana leniwie (tylko aktywna).
|
|
4
|
+
Import: `import { KptTabs, KptTab } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## KptTabs
|
|
7
|
+
- `activeIndex`: model<number> (dwukierunkowe)
|
|
8
|
+
|
|
9
|
+
## KptTab
|
|
10
|
+
- `label`: string (wymagane); `disabled`: boolean
|
|
11
|
+
|
|
12
|
+
## Przykład
|
|
13
|
+
<kpt-tabs [(activeIndex)]="tab">
|
|
14
|
+
<kpt-tab label="Ogólne">…</kpt-tab>
|
|
15
|
+
<kpt-tab label="Zaawansowane">…</kpt-tab>
|
|
16
|
+
</kpt-tabs>
|
|
17
|
+
|
|
18
|
+
## Tokeny
|
|
19
|
+
Aktywna zakładka: `--kpt-color-primary` (tekst + dolna krawędź).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# KptTextarea (kpt-textarea)
|
|
2
|
+
|
|
3
|
+
Pole wieloliniowe na Signal Forms, z opcjonalnym auto-resize.
|
|
4
|
+
Import: `import { KptTextarea } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Wejścia
|
|
7
|
+
- `value`: model<string>; `placeholder`: string; `rows`: number; `autoResize`: boolean
|
|
8
|
+
- `disabled`/`readonly`/`invalid`/`touched`: boolean; `touch`: output
|
|
9
|
+
|
|
10
|
+
## Przykład
|
|
11
|
+
<kpt-textarea [formField]="f.notes" placeholder="Notatki…" autoResize />
|
|
12
|
+
|
|
13
|
+
## Tokeny
|
|
14
|
+
`--kpt-form-field-*`.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# KptTimeline (kpt-timeline)
|
|
2
|
+
|
|
3
|
+
Oś czasu — pionowa lista zdarzeń z markerami. Import: `import { KptTimeline } from '@konce-pt/angular';`
|
|
4
|
+
|
|
5
|
+
## Wejścia
|
|
6
|
+
- `items`: KptTimelineItem[]
|
|
7
|
+
|
|
8
|
+
### KptTimelineItem
|
|
9
|
+
- `title`: string (wymagane)
|
|
10
|
+
- `description?`: string; `time?`: string; `icon?`: string (nazwa KptIconName)
|
|
11
|
+
- `variant?`: 'neutral' | 'primary' | 'success' | 'danger' | 'warning' | 'info' (domyślnie 'primary')
|
|
12
|
+
|
|
13
|
+
## Przykład
|
|
14
|
+
<kpt-timeline [items]="events" />
|
|
15
|
+
|
|
16
|
+
events: KptTimelineItem[] = [
|
|
17
|
+
{ title: 'Utworzono', time: '10:00', variant: 'success', icon: 'check' },
|
|
18
|
+
{ title: 'Wysłano', time: '12:30', variant: 'info' },
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
## Tokeny
|
|
22
|
+
Marker wg wariantu (`--kpt-color-{variant}`); linia `--kpt-color-border`.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# KptToast (kpt-toast-container + KptToastService)
|
|
2
|
+
|
|
3
|
+
Powiadomienia (toasty) sterowane serwisem. Kontener renderuje je fixed w rogu.
|
|
4
|
+
Import: `import { KptToastService, KptToastContainer } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Ustawienie
|
|
7
|
+
Umieść kontener raz w aplikacji: `<kpt-toast-container />`.
|
|
8
|
+
|
|
9
|
+
## Serwis (KptToastService, providedIn: root)
|
|
10
|
+
private toast = inject(KptToastService);
|
|
11
|
+
toast.success('Zapisano', { title: 'OK' });
|
|
12
|
+
toast.error('Błąd połączenia');
|
|
13
|
+
toast.info(msg, opts); toast.warning(msg, opts);
|
|
14
|
+
toast.show(msg, { variant, title, duration }); // duration ms, 0 = bez auto-zamykania
|
|
15
|
+
toast.dismiss(id); toast.clear();
|
|
16
|
+
|
|
17
|
+
## KptToast
|
|
18
|
+
`{ id, message, title?, variant: 'info'|'success'|'warning'|'danger', duration }`
|
|
19
|
+
|
|
20
|
+
## Tokeny
|
|
21
|
+
`--kpt-color-surface-raised`, `--kpt-elevation-3`, akcent `--kpt-color-{info,success,warning,danger}`,
|
|
22
|
+
pozycja `--kpt-z-toast`.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# KptToolbar (kpt-toolbar)
|
|
2
|
+
|
|
3
|
+
Górny pasek (toolbar) — pozioma belka na treść aplikacji.
|
|
4
|
+
Import: `import { KptToolbar } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Selektor
|
|
7
|
+
`kpt-toolbar`
|
|
8
|
+
|
|
9
|
+
## Wejścia
|
|
10
|
+
- `elevated`: boolean — cień pod paskiem
|
|
11
|
+
|
|
12
|
+
## Odstęp
|
|
13
|
+
Element z atrybutem `kptToolbarSpacer` dostaje `flex: 1` i rozpycha zawartość.
|
|
14
|
+
|
|
15
|
+
## Przykład
|
|
16
|
+
<kpt-toolbar elevated>
|
|
17
|
+
<strong>Koncept UI</strong>
|
|
18
|
+
<span kptToolbarSpacer></span>
|
|
19
|
+
<kpt-button variant="text">Wyloguj</kpt-button>
|
|
20
|
+
</kpt-toolbar>
|
|
21
|
+
|
|
22
|
+
## Tokeny
|
|
23
|
+
`--kpt-toolbar-{bg,fg,border,height}`.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# KptTooltip (kptTooltip)
|
|
2
|
+
|
|
3
|
+
Dyrektywa dymka podpowiedzi pokazywanego na hover/focus. Lekka — element dodawany do
|
|
4
|
+
`body`, pozycjonowany względem hosta (działa w trybie zoneless).
|
|
5
|
+
Import: `import { KptTooltip } from '@konce-pt/angular';`
|
|
6
|
+
|
|
7
|
+
## Selektor (atrybut)
|
|
8
|
+
`[kptTooltip]`
|
|
9
|
+
|
|
10
|
+
## Wejścia
|
|
11
|
+
- `kptTooltip`: string (treść, wymagane)
|
|
12
|
+
- `kptTooltipPosition`: 'top'|'bottom'|'left'|'right' (domyślnie 'top')
|
|
13
|
+
|
|
14
|
+
## Przykład
|
|
15
|
+
<kpt-button kptTooltip="Zapisz zmiany" kptTooltipPosition="bottom">Zapisz</kpt-button>
|
|
16
|
+
<span kptTooltip="Więcej informacji">?</span>
|
|
17
|
+
|
|
18
|
+
## Tokeny
|
|
19
|
+
Tło `--kpt-color-on-surface`, tekst `--kpt-color-surface` (kontrast w obu motywach), `--kpt-elevation-2`.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# KptTree (kpt-tree)
|
|
2
|
+
|
|
3
|
+
Drzewo hierarchiczne (rozwijanie, zaznaczanie, ikony). Rekurencyjny render.
|
|
4
|
+
Import: `import { KptTree, KptTreeNode } from '@konce-pt/angular';`
|
|
5
|
+
|
|
6
|
+
## Model węzła (KptTreeNode)
|
|
7
|
+
`{ label: string; value?: T; icon?: string; children?: KptTreeNode[]; expanded?: boolean; disabled?: boolean }`
|
|
8
|
+
|
|
9
|
+
## Wejścia / wyjścia
|
|
10
|
+
- `nodes`: KptTreeNode[]; `selectable`: boolean
|
|
11
|
+
- `selected`: model<KptTreeNode|null>; `nodeClick`: output<KptTreeNode>
|
|
12
|
+
|
|
13
|
+
## Przykład
|
|
14
|
+
<kpt-tree [nodes]="tree" selectable [(selected)]="node" (nodeClick)="open($event)" />
|
|
15
|
+
|
|
16
|
+
## Tokeny
|
|
17
|
+
Wiersz hover `--kpt-color-surface-variant`; zaznaczony `--kpt-color-primary`.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare const KPT_TABLER_ICONS: Record<string, string>;
|
|
4
|
+
declare const KPT_TABLER_ICON_NAMES: readonly string[];
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Rejestruje pełny zestaw Tabler Icons (5130) w `KptIconRegistry`, dzięki czemu
|
|
8
|
+
* `kpt-icon` może użyć dowolnej ikony po nazwie.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* // main.ts
|
|
12
|
+
* bootstrapApplication(App, {
|
|
13
|
+
* providers: [provideKptTablerIcons()],
|
|
14
|
+
* });
|
|
15
|
+
*/
|
|
16
|
+
declare function provideKptTablerIcons(): EnvironmentProviders;
|
|
17
|
+
|
|
18
|
+
export { KPT_TABLER_ICONS, KPT_TABLER_ICON_NAMES, provideKptTablerIcons };
|