@genesislcap/foundation-utils 14.432.2-form-change-handlers.1 → 14.433.0

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 (2) hide show
  1. package/dist/custom-elements.json +504 -504
  2. package/package.json +11 -11
@@ -211,7 +211,7 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/converters/index.ts",
214
+ "path": "src/decorators/index.ts",
215
215
  "declarations": [],
216
216
  "exports": [
217
217
  {
@@ -219,223 +219,90 @@
219
219
  "name": "*",
220
220
  "declaration": {
221
221
  "name": "*",
222
- "package": "./string-array-converter"
222
+ "package": "./renderOnChange"
223
223
  }
224
224
  }
225
225
  ]
226
226
  },
227
227
  {
228
228
  "kind": "javascript-module",
229
- "path": "src/converters/string-array-converter.ts",
229
+ "path": "src/decorators/renderOnChange.ts",
230
230
  "declarations": [
231
231
  {
232
- "kind": "variable",
233
- "name": "stringArrayConverter",
234
- "type": {
235
- "text": "ValueConverter"
236
- },
237
- "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
238
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
232
+ "kind": "function",
233
+ "name": "renderOnChange",
234
+ "parameters": [
235
+ {
236
+ "name": "target",
237
+ "type": {
238
+ "text": "FASTElement & { render(): void }"
239
+ },
240
+ "description": "The target to define the property change handler on."
241
+ },
242
+ {
243
+ "name": "name",
244
+ "type": {
245
+ "text": "string"
246
+ },
247
+ "description": "The property name."
248
+ }
249
+ ],
250
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
239
251
  "privacy": "public"
240
252
  }
241
253
  ],
242
254
  "exports": [
243
255
  {
244
256
  "kind": "js",
245
- "name": "stringArrayConverter",
257
+ "name": "renderOnChange",
246
258
  "declaration": {
247
- "name": "stringArrayConverter",
248
- "module": "src/converters/string-array-converter.ts"
259
+ "name": "renderOnChange",
260
+ "module": "src/decorators/renderOnChange.ts"
249
261
  }
250
262
  }
251
263
  ]
252
264
  },
