@pure-ds/core 0.5.31 → 0.5.32

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.
Files changed (49) hide show
  1. package/.github/copilot-instructions.md +1 -1
  2. package/INTELLISENSE.md +1 -1
  3. package/custom-elements.json +179 -0
  4. package/dist/types/public/assets/js/pds-configurator.d.ts +2 -0
  5. package/dist/types/public/assets/js/pds-configurator.d.ts.map +1 -0
  6. package/dist/types/public/assets/js/pds-manager.d.ts +141 -426
  7. package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
  8. package/dist/types/public/assets/js/pds.d.ts +3 -4
  9. package/dist/types/public/assets/js/pds.d.ts.map +1 -1
  10. package/dist/types/public/assets/pds/components/pds-fab.d.ts +82 -0
  11. package/dist/types/public/assets/pds/components/pds-fab.d.ts.map +1 -0
  12. package/dist/types/src/js/common/ask.d.ts +6 -6
  13. package/dist/types/src/js/common/ask.d.ts.map +1 -1
  14. package/dist/types/src/js/common/common.d.ts +9 -0
  15. package/dist/types/src/js/common/common.d.ts.map +1 -1
  16. package/dist/types/src/js/pds-configurator.d.ts +2 -0
  17. package/dist/types/src/js/pds-configurator.d.ts.map +1 -0
  18. package/dist/types/src/js/pds-core/pds-config.d.ts.map +1 -1
  19. package/dist/types/src/js/pds-core/pds-enhancers-meta.d.ts.map +1 -1
  20. package/dist/types/src/js/pds-core/pds-enhancers.d.ts.map +1 -1
  21. package/dist/types/src/js/pds-core/pds-enums.d.ts +9 -0
  22. package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
  23. package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
  24. package/dist/types/src/js/pds-core/pds-ontology.d.ts +146 -158
  25. package/dist/types/src/js/pds-core/pds-ontology.d.ts.map +1 -1
  26. package/dist/types/src/js/pds-core/pds-start-helpers.d.ts.map +1 -1
  27. package/dist/types/src/js/pds.d.ts.map +1 -1
  28. package/package.json +3 -2
  29. package/packages/pds-cli/bin/templates/bootstrap/pds.config.js +2 -2
  30. package/public/assets/js/app.js +311 -203
  31. package/public/assets/js/pds-manager.js +297 -189
  32. package/public/assets/js/pds.js +10 -53
  33. package/public/assets/pds/components/pds-calendar.js +1 -1
  34. package/public/assets/pds/components/pds-fab.js +598 -0
  35. package/public/assets/pds/components/pds-form.js +1 -1
  36. package/public/assets/pds/components/pds-icon.js +10 -10
  37. package/public/assets/pds/components/pds-toaster.js +15 -15
  38. package/public/assets/pds/vscode-custom-data.json +23 -0
  39. package/readme.md +21 -4
  40. package/src/js/pds-core/pds-config.js +1 -8
  41. package/src/js/pds-core/pds-enhancers-meta.js +20 -5
  42. package/src/js/pds-core/pds-enhancers.js +45 -2
  43. package/src/js/pds-core/pds-enums.js +9 -0
  44. package/src/js/pds-core/pds-generator.js +245 -143
  45. package/src/js/pds-core/pds-live.js +2 -0
  46. package/src/js/pds-core/pds-ontology.js +47 -20
  47. package/src/js/pds-core/pds-query.js +1 -1
  48. package/src/js/pds-core/pds-start-helpers.js +2 -6
  49. package/src/js/pds.js +8 -0
@@ -497,7 +497,7 @@ Before generating code:
497
497
  5. ✅ **Use semantic HTML** — `<button>`, `<nav>`, `<article>`, `<label>`, `<details>`
498
498
  6. ✅ **Apply enhancements via data-* attributes** — See `pds-enhancers.js` → `defaultPDSEnhancerMetadata`
499
499
  7. ✅ **Components as last resort** — Only when native HTML can't achieve it
500
- 8. ✅ **Prefer primitives** — `.card`, `.badge`, `.alert` over custom components
500
+ 8. ✅ **Prefer primitives** — `.card`, `.badge`, `.callout` over custom components
501
501
  9. ✅ **Wait for lazy components** — Use `await customElements.whenDefined()` before accessing APIs
502
502
  10. ✅ **Include import map** — When using `pds-form` or `pds-drawer`, ensure `#pds/lit` is mapped
503
503
 
package/INTELLISENSE.md CHANGED
@@ -225,7 +225,7 @@ Progressive enhancement attributes with example code:
225
225
  ### CSS Classes (50+ utilities)
226
226
 
227
227
  **Primitives**:
228
- - `.badge`, `.card`, `.surface`, `.alert`, `.dialog`, `.table`, `.button`
228
+ - `.badge`, `.card`, `.surface`, `.callout`, `.dialog`, `.table`, `.button`
229
229
 
230
230
  **Layout**:
231
231
  - `.flex`, `.grid`, `.grid-cols-{1-6}`, `.grid-auto-{sm|md|lg|xl}`, `.container`
@@ -506,6 +506,185 @@
506
506
  }
507
507
  ]
508
508
  },
