@genesislcap/foundation-utils 14.354.4-alpha-e9ad5f8.0 → 14.354.4-alpha-2c4e0c7.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 +297 -297
  2. package/package.json +11 -11
@@ -187,190 +187,112 @@
187
187
  },
188
188
  {
189
189
  "kind": "javascript-module",
190
- "path": "src/data/inMemoryDatabase.ts",
190
+ "path": "src/design-system/design-system.ts",
191
191
  "declarations": [
192
192
  {
193
- "kind": "class",
194
- "description": "An in memory database of specific DatabaseRecord types.",
195
- "name": "InMemoryDatabase",
196
- "members": [
193
+ "kind": "function",
194
+ "name": "assureDesignSystem",
195
+ "return": {
196
+ "type": {
197
+ "text": "DesignSystemModule"
198
+ }
199
+ },
200
+ "parameters": [
197
201
  {
198
- "kind": "field",
199
- "name": "isWorking",
202
+ "name": "module",
200
203
  "type": {
201
- "text": "boolean"
202
- },
203
- "privacy": "public",
204
- "default": "false"
205
- },
204
+ "text": "DesignSystemModule"
205
+ }
206
+ }
207
+ ],
208
+ "description": "assureDesignSystem.",
209
+ "privacy": "public"
210
+ },
211
+ {
212
+ "kind": "function",
213
+ "name": "getCurrentDesignSystem",
214
+ "return": {
215
+ "type": {
216
+ "text": ""
217
+ }
218
+ },
219
+ "parameters": [
206
220
  {
207
- "kind": "field",
208
- "name": "records",
221
+ "name": "element",
209
222
  "type": {
210
- "text": "Record<string, T>"
211
- },
212
- "privacy": "private",
213
- "default": "{}"
214
- },
215
- {
216
- "kind": "field",
217
- "name": "beforeUpdateListeners",
218
- "privacy": "private"
219
- },
220
- {
221
- "kind": "field",
222
- "name": "afterUpdateListeners",
223
- "privacy": "private"
224
- },
225
- {
226
- "kind": "method",
227
- "name": "create",
228
- "privacy": "public",
229
- "return": {
230
- "type": {
231
- "text": "Promise<DatabaseAccessResult.Create<T>>"
232
- }
233
- },
234
- "parameters": [
235
- {
236
- "name": "newValue",
237
- "type": {
238
- "text": "Omit<T, 'id'>"
239
- }
240
- }
241
- ]
242
- },
243
- {
244
- "kind": "method",
245
- "name": "read",
246
- "privacy": "public",
247
- "return": {
248
- "type": {
249
- "text": "Promise<DatabaseAccessResult.Read<T>>"
250
- }
251
- },
252
- "parameters": [
253
- {
254
- "name": "id",
255
- "type": {
256
- "text": "string"
257
- }
258
- }
259
- ]
260
- },
261
- {
262
- "kind": "method",
263
- "name": "update",
264
- "privacy": "public",
265
- "return": {
266
- "type": {
267
- "text": "Promise<DatabaseAccessResult.Update<T>>"
268
- }
269
- },
270
- "parameters": [
271
- {
272
- "name": "id",
273
- "type": {
274
- "text": "string"
275
- }
276
- },
277
- {
278
- "name": "newValue",
279
- "type": {
280
- "text": "Omit<Partial<T>, 'id'>"
281
- }
282
- }
283
- ]
284
- },
285
- {
286
- "kind": "method",
287
- "name": "delete",
288
- "privacy": "public",
289
- "return": {
290
- "type": {
291
- "text": "Promise<DatabaseAccessResult.Delete>"
292
- }
223
+ "text": "HTMLElement"
293
224
  },
294
- "parameters": [
295
- {
296
- "name": "id",
297
- "type": {
298
- "text": "string"
299
- }
300
- }
301
- ]
225
+ "description": "The starting HTML element"
302
226
  },
303
227
  {
304
- "kind": "method",
305
- "name": "visit",
306
- "privacy": "public",
307
- "return": {
308
- "type": {
309
- "text": "Promise<void>"
310
- }
228
+ "name": "fallbackPrefix",
229
+ "type": {
230
+ "text": "string"
311
231
  },
312
- "parameters": [
313
- {
314
- "name": "visitor",
315
- "type": {
316
- "text": "(record: T) => void"
317
- }
318
- }
319
- ]
320
- },
232
+ "description": "The prefix to fallback to if the provider is not available"
233
+ }
234
+ ],
235
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
236
+ "privacy": "public"
237
+ },
238
+ {
239
+ "kind": "function",
240
+ "name": "getCurrentDesignSystemPrefix",
241
+ "return": {
242
+ "type": {
243
+ "text": ""
244
+ }
245
+ },
246
+ "parameters": [
321
247
  {
322
- "kind": "method",
323
- "name": "onBeforeUpdate",
324
- "privacy": "public",
325
- "return": {
326
- "type": {
327
- "text": "() => void"
328
- }
248
+ "name": "element",
249
+ "type": {
250
+ "text": "HTMLElement"
329
251
  },
330
- "parameters": [
331
- {
332
- "name": "listener",
333
- "type": {
334
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
335
- }
336
- }
337
- ]
252
+ "description": "The starting HTML element"
338
253
  },
339
254
  {
340
- "kind": "method",
341
- "name": "onAfterUpdate",
342
- "privacy": "public",
343
- "return": {
344
- "type": {
345
- "text": "() => void"
346
- }
255
+ "name": "fallbackPrefix",
256
+ "type": {
257
+ "text": "string"
347
258
  },
348
- "parameters": [
349
- {
350
- "name": "listener",
351
- "type": {
352
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
353
- }
354
- }
355
- ]
259
+ "description": "The prefix to fallback to if the provider is not available"
356
260
  }
357
- ]
261
+ ],
262
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
263
+ "privacy": "public"
358
264
  }
359
265
  ],
360
266
  "exports": [
361
267
  {
362
268
  "kind": "js",
363
- "name": "InMemoryDatabase",
269
+ "name": "assureDesignSystem",
364
270
  "declaration": {
365
- "name": "InMemoryDatabase",
366
- "module": "src/data/inMemoryDatabase.ts"
271
+ "name": "assureDesignSystem",
272
+ "module": "src/design-system/design-system.ts"
273
+ }
274
+ },
275
+ {
276
+ "kind": "js",
277
+ "name": "getCurrentDesignSystem",
278
+ "declaration": {
279
+ "name": "getCurrentDesignSystem",
280
+ "module": "src/design-system/design-system.ts"
281
+ }
282
+ },
283
+ {
284
+ "kind": "js",
285
+ "name": "getCurrentDesignSystemPrefix",
286
+ "declaration": {
287
+ "name": "getCurrentDesignSystemPrefix",
288
+ "module": "src/design-system/design-system.ts"
367
289
  }
368
290
  }
369
291
  ]
370
292
  },
