@genesislcap/foundation-utils 14.145.4 → 14.146.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.
@@ -153,198 +153,53 @@
153
153
  },
154
154
  {
155
155
  "kind": "javascript-module",
156
- "path": "src/data/inMemoryDatabase.ts",
156
+ "path": "src/decorators/index.ts",
157
+ "declarations": [],
158
+ "exports": [
159
+ {
160
+ "kind": "js",
161
+ "name": "*",
162
+ "declaration": {
163
+ "name": "*",
164
+ "package": "./renderOnChange"
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ "kind": "javascript-module",
171
+ "path": "src/decorators/renderOnChange.ts",
157
172
  "declarations": [
158
173
  {
159
- "kind": "class",
160
- "description": "An in memory database of specific DatabaseRecord types.",
161
- "name": "InMemoryDatabase",
162
- "members": [
174
+ "kind": "function",
175
+ "name": "renderOnChange",
176
+ "parameters": [
163
177
  {
164
- "kind": "field",
165
- "name": "isWorking",
178
+ "name": "target",
166
179
  "type": {
167
- "text": "boolean"
180
+ "text": "FASTElement & { render(): void }"
168
181
  },
169
- "privacy": "public",
170
- "default": "false"
182
+ "description": "The target to define the property change handler on."
171
183
  },
172
184
  {
173
- "kind": "field",
174
- "name": "records",
185
+ "name": "name",
175
186
  "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
- }
187
+ "text": "string"
313
188
  },
314
- "parameters": [
315
- {
316
- "name": "listener",
317
- "type": {
318
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
319
- }
320
- }
321
- ]
189
+ "description": "The property name."
322
190
  }
323
- ]
191
+ ],
192
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
193
+ "privacy": "public"
324
194
  }
325
195
  ],
326
196
  "exports": [
327
197
  {
328
198
  "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": "*",
199
+ "name": "renderOnChange",
345
200
  "declaration": {
346
- "name": "*",
347
- "package": "./inMemoryDatabase"
201
+ "name": "renderOnChange",
202
+ "module": "src/decorators/renderOnChange.ts"
348
203
  }
349
204
  }
350
205
  ]
@@ -399,59 +254,6 @@
399
254
  }
400
255
  ]
401
256
  },
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
- },
455
257
  {
456
258
  "kind": "javascript-module",
457
259
  "path": "src/directives/index.ts",
@@ -897,6 +699,204 @@
897
699
  }
898
700
  ]
899
701
  },
702
+ {
703
+ "kind": "javascript-module",
704
+ "path": "src/data/inMemoryDatabase.ts",
705
+ "declarations": [
706
+ {
707
+ "kind": "class",
708
+ "description": "An in memory database of specific DatabaseRecord types.",
709
+ "name": "InMemoryDatabase",
710
+ "members": [
711
+ {
712
+ "kind": "field",
713
+ "name": "isWorking",
714
+ "type": {
715
+ "text": "boolean"
716
+ },
717
+ "privacy": "public",
718
+ "default": "false"
719
+ },
720
+ {
721
+ "kind": "field",
722
+ "name": "records",
723
+ "type": {
724
+ "text": "Record<string, T>"
725
+ },
726
+ "privacy": "private",
727
+ "default": "{}"
728
+ },
729
+ {
730
+ "kind": "field",
731
+ "name": "beforeUpdateListeners",
732
+ "privacy": "private"
733
+ },
734
+ {
735
+ "kind": "field",
736
+ "name": "afterUpdateListeners",
737
+ "privacy": "private"
738
+ },
739
+ {
740
+ "kind": "method",
741
+ "name": "create",
742
+ "privacy": "public",
743
+ "return": {
744
+ "type": {
745
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
746
+ }
747
+ },
748
+ "parameters": [
749
+ {
750
+ "name": "newValue",
751
+ "type": {
752
+ "text": "Omit<T, 'id'>"
753
+ }
754
+ }
755
+ ]
756
+ },
757
+ {
758
+ "kind": "method",
759
+ "name": "read",
760
+ "privacy": "public",
761
+ "return": {
762
+ "type": {
763
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
764
+ }
765
+ },
766
+ "parameters": [
767
+ {
768
+ "name": "id",
769
+ "type": {
770
+ "text": "string"
771
+ }
772
+ }
773
+ ]
774
+ },
775
+ {
776
+ "kind": "method",
777
+ "name": "update",
778
+ "privacy": "public",
779
+ "return": {
780
+ "type": {
781
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
782
+ }
783
+ },
784
+ "parameters": [
785
+ {
786
+ "name": "id",
787
+ "type": {
788
+ "text": "string"
789
+ }
790
+ },
791
+ {
792
+ "name": "newValue",
793
+ "type": {
794
+ "text": "Omit<Partial<T>, 'id'>"
795
+ }
796
+ }
797
+ ]
798
+ },
799
+ {
800
+ "kind": "method",
801
+ "name": "delete",
802
+ "privacy": "public",
803
+ "return": {
804
+ "type": {
805
+ "text": "Promise<DatabaseAccessResult.Delete>"
806
+ }
807
+ },
808
+ "parameters": [
809
+ {
810
+ "name": "id",
811
+ "type": {
812
+ "text": "string"
813
+ }
814
+ }
815
+ ]
816
+ },
817
+ {
818
+ "kind": "method",
819
+ "name": "visit",
820
+ "privacy": "public",
821
+ "return": {
822
+ "type": {
823
+ "text": "Promise<void>"
824
+ }
825
+ },
826
+ "parameters": [
827
+ {
828
+ "name": "visitor",
829
+ "type": {
830
+ "text": "(record: T) => void"
831
+ }
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "kind": "method",
837
+ "name": "onBeforeUpdate",
838
+ "privacy": "public",
839
+ "return": {
840
+ "type": {
841
+ "text": "() => void"
842
+ }
843
+ },
844
+ "parameters": [
845
+ {
846
+ "name": "listener",
847
+ "type": {
848
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
849
+ }
850
+ }
851
+ ]
852
+ },
853
+ {
854
+ "kind": "method",
855
+ "name": "onAfterUpdate",
856
+ "privacy": "public",
857
+ "return": {
858
+ "type": {
859
+ "text": "() => void"
860
+ }
861
+ },
862
+ "parameters": [
863
+ {
864
+ "name": "listener",
865
+ "type": {
866
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
867
+ }
868
+ }
869
+ ]
870
+ }
871
+ ]
872
+ }
873
+ ],
874
+ "exports": [
875
+ {
876
+ "kind": "js",
877
+ "name": "InMemoryDatabase",
878
+ "declaration": {
879
+ "name": "InMemoryDatabase",
880
+ "module": "src/data/inMemoryDatabase.ts"
881
+ }
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ "kind": "javascript-module",
887
+ "path": "src/data/index.ts",
888
+ "declarations": [],
889
+ "exports": [
890
+ {
891
+ "kind": "js",
892
+ "name": "*",
893
+ "declaration": {
894
+ "name": "*",
895
+ "package": "./inMemoryDatabase"
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.145.4",
4
+ "version": "14.146.0",
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.145.4",
23
- "@genesislcap/genx": "14.145.4",
22
+ "@genesislcap/foundation-testing": "14.146.0",
23
+ "@genesislcap/genx": "14.146.0",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.145.4",
27
+ "@genesislcap/foundation-logger": "14.146.0",
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": "3f7003c37df1a3b5e29a09a9e3bf1f76400d80f7"
45
+ "gitHead": "47ef15294656d275b3f5d0202d498a565655fd26"
46
46
  }