@genesislcap/foundation-utils 14.154.3-alpha-224a0a5.0 → 14.154.3-alpha-359bdfd.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 +251 -251
  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/design-system/design-system.ts",
@@ -201,6 +399,59 @@
201
399
  }
202
400
  ]
203
401
  },
402
+ {
403
+ "kind": "javascript-module",
404
+ "path": "src/decorators/index.ts",
405
+ "declarations": [],
406
+ "exports": [
407
+ {
408
+ "kind": "js",
409
+ "name": "*",
410
+ "declaration": {
411
+ "name": "*",
412
+ "package": "./renderOnChange"
413
+ }
414
+ }
415
+ ]
416
+ },
417
+ {
418
+ "kind": "javascript-module",
419
+ "path": "src/decorators/renderOnChange.ts",
420
+ "declarations": [
421
+ {
422
+ "kind": "function",
423
+ "name": "renderOnChange",
424
+ "parameters": [
425
+ {
426
+ "name": "target",
427
+ "type": {
428
+ "text": "FASTElement & { render(): void }"
429
+ },
430
+ "description": "The target to define the property change handler on."
431
+ },
432
+ {
433
+ "name": "name",
434
+ "type": {
435
+ "text": "string"
436
+ },
437
+ "description": "The property name."
438
+ }
439
+ ],
440
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
441
+ "privacy": "public"
442
+ }
443
+ ],
444
+ "exports": [
445
+ {
446
+ "kind": "js",
447
+ "name": "renderOnChange",
448
+ "declaration": {
449
+ "name": "renderOnChange",
450
+ "module": "src/decorators/renderOnChange.ts"
451
+ }
452
+ }
453
+ ]
454
+ },
204
455
  {
205
456
  "kind": "javascript-module",
206
457
  "path": "src/directives/index.ts",
@@ -646,257 +897,6 @@
646
897
  }
647
898
  ]
648
899
  },
