@genesislcap/foundation-utils 14.127.2 → 14.127.3

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.
@@ -143,307 +143,6 @@
143
143
  }
144
144
  ]
145
145
  },
146
- {
147
- "kind": "javascript-module",
148
- "path": "src/data/inMemoryDatabase.ts",
149
- "declarations": [
150
- {
151
- "kind": "class",
152
- "description": "An in memory database of specific DatabaseRecord types.",
153
- "name": "InMemoryDatabase",
154
- "members": [
155
- {
156
- "kind": "field",
157
- "name": "isWorking",
158
- "type": {
159
- "text": "boolean"
160
- },
161
- "privacy": "public",
162
- "default": "false"
163
- },
164
- {
165
- "kind": "field",
166
- "name": "records",
167
- "type": {
168
- "text": "Record<string, T>"
169
- },
170
- "privacy": "private",
171
- "default": "{}"
172
- },
173
- {
174
- "kind": "field",
175
- "name": "beforeUpdateListeners",
176
- "privacy": "private"
177
- },
178
- {
179
- "kind": "field",
180
- "name": "afterUpdateListeners",
181
- "privacy": "private"
182
- },
183
- {
184
- "kind": "method",
185
- "name": "create",
186
- "privacy": "public",
187
- "return": {
188
- "type": {
189
- "text": "Promise<DatabaseAccessResult.Create<T>>"
190
- }
191
- },
192
- "parameters": [
193
- {
194
- "name": "newValue",
195
- "type": {
196
- "text": "Omit<T, 'id'>"
197
- }
198
- }
199
- ]
200
- },
201
- {
202
- "kind": "method",
203
- "name": "read",
204
- "privacy": "public",
205
- "return": {
206
- "type": {
207
- "text": "Promise<DatabaseAccessResult.Read<T>>"
208
- }
209
- },
210
- "parameters": [
211
- {
212
- "name": "id",
213
- "type": {
214
- "text": "string"
215
- }
216
- }
217
- ]
218
- },
219
- {
220
- "kind": "method",
221
- "name": "update",
222
- "privacy": "public",
223
- "return": {
224
- "type": {
225
- "text": "Promise<DatabaseAccessResult.Update<T>>"
226
- }
227
- },
228
- "parameters": [
229
- {
230
- "name": "id",
231
- "type": {
232
- "text": "string"
233
- }
234
- },
235
- {
236
- "name": "newValue",
237
- "type": {
238
- "text": "Omit<Partial<T>, 'id'>"
239
- }
240
- }
241
- ]
242
- },
243
- {
244
- "kind": "method",
245
- "name": "delete",
246
- "privacy": "public",
247
- "return": {
248
- "type": {
249
- "text": "Promise<DatabaseAccessResult.Delete>"
250
- }
251
- },
252
- "parameters": [
253
- {
254
- "name": "id",
255
- "type": {
256
- "text": "string"
257
- }
258
- }
259
- ]
260
- },
261
- {
262
- "kind": "method",
263
- "name": "visit",
264
- "privacy": "public",
265
- "return": {
266
- "type": {
267
- "text": "Promise<void>"
268
- }
269
- },
270
- "parameters": [
271
- {
272
- "name": "visitor",
273
- "type": {
274
- "text": "(record: T) => void"
275
- }
276
- }
277
- ]
278
- },
279
- {
280
- "kind": "method",
281
- "name": "onBeforeUpdate",
282
- "privacy": "public",
283
- "return": {
284
- "type": {
285
- "text": "() => void"
286
- }
287
- },
288
- "parameters": [
289
- {
290
- "name": "listener",
291
- "type": {
292
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
293
- }
294
- }
295
- ]
296
- },
297
- {
298
- "kind": "method",
299
- "name": "onAfterUpdate",
300
- "privacy": "public",
301
- "return": {
302
- "type": {
303
- "text": "() => void"
304
- }
305
- },
306
- "parameters": [
307
- {
308
- "name": "listener",
309
- "type": {
310
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
311
- }
312
- }
313
- ]
314
- }
315
- ]
316
- }
317
- ],
318
- "exports": [
319
- {
320
- "kind": "js",
321
- "name": "InMemoryDatabase",
322
- "declaration": {
323
- "name": "InMemoryDatabase",
324
- "module": "src/data/inMemoryDatabase.ts"
325
- }
326
- }
327
- ]
328
- },
329
- {
330
- "kind": "javascript-module",
331
- "path": "src/data/index.ts",
332
- "declarations": [],
333
- "exports": [
334
- {
335
- "kind": "js",
336
- "name": "*",
337
- "declaration": {
338
- "name": "*",
339
- "package": "./inMemoryDatabase"
340
- }
341
- }
342
- ]
343
- },
344
- {
345
- "kind": "javascript-module",
346
- "path": "src/decorators/index.ts",
347
- "declarations": [],
348
- "exports": [
349
- {
350
- "kind": "js",
351
- "name": "*",
352
- "declaration": {
353
- "name": "*",
354
- "package": "./renderOnChange"
355
- }
356
- }
357
- ]
358
- },
359
- {
360
- "kind": "javascript-module",
361
- "path": "src/decorators/renderOnChange.ts",
362
- "declarations": [
363
- {
364
- "kind": "function",
365
- "name": "renderOnChange",
366
- "parameters": [
367
- {
368
- "name": "target",
369
- "type": {
370
- "text": "FASTElement & { render(): void }"
371
- },
372
- "description": "The target to define the property change handler on."
373
- },
374
- {
375
- "name": "name",
376
- "type": {
377
- "text": "string"
378
- },
379
- "description": "The property name."
380
- }
381
- ],
382
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
383
- "privacy": "public"
384
- }
385
- ],
386
- "exports": [
387
- {
388
- "kind": "js",
389
- "name": "renderOnChange",
390
- "declaration": {
391
- "name": "renderOnChange",
392
- "module": "src/decorators/renderOnChange.ts"
393
- }
394
- }
395
- ]
396
- },
397
- {
398
- "kind": "javascript-module",
399
- "path": "src/design-system/design-system.ts",
400
- "declarations": [
401
- {
402
- "kind": "function",
403
- "name": "assureDesignSystem",
404
- "return": {
405
- "type": {
406
- "text": "DesignSystemModule"
407
- }
408
- },
409
- "parameters": [
410
- {
411
- "name": "module",
412
- "type": {
413
- "text": "DesignSystemModule"
414
- }
415
- }
416
- ],
417
- "description": "assureDesignSystem.",
418
- "privacy": "public"
419
- }
420
- ],
421
- "exports": [
422
- {
423
- "kind": "js",
424
- "name": "assureDesignSystem",
425
- "declaration": {
426
- "name": "assureDesignSystem",
427
- "module": "src/design-system/design-system.ts"
428
- }
429
- }
430
- ]
431
- },
432
- {
433
- "kind": "javascript-module",
434
- "path": "src/design-system/index.ts",
435
- "declarations": [],
436
- "exports": [
437
- {
438
- "kind": "js",
439
- "name": "*",
440
- "declaration": {
441
- "name": "*",
442
- "package": "./design-system"
443
- }
444
- }
445
- ]
446
- },
447
146
  {
448
147
  "kind": "javascript-module",
449
148
  "path": "src/directives/index.ts",
@@ -634,58 +333,256 @@
634
333
  "exports": [
635
334
  {
636
335
  "kind": "js",
637
- "name": "SOCKET_EXT",
638
- "declaration": {
639
- "name": "_SOCKET_EXT",
640
- "module": "src/env/variables.ts"
641
- }
642
- },
643
- {
644
- "kind": "js",
645
- "name": "FORCE_HTTP",
646
- "declaration": {
647
- "name": "_FORCE_HTTP",
648
- "module": "src/env/variables.ts"
649
- }
650
- },
651
- {
652
- "kind": "js",
653
- "name": "API_HOST",
654
- "declaration": {
655
- "name": "_API_HOST",
656
- "module": "src/env/variables.ts"
657
- }
658
- },
659
- {
660
- "kind": "js",
661
- "name": "HTTP_CONFIG",
662
- "declaration": {
663
- "name": "_HTTP_CONFIG",
664
- "module": "src/env/variables.ts"
665
- }
666
- },
667
- {
668
- "kind": "js",
669
- "name": "DEFAULT_ORGANISATION",
670
- "declaration": {
671
- "name": "_DEFAULT_ORGANISATION",
672
- "module": "src/env/variables.ts"
673
- }
674
- },
675
- {
676
- "kind": "js",
677
- "name": "DEFAULT_PASSWORD",
336
+ "name": "SOCKET_EXT",
337
+ "declaration": {
338
+ "name": "_SOCKET_EXT",
339
+ "module": "src/env/variables.ts"
340
+ }
341
+ },
342
+ {
343
+ "kind": "js",
344
+ "name": "FORCE_HTTP",
345
+ "declaration": {
346
+ "name": "_FORCE_HTTP",
347
+ "module": "src/env/variables.ts"
348
+ }
349
+ },
350
+ {
351
+ "kind": "js",
352
+ "name": "API_HOST",
353
+ "declaration": {
354
+ "name": "_API_HOST",
355
+ "module": "src/env/variables.ts"
356
+ }
357
+ },
358
+ {
359
+ "kind": "js",
360
+ "name": "HTTP_CONFIG",
361
+ "declaration": {
362
+ "name": "_HTTP_CONFIG",
363
+ "module": "src/env/variables.ts"
364
+ }
365
+ },
366
+ {
367
+ "kind": "js",
368
+ "name": "DEFAULT_ORGANISATION",
369
+ "declaration": {
370
+ "name": "_DEFAULT_ORGANISATION",
371
+ "module": "src/env/variables.ts"
372
+ }
373
+ },
374
+ {
375
+ "kind": "js",
376
+ "name": "DEFAULT_PASSWORD",
377
+ "declaration": {
378
+ "name": "_DEFAULT_PASSWORD",
379
+ "module": "src/env/variables.ts"
380
+ }
381
+ },
382
+ {
383
+ "kind": "js",
384
+ "name": "DEFAULT_USER",
385
+ "declaration": {
386
+ "name": "_DEFAULT_USER",
387
+ "module": "src/env/variables.ts"
388
+ }
389
+ }
390
+ ]
391
+ },
392
+ {
393
+ "kind": "javascript-module",
394
+ "path": "src/data/inMemoryDatabase.ts",
395
+ "declarations": [
396
+ {
397
+ "kind": "class",
398
+ "description": "An in memory database of specific DatabaseRecord types.",
399
+ "name": "InMemoryDatabase",
400
+ "members": [
401
+ {
402
+ "kind": "field",
403
+ "name": "isWorking",
404
+ "type": {
405
+ "text": "boolean"
406
+ },
407
+ "privacy": "public",
408
+ "default": "false"
409
+ },
410
+ {
411
+ "kind": "field",
412
+ "name": "records",
413
+ "type": {
414
+ "text": "Record<string, T>"
415
+ },
416
+ "privacy": "private",
417
+ "default": "{}"
418
+ },
419
+ {
420
+ "kind": "field",
421
+ "name": "beforeUpdateListeners",
422
+ "privacy": "private"
423
+ },
424
+ {
425
+ "kind": "field",
426
+ "name": "afterUpdateListeners",
427
+ "privacy": "private"
428
+ },
429
+ {
430
+ "kind": "method",
431
+ "name": "create",
432
+ "privacy": "public",
433
+ "return": {
434
+ "type": {
435
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
436
+ }
437
+ },
438
+ "parameters": [
439
+ {
440
+ "name": "newValue",
441
+ "type": {
442
+ "text": "Omit<T, 'id'>"
443
+ }
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "kind": "method",
449
+ "name": "read",
450
+ "privacy": "public",
451
+ "return": {
452
+ "type": {
453
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
454
+ }
455
+ },
456
+ "parameters": [
457
+ {
458
+ "name": "id",
459
+ "type": {
460
+ "text": "string"
461
+ }
462
+ }
463
+ ]
464
+ },
465
+ {
466
+ "kind": "method",
467
+ "name": "update",
468
+ "privacy": "public",
469
+ "return": {
470
+ "type": {
471
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
472
+ }
473
+ },
474
+ "parameters": [
475
+ {
476
+ "name": "id",
477
+ "type": {
478
+ "text": "string"
479
+ }
480
+ },
481
+ {
482
+ "name": "newValue",
483
+ "type": {
484
+ "text": "Omit<Partial<T>, 'id'>"
485
+ }
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "kind": "method",
491
+ "name": "delete",
492
+ "privacy": "public",
493
+ "return": {
494
+ "type": {
495
+ "text": "Promise<DatabaseAccessResult.Delete>"
496
+ }
497
+ },
498
+ "parameters": [
499
+ {
500
+ "name": "id",
501
+ "type": {
502
+ "text": "string"
503
+ }
504
+ }
505
+ ]
506
+ },
507
+ {
508
+ "kind": "method",
509
+ "name": "visit",
510
+ "privacy": "public",
511
+ "return": {
512
+ "type": {
513
+ "text": "Promise<void>"
514
+ }
515
+ },
516
+ "parameters": [
517
+ {
518
+ "name": "visitor",
519
+ "type": {
520
+ "text": "(record: T) => void"
521
+ }
522
+ }
523
+ ]
524
+ },
525
+ {
526
+ "kind": "method",
527
+ "name": "onBeforeUpdate",
528
+ "privacy": "public",
529
+ "return": {
530
+ "type": {
531
+ "text": "() => void"
532
+ }
533
+ },
534
+ "parameters": [
535
+ {
536
+ "name": "listener",
537
+ "type": {
538
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
539
+ }
540
+ }
541
+ ]
542
+ },
543
+ {
544
+ "kind": "method",
545
+ "name": "onAfterUpdate",
546
+ "privacy": "public",
547
+ "return": {
548
+ "type": {
549
+ "text": "() => void"
550
+ }
551
+ },
552
+ "parameters": [
553
+ {
554
+ "name": "listener",
555
+ "type": {
556
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
557
+ }
558
+ }
559
+ ]
560
+ }
561
+ ]
562
+ }
563
+ ],
564
+ "exports": [
565
+ {
566
+ "kind": "js",
567
+ "name": "InMemoryDatabase",
678
568
  "declaration": {
679
- "name": "_DEFAULT_PASSWORD",
680
- "module": "src/env/variables.ts"
569
+ "name": "InMemoryDatabase",
570
+ "module": "src/data/inMemoryDatabase.ts"
681
571
  }
682
- },
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "kind": "javascript-module",
577
+ "path": "src/data/index.ts",
578
+ "declarations": [],
579
+ "exports": [
683
580
  {
684
581
  "kind": "js",
685
- "name": "DEFAULT_USER",
582
+ "name": "*",
686
583
  "declaration": {
687
- "name": "_DEFAULT_USER",
688
- "module": "src/env/variables.ts"
584
+ "name": "*",
585
+ "package": "./inMemoryDatabase"
689
586
  }
690
587
  }
691
588
  ]
@@ -889,6 +786,109 @@
889
786
  }
890
787
  ]
891
788
  },
789
+ {
790
+ "kind": "javascript-module",
791
+ "path": "src/decorators/index.ts",
792
+ "declarations": [],
793
+ "exports": [
794
+ {
795
+ "kind": "js",
796
+ "name": "*",
797
+ "declaration": {
798
+ "name": "*",
799
+ "package": "./renderOnChange"
800
+ }
801
+ }
802
+ ]
803
+ },
804
+ {
805
+ "kind": "javascript-module",
806
+ "path": "src/decorators/renderOnChange.ts",
807
+ "declarations": [
808
+ {
809
+ "kind": "function",
810
+ "name": "renderOnChange",
811
+ "parameters": [
812
+ {
813
+ "name": "target",
814
+ "type": {
815
+ "text": "FASTElement & { render(): void }"
816
+ },
817
+ "description": "The target to define the property change handler on."
818
+ },
819
+ {
820
+ "name": "name",
821
+ "type": {
822
+ "text": "string"
823
+ },
824
+ "description": "The property name."
825
+ }
826
+ ],
827
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
828
+ "privacy": "public"
829
+ }
830
+ ],
831
+ "exports": [
832
+ {
833
+ "kind": "js",
834
+ "name": "renderOnChange",
835
+ "declaration": {
836
+ "name": "renderOnChange",
837
+ "module": "src/decorators/renderOnChange.ts"
838
+ }
839
+ }
840
+ ]
841
+ },
842
+ {
843
+ "kind": "javascript-module",
844
+ "path": "src/design-system/design-system.ts",
845
+ "declarations": [
846
+ {
847
+ "kind": "function",
848
+ "name": "assureDesignSystem",
849
+ "return": {
850
+ "type": {
851
+ "text": "DesignSystemModule"
852
+ }
853
+ },
854
+ "parameters": [
855
+ {
856
+ "name": "module",
857
+ "type": {
858
+ "text": "DesignSystemModule"
859
+ }
860
+ }
861
+ ],
862
+ "description": "assureDesignSystem.",
863
+ "privacy": "public"
864
+ }
865
+ ],
866
+ "exports": [
867
+ {
868
+ "kind": "js",
869
+ "name": "assureDesignSystem",
870
+ "declaration": {
871
+ "name": "assureDesignSystem",
872
+ "module": "src/design-system/design-system.ts"
873
+ }
874
+ }
875
+ ]
876
+ },
877
+ {
878
+ "kind": "javascript-module",
879
+ "path": "src/design-system/index.ts",
880
+ "declarations": [],
881
+ "exports": [
882
+ {
883
+ "kind": "js",
884
+ "name": "*",
885
+ "declaration": {
886
+ "name": "*",
887
+ "package": "./design-system"
888
+ }
889
+ }
890
+ ]
891
+ },
892
892
  {
893
893
  "kind": "javascript-module",
894
894
  "path": "src/formatters/datetime.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.127.2",
4
+ "version": "14.127.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.127.2",
23
- "@genesislcap/genx": "14.127.2",
22
+ "@genesislcap/foundation-testing": "14.127.3",
23
+ "@genesislcap/genx": "14.127.3",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.127.2",
27
+ "@genesislcap/foundation-logger": "14.127.3",
28
28
  "@microsoft/fast-components": "^2.30.6",
29
29
  "@microsoft/fast-element": "^1.12.0",
30
30
  "@microsoft/fast-foundation": "^2.49.4",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "80ea1376a014bd79ecb63f650a1f2472d2fe1fd4"
45
+ "gitHead": "62024ec5e139ca25c5d65e11798e009a1e86074d"
46
46
  }