@genesislcap/foundation-utils 14.143.0 → 14.143.1

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,205 +153,95 @@
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",
199
+ "name": "renderOnChange",
330
200
  "declaration": {
331
- "name": "InMemoryDatabase",
332
- "module": "src/data/inMemoryDatabase.ts"
201
+ "name": "renderOnChange",
202
+ "module": "src/decorators/renderOnChange.ts"
333
203
  }
334
204
  }
335
205
  ]
336
206
  },
337
207
  {
338
208
  "kind": "javascript-module",
339
- "path": "src/data/index.ts",
340
- "declarations": [],
209
+ "path": "src/design-system/design-system.ts",
210
+ "declarations": [
211
+ {
212
+ "kind": "function",
213
+ "name": "assureDesignSystem",
214
+ "return": {
215
+ "type": {
216
+ "text": "DesignSystemModule"
217
+ }
218
+ },
219
+ "parameters": [
220
+ {
221
+ "name": "module",
222
+ "type": {
223
+ "text": "DesignSystemModule"
224
+ }
225
+ }
226
+ ],
227
+ "description": "assureDesignSystem.",
228
+ "privacy": "public"
229
+ }
230
+ ],
341
231
  "exports": [
342
232
  {
343
233
  "kind": "js",
344
- "name": "*",
234
+ "name": "assureDesignSystem",
345
235
  "declaration": {
346
- "name": "*",
347
- "package": "./inMemoryDatabase"
236
+ "name": "assureDesignSystem",
237
+ "module": "src/design-system/design-system.ts"
348
238
  }
349
239
  }
350
240
  ]
351
241
  },
352
242
  {
353
243
  "kind": "javascript-module",
354
- "path": "src/directives/index.ts",
244
+ "path": "src/design-system/index.ts",
355
245
  "declarations": [],
356
246
  "exports": [
357
247
  {
@@ -359,22 +249,14 @@
359
249
  "name": "*",
360
250
  "declaration": {
361
251
  "name": "*",
362
- "package": "./sync"
363
- }
364
- },
365
- {
366
- "kind": "js",
367
- "name": "*",
368
- "declaration": {
369
- "name": "*",
370
- "package": "./when-else"
252
+ "package": "./design-system"
371
253
  }
372
254
  }
373
255
  ]
374
256
  },
375
257
  {
376
258
  "kind": "javascript-module",
377
- "path": "src/decorators/index.ts",
259
+ "path": "src/directives/index.ts",
378
260
  "declarations": [],
379
261
  "exports": [
380
262
  {
@@ -382,45 +264,15 @@
382
264
  "name": "*",
383
265
  "declaration": {
384
266
  "name": "*",
385
- "package": "./renderOnChange"
267
+ "package": "./sync"
386
268
  }
387
- }
388
- ]
389
- },
390
- {
391
- "kind": "javascript-module",
392
- "path": "src/decorators/renderOnChange.ts",
393
- "declarations": [
394
- {
395
- "kind": "function",
396
- "name": "renderOnChange",
397
- "parameters": [
398
- {
399
- "name": "target",
400
- "type": {
401
- "text": "FASTElement & { render(): void }"
402
- },
403
- "description": "The target to define the property change handler on."
404
- },
405
- {
406
- "name": "name",
407
- "type": {
408
- "text": "string"
409
- },
410
- "description": "The property name."
411
- }
412
- ],
413
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
414
- "privacy": "public"
415
- }
416
- ],
417
- "exports": [
269
+ },
418
270
  {
419
271
  "kind": "js",
420
- "name": "renderOnChange",
272
+ "name": "*",
421
273
  "declaration": {
422
- "name": "renderOnChange",
423
- "module": "src/decorators/renderOnChange.ts"
274
+ "name": "*",
275
+ "package": "./when-else"
424
276
  }
425
277
  }
426
278
  ]
@@ -650,42 +502,190 @@
650
502
  },
