@cityway/basic-ui 1.1.0-beta024 → 1.1.0-beta026
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/cityway-basic-ui-1.1.0-beta026.tgz +0 -0
- package/docs/00-overview.md +39 -14
- package/docs/components/autocomplete.md +235 -234
- package/docs/components/button.md +185 -181
- package/docs/components/card.md +253 -226
- package/docs/components/divider.md +1 -0
- package/docs/components/empty-state.md +158 -157
- package/docs/components/form-field/README.md +235 -225
- package/docs/components/form-field/checkbox.md +98 -80
- package/docs/components/form-field/date.md +102 -87
- package/docs/components/form-field/radio.md +74 -56
- package/docs/components/icon.md +21 -2
- package/docs/components/modals.md +2 -1
- package/docs/components/tab.md +1 -0
- package/docs/for-claude.md +8 -2
- package/fesm2022/cityway-basic-ui.mjs +196 -61
- package/fesm2022/cityway-basic-ui.mjs.map +1 -1
- package/index.d.ts +101 -7
- package/lib/assets/i18n/common.en.json +280 -277
- package/lib/assets/i18n/common.fr.json +280 -277
- package/package.json +2 -2
- package/styles/basic-ui.styles.bo.min.css +1 -1
- package/styles/basic-ui.styles.bo.min.css.map +1 -1
- package/styles/basic-ui.styles.fo.min.css +1 -1
- package/styles/basic-ui.styles.fo.min.css.map +1 -1
- package/cityway-basic-ui-1.1.0-beta024.tgz +0 -0
package/docs/for-claude.md
CHANGED
|
@@ -20,7 +20,7 @@ Quand l'utilisateur demande de construire/modifier une UI (par prompt **ou** à
|
|
|
20
20
|
|
|
21
21
|
## 1. Architecture & dépendances (rappel)
|
|
22
22
|
|
|
23
|
-
- `@cityway/design-tokens` (SCSS, fondations `--cw-*`) ← `@cityway/basic-ui` (composants transverses) ← `@cityway/bo-ui` (composants Back-Office).
|
|
23
|
+
- `@cityway/design-tokens` (SCSS, fondations `--cw-*`) ← `@cityway/basic-ui` (composants transverses) ← `@cityway/bo-ui` (composants Back-Office) / `@cityway/mobility-ui` (cartographie Leaflet).
|
|
24
24
|
- Angular **20** (standalone components partout). `@angular/cdk` 20.
|
|
25
25
|
- Détails build/publish & installation : voir `00-overview.md`.
|
|
26
26
|
|
|
@@ -32,6 +32,8 @@ Quand l'utilisateur demande de construire/modifier une UI (par prompt **ou** à
|
|
|
32
32
|
|
|
33
33
|
**bo-ui :** table, pagination, filter-bar, page-header, custom-list, progress-bar, import-wizard, wizard-stepper, drag-n-drop-list, drag-n-drop-nested-list.
|
|
34
34
|
|
|
35
|
+
**mobility-ui :** map (`cw-map` et ses pictos), line-badge.
|
|
36
|
+
|
|
35
37
|
> Fiche détaillée par composant dans `components/`. Tous les composants ci-dessus sont documentés.
|
|
36
38
|
|
|
37
39
|
---
|
|
@@ -41,7 +43,7 @@ Quand l'utilisateur demande de construire/modifier une UI (par prompt **ou** à
|
|
|
41
43
|
### 3.1 Composants standalone
|
|
42
44
|
|
|
43
45
|
- Tous les composants sont **standalone** : les importer dans le tableau `imports` du composant hôte, pas via un NgModule.
|
|
44
|
-
- Importer depuis le **point d'entrée public** : `import { ButtonComponent, BoButtonTypeEnum } from '@cityway/basic-ui';` (idem `@cityway/bo-ui`). Ne jamais importer un chemin profond (`@cityway/basic-ui/lib/...`).
|
|
46
|
+
- Importer depuis le **point d'entrée public** : `import { ButtonComponent, BoButtonTypeEnum } from '@cityway/basic-ui';` (idem `@cityway/bo-ui`, `@cityway/mobility-ui`). Ne jamais importer un chemin profond (`@cityway/basic-ui/lib/...`).
|
|
45
47
|
|
|
46
48
|
### 3.2 Inputs en property binding (jamais en attribut nu)
|
|
47
49
|
|
|
@@ -144,6 +146,7 @@ Une fois les libs installées, la doc est **embarquée dans chaque package**, au
|
|
|
144
146
|
|-----|------------------------------|---------|
|
|
145
147
|
| basic-ui | `@cityway/basic-ui/docs/` | `00-overview.md`, `for-claude.md` (ce fichier), `components/*.md`, `components/form-field/*.md` |
|
|
146
148
|
| bo-ui | `@cityway/bo-ui/docs/` | `i18n.md` (bundle de traductions de la lib), `components/*.md` (fiches des composants Back-Office : `table.md`, `pagination.md`…) |
|
|
149
|
+
| mobility-ui | `@cityway/mobility-ui/docs/` | `i18n.md`, `components/*.md` (`map.md`, `line-badge.md`) |
|
|
147
150
|
| design-tokens | `@cityway/design-tokens/docs/` | `README.md` (fondations, theming) |
|
|
148
151
|
|
|
149
152
|
> ⚠️ L'embarquement dans le `.tgz` n'est effectif qu'à partir d'une **version publiée après** la mise en place de ce dispositif. Si `node_modules/@cityway/<lib>/docs/` n'existe pas encore (version antérieure), récupère les `.md` via la **page hub** (`cityway-ui-docs.html`, boutons *Télécharger*) ou la section *Documentation* de Storybook.
|
|
@@ -162,6 +165,7 @@ Crée `.claude/cityway-ui/` à la racine de ton repo et recopie-y les `docs/` de
|
|
|
162
165
|
mkdir -p .claude/cityway-ui
|
|
163
166
|
cp -R node_modules/@cityway/basic-ui/docs .claude/cityway-ui/basic-ui
|
|
164
167
|
cp -R node_modules/@cityway/bo-ui/docs .claude/cityway-ui/bo-ui
|
|
168
|
+
cp -R node_modules/@cityway/mobility-ui/docs .claude/cityway-ui/mobility-ui # si installee
|
|
165
169
|
cp -R node_modules/@cityway/design-tokens/docs .claude/cityway-ui/design-tokens
|
|
166
170
|
```
|
|
167
171
|
|
|
@@ -171,6 +175,7 @@ cp -R node_modules/@cityway/design-tokens/docs .claude/cityway-ui/design-token
|
|
|
171
175
|
New-Item -ItemType Directory -Force .claude/cityway-ui | Out-Null
|
|
172
176
|
Copy-Item -Recurse -Force node_modules/@cityway/basic-ui/docs .claude/cityway-ui/basic-ui
|
|
173
177
|
Copy-Item -Recurse -Force node_modules/@cityway/bo-ui/docs .claude/cityway-ui/bo-ui
|
|
178
|
+
Copy-Item -Recurse -Force node_modules/@cityway/mobility-ui/docs .claude/cityway-ui/mobility-ui # si installee
|
|
174
179
|
Copy-Item -Recurse -Force node_modules/@cityway/design-tokens/docs .claude/cityway-ui/design-tokens
|
|
175
180
|
```
|
|
176
181
|
|
|
@@ -180,6 +185,7 @@ Tu obtiens :
|
|
|
180
185
|
.claude/cityway-ui/
|
|
181
186
|
├── basic-ui/ (00-overview.md, for-claude.md, components/…)
|
|
182
187
|
├── bo-ui/ (components/…)
|
|
188
|
+
├── mobility-ui/ (components/…, si installée)
|
|
183
189
|
└── design-tokens/ (README.md)
|
|
184
190
|
```
|
|
185
191
|
|