253
265
  {
254
266
  "kind": "javascript-module",
255
- "path": "src/data/inMemoryDatabase.ts",
256
- "declarations": [
267
+ "path": "src/directives/index.ts",
268
+ "declarations": [],
269
+ "exports": [
257
270
  {
258
- "kind": "class",
259
- "description": "An in memory database of specific DatabaseRecord types.",
260
- "name": "InMemoryDatabase",
261
- "members": [
262
- {
263
- "kind": "field",
264
- "name": "isWorking",
265
- "type": {
266
- "text": "boolean"
267
- },
268
- "privacy": "public",
269
- "default": "false"
270
- },
271
- {
272
- "kind": "field",
273
- "name": "records",
274
- "type": {
275
- "text": "Record<string, T>"
276
- },
277
- "privacy": "private",
278
- "default": "{}"
279
- },
280
- {
281
- "kind": "field",
282
- "name": "beforeUpdateListeners",
283
- "privacy": "private"
284
- },
285
- {
286
- "kind": "field",
287
- "name": "afterUpdateListeners",
288
- "privacy": "private"
289
- },
290
- {
291
- "kind": "method",
292
- "name": "create",
293
- "privacy": "public",
294
- "return": {
295
- "type": {
296
- "text": "Promise<DatabaseAccessResult.Create<T>>"
297
- }
298
- },
299
- "parameters": [
300
- {
301
- "name": "newValue",
302
- "type": {
303
- "text": "Omit<T, 'id'>"
304
- }
305
- }
306
- ]
307
- },
308
- {
309
- "kind": "method",
310
- "name": "read",
311
- "privacy": "public",
312
- "return": {
313
- "type": {
314
- "text": "Promise<DatabaseAccessResult.Read<T>>"
315
- }
316
- },
317
- "parameters": [
318
- {
319
- "name": "id",
320
- "type": {
321
- "text": "string"
322
- }
323
- }
324
- ]
325
- },
326
- {
327
- "kind": "method",
328
- "name": "update",
329
- "privacy": "public",
330
- "return": {
331
- "type": {
332
- "text": "Promise<DatabaseAccessResult.Update<T>>"
333
- }
334
- },
335
- "parameters": [
336
- {
337
- "name": "id",
338
- "type": {
339
- "text": "string"
340
- }
341
- },
342
- {
343
- "name": "newValue",
344
- "type": {
345
- "text": "Omit<Partial<T>, 'id'>"
346
- }
347
- }
348
- ]
349
- },
350
- {
351
- "kind": "method",
352
- "name": "delete",
353
- "privacy": "public",
354
- "return": {
355
- "type": {
356
- "text": "Promise<DatabaseAccessResult.Delete>"
357
- }
358
- },
359
- "parameters": [
360
- {
361
- "name": "id",
362
- "type": {
363
- "text": "string"
364
- }
365
- }
366
- ]
367
- },
368
- {
369
- "kind": "method",
370
- "name": "visit",
371
- "privacy": "public",
372
- "return": {
373
- "type": {
374
- "text": "Promise<void>"
375
- }
376
- },
377
- "parameters": [
378
- {
379
- "name": "visitor",
380
- "type": {
381
- "text": "(record: T) => void"
382
- }
383
- }
384
- ]
385
- },
386
- {
387
- "kind": "method",
388
- "name": "onBeforeUpdate",
389
- "privacy": "public",
390
- "return": {
391
- "type": {
392
- "text": "() => void"
393
- }
394
- },
395
- "parameters": [
396
- {
397
- "name": "listener",
398
- "type": {
399
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
- }
401
- }
402
- ]
403
- },
404
- {
405
- "kind": "method",
406
- "name": "onAfterUpdate",
407
- "privacy": "public",
408
- "return": {
409
- "type": {
410
- "text": "() => void"
411
- }
412
- },
413
- "parameters": [
414
- {
415
- "name": "listener",
416
- "type": {
417
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
- }
419
- }
420
- ]
421
- }
422
- ]
271
+ "kind": "js",
272
+ "name": "*",
273
+ "declaration": {
274
+ "name": "*",
275
+ "package": "./sync"
276
+ }
277
+ },
278
+ {
279
+ "kind": "js",
280
+ "name": "*",
281
+ "declaration": {
282
+ "name": "*",
283
+ "package": "./when-else"
284
+ }
423
285
  }
424
- ],
286
+ ]
287
+ },
288
+ {
289
+ "kind": "javascript-module",
290
+ "path": "src/encoding/index.ts",
291
+ "declarations": [],
425
292
  "exports": [
426
293
  {
427
294
  "kind": "js",
428
- "name": "InMemoryDatabase",
295
+ "name": "*",
429
296
  "declaration": {
430
- "name": "InMemoryDatabase",
431
- "module": "src/data/inMemoryDatabase.ts"
297
+ "name": "*",
298
+ "package": "./base64"
432
299
  }
433
300
  }
434
301
  ]
435
302
  },
436
303
  {
437
304
  "kind": "javascript-module",
438
- "path": "src/data/index.ts",
305
+ "path": "src/converters/index.ts",
439
306
  "declarations": [],
440
307
  "exports": [
441
308
  {
@@ -443,247 +310,33 @@
443
310
  "name": "*",
444
311
  "declaration": {
445
312
  "name": "*",
446
- "package": "./inMemoryDatabase"
313
+ "package": "./string-array-converter"
447
314
  }
448
315
  }
449
316
  ]
450
317
  },
