@genesislcap/foundation-utils 14.217.6-alpha-f6d0d1c0fdc7.0 → 14.217.6-alpha-406f23c.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/custom-elements.json +591 -591
  2. package/package.json +10 -10
@@ -169,57 +169,7 @@
169
169
  },
170
170
  {
171
171
  "kind": "javascript-module",
172
- "path": "src/design-system/design-system.ts",
173
- "declarations": [
174
- {
175
- "kind": "function",
176
- "name": "assureDesignSystem",
177
- "return": {
178
- "type": {
179
- "text": "DesignSystemModule"
180
- }
181
- },
182
- "parameters": [
183
- {
184
- "name": "module",
185
- "type": {
186
- "text": "DesignSystemModule"
187
- }
188
- }
189
- ],
190
- "description": "assureDesignSystem.",
191
- "privacy": "public"
192
- }
193
- ],
194
- "exports": [
195
- {
196
- "kind": "js",
197
- "name": "assureDesignSystem",
198
- "declaration": {
199
- "name": "assureDesignSystem",
200
- "module": "src/design-system/design-system.ts"
201
- }
202
- }
203
- ]
204
- },
205
- {
206
- "kind": "javascript-module",
207
- "path": "src/design-system/index.ts",
208
- "declarations": [],
209
- "exports": [
210
- {
211
- "kind": "js",
212
- "name": "*",
213
- "declaration": {
214
- "name": "*",
215
- "package": "./design-system"
216
- }
217
- }
218
- ]
219
- },
220
- {
221
- "kind": "javascript-module",
222
- "path": "src/env/index.ts",
172
+ "path": "src/directives/index.ts",
223
173
  "declarations": [],
224
174
  "exports": [
225
175
  {
@@ -227,7 +177,7 @@
227
177
  "name": "*",
228
178
  "declaration": {
229
179
  "name": "*",
230
- "package": "./is-dev"
180
+ "package": "./sync"
231
181
  }
232
182
  },
233
183
  {
@@ -235,222 +185,205 @@
235
185
  "name": "*",
236
186
  "declaration": {
237
187
  "name": "*",
238
- "package": "./variables"
239
- }
240
- }
241
- ]
242
- },
243
- {
244
- "kind": "javascript-module",
245
- "path": "src/env/is-dev.ts",
246
- "declarations": [
247
- {
248
- "kind": "function",
249
- "name": "isDev",
250
- "description": "Determines if the current environment is a development environment.",
251
- "privacy": "public"
252
- }
253
- ],
254
- "exports": [
255
- {
256
- "kind": "js",
257
- "name": "isDev",
258
- "declaration": {
259
- "name": "isDev",
260
- "module": "src/env/is-dev.ts"
188
+ "package": "./when-else"
261
189
  }
262
190
  }
263
191
  ]
264
192
  },