509
+ {
510
+ "kind": "javascript-module",
511
+ "path": "public/assets/pds/components/pds-fab.js",
512
+ "declarations": [
513
+ {
514
+ "kind": "class",
515
+ "description": "Floating Action Button (FAB) with expandable satellite actions",
516
+ "name": "PdsFab",
517
+ "cssProperties": [
518
+ {
519
+ "description": "Size of the main FAB button (default: 64px)",
520
+ "name": "--fab-size"
521
+ },
522
+ {
523
+ "description": "Background color of the main FAB (default: var(--color-primary-600))",
524
+ "name": "--fab-bg"
525
+ },
526
+ {
527
+ "description": "Foreground color of the main FAB (default: white)",
528
+ "name": "--fab-fg"
529
+ },
530
+ {
531
+ "description": "Size of satellite buttons (default: 48px)",
532
+ "name": "--sat-size"
533
+ },
534
+ {
535
+ "description": "Background color of satellites (default: var(--color-surface-elevated))",
536
+ "name": "--sat-bg"
537
+ },
538
+ {
539
+ "description": "Foreground color of satellites (default: var(--color-text-primary))",
540
+ "name": "--sat-fg"
541
+ },
542
+ {
543
+ "description": "Distance of satellites from main FAB (default: 100px)",
544
+ "name": "--radius"
545
+ },
546
+ {
547
+ "description": "Animation duration (default: 420ms)",
548
+ "name": "--transition-duration"
549
+ }
550
+ ],
551
+ "cssParts": [
552
+ {
553
+ "description": "The main FAB button",
554
+ "name": "fab"
555
+ },
556
+ {
557
+ "description": "Individual satellite buttons",
558
+ "name": "satellite"
559
+ },
560
+ {
561
+ "description": "Satellite button labels",
562
+ "name": "label"
563
+ }
564
+ ],
565
+ "slots": [
566
+ {
567
+ "description": "Main FAB button content (typically an icon or avatar)",
568
+ "name": ""
569
+ },
570
+ {
571
+ "description": "Override individual satellite button content",
572
+ "name": "satellite-{key}"
573
+ }
574
+ ],
575
+ "members": [
576
+ {
577
+ "kind": "field",
578
+ "name": "open",
579
+ "description": "Controls whether the FAB is expanded",
580
+ "type": {
581
+ "text": "boolean"
582
+ },
583
+ "attribute": "open"
584
+ },
585
+ {
586
+ "kind": "field",
587
+ "name": "radius",
588
+ "description": "Distance in pixels from the main FAB to satellites",
589
+ "type": {
590
+ "text": "number"
591
+ },
592
+ "default": "100",
593
+ "attribute": "radius"
594
+ },
595
+ {
596
+ "kind": "field",
597
+ "name": "spread",
598
+ "description": "Arc angle in degrees for satellite distribution",
599
+ "type": {
600
+ "text": "number"
601
+ },
602
+ "default": "90",
603
+ "attribute": "spread"
604
+ },
605
+ {
606
+ "kind": "field",
607
+ "name": "startAngle",
608
+ "description": "Starting angle in degrees (0=right, 90=down, 180=left, 270=up). Auto-detected based on FAB corner position if not specified: bottom-right=180°, bottom-left=315°, top-right=225°, top-left=45°",
609
+ "type": {
610
+ "text": "number"
611
+ },
612
+ "default": "180",
613
+ "attribute": "start-angle"
614
+ },
615
+ {
616
+ "kind": "field",
617
+ "name": "satellites",
618
+ "description": "Array of satellite button configurations",
619
+ "type": {
620
+ "text": "Array<{key: string, icon?: string, label?: string, action?: string}>"
621
+ }
622
+ }
623
+ ],
624
+ "events": [
625
+ {
626
+ "description": "Fired when a satellite button is clicked",
627
+ "name": "satellite-click",
628
+ "type": {
629
+ "text": "CustomEvent"
630
+ }
631
+ }
632
+ ],
633
+ "attributes": [
634
+ {
635
+ "name": "open",
636
+ "type": {
637
+ "text": "boolean"
638
+ },
639
+ "description": "Controls whether the FAB is expanded",
640
+ "fieldName": "open"
641
+ },
642
+ {
643
+ "name": "radius",
644
+ "type": {
645
+ "text": "number"
646
+ },
647
+ "default": "100",
648
+ "description": "Distance in pixels from the main FAB to satellites",
649
+ "fieldName": "radius"
650
+ },
651
+ {
652
+ "name": "spread",
653
+ "type": {
654
+ "text": "number"
655
+ },
656
+ "default": "90",
657
+ "description": "Arc angle in degrees for satellite distribution",
658
+ "fieldName": "spread"
659
+ },
660
+ {
661
+ "name": "start-angle",
662
+ "type": {
663
+ "text": "number"
664
+ },
665
+ "default": "180",
666
+ "description": "Starting angle in degrees (0=right, 90=down, 180=left, 270=up). Auto-detected based on FAB corner position if not specified: bottom-right=180°, bottom-left=315°, top-right=225°, top-left=45°",
667
+ "fieldName": "startAngle"
668
+ }
669
+ ],
670
+ "superclass": {
671
+ "name": "HTMLElement"
672
+ },
673
+ "tagName": "pds-fab",
674
+ "customElement": true
675
+ }
676
+ ],
677
+ "exports": [
678
+ {
679
+ "kind": "custom-element-definition",
680
+ "name": "pds-fab",
681
+ "declaration": {
682
+ "name": "PdsFab",
683
+ "module": "public/assets/pds/components/pds-fab.js"
684
+ }
685
+ }
686
+ ]
687
+ },
509
688
  {
510
689
  "kind": "javascript-module",
511
690
  "path": "public/assets/pds/components/pds-form.js",
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=pds-configurator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-configurator.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-configurator.js"],"names":[],"mappings":""}