649
- {
650
- "kind": "javascript-module",
651
- "path": "src/data/inMemoryDatabase.ts",
652
- "declarations": [
653
- {
654
- "kind": "class",
655
- "description": "An in memory database of specific DatabaseRecord types.",
656
- "name": "InMemoryDatabase",
657
- "members": [
658
- {
659
- "kind": "field",
660
- "name": "isWorking",
661
- "type": {
662
- "text": "boolean"
663
- },
664
- "privacy": "public",
665
- "default": "false"
666
- },
667
- {
668
- "kind": "field",
669
- "name": "records",
670
- "type": {
671
- "text": "Record<string, T>"
672
- },
673
- "privacy": "private",
674
- "default": "{}"
675
- },
676
- {
677
- "kind": "field",
678
- "name": "beforeUpdateListeners",
679
- "privacy": "private"
680
- },
681
- {
682
- "kind": "field",
683
- "name": "afterUpdateListeners",
684
- "privacy": "private"
685
- },
686
- {
687
- "kind": "method",
688
- "name": "create",
689
- "privacy": "public",
690
- "return": {
691
- "type": {
692
- "text": "Promise<DatabaseAccessResult.Create<T>>"
693
- }
694
- },
695
- "parameters": [
696
- {
697
- "name": "newValue",
698
- "type": {
699
- "text": "Omit<T, 'id'>"
700
- }
701
- }
702
- ]
703
- },
704
- {
705
- "kind": "method",
706
- "name": "read",
707
- "privacy": "public",
708
- "return": {
709
- "type": {
710
- "text": "Promise<DatabaseAccessResult.Read<T>>"
711
- }
712
- },
713
- "parameters": [
714
- {
715
- "name": "id",
716
- "type": {
717
- "text": "string"
718
- }
719
- }
720
- ]
721
- },
722
- {
723
- "kind": "method",
724
- "name": "update",
725
- "privacy": "public",
726
- "return": {
727
- "type": {
728
- "text": "Promise<DatabaseAccessResult.Update<T>>"
729
- }
730
- },
731
- "parameters": [
732
- {
733
- "name": "id",
734
- "type": {
735
- "text": "string"
736
- }
737
- },
738
- {
739
- "name": "newValue",
740
- "type": {
741
- "text": "Omit<Partial<T>, 'id'>"
742
- }
743
- }
744
- ]
745
- },
746
- {
747
- "kind": "method",
748
- "name": "delete",
749
- "privacy": "public",
750
- "return": {
751
- "type": {
752
- "text": "Promise<DatabaseAccessResult.Delete>"
753
- }
754
- },
755
- "parameters": [
756
- {
757
- "name": "id",
758
- "type": {
759
- "text": "string"
760
- }
761
- }
762
- ]
763
- },
764
- {
765
- "kind": "method",
766
- "name": "visit",
767
- "privacy": "public",
768
- "return": {
769
- "type": {
770
- "text": "Promise<void>"
771
- }
772
- },
773
- "parameters": [
774
- {
775
- "name": "visitor",
776
- "type": {
777
- "text": "(record: T) => void"
778
- }
779
- }
780
- ]
781
- },
782
- {
783
- "kind": "method",
784
- "name": "onBeforeUpdate",
785
- "privacy": "public",
786
- "return": {
787
- "type": {
788
- "text": "() => void"
789
- }
790
- },
791
- "parameters": [
792
- {
793
- "name": "listener",
794
- "type": {
795
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
796
- }
797
- }
798
- ]
799
- },
800
- {
801
- "kind": "method",
802
- "name": "onAfterUpdate",
803
- "privacy": "public",
804
- "return": {
805
- "type": {
806
- "text": "() => void"
807
- }
808
- },
809
- "parameters": [
810
- {
811
- "name": "listener",
812
- "type": {
813
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
814
- }
815
- }
816
- ]
817
- }
818
- ]
819
- }
820
- ],
821
- "exports": [
822
- {
823
- "kind": "js",
824
- "name": "InMemoryDatabase",
825
- "declaration": {
826
- "name": "InMemoryDatabase",
827
- "module": "src/data/inMemoryDatabase.ts"
828
- }
829
- }
830
- ]
831
- },
832
- {
833
- "kind": "javascript-module",
834
- "path": "src/data/index.ts",
835
- "declarations": [],
836
- "exports": [
837
- {
838
- "kind": "js",
839
- "name": "*",
840
- "declaration": {
841
- "name": "*",
842
- "package": "./inMemoryDatabase"
843
- }
844
- }
845
- ]
846
- },
847
- {
848
- "kind": "javascript-module",
849
- "path": "src/decorators/index.ts",
850
- "declarations": [],
851
- "exports": [
852
- {
853
- "kind": "js",
854
- "name": "*",
855
- "declaration": {
856
- "name": "*",
857
- "package": "./renderOnChange"
858
- }
859
- }
860
- ]
861
- },
862
- {
863
- "kind": "javascript-module",
864
- "path": "src/decorators/renderOnChange.ts",
865
- "declarations": [
866
- {
867
- "kind": "function",
868
- "name": "renderOnChange",
869
- "parameters": [
870
- {
871
- "name": "target",
872
- "type": {
873
- "text": "FASTElement & { render(): void }"
874
- },
875
- "description": "The target to define the property change handler on."
876
- },
877
- {
878
- "name": "name",
879
- "type": {
880
- "text": "string"
881
- },
882
- "description": "The property name."
883
- }
884
- ],
885
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
886
- "privacy": "public"
887
- }
888
- ],
889
- "exports": [
890
- {
891
- "kind": "js",
892
- "name": "renderOnChange",
893
- "declaration": {
894
- "name": "renderOnChange",
895
- "module": "src/decorators/renderOnChange.ts"
896
- }
897
- }
898
- ]
899
- },
900
900
  {
901
901
  "kind": "javascript-module",
902
902
  "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.154.3-alpha-224a0a5.0",
4
+ "version": "14.154.3-alpha-359bdfd.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.154.3-alpha-224a0a5.0",
23
- "@genesislcap/genx": "14.154.3-alpha-224a0a5.0",
24
- "@genesislcap/rollup-builder": "14.154.3-alpha-224a0a5.0",
25
- "@genesislcap/ts-builder": "14.154.3-alpha-224a0a5.0",
26
- "@genesislcap/uvu-playwright-builder": "14.154.3-alpha-224a0a5.0",
27
- "@genesislcap/vite-builder": "14.154.3-alpha-224a0a5.0",
28
- "@genesislcap/webpack-builder": "14.154.3-alpha-224a0a5.0",
22
+ "@genesislcap/foundation-testing": "14.154.3-alpha-359bdfd.0",
23
+ "@genesislcap/genx": "14.154.3-alpha-359bdfd.0",
24
+ "@genesislcap/rollup-builder": "14.154.3-alpha-359bdfd.0",
25
+ "@genesislcap/ts-builder": "14.154.3-alpha-359bdfd.0",
26
+ "@genesislcap/uvu-playwright-builder": "14.154.3-alpha-359bdfd.0",
27
+ "@genesislcap/vite-builder": "14.154.3-alpha-359bdfd.0",
28
+ "@genesislcap/webpack-builder": "14.154.3-alpha-359bdfd.0",
29
29
  "rimraf": "^3.0.2"
30
30
  },
31
31
  "dependencies": {
32
- "@genesislcap/foundation-logger": "14.154.3-alpha-224a0a5.0",
32
+ "@genesislcap/foundation-logger": "14.154.3-alpha-359bdfd.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": "1e3cada1f654cb432dc359f88f553695e829794a"
50
+ "gitHead": "835f258ddff9da4f231dbe6493ebf0fa385a5c6b"
51
51
  }