@genesislcap/foundation-utils 14.442.0 → 14.443.1-alpha-3fbf238.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 +522 -522
  2. package/package.json +11 -11
@@ -211,190 +211,60 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/data/inMemoryDatabase.ts",
214
+ "path": "src/decorators/index.ts",
215
+ "declarations": [],
216
+ "exports": [
217
+ {
218
+ "kind": "js",
219
+ "name": "*",
220
+ "declaration": {
221
+ "name": "*",
222
+ "package": "./renderOnChange"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "javascript-module",
229
+ "path": "src/decorators/renderOnChange.ts",
215
230
  "declarations": [
216
231
  {
217
- "kind": "class",
218
- "description": "An in memory database of specific DatabaseRecord types.",
219
- "name": "InMemoryDatabase",
220
- "members": [
232
+ "kind": "function",
233
+ "name": "renderOnChange",
234
+ "parameters": [
221
235
  {
222
- "kind": "field",
223
- "name": "isWorking",
236
+ "name": "target",
224
237
  "type": {
225
- "text": "boolean"
238
+ "text": "FASTElement & { render(): void }"
226
239
  },
227
- "privacy": "public",
228
- "default": "false"
240
+ "description": "The target to define the property change handler on."
229
241
  },
230
242
  {
231
- "kind": "field",
232
- "name": "records",
243
+ "name": "name",
233
244
  "type": {
234
- "text": "Record<string, T>"
235
- },
236
- "privacy": "private",
237
- "default": "{}"
238
- },
239
- {
240
- "kind": "field",
241
- "name": "beforeUpdateListeners",
242
- "privacy": "private"
243
- },
244
- {
245
- "kind": "field",
246
- "name": "afterUpdateListeners",
247
- "privacy": "private"
248
- },
249
- {
250
- "kind": "method",
251
- "name": "create",
252
- "privacy": "public",
253
- "return": {
254
- "type": {
255
- "text": "Promise<DatabaseAccessResult.Create<T>>"
256
- }
257
- },
258
- "parameters": [
259
- {
260
- "name": "newValue",
261
- "type": {
262
- "text": "Omit<T, 'id'>"
263
- }
264
- }
265
- ]
266
- },
267
- {
268
- "kind": "method",
269
- "name": "read",
270
- "privacy": "public",
271
- "return": {
272
- "type": {
273
- "text": "Promise<DatabaseAccessResult.Read<T>>"
274
- }
275
- },
276
- "parameters": [
277
- {
278
- "name": "id",
279
- "type": {
280
- "text": "string"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "update",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<DatabaseAccessResult.Update<T>>"
292
- }
293
- },
294
- "parameters": [
295
- {
296
- "name": "id",
297
- "type": {
298
- "text": "string"
299
- }
300
- },
301
- {
302
- "name": "newValue",
303
- "type": {
304
- "text": "Omit<Partial<T>, 'id'>"
305
- }
306
- }
307
- ]
308
- },
309
- {
310
- "kind": "method",
311
- "name": "delete",
312
- "privacy": "public",
313
- "return": {
314
- "type": {
315
- "text": "Promise<DatabaseAccessResult.Delete>"
316
- }
317
- },
318
- "parameters": [
319
- {
320
- "name": "id",
321
- "type": {
322
- "text": "string"
323
- }
324
- }
325
- ]
326
- },
327
- {
328
- "kind": "method",
329
- "name": "visit",
330
- "privacy": "public",
331
- "return": {
332
- "type": {
333
- "text": "Promise<void>"
334
- }
335
- },
336
- "parameters": [
337
- {
338
- "name": "visitor",
339
- "type": {
340
- "text": "(record: T) => void"
341
- }
342
- }
343
- ]
344
- },
345
- {
346
- "kind": "method",
347
- "name": "onBeforeUpdate",
348
- "privacy": "public",
349
- "return": {
350
- "type": {
351
- "text": "() => void"
352
- }
353
- },
354
- "parameters": [
355
- {
356
- "name": "listener",
357
- "type": {
358
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
359
- }
360
- }
361
- ]
362
- },
363
- {
364
- "kind": "method",
365
- "name": "onAfterUpdate",
366
- "privacy": "public",
367
- "return": {
368
- "type": {
369
- "text": "() => void"
370
- }
245
+ "text": "string"
371
246
  },
372
- "parameters": [
373
- {
374
- "name": "listener",
375
- "type": {
376
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
377
- }
378
- }
379
- ]
247
+ "description": "The property name."
380
248
  }
381
- ]
249
+ ],
250
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
251
+ "privacy": "public"
382
252
  }
383
253
  ],
384
254
  "exports": [
385
255
  {
386
256
  "kind": "js",
387
- "name": "InMemoryDatabase",
257
+ "name": "renderOnChange",
388
258
  "declaration": {
389
- "name": "InMemoryDatabase",
390
- "module": "src/data/inMemoryDatabase.ts"
259
+ "name": "renderOnChange",
260
+ "module": "src/decorators/renderOnChange.ts"
391
261
  }
392
262
  }
393
263
  ]
394
264
  },
395
265
  {
396
266
  "kind": "javascript-module",
397
- "path": "src/data/index.ts",
267
+ "path": "src/directives/index.ts",
398
268
  "declarations": [],
399
269
  "exports": [
400
270
  {
@@ -402,14 +272,22 @@
402
272
  "name": "*",
403
273
  "declaration": {
404
274
  "name": "*",
405
- "package": "./inMemoryDatabase"
275
+ "package": "./sync"
276
+ }
277
+ },
278
+ {
279
+ "kind": "js",
280
+ "name": "*",
281
+ "declaration": {
282
+ "name": "*",
283
+ "package": "./when-else"
406
284
  }
407
285
  }
408
286
  ]
409
287
  },
410
288
  {
411
289
  "kind": "javascript-module",
412
- "path": "src/directives/index.ts",
290
+ "path": "src/converters/index.ts",
413
291
  "declarations": [],
414
292
  "exports": [
415
293
  {
@@ -417,282 +295,57 @@
417
295
  "name": "*",
418
296
  "declaration": {
419
297
  "name": "*",
420
- "package": "./sync"
298
+ "package": "./string-array-converter"
421
299
  }
422
- },
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "kind": "javascript-module",
305
+ "path": "src/converters/string-array-converter.ts",
306
+ "declarations": [
307
+ {
308
+ "kind": "variable",
309
+ "name": "stringArrayConverter",
310
+ "type": {
311
+ "text": "ValueConverter"
312
+ },
313
+ "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}",
314
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
315
+ "privacy": "public"
316
+ }
317
+ ],
318
+ "exports": [
319
+ {
320
+ "kind": "js",
321
+ "name": "stringArrayConverter",
322
+ "declaration": {
323
+ "name": "stringArrayConverter",
324
+ "module": "src/converters/string-array-converter.ts"
325
+ }
326
+ }
327
+ ]
328
+ },
329
+ {
330
+ "kind": "javascript-module",
331
+ "path": "src/encoding/index.ts",
332
+ "declarations": [],
333
+ "exports": [
423
334
  {
424
335
  "kind": "js",
425
336
  "name": "*",
426
337
  "declaration": {
427
338
  "name": "*",
428
- "package": "./when-else"
339
+ "package": "./base64"
429
340
  }
430
341
  }
431
342
  ]
432
343
  },
433
344
  {
434
345
  "kind": "javascript-module",
435
- "path": "src/design-system/design-system.ts",
436
- "declarations": [
437
- {
438
- "kind": "function",
439
- "name": "assureDesignSystem",
440
- "return": {
441
- "type": {
442
- "text": "DesignSystemModule"
443
- }
444
- },
445
- "parameters": [
446
- {
447
- "name": "module",
448
- "type": {
449
- "text": "DesignSystemModule"
450
- }
451
- }
452
- ],
453
- "description": "assureDesignSystem.",
454
- "privacy": "public"
455
- },
456
- {
457
- "kind": "function",
458
- "name": "getCurrentDesignSystem",
459
- "return": {
460
- "type": {
461
- "text": ""
462
- }
463
- },
464
- "parameters": [
465
- {
466
- "name": "element",
467
- "type": {
468
- "text": "HTMLElement"
469
- },
470
- "description": "The starting HTML element"
471
- },
472
- {
473
- "name": "fallbackPrefix",
474
- "type": {
475
- "text": "string"
476
- },
477
- "description": "The prefix to fallback to if the provider is not available"
478
- }
479
- ],
480
- "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.",
481
- "privacy": "public"
482
- },
483
- {
484
- "kind": "function",
485
- "name": "getCurrentDesignSystemPrefix",
486
- "return": {
487
- "type": {
488
- "text": ""
489
- }
490
- },
491
- "parameters": [
492
- {
493
- "name": "element",
494
- "type": {
495
- "text": "HTMLElement"
496
- },
497
- "description": "The starting HTML element"
498
- },
499
- {
500
- "name": "fallbackPrefix",
501
- "type": {
502
- "text": "string"
503
- },
504
- "description": "The prefix to fallback to if the provider is not available"
505
- }
506
- ],
507
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
508
- "privacy": "public"
509
- }
510
- ],
511
- "exports": [
512
- {
513
- "kind": "js",
514
- "name": "assureDesignSystem",
515
- "declaration": {
516
- "name": "assureDesignSystem",
517
- "module": "src/design-system/design-system.ts"
518
- }
519
- },
520
- {
521
- "kind": "js",
522
- "name": "getCurrentDesignSystem",
523
- "declaration": {
524
- "name": "getCurrentDesignSystem",
525
- "module": "src/design-system/design-system.ts"
526
- }
527
- },
528
- {
529
- "kind": "js",
530
- "name": "getCurrentDesignSystemPrefix",
531
- "declaration": {
532
- "name": "getCurrentDesignSystemPrefix",
533
- "module": "src/design-system/design-system.ts"
534
- }
535
- }
536
- ]
537
- },
538
- {
539
- "kind": "javascript-module",
540
- "path": "src/design-system/editable-elements.ts",
541
- "declarations": [
542
- {
543
- "kind": "variable",
544
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
545
- "type": {
546
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
547
- },
548
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
549
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
550
- },
551
- {
552
- "kind": "variable",
553
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
554
- "type": {
555
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
556
- },
557
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
558
- "description": "Design-system specific editable host selectors."
559
- },
560
- {
561
- "kind": "function",
562
- "name": "buildEditableElementSelector",
563
- "return": {
564
- "type": {
565
- "text": "string"
566
- }
567
- },
568
- "parameters": [
569
- {
570
- "name": "designSystems",
571
- "type": {
572
- "text": "readonly EditableDesignSystemPrefix[]"
573
- }
574
- },
575
- {
576
- "name": "customEditableSelectors",
577
- "default": "[]",
578
- "type": {
579
- "text": "readonly string[]"
580
- }
581
- }
582
- ]
583
- }
584
- ],
585
- "exports": [
586
- {
587
- "kind": "js",
588
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
589
- "declaration": {
590
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
591
- "module": "src/design-system/editable-elements.ts"
592
- }
593
- },
594
- {
595
- "kind": "js",
596
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
597
- "declaration": {
598
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
599
- "module": "src/design-system/editable-elements.ts"
600
- }
601
- },
602
- {
603
- "kind": "js",
604
- "name": "buildEditableElementSelector",
605
- "declaration": {
606
- "name": "buildEditableElementSelector",
607
- "module": "src/design-system/editable-elements.ts"
608
- }
609
- }
610
- ]
611
- },
612
- {
613
- "kind": "javascript-module",
614
- "path": "src/design-system/index.ts",
615
- "declarations": [],
616
- "exports": [
617
- {
618
- "kind": "js",
619
- "name": "*",
620
- "declaration": {
621
- "name": "*",
622
- "package": "./design-system"
623
- }
624
- },
625
- {
626
- "kind": "js",
627
- "name": "*",
628
- "declaration": {
629
- "name": "*",
630
- "package": "./editable-elements"
631
- }
632
- }
633
- ]
634
- },
635
- {
636
- "kind": "javascript-module",
637
- "path": "src/encoding/index.ts",
638
- "declarations": [],
639
- "exports": [
640
- {
641
- "kind": "js",
642
- "name": "*",
643
- "declaration": {
644
- "name": "*",
645
- "package": "./base64"
646
- }
647
- }
648
- ]
649
- },
650
- {
651
- "kind": "javascript-module",
652
- "path": "src/converters/index.ts",
653
- "declarations": [],
654
- "exports": [
655
- {
656
- "kind": "js",
657
- "name": "*",
658
- "declaration": {
659
- "name": "*",
660
- "package": "./string-array-converter"
661
- }
662
- }
663
- ]
664
- },
665
- {
666
- "kind": "javascript-module",
667
- "path": "src/converters/string-array-converter.ts",
668
- "declarations": [
669
- {
670
- "kind": "variable",
671
- "name": "stringArrayConverter",
672
- "type": {
673
- "text": "ValueConverter"
674
- },
675
- "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}",
676
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
677
- "privacy": "public"
678
- }
679
- ],
680
- "exports": [
681
- {
682
- "kind": "js",
683
- "name": "stringArrayConverter",
684
- "declaration": {
685
- "name": "stringArrayConverter",
686
- "module": "src/converters/string-array-converter.ts"
687
- }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "javascript-module",
693
- "path": "src/env/index.ts",
694
- "declarations": [],
695
- "exports": [
346
+ "path": "src/env/index.ts",
347
+ "declarations": [],
348
+ "exports": [
696
349
  {
697
350
  "kind": "js",
698
351
  "name": "*",
@@ -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.442.0",
4
+ "version": "14.443.1-alpha-3fbf238.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.442.0",
33
- "@genesislcap/genx": "14.442.0",
34
- "@genesislcap/rollup-builder": "14.442.0",
35
- "@genesislcap/ts-builder": "14.442.0",
36
- "@genesislcap/uvu-playwright-builder": "14.442.0",
37
- "@genesislcap/vite-builder": "14.442.0",
38
- "@genesislcap/webpack-builder": "14.442.0",
32
+ "@genesislcap/foundation-testing": "14.443.1-alpha-3fbf238.0",
33
+ "@genesislcap/genx": "14.443.1-alpha-3fbf238.0",
34
+ "@genesislcap/rollup-builder": "14.443.1-alpha-3fbf238.0",
35
+ "@genesislcap/ts-builder": "14.443.1-alpha-3fbf238.0",
36
+ "@genesislcap/uvu-playwright-builder": "14.443.1-alpha-3fbf238.0",
37
+ "@genesislcap/vite-builder": "14.443.1-alpha-3fbf238.0",
38
+ "@genesislcap/webpack-builder": "14.443.1-alpha-3fbf238.0",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.442.0",
43
- "@genesislcap/foundation-logger": "14.442.0",
42
+ "@genesislcap/expression-builder": "14.443.1-alpha-3fbf238.0",
43
+ "@genesislcap/foundation-logger": "14.443.1-alpha-3fbf238.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": "ad425e4ea17dad7d5b580200f2ca31758896d07f"
61
+ "gitHead": "144e5165ddad3e82f50599102a4f2d157cbb5ddf"
62
62
  }