laif-ds 1.0.0 → 1.0.2-app-data-grid.76
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/dist/CHANGELOG.md +282 -0
- package/dist/_virtual/index7.js +5 -2
- package/dist/_virtual/index8.js +2 -5
- package/dist/agent-docs/adoption-report.json +164 -83
- package/dist/agent-docs/components/AppBottomNav.md +180 -49
- package/dist/agent-docs/components/AppCard.md +25 -21
- package/dist/agent-docs/components/AppDataGrid.md +2602 -0
- package/dist/agent-docs/components/AppEditor.md +18 -13
- package/dist/agent-docs/components/AppSelect.md +50 -0
- package/dist/agent-docs/components/AppSidebar.md +504 -11
- package/dist/agent-docs/components/DataTable.md +34 -3
- package/dist/agent-docs/components/DatePicker.md +7 -7
- package/dist/agent-docs/components/FileUploader.md +12 -12
- package/dist/agent-docs/components/GridFilterPanel.md +112 -0
- package/dist/agent-docs/components/Sidebar.md +72 -1
- package/dist/agent-docs/components/SidebarMenuBadge.md +87 -0
- package/dist/agent-docs/components-list.md +47 -2
- package/dist/agent-docs/manifest.json +310 -36
- package/dist/components/design-tokens.js +138 -66
- package/dist/components/nav-tokens.js +41 -0
- package/dist/components/ui/app-bottom-nav.js +125 -130
- package/dist/components/ui/app-data-grid/app-data-grid.js +874 -0
- package/dist/components/ui/app-data-grid/engine/use-grid-column-resize.js +110 -0
- package/dist/components/ui/app-data-grid/engine/use-grid-engine.js +598 -0
- package/dist/components/ui/app-data-grid/engine/use-grid-infinite-loader.js +50 -0
- package/dist/components/ui/app-data-grid/engine/use-grid-virtualizer.js +90 -0
- package/dist/components/ui/app-data-grid/grid-aggregate.js +5 -0
- package/dist/components/ui/app-data-grid/grid-column-registry.js +28 -0
- package/dist/components/ui/app-data-grid/grid-columns.js +204 -0
- package/dist/components/ui/app-data-grid/grid-filter-compile.js +33 -0
- package/dist/components/ui/app-data-grid/grid-filter-operators.js +139 -0
- package/dist/components/ui/app-data-grid/grid-grouping.js +104 -0
- package/dist/components/ui/app-data-grid/grid-header-matrix.js +112 -0
- package/dist/components/ui/app-data-grid/grid-i18n.js +207 -0
- package/dist/components/ui/app-data-grid/grid-mount-count.js +8 -0
- package/dist/components/ui/app-data-grid/grid-reducer.js +200 -0
- package/dist/components/ui/app-data-grid/grid-result-scope.js +35 -0
- package/dist/components/ui/app-data-grid/grid-tokens.js +169 -0
- package/dist/components/ui/app-data-grid/grid-view-preset.js +97 -0
- package/dist/components/ui/app-data-grid/parts/grid-actions-row.js +86 -0
- package/dist/components/ui/app-data-grid/parts/grid-cell-text.js +67 -0
- package/dist/components/ui/app-data-grid/parts/grid-column-registry-panel.js +320 -0
- package/dist/components/ui/app-data-grid/parts/grid-density-control.js +88 -0
- package/dist/components/ui/app-data-grid/parts/grid-filter-chips.js +224 -0
- package/dist/components/ui/app-data-grid/parts/grid-filter-editor.js +197 -0
- package/dist/components/ui/app-data-grid/parts/grid-filter-panel.js +386 -0
- package/dist/components/ui/app-data-grid/parts/grid-filter-row.js +273 -0
- package/dist/components/ui/app-data-grid/parts/grid-fullscreen-toggle.js +29 -0
- package/dist/components/ui/app-data-grid/parts/grid-group-row.js +135 -0
- package/dist/components/ui/app-data-grid/parts/grid-header.js +338 -0
- package/dist/components/ui/app-data-grid/parts/grid-pagination-control.js +218 -0
- package/dist/components/ui/app-data-grid/parts/grid-row.js +181 -0
- package/dist/components/ui/app-data-grid/parts/grid-scroll-area.js +186 -0
- package/dist/components/ui/app-data-grid/parts/grid-selection-bar.js +195 -0
- package/dist/components/ui/app-data-grid/parts/grid-status-surface.js +66 -0
- package/dist/components/ui/app-data-grid/parts/grid-table.js +482 -0
- package/dist/components/ui/app-data-grid/parts/grid-toolbar-slots.js +192 -0
- package/dist/components/ui/app-data-grid/use-grid-filters.js +173 -0
- package/dist/components/ui/app-select.js +332 -222
- package/dist/components/ui/app-sidebar-mobile.js +119 -104
- package/dist/components/ui/app-sidebar.js +516 -313
- package/dist/components/ui/button.js +2 -1
- package/dist/components/ui/gantt/components/Chart/Chart.js +1 -1
- package/dist/components/ui/nav-badge.js +66 -0
- package/dist/components/ui/sidebar.js +272 -207
- package/dist/components/ui/tables/data-cross-table/data-cross-table.js +6 -6
- package/dist/components/ui/tables/data-table/data-table-constants.js +36 -16
- package/dist/components/ui/tables/data-table/data-table-i18n.js +135 -1
- package/dist/css-for-template.css +27 -0
- package/dist/index.d.ts +5872 -144
- package/dist/index.js +473 -406
- package/dist/node_modules/eventemitter3/index2.js +1 -1
- package/dist/styles.css +2 -1
- package/dist/styles.v3.css +1 -1
- package/package.json +25 -7
- /package/dist/agent-docs/components/{truncated-cell.md → TruncatedCell.md} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "laif-ds",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2-app-data-grid.76",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -34,29 +34,42 @@
|
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "vite",
|
|
37
|
-
"build": "tsc && vite build && npm run build:css && npm run copy:template-css && npm run copy:changelog && npm run copy:agent-docs && npm run report:agent-docs",
|
|
37
|
+
"build": "tsc && vite build && npm run build:css && npm run check:tokens-v3 && npm run copy:template-css && npm run copy:changelog && npm run copy:agent-docs && npm run report:agent-docs",
|
|
38
38
|
"tsc": "tsc",
|
|
39
39
|
"check": "npm run tsc && npm run lint && npm run format:check",
|
|
40
40
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
41
|
-
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"scripts/**/*.mjs\" \"*.{js,ts,mjs}\"",
|
|
42
|
-
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"scripts/**/*.mjs\" \"*.{js,ts,mjs}\"",
|
|
41
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"scripts/**/*.mjs\" \".storybook/**/*.ts\" \"*.{js,ts,mjs}\"",
|
|
42
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"scripts/**/*.mjs\" \".storybook/**/*.ts\" \"*.{js,ts,mjs}\"",
|
|
43
43
|
"preview": "vite preview",
|
|
44
44
|
"storybook": "concurrently \"npm run storybook:css\" \"BROWSER=none storybook dev -p 6008 --no-open\" \"sleep 3 && open http://localhost:6008\"",
|
|
45
45
|
"build-storybook": "npm run build-storybook:css && storybook build",
|
|
46
46
|
"build:css": "npm run build:css:v4 && npm run build:css:v3",
|
|
47
47
|
"build:css:v3": "npx tailwindcss@3.4.1 -m -i ./src/styles/index.v3.css -o ./dist/styles.v3.css --config ./tailwind.config.v3.js --postcss ./postcss.config.v3.js",
|
|
48
|
-
"build:css:v4": "tailwindcss -m -i ./src/styles/index.css -o ./dist/styles.css
|
|
48
|
+
"build:css:v4": "node ./node_modules/@tailwindcss/cli/dist/index.mjs -m -i ./src/styles/index.css -o ./dist/styles.css",
|
|
49
49
|
"storybook:css": "tailwindcss -w -i ./src/styles/index.css -o ./src/styles/output.css --config ./tailwind.config.js --postcss ./postcss.config.js",
|
|
50
50
|
"build-storybook:css": "tailwindcss -m -i ./src/styles/index.css -o ./src/styles/output.css --config ./tailwind.config.js --postcss ./postcss.config.js",
|
|
51
51
|
"copy:template-css": "cp ./src/styles/css-for-template.css ./dist/css-for-template.css",
|
|
52
52
|
"copy:changelog": "cp ./CHANGELOG.md ./dist/CHANGELOG.md",
|
|
53
|
-
"copy:agent-docs": "cp -r ./src/components/documents/ ./dist/agent-docs/",
|
|
53
|
+
"copy:agent-docs": "rm -rf ./dist/agent-docs && cp -r ./src/components/documents/ ./dist/agent-docs/",
|
|
54
54
|
"generate:agent-manifest": "node ./scripts/generate-agent-manifest.mjs",
|
|
55
55
|
"generate:adoption-report": "node ./scripts/generate-adoption-report.mjs",
|
|
56
56
|
"validate:adoption-report": "node ./scripts/validate-adoption-report.mjs",
|
|
57
57
|
"validate:agent-docs": "node ./scripts/validate-agent-docs.mjs",
|
|
58
|
+
"check:tokens-v3": "node ./scripts/check-tokens-v3.mjs",
|
|
59
|
+
"_comment:check:lanes": "Non incatenato a check: release-beta.yml fa checkout a profondita 1, dove origin/master non risolve e in CI questo script e un errore e non uno skip, quindi chiamarlo da check potrebbe far fallire un rilascio beta. Il gate sulle PR resta pr-checks.yml, che fa checkout con fetch-depth 0.",
|
|
60
|
+
"check:lanes": "node ./scripts/check-datatable-freeze.mjs",
|
|
61
|
+
"_comment:spec": "Non incatenato a check, e la ragione VALE ANCORA: il runner avvia un browser Chromium reale, e check e il comando che si lancia dopo ogni modifica - farne una verifica che scarica e avvia un browser lo renderebbe inutile in quel ciclo. Resta tsc + lint + format. MA DAL 2026-09-09 pr-checks.yml LA ESEGUE: la seconda ragione (in CI servirebbe il binario del browser, che il workflow non installa) era una premessa vera con una conclusione sbagliata - il binario si installa, e il passo Install Chromium for the spec runner lo fa con npx playwright install --with-deps chromium, una sola istanza chromium come dichiara vitest.config.ts. Finche era fuori, le 730 asserzioni delle play function - l unico livello di test di questo repo - non proteggevano nessuna PR. Il segnale in locale resta npm run spec; in Storybook e il pannello Interactions.",
|
|
62
|
+
"spec": "vitest --config vitest.config.ts --run",
|
|
63
|
+
"spec:watch": "vitest --config vitest.config.ts",
|
|
58
64
|
"report:agent-docs": "npm run generate:agent-manifest && npm run validate:agent-docs && npm run generate:adoption-report && npm run validate:adoption-report",
|
|
59
65
|
"prepublishOnly": "npm run build",
|
|
66
|
+
"_comment:copy:agent-docs": "Il rm -rf non e cosmetico: cp -r src/ dst/ copia DENTRO una dst esistente senza cancellare, quindi una doc rimossa dalla sorgente restava in dist/agent-docs e finiva nel pacchetto spedito. Misurato: truncated-cell.md sopravviveva alla sua rinomina e faceva contare 94 componenti dove la sorgente ne ha 93, ingannando anche il gate validate:agent-docs in locale.",
|
|
67
|
+
"_comment:check:grouping-client-only": "P9, criterio 4. Gira tsc sui probe di type-probes/ e PRETENDE che li rifiuti: e' cosi' che «il raggruppamento server-side e' irrappresentabile» smette di essere una frase in un documento. NON e' in `check` perche' `check` deve restare verde e questo comando e' verde solo quando tsc fallisce altrove; e' incatenato alla CI, dove una PR che allarga il tipo diventa rossa.",
|
|
68
|
+
"check:grouping-client-only": "node ./scripts/check-grouping-server-unrepresentable.mjs",
|
|
69
|
+
"_comment:check:grid-props": "Fase 0 del piano di completamento. Ogni prop di `AppDataGridProps` deve essere una riga della TABELLA di AppDataGrid.md, non una menzione nella sua prosa: il difetto misurato era sette prop dichiarate e non documentate con `npm run check` verde, cinque delle quali comparivano in prosa. Legge i sorgenti via AST, non `dist/`, quindi non ha prerequisiti. E' incatenato alla CI; qui esiste perche' uno script che nessun comando nomina e' uno script che nessuno esegue.",
|
|
70
|
+
"check:grid-props": "node ./scripts/check-grid-props-documented.mjs",
|
|
71
|
+
"_comment:check:grid-coexistence": "Fase C1 del piano di completamento. La matrice di coesistenza deve dichiarare UN esito per ognuna delle 28 coppie (C(8,2) sulle otto capacita' del piano: header su tre livelli, pinning, virtualizzazione, selezione, raggruppamento, paginazione, emettitore, densita'), e le 28 coppie le GENERA lo script — leggerle dal documento che sta validando vorrebbe dire validare che il documento sia coerente con se' stesso, cioe' niente. Tre soli esiti ammessi: «verde», «difetto aperto <file:riga> -> <fase>», «irrappresentabile per tipi <file:riga>»; le due forme non verdi devono citare un `file:riga` che lo script RISOLVE davvero sull'albero. Il difetto che questo gate esiste per rifiutare e' dichiarato nel piano prima ancora del documento: una matrice tutta verde riempita leggendo il codice invece di guardare una scena montata — falsa, non incompleta, e nessun `tsc` la contraddice. NON e' in `check`: se il documento manca esce 1 (fallisce chiuso, un verde per assenza non e' un pass) e `check` deve restare verde. E' incatenato alla CI, dove e' il gate 13.",
|
|
72
|
+
"check:grid-coexistence": "node ./scripts/check-grid-coexistence-matrix.mjs",
|
|
60
73
|
"pack:to": "node ./scripts/pack-to.mjs"
|
|
61
74
|
},
|
|
62
75
|
"peerDependencies": {
|
|
@@ -72,6 +85,7 @@
|
|
|
72
85
|
"@storybook/addon-links": "^10.0.8",
|
|
73
86
|
"@storybook/addon-onboarding": "^10.0.8",
|
|
74
87
|
"@storybook/addon-themes": "^10.0.8",
|
|
88
|
+
"@storybook/addon-vitest": "10.0.8",
|
|
75
89
|
"@storybook/builder-vite": "^10.0.8",
|
|
76
90
|
"@storybook/react-vite": "^10.0.8",
|
|
77
91
|
"@tailwindcss/line-clamp": "^0.4.4",
|
|
@@ -85,6 +99,8 @@
|
|
|
85
99
|
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
|
86
100
|
"@typescript-eslint/parser": "^8.35.0",
|
|
87
101
|
"@vitejs/plugin-react": "^4.6.0",
|
|
102
|
+
"@vitest/browser": "^4.1.11",
|
|
103
|
+
"@vitest/browser-playwright": "^4.1.11",
|
|
88
104
|
"autoprefixer": "^10.4.21",
|
|
89
105
|
"concurrently": "^9.2.1",
|
|
90
106
|
"eslint": "^9.29.0",
|
|
@@ -93,6 +109,7 @@
|
|
|
93
109
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
94
110
|
"eslint-plugin-storybook": "^10.0.8",
|
|
95
111
|
"pdfjs-dist": "^5.4.149",
|
|
112
|
+
"playwright": "^1.62.1",
|
|
96
113
|
"prettier": "^3.6.0",
|
|
97
114
|
"prettier-plugin-tailwindcss": "^0.6.13",
|
|
98
115
|
"react-pdf": "^10.1.0",
|
|
@@ -102,7 +119,8 @@
|
|
|
102
119
|
"tailwindcss-v4": "npm:tailwindcss@4.1.2",
|
|
103
120
|
"typescript": "^5.8.3",
|
|
104
121
|
"vite": "^7.0.0",
|
|
105
|
-
"vite-plugin-dts": "^4.5.4"
|
|
122
|
+
"vite-plugin-dts": "^4.5.4",
|
|
123
|
+
"vitest": "^4.1.11"
|
|
106
124
|
},
|
|
107
125
|
"dependencies": {
|
|
108
126
|
"@dnd-kit/core": "^6.3.1",
|
|
File without changes
|