451
318
  {
452
319
  "kind": "javascript-module",
453
- "path": "src/design-system/design-system.ts",
320
+ "path": "src/converters/string-array-converter.ts",
454
321
  "declarations": [
455
322
  {
456
- "kind": "function",
457
- "name": "assureDesignSystem",
458
- "return": {
459
- "type": {
460
- "text": "DesignSystemModule"
461
- }
323
+ "kind": "variable",
324
+ "name": "stringArrayConverter",
325
+ "type": {
326
+ "text": "ValueConverter"
462
327
  },
463
- "parameters": [
464
- {
465
- "name": "module",
466
- "type": {
467
- "text": "DesignSystemModule"
468
- }
469
- }
470
- ],
471
- "description": "assureDesignSystem.",
472
- "privacy": "public"
473
- },
474
- {
475
- "kind": "function",
476
- "name": "getCurrentDesignSystem",
477
- "return": {
478
- "type": {
479
- "text": ""
480
- }
481
- },
482
- "parameters": [
483
- {
484
- "name": "element",
485
- "type": {
486
- "text": "HTMLElement"
487
- },
488
- "description": "The starting HTML element"
489
- },
490
- {
491
- "name": "fallbackPrefix",
492
- "type": {
493
- "text": "string"
494
- },
495
- "description": "The prefix to fallback to if the provider is not available"
496
- }
497
- ],
498
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
499
- "privacy": "public"
500
- },
501
- {
502
- "kind": "function",
503
- "name": "getCurrentDesignSystemPrefix",
504
- "return": {
505
- "type": {
506
- "text": ""
507
- }
508
- },
509
- "parameters": [
510
- {
511
- "name": "element",
512
- "type": {
513
- "text": "HTMLElement"
514
- },
515
- "description": "The starting HTML element"
516
- },
517
- {
518
- "name": "fallbackPrefix",
519
- "type": {
520
- "text": "string"
521
- },
522
- "description": "The prefix to fallback to if the provider is not available"
523
- }
524
- ],
525
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
328
+ "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
329
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
526
330
  "privacy": "public"
527
331
  }
528
332
  ],
529
333
  "exports": [
530
334
  {
531
335
  "kind": "js",
532
- "name": "assureDesignSystem",
533
- "declaration": {
534
- "name": "assureDesignSystem",
535
- "module": "src/design-system/design-system.ts"
536
- }
537
- },
538
- {
539
- "kind": "js",
540
- "name": "getCurrentDesignSystem",
541
- "declaration": {
542
- "name": "getCurrentDesignSystem",
543
- "module": "src/design-system/design-system.ts"
544
- }
545
- },
546
- {
547
- "kind": "js",
548
- "name": "getCurrentDesignSystemPrefix",
549
- "declaration": {
550
- "name": "getCurrentDesignSystemPrefix",
551
- "module": "src/design-system/design-system.ts"
552
- }
553
- }
554
- ]
555
- },
556
- {
557
- "kind": "javascript-module",
558
- "path": "src/design-system/editable-elements.ts",
559
- "declarations": [
560
- {
561
- "kind": "variable",
562
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
563
- "type": {
564
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
565
- },
566
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
567
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
568
- },
569
- {
570
- "kind": "variable",
571
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
572
- "type": {
573
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
574
- },
575
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
576
- "description": "Design-system specific editable host selectors."
577
- },
578
- {
579
- "kind": "function",
580
- "name": "buildEditableElementSelector",
581
- "return": {
582
- "type": {
583
- "text": "string"
584
- }
585
- },
586
- "parameters": [
587
- {
588
- "name": "designSystems",
589
- "type": {
590
- "text": "readonly EditableDesignSystemPrefix[]"
591
- }
592
- },
593
- {
594
- "name": "customEditableSelectors",
595
- "default": "[]",
596
- "type": {
597
- "text": "readonly string[]"
598
- }
599
- }
600
- ]
601
- }
602
- ],
603
- "exports": [
604
- {
605
- "kind": "js",
606
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
607
- "declaration": {
608
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
609
- "module": "src/design-system/editable-elements.ts"
610
- }
611
- },
612
- {
613
- "kind": "js",
614
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
615
- "declaration": {
616
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
617
- "module": "src/design-system/editable-elements.ts"
618
- }
619
- },
620
- {
621
- "kind": "js",
622
- "name": "buildEditableElementSelector",
623
- "declaration": {
624
- "name": "buildEditableElementSelector",
625
- "module": "src/design-system/editable-elements.ts"
626
- }
627
- }
628
- ]
629
- },
630
- {
631
- "kind": "javascript-module",
632
- "path": "src/design-system/index.ts",
633
- "declarations": [],
634
- "exports": [
635
- {
636
- "kind": "js",
637
- "name": "*",
638
- "declaration": {
639
- "name": "*",
640
- "package": "./design-system"
641
- }
642
- },
643
- {
644
- "kind": "js",
645
- "name": "*",
646
- "declaration": {
647
- "name": "*",
648
- "package": "./editable-elements"
649
- }
650
- }
651
- ]
652
- },
653
- {
654
- "kind": "javascript-module",
655
- "path": "src/directives/index.ts",
656
- "declarations": [],
657
- "exports": [
658
- {
659
- "kind": "js",
660
- "name": "*",
661
- "declaration": {
662
- "name": "*",
663
- "package": "./sync"
664
- }
665
- },
666
- {
667
- "kind": "js",
668
- "name": "*",
669
- "declaration": {
670
- "name": "*",
671
- "package": "./when-else"
672
- }
673
- }
674
- ]
675
- },
676
- {
677
- "kind": "javascript-module",
678
- "path": "src/encoding/index.ts",
679
- "declarations": [],
680
- "exports": [
681
- {
682
- "kind": "js",
683
- "name": "*",
336
+ "name": "stringArrayConverter",
684
337
  "declaration": {
685
- "name": "*",
686
- "package": "./base64"
338
+ "name": "stringArrayConverter",
339
+ "module": "src/converters/string-array-converter.ts"
687
340
  }
688
341
  }
689
342
  ]
@@ -1059,113 +712,490 @@
1059
712
  },
1060
713
  {
1061
714
  "kind": "js",
1062
- "name": "DEFAULT_PASSWORD",
715
+ "name": "DEFAULT_PASSWORD",
716
+ "declaration": {
717
+ "name": "_DEFAULT_PASSWORD",
718
+ "module": "src/env/variables.ts"
719
+ }
720
+ },
721
+ {
722
+ "kind": "js",
723
+ "name": "DEFAULT_USER",
724
+ "declaration": {
725
+ "name": "_DEFAULT_USER",
726
+ "module": "src/env/variables.ts"
727
+ }
728
+ },
729
+ {
730
+ "kind": "js",
731
+ "name": "LOGIN_URL",
732
+ "declaration": {
733
+ "name": "LOGIN_URL",
734
+ "module": "src/env/variables.ts"
735
+ }
736
+ },
737
+ {
738
+ "kind": "js",
739
+ "name": "LOGIN_REFRESH_URL",
740
+ "declaration": {
741
+ "name": "LOGIN_REFRESH_URL",
742
+ "module": "src/env/variables.ts"
743
+ }
744
+ },
745
+ {
746
+ "kind": "js",
747
+ "name": "LOGIN_DETAILS_URL",
748
+ "declaration": {
749
+ "name": "LOGIN_DETAILS_URL",
750
+ "module": "src/env/variables.ts"
751
+ }
752
+ },
753
+ {
754
+ "kind": "js",
755
+ "name": "LOGOUT_URL",
756
+ "declaration": {
757
+ "name": "LOGOUT_URL",
758
+ "module": "src/env/variables.ts"
759
+ }
760
+ },
761
+ {
762
+ "kind": "js",
763
+ "name": "CHANGE_PASSWORD_URL",
764
+ "declaration": {
765
+ "name": "CHANGE_PASSWORD_URL",
766
+ "module": "src/env/variables.ts"
767
+ }
768
+ },
769
+ {
770
+ "kind": "js",
771
+ "name": "FORGOT_PASSWORD_URL",
772
+ "declaration": {
773
+ "name": "FORGOT_PASSWORD_URL",
774
+ "module": "src/env/variables.ts"
775
+ }
776
+ },
777
+ {
778
+ "kind": "js",
779
+ "name": "RESET_PASSWORD_URL",
780
+ "declaration": {
781
+ "name": "RESET_PASSWORD_URL",
782
+ "module": "src/env/variables.ts"
783
+ }
784
+ },
785
+ {
786
+ "kind": "js",
787
+ "name": "SSO_LIST_URL",
788
+ "declaration": {
789
+ "name": "SSO_LIST_URL",
790
+ "module": "src/env/variables.ts"
791
+ }
792
+ },
793
+ {
794
+ "kind": "js",
795
+ "name": "SSO_LOGIN_URL",
796
+ "declaration": {
797
+ "name": "SSO_LOGIN_URL",
798
+ "module": "src/env/variables.ts"
799
+ }
800
+ },
801
+ {
802
+ "kind": "js",
803
+ "name": "ENVIRONMENT_LEVEL",
804
+ "declaration": {
805
+ "name": "ENVIRONMENT_LEVEL",
806
+ "module": "src/env/variables.ts"
807
+ }
808
+ },
809
+ {
810
+ "kind": "js",
811
+ "name": "ACCEPT_TERMS_URL",
812
+ "declaration": {
813
+ "name": "ACCEPT_TERMS_URL",
814
+ "module": "src/env/variables.ts"
815
+ }
816
+ }
817
+ ]
818
+ },
819
+ {
820
+ "kind": "javascript-module",
821
+ "path": "src/data/inMemoryDatabase.ts",
822
+ "declarations": [
823
+ {
824
+ "kind": "class",
825
+ "description": "An in memory database of specific DatabaseRecord types.",
826
+ "name": "InMemoryDatabase",
827
+ "members": [
828
+ {
829
+ "kind": "field",
830
+ "name": "isWorking",
831
+ "type": {
832
+ "text": "boolean"
833
+ },
834
+ "privacy": "public",
835
+ "default": "false"
836
+ },
837
+ {
838
+ "kind": "field",
839
+ "name": "records",
840
+ "type": {
841
+ "text": "Record<string, T>"
842
+ },
843
+ "privacy": "private",
844
+ "default": "{}"
845
+ },
846
+ {
847
+ "kind": "field",
848
+ "name": "beforeUpdateListeners",
849
+ "privacy": "private"
850
+ },
851
+ {
852
+ "kind": "field",
853
+ "name": "afterUpdateListeners",
854
+ "privacy": "private"
855
+ },
856
+ {
857
+ "kind": "method",
858
+ "name": "create",
859
+ "privacy": "public",
860
+ "return": {
861
+ "type": {
862
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
863
+ }
864
+ },
865
+ "parameters": [
866
+ {
867
+ "name": "newValue",
868
+ "type": {
869
+ "text": "Omit<T, 'id'>"
870
+ }
871
+ }
872
+ ]
873
+ },
874
+ {
875
+ "kind": "method",
876
+ "name": "read",
877
+ "privacy": "public",
878
+ "return": {
879
+ "type": {
880
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
881
+ }
882
+ },
883
+ "parameters": [
884
+ {
885
+ "name": "id",
886
+ "type": {
887
+ "text": "string"
888
+ }
889
+ }
890
+ ]
891
+ },
892
+ {
893
+ "kind": "method",
894
+ "name": "update",
895
+ "privacy": "public",
896
+ "return": {
897
+ "type": {
898
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
899
+ }
900
+ },
901
+ "parameters": [
902
+ {
903
+ "name": "id",
904
+ "type": {
905
+ "text": "string"
906
+ }
907
+ },
908
+ {
909
+ "name": "newValue",
910
+ "type": {
911
+ "text": "Omit<Partial<T>, 'id'>"
912
+ }
913
+ }
914
+ ]
915
+ },
916
+ {
917
+ "kind": "method",
918
+ "name": "delete",
919
+ "privacy": "public",
920
+ "return": {
921
+ "type": {
922
+ "text": "Promise<DatabaseAccessResult.Delete>"
923
+ }
924
+ },
925
+ "parameters": [
926
+ {
927
+ "name": "id",
928
+ "type": {
929
+ "text": "string"
930
+ }
931
+ }
932
+ ]
933
+ },
934
+ {
935
+ "kind": "method",
936
+ "name": "visit",
937
+ "privacy": "public",
938
+ "return": {
939
+ "type": {
940
+ "text": "Promise<void>"
941
+ }
942
+ },
943
+ "parameters": [
944
+ {
945
+ "name": "visitor",
946
+ "type": {
947
+ "text": "(record: T) => void"
948
+ }
949
+ }
950
+ ]
951
+ },
952
+ {
953
+ "kind": "method",
954
+ "name": "onBeforeUpdate",
955
+ "privacy": "public",
956
+ "return": {
957
+ "type": {
958
+ "text": "() => void"
959
+ }
960
+ },
961
+ "parameters": [
962
+ {
963
+ "name": "listener",
964
+ "type": {
965
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
966
+ }
967
+ }
968
+ ]
969
+ },
970
+ {
971
+ "kind": "method",
972
+ "name": "onAfterUpdate",
973
+ "privacy": "public",
974
+ "return": {
975
+ "type": {
976
+ "text": "() => void"
977
+ }
978
+ },
979
+ "parameters": [
980
+ {
981
+ "name": "listener",
982
+ "type": {
983
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
984
+ }
985
+ }
986
+ ]
987
+ }
988
+ ]
989
+ }
990
+ ],
991
+ "exports": [
992
+ {
993
+ "kind": "js",
994
+ "name": "InMemoryDatabase",
1063
995
  "declaration": {
1064
- "name": "_DEFAULT_PASSWORD",
1065
- "module": "src/env/variables.ts"
996
+ "name": "InMemoryDatabase",
997
+ "module": "src/data/inMemoryDatabase.ts"
1066
998
  }
1067
- },
999
+ }
1000
+ ]
1001
+ },
1002
+ {
1003
+ "kind": "javascript-module",
1004
+ "path": "src/data/index.ts",
1005
+ "declarations": [],
1006
+ "exports": [
1068
1007
  {
1069
1008
  "kind": "js",
1070
- "name": "DEFAULT_USER",
1009
+ "name": "*",
1071
1010
  "declaration": {
1072
- "name": "_DEFAULT_USER",
1073
- "module": "src/env/variables.ts"
1011
+ "name": "*",
1012
+ "package": "./inMemoryDatabase"
1074
1013
  }
1075
- },
1014
+ }
1015
+ ]
1016
+ },
1017
+ {
1018
+ "kind": "javascript-module",
1019
+ "path": "src/design-system/design-system.ts",
1020
+ "declarations": [
1076
1021
  {
1077
- "kind": "js",
1078
- "name": "LOGIN_URL",
1079
- "declaration": {
1080
- "name": "LOGIN_URL",
1081
- "module": "src/env/variables.ts"
1082
- }
1022
+ "kind": "function",
1023
+ "name": "assureDesignSystem",
1024
+ "return": {
1025
+ "type": {
1026
+ "text": "DesignSystemModule"
1027
+ }
1028
+ },
1029
+ "parameters": [
1030
+ {
1031
+ "name": "module",
1032
+ "type": {
1033
+ "text": "DesignSystemModule"
1034
+ }
1035
+ }
1036
+ ],
1037
+ "description": "assureDesignSystem.",
1038
+ "privacy": "public"
1083
1039
  },
1084
1040
  {
1085
- "kind": "js",
1086
- "name": "LOGIN_REFRESH_URL",
1087
- "declaration": {
1088
- "name": "LOGIN_REFRESH_URL",
1089
- "module": "src/env/variables.ts"
1090
- }
1041
+ "kind": "function",
1042
+ "name": "getCurrentDesignSystem",
1043
+ "return": {
1044
+ "type": {
1045
+ "text": ""
1046
+ }
1047
+ },
1048
+ "parameters": [
1049
+ {
1050
+ "name": "element",
1051
+ "type": {
1052
+ "text": "HTMLElement"
1053
+ },
1054
+ "description": "The starting HTML element"
1055
+ },
1056
+ {
1057
+ "name": "fallbackPrefix",
1058
+ "type": {
1059
+ "text": "string"
1060
+ },
1061
+ "description": "The prefix to fallback to if the provider is not available"
1062
+ }
1063
+ ],
1064
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1065
+ "privacy": "public"
1091
1066
  },
1092
1067
  {
1093
- "kind": "js",
1094
- "name": "LOGIN_DETAILS_URL",
1095
- "declaration": {
1096
- "name": "LOGIN_DETAILS_URL",
1097
- "module": "src/env/variables.ts"
1098
- }
1099
- },
1068
+ "kind": "function",
1069
+ "name": "getCurrentDesignSystemPrefix",
1070
+ "return": {
1071
+ "type": {
1072
+ "text": ""
1073
+ }
1074
+ },
1075
+ "parameters": [
1076
+ {
1077
+ "name": "element",
1078
+ "type": {
1079
+ "text": "HTMLElement"
1080
+ },
1081
+ "description": "The starting HTML element"
1082
+ },
1083
+ {
1084
+ "name": "fallbackPrefix",
1085
+ "type": {
1086
+ "text": "string"
1087
+ },
1088
+ "description": "The prefix to fallback to if the provider is not available"
1089
+ }
1090
+ ],
1091
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1092
+ "privacy": "public"
1093
+ }
1094
+ ],
1095
+ "exports": [
1100
1096
  {
1101
1097
  "kind": "js",
1102
- "name": "LOGOUT_URL",
1098
+ "name": "assureDesignSystem",
1103
1099
  "declaration": {
1104
- "name": "LOGOUT_URL",
1105
- "module": "src/env/variables.ts"
1100
+ "name": "assureDesignSystem",
1101
+ "module": "src/design-system/design-system.ts"
1106
1102
  }
1107
1103
  },
1108
1104
  {
1109
1105
  "kind": "js",
1110
- "name": "CHANGE_PASSWORD_URL",
1106
+ "name": "getCurrentDesignSystem",
1111
1107
  "declaration": {
1112
- "name": "CHANGE_PASSWORD_URL",
1113
- "module": "src/env/variables.ts"
1108
+ "name": "getCurrentDesignSystem",
1109
+ "module": "src/design-system/design-system.ts"
1114
1110
  }
1115
1111
  },
1116
1112
  {
1117
1113
  "kind": "js",
1118
- "name": "FORGOT_PASSWORD_URL",
1114
+ "name": "getCurrentDesignSystemPrefix",
1119
1115
  "declaration": {
1120
- "name": "FORGOT_PASSWORD_URL",
1121
- "module": "src/env/variables.ts"
1116
+ "name": "getCurrentDesignSystemPrefix",
1117
+ "module": "src/design-system/design-system.ts"
1122
1118
  }
1123
- },
1119
+ }
1120
+ ]
1121
+ },
1122
+ {
1123
+ "kind": "javascript-module",
1124
+ "path": "src/design-system/editable-elements.ts",
1125
+ "declarations": [
1124
1126
  {
1125
- "kind": "js",
1126
- "name": "RESET_PASSWORD_URL",
1127
- "declaration": {
1128
- "name": "RESET_PASSWORD_URL",
1129
- "module": "src/env/variables.ts"
1130
- }
1127
+ "kind": "variable",
1128
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1129
+ "type": {
1130
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
1131
+ },
1132
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
1133
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
1131
1134
  },
1132
1135
  {
1133
- "kind": "js",
1134
- "name": "SSO_LIST_URL",
1135
- "declaration": {
1136
- "name": "SSO_LIST_URL",
1137
- "module": "src/env/variables.ts"
1138
- }
1136
+ "kind": "variable",
1137
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1138
+ "type": {
1139
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
1140
+ },
1141
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
1142
+ "description": "Design-system specific editable host selectors."
1139
1143
  },
1144
+ {
1145
+ "kind": "function",
1146
+ "name": "buildEditableElementSelector",
1147
+ "return": {
1148
+ "type": {
1149
+ "text": "string"
1150
+ }
1151
+ },
1152
+ "parameters": [
1153
+ {
1154
+ "name": "designSystems",
1155
+ "type": {
1156
+ "text": "readonly EditableDesignSystemPrefix[]"
1157
+ }
1158
+ },
1159
+ {
1160
+ "name": "customEditableSelectors",
1161
+ "default": "[]",
1162
+ "type": {
1163
+ "text": "readonly string[]"
1164
+ }
1165
+ }
1166
+ ]
1167
+ }
1168
+ ],
1169
+ "exports": [
1140
1170
  {
1141
1171
  "kind": "js",
1142
- "name": "SSO_LOGIN_URL",
1172
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1143
1173
  "declaration": {
1144
- "name": "SSO_LOGIN_URL",
1145
- "module": "src/env/variables.ts"
1174
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
1175
+ "module": "src/design-system/editable-elements.ts"
1146
1176
  }
1147
1177
  },
1148
1178
  {
1149
1179
  "kind": "js",
1150
- "name": "ENVIRONMENT_LEVEL",
1180
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1151
1181
  "declaration": {
1152
- "name": "ENVIRONMENT_LEVEL",
1153
- "module": "src/env/variables.ts"
1182
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
1183
+ "module": "src/design-system/editable-elements.ts"
1154
1184
  }
1155
1185
  },
1156
1186
  {
1157
1187
  "kind": "js",
1158
- "name": "ACCEPT_TERMS_URL",
1188
+ "name": "buildEditableElementSelector",
1159
1189
  "declaration": {
1160
- "name": "ACCEPT_TERMS_URL",
1161
- "module": "src/env/variables.ts"
1190
+ "name": "buildEditableElementSelector",
1191
+ "module": "src/design-system/editable-elements.ts"
1162
1192
  }
1163
1193
  }
1164
1194
  ]
1165
1195
  },
