@pure-ds/core 0.7.25 → 0.7.27
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/.cursorrules +12 -1
- package/.github/copilot-instructions.md +12 -1
- package/custom-elements.json +1099 -74
- package/dist/types/public/assets/js/pds-ask.d.ts +2 -1
- package/dist/types/public/assets/js/pds-ask.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds-autocomplete.d.ts +25 -36
- package/dist/types/public/assets/js/pds-autocomplete.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds-enhancers.d.ts +4 -4
- package/dist/types/public/assets/js/pds-enhancers.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds-manager.d.ts +444 -159
- package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds-toast.d.ts +7 -6
- package/dist/types/public/assets/js/pds-toast.d.ts.map +1 -1
- package/dist/types/public/assets/js/pds.d.ts +4 -3
- package/dist/types/public/assets/js/pds.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-daterange.d.ts +2 -0
- package/dist/types/public/assets/pds/components/pds-daterange.d.ts.map +1 -0
- package/dist/types/public/assets/pds/components/pds-form.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/pds-rating.d.ts +120 -0
- package/dist/types/public/assets/pds/components/pds-rating.d.ts.map +1 -0
- package/dist/types/public/assets/pds/components/pds-tags.d.ts +2 -0
- package/dist/types/public/assets/pds/components/pds-tags.d.ts.map +1 -0
- package/dist/types/src/js/common/ask.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
- package/package.json +2 -2
- package/public/assets/js/app.js +1 -1
- package/public/assets/js/pds-ask.js +6 -6
- package/public/assets/js/pds-manager.js +104 -29
- package/public/assets/pds/components/pds-calendar.js +91 -159
- package/public/assets/pds/components/pds-daterange.js +683 -0
- package/public/assets/pds/components/pds-form.js +123 -21
- package/public/assets/pds/components/pds-rating.js +648 -0
- package/public/assets/pds/components/pds-tags.js +802 -0
- package/public/assets/pds/core/pds-ask.js +6 -6
- package/public/assets/pds/core/pds-manager.js +104 -29
- package/public/assets/pds/custom-elements.json +1099 -74
- package/public/assets/pds/pds-css-complete.json +7 -2
- package/public/assets/pds/pds.css-data.json +4 -4
- package/public/assets/pds/vscode-custom-data.json +97 -0
- package/src/js/pds-core/pds-generator.js +103 -28
- package/src/js/pds-core/pds-ontology.js +2 -2
package/.cursorrules
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
> **CRITICAL**: This workspace uses **Pure Design System (PDS)**. All code generation MUST follow PDS and vanilla Web Platform patterns. Never use 3rd party framework patterns, non-PDS utility classes, inline styles, or hardcoded CSS values.
|
|
4
4
|
|
|
5
|
-
> **CRITICAL — `/pds/` PATHS ARE READ-ONLY (PACKAGE-LIKE)**: Treat any file path containing `/pds/` as immutable runtime/package output (including `public/pds/**`, `public/assets/pds/**`, and `node_modules/@pure-ds/core/public/**`). Never patch these files directly. If behavior must change, edit source/config (`src/js/pds-core/**`, `pds.config.js`, component source), then rebuild.
|
|
5
|
+
> **CRITICAL — Unless we are in the pure-ds (@pure-ds/core origin) project itself, `/pds/` PATHS ARE READ-ONLY (PACKAGE-LIKE)**: Treat any file path containing `/pds/` as immutable runtime/package output (including `public/pds/**`, `public/assets/pds/**`, and `node_modules/@pure-ds/core/public/**`). Never patch these files directly. If behavior must change, edit source/config (`src/js/pds-core/**`, `pds.config.js`, component source), then rebuild.
|
|
6
|
+
|
|
7
|
+
> **Note: in the pure-ds (@pure-ds/core origin) project itself**, pds-* web components ARE not compiled from source. The pds-* components in pds/components/ ARE their own source code!
|
|
6
8
|
|
|
7
9
|
## Philosophy
|
|
8
10
|
|
|
@@ -525,6 +527,14 @@ form.getFormData(); // May throw error
|
|
|
525
527
|
<p>Content for Tab 2</p>
|
|
526
528
|
</pds-tabpanel>
|
|
527
529
|
</pds-tabstrip>
|
|
530
|
+
|
|
531
|
+
<!-- Details: wrap post-summary content in a padded primitive -->
|
|
532
|
+
<details>
|
|
533
|
+
<summary>Section title</summary>
|
|
534
|
+
<div class="card">
|
|
535
|
+
<p>Use a padded container after summary to avoid edge-to-edge content.</p>
|
|
536
|
+
</div>
|
|
537
|
+
</details>
|
|
528
538
|
```
|
|
529
539
|
|
|
530
540
|
### Empty State Pattern
|
|
@@ -599,3 +609,4 @@ Before generating code:
|
|
|
599
609
|
13. ✅ **Use `examples` in JSON schema** — First example becomes placeholder
|
|
600
610
|
14. ✅ **Add smart icons** — Infer icons based on field names (email→envelope, phone→phone)
|
|
601
611
|
15. ✅ **Wrap in `form[data-required]`** — For asterisk enhancement on required fields
|
|
612
|
+
16. ✅ **Pad details content** — After `<summary>`, wrap content in a padded container (usually `.card`)
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
> **CRITICAL**: This workspace uses **Pure Design System (PDS)**. All code generation MUST follow PDS and vanilla Web Platform patterns. Never use 3rd party framework patterns, non-PDS utility classes, inline styles, or hardcoded CSS values.
|
|
4
4
|
|
|
5
|
-
> **CRITICAL — `/pds/` PATHS ARE READ-ONLY (PACKAGE-LIKE)**: Treat any file path containing `/pds/` as immutable runtime/package output (including `public/pds/**`, `public/assets/pds/**`, and `node_modules/@pure-ds/core/public/**`). Never patch these files directly. If behavior must change, edit source/config (`src/js/pds-core/**`, `pds.config.js`, component source), then rebuild.
|
|
5
|
+
> **CRITICAL — Unless we are in the pure-ds (@pure-ds/core origin) project itself, `/pds/` PATHS ARE READ-ONLY (PACKAGE-LIKE)**: Treat any file path containing `/pds/` as immutable runtime/package output (including `public/pds/**`, `public/assets/pds/**`, and `node_modules/@pure-ds/core/public/**`). Never patch these files directly. If behavior must change, edit source/config (`src/js/pds-core/**`, `pds.config.js`, component source), then rebuild.
|
|
6
|
+
|
|
7
|
+
> **Note: in the pure-ds (@pure-ds/core origin) project itself**, pds-* web components ARE not compiled from source. The pds-* components in pds/components/ ARE their own source code!
|
|
6
8
|
|
|
7
9
|
## Philosophy
|
|
8
10
|
|
|
@@ -525,6 +527,14 @@ form.getFormData(); // May throw error
|
|
|
525
527
|
<p>Content for Tab 2</p>
|
|
526
528
|
</pds-tabpanel>
|
|
527
529
|
</pds-tabstrip>
|
|
530
|
+
|
|
531
|
+
<!-- Details: wrap post-summary content in a padded primitive -->
|
|
532
|
+
<details>
|
|
533
|
+
<summary>Section title</summary>
|
|
534
|
+
<div class="card">
|
|
535
|
+
<p>Use a padded container after summary to avoid edge-to-edge content.</p>
|
|
536
|
+
</div>
|
|
537
|
+
</details>
|
|
528
538
|
```
|
|
529
539
|
|
|
530
540
|
### Empty State Pattern
|
|
@@ -599,3 +609,4 @@ Before generating code:
|
|
|
599
609
|
13. ✅ **Use `examples` in JSON schema** — First example becomes placeholder
|
|
600
610
|
14. ✅ **Add smart icons** — Infer icons based on field names (email→envelope, phone→phone)
|
|
601
611
|
15. ✅ **Wrap in `form[data-required]`** — For asterisk enhancement on required fields
|
|
612
|
+
16. ✅ **Pad details content** — After `<summary>`, wrap content in a padded container (usually `.card`)
|