@genesislcap/foundation-utils 14.148.1-alpha-eef6f33.0 → 14.150.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 +555 -555
  2. package/package.json +10 -10
@@ -151,6 +151,204 @@
151
151
  }
152
152
  ]
153
153
  },
154
+ {
155
+ "kind": "javascript-module",
156
+ "path": "src/data/inMemoryDatabase.ts",
157
+ "declarations": [
158
+ {
159
+ "kind": "class",
160
+ "description": "An in memory database of specific DatabaseRecord types.",
161
+ "name": "InMemoryDatabase",
162
+ "members": [
163
+ {
164
+ "kind": "field",
165
+ "name": "isWorking",
166
+ "type": {
167
+ "text": "boolean"
168
+ },
169
+ "privacy": "public",
170
+ "default": "false"
171
+ },
172
+ {
173
+ "kind": "field",
174
+ "name": "records",
175
+ "type": {
176
+ "text": "Record<string, T>"
177
+ },
178
+ "privacy": "private",
179
+ "default": "{}"
180
+ },
181
+ {
182
+ "kind": "field",
183
+ "name": "beforeUpdateListeners",
184
+ "privacy": "private"
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "afterUpdateListeners",
189
+ "privacy": "private"
190
+ },
191
+ {
192
+ "kind": "method",
193
+ "name": "create",
194
+ "privacy": "public",
195
+ "return": {
196
+ "type": {
197
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
198
+ }
199
+ },
200
+ "parameters": [
201
+ {
202
+ "name": "newValue",
203
+ "type": {
204
+ "text": "Omit<T, 'id'>"
205
+ }
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ "kind": "method",
211
+ "name": "read",
212
+ "privacy": "public",
213
+ "return": {
214
+ "type": {
215
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
216
+ }
217
+ },
218
+ "parameters": [
219
+ {
220
+ "name": "id",
221
+ "type": {
222
+ "text": "string"
223
+ }
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "kind": "method",
229
+ "name": "update",
230
+ "privacy": "public",
231
+ "return": {
232
+ "type": {
233
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
234
+ }
235
+ },
236
+ "parameters": [
237
+ {
238
+ "name": "id",
239
+ "type": {
240
+ "text": "string"
241
+ }
242
+ },
243
+ {
244
+ "name": "newValue",
245
+ "type": {
246
+ "text": "Omit<Partial<T>, 'id'>"
247
+ }
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "kind": "method",
253
+ "name": "delete",
254
+ "privacy": "public",
255
+ "return": {
256
+ "type": {
257
+ "text": "Promise<DatabaseAccessResult.Delete>"
258
+ }
259
+ },
260
+ "parameters": [
261
+ {
262
+ "name": "id",
263
+ "type": {
264
+ "text": "string"
265
+ }
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "kind": "method",
271
+ "name": "visit",
272
+ "privacy": "public",
273
+ "return": {
274
+ "type": {
275
+ "text": "Promise<void>"
276
+ }
277
+ },
278
+ "parameters": [
279
+ {
280
+ "name": "visitor",
281
+ "type": {
282
+ "text": "(record: T) => void"
283
+ }
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "kind": "method",
289
+ "name": "onBeforeUpdate",
290
+ "privacy": "public",
291
+ "return": {
292
+ "type": {
293
+ "text": "() => void"
294
+ }
295
+ },
296
+ "parameters": [
297
+ {
298
+ "name": "listener",
299
+ "type": {
300
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
301
+ }
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "kind": "method",
307
+ "name": "onAfterUpdate",
308
+ "privacy": "public",
309
+ "return": {
310
+ "type": {
311
+ "text": "() => void"
312
+ }
313
+ },
314
+ "parameters": [
315
+ {
316
+ "name": "listener",
317
+ "type": {
318
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
319
+ }
320
+ }
321
+ ]
322
+ }
323
+ ]
324
+ }
325
+ ],
326
+ "exports": [
327
+ {
328
+ "kind": "js",
329
+ "name": "InMemoryDatabase",
330
+ "declaration": {
331
+ "name": "InMemoryDatabase",
332
+ "module": "src/data/inMemoryDatabase.ts"
333
+ }
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "kind": "javascript-module",
339
+ "path": "src/data/index.ts",
340
+ "declarations": [],
341
+ "exports": [
342
+ {
343
+ "kind": "js",
344
+ "name": "*",
345
+ "declaration": {
346
+ "name": "*",
347
+ "package": "./inMemoryDatabase"
348
+ }
349
+ }
350
+ ]
351
+ },
154
352
  {
155
353
  "kind": "javascript-module",
156
354
  "path": "src/decorators/index.ts",
@@ -279,42 +477,265 @@
279
477
  },
280
478
  {
281
479
  "kind": "javascript-module",
282
- "path": "src/error/errorMap.ts",
480
+ "path": "src/env/index.ts",
481
+ "declarations": [],
482
+ "exports": [
483
+ {
484
+ "kind": "js",
485
+ "name": "*",
486
+ "declaration": {
487
+ "name": "*",
488
+ "package": "./is-dev"
489
+ }
490
+ },
491
+ {
492
+ "kind": "js",
493
+ "name": "*",
494
+ "declaration": {
495
+ "name": "*",
496
+ "package": "./variables"
497
+ }
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ "kind": "javascript-module",
503
+ "path": "src/env/is-dev.ts",
283
504
  "declarations": [
284
505
  {
285
- "kind": "class",
286
- "description": "",
287
- "name": "DefaultErrorMap",
288
- "members": [
289
- {
290
- "kind": "field",
291
- "name": "map",
292
- "privacy": "private",
293
- "default": "new Map<keyof TErrorDetailMap, Error>()"
294
- },
295
- {
296
- "kind": "field",
297
- "name": "lastError",
298
- "type": {
299
- "text": "Error"
300
- },
301
- "description": "{@inheritDoc ErrorMap.lastError}"
302
- },
303
- {
304
- "kind": "method",
305
- "name": "set",
306
- "return": {
307
- "type": {
308
- "text": "void"
309
- }
310
- },
311
- "parameters": [
312
- {
313
- "name": "key",
314
- "type": {
315
- "text": "keyof TErrorDetailMap"
316
- }
317
- },
506
+ "kind": "function",
507
+ "name": "isDev",
508
+ "description": "Determines if the current environment is a development environment.",
509
+ "privacy": "public"
510
+ }
511
+ ],
512
+ "exports": [
513
+ {
514
+ "kind": "js",
515
+ "name": "isDev",
516
+ "declaration": {
517
+ "name": "isDev",
518
+ "module": "src/env/is-dev.ts"
519
+ }
520
+ }
521
+ ]
522
+ },
523
+ {
524
+ "kind": "javascript-module",
525
+ "path": "src/env/variables.ts",
526
+ "declarations": [
527
+ {
528
+ "kind": "variable",
529
+ "name": "SOCKET_EXT",
530
+ "type": {
531
+ "text": "string"
532
+ }
533
+ },
534
+ {
535
+ "kind": "variable",
536
+ "name": "_SOCKET_EXT",
537
+ "type": {
538
+ "text": "string"
539
+ },
540
+ "default": "'gwf'",
541
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
542
+ "privacy": "public"
543
+ },
544
+ {
545
+ "kind": "variable",
546
+ "name": "FORCE_HTTP",
547
+ "type": {
548
+ "text": "string"
549
+ }
550
+ },
551
+ {
552
+ "kind": "variable",
553
+ "name": "_FORCE_HTTP",
554
+ "type": {
555
+ "text": "string"
556
+ },
557
+ "description": "The path to a JSON config file for the HTTP mode.",
558
+ "privacy": "public"
559
+ },
560
+ {
561
+ "kind": "variable",
562
+ "name": "API_HOST",
563
+ "type": {
564
+ "text": "string"
565
+ }
566
+ },
567
+ {
568
+ "kind": "variable",
569
+ "name": "_API_HOST",
570
+ "type": {
571
+ "text": "string"
572
+ },
573
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
574
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
575
+ "privacy": "public"
576
+ },
577
+ {
578
+ "kind": "variable",
579
+ "name": "HTTP_CONFIG",
580
+ "type": {
581
+ "text": "string"
582
+ }
583
+ },
584
+ {
585
+ "kind": "variable",
586
+ "name": "_HTTP_CONFIG",
587
+ "type": {
588
+ "text": "string"
589
+ },
590
+ "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
591
+ "privacy": "public"
592
+ },
593
+ {
594
+ "kind": "variable",
595
+ "name": "DEFAULT_ORGANISATION",
596
+ "type": {
597
+ "text": "string"
598
+ }
599
+ },
600
+ {
601
+ "kind": "variable",
602
+ "name": "_DEFAULT_ORGANISATION",
603
+ "type": {
604
+ "text": "string"
605
+ },
606
+ "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
607
+ "privacy": "public"
608
+ },
609
+ {
610
+ "kind": "variable",
611
+ "name": "DEFAULT_PASSWORD",
612
+ "type": {
613
+ "text": "string"
614
+ }
615
+ },
616
+ {
617
+ "kind": "variable",
618
+ "name": "_DEFAULT_PASSWORD",
619
+ "type": {
620
+ "text": "string"
621
+ },
622
+ "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
623
+ "privacy": "public"
624
+ },
625
+ {
626
+ "kind": "variable",
627
+ "name": "DEFAULT_USER",
628
+ "type": {
629
+ "text": "string"
630
+ }
631
+ },
632
+ {
633
+ "kind": "variable",
634
+ "name": "_DEFAULT_USER",
635
+ "type": {
636
+ "text": "string"
637
+ },
638
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
639
+ "privacy": "public"
640
+ }
641
+ ],
642
+ "exports": [
643
+ {
644
+ "kind": "js",
645
+ "name": "SOCKET_EXT",
646
+ "declaration": {
647
+ "name": "_SOCKET_EXT",
648
+ "module": "src/env/variables.ts"
649
+ }
650
+ },
651
+ {
652
+ "kind": "js",
653
+ "name": "FORCE_HTTP",
654
+ "declaration": {
655
+ "name": "_FORCE_HTTP",
656
+ "module": "src/env/variables.ts"
657
+ }
658
+ },
659
+ {
660
+ "kind": "js",
661
+ "name": "API_HOST",
662
+ "declaration": {
663
+ "name": "_API_HOST",
664
+ "module": "src/env/variables.ts"
665
+ }
666
+ },
667
+ {
668
+ "kind": "js",
669
+ "name": "HTTP_CONFIG",
670
+ "declaration": {
671
+ "name": "_HTTP_CONFIG",
672
+ "module": "src/env/variables.ts"
673
+ }
674
+ },
675
+ {
676
+ "kind": "js",
677
+ "name": "DEFAULT_ORGANISATION",
678
+ "declaration": {
679
+ "name": "_DEFAULT_ORGANISATION",
680
+ "module": "src/env/variables.ts"
681
+ }
682
+ },
683
+ {
684
+ "kind": "js",
685
+ "name": "DEFAULT_PASSWORD",
686
+ "declaration": {
687
+ "name": "_DEFAULT_PASSWORD",
688
+ "module": "src/env/variables.ts"
689
+ }
690
+ },
691
+ {
692
+ "kind": "js",
693
+ "name": "DEFAULT_USER",
694
+ "declaration": {
695
+ "name": "_DEFAULT_USER",
696
+ "module": "src/env/variables.ts"
697
+ }
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ "kind": "javascript-module",
703
+ "path": "src/error/errorMap.ts",
704
+ "declarations": [
705
+ {
706
+ "kind": "class",
707
+ "description": "",
708
+ "name": "DefaultErrorMap",
709
+ "members": [
710
+ {
711
+ "kind": "field",
712
+ "name": "map",
713
+ "privacy": "private",
714
+ "default": "new Map<keyof TErrorDetailMap, Error>()"
715
+ },
716
+ {
717
+ "kind": "field",
718
+ "name": "lastError",
719
+ "type": {
720
+ "text": "Error"
721
+ },
722
+ "description": "{@inheritDoc ErrorMap.lastError}"
723
+ },
724
+ {
725
+ "kind": "method",
726
+ "name": "set",
727
+ "return": {
728
+ "type": {
729
+ "text": "void"
730
+ }
731
+ },
732
+ "parameters": [
733
+ {
734
+ "name": "key",
735
+ "type": {
736
+ "text": "keyof TErrorDetailMap"
737
+ }
738
+ },
318
739
  {
319
740
  "name": "error",
320
741
  "type": {
@@ -618,467 +1039,61 @@
618
1039
  "kind": "field",
619
1040
  "name": "_separator",
620
1041
  "type": {
621
- "text": "RegExp"
622
- },
623
- "privacy": "private",
624
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
625
- },
626
- {
627
- "kind": "field",
628
- "name": "_numeral",
629
- "type": {
630
- "text": "RegExp"
631
- },
632
- "privacy": "private",
633
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
634
- },
635
- {
636
- "kind": "field",
637
- "name": "_index",
638
- "type": {
639
- "text": "any"
640
- },
641
- "privacy": "private"
642
- },
643
- {
644
- "kind": "method",
645
- "name": "parse",
646
- "parameters": [
647
- {
648
- "name": "localeNumber",
649
- "type": {
650
- "text": "string"
651
- }
652
- }
653
- ]
654
- },
655
- {
656
- "kind": "method",
657
- "name": "hasSeparator",
658
- "return": {
659
- "type": {
660
- "text": "boolean"
661
- }
662
- },
663
- "parameters": [
664
- {
665
- "name": "localeNumber",
666
- "type": {
667
- "text": "string"
668
- }
669
- }
670
- ]
671
- },
672
- {
673
- "kind": "field",
674
- "name": "_group",
675
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
676
- }
677
- ]
678
- }
679
- ],
680
- "exports": [
681
- {
682
- "kind": "js",
683
- "name": "NumberParser",
684
- "declaration": {
685
- "name": "NumberParser",
686
- "module": "src/formatters/localeNumberParser.ts"
687
- }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "javascript-module",
693
- "path": "src/env/index.ts",
694
- "declarations": [],
695
- "exports": [
696
- {
697
- "kind": "js",
698
- "name": "*",
699
- "declaration": {
700
- "name": "*",
701
- "package": "./is-dev"
702
- }
703
- },
704
- {
705
- "kind": "js",
706
- "name": "*",
707
- "declaration": {
708
- "name": "*",
709
- "package": "./variables"
710
- }
711
- }
712
- ]
713
- },
714
- {
715
- "kind": "javascript-module",
716
- "path": "src/env/is-dev.ts",
717
- "declarations": [
718
- {
719
- "kind": "function",
720
- "name": "isDev",
721
- "description": "Determines if the current environment is a development environment.",
722
- "privacy": "public"
723
- }
724
- ],
725
- "exports": [
726
- {
727
- "kind": "js",
728
- "name": "isDev",
729
- "declaration": {
730
- "name": "isDev",
731
- "module": "src/env/is-dev.ts"
732
- }
733
- }
734
- ]
735
- },
736
- {
737
- "kind": "javascript-module",
738
- "path": "src/env/variables.ts",
739
- "declarations": [
740
- {
741
- "kind": "variable",
742
- "name": "SOCKET_EXT",
743
- "type": {
744
- "text": "string"
745
- }
746
- },
747
- {
748
- "kind": "variable",
749
- "name": "_SOCKET_EXT",
750
- "type": {
751
- "text": "string"
752
- },
753
- "default": "'gwf'",
754
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
755
- "privacy": "public"
756
- },
757
- {
758
- "kind": "variable",
759
- "name": "FORCE_HTTP",
760
- "type": {
761
- "text": "string"
762
- }
763
- },
764
- {
765
- "kind": "variable",
766
- "name": "_FORCE_HTTP",
767
- "type": {
768
- "text": "string"
769
- },
770
- "description": "The path to a JSON config file for the HTTP mode.",
771
- "privacy": "public"
772
- },
773
- {
774
- "kind": "variable",
775
- "name": "API_HOST",
776
- "type": {
777
- "text": "string"
778
- }
779
- },
780
- {
781
- "kind": "variable",
782
- "name": "_API_HOST",
783
- "type": {
784
- "text": "string"
785
- },
786
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
787
- "description": "The Genesis Server URL (WebSocket or HTTP).",
788
- "privacy": "public"
789
- },
790
- {
791
- "kind": "variable",
792
- "name": "HTTP_CONFIG",
793
- "type": {
794
- "text": "string"
795
- }
796
- },
797
- {
798
- "kind": "variable",
799
- "name": "_HTTP_CONFIG",
800
- "type": {
801
- "text": "string"
802
- },
803
- "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
804
- "privacy": "public"
805
- },
806
- {
807
- "kind": "variable",
808
- "name": "DEFAULT_ORGANISATION",
809
- "type": {
810
- "text": "string"
811
- }
812
- },
813
- {
814
- "kind": "variable",
815
- "name": "_DEFAULT_ORGANISATION",
816
- "type": {
817
- "text": "string"
818
- },
819
- "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
820
- "privacy": "public"
821
- },
822
- {
823
- "kind": "variable",
824
- "name": "DEFAULT_PASSWORD",
825
- "type": {
826
- "text": "string"
827
- }
828
- },
829
- {
830
- "kind": "variable",
831
- "name": "_DEFAULT_PASSWORD",
832
- "type": {
833
- "text": "string"
834
- },
835
- "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
836
- "privacy": "public"
837
- },
838
- {
839
- "kind": "variable",
840
- "name": "DEFAULT_USER",
841
- "type": {
842
- "text": "string"
843
- }
844
- },
845
- {
846
- "kind": "variable",
847
- "name": "_DEFAULT_USER",
848
- "type": {
849
- "text": "string"
850
- },
851
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
852
- "privacy": "public"
853
- }
854
- ],
855
- "exports": [
856
- {
857
- "kind": "js",
858
- "name": "SOCKET_EXT",
859
- "declaration": {
860
- "name": "_SOCKET_EXT",
861
- "module": "src/env/variables.ts"
862
- }
863
- },
864
- {
865
- "kind": "js",
866
- "name": "FORCE_HTTP",
867
- "declaration": {
868
- "name": "_FORCE_HTTP",
869
- "module": "src/env/variables.ts"
870
- }
871
- },
872
- {
873
- "kind": "js",
874
- "name": "API_HOST",
875
- "declaration": {
876
- "name": "_API_HOST",
877
- "module": "src/env/variables.ts"
878
- }
879
- },
880
- {
881
- "kind": "js",
882
- "name": "HTTP_CONFIG",
883
- "declaration": {
884
- "name": "_HTTP_CONFIG",
885
- "module": "src/env/variables.ts"
886
- }
887
- },
888
- {
889
- "kind": "js",
890
- "name": "DEFAULT_ORGANISATION",
891
- "declaration": {
892
- "name": "_DEFAULT_ORGANISATION",
893
- "module": "src/env/variables.ts"
894
- }
895
- },
896
- {
897
- "kind": "js",
898
- "name": "DEFAULT_PASSWORD",
899
- "declaration": {
900
- "name": "_DEFAULT_PASSWORD",
901
- "module": "src/env/variables.ts"
902
- }
903
- },
904
- {
905
- "kind": "js",
906
- "name": "DEFAULT_USER",
907
- "declaration": {
908
- "name": "_DEFAULT_USER",
909
- "module": "src/env/variables.ts"
910
- }
911
- }
912
- ]
913
- },
914
- {
915
- "kind": "javascript-module",
916
- "path": "src/data/inMemoryDatabase.ts",
917
- "declarations": [
918
- {
919
- "kind": "class",
920
- "description": "An in memory database of specific DatabaseRecord types.",
921
- "name": "InMemoryDatabase",
922
- "members": [
923
- {
924
- "kind": "field",
925
- "name": "isWorking",
926
- "type": {
927
- "text": "boolean"
928
- },
929
- "privacy": "public",
930
- "default": "false"
931
- },
932
- {
933
- "kind": "field",
934
- "name": "records",
935
- "type": {
936
- "text": "Record<string, T>"
937
- },
938
- "privacy": "private",
939
- "default": "{}"
940
- },
941
- {
942
- "kind": "field",
943
- "name": "beforeUpdateListeners",
944
- "privacy": "private"
945
- },
946
- {
947
- "kind": "field",
948
- "name": "afterUpdateListeners",
949
- "privacy": "private"
950
- },
951
- {
952
- "kind": "method",
953
- "name": "create",
954
- "privacy": "public",
955
- "return": {
956
- "type": {
957
- "text": "Promise<DatabaseAccessResult.Create<T>>"
958
- }
959
- },
960
- "parameters": [
961
- {
962
- "name": "newValue",
963
- "type": {
964
- "text": "Omit<T, 'id'>"
965
- }
966
- }
967
- ]
968
- },
969
- {
970
- "kind": "method",
971
- "name": "read",
972
- "privacy": "public",
973
- "return": {
974
- "type": {
975
- "text": "Promise<DatabaseAccessResult.Read<T>>"
976
- }
977
- },
978
- "parameters": [
979
- {
980
- "name": "id",
981
- "type": {
982
- "text": "string"
983
- }
984
- }
985
- ]
1042
+ "text": "RegExp"
1043
+ },
1044
+ "privacy": "private",
1045
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
986
1046
  },
987
1047
  {
988
- "kind": "method",
989
- "name": "update",
990
- "privacy": "public",
991
- "return": {
992
- "type": {
993
- "text": "Promise<DatabaseAccessResult.Update<T>>"
994
- }
1048
+ "kind": "field",
1049
+ "name": "_numeral",
1050
+ "type": {
1051
+ "text": "RegExp"
995
1052
  },
996
- "parameters": [
997
- {
998
- "name": "id",
999
- "type": {
1000
- "text": "string"
1001
- }
1002
- },
1003
- {
1004
- "name": "newValue",
1005
- "type": {
1006
- "text": "Omit<Partial<T>, 'id'>"
1007
- }
1008
- }
1009
- ]
1053
+ "privacy": "private",
1054
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1010
1055
  },
1011
1056
  {
1012
- "kind": "method",
1013
- "name": "delete",
1014
- "privacy": "public",
1015
- "return": {
1016
- "type": {
1017
- "text": "Promise<DatabaseAccessResult.Delete>"
1018
- }
1057
+ "kind": "field",
1058
+ "name": "_index",
1059
+ "type": {
1060
+ "text": "any"
1019
1061
  },
1020
- "parameters": [
1021
- {
1022
- "name": "id",
1023
- "type": {
1024
- "text": "string"
1025
- }
1026
- }
1027
- ]
1062
+ "privacy": "private"
1028
1063
  },
1029
1064
  {
1030
1065
  "kind": "method",
1031
- "name": "visit",
1032
- "privacy": "public",
1033
- "return": {
1034
- "type": {
1035
- "text": "Promise<void>"
1036
- }
1037
- },
1066
+ "name": "parse",
1038
1067
  "parameters": [
1039
1068
  {
1040
- "name": "visitor",
1069
+ "name": "localeNumber",
1041
1070
  "type": {
1042
- "text": "(record: T) => void"
1071
+ "text": "string"
1043
1072
  }
1044
1073
  }
1045
1074
  ]
1046
1075
  },
1047
1076
  {
1048
1077
  "kind": "method",
1049
- "name": "onBeforeUpdate",
1050
- "privacy": "public",
1078
+ "name": "hasSeparator",
1051
1079
  "return": {
1052
1080
  "type": {
1053
- "text": "() => void"
1081
+ "text": "boolean"
1054
1082
  }
1055
1083
  },
1056
1084
  "parameters": [
1057
1085
  {
1058
- "name": "listener",
1086
+ "name": "localeNumber",
1059
1087
  "type": {
1060
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1088
+ "text": "string"
1061
1089
  }
1062
1090
  }
1063
1091
  ]
1064
1092
  },
1065
1093
  {
1066
- "kind": "method",
1067
- "name": "onAfterUpdate",
1068
- "privacy": "public",
1069
- "return": {
1070
- "type": {
1071
- "text": "() => void"
1072
- }
1073
- },
1074
- "parameters": [
1075
- {
1076
- "name": "listener",
1077
- "type": {
1078
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1079
- }
1080
- }
1081
- ]
1094
+ "kind": "field",
1095
+ "name": "_group",
1096
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1082
1097
  }
1083
1098
  ]
1084
1099
  }
@@ -1086,25 +1101,10 @@
1086
1101
  "exports": [
1087
1102
  {
1088
1103
  "kind": "js",
1089
- "name": "InMemoryDatabase",
1090
- "declaration": {
1091
- "name": "InMemoryDatabase",
1092
- "module": "src/data/inMemoryDatabase.ts"
1093
- }
1094
- }
1095
- ]
1096
- },
1097
- {
1098
- "kind": "javascript-module",
1099
- "path": "src/data/index.ts",
1100
- "declarations": [],
1101
- "exports": [
1102
- {
1103
- "kind": "js",
1104
- "name": "*",
1104
+ "name": "NumberParser",
1105
1105
  "declaration": {
1106
- "name": "*",
1107
- "package": "./inMemoryDatabase"
1106
+ "name": "NumberParser",
1107
+ "module": "src/formatters/localeNumberParser.ts"
1108
1108
  }
1109
1109
  }
1110
1110
  ]
@@ -1233,78 +1233,6 @@
1233
1233
  }
1234
1234
  ]
1235
1235
  },
1236
- {
1237
- "kind": "javascript-module",
1238
- "path": "src/observer/index.ts",
1239
- "declarations": [],
1240
- "exports": [
1241
- {
1242
- "kind": "js",
1243
- "name": "*",
1244
- "declaration": {
1245
- "name": "*",
1246
- "package": "./observer"
1247
- }
1248
- }
1249
- ]
1250
- },
1251
- {
1252
- "kind": "javascript-module",
1253
- "path": "src/observer/observer.ts",
1254
- "declarations": [
1255
- {
1256
- "kind": "function",
1257
- "name": "createObserver",
1258
- "return": {
1259
- "type": {
1260
- "text": "Observer<EventType>"
1261
- }
1262
- },
1263
- "description": "Creates a new event observer instance.",
1264
- "privacy": "public"
1265
- },
1266
- {
1267
- "kind": "function",
1268
- "name": "respondToVisibility",
1269
- "parameters": [
1270
- {
1271
- "name": "element",
1272
- "type": {
1273
- "text": "HTMLElement"
1274
- },
1275
- "description": "HTMLElement to observe"
1276
- },
1277
- {
1278
- "name": "callback",
1279
- "type": {
1280
- "text": "(arg0: boolean) => any"
1281
- },
1282
- "description": "any function called when the visibility changes"
1283
- }
1284
- ],
1285
- "description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
1286
- "privacy": "public"
1287
- }
1288
- ],
1289
- "exports": [
1290
- {
1291
- "kind": "js",
1292
- "name": "createObserver",
1293
- "declaration": {
1294
- "name": "createObserver",
1295
- "module": "src/observer/observer.ts"
1296
- }
1297
- },
1298
- {
1299
- "kind": "js",
1300
- "name": "respondToVisibility",
1301
- "declaration": {
1302
- "name": "respondToVisibility",
1303
- "module": "src/observer/observer.ts"
1304
- }
1305
- }
1306
- ]
1307
- },
1308
1236
  {
1309
1237
  "kind": "javascript-module",
1310
1238
  "path": "src/resource/index.ts",
@@ -1487,6 +1415,78 @@
1487
1415
  }
1488
1416
  ]
1489
1417
  },
1418
+ {
1419
+ "kind": "javascript-module",
1420
+ "path": "src/observer/index.ts",
1421
+ "declarations": [],
1422
+ "exports": [
1423
+ {
1424
+ "kind": "js",
1425
+ "name": "*",
1426
+ "declaration": {
1427
+ "name": "*",
1428
+ "package": "./observer"
1429
+ }
1430
+ }
1431
+ ]
1432
+ },
1433
+ {
1434
+ "kind": "javascript-module",
1435
+ "path": "src/observer/observer.ts",
1436
+ "declarations": [
1437
+ {
1438
+ "kind": "function",
1439
+ "name": "createObserver",
1440
+ "return": {
1441
+ "type": {
1442
+ "text": "Observer<EventType>"
1443
+ }
1444
+ },
1445
+ "description": "Creates a new event observer instance.",
1446
+ "privacy": "public"
1447
+ },
1448
+ {
1449
+ "kind": "function",
1450
+ "name": "respondToVisibility",
1451
+ "parameters": [
1452
+ {
1453
+ "name": "element",
1454
+ "type": {
1455
+ "text": "HTMLElement"
1456
+ },
1457
+ "description": "HTMLElement to observe"
1458
+ },
1459
+ {
1460
+ "name": "callback",
1461
+ "type": {
1462
+ "text": "(arg0: boolean) => any"
1463
+ },
1464
+ "description": "any function called when the visibility changes"
1465
+ }
1466
+ ],
1467
+ "description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
1468
+ "privacy": "public"
1469
+ }
1470
+ ],
1471
+ "exports": [
1472
+ {
1473
+ "kind": "js",
1474
+ "name": "createObserver",
1475
+ "declaration": {
1476
+ "name": "createObserver",
1477
+ "module": "src/observer/observer.ts"
1478
+ }
1479
+ },
1480
+ {
1481
+ "kind": "js",
1482
+ "name": "respondToVisibility",
1483
+ "declaration": {
1484
+ "name": "respondToVisibility",
1485
+ "module": "src/observer/observer.ts"
1486
+ }
1487
+ }
1488
+ ]
1489
+ },
1490
1490
  {
1491
1491
  "kind": "javascript-module",
1492
1492
  "path": "src/styles/color.ts",
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.148.1-alpha-eef6f33.0",
4
+ "version": "14.150.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,17 +19,17 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.148.1-alpha-eef6f33.0",
23
- "@genesislcap/genx": "14.148.1-alpha-eef6f33.0",
24
- "@genesislcap/rollup-builder": "14.148.1-alpha-eef6f33.0",
25
- "@genesislcap/ts-builder": "14.148.1-alpha-eef6f33.0",
26
- "@genesislcap/uvu-playwright-builder": "14.148.1-alpha-eef6f33.0",
27
- "@genesislcap/vite-builder": "14.148.1-alpha-eef6f33.0",
28
- "@genesislcap/webpack-builder": "14.148.1-alpha-eef6f33.0",
22
+ "@genesislcap/foundation-testing": "14.150.0",
23
+ "@genesislcap/genx": "14.150.0",
24
+ "@genesislcap/rollup-builder": "14.150.0",
25
+ "@genesislcap/ts-builder": "14.150.0",
26
+ "@genesislcap/uvu-playwright-builder": "14.150.0",
27
+ "@genesislcap/vite-builder": "14.150.0",
28
+ "@genesislcap/webpack-builder": "14.150.0",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.148.1-alpha-eef6f33.0",
32
+ "@genesislcap/foundation-logger": "14.150.0",
33
33
  "@microsoft/fast-components": "^2.30.6",
34
34
  "@microsoft/fast-element": "^1.12.0",
35
35
  "@microsoft/fast-foundation": "^2.49.4",
@@ -47,5 +47,5 @@
47
47
  "access": "public"
48
48
  },
49
49
  "customElements": "dist/custom-elements.json",
50
- "gitHead": "27f813cf911820761f0971b5f4639ce91efc7baa"
50
+ "gitHead": "b1e9c28c8b2cc001814e259a0b6d51ab30ed5381"
51
51
  }