@genesislcap/foundation-utils 14.194.1 → 14.194.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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +304 -304
  2. package/package.json +10 -10
@@ -159,6 +159,254 @@
159
159
  }
160
160
  ]
161
161
  },
162
+ {
163
+ "kind": "javascript-module",
164
+ "path": "src/data/inMemoryDatabase.ts",
165
+ "declarations": [
166
+ {
167
+ "kind": "class",
168
+ "description": "An in memory database of specific DatabaseRecord types.",
169
+ "name": "InMemoryDatabase",
170
+ "members": [
171
+ {
172
+ "kind": "field",
173
+ "name": "isWorking",
174
+ "type": {
175
+ "text": "boolean"
176
+ },
177
+ "privacy": "public",
178
+ "default": "false"
179
+ },
180
+ {
181
+ "kind": "field",
182
+ "name": "records",
183
+ "type": {
184
+ "text": "Record<string, T>"
185
+ },
186
+ "privacy": "private",
187
+ "default": "{}"
188
+ },
189
+ {
190
+ "kind": "field",
191
+ "name": "beforeUpdateListeners",
192
+ "privacy": "private"
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "afterUpdateListeners",
197
+ "privacy": "private"
198
+ },
199
+ {
200
+ "kind": "method",
201
+ "name": "create",
202
+ "privacy": "public",
203
+ "return": {
204
+ "type": {
205
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
206
+ }
207
+ },
208
+ "parameters": [
209
+ {
210
+ "name": "newValue",
211
+ "type": {
212
+ "text": "Omit<T, 'id'>"
213
+ }
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ "kind": "method",
219
+ "name": "read",
220
+ "privacy": "public",
221
+ "return": {
222
+ "type": {
223
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
224
+ }
225
+ },
226
+ "parameters": [
227
+ {
228
+ "name": "id",
229
+ "type": {
230
+ "text": "string"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "method",
237
+ "name": "update",
238
+ "privacy": "public",
239
+ "return": {
240
+ "type": {
241
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
242
+ }
243
+ },
244
+ "parameters": [
245
+ {
246
+ "name": "id",
247
+ "type": {
248
+ "text": "string"
249
+ }
250
+ },
251
+ {
252
+ "name": "newValue",
253
+ "type": {
254
+ "text": "Omit<Partial<T>, 'id'>"
255
+ }
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "kind": "method",
261
+ "name": "delete",
262
+ "privacy": "public",
263
+ "return": {
264
+ "type": {
265
+ "text": "Promise<DatabaseAccessResult.Delete>"
266
+ }
267
+ },
268
+ "parameters": [
269
+ {
270
+ "name": "id",
271
+ "type": {
272
+ "text": "string"
273
+ }
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "kind": "method",
279
+ "name": "visit",
280
+ "privacy": "public",
281
+ "return": {
282
+ "type": {
283
+ "text": "Promise<void>"
284
+ }
285
+ },
286
+ "parameters": [
287
+ {
288
+ "name": "visitor",
289
+ "type": {
290
+ "text": "(record: T) => void"
291
+ }
292
+ }
293
+ ]
294
+ },
295
+ {
296
+ "kind": "method",
297
+ "name": "onBeforeUpdate",
298
+ "privacy": "public",
299
+ "return": {
300
+ "type": {
301
+ "text": "() => void"
302
+ }
303
+ },
304
+ "parameters": [
305
+ {
306
+ "name": "listener",
307
+ "type": {
308
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
309
+ }
310
+ }
311
+ ]
312
+ },
313
+ {
314
+ "kind": "method",
315
+ "name": "onAfterUpdate",
316
+ "privacy": "public",
317
+ "return": {
318
+ "type": {
319
+ "text": "() => void"
320
+ }
321
+ },
322
+ "parameters": [
323
+ {
324
+ "name": "listener",
325
+ "type": {
326
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
327
+ }
328
+ }
329
+ ]
330
+ }
331
+ ]
332
+ }
333
+ ],
334
+ "exports": [
335
+ {
336
+ "kind": "js",
337
+ "name": "InMemoryDatabase",
338
+ "declaration": {
339
+ "name": "InMemoryDatabase",
340
+ "module": "src/data/inMemoryDatabase.ts"
341
+ }
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "kind": "javascript-module",
347
+ "path": "src/data/index.ts",
348
+ "declarations": [],
349
+ "exports": [
350
+ {
351
+ "kind": "js",
352
+ "name": "*",
353
+ "declaration": {
354
+ "name": "*",
355
+ "package": "./inMemoryDatabase"
356
+ }
357
+ }
358
+ ]
359
+ },
360
+ {
361
+ "kind": "javascript-module",
362
+ "path": "src/design-system/design-system.ts",
363
+ "declarations": [
364
+ {
365
+ "kind": "function",
366
+ "name": "assureDesignSystem",
367
+ "return": {
368
+ "type": {
369
+ "text": "DesignSystemModule"
370
+ }
371
+ },
372
+ "parameters": [
373
+ {
374
+ "name": "module",
375
+ "type": {
376
+ "text": "DesignSystemModule"
377
+ }
378
+ }
379
+ ],
380
+ "description": "assureDesignSystem.",
381
+ "privacy": "public"
382
+ }
383
+ ],
384
+ "exports": [
385
+ {
386
+ "kind": "js",
387
+ "name": "assureDesignSystem",
388
+ "declaration": {
389
+ "name": "assureDesignSystem",
390
+ "module": "src/design-system/design-system.ts"
391
+ }
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "kind": "javascript-module",
397
+ "path": "src/design-system/index.ts",
398
+ "declarations": [],
399
+ "exports": [
400
+ {
401
+ "kind": "js",
402
+ "name": "*",
403
+ "declaration": {
404
+ "name": "*",
405
+ "package": "./design-system"
406
+ }
407
+ }
408
+ ]
409
+ },
162
410
  {
163
411
  "kind": "javascript-module",
164
412
  "path": "src/directives/index.ts",
@@ -182,6 +430,59 @@
182
430
  }
183
431
  ]
184
432
  },
433
+ {
434
+ "kind": "javascript-module",
435
+ "path": "src/decorators/index.ts",
436
+ "declarations": [],
437
+ "exports": [
438
+ {
439
+ "kind": "js",
440
+ "name": "*",
441
+ "declaration": {
442
+ "name": "*",
443
+ "package": "./renderOnChange"
444
+ }
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "kind": "javascript-module",
450
+ "path": "src/decorators/renderOnChange.ts",
451
+ "declarations": [
452
+ {
453
+ "kind": "function",
454
+ "name": "renderOnChange",
455
+ "parameters": [
456
+ {
457
+ "name": "target",
458
+ "type": {
459
+ "text": "FASTElement & { render(): void }"
460
+ },
461
+ "description": "The target to define the property change handler on."
462
+ },
463
+ {
464
+ "name": "name",
465
+ "type": {
466
+ "text": "string"
467
+ },
468
+ "description": "The property name."
469
+ }
470
+ ],
471
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
472
+ "privacy": "public"
473
+ }
474
+ ],
475
+ "exports": [
476
+ {
477
+ "kind": "js",
478
+ "name": "renderOnChange",
479
+ "declaration": {
480
+ "name": "renderOnChange",
481
+ "module": "src/decorators/renderOnChange.ts"
482
+ }
483
+ }
484
+ ]
485
+ },
185
486
  {
186
487
  "kind": "javascript-module",
187
488
  "path": "src/env/index.ts",
@@ -412,60 +713,10 @@
412
713
  },
413
714
  {
414
715
  "kind": "js",
415
- "name": "DEFAULT_USER",
416
- "declaration": {
417
- "name": "_DEFAULT_USER",
418
- "module": "src/env/variables.ts"
419
- }
420
- }
421
- ]
422
- },
423
- {
424
- "kind": "javascript-module",
425
- "path": "src/design-system/design-system.ts",
426
- "declarations": [
427
- {
428
- "kind": "function",
429
- "name": "assureDesignSystem",
430
- "return": {
431
- "type": {
432
- "text": "DesignSystemModule"
433
- }
434
- },
435
- "parameters": [
436
- {
437
- "name": "module",
438
- "type": {
439
- "text": "DesignSystemModule"
440
- }
441
- }
442
- ],
443
- "description": "assureDesignSystem.",
444
- "privacy": "public"
445
- }
446
- ],
447
- "exports": [
448
- {
449
- "kind": "js",
450
- "name": "assureDesignSystem",
451
- "declaration": {
452
- "name": "assureDesignSystem",
453
- "module": "src/design-system/design-system.ts"
454
- }
455
- }
456
- ]
457
- },
458
- {
459
- "kind": "javascript-module",
460
- "path": "src/design-system/index.ts",
461
- "declarations": [],
462
- "exports": [
463
- {
464
- "kind": "js",
465
- "name": "*",
716
+ "name": "DEFAULT_USER",
466
717
  "declaration": {
467
- "name": "*",
468
- "package": "./design-system"
718
+ "name": "_DEFAULT_USER",
719
+ "module": "src/env/variables.ts"
469
720
  }
470
721
  }
471
722
  ]
@@ -669,257 +920,6 @@
669
920
  }
670
921
  ]
671
922
  },
672
- {
673
- "kind": "javascript-module",
674
- "path": "src/data/inMemoryDatabase.ts",
675
- "declarations": [
676
- {
677
- "kind": "class",
678
- "description": "An in memory database of specific DatabaseRecord types.",
679
- "name": "InMemoryDatabase",
680
- "members": [
681
- {
682
- "kind": "field",
683
- "name": "isWorking",
684
- "type": {
685
- "text": "boolean"
686
- },
687
- "privacy": "public",
688
- "default": "false"
689
- },
690
- {
691
- "kind": "field",
692
- "name": "records",
693
- "type": {
694
- "text": "Record<string, T>"
695
- },
696
- "privacy": "private",
697
- "default": "{}"
698
- },
699
- {
700
- "kind": "field",
701
- "name": "beforeUpdateListeners",
702
- "privacy": "private"
703
- },
704
- {
705
- "kind": "field",
706
- "name": "afterUpdateListeners",
707
- "privacy": "private"
708
- },
709
- {
710
- "kind": "method",
711
- "name": "create",
712
- "privacy": "public",
713
- "return": {
714
- "type": {
715
- "text": "Promise<DatabaseAccessResult.Create<T>>"
716
- }
717
- },
718
- "parameters": [
719
- {
720
- "name": "newValue",
721
- "type": {
722
- "text": "Omit<T, 'id'>"
723
- }
724
- }
725
- ]
726
- },
727
- {
728
- "kind": "method",
729
- "name": "read",
730
- "privacy": "public",
731
- "return": {
732
- "type": {
733
- "text": "Promise<DatabaseAccessResult.Read<T>>"
734
- }
735
- },
736
- "parameters": [
737
- {
738
- "name": "id",
739
- "type": {
740
- "text": "string"
741
- }
742
- }
743
- ]
744
- },
745
- {
746
- "kind": "method",
747
- "name": "update",
748
- "privacy": "public",
749
- "return": {
750
- "type": {
751
- "text": "Promise<DatabaseAccessResult.Update<T>>"
752
- }
753
- },
754
- "parameters": [
755
- {
756
- "name": "id",
757
- "type": {
758
- "text": "string"
759
- }
760
- },
761
- {
762
- "name": "newValue",
763
- "type": {
764
- "text": "Omit<Partial<T>, 'id'>"
765
- }
766
- }
767
- ]
768
- },
769
- {
770
- "kind": "method",
771
- "name": "delete",
772
- "privacy": "public",
773
- "return": {
774
- "type": {
775
- "text": "Promise<DatabaseAccessResult.Delete>"
776
- }
777
- },
778
- "parameters": [
779
- {
780
- "name": "id",
781
- "type": {
782
- "text": "string"
783
- }
784
- }
785
- ]
786
- },
787
- {
788
- "kind": "method",
789
- "name": "visit",
790
- "privacy": "public",
791
- "return": {
792
- "type": {
793
- "text": "Promise<void>"
794
- }
795
- },
796
- "parameters": [
797
- {
798
- "name": "visitor",
799
- "type": {
800
- "text": "(record: T) => void"
801
- }
802
- }
803
- ]
804
- },
805
- {
806
- "kind": "method",
807
- "name": "onBeforeUpdate",
808
- "privacy": "public",
809
- "return": {
810
- "type": {
811
- "text": "() => void"
812
- }
813
- },
814
- "parameters": [
815
- {
816
- "name": "listener",
817
- "type": {
818
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
819
- }
820
- }
821
- ]
822
- },
823
- {
824
- "kind": "method",
825
- "name": "onAfterUpdate",
826
- "privacy": "public",
827
- "return": {
828
- "type": {
829
- "text": "() => void"
830
- }
831
- },
832
- "parameters": [
833
- {
834
- "name": "listener",
835
- "type": {
836
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
837
- }
838
- }
839
- ]
840
- }
841
- ]
842
- }
843
- ],
844
- "exports": [
845
- {
846
- "kind": "js",
847
- "name": "InMemoryDatabase",
848
- "declaration": {
849
- "name": "InMemoryDatabase",
850
- "module": "src/data/inMemoryDatabase.ts"
851
- }
852
- }
853
- ]
854
- },
855
- {
856
- "kind": "javascript-module",
857
- "path": "src/data/index.ts",
858
- "declarations": [],
859
- "exports": [
860
- {
861
- "kind": "js",
862
- "name": "*",
863
- "declaration": {
864
- "name": "*",
865
- "package": "./inMemoryDatabase"
866
- }
867
- }
868
- ]
869
- },
870
- {
871
- "kind": "javascript-module",
872
- "path": "src/decorators/index.ts",
873
- "declarations": [],
874
- "exports": [
875
- {
876
- "kind": "js",
877
- "name": "*",
878
- "declaration": {
879
- "name": "*",
880
- "package": "./renderOnChange"
881
- }
882
- }
883
- ]
884
- },
885
- {
886
- "kind": "javascript-module",
887
- "path": "src/decorators/renderOnChange.ts",
888
- "declarations": [
889
- {
890
- "kind": "function",
891
- "name": "renderOnChange",
892
- "parameters": [
893
- {
894
- "name": "target",
895
- "type": {
896
- "text": "FASTElement & { render(): void }"
897
- },
898
- "description": "The target to define the property change handler on."
899
- },
900
- {
901
- "name": "name",
902
- "type": {
903
- "text": "string"
904
- },
905
- "description": "The property name."
906
- }
907
- ],
908
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
909
- "privacy": "public"
910
- }
911
- ],
912
- "exports": [
913
- {
914
- "kind": "js",
915
- "name": "renderOnChange",
916
- "declaration": {
917
- "name": "renderOnChange",
918
- "module": "src/decorators/renderOnChange.ts"
919
- }
920
- }
921
- ]
922
- },
923
923
  {
924
924
  "kind": "javascript-module",
925
925
  "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.194.1",
4
+ "version": "14.194.3",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.194.1",
31
- "@genesislcap/genx": "14.194.1",
32
- "@genesislcap/rollup-builder": "14.194.1",
33
- "@genesislcap/ts-builder": "14.194.1",
34
- "@genesislcap/uvu-playwright-builder": "14.194.1",
35
- "@genesislcap/vite-builder": "14.194.1",
36
- "@genesislcap/webpack-builder": "14.194.1",
30
+ "@genesislcap/foundation-testing": "14.194.3",
31
+ "@genesislcap/genx": "14.194.3",
32
+ "@genesislcap/rollup-builder": "14.194.3",
33
+ "@genesislcap/ts-builder": "14.194.3",
34
+ "@genesislcap/uvu-playwright-builder": "14.194.3",
35
+ "@genesislcap/vite-builder": "14.194.3",
36
+ "@genesislcap/webpack-builder": "14.194.3",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.194.1",
40
+ "@genesislcap/foundation-logger": "14.194.3",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -54,5 +54,5 @@
54
54
  "access": "public"
55
55
  },
56
56
  "customElements": "dist/custom-elements.json",
57
- "gitHead": "fd89966869cd72af9e24ef5692e41ff8235f7136"
57
+ "gitHead": "8d73a2baa6216485226a80c4f28c22b895e728ea"
58
58
  }