651
503
  {
652
504
  "kind": "javascript-module",
653
- "path": "src/design-system/design-system.ts",
505
+ "path": "src/data/inMemoryDatabase.ts",
654
506
  "declarations": [
655
507
  {
656
- "kind": "function",
657
- "name": "assureDesignSystem",
658
- "return": {
659
- "type": {
660
- "text": "DesignSystemModule"
661
- }
662
- },
663
- "parameters": [
508
+ "kind": "class",
509
+ "description": "An in memory database of specific DatabaseRecord types.",
510
+ "name": "InMemoryDatabase",
511
+ "members": [
664
512
  {
665
- "name": "module",
513
+ "kind": "field",
514
+ "name": "isWorking",
666
515
  "type": {
667
- "text": "DesignSystemModule"
668
- }
516
+ "text": "boolean"
517
+ },
518
+ "privacy": "public",
519
+ "default": "false"
520
+ },
521
+ {
522
+ "kind": "field",
523
+ "name": "records",
524
+ "type": {
525
+ "text": "Record<string, T>"
526
+ },
527
+ "privacy": "private",
528
+ "default": "{}"
529
+ },
530
+ {
531
+ "kind": "field",
532
+ "name": "beforeUpdateListeners",
533
+ "privacy": "private"
534
+ },
535
+ {
536
+ "kind": "field",
537
+ "name": "afterUpdateListeners",
538
+ "privacy": "private"
539
+ },
540
+ {
541
+ "kind": "method",
542
+ "name": "create",
543
+ "privacy": "public",
544
+ "return": {
545
+ "type": {
546
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
547
+ }
548
+ },
549
+ "parameters": [
550
+ {
551
+ "name": "newValue",
552
+ "type": {
553
+ "text": "Omit<T, 'id'>"
554
+ }
555
+ }
556
+ ]
557
+ },
558
+ {
559
+ "kind": "method",
560
+ "name": "read",
561
+ "privacy": "public",
562
+ "return": {
563
+ "type": {
564
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
565
+ }
566
+ },
567
+ "parameters": [
568
+ {
569
+ "name": "id",
570
+ "type": {
571
+ "text": "string"
572
+ }
573
+ }
574
+ ]
575
+ },
576
+ {
577
+ "kind": "method",
578
+ "name": "update",
579
+ "privacy": "public",
580
+ "return": {
581
+ "type": {
582
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
583
+ }
584
+ },
585
+ "parameters": [
586
+ {
587
+ "name": "id",
588
+ "type": {
589
+ "text": "string"
590
+ }
591
+ },
592
+ {
593
+ "name": "newValue",
594
+ "type": {
595
+ "text": "Omit<Partial<T>, 'id'>"
596
+ }
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "kind": "method",
602
+ "name": "delete",
603
+ "privacy": "public",
604
+ "return": {
605
+ "type": {
606
+ "text": "Promise<DatabaseAccessResult.Delete>"
607
+ }
608
+ },
609
+ "parameters": [
610
+ {
611
+ "name": "id",
612
+ "type": {
613
+ "text": "string"
614
+ }
615
+ }
616
+ ]
617
+ },
618
+ {
619
+ "kind": "method",
620
+ "name": "visit",
621
+ "privacy": "public",
622
+ "return": {
623
+ "type": {
624
+ "text": "Promise<void>"
625
+ }
626
+ },
627
+ "parameters": [
628
+ {
629
+ "name": "visitor",
630
+ "type": {
631
+ "text": "(record: T) => void"
632
+ }
633
+ }
634
+ ]
635
+ },
636
+ {
637
+ "kind": "method",
638
+ "name": "onBeforeUpdate",
639
+ "privacy": "public",
640
+ "return": {
641
+ "type": {
642
+ "text": "() => void"
643
+ }
644
+ },
645
+ "parameters": [
646
+ {
647
+ "name": "listener",
648
+ "type": {
649
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
650
+ }
651
+ }
652
+ ]
653
+ },
654
+ {
655
+ "kind": "method",
656
+ "name": "onAfterUpdate",
657
+ "privacy": "public",
658
+ "return": {
659
+ "type": {
660
+ "text": "() => void"
661
+ }
662
+ },
663
+ "parameters": [
664
+ {
665
+ "name": "listener",
666
+ "type": {
667
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
668
+ }
669
+ }
670
+ ]
669
671
  }
670
- ],
671
- "description": "assureDesignSystem.",
672
- "privacy": "public"
672
+ ]
673
673
  }
674
674
  ],
675
675
  "exports": [
676
676
  {
677
677
  "kind": "js",
678
- "name": "assureDesignSystem",
678
+ "name": "InMemoryDatabase",
679
679
  "declaration": {
680
- "name": "assureDesignSystem",
681
- "module": "src/design-system/design-system.ts"
680
+ "name": "InMemoryDatabase",
681
+ "module": "src/data/inMemoryDatabase.ts"
682
682
  }
683
683
  }
684
684
  ]
685
685
  },
686
686
  {
687
687
  "kind": "javascript-module",
688
- "path": "src/design-system/index.ts",
688
+ "path": "src/data/index.ts",
689
689
  "declarations": [],
690
690
  "exports": [
691
691
  {
@@ -693,7 +693,7 @@
693
693
  "name": "*",
694
694
  "declaration": {
695
695
  "name": "*",
696
- "package": "./design-system"
696
+ "package": "./inMemoryDatabase"
697
697
  }
698
698
  }
699
699
  ]
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.143.0",
4
+ "version": "14.143.1",
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.143.0",
23
- "@genesislcap/genx": "14.143.0",
22
+ "@genesislcap/foundation-testing": "14.143.1",
23
+ "@genesislcap/genx": "14.143.1",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.143.0",
27
+ "@genesislcap/foundation-logger": "14.143.1",
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": "b04aa3adb04068dd8e5de4cb903c0eeebf0737f5"
45
+ "gitHead": "5301ef68fff841cfb91d8b80ff57fee8e553b71b"
46
46
  }