@pure-ds/core 0.4.18 → 0.4.19
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/CSS-INTELLISENSE-QUICK-REF.md +2 -2
- package/custom-elements.json +174 -170
- package/dist/types/pds.d.ts +2 -2
- package/dist/types/public/assets/js/pds.d.ts +3 -3
- package/dist/types/public/assets/js/pds.d.ts.map +1 -1
- package/dist/types/public/assets/pds/components/{pds-jsonform.d.ts → pds-form.d.ts} +10 -9
- package/dist/types/public/assets/pds/components/pds-form.d.ts.map +1 -0
- package/dist/types/src/js/pds-core/pds-generator.d.ts.map +1 -1
- package/dist/types/src/node-api/pds-api.d.ts +31 -0
- package/dist/types/src/node-api/pds-api.d.ts.map +1 -0
- package/package.json +1 -1
- package/packages/pds-cli/bin/pds.js +1 -1
- package/public/assets/js/app.js +6 -11
- package/public/assets/js/pds.js +3 -8
- package/public/assets/pds/components/{pds-jsonform.js → pds-form.js} +536 -45
- package/public/assets/pds/custom-elements.json +8 -8
- package/public/assets/pds/vscode-custom-data.json +63 -63
- package/readme.md +4 -4
- package/src/js/pds-core/pds-generator.js +3 -8
- package/src/js/pds-core/pds-ontology.js +5 -5
- package/src/js/pds.d.ts +2 -2
- package/dist/types/public/assets/pds/components/pds-jsonform.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# CSS IntelliSense Quick Reference
|
|
1
|
+
# CSS IntelliSense Quick Reference
|
|
2
2
|
|
|
3
3
|
Quick reference for using PDS IntelliSense in your projects.
|
|
4
4
|
|
|
@@ -208,7 +208,7 @@ Progressive enhancement attributes (with IntelliSense):
|
|
|
208
208
|
<pds-drawer position="right|left|top|bottom">
|
|
209
209
|
<pds-icon icon="star|heart|bell|...">
|
|
210
210
|
<pds-upload accept="image/*">
|
|
211
|
-
<pds-
|
|
211
|
+
<pds-form>
|
|
212
212
|
<pds-tabstrip>
|
|
213
213
|
<pds-toaster>
|
|
214
214
|
<pds-richtext>
|
package/custom-elements.json
CHANGED
|
@@ -508,174 +508,11 @@
|
|
|
508
508
|
},
|
|
509
509
|
{
|
|
510
510
|
"kind": "javascript-module",
|
|
511
|
-
"path": "public/assets/pds/components/pds-
|
|
511
|
+
"path": "public/assets/pds/components/pds-form.js",
|
|
512
512
|
"declarations": [
|
|
513
513
|
{
|
|
514
514
|
"kind": "class",
|
|
515
|
-
"description": "
|
|
516
|
-
"name": "SvgIcon",
|
|
517
|
-
"members": [
|
|
518
|
-
{
|
|
519
|
-
"kind": "field",
|
|
520
|
-
"name": "spritePromises",
|
|
521
|
-
"static": true,
|
|
522
|
-
"default": "new Map()"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
"kind": "field",
|
|
526
|
-
"name": "inlineSprites",
|
|
527
|
-
"static": true,
|
|
528
|
-
"default": "new Map()"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"kind": "field",
|
|
532
|
-
"name": "externalIconCache",
|
|
533
|
-
"static": true,
|
|
534
|
-
"default": "new Map()"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
"kind": "field",
|
|
538
|
-
"name": "externalIconPromises",
|
|
539
|
-
"static": true,
|
|
540
|
-
"default": "new Map()"
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"kind": "field",
|
|
544
|
-
"name": "instances",
|
|
545
|
-
"static": true,
|
|
546
|
-
"default": "new Set()"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"kind": "method",
|
|
550
|
-
"name": "spriteAvailable",
|
|
551
|
-
"description": "Check if sprite sheet is available",
|
|
552
|
-
"privacy": "public",
|
|
553
|
-
"return": {
|
|
554
|
-
"type": {
|
|
555
|
-
"text": "boolean"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"kind": "method",
|
|
561
|
-
"name": "fetchExternalIcon",
|
|
562
|
-
"static": true,
|
|
563
|
-
"parameters": [
|
|
564
|
-
{
|
|
565
|
-
"name": "iconName",
|
|
566
|
-
"description": "The icon name (without .svg extension)",
|
|
567
|
-
"type": {
|
|
568
|
-
"text": "string"
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
],
|
|
572
|
-
"description": "Fetch an external SVG icon and cache it",
|
|
573
|
-
"return": {
|
|
574
|
-
"type": {
|
|
575
|
-
"text": "Promise<boolean>"
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"kind": "method",
|
|
581
|
-
"name": "ensureInlineSprite",
|
|
582
|
-
"static": true,
|
|
583
|
-
"parameters": [
|
|
584
|
-
{
|
|
585
|
-
"name": "spriteURL"
|
|
586
|
-
}
|
|
587
|
-
]
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"kind": "method",
|
|
591
|
-
"name": "notifyInstances",
|
|
592
|
-
"static": true
|
|
593
|
-
}
|
|
594
|
-
],
|
|
595
|
-
"attributes": [
|
|
596
|
-
{
|
|
597
|
-
"name": "icon",
|
|
598
|
-
"type": {
|
|
599
|
-
"text": "string"
|
|
600
|
-
},
|
|
601
|
-
"description": "Icon name from the sprite sheet"
|
|
602
|
-
},
|
|
603
|
-
{
|
|
604
|
-
"name": "size",
|
|
605
|
-
"type": {
|
|
606
|
-
"text": "string|number"
|
|
607
|
-
},
|
|
608
|
-
"description": "Icon size in pixels or named size (xs, sm, md, lg, xl, 2xl)"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
"name": "color",
|
|
612
|
-
"type": {
|
|
613
|
-
"text": "string"
|
|
614
|
-
},
|
|
615
|
-
"description": "Icon color (CSS color value, default: currentColor)"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"name": "label",
|
|
619
|
-
"type": {
|
|
620
|
-
"text": "string"
|
|
621
|
-
},
|
|
622
|
-
"description": "Accessible label for the icon (adds role=\"img\")"
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"name": "rotate",
|
|
626
|
-
"type": {
|
|
627
|
-
"text": "number"
|
|
628
|
-
},
|
|
629
|
-
"description": "Rotation angle in degrees"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
"type": {
|
|
633
|
-
"text": "string"
|
|
634
|
-
},
|
|
635
|
-
"description": "Override sprite sheet path",
|
|
636
|
-
"name": "sprite"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
"type": {
|
|
640
|
-
"text": "boolean"
|
|
641
|
-
},
|
|
642
|
-
"description": "Force fallback icon rendering",
|
|
643
|
-
"name": "no-sprite"
|
|
644
|
-
}
|
|
645
|
-
],
|
|
646
|
-
"superclass": {
|
|
647
|
-
"name": "HTMLElement"
|
|
648
|
-
},
|
|
649
|
-
"tagName": "pds-icon",
|
|
650
|
-
"customElement": true
|
|
651
|
-
}
|
|
652
|
-
],
|
|
653
|
-
"exports": [
|
|
654
|
-
{
|
|
655
|
-
"kind": "js",
|
|
656
|
-
"name": "SvgIcon",
|
|
657
|
-
"declaration": {
|
|
658
|
-
"name": "SvgIcon",
|
|
659
|
-
"module": "public/assets/pds/components/pds-icon.js"
|
|
660
|
-
}
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
"kind": "custom-element-definition",
|
|
664
|
-
"name": "pds-icon",
|
|
665
|
-
"declaration": {
|
|
666
|
-
"name": "SvgIcon",
|
|
667
|
-
"module": "public/assets/pds/components/pds-icon.js"
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
]
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"kind": "javascript-module",
|
|
674
|
-
"path": "public/assets/pds/components/pds-jsonform.js",
|
|
675
|
-
"declarations": [
|
|
676
|
-
{
|
|
677
|
-
"kind": "class",
|
|
678
|
-
"description": "<pds-jsonform>\n\nForm Actions:\nBy default, the form includes Submit and Reset buttons inside the <form> element.\n\nUsage options:\n1. Default buttons:\n <pds-jsonform .jsonSchema=${schema}></pds-jsonform>\n\n2. Customize labels:\n <pds-jsonform .jsonSchema=${schema} submit-label=\"Save\" reset-label=\"Clear\"></pds-jsonform>\n\n3. Hide reset button:\n <pds-jsonform .jsonSchema=${schema} hide-reset></pds-jsonform>\n\n4. Add extra buttons (slot):\n <pds-jsonform .jsonSchema=${schema}>\n <button type=\"button\" slot=\"actions\"",
|
|
515
|
+
"description": "<pds-form>\n\nForm Actions:\nBy default, the form includes Submit and Reset buttons inside the <form> element.\n\nUsage options:\n1. Default buttons:\n <pds-form .jsonSchema=${schema}></pds-form>\n\n2. Customize labels:\n <pds-form .jsonSchema=${schema} submit-label=\"Save\" reset-label=\"Clear\"></pds-form>\n\n3. Hide reset button:\n <pds-form .jsonSchema=${schema} hide-reset></pds-form>\n\n4. Add extra buttons (slot):\n <pds-form .jsonSchema=${schema}>\n <button type=\"button\" slot=\"actions\"",
|
|
679
516
|
"name": "SchemaForm",
|
|
680
517
|
"members": [
|
|
681
518
|
{
|
|
@@ -711,6 +548,10 @@
|
|
|
711
548
|
"kind": "method",
|
|
712
549
|
"name": "submit"
|
|
713
550
|
},
|
|
551
|
+
{
|
|
552
|
+
"kind": "method",
|
|
553
|
+
"name": "reset"
|
|
554
|
+
},
|
|
714
555
|
{
|
|
715
556
|
"kind": "field",
|
|
716
557
|
"name": "jsonSchema",
|
|
@@ -953,9 +794,9 @@
|
|
|
953
794
|
],
|
|
954
795
|
"superclass": {
|
|
955
796
|
"name": "LitElement",
|
|
956
|
-
"module": "/public/assets/pds/components/pds-
|
|
797
|
+
"module": "/public/assets/pds/components/pds-form.js"
|
|
957
798
|
},
|
|
958
|
-
"tagName": "pds-
|
|
799
|
+
"tagName": "pds-form",
|
|
959
800
|
"customElement": true
|
|
960
801
|
}
|
|
961
802
|
],
|
|
@@ -965,15 +806,178 @@
|
|
|
965
806
|
"name": "SchemaForm",
|
|
966
807
|
"declaration": {
|
|
967
808
|
"name": "SchemaForm",
|
|
968
|
-
"module": "public/assets/pds/components/pds-
|
|
809
|
+
"module": "public/assets/pds/components/pds-form.js"
|
|
969
810
|
}
|
|
970
811
|
},
|
|
971
812
|
{
|
|
972
813
|
"kind": "custom-element-definition",
|
|
973
|
-
"name": "pds-
|
|
814
|
+
"name": "pds-form",
|
|
974
815
|
"declaration": {
|
|
975
816
|
"name": "SchemaForm",
|
|
976
|
-
"module": "public/assets/pds/components/pds-
|
|
817
|
+
"module": "public/assets/pds/components/pds-form.js"
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
]
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"kind": "javascript-module",
|
|
824
|
+
"path": "public/assets/pds/components/pds-icon.js",
|
|
825
|
+
"declarations": [
|
|
826
|
+
{
|
|
827
|
+
"kind": "class",
|
|
828
|
+
"description": "SVG Icon Web Component",
|
|
829
|
+
"name": "SvgIcon",
|
|
830
|
+
"members": [
|
|
831
|
+
{
|
|
832
|
+
"kind": "field",
|
|
833
|
+
"name": "spritePromises",
|
|
834
|
+
"static": true,
|
|
835
|
+
"default": "new Map()"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"kind": "field",
|
|
839
|
+
"name": "inlineSprites",
|
|
840
|
+
"static": true,
|
|
841
|
+
"default": "new Map()"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"kind": "field",
|
|
845
|
+
"name": "externalIconCache",
|
|
846
|
+
"static": true,
|
|
847
|
+
"default": "new Map()"
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"kind": "field",
|
|
851
|
+
"name": "externalIconPromises",
|
|
852
|
+
"static": true,
|
|
853
|
+
"default": "new Map()"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"kind": "field",
|
|
857
|
+
"name": "instances",
|
|
858
|
+
"static": true,
|
|
859
|
+
"default": "new Set()"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"kind": "method",
|
|
863
|
+
"name": "spriteAvailable",
|
|
864
|
+
"description": "Check if sprite sheet is available",
|
|
865
|
+
"privacy": "public",
|
|
866
|
+
"return": {
|
|
867
|
+
"type": {
|
|
868
|
+
"text": "boolean"
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
"kind": "method",
|
|
874
|
+
"name": "fetchExternalIcon",
|
|
875
|
+
"static": true,
|
|
876
|
+
"parameters": [
|
|
877
|
+
{
|
|
878
|
+
"name": "iconName",
|
|
879
|
+
"description": "The icon name (without .svg extension)",
|
|
880
|
+
"type": {
|
|
881
|
+
"text": "string"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
],
|
|
885
|
+
"description": "Fetch an external SVG icon and cache it",
|
|
886
|
+
"return": {
|
|
887
|
+
"type": {
|
|
888
|
+
"text": "Promise<boolean>"
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
"kind": "method",
|
|
894
|
+
"name": "ensureInlineSprite",
|
|
895
|
+
"static": true,
|
|
896
|
+
"parameters": [
|
|
897
|
+
{
|
|
898
|
+
"name": "spriteURL"
|
|
899
|
+
}
|
|
900
|
+
]
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"kind": "method",
|
|
904
|
+
"name": "notifyInstances",
|
|
905
|
+
"static": true
|
|
906
|
+
}
|
|
907
|
+
],
|
|
908
|
+
"attributes": [
|
|
909
|
+
{
|
|
910
|
+
"name": "icon",
|
|
911
|
+
"type": {
|
|
912
|
+
"text": "string"
|
|
913
|
+
},
|
|
914
|
+
"description": "Icon name from the sprite sheet"
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
"name": "size",
|
|
918
|
+
"type": {
|
|
919
|
+
"text": "string|number"
|
|
920
|
+
},
|
|
921
|
+
"description": "Icon size in pixels or named size (xs, sm, md, lg, xl, 2xl)"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "color",
|
|
925
|
+
"type": {
|
|
926
|
+
"text": "string"
|
|
927
|
+
},
|
|
928
|
+
"description": "Icon color (CSS color value, default: currentColor)"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"name": "label",
|
|
932
|
+
"type": {
|
|
933
|
+
"text": "string"
|
|
934
|
+
},
|
|
935
|
+
"description": "Accessible label for the icon (adds role=\"img\")"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"name": "rotate",
|
|
939
|
+
"type": {
|
|
940
|
+
"text": "number"
|
|
941
|
+
},
|
|
942
|
+
"description": "Rotation angle in degrees"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"type": {
|
|
946
|
+
"text": "string"
|
|
947
|
+
},
|
|
948
|
+
"description": "Override sprite sheet path",
|
|
949
|
+
"name": "sprite"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"type": {
|
|
953
|
+
"text": "boolean"
|
|
954
|
+
},
|
|
955
|
+
"description": "Force fallback icon rendering",
|
|
956
|
+
"name": "no-sprite"
|
|
957
|
+
}
|
|
958
|
+
],
|
|
959
|
+
"superclass": {
|
|
960
|
+
"name": "HTMLElement"
|
|
961
|
+
},
|
|
962
|
+
"tagName": "pds-icon",
|
|
963
|
+
"customElement": true
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"exports": [
|
|
967
|
+
{
|
|
968
|
+
"kind": "js",
|
|
969
|
+
"name": "SvgIcon",
|
|
970
|
+
"declaration": {
|
|
971
|
+
"name": "SvgIcon",
|
|
972
|
+
"module": "public/assets/pds/components/pds-icon.js"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"kind": "custom-element-definition",
|
|
977
|
+
"name": "pds-icon",
|
|
978
|
+
"declaration": {
|
|
979
|
+
"name": "SvgIcon",
|
|
980
|
+
"module": "public/assets/pds/components/pds-icon.js"
|
|
977
981
|
}
|
|
978
982
|
}
|
|
979
983
|
]
|
package/dist/types/pds.d.ts
CHANGED
|
@@ -217,7 +217,7 @@ export class PDS extends EventTarget {
|
|
|
217
217
|
|
|
218
218
|
export { PDS as default };
|
|
219
219
|
|
|
220
|
-
// ===== pds-
|
|
220
|
+
// ===== pds-form Types =====
|
|
221
221
|
|
|
222
222
|
export interface JsonFormOptions {
|
|
223
223
|
widgets?: {
|
|
@@ -358,7 +358,7 @@ export interface JsonFormEventMap {
|
|
|
358
358
|
|
|
359
359
|
declare global {
|
|
360
360
|
interface HTMLElementTagNameMap {
|
|
361
|
-
'pds-
|
|
361
|
+
'pds-form': SchemaForm;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var f: {
|
|
2
2
|
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
|
|
3
3
|
dispatchEvent(event: Event): boolean;
|
|
4
4
|
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
declare function Et(n?: {}, e?: {}): {
|
|
7
7
|
ok: boolean;
|
|
8
8
|
issues: ({
|
|
9
9
|
path: string;
|
|
@@ -19,5 +19,5 @@ export function validateDesign(designConfig?: {}, options?: {}): {
|
|
|
19
19
|
context?: undefined;
|
|
20
20
|
})[];
|
|
21
21
|
};
|
|
22
|
-
export {
|
|
22
|
+
export { f as PDS, Et as validateDesign };
|
|
23
23
|
//# sourceMappingURL=pds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds.js"],"names":[],"mappings":"AA0oG6nS;;;;EAAQ;AAAsnF;;;;;;;;;;;;;;;EAA8sE"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <pds-
|
|
2
|
+
* <pds-form>
|
|
3
3
|
*
|
|
4
4
|
* Form Actions:
|
|
5
5
|
* By default, the form includes Submit and Reset buttons inside the <form> element.
|
|
6
6
|
*
|
|
7
7
|
* Usage options:
|
|
8
8
|
* 1. Default buttons:
|
|
9
|
-
* <pds-
|
|
9
|
+
* <pds-form .jsonSchema=${schema}></pds-form>
|
|
10
10
|
*
|
|
11
11
|
* 2. Customize labels:
|
|
12
|
-
* <pds-
|
|
12
|
+
* <pds-form .jsonSchema=${schema} submit-label="Save" reset-label="Clear"></pds-form>
|
|
13
13
|
*
|
|
14
14
|
* 3. Hide reset button:
|
|
15
|
-
* <pds-
|
|
15
|
+
* <pds-form .jsonSchema=${schema} hide-reset></pds-form>
|
|
16
16
|
*
|
|
17
17
|
* 4. Add extra buttons (slot):
|
|
18
|
-
* <pds-
|
|
18
|
+
* <pds-form .jsonSchema=${schema}>
|
|
19
19
|
* <button type="button" slot="actions" @click=${...}>Cancel</button>
|
|
20
|
-
* </pds-
|
|
20
|
+
* </pds-form>
|
|
21
21
|
*
|
|
22
22
|
* 5. Completely custom actions (hides default buttons):
|
|
23
|
-
* <pds-
|
|
23
|
+
* <pds-form .jsonSchema=${schema} hide-actions>
|
|
24
24
|
* <div slot="actions" class="flex gap-md">
|
|
25
25
|
* <button type="submit" class="btn btn-primary">Custom Submit</button>
|
|
26
26
|
* <button type="button" class="btn">Custom Action</button>
|
|
27
27
|
* </div>
|
|
28
|
-
* </pds-
|
|
28
|
+
* </pds-form>
|
|
29
29
|
*/
|
|
30
30
|
export class SchemaForm {
|
|
31
31
|
static properties: {
|
|
@@ -97,9 +97,10 @@ export class SchemaForm {
|
|
|
97
97
|
formData: FormData;
|
|
98
98
|
};
|
|
99
99
|
submit(): Promise<any>;
|
|
100
|
+
reset(): void;
|
|
100
101
|
connectedCallback(): void;
|
|
101
102
|
willUpdate(changed: any): void;
|
|
102
103
|
render(): any;
|
|
103
104
|
#private;
|
|
104
105
|
}
|
|
105
|
-
//# sourceMappingURL=pds-
|
|
106
|
+
//# sourceMappingURL=pds-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-form.d.ts","sourceRoot":"","sources":["../../../../../../public/assets/pds/components/pds-form.js"],"names":[],"mappings":"AAgCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcE;IAGF,yBAEC;IAgBC,gBAA2B;IAC3B,cAAyB;IACzB,aAAwB;IACxB,YAAuB;IACvB,eAAoB;IACpB,qBAAwB;IACxB,oBAA2B;IAC3B,mBAAyB;IACzB,mBAAsB;IACtB,oBAAuB;IAiBzB,8CAEC;IACD,4BAEC;IAGD,oBAEC;IAkBD;;;MAIC;IAED,uBAEC;IAED,cAIC;IAED,0BAcC;IAGD,+BAyBC;IA4eD,cA4CC;;CAilDF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pds-generator.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-generator.js"],"names":[],"mappings":"AAq6JA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,4CAjBW,UAAU,qBACV,aAAa,EAAE,GACb,OAAO,CAAC,IAAI,CAAC,CAqCzB;AAED;;;;;;;;GAQG;AACH,wCALW,UAAU,WACV,MAAM,EAAE,qBACR,aAAa,EAAE,GACb,OAAO,CAAC,IAAI,CAAC,CAmDzB;AAED;;;;;;GAMG;AACH,sCAHW,MAAM,GACJ,aAAa,CAMzB;AAvhKD;;;GAGG;AACH;IAEE,mCAAiB;IAEjB,2BAEC;IA2zJD;;;;OAIG;IACH,+BAFW,SAAS,QAgCnB;IAED;;;;OAIG;IACH,gDA6CC;IA34JD,0BA6CC;IA5CC;;MAIC;IAaD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAmC;IA6BrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBC;IAycD;;;;OAIG;IACH,kDAyBC;IA0ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6DC;IA8nGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEC;IAGD,oBAEC;IA8vBD,qBAEC;IACD,yBAEC;IACD,yBAEC;IACD,wBAEC;IACD,yBAMC;IAED;;;;;;OAMG;IACH,oBA6JC;IAGD,4BAEC;IACD,gCAEC;IACD,gCAEC;IACD,+BAEC;IAmBD;;;OAGG;IACH;;;;;;MAoBC;;CA2GF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generate modules map and metadata from a config object.
|
|
3
|
+
* @param {object} config
|
|
4
|
+
* @param {object} [opts]
|
|
5
|
+
* @returns {Promise<{modules: Record<string,string>, meta: object}>}
|
|
6
|
+
*/
|
|
7
|
+
export function generate(config: object, opts?: object): Promise<{
|
|
8
|
+
modules: Record<string, string>;
|
|
9
|
+
meta: object;
|
|
10
|
+
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Read config from file and generate modules.
|
|
13
|
+
* @param {string} configPath
|
|
14
|
+
* @param {object} [opts]
|
|
15
|
+
*/
|
|
16
|
+
export function generateFromFile(configPath: string, opts?: object): Promise<{
|
|
17
|
+
modules: Record<string, string>;
|
|
18
|
+
meta: object;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Watch a config file and call the writer on changes.
|
|
22
|
+
* @param {string} configPath
|
|
23
|
+
* @param {string} outDir
|
|
24
|
+
* @param {{onWrite?:Function}} opts
|
|
25
|
+
*/
|
|
26
|
+
export function watch(configPath: string, outDir: string, opts?: {
|
|
27
|
+
onWrite?: Function;
|
|
28
|
+
}): {
|
|
29
|
+
close(): void;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=pds-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pds-api.d.ts","sourceRoot":"","sources":["../../../../src/node-api/pds-api.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,iCAJW,MAAM,SACN,MAAM,GACJ,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAC,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,CAAC,CAgCnE;AAiBD;;;;GAIG;AACH,6CAHW,MAAM,SACN,MAAM;aApDc,MAAM,CAAC,MAAM,EAAC,MAAM,CAAC;UAAQ,MAAM;GA+DjE;AAED;;;;;GAKG;AACH,kCAJW,MAAM,UACN,MAAM,SACN;IAAC,OAAO,CAAC,WAAS;CAAC;;EA0B7B"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { generateFromFile, generate, watch as watchConfig } from '../../../src/
|
|
2
|
+
import { generateFromFile, generate, watch as watchConfig } from '../../../src/node-api/pds-api.js';
|
|
3
3
|
import { writeFilesAtomic } from '../lib/fs-writer.js';
|
|
4
4
|
import fs from 'fs';
|
|
5
5
|
import path from 'path';
|