@konce-pt/angular 0.1.0 → 0.1.2

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/README.md ADDED
@@ -0,0 +1,228 @@
1
+ <div align="center">
2
+
3
+ # Koncept UI — Angular
4
+
5
+ **Open-source Angular 22 component library built on Signals & Signal Forms.**
6
+ 70+ components, a feature-rich data table and app-shell layout — zoneless, standalone, fully tokenized.
7
+
8
+ [![npm version](https://img.shields.io/npm/v/@konce-pt/angular?color=%233b82f6&label=npm)](https://www.npmjs.com/package/@konce-pt/angular)
9
+ [![npm downloads](https://img.shields.io/npm/dm/@konce-pt/angular?color=%233b82f6)](https://www.npmjs.com/package/@konce-pt/angular)
10
+ [![minzipped size](https://img.shields.io/bundlephobia/minzip/@konce-pt/angular)](https://bundlephobia.com/package/@konce-pt/angular)
11
+ [![types](https://img.shields.io/npm/types/@konce-pt/angular)](https://www.npmjs.com/package/@konce-pt/angular)
12
+ [![license](https://img.shields.io/npm/l/@konce-pt/angular?color=%2310b981)](https://gitlab.com/konce-pt/koncept-ui/-/blob/main/LICENSE)
13
+
14
+ ![Angular](https://img.shields.io/badge/Angular-22-dd0031?logo=angular&logoColor=white)
15
+ ![Signal Forms](https://img.shields.io/badge/Signal%20Forms-native-3b82f6)
16
+ ![Zoneless](https://img.shields.io/badge/zoneless-ready-8b5cf6)
17
+ ![Components](https://img.shields.io/badge/components-70%2B-10b981)
18
+
19
+ </div>
20
+
21
+ ---
22
+
23
+ ## Why Koncept UI
24
+
25
+ **Koncept UI** is a free, MIT-licensed component library for **Angular 22**, built from the ground up on a modern signal-based foundation:
26
+
27
+ - ⚡ **Signals everywhere** — `input()`, `output()`, `model()`, `computed`. `OnPush` + **zoneless** by default.
28
+ - 📝 **Forms on Signal Forms only** — components implement `FormValueControl<T>` and bind through the `field`/`Control` directive. No `ControlValueAccessor`.
29
+ - 📊 **Flagship data table** — sorting, global filter, pagination, virtual scroll (5000+ rows), row selection, column reorder & freeze, CSV export, cell templates.
30
+ - 🎨 **100% tokenized** — every style is a `var(--kpt-*)` CSS custom property. Light/dark theme, neutral OKLCH palette. Swap the brand by swapping one token layer.
31
+ - 🧩 **Standalone components** — no NgModules. Import only what you use; tree-shakeable.
32
+ - ♿ **Built on Angular CDK** — overlays, a11y, focus management, virtual scrolling.
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ npm i @konce-pt/angular @konce-pt/tokens @konce-pt/styles
38
+ # or: pnpm add / yarn add
39
+ ```
40
+
41
+ Peer dependencies: `@angular/core`, `@angular/common`, `@angular/forms`, `@angular/cdk` (all `^22`).
42
+
43
+ ## Setup
44
+
45
+ ### Angular CLI (recommended)
46
+
47
+ Add the design tokens, base styles and — if you use overlay components — the CDK overlay CSS to the **`styles`** array in `angular.json`. **Order matters:** tokens first, your own `src/styles.scss` **last** so your overrides win the cascade.
48
+
49
+ ```jsonc
50
+ // angular.json → projects.<app>.architect.build.options
51
+ "styles": [
52
+ "node_modules/@konce-pt/tokens/dist/css/tokens.css",
53
+ "node_modules/@konce-pt/tokens/dist/css/tokens.dark.css",
54
+ "node_modules/@konce-pt/styles/index.css",
55
+ "node_modules/@angular/cdk/overlay-prebuilt.css",
56
+ "src/styles.scss"
57
+ ]
58
+ ```
59
+
60
+ Zoneless bootstrap (Angular 22) lives in your app config — no CSS imports in `main.ts`:
61
+
62
+ ```ts
63
+ import { provideZonelessChangeDetection } from '@angular/core';
64
+ // providers: [provideZonelessChangeDetection(), /* provideKptTablerIcons() */]
65
+ ```
66
+
67
+ Dark theme: set `<html data-theme="dark">` (or rely on `prefers-color-scheme`).
68
+
69
+ > **Why not `import '…css'` in `main.ts`?** Angular CLI (`@angular/build`) turns side-effect CSS imports into a separate stylesheet that isn't linked from `index.html`, so the app builds **without styles**. Use `angular.json → styles[]` instead.
70
+
71
+ ### Other bundlers (Vite / webpack)
72
+
73
+ Non-Angular-CLI bundlers can import the CSS directly (this is how the Koncept UI playground works):
74
+
75
+ ```ts
76
+ import '@konce-pt/tokens/css';
77
+ import '@konce-pt/tokens/css/dark';
78
+ import '@konce-pt/styles';
79
+ import '@angular/cdk/overlay-prebuilt.css';
80
+ ```
81
+
82
+ ## Quick start
83
+
84
+ A form powered by **Signal Forms** — no `ControlValueAccessor`, no `FormsModule`:
85
+
86
+ ```ts
87
+ import { Component, signal } from '@angular/core';
88
+ import { form, required, email, FormField } from '@angular/forms/signals';
89
+ import { KptFormField, KptInput, KptSelect, KptButton } from '@konce-pt/angular';
90
+
91
+ @Component({
92
+ selector: 'app-login',
93
+ imports: [FormField, KptFormField, KptInput, KptSelect, KptButton],
94
+ template: `
95
+ <kpt-form-field label="E-mail" required>
96
+ <kpt-input [formField]="loginForm.email" type="email" placeholder="you@company.com" />
97
+ </kpt-form-field>
98
+
99
+ <kpt-form-field label="Role">
100
+ <kpt-select [formField]="loginForm.role" [options]="roles" placeholder="Pick a role…" />
101
+ </kpt-form-field>
102
+
103
+ <kpt-button (click)="submit()">Sign in</kpt-button>
104
+ `,
105
+ })
106
+ export class Login {
107
+ readonly model = signal({ email: '', role: null as string | null });
108
+ readonly loginForm = form(this.model, (p) => {
109
+ required(p.email); email(p.email);
110
+ required(p.role);
111
+ });
112
+ readonly roles = [{ label: 'Admin', value: 'admin' }, { label: 'Editor', value: 'editor' }];
113
+
114
+ submit() { if (this.loginForm().valid()) console.log(this.model()); }
115
+ }
116
+ ```
117
+
118
+ Data table with sorting, filtering, pagination and a custom cell template:
119
+
120
+ ```html
121
+ <kpt-data-table [columns]="columns" [data]="users()" filterable exportable [pageSize]="10"
122
+ selectable="multiple" rowKey="id" [(selection)]="selected">
123
+ <ng-template kptCell="status" let-value="value">
124
+ <kpt-badge [value]="value" />
125
+ </ng-template>
126
+ </kpt-data-table>
127
+ ```
128
+
129
+ ## Components (70+)
130
+
131
+ | Category | Components |
132
+ | --- | --- |
133
+ | **Forms** (Signal Forms) | input, textarea, select, autocomplete, checkbox, switch, radio-group, slider, rating, datepicker, date-range, color-picker, file-upload, input-number, password, input-otp, chips-input, input-mask, listbox, knob, rich-text |
134
+ | **Buttons & actions** | button, icon-button, button-group, fab, split-button, speed-dial |
135
+ | **Layout** | app-shell, toolbar, sidenav, card, divider, panel, fieldset, splitter, scroll-top |
136
+ | **Navigation** | tabs, accordion, breadcrumb, stepper, menu, menubar, megamenu, context-menu |
137
+ | **Data** | data-table, paginator, tree, timeline, carousel, data-view, pick-list, order-list, galleria, meter-group |
138
+ | **Feedback & overlay** | alert, dialog, toast, tooltip, popover, drawer, bottom-sheet, confirm, badge, chip, avatar, avatar-group, spinner, progress, skeleton, empty, image |
139
+
140
+ Every component ships an `llms.txt` API sheet next to its source for quick reference.
141
+
142
+ ## Theming
143
+
144
+ All visuals are driven by `var(--kpt-*)` tokens (three tiers: primitives → semantic → component). Override them in your **`src/styles.scss`** (it's last in `styles[]`, so it wins the cascade):
145
+
146
+ ```scss
147
+ :root {
148
+ --kpt-color-primary: oklch(0.55 0.2 265); /* rebrand in one line */
149
+ --kpt-color-primary-hover: oklch(0.5 0.2 265);
150
+ }
151
+ :root[data-theme='dark'] {
152
+ --kpt-color-primary: oklch(0.7 0.16 265);
153
+ }
154
+ ```
155
+
156
+ **Common token names:** surfaces `--kpt-color-surface`, `--kpt-color-surface-sunken|raised|variant`; text `--kpt-color-on-surface`, `--kpt-color-on-surface-muted`; borders `--kpt-color-border`, `--kpt-color-border-strong`; radii `--kpt-radius-sm|md|lg|xl|full|none`; elevation `--kpt-elevation-1..4`. (There is **no** `--kpt-color-text`, `--kpt-color-bg` or `--kpt-shadow-*`.)
157
+
158
+ ## Icons
159
+
160
+ A built-in set is bundled. For the full **Tabler Icons** set (MIT), opt in via the secondary entry point:
161
+
162
+ ```ts
163
+ import { provideKptTablerIcons } from '@konce-pt/angular/icons';
164
+ // providers: [provideKptTablerIcons()]
165
+ ```
166
+
167
+ ## Documentation
168
+
169
+ - **Storybook** — interactive docs for every component.
170
+ - **Playground** — live demos with copyable HTML/TS/SCSS.
171
+ - **`llms.txt`** — LLM-friendly API sheets per component.
172
+ - Repository: [gitlab.com/konce-pt/koncept-ui](https://gitlab.com/konce-pt/koncept-ui)
173
+
174
+ ## License
175
+
176
+ [MIT](./LICENSE) © konce.pt
177
+
178
+ ---
179
+
180
+ <div align="center">
181
+
182
+ ## 🇵🇱 Wersja polska
183
+
184
+ </div>
185
+
186
+ **Koncept UI** to darmowa biblioteka komponentów na licencji **MIT** dla **Angulara 22**, zbudowana od podstaw na nowoczesnym fundamencie sygnałów.
187
+
188
+ - ⚡ **Sygnały wszędzie** — `input()`, `output()`, `model()`, `computed`. `OnPush` + **zoneless** domyślnie.
189
+ - 📝 **Formularze wyłącznie na Signal Forms** — komponenty implementują `FormValueControl<T>`, bez `ControlValueAccessor`.
190
+ - 📊 **Flagowa tabela danych** — sortowanie, filtr, paginacja, virtual scroll, zaznaczanie, przestawianie/zamrażanie kolumn, eksport CSV, szablony komórek.
191
+ - 🎨 **100% na tokenach** — każdy styl to `var(--kpt-*)`. Motyw jasny/ciemny, neutralna paleta OKLCH.
192
+ - 🧩 **Standalone** — bez NgModules, tree-shaking.
193
+
194
+ ### Instalacja
195
+
196
+ ```bash
197
+ npm i @konce-pt/angular @konce-pt/tokens @konce-pt/styles
198
+ ```
199
+
200
+ ### Konfiguracja
201
+
202
+ **Angular CLI (zalecane)** — dodaj CSS do tablicy **`styles`** w `angular.json`; kolejność ważna, `src/styles.scss` **na końcu**:
203
+
204
+ ```jsonc
205
+ "styles": [
206
+ "node_modules/@konce-pt/tokens/dist/css/tokens.css",
207
+ "node_modules/@konce-pt/tokens/dist/css/tokens.dark.css",
208
+ "node_modules/@konce-pt/styles/index.css",
209
+ "node_modules/@angular/cdk/overlay-prebuilt.css",
210
+ "src/styles.scss"
211
+ ]
212
+ ```
213
+
214
+ > W Angular CLI **nie** używaj `import '…css'` w `main.ts` — bundler wrzuca taki CSS do osobnego, niepodlinkowanego arkusza i aplikacja jest bez stylów. Dla **Vite/webpack** import w `main.ts` działa (tak robi playground).
215
+
216
+ Motyw ciemny: `<html data-theme="dark">`; nadpisania `--kpt-color-*` w `styles.scss`. Pełny zestaw ikon Tabler: `provideKptTablerIcons()` z `@konce-pt/angular/icons`.
217
+
218
+ ### Komponenty (70+)
219
+
220
+ Formularze (Signal Forms), przyciski i akcje, layout, nawigacja, dane (z flagową `kpt-data-table`), feedback i overlay — pełna lista w tabeli powyżej. Każdy komponent ma plik `llms.txt` z opisem API obok źródła.
221
+
222
+ ### Dokumentacja
223
+
224
+ Storybook (interaktywne docs), playground (dema z kopiowaniem kodu), `llms.txt` (opisy API). Repozytorium: [gitlab.com/konce-pt/koncept-ui](https://gitlab.com/konce-pt/koncept-ui).
225
+
226
+ ### Licencja
227
+
228
+ [MIT](./LICENSE) © konce.pt
package/dist/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 konce.pt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/README.md ADDED
@@ -0,0 +1,228 @@
1
+ <div align="center">
2
+
3
+ # Koncept UI — Angular
4
+
5
+ **Open-source Angular 22 component library built on Signals & Signal Forms.**
6
+ 70+ components, a feature-rich data table and app-shell layout — zoneless, standalone, fully tokenized.
7
+
8
+ [![npm version](https://img.shields.io/npm/v/@konce-pt/angular?color=%233b82f6&label=npm)](https://www.npmjs.com/package/@konce-pt/angular)
9
+ [![npm downloads](https://img.shields.io/npm/dm/@konce-pt/angular?color=%233b82f6)](https://www.npmjs.com/package/@konce-pt/angular)
10
+ [![minzipped size](https://img.shields.io/bundlephobia/minzip/@konce-pt/angular)](https://bundlephobia.com/package/@konce-pt/angular)
11
+ [![types](https://img.shields.io/npm/types/@konce-pt/angular)](https://www.npmjs.com/package/@konce-pt/angular)
12
+ [![license](https://img.shields.io/npm/l/@konce-pt/angular?color=%2310b981)](https://gitlab.com/konce-pt/koncept-ui/-/blob/main/LICENSE)
13
+
14
+ ![Angular](https://img.shields.io/badge/Angular-22-dd0031?logo=angular&logoColor=white)
15
+ ![Signal Forms](https://img.shields.io/badge/Signal%20Forms-native-3b82f6)
16
+ ![Zoneless](https://img.shields.io/badge/zoneless-ready-8b5cf6)
17
+ ![Components](https://img.shields.io/badge/components-70%2B-10b981)
18
+
19
+ </div>
20
+
21
+ ---
22
+
23
+ ## Why Koncept UI
24
+
25
+ **Koncept UI** is a free, MIT-licensed component library for **Angular 22**, built from the ground up on a modern signal-based foundation:
26
+
27
+ - ⚡ **Signals everywhere** — `input()`, `output()`, `model()`, `computed`. `OnPush` + **zoneless** by default.
28
+ - 📝 **Forms on Signal Forms only** — components implement `FormValueControl<T>` and bind through the `field`/`Control` directive. No `ControlValueAccessor`.
29
+ - 📊 **Flagship data table** — sorting, global filter, pagination, virtual scroll (5000+ rows), row selection, column reorder & freeze, CSV export, cell templates.
30
+ - 🎨 **100% tokenized** — every style is a `var(--kpt-*)` CSS custom property. Light/dark theme, neutral OKLCH palette. Swap the brand by swapping one token layer.
31
+ - 🧩 **Standalone components** — no NgModules. Import only what you use; tree-shakeable.
32
+ - ♿ **Built on Angular CDK** — overlays, a11y, focus management, virtual scrolling.
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ npm i @konce-pt/angular @konce-pt/tokens @konce-pt/styles
38
+ # or: pnpm add / yarn add
39
+ ```
40
+
41
+ Peer dependencies: `@angular/core`, `@angular/common`, `@angular/forms`, `@angular/cdk` (all `^22`).
42
+
43
+ ## Setup
44
+
45
+ ### Angular CLI (recommended)
46
+
47
+ Add the design tokens, base styles and — if you use overlay components — the CDK overlay CSS to the **`styles`** array in `angular.json`. **Order matters:** tokens first, your own `src/styles.scss` **last** so your overrides win the cascade.
48
+
49
+ ```jsonc
50
+ // angular.json → projects.<app>.architect.build.options
51
+ "styles": [
52
+ "node_modules/@konce-pt/tokens/dist/css/tokens.css",
53
+ "node_modules/@konce-pt/tokens/dist/css/tokens.dark.css",
54
+ "node_modules/@konce-pt/styles/index.css",
55
+ "node_modules/@angular/cdk/overlay-prebuilt.css",
56
+ "src/styles.scss"
57
+ ]
58
+ ```
59
+
60
+ Zoneless bootstrap (Angular 22) lives in your app config — no CSS imports in `main.ts`:
61
+
62
+ ```ts
63
+ import { provideZonelessChangeDetection } from '@angular/core';
64
+ // providers: [provideZonelessChangeDetection(), /* provideKptTablerIcons() */]
65
+ ```
66
+
67
+ Dark theme: set `<html data-theme="dark">` (or rely on `prefers-color-scheme`).
68
+
69
+ > **Why not `import '…css'` in `main.ts`?** Angular CLI (`@angular/build`) turns side-effect CSS imports into a separate stylesheet that isn't linked from `index.html`, so the app builds **without styles**. Use `angular.json → styles[]` instead.
70
+
71
+ ### Other bundlers (Vite / webpack)
72
+
73
+ Non-Angular-CLI bundlers can import the CSS directly (this is how the Koncept UI playground works):
74
+
75
+ ```ts
76
+ import '@konce-pt/tokens/css';
77
+ import '@konce-pt/tokens/css/dark';
78
+ import '@konce-pt/styles';
79
+ import '@angular/cdk/overlay-prebuilt.css';
80
+ ```
81
+
82
+ ## Quick start
83
+
84
+ A form powered by **Signal Forms** — no `ControlValueAccessor`, no `FormsModule`:
85
+
86
+ ```ts
87
+ import { Component, signal } from '@angular/core';
88
+ import { form, required, email, FormField } from '@angular/forms/signals';
89
+ import { KptFormField, KptInput, KptSelect, KptButton } from '@konce-pt/angular';
90
+
91
+ @Component({
92
+ selector: 'app-login',
93
+ imports: [FormField, KptFormField, KptInput, KptSelect, KptButton],
94
+ template: `
95
+ <kpt-form-field label="E-mail" required>
96
+ <kpt-input [formField]="loginForm.email" type="email" placeholder="you@company.com" />
97
+ </kpt-form-field>
98
+
99
+ <kpt-form-field label="Role">
100
+ <kpt-select [formField]="loginForm.role" [options]="roles" placeholder="Pick a role…" />
101
+ </kpt-form-field>
102
+
103
+ <kpt-button (click)="submit()">Sign in</kpt-button>
104
+ `,
105
+ })
106
+ export class Login {
107
+ readonly model = signal({ email: '', role: null as string | null });
108
+ readonly loginForm = form(this.model, (p) => {
109
+ required(p.email); email(p.email);
110
+ required(p.role);
111
+ });
112
+ readonly roles = [{ label: 'Admin', value: 'admin' }, { label: 'Editor', value: 'editor' }];
113
+
114
+ submit() { if (this.loginForm().valid()) console.log(this.model()); }
115
+ }
116
+ ```
117
+
118
+ Data table with sorting, filtering, pagination and a custom cell template:
119
+
120
+ ```html
121
+ <kpt-data-table [columns]="columns" [data]="users()" filterable exportable [pageSize]="10"
122
+ selectable="multiple" rowKey="id" [(selection)]="selected">
123
+ <ng-template kptCell="status" let-value="value">
124
+ <kpt-badge [value]="value" />
125
+ </ng-template>
126
+ </kpt-data-table>
127
+ ```
128
+
129
+ ## Components (70+)
130
+
131
+ | Category | Components |
132
+ | --- | --- |
133
+ | **Forms** (Signal Forms) | input, textarea, select, autocomplete, checkbox, switch, radio-group, slider, rating, datepicker, date-range, color-picker, file-upload, input-number, password, input-otp, chips-input, input-mask, listbox, knob, rich-text |
134
+ | **Buttons & actions** | button, icon-button, button-group, fab, split-button, speed-dial |
135
+ | **Layout** | app-shell, toolbar, sidenav, card, divider, panel, fieldset, splitter, scroll-top |
136
+ | **Navigation** | tabs, accordion, breadcrumb, stepper, menu, menubar, megamenu, context-menu |
137
+ | **Data** | data-table, paginator, tree, timeline, carousel, data-view, pick-list, order-list, galleria, meter-group |
138
+ | **Feedback & overlay** | alert, dialog, toast, tooltip, popover, drawer, bottom-sheet, confirm, badge, chip, avatar, avatar-group, spinner, progress, skeleton, empty, image |
139
+
140
+ Every component ships an `llms.txt` API sheet next to its source for quick reference.
141
+
142
+ ## Theming
143
+
144
+ All visuals are driven by `var(--kpt-*)` tokens (three tiers: primitives → semantic → component). Override them in your **`src/styles.scss`** (it's last in `styles[]`, so it wins the cascade):
145
+
146
+ ```scss
147
+ :root {
148
+ --kpt-color-primary: oklch(0.55 0.2 265); /* rebrand in one line */
149
+ --kpt-color-primary-hover: oklch(0.5 0.2 265);
150
+ }
151
+ :root[data-theme='dark'] {
152
+ --kpt-color-primary: oklch(0.7 0.16 265);
153
+ }
154
+ ```
155
+
156
+ **Common token names:** surfaces `--kpt-color-surface`, `--kpt-color-surface-sunken|raised|variant`; text `--kpt-color-on-surface`, `--kpt-color-on-surface-muted`; borders `--kpt-color-border`, `--kpt-color-border-strong`; radii `--kpt-radius-sm|md|lg|xl|full|none`; elevation `--kpt-elevation-1..4`. (There is **no** `--kpt-color-text`, `--kpt-color-bg` or `--kpt-shadow-*`.)
157
+
158
+ ## Icons
159
+
160
+ A built-in set is bundled. For the full **Tabler Icons** set (MIT), opt in via the secondary entry point:
161
+
162
+ ```ts
163
+ import { provideKptTablerIcons } from '@konce-pt/angular/icons';
164
+ // providers: [provideKptTablerIcons()]
165
+ ```
166
+
167
+ ## Documentation
168
+
169
+ - **Storybook** — interactive docs for every component.
170
+ - **Playground** — live demos with copyable HTML/TS/SCSS.
171
+ - **`llms.txt`** — LLM-friendly API sheets per component.
172
+ - Repository: [gitlab.com/konce-pt/koncept-ui](https://gitlab.com/konce-pt/koncept-ui)
173
+
174
+ ## License
175
+
176
+ [MIT](./LICENSE) © konce.pt
177
+
178
+ ---
179
+
180
+ <div align="center">
181
+
182
+ ## 🇵🇱 Wersja polska
183
+
184
+ </div>
185
+
186
+ **Koncept UI** to darmowa biblioteka komponentów na licencji **MIT** dla **Angulara 22**, zbudowana od podstaw na nowoczesnym fundamencie sygnałów.
187
+
188
+ - ⚡ **Sygnały wszędzie** — `input()`, `output()`, `model()`, `computed`. `OnPush` + **zoneless** domyślnie.
189
+ - 📝 **Formularze wyłącznie na Signal Forms** — komponenty implementują `FormValueControl<T>`, bez `ControlValueAccessor`.
190
+ - 📊 **Flagowa tabela danych** — sortowanie, filtr, paginacja, virtual scroll, zaznaczanie, przestawianie/zamrażanie kolumn, eksport CSV, szablony komórek.
191
+ - 🎨 **100% na tokenach** — każdy styl to `var(--kpt-*)`. Motyw jasny/ciemny, neutralna paleta OKLCH.
192
+ - 🧩 **Standalone** — bez NgModules, tree-shaking.
193
+
194
+ ### Instalacja
195
+
196
+ ```bash
197
+ npm i @konce-pt/angular @konce-pt/tokens @konce-pt/styles
198
+ ```
199
+
200
+ ### Konfiguracja
201
+
202
+ **Angular CLI (zalecane)** — dodaj CSS do tablicy **`styles`** w `angular.json`; kolejność ważna, `src/styles.scss` **na końcu**:
203
+
204
+ ```jsonc
205
+ "styles": [
206
+ "node_modules/@konce-pt/tokens/dist/css/tokens.css",
207
+ "node_modules/@konce-pt/tokens/dist/css/tokens.dark.css",
208
+ "node_modules/@konce-pt/styles/index.css",
209
+ "node_modules/@angular/cdk/overlay-prebuilt.css",
210
+ "src/styles.scss"
211
+ ]
212
+ ```
213
+
214
+ > W Angular CLI **nie** używaj `import '…css'` w `main.ts` — bundler wrzuca taki CSS do osobnego, niepodlinkowanego arkusza i aplikacja jest bez stylów. Dla **Vite/webpack** import w `main.ts` działa (tak robi playground).
215
+
216
+ Motyw ciemny: `<html data-theme="dark">`; nadpisania `--kpt-color-*` w `styles.scss`. Pełny zestaw ikon Tabler: `provideKptTablerIcons()` z `@konce-pt/angular/icons`.
217
+
218
+ ### Komponenty (70+)
219
+
220
+ Formularze (Signal Forms), przyciski i akcje, layout, nawigacja, dane (z flagową `kpt-data-table`), feedback i overlay — pełna lista w tabeli powyżej. Każdy komponent ma plik `llms.txt` z opisem API obok źródła.
221
+
222
+ ### Dokumentacja
223
+
224
+ Storybook (interaktywne docs), playground (dema z kopiowaniem kodu), `llms.txt` (opisy API). Repozytorium: [gitlab.com/konce-pt/koncept-ui](https://gitlab.com/konce-pt/koncept-ui).
225
+
226
+ ### Licencja
227
+
228
+ [MIT](./LICENSE) © konce.pt
@@ -3668,7 +3668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImpor
3668
3668
  const REM_PX = 16;
3669
3669
  const CHECKBOX_FROZEN_W = 3; // rem
3670
3670
  /**
3671
- * Flagowa tabela danych Koncept UI (w duchu PrimeNG): kolumny konfiguracją, sortowanie,
3671
+ * Flagowa tabela danych Koncept UI: kolumny konfiguracją, sortowanie,
3672
3672
  * filtr globalny, paginacja, zaznaczanie wierszy i własne szablony komórek (`kptCell`).
3673
3673
  * Sygnałowa, OnPush. Stylowanie tokenami `--kpt-table-*`.
3674
3674
  *