@genesislcap/foundation-utils 14.224.1 → 14.224.2

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 +223 -223
  2. package/package.json +10 -10
@@ -163,65 +163,205 @@
163
163
  },
164
164
  {
165
165
  "kind": "javascript-module",
166
- "path": "src/directives/index.ts",
167
- "declarations": [],
168
- "exports": [
166
+ "path": "src/data/inMemoryDatabase.ts",
167
+ "declarations": [
169
168
  {
170
- "kind": "js",
171
- "name": "*",
172
- "declaration": {
173
- "name": "*",
174
- "package": "./sync"
175
- }
176
- },
169
+ "kind": "class",
170
+ "description": "An in memory database of specific DatabaseRecord types.",
171
+ "name": "InMemoryDatabase",
172
+ "members": [
173
+ {
174
+ "kind": "field",
175
+ "name": "isWorking",
176
+ "type": {
177
+ "text": "boolean"
178
+ },
179
+ "privacy": "public",
180
+ "default": "false"
181
+ },
182
+ {
183
+ "kind": "field",
184
+ "name": "records",
185
+ "type": {
186
+ "text": "Record<string, T>"
187
+ },
188
+ "privacy": "private",
189
+ "default": "{}"
190
+ },
191
+ {
192
+ "kind": "field",
193
+ "name": "beforeUpdateListeners",
194
+ "privacy": "private"
195
+ },
196
+ {
197
+ "kind": "field",
198
+ "name": "afterUpdateListeners",
199
+ "privacy": "private"
200
+ },
201
+ {
202
+ "kind": "method",
203
+ "name": "create",
204
+ "privacy": "public",
205
+ "return": {
206
+ "type": {
207
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
208
+ }
209
+ },
210
+ "parameters": [
211
+ {
212
+ "name": "newValue",
213
+ "type": {
214
+ "text": "Omit<T, 'id'>"
215
+ }
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "kind": "method",
221
+ "name": "read",
222
+ "privacy": "public",
223
+ "return": {
224
+ "type": {
225
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
226
+ }
227
+ },
228
+ "parameters": [
229
+ {
230
+ "name": "id",
231
+ "type": {
232
+ "text": "string"
233
+ }
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "kind": "method",
239
+ "name": "update",
240
+ "privacy": "public",
241
+ "return": {
242
+ "type": {
243
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
244
+ }
245
+ },
246
+ "parameters": [
247
+ {
248
+ "name": "id",
249
+ "type": {
250
+ "text": "string"
251
+ }
252
+ },
253
+ {
254
+ "name": "newValue",
255
+ "type": {
256
+ "text": "Omit<Partial<T>, 'id'>"
257
+ }
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "kind": "method",
263
+ "name": "delete",
264
+ "privacy": "public",
265
+ "return": {
266
+ "type": {
267
+ "text": "Promise<DatabaseAccessResult.Delete>"
268
+ }
269
+ },
270
+ "parameters": [
271
+ {
272
+ "name": "id",
273
+ "type": {
274
+ "text": "string"
275
+ }
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "kind": "method",
281
+ "name": "visit",
282
+ "privacy": "public",
283
+ "return": {
284
+ "type": {
285
+ "text": "Promise<void>"
286
+ }
287
+ },
288
+ "parameters": [
289
+ {
290
+ "name": "visitor",
291
+ "type": {
292
+ "text": "(record: T) => void"
293
+ }
294
+ }
295
+ ]
296
+ },
297
+ {
298
+ "kind": "method",
299
+ "name": "onBeforeUpdate",
300
+ "privacy": "public",
301
+ "return": {
302
+ "type": {
303
+ "text": "() => void"
304
+ }
305
+ },
306
+ "parameters": [
307
+ {
308
+ "name": "listener",
309
+ "type": {
310
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
311
+ }
312
+ }
313
+ ]
314
+ },
315
+ {
316
+ "kind": "method",
317
+ "name": "onAfterUpdate",
318
+ "privacy": "public",
319
+ "return": {
320
+ "type": {
321
+ "text": "() => void"
322
+ }
323
+ },
324
+ "parameters": [
325
+ {
326
+ "name": "listener",
327
+ "type": {
328
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
329
+ }
330
+ }
331
+ ]
332
+ }
333
+ ]
334
+ }
335
+ ],
336
+ "exports": [
177
337
  {
178
338
  "kind": "js",
179
- "name": "*",
339
+ "name": "InMemoryDatabase",
180
340
  "declaration": {
181
- "name": "*",
182
- "package": "./when-else"
341
+ "name": "InMemoryDatabase",
342
+ "module": "src/data/inMemoryDatabase.ts"
183
343
  }
184
344
  }
185
345
  ]
186
346
  },
187
347
  {
188
348
  "kind": "javascript-module",
189
- "path": "src/design-system/design-system.ts",
190
- "declarations": [
191
- {
192
- "kind": "function",
193
- "name": "assureDesignSystem",
194
- "return": {
195
- "type": {
196
- "text": "DesignSystemModule"
197
- }
198
- },
199
- "parameters": [
200
- {
201
- "name": "module",
202
- "type": {
203
- "text": "DesignSystemModule"
204
- }
205
- }
206
- ],
207
- "description": "assureDesignSystem.",
208
- "privacy": "public"
209
- }
210
- ],
349
+ "path": "src/data/index.ts",
350
+ "declarations": [],
211
351
  "exports": [
212
352
  {
213
353
  "kind": "js",
214
- "name": "assureDesignSystem",
354
+ "name": "*",
215
355
  "declaration": {
216
- "name": "assureDesignSystem",
217
- "module": "src/design-system/design-system.ts"
356
+ "name": "*",
357
+ "package": "./inMemoryDatabase"
218
358
  }
219
359
  }
220
360
  ]
221
361
  },
222
362
  {
223
363
  "kind": "javascript-module",
224
- "path": "src/design-system/index.ts",
364
+ "path": "src/directives/index.ts",
225
365
  "declarations": [],
226
366
  "exports": [
227
367
  {
@@ -229,7 +369,15 @@
229
369
  "name": "*",
230
370
  "declaration": {
231
371
  "name": "*",
232
- "package": "./design-system"
372
+ "package": "./sync"
373
+ }
374
+ },
375
+ {
376
+ "kind": "js",
377
+ "name": "*",
378
+ "declaration": {
379
+ "name": "*",
380
+ "package": "./when-else"
233
381
  }
234
382
  }
235
383
  ]
@@ -474,190 +622,42 @@
474
622
  },
475
623
  {
476
624
  "kind": "javascript-module",
477
- "path": "src/data/inMemoryDatabase.ts",
625
+ "path": "src/design-system/design-system.ts",
478
626
  "declarations": [
479
627
  {
480
- "kind": "class",
481
- "description": "An in memory database of specific DatabaseRecord types.",
482
- "name": "InMemoryDatabase",
483
- "members": [
484
- {
485
- "kind": "field",
486
- "name": "isWorking",
487
- "type": {
488
- "text": "boolean"
489
- },
490
- "privacy": "public",
491
- "default": "false"
492
- },
628
+ "kind": "function",
629
+ "name": "assureDesignSystem",
630
+ "return": {
631
+ "type": {
632
+ "text": "DesignSystemModule"
633
+ }
634
+ },
635
+ "parameters": [
493
636
  {
494
- "kind": "field",
495
- "name": "records",
637
+ "name": "module",
496
638
  "type": {
497
- "text": "Record<string, T>"
498
- },
499
- "privacy": "private",
500
- "default": "{}"
501
- },
502
- {
503
- "kind": "field",
504
- "name": "beforeUpdateListeners",
505
- "privacy": "private"
506
- },
507
- {
508
- "kind": "field",
509
- "name": "afterUpdateListeners",
510
- "privacy": "private"
511
- },
512
- {
513
- "kind": "method",
514
- "name": "create",
515
- "privacy": "public",
516
- "return": {
517
- "type": {
518
- "text": "Promise<DatabaseAccessResult.Create<T>>"
519
- }
520
- },
521
- "parameters": [
522
- {
523
- "name": "newValue",
524
- "type": {
525
- "text": "Omit<T, 'id'>"
526
- }
527
- }
528
- ]
529
- },
530
- {
531
- "kind": "method",
532
- "name": "read",
533
- "privacy": "public",
534
- "return": {
535
- "type": {
536
- "text": "Promise<DatabaseAccessResult.Read<T>>"
537
- }
538
- },
539
- "parameters": [
540
- {
541
- "name": "id",
542
- "type": {
543
- "text": "string"
544
- }
545
- }
546
- ]
547
- },
548
- {
549
- "kind": "method",
550
- "name": "update",
551
- "privacy": "public",
552
- "return": {
553
- "type": {
554
- "text": "Promise<DatabaseAccessResult.Update<T>>"
555
- }
556
- },
557
- "parameters": [
558
- {
559
- "name": "id",
560
- "type": {
561
- "text": "string"
562
- }
563
- },
564
- {
565
- "name": "newValue",
566
- "type": {
567
- "text": "Omit<Partial<T>, 'id'>"
568
- }
569
- }
570
- ]
571
- },
572
- {
573
- "kind": "method",
574
- "name": "delete",
575
- "privacy": "public",
576
- "return": {
577
- "type": {
578
- "text": "Promise<DatabaseAccessResult.Delete>"
579
- }
580
- },
581
- "parameters": [
582
- {
583
- "name": "id",
584
- "type": {
585
- "text": "string"
586
- }
587
- }
588
- ]
589
- },
590
- {
591
- "kind": "method",
592
- "name": "visit",
593
- "privacy": "public",
594
- "return": {
595
- "type": {
596
- "text": "Promise<void>"
597
- }
598
- },
599
- "parameters": [
600
- {
601
- "name": "visitor",
602
- "type": {
603
- "text": "(record: T) => void"
604
- }
605
- }
606
- ]
607
- },
608
- {
609
- "kind": "method",
610
- "name": "onBeforeUpdate",
611
- "privacy": "public",
612
- "return": {
613
- "type": {
614
- "text": "() => void"
615
- }
616
- },
617
- "parameters": [
618
- {
619
- "name": "listener",
620
- "type": {
621
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
622
- }
623
- }
624
- ]
625
- },
626
- {
627
- "kind": "method",
628
- "name": "onAfterUpdate",
629
- "privacy": "public",
630
- "return": {
631
- "type": {
632
- "text": "() => void"
633
- }
634
- },
635
- "parameters": [
636
- {
637
- "name": "listener",
638
- "type": {
639
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
640
- }
641
- }
642
- ]
639
+ "text": "DesignSystemModule"
640
+ }
643
641
  }
644
- ]
642
+ ],
643
+ "description": "assureDesignSystem.",
644
+ "privacy": "public"
645
645
  }
646
646
  ],
647
647
  "exports": [
648
648
  {
649
649
  "kind": "js",
650
- "name": "InMemoryDatabase",
650
+ "name": "assureDesignSystem",
651
651
  "declaration": {
652
- "name": "InMemoryDatabase",
653
- "module": "src/data/inMemoryDatabase.ts"
652
+ "name": "assureDesignSystem",
653
+ "module": "src/design-system/design-system.ts"
654
654
  }
655
655
  }
656
656
  ]
657
657
  },
658
658
  {
659
659
  "kind": "javascript-module",
660
- "path": "src/data/index.ts",
660
+ "path": "src/design-system/index.ts",
661
661
  "declarations": [],
662
662
  "exports": [
663
663
  {
@@ -665,7 +665,7 @@
665
665
  "name": "*",
666
666
  "declaration": {
667
667
  "name": "*",
668
- "package": "./inMemoryDatabase"
668
+ "package": "./design-system"
669
669
  }
670
670
  }
671
671
  ]
@@ -1459,6 +1459,21 @@
1459
1459
  }
1460
1460
  ]
1461
1461
  },
1462
+ {
1463
+ "kind": "javascript-module",
1464
+ "path": "src/serializers/index.ts",
1465
+ "declarations": [],
1466
+ "exports": [
1467
+ {
1468
+ "kind": "js",
1469
+ "name": "*",
1470
+ "declaration": {
1471
+ "name": "*",
1472
+ "package": "./json"
1473
+ }
1474
+ }
1475
+ ]
1476
+ },
1462
1477
  {
1463
1478
  "kind": "javascript-module",
1464
1479
  "path": "src/resource/index.ts",
@@ -1500,21 +1515,6 @@
1500
1515
  }
1501
1516
  ]
1502
1517
  },
1503
- {
1504
- "kind": "javascript-module",
1505
- "path": "src/serializers/index.ts",
1506
- "declarations": [],
1507
- "exports": [
1508
- {
1509
- "kind": "js",
1510
- "name": "*",
1511
- "declaration": {
1512
- "name": "*",
1513
- "package": "./json"
1514
- }
1515
- }
1516
- ]
1517
- },
1518
1518
  {
1519
1519
  "kind": "javascript-module",
1520
1520
  "path": "src/state/index.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.224.1",
4
+ "version": "14.224.2",
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.224.1",
31
- "@genesislcap/genx": "14.224.1",
32
- "@genesislcap/rollup-builder": "14.224.1",
33
- "@genesislcap/ts-builder": "14.224.1",
34
- "@genesislcap/uvu-playwright-builder": "14.224.1",
35
- "@genesislcap/vite-builder": "14.224.1",
36
- "@genesislcap/webpack-builder": "14.224.1",
30
+ "@genesislcap/foundation-testing": "14.224.2",
31
+ "@genesislcap/genx": "14.224.2",
32
+ "@genesislcap/rollup-builder": "14.224.2",
33
+ "@genesislcap/ts-builder": "14.224.2",
34
+ "@genesislcap/uvu-playwright-builder": "14.224.2",
35
+ "@genesislcap/vite-builder": "14.224.2",
36
+ "@genesislcap/webpack-builder": "14.224.2",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.224.1",
40
+ "@genesislcap/foundation-logger": "14.224.2",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "2.49.6",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "84efb166d0f84f3908014b548f58207cc29cedc6"
58
+ "gitHead": "18c2b90ffb7ba7234a5adac416589a81969b6ae9"
59
59
  }