1166
1196
  {
1167
1197
  "kind": "javascript-module",
1168
- "path": "src/decorators/index.ts",
1198
+ "path": "src/design-system/index.ts",
1169
1199
  "declarations": [],
1170
1200
  "exports": [
1171
1201
  {
@@ -1173,45 +1203,15 @@
1173
1203
  "name": "*",
1174
1204
  "declaration": {
1175
1205
  "name": "*",
1176
- "package": "./renderOnChange"
1206
+ "package": "./design-system"
1177
1207
  }
1178
- }
1179
- ]
1180
- },
1181
- {
1182
- "kind": "javascript-module",
1183
- "path": "src/decorators/renderOnChange.ts",
1184
- "declarations": [
1185
- {
1186
- "kind": "function",
1187
- "name": "renderOnChange",
1188
- "parameters": [
1189
- {
1190
- "name": "target",
1191
- "type": {
1192
- "text": "FASTElement & { render(): void }"
1193
- },
1194
- "description": "The target to define the property change handler on."
1195
- },
1196
- {
1197
- "name": "name",
1198
- "type": {
1199
- "text": "string"
1200
- },
1201
- "description": "The property name."
1202
- }
1203
- ],
1204
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1205
- "privacy": "public"
1206
- }
1207
- ],
1208
- "exports": [
1208
+ },
1209
1209
  {
1210
1210
  "kind": "js",
1211
- "name": "renderOnChange",
1211
+ "name": "*",
1212
1212
  "declaration": {
1213
- "name": "renderOnChange",
1214
- "module": "src/decorators/renderOnChange.ts"
1213
+ "name": "*",
1214
+ "package": "./editable-elements"
1215
1215
  }
1216
1216
  }
1217
1217
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.432.2-form-change-handlers.1",
4
+ "version": "14.433.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.432.2-form-change-handlers.1",
33
- "@genesislcap/genx": "14.432.2-form-change-handlers.1",
34
- "@genesislcap/rollup-builder": "14.432.2-form-change-handlers.1",
35
- "@genesislcap/ts-builder": "14.432.2-form-change-handlers.1",
36
- "@genesislcap/uvu-playwright-builder": "14.432.2-form-change-handlers.1",
37
- "@genesislcap/vite-builder": "14.432.2-form-change-handlers.1",
38
- "@genesislcap/webpack-builder": "14.432.2-form-change-handlers.1",
32
+ "@genesislcap/foundation-testing": "14.433.0",
33
+ "@genesislcap/genx": "14.433.0",
34
+ "@genesislcap/rollup-builder": "14.433.0",
35
+ "@genesislcap/ts-builder": "14.433.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.433.0",
37
+ "@genesislcap/vite-builder": "14.433.0",
38
+ "@genesislcap/webpack-builder": "14.433.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.432.2-form-change-handlers.1",
43
- "@genesislcap/foundation-logger": "14.432.2-form-change-handlers.1",
42
+ "@genesislcap/expression-builder": "14.433.0",
43
+ "@genesislcap/foundation-logger": "14.433.0",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "ef280884f0ec941ca44c7147cba30ef643143bc9"
61
+ "gitHead": "0ddedcdfa75d7b64b9c7b1397dcfa3008e23cd04"
62
62
  }