@genesislcap/foundation-utils 14.203.2 → 14.204.1

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