371
293
  {
372
294
  "kind": "javascript-module",
373
- "path": "src/data/index.ts",
295
+ "path": "src/design-system/index.ts",
374
296
  "declarations": [],
375
297
  "exports": [
376
298
  {
@@ -378,14 +300,14 @@
378
300
  "name": "*",
379
301
  "declaration": {
380
302
  "name": "*",
381
- "package": "./inMemoryDatabase"
303
+ "package": "./design-system"
382
304
  }
383
305
  }
384
306
  ]
385
307
  },
386
308
  {
387
309
  "kind": "javascript-module",
388
- "path": "src/decorators/index.ts",
310
+ "path": "src/directives/index.ts",
389
311
  "declarations": [],
390
312
  "exports": [
391
313
  {
@@ -393,77 +315,24 @@
393
315
  "name": "*",
394
316
  "declaration": {
395
317
  "name": "*",
396
- "package": "./renderOnChange"
318
+ "package": "./sync"
319
+ }
320
+ },
321
+ {
322
+ "kind": "js",
323
+ "name": "*",
324
+ "declaration": {
325
+ "name": "*",
326
+ "package": "./when-else"
397
327
  }
398
328
  }
399
329
  ]
400
330
  },
401
331
  {
402
332
  "kind": "javascript-module",
403
- "path": "src/decorators/renderOnChange.ts",
404
- "declarations": [
405
- {
406
- "kind": "function",
407
- "name": "renderOnChange",
408
- "parameters": [
409
- {
410
- "name": "target",
411
- "type": {
412
- "text": "FASTElement & { render(): void }"
413
- },
414
- "description": "The target to define the property change handler on."
415
- },
416
- {
417
- "name": "name",
418
- "type": {
419
- "text": "string"
420
- },
421
- "description": "The property name."
422
- }
423
- ],
424
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
425
- "privacy": "public"
426
- }
427
- ],
428
- "exports": [
429
- {
430
- "kind": "js",
431
- "name": "renderOnChange",
432
- "declaration": {
433
- "name": "renderOnChange",
434
- "module": "src/decorators/renderOnChange.ts"
435
- }
436
- }
437
- ]
438
- },
439
- {
440
- "kind": "javascript-module",
441
- "path": "src/directives/index.ts",
442
- "declarations": [],
443
- "exports": [
444
- {
445
- "kind": "js",
446
- "name": "*",
447
- "declaration": {
448
- "name": "*",
449
- "package": "./sync"
450
- }
451
- },
452
- {
453
- "kind": "js",
454
- "name": "*",
455
- "declaration": {
456
- "name": "*",
457
- "package": "./when-else"
458
- }
459
- }
460
- ]
461
- },
462
- {
463
- "kind": "javascript-module",
464
- "path": "src/encoding/index.ts",
465
- "declarations": [],
466
- "exports": [
333
+ "path": "src/encoding/index.ts",
334
+ "declarations": [],
335
+ "exports": [
467
336
  {
468
337
  "kind": "js",
469
338
  "name": "*",
@@ -951,120 +820,251 @@
951
820
  },
952
821
  {
953
822
  "kind": "javascript-module",
954
- "path": "src/design-system/design-system.ts",
823
+ "path": "src/data/inMemoryDatabase.ts",
955
824
  "declarations": [
956
825
  {
957
- "kind": "function",
958
- "name": "assureDesignSystem",
959
- "return": {
960
- "type": {
961
- "text": "DesignSystemModule"
962
- }
963
- },
964
- "parameters": [
826
+ "kind": "class",
827
+ "description": "An in memory database of specific DatabaseRecord types.",
828
+ "name": "InMemoryDatabase",
829
+ "members": [
965
830
  {
966
- "name": "module",
831
+ "kind": "field",
832
+ "name": "isWorking",
967
833
  "type": {
968
- "text": "DesignSystemModule"
969
- }
970
- }
971
- ],
972
- "description": "assureDesignSystem.",
973
- "privacy": "public"
974
- },
975
- {
976
- "kind": "function",
977
- "name": "getCurrentDesignSystem",
978
- "return": {
979
- "type": {
980
- "text": ""
981
- }
982
- },
983
- "parameters": [
834
+ "text": "boolean"
835
+ },
836
+ "privacy": "public",
837
+ "default": "false"
838
+ },
984
839
  {
985
- "name": "element",
840
+ "kind": "field",
841
+ "name": "records",
986
842
  "type": {
987
- "text": "HTMLElement"
843
+ "text": "Record<string, T>"
988
844
  },
989
- "description": "The starting HTML element"
845
+ "privacy": "private",
846
+ "default": "{}"
990
847
  },
991
848
  {
992
- "name": "fallbackPrefix",
993
- "type": {
994
- "text": "string"
849
+ "kind": "field",
850
+ "name": "beforeUpdateListeners",
851
+ "privacy": "private"
852
+ },
853
+ {
854
+ "kind": "field",
855
+ "name": "afterUpdateListeners",
856
+ "privacy": "private"
857
+ },
858
+ {
859
+ "kind": "method",
860
+ "name": "create",
861
+ "privacy": "public",
862
+ "return": {
863
+ "type": {
864
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
865
+ }
995
866
  },
996
- "description": "The prefix to fallback to if the provider is not available"
997
- }
998
- ],
999
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1000
- "privacy": "public"
1001
- },
1002
- {
1003
- "kind": "function",
1004
- "name": "getCurrentDesignSystemPrefix",
1005
- "return": {
1006
- "type": {
1007
- "text": ""
1008
- }
1009
- },
1010
- "parameters": [
867
+ "parameters": [
868
+ {
869
+ "name": "newValue",
870
+ "type": {
871
+ "text": "Omit<T, 'id'>"
872
+ }
873
+ }
874
+ ]
875
+ },
1011
876
  {
1012
- "name": "element",
1013
- "type": {
1014
- "text": "HTMLElement"
877
+ "kind": "method",
878
+ "name": "read",
879
+ "privacy": "public",
880
+ "return": {
881
+ "type": {
882
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
883
+ }
1015
884
  },
1016
- "description": "The starting HTML element"
885
+ "parameters": [
886
+ {
887
+ "name": "id",
888
+ "type": {
889
+ "text": "string"
890
+ }
891
+ }
892
+ ]
1017
893
  },
1018
894
  {
1019
- "name": "fallbackPrefix",
1020
- "type": {
1021
- "text": "string"
895
+ "kind": "method",
896
+ "name": "update",
897
+ "privacy": "public",
898
+ "return": {
899
+ "type": {
900
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
901
+ }
1022
902
  },
1023
- "description": "The prefix to fallback to if the provider is not available"
903
+ "parameters": [
904
+ {
905
+ "name": "id",
906
+ "type": {
907
+ "text": "string"
908
+ }
909
+ },
910
+ {
911
+ "name": "newValue",
912
+ "type": {
913
+ "text": "Omit<Partial<T>, 'id'>"
914
+ }
915
+ }
916
+ ]
917
+ },
918
+ {
919
+ "kind": "method",
920
+ "name": "delete",
921
+ "privacy": "public",
922
+ "return": {
923
+ "type": {
924
+ "text": "Promise<DatabaseAccessResult.Delete>"
925
+ }
926
+ },
927
+ "parameters": [
928
+ {
929
+ "name": "id",
930
+ "type": {
931
+ "text": "string"
932
+ }
933
+ }
934
+ ]
935
+ },
936
+ {
937
+ "kind": "method",
938
+ "name": "visit",
939
+ "privacy": "public",
940
+ "return": {
941
+ "type": {
942
+ "text": "Promise<void>"
943
+ }
944
+ },
945
+ "parameters": [
946
+ {
947
+ "name": "visitor",
948
+ "type": {
949
+ "text": "(record: T) => void"
950
+ }
951
+ }
952
+ ]
953
+ },
954
+ {
955
+ "kind": "method",
956
+ "name": "onBeforeUpdate",
957
+ "privacy": "public",
958
+ "return": {
959
+ "type": {
960
+ "text": "() => void"
961
+ }
962
+ },
963
+ "parameters": [
964
+ {
965
+ "name": "listener",
966
+ "type": {
967
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
968
+ }
969
+ }
970
+ ]
971
+ },
972
+ {
973
+ "kind": "method",
974
+ "name": "onAfterUpdate",
975
+ "privacy": "public",
976
+ "return": {
977
+ "type": {
978
+ "text": "() => void"
979
+ }
980
+ },
981
+ "parameters": [
982
+ {
983
+ "name": "listener",
984
+ "type": {
985
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
986
+ }
987
+ }
988
+ ]
1024
989
  }
1025
- ],
1026
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1027
- "privacy": "public"
990
+ ]
1028
991
  }
1029
992
  ],
1030
993
  "exports": [
1031
994
  {
1032
995
  "kind": "js",
1033
- "name": "assureDesignSystem",
996
+ "name": "InMemoryDatabase",
1034
997
  "declaration": {
1035
- "name": "assureDesignSystem",
1036
- "module": "src/design-system/design-system.ts"
998
+ "name": "InMemoryDatabase",
999
+ "module": "src/data/inMemoryDatabase.ts"
1037
1000
  }
1038
- },
1001
+ }
1002
+ ]
1003
+ },
1004
+ {
1005
+ "kind": "javascript-module",
1006
+ "path": "src/data/index.ts",
1007
+ "declarations": [],
1008
+ "exports": [
1039
1009
  {
1040
1010
  "kind": "js",
1041
- "name": "getCurrentDesignSystem",
1011
+ "name": "*",
1042
1012
  "declaration": {
1043
- "name": "getCurrentDesignSystem",
1044
- "module": "src/design-system/design-system.ts"
1013
+ "name": "*",
1014
+ "package": "./inMemoryDatabase"
1045
1015
  }
1046
- },
1016
+ }
1017
+ ]
1018
+ },
1019
+ {
1020
+ "kind": "javascript-module",
1021
+ "path": "src/decorators/index.ts",
1022
+ "declarations": [],
1023
+ "exports": [
1047
1024
  {
1048
1025
  "kind": "js",
1049
- "name": "getCurrentDesignSystemPrefix",
1026
+ "name": "*",
1050
1027
  "declaration": {
1051
- "name": "getCurrentDesignSystemPrefix",
1052
- "module": "src/design-system/design-system.ts"
1028
+ "name": "*",
1029
+ "package": "./renderOnChange"
1053
1030
  }
1054
1031
  }
1055
1032
  ]
1056
1033
  },
1057
1034
  {
1058
1035
  "kind": "javascript-module",
1059
- "path": "src/design-system/index.ts",
1060
- "declarations": [],
1036
+ "path": "src/decorators/renderOnChange.ts",
1037
+ "declarations": [
1038
+ {
1039
+ "kind": "function",
1040
+ "name": "renderOnChange",
1041
+ "parameters": [
1042
+ {
1043
+ "name": "target",
1044
+ "type": {
1045
+ "text": "FASTElement & { render(): void }"
1046
+ },
1047
+ "description": "The target to define the property change handler on."
1048
+ },
1049
+ {
1050
+ "name": "name",
1051
+ "type": {
1052
+ "text": "string"
1053
+ },
1054
+ "description": "The property name."
1055
+ }
1056
+ ],
1057
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1058
+ "privacy": "public"
1059
+ }
1060
+ ],
1061
1061
  "exports": [
1062
1062
  {
1063
1063
  "kind": "js",
1064
- "name": "*",
1064
+ "name": "renderOnChange",
1065
1065
  "declaration": {
1066
- "name": "*",
1067
- "package": "./design-system"
1066
+ "name": "renderOnChange",
1067
+ "module": "src/decorators/renderOnChange.ts"
1068
1068
  }
1069
1069
  }
1070
1070
  ]
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.354.4-alpha-e9ad5f8.0",
4
+ "version": "14.354.4-alpha-2c4e0c7.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,18 +27,18 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.354.4-alpha-e9ad5f8.0",
31
- "@genesislcap/genx": "14.354.4-alpha-e9ad5f8.0",
32
- "@genesislcap/rollup-builder": "14.354.4-alpha-e9ad5f8.0",
33
- "@genesislcap/ts-builder": "14.354.4-alpha-e9ad5f8.0",
34
- "@genesislcap/uvu-playwright-builder": "14.354.4-alpha-e9ad5f8.0",
35
- "@genesislcap/vite-builder": "14.354.4-alpha-e9ad5f8.0",
36
- "@genesislcap/webpack-builder": "14.354.4-alpha-e9ad5f8.0",
30
+ "@genesislcap/foundation-testing": "14.354.4-alpha-2c4e0c7.0",
31
+ "@genesislcap/genx": "14.354.4-alpha-2c4e0c7.0",
32
+ "@genesislcap/rollup-builder": "14.354.4-alpha-2c4e0c7.0",
33
+ "@genesislcap/ts-builder": "14.354.4-alpha-2c4e0c7.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.354.4-alpha-2c4e0c7.0",
35
+ "@genesislcap/vite-builder": "14.354.4-alpha-2c4e0c7.0",
36
+ "@genesislcap/webpack-builder": "14.354.4-alpha-2c4e0c7.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.354.4-alpha-e9ad5f8.0",
41
- "@genesislcap/foundation-logger": "14.354.4-alpha-e9ad5f8.0",
40
+ "@genesislcap/expression-builder": "14.354.4-alpha-2c4e0c7.0",
41
+ "@genesislcap/foundation-logger": "14.354.4-alpha-2c4e0c7.0",
42
42
  "@microsoft/fast-components": "2.30.6",
43
43
  "@microsoft/fast-element": "1.14.0",
44
44
  "@microsoft/fast-foundation": "2.49.6",
@@ -56,5 +56,5 @@
56
56
  "access": "public"
57
57
  },
58
58
  "customElements": "dist/custom-elements.json",
59
- "gitHead": "2b49e127d8b0a52af9d3feb470c409f361719132"
59
+ "gitHead": "3897e754c3c0cbc54df9a91b2a22d16b4eeaa5ff"
60
60
  }