265
193
  {
266
194
  "kind": "javascript-module",
267
- "path": "src/env/variables.ts",
195
+ "path": "src/data/inMemoryDatabase.ts",
268
196
  "declarations": [
269
197
  {
270
- "kind": "variable",
271
- "name": "SOCKET_EXT",
272
- "type": {
273
- "text": "string"
274
- }
275
- },
276
- {
277
- "kind": "variable",
278
- "name": "_SOCKET_EXT",
279
- "type": {
280
- "text": "string"
281
- },
282
- "default": "'gwf'",
283
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
284
- "privacy": "public"
285
- },
286
- {
287
- "kind": "variable",
288
- "name": "FORCE_HTTP",
289
- "type": {
290
- "text": "string"
291
- }
292
- },
293
- {
294
- "kind": "variable",
295
- "name": "_FORCE_HTTP",
296
- "type": {
297
- "text": "string"
298
- },
299
- "description": "The path to a JSON config file for the HTTP mode.",
300
- "privacy": "public"
301
- },
302
- {
303
- "kind": "variable",
304
- "name": "GENESIS_SOCKET_URL",
305
- "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
306
- "description": "Genesis Socket URL",
307
- "privacy": "public"
308
- },
309
- {
310
- "kind": "variable",
311
- "name": "API_HOST",
312
- "type": {
313
- "text": "string"
314
- }
315
- },
316
- {
317
- "kind": "variable",
318
- "name": "_API_HOST",
319
- "type": {
320
- "text": "string"
321
- },
322
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
323
- "description": "The Genesis Server URL (WebSocket or HTTP).",
324
- "privacy": "public"
325
- },
326
- {
327
- "kind": "variable",
328
- "name": "HTTP_CONFIG",
329
- "type": {
330
- "text": "string"
331
- }
332
- },
333
- {
334
- "kind": "variable",
335
- "name": "_HTTP_CONFIG",
336
- "type": {
337
- "text": "string"
338
- },
339
- "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
340
- "privacy": "public"
341
- },
342
- {
343
- "kind": "variable",
344
- "name": "DEFAULT_ORGANISATION",
345
- "type": {
346
- "text": "string"
347
- }
348
- },
349
- {
350
- "kind": "variable",
351
- "name": "_DEFAULT_ORGANISATION",
352
- "type": {
353
- "text": "string"
354
- },
355
- "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
356
- "privacy": "public"
357
- },
358
- {
359
- "kind": "variable",
360
- "name": "DEFAULT_PASSWORD",
361
- "type": {
362
- "text": "string"
363
- }
364
- },
365
- {
366
- "kind": "variable",
367
- "name": "_DEFAULT_PASSWORD",
368
- "type": {
369
- "text": "string"
370
- },
371
- "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
372
- "privacy": "public"
373
- },
374
- {
375
- "kind": "variable",
376
- "name": "DEFAULT_USER",
377
- "type": {
378
- "text": "string"
379
- }
380
- },
381
- {
382
- "kind": "variable",
383
- "name": "_DEFAULT_USER",
384
- "type": {
385
- "text": "string"
386
- },
387
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
388
- "privacy": "public"
198
+ "kind": "class",
199
+ "description": "An in memory database of specific DatabaseRecord types.",
200
+ "name": "InMemoryDatabase",
201
+ "members": [
202
+ {
203
+ "kind": "field",
204
+ "name": "isWorking",
205
+ "type": {
206
+ "text": "boolean"
207
+ },
208
+ "privacy": "public",
209
+ "default": "false"
210
+ },
211
+ {
212
+ "kind": "field",
213
+ "name": "records",
214
+ "type": {
215
+ "text": "Record<string, T>"
216
+ },
217
+ "privacy": "private",
218
+ "default": "{}"
219
+ },
220
+ {
221
+ "kind": "field",
222
+ "name": "beforeUpdateListeners",
223
+ "privacy": "private"
224
+ },
225
+ {
226
+ "kind": "field",
227
+ "name": "afterUpdateListeners",
228
+ "privacy": "private"
229
+ },
230
+ {
231
+ "kind": "method",
232
+ "name": "create",
233
+ "privacy": "public",
234
+ "return": {
235
+ "type": {
236
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
237
+ }
238
+ },
239
+ "parameters": [
240
+ {
241
+ "name": "newValue",
242
+ "type": {
243
+ "text": "Omit<T, 'id'>"
244
+ }
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ "kind": "method",
250
+ "name": "read",
251
+ "privacy": "public",
252
+ "return": {
253
+ "type": {
254
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
255
+ }
256
+ },
257
+ "parameters": [
258
+ {
259
+ "name": "id",
260
+ "type": {
261
+ "text": "string"
262
+ }
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "kind": "method",
268
+ "name": "update",
269
+ "privacy": "public",
270
+ "return": {
271
+ "type": {
272
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
273
+ }
274
+ },
275
+ "parameters": [
276
+ {
277
+ "name": "id",
278
+ "type": {
279
+ "text": "string"
280
+ }
281
+ },
282
+ {
283
+ "name": "newValue",
284
+ "type": {
285
+ "text": "Omit<Partial<T>, 'id'>"
286
+ }
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "kind": "method",
292
+ "name": "delete",
293
+ "privacy": "public",
294
+ "return": {
295
+ "type": {
296
+ "text": "Promise<DatabaseAccessResult.Delete>"
297
+ }
298
+ },
299
+ "parameters": [
300
+ {
301
+ "name": "id",
302
+ "type": {
303
+ "text": "string"
304
+ }
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "kind": "method",
310
+ "name": "visit",
311
+ "privacy": "public",
312
+ "return": {
313
+ "type": {
314
+ "text": "Promise<void>"
315
+ }
316
+ },
317
+ "parameters": [
318
+ {
319
+ "name": "visitor",
320
+ "type": {
321
+ "text": "(record: T) => void"
322
+ }
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "kind": "method",
328
+ "name": "onBeforeUpdate",
329
+ "privacy": "public",
330
+ "return": {
331
+ "type": {
332
+ "text": "() => void"
333
+ }
334
+ },
335
+ "parameters": [
336
+ {
337
+ "name": "listener",
338
+ "type": {
339
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
340
+ }
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "kind": "method",
346
+ "name": "onAfterUpdate",
347
+ "privacy": "public",
348
+ "return": {
349
+ "type": {
350
+ "text": "() => void"
351
+ }
352
+ },
353
+ "parameters": [
354
+ {
355
+ "name": "listener",
356
+ "type": {
357
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
358
+ }
359
+ }
360
+ ]
361
+ }
362
+ ]
389
363
  }
390
364
  ],
391
365
  "exports": [
392
366
  {
393
367
  "kind": "js",
394
- "name": "SOCKET_EXT",
395
- "declaration": {
396
- "name": "_SOCKET_EXT",
397
- "module": "src/env/variables.ts"
398
- }
399
- },
400
- {
401
- "kind": "js",
402
- "name": "FORCE_HTTP",
403
- "declaration": {
404
- "name": "_FORCE_HTTP",
405
- "module": "src/env/variables.ts"
406
- }
407
- },
408
- {
409
- "kind": "js",
410
- "name": "GENESIS_SOCKET_URL",
411
- "declaration": {
412
- "name": "GENESIS_SOCKET_URL",
413
- "module": "src/env/variables.ts"
414
- }
415
- },
416
- {
417
- "kind": "js",
418
- "name": "API_HOST",
419
- "declaration": {
420
- "name": "_API_HOST",
421
- "module": "src/env/variables.ts"
422
- }
423
- },
424
- {
425
- "kind": "js",
426
- "name": "HTTP_CONFIG",
427
- "declaration": {
428
- "name": "_HTTP_CONFIG",
429
- "module": "src/env/variables.ts"
430
- }
431
- },
432
- {
433
- "kind": "js",
434
- "name": "DEFAULT_ORGANISATION",
435
- "declaration": {
436
- "name": "_DEFAULT_ORGANISATION",
437
- "module": "src/env/variables.ts"
438
- }
439
- },
440
- {
441
- "kind": "js",
442
- "name": "DEFAULT_PASSWORD",
368
+ "name": "InMemoryDatabase",
443
369
  "declaration": {
444
- "name": "_DEFAULT_PASSWORD",
445
- "module": "src/env/variables.ts"
370
+ "name": "InMemoryDatabase",
371
+ "module": "src/data/inMemoryDatabase.ts"
446
372
  }
447
- },
373
+ }
374
+ ]
375
+ },
376
+ {
377
+ "kind": "javascript-module",
378
+ "path": "src/data/index.ts",
379
+ "declarations": [],
380
+ "exports": [
448
381
  {
449
382
  "kind": "js",
450
- "name": "DEFAULT_USER",
383
+ "name": "*",
451
384
  "declaration": {
452
- "name": "_DEFAULT_USER",
453
- "module": "src/env/variables.ts"
385
+ "name": "*",
386
+ "package": "./inMemoryDatabase"
454
387
  }
455
388
  }
456
389
  ]
@@ -656,172 +589,238 @@
656
589
  },
657
590
  {
658
591
  "kind": "javascript-module",
659
- "path": "src/data/inMemoryDatabase.ts",
592
+ "path": "src/formatters/datetime.ts",
660
593
  "declarations": [
661
594
  {
662
- "kind": "class",
663
- "description": "An in memory database of specific DatabaseRecord types.",
664
- "name": "InMemoryDatabase",
665
- "members": [
595
+ "kind": "function",
596
+ "name": "formatDateTimestamp",
597
+ "return": {
598
+ "type": {
599
+ "text": "string"
600
+ }
601
+ },
602
+ "parameters": [
666
603
  {
667
- "kind": "field",
668
- "name": "isWorking",
604
+ "name": "timestamp",
669
605
  "type": {
670
- "text": "boolean"
671
- },
672
- "privacy": "public",
673
- "default": "false"
674
- },
606
+ "text": "number"
607
+ }
608
+ }
609
+ ],
610
+ "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
611
+ "privacy": "public"
612
+ },
613
+ {
614
+ "kind": "function",
615
+ "name": "formatDateTimeTimestamp",
616
+ "return": {
617
+ "type": {
618
+ "text": "string"
619
+ }
620
+ },
621
+ "parameters": [
675
622
  {
676
- "kind": "field",
677
- "name": "records",
623
+ "name": "timestamp",
678
624
  "type": {
679
- "text": "Record<string, T>"
625
+ "text": "number"
626
+ }
627
+ }
628
+ ],
629
+ "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
630
+ "privacy": "public"
631
+ },
632
+ {
633
+ "kind": "function",
634
+ "name": "formatTimestamp",
635
+ "return": {
636
+ "type": {
637
+ "text": "string"
638
+ }
639
+ },
640
+ "parameters": [
641
+ {
642
+ "name": "timestamp",
643
+ "type": {
644
+ "text": "number"
680
645
  },
681
- "privacy": "private",
682
- "default": "{}"
646
+ "description": "The UNIX Timestamp."
683
647
  },
684
648
  {
685
- "kind": "field",
686
- "name": "beforeUpdateListeners",
687
- "privacy": "private"
688
- },
649
+ "name": "withTime",
650
+ "type": {
651
+ "text": "boolean"
652
+ },
653
+ "description": "The flag to determine if formatted value should contain 'time' info."
654
+ }
655
+ ],
656
+ "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
657
+ "privacy": "public"
658
+ },
659
+ {
660
+ "kind": "function",
661
+ "name": "getDateFormatter",
662
+ "parameters": [
689
663
  {
690
- "kind": "field",
691
- "name": "afterUpdateListeners",
692
- "privacy": "private"
664
+ "name": "locale",
665
+ "default": "'en-GB'",
666
+ "type": {
667
+ "text": "string"
668
+ }
693
669
  },
694
670
  {
695
- "kind": "method",
696
- "name": "create",
697
- "privacy": "public",
698
- "return": {
699
- "type": {
700
- "text": "Promise<DatabaseAccessResult.Create<T>>"
701
- }
702
- },
703
- "parameters": [
704
- {
705
- "name": "newValue",
706
- "type": {
707
- "text": "Omit<T, 'id'>"
708
- }
709
- }
710
- ]
711
- },
671
+ "name": "options",
672
+ "default": "defaultDateOptions",
673
+ "type": {
674
+ "text": "Intl.DateTimeFormatOptions"
675
+ }
676
+ }
677
+ ],
678
+ "privacy": "public"
679
+ }
680
+ ],
681
+ "exports": [
682
+ {
683
+ "kind": "js",
684
+ "name": "formatDateTimestamp",
685
+ "declaration": {
686
+ "name": "formatDateTimestamp",
687
+ "module": "src/formatters/datetime.ts"
688
+ }
689
+ },
690
+ {
691
+ "kind": "js",
692
+ "name": "formatDateTimeTimestamp",
693
+ "declaration": {
694
+ "name": "formatDateTimeTimestamp",
695
+ "module": "src/formatters/datetime.ts"
696
+ }
697
+ },
698
+ {
699
+ "kind": "js",
700
+ "name": "formatTimestamp",
701
+ "declaration": {
702
+ "name": "formatTimestamp",
703
+ "module": "src/formatters/datetime.ts"
704
+ }
705
+ },
706
+ {
707
+ "kind": "js",
708
+ "name": "getDateFormatter",
709
+ "declaration": {
710
+ "name": "getDateFormatter",
711
+ "module": "src/formatters/datetime.ts"
712
+ }
713
+ }
714
+ ]
715
+ },
716
+ {
717
+ "kind": "javascript-module",
718
+ "path": "src/formatters/index.ts",
719
+ "declarations": [],
720
+ "exports": [
721
+ {
722
+ "kind": "js",
723
+ "name": "*",
724
+ "declaration": {
725
+ "name": "*",
726
+ "package": "./datetime"
727
+ }
728
+ },
729
+ {
730
+ "kind": "js",
731
+ "name": "*",
732
+ "declaration": {
733
+ "name": "*",
734
+ "package": "./localeNumberParser"
735
+ }
736
+ },
737
+ {
738
+ "kind": "js",
739
+ "name": "*",
740
+ "declaration": {
741
+ "name": "*",
742
+ "package": "./number"
743
+ }
744
+ }
745
+ ]
746
+ },
747
+ {
748
+ "kind": "javascript-module",
749
+ "path": "src/formatters/localeNumberParser.ts",
750
+ "declarations": [
751
+ {
752
+ "kind": "class",
753
+ "description": "",
754
+ "name": "NumberParser",
755
+ "members": [
712
756
  {
713
- "kind": "method",
714
- "name": "read",
715
- "privacy": "public",
716
- "return": {
717
- "type": {
718
- "text": "Promise<DatabaseAccessResult.Read<T>>"
719
- }
757
+ "kind": "field",
758
+ "name": "_decimal",
759
+ "type": {
760
+ "text": "RegExp"
720
761
  },
721
- "parameters": [
722
- {
723
- "name": "id",
724
- "type": {
725
- "text": "string"
726
- }
727
- }
728
- ]
762
+ "privacy": "private",
763
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
729
764
  },
730
765
  {
731
- "kind": "method",
732
- "name": "update",
733
- "privacy": "public",
734
- "return": {
735
- "type": {
736
- "text": "Promise<DatabaseAccessResult.Update<T>>"
737
- }
738
- },
739
- "parameters": [
740
- {
741
- "name": "id",
742
- "type": {
743
- "text": "string"
744
- }
745
- },
746
- {
747
- "name": "newValue",
748
- "type": {
749
- "text": "Omit<Partial<T>, 'id'>"
750
- }
751
- }
752
- ]
766
+ "kind": "field",
767
+ "name": "_separator",
768
+ "type": {
769
+ "text": "RegExp"
770
+ },
771
+ "privacy": "private",
772
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
753
773
  },
754
774
  {
755
- "kind": "method",
756
- "name": "delete",
757
- "privacy": "public",
758
- "return": {
759
- "type": {
760
- "text": "Promise<DatabaseAccessResult.Delete>"
761
- }
775
+ "kind": "field",
776
+ "name": "_numeral",
777
+ "type": {
778
+ "text": "RegExp"
762
779
  },
763
- "parameters": [
764
- {
765
- "name": "id",
766
- "type": {
767
- "text": "string"
768
- }
769
- }
770
- ]
780
+ "privacy": "private",
781
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
771
782
  },
772
783
  {
773
- "kind": "method",
774
- "name": "visit",
775
- "privacy": "public",
776
- "return": {
777
- "type": {
778
- "text": "Promise<void>"
779
- }
784
+ "kind": "field",
785
+ "name": "_index",
786
+ "type": {
787
+ "text": "any"
780
788
  },
781
- "parameters": [
782
- {
783
- "name": "visitor",
784
- "type": {
785
- "text": "(record: T) => void"
786
- }
787
- }
788
- ]
789
+ "privacy": "private"
789
790
  },
790
791
  {
791
792
  "kind": "method",
792
- "name": "onBeforeUpdate",
793
- "privacy": "public",
794
- "return": {
795
- "type": {
796
- "text": "() => void"
797
- }
798
- },
793
+ "name": "parse",
799
794
  "parameters": [
800
795
  {
801
- "name": "listener",
796
+ "name": "localeNumber",
802
797
  "type": {
803
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
798
+ "text": "string"
804
799
  }
805
800
  }
806
801
  ]
807
802
  },
808
803
  {
809
804
  "kind": "method",
810
- "name": "onAfterUpdate",
811
- "privacy": "public",
805
+ "name": "hasSeparator",
812
806
  "return": {
813
807
  "type": {
814
- "text": "() => void"
808
+ "text": "boolean"
815
809
  }
816
810
  },
817
811
  "parameters": [
818
812
  {
819
- "name": "listener",
813
+ "name": "localeNumber",
820
814
  "type": {
821
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
815
+ "text": "string"
822
816
  }
823
817
  }
824
818
  ]
819
+ },
820
+ {
821
+ "kind": "field",
822
+ "name": "_group",
823
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
825
824
  }
826
825
  ]
827
826
  }
@@ -829,17 +828,53 @@
829
828
  "exports": [
830
829
  {
831
830
  "kind": "js",
832
- "name": "InMemoryDatabase",
831
+ "name": "NumberParser",
833
832
  "declaration": {
834
- "name": "InMemoryDatabase",
835
- "module": "src/data/inMemoryDatabase.ts"
833
+ "name": "NumberParser",
834
+ "module": "src/formatters/localeNumberParser.ts"
836
835
  }
837
836
  }
838
837
  ]
839
838
  },
840
839
  {
841
840
  "kind": "javascript-module",
842
- "path": "src/data/index.ts",
841
+ "path": "src/formatters/number.ts",
842
+ "declarations": [
843
+ {
844
+ "kind": "function",
845
+ "name": "getNumberFormatter",
846
+ "parameters": [
847
+ {
848
+ "name": "format",
849
+ "type": {
850
+ "text": "string"
851
+ }
852
+ },
853
+ {
854
+ "name": "locale",
855
+ "optional": true,
856
+ "type": {
857
+ "text": "string | null"
858
+ }
859
+ }
860
+ ],
861
+ "privacy": "public"
862
+ }
863
+ ],
864
+ "exports": [
865
+ {
866
+ "kind": "js",
867
+ "name": "getNumberFormatter",
868
+ "declaration": {
869
+ "name": "getNumberFormatter",
870
+ "module": "src/formatters/number.ts"
871
+ }
872
+ }
873
+ ]
874
+ },
875
+ {
876
+ "kind": "javascript-module",
877
+ "path": "src/env/index.ts",
843
878
  "declarations": [],
844
879
  "exports": [
845
880
  {
@@ -847,299 +882,272 @@
847
882
  "name": "*",
848
883
  "declaration": {
849
884
  "name": "*",
850
- "package": "./inMemoryDatabase"
885
+ "package": "./is-dev"
886
+ }
887
+ },
888
+ {
889
+ "kind": "js",
890
+ "name": "*",
891
+ "declaration": {
892
+ "name": "*",
893
+ "package": "./variables"
851
894
  }
852
895
  }
853
896
  ]
854
897
  },
855
898
  {
856
899
  "kind": "javascript-module",
857
- "path": "src/formatters/datetime.ts",
900
+ "path": "src/env/is-dev.ts",
858
901
  "declarations": [
859
902
  {
860
903
  "kind": "function",
861
- "name": "formatDateTimestamp",
862
- "return": {
863
- "type": {
864
- "text": "string"
865
- }
904
+ "name": "isDev",
905
+ "description": "Determines if the current environment is a development environment.",
906
+ "privacy": "public"
907
+ }
908
+ ],
909
+ "exports": [
910
+ {
911
+ "kind": "js",
912
+ "name": "isDev",
913
+ "declaration": {
914
+ "name": "isDev",
915
+ "module": "src/env/is-dev.ts"
916
+ }
917
+ }
918
+ ]
919
+ },
920
+ {
921
+ "kind": "javascript-module",
922
+ "path": "src/env/variables.ts",
923
+ "declarations": [
924
+ {
925
+ "kind": "variable",
926
+ "name": "SOCKET_EXT",
927
+ "type": {
928
+ "text": "string"
929
+ }
930
+ },
931
+ {
932
+ "kind": "variable",
933
+ "name": "_SOCKET_EXT",
934
+ "type": {
935
+ "text": "string"
866
936
  },
867
- "parameters": [
868
- {
869
- "name": "timestamp",
870
- "type": {
871
- "text": "number"
872
- }
873
- }
874
- ],
875
- "description": "Formats [DATE] UNIX Timestamps (without time) to readable strings",
937
+ "default": "'gwf'",
938
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
939
+ "privacy": "public"
940
+ },
941
+ {
942
+ "kind": "variable",
943
+ "name": "FORCE_HTTP",
944
+ "type": {
945
+ "text": "string"
946
+ }
947
+ },
948
+ {
949
+ "kind": "variable",
950
+ "name": "_FORCE_HTTP",
951
+ "type": {
952
+ "text": "string"
953
+ },
954
+ "description": "The path to a JSON config file for the HTTP mode.",
955
+ "privacy": "public"
956
+ },
957
+ {
958
+ "kind": "variable",
959
+ "name": "GENESIS_SOCKET_URL",
960
+ "default": "`${location.protocol.replace('http', 'ws')}//${location.host}/${_SOCKET_EXT}/`",
961
+ "description": "Genesis Socket URL",
962
+ "privacy": "public"
963
+ },
964
+ {
965
+ "kind": "variable",
966
+ "name": "API_HOST",
967
+ "type": {
968
+ "text": "string"
969
+ }
970
+ },
971
+ {
972
+ "kind": "variable",
973
+ "name": "_API_HOST",
974
+ "type": {
975
+ "text": "string"
976
+ },
977
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
978
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
979
+ "privacy": "public"
980
+ },
981
+ {
982
+ "kind": "variable",
983
+ "name": "HTTP_CONFIG",
984
+ "type": {
985
+ "text": "string"
986
+ }
987
+ },
988
+ {
989
+ "kind": "variable",
990
+ "name": "_HTTP_CONFIG",
991
+ "type": {
992
+ "text": "string"
993
+ },
994
+ "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
995
+ "privacy": "public"
996
+ },
997
+ {
998
+ "kind": "variable",
999
+ "name": "DEFAULT_ORGANISATION",
1000
+ "type": {
1001
+ "text": "string"
1002
+ }
1003
+ },
1004
+ {
1005
+ "kind": "variable",
1006
+ "name": "_DEFAULT_ORGANISATION",
1007
+ "type": {
1008
+ "text": "string"
1009
+ },
1010
+ "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
876
1011
  "privacy": "public"
877
1012
  },
878
1013
  {
879
- "kind": "function",
880
- "name": "formatDateTimeTimestamp",
881
- "return": {
882
- "type": {
883
- "text": "string"
884
- }
1014
+ "kind": "variable",
1015
+ "name": "DEFAULT_PASSWORD",
1016
+ "type": {
1017
+ "text": "string"
1018
+ }
1019
+ },
1020
+ {
1021
+ "kind": "variable",
1022
+ "name": "_DEFAULT_PASSWORD",
1023
+ "type": {
1024
+ "text": "string"
885
1025
  },
886
- "parameters": [
887
- {
888
- "name": "timestamp",
889
- "type": {
890
- "text": "number"
891
- }
892
- }
893
- ],
894
- "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
1026
+ "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
895
1027
  "privacy": "public"
896
1028
  },
897
1029
  {
898
- "kind": "function",
899
- "name": "formatTimestamp",
900
- "return": {
901
- "type": {
902
- "text": "string"
903
- }
904
- },
905
- "parameters": [
906
- {
907
- "name": "timestamp",
908
- "type": {
909
- "text": "number"
910
- },
911
- "description": "The UNIX Timestamp."
912
- },
913
- {
914
- "name": "withTime",
915
- "type": {
916
- "text": "boolean"
917
- },
918
- "description": "The flag to determine if formatted value should contain 'time' info."
919
- }
920
- ],
921
- "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
922
- "privacy": "public"
1030
+ "kind": "variable",
1031
+ "name": "DEFAULT_USER",
1032
+ "type": {
1033
+ "text": "string"
1034
+ }
923
1035
  },
924
1036
  {
925
- "kind": "function",
926
- "name": "getDateFormatter",
927
- "parameters": [
928
- {
929
- "name": "locale",
930
- "default": "'en-GB'",
931
- "type": {
932
- "text": "string"
933
- }
934
- },
935
- {
936
- "name": "options",
937
- "default": "defaultDateOptions",
938
- "type": {
939
- "text": "Intl.DateTimeFormatOptions"
940
- }
941
- }
942
- ],
1037
+ "kind": "variable",
1038
+ "name": "_DEFAULT_USER",
1039
+ "type": {
1040
+ "text": "string"
1041
+ },
1042
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).",
943
1043
  "privacy": "public"
944
1044
  }
945
1045
  ],
946
1046
  "exports": [
947
1047
  {
948
1048
  "kind": "js",
949
- "name": "formatDateTimestamp",
1049
+ "name": "SOCKET_EXT",
950
1050
  "declaration": {
951
- "name": "formatDateTimestamp",
952
- "module": "src/formatters/datetime.ts"
1051
+ "name": "_SOCKET_EXT",
1052
+ "module": "src/env/variables.ts"
953
1053
  }
954
1054
  },
955
1055
  {
956
1056
  "kind": "js",
957
- "name": "formatDateTimeTimestamp",
1057
+ "name": "FORCE_HTTP",
958
1058
  "declaration": {
959
- "name": "formatDateTimeTimestamp",
960
- "module": "src/formatters/datetime.ts"
1059
+ "name": "_FORCE_HTTP",
1060
+ "module": "src/env/variables.ts"
961
1061
  }
962
1062
  },
963
1063
  {
964
1064
  "kind": "js",
965
- "name": "formatTimestamp",
1065
+ "name": "GENESIS_SOCKET_URL",
966
1066
  "declaration": {
967
- "name": "formatTimestamp",
968
- "module": "src/formatters/datetime.ts"
1067
+ "name": "GENESIS_SOCKET_URL",
1068
+ "module": "src/env/variables.ts"
969
1069
  }
970
1070
  },
971
1071
  {
972
1072
  "kind": "js",
973
- "name": "getDateFormatter",
1073
+ "name": "API_HOST",
974
1074
  "declaration": {
975
- "name": "getDateFormatter",
976
- "module": "src/formatters/datetime.ts"
1075
+ "name": "_API_HOST",
1076
+ "module": "src/env/variables.ts"
977
1077
  }
978
- }
979
- ]
980
- },
981
- {
982
- "kind": "javascript-module",
983
- "path": "src/formatters/index.ts",
984
- "declarations": [],
985
- "exports": [
1078
+ },
986
1079
  {
987
1080
  "kind": "js",
988
- "name": "*",
1081
+ "name": "HTTP_CONFIG",
989
1082
  "declaration": {
990
- "name": "*",
991
- "package": "./datetime"
1083
+ "name": "_HTTP_CONFIG",
1084
+ "module": "src/env/variables.ts"
992
1085
  }
993
1086
  },
994
1087
  {
995
1088
  "kind": "js",
996
- "name": "*",
1089
+ "name": "DEFAULT_ORGANISATION",
997
1090
  "declaration": {
998
- "name": "*",
999
- "package": "./localeNumberParser"
1091
+ "name": "_DEFAULT_ORGANISATION",
1092
+ "module": "src/env/variables.ts"
1000
1093
  }
1001
1094
  },
1002
1095
  {
1003
1096
  "kind": "js",
1004
- "name": "*",
1097
+ "name": "DEFAULT_PASSWORD",
1005
1098
  "declaration": {
1006
- "name": "*",
1007
- "package": "./number"
1099
+ "name": "_DEFAULT_PASSWORD",
1100
+ "module": "src/env/variables.ts"
1008
1101
  }
1009
- }
1010
- ]
1011
- },
1012
- {
1013
- "kind": "javascript-module",
1014
- "path": "src/formatters/localeNumberParser.ts",
1015
- "declarations": [
1016
- {
1017
- "kind": "class",
1018
- "description": "",
1019
- "name": "NumberParser",
1020
- "members": [
1021
- {
1022
- "kind": "field",
1023
- "name": "_decimal",
1024
- "type": {
1025
- "text": "RegExp"
1026
- },
1027
- "privacy": "private",
1028
- "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
1029
- },
1030
- {
1031
- "kind": "field",
1032
- "name": "_separator",
1033
- "type": {
1034
- "text": "RegExp"
1035
- },
1036
- "privacy": "private",
1037
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
1038
- },
1039
- {
1040
- "kind": "field",
1041
- "name": "_numeral",
1042
- "type": {
1043
- "text": "RegExp"
1044
- },
1045
- "privacy": "private",
1046
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
1047
- },
1048
- {
1049
- "kind": "field",
1050
- "name": "_index",
1051
- "type": {
1052
- "text": "any"
1053
- },
1054
- "privacy": "private"
1055
- },
1056
- {
1057
- "kind": "method",
1058
- "name": "parse",
1059
- "parameters": [
1060
- {
1061
- "name": "localeNumber",
1062
- "type": {
1063
- "text": "string"
1064
- }
1065
- }
1066
- ]
1067
- },
1068
- {
1069
- "kind": "method",
1070
- "name": "hasSeparator",
1071
- "return": {
1072
- "type": {
1073
- "text": "boolean"
1074
- }
1075
- },
1076
- "parameters": [
1077
- {
1078
- "name": "localeNumber",
1079
- "type": {
1080
- "text": "string"
1081
- }
1082
- }
1083
- ]
1084
- },
1085
- {
1086
- "kind": "field",
1087
- "name": "_group",
1088
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1089
- }
1090
- ]
1091
- }
1092
- ],
1093
- "exports": [
1102
+ },
1094
1103
  {
1095
1104
  "kind": "js",
1096
- "name": "NumberParser",
1105
+ "name": "DEFAULT_USER",
1097
1106
  "declaration": {
1098
- "name": "NumberParser",
1099
- "module": "src/formatters/localeNumberParser.ts"
1107
+ "name": "_DEFAULT_USER",
1108
+ "module": "src/env/variables.ts"
1100
1109
  }
1101
1110
  }
1102
1111
  ]
1103
1112
  },
1104
1113
  {
1105
1114
  "kind": "javascript-module",
1106
- "path": "src/formatters/number.ts",
1115
+ "path": "src/design-system/design-system.ts",
1107
1116
  "declarations": [
1108
1117
  {
1109
1118
  "kind": "function",
1110
- "name": "getNumberFormatter",
1119
+ "name": "assureDesignSystem",
1120
+ "return": {
1121
+ "type": {
1122
+ "text": "DesignSystemModule"
1123
+ }
1124
+ },
1111
1125
  "parameters": [
1112
1126
  {
1113
- "name": "format",
1114
- "type": {
1115
- "text": "string"
1116
- }
1117
- },
1118
- {
1119
- "name": "locale",
1120
- "optional": true,
1127
+ "name": "module",
1121
1128
  "type": {
1122
- "text": "string | null"
1129
+ "text": "DesignSystemModule"
1123
1130
  }
1124
1131
  }
1125
1132
  ],
1133
+ "description": "assureDesignSystem.",
1126
1134
  "privacy": "public"
1127
1135
  }
1128
1136
  ],
1129
1137
  "exports": [
1130
1138
  {
1131
1139
  "kind": "js",
1132
- "name": "getNumberFormatter",
1140
+ "name": "assureDesignSystem",
1133
1141
  "declaration": {
1134
- "name": "getNumberFormatter",
1135
- "module": "src/formatters/number.ts"
1142
+ "name": "assureDesignSystem",
1143
+ "module": "src/design-system/design-system.ts"
1136
1144
  }
1137
1145
  }
1138
1146
  ]
1139
1147
  },
1140
1148
  {
1141
1149
  "kind": "javascript-module",
1142
- "path": "src/directives/index.ts",
1150
+ "path": "src/design-system/index.ts",
1143
1151
  "declarations": [],
1144
1152
  "exports": [
1145
1153
  {
@@ -1147,15 +1155,7 @@
1147
1155
  "name": "*",
1148
1156
  "declaration": {
1149
1157
  "name": "*",
1150
- "package": "./sync"
1151
- }
1152
- },
1153
- {
1154
- "kind": "js",
1155
- "name": "*",
1156
- "declaration": {
1157
- "name": "*",
1158
- "package": "./when-else"
1158
+ "package": "./design-system"
1159
1159
  }
1160
1160
  }
1161
1161
  ]