@genesislcap/foundation-utils 14.336.3-alpha-54b30b8.0 → 14.337.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 +375 -375
  2. package/package.json +11 -11
@@ -185,6 +185,257 @@
185
185
  }
186
186
  ]
187
187
  },
188
+ {
189
+ "kind": "javascript-module",
190
+ "path": "src/data/inMemoryDatabase.ts",
191
+ "declarations": [
192
+ {
193
+ "kind": "class",
194
+ "description": "An in memory database of specific DatabaseRecord types.",
195
+ "name": "InMemoryDatabase",
196
+ "members": [
197
+ {
198
+ "kind": "field",
199
+ "name": "isWorking",
200
+ "type": {
201
+ "text": "boolean"
202
+ },
203
+ "privacy": "public",
204
+ "default": "false"
205
+ },
206
+ {
207
+ "kind": "field",
208
+ "name": "records",
209
+ "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
+ }
293
+ },
294
+ "parameters": [
295
+ {
296
+ "name": "id",
297
+ "type": {
298
+ "text": "string"
299
+ }
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ "kind": "method",
305
+ "name": "visit",
306
+ "privacy": "public",
307
+ "return": {
308
+ "type": {
309
+ "text": "Promise<void>"
310
+ }
311
+ },
312
+ "parameters": [
313
+ {
314
+ "name": "visitor",
315
+ "type": {
316
+ "text": "(record: T) => void"
317
+ }
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "kind": "method",
323
+ "name": "onBeforeUpdate",
324
+ "privacy": "public",
325
+ "return": {
326
+ "type": {
327
+ "text": "() => void"
328
+ }
329
+ },
330
+ "parameters": [
331
+ {
332
+ "name": "listener",
333
+ "type": {
334
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
335
+ }
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "kind": "method",
341
+ "name": "onAfterUpdate",
342
+ "privacy": "public",
343
+ "return": {
344
+ "type": {
345
+ "text": "() => void"
346
+ }
347
+ },
348
+ "parameters": [
349
+ {
350
+ "name": "listener",
351
+ "type": {
352
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
353
+ }
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ }
359
+ ],
360
+ "exports": [
361
+ {
362
+ "kind": "js",
363
+ "name": "InMemoryDatabase",
364
+ "declaration": {
365
+ "name": "InMemoryDatabase",
366
+ "module": "src/data/inMemoryDatabase.ts"
367
+ }
368
+ }
369
+ ]
370
+ },
371
+ {
372
+ "kind": "javascript-module",
373
+ "path": "src/data/index.ts",
374
+ "declarations": [],
375
+ "exports": [
376
+ {
377
+ "kind": "js",
378
+ "name": "*",
379
+ "declaration": {
380
+ "name": "*",
381
+ "package": "./inMemoryDatabase"
382
+ }
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "kind": "javascript-module",
388
+ "path": "src/decorators/index.ts",
389
+ "declarations": [],
390
+ "exports": [
391
+ {
392
+ "kind": "js",
393
+ "name": "*",
394
+ "declaration": {
395
+ "name": "*",
396
+ "package": "./renderOnChange"
397
+ }
398
+ }
399
+ ]
400
+ },
401
+ {
402
+ "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
+ },
188
439
  {
189
440
  "kind": "javascript-module",
190
441
  "path": "src/directives/index.ts",
@@ -700,12 +951,132 @@
700
951
  },
701
952
  {
702
953
  "kind": "javascript-module",
703
- "path": "src/error/errorMap.ts",
954
+ "path": "src/design-system/design-system.ts",
704
955
  "declarations": [
705
956
  {
706
- "kind": "class",
707
- "description": "",
708
- "name": "DefaultErrorMap",
957
+ "kind": "function",
958
+ "name": "assureDesignSystem",
959
+ "return": {
960
+ "type": {
961
+ "text": "DesignSystemModule"
962
+ }
963
+ },
964
+ "parameters": [
965
+ {
966
+ "name": "module",
967
+ "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": [
984
+ {
985
+ "name": "element",
986
+ "type": {
987
+ "text": "HTMLElement"
988
+ },
989
+ "description": "The starting HTML element"
990
+ },
991
+ {
992
+ "name": "fallbackPrefix",
993
+ "type": {
994
+ "text": "string"
995
+ },
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": [
1011
+ {
1012
+ "name": "element",
1013
+ "type": {
1014
+ "text": "HTMLElement"
1015
+ },
1016
+ "description": "The starting HTML element"
1017
+ },
1018
+ {
1019
+ "name": "fallbackPrefix",
1020
+ "type": {
1021
+ "text": "string"
1022
+ },
1023
+ "description": "The prefix to fallback to if the provider is not available"
1024
+ }
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"
1028
+ }
1029
+ ],
1030
+ "exports": [
1031
+ {
1032
+ "kind": "js",
1033
+ "name": "assureDesignSystem",
1034
+ "declaration": {
1035
+ "name": "assureDesignSystem",
1036
+ "module": "src/design-system/design-system.ts"
1037
+ }
1038
+ },
1039
+ {
1040
+ "kind": "js",
1041
+ "name": "getCurrentDesignSystem",
1042
+ "declaration": {
1043
+ "name": "getCurrentDesignSystem",
1044
+ "module": "src/design-system/design-system.ts"
1045
+ }
1046
+ },
1047
+ {
1048
+ "kind": "js",
1049
+ "name": "getCurrentDesignSystemPrefix",
1050
+ "declaration": {
1051
+ "name": "getCurrentDesignSystemPrefix",
1052
+ "module": "src/design-system/design-system.ts"
1053
+ }
1054
+ }
1055
+ ]
1056
+ },
1057
+ {
1058
+ "kind": "javascript-module",
1059
+ "path": "src/design-system/index.ts",
1060
+ "declarations": [],
1061
+ "exports": [
1062
+ {
1063
+ "kind": "js",
1064
+ "name": "*",
1065
+ "declaration": {
1066
+ "name": "*",
1067
+ "package": "./design-system"
1068
+ }
1069
+ }
1070
+ ]
1071
+ },
1072
+ {
1073
+ "kind": "javascript-module",
1074
+ "path": "src/error/errorMap.ts",
1075
+ "declarations": [
1076
+ {
1077
+ "kind": "class",
1078
+ "description": "",
1079
+ "name": "DefaultErrorMap",
709
1080
  "members": [
710
1081
  {
711
1082
  "kind": "field",
@@ -897,377 +1268,6 @@
897
1268
  }
898
1269
  ]
899
1270
  },
900
- {
901
- "kind": "javascript-module",
902
- "path": "src/data/inMemoryDatabase.ts",
903
- "declarations": [
904
- {
905
- "kind": "class",
906
- "description": "An in memory database of specific DatabaseRecord types.",
907
- "name": "InMemoryDatabase",
908
- "members": [
909
- {
910
- "kind": "field",
911
- "name": "isWorking",
912
- "type": {
913
- "text": "boolean"
914
- },
915
- "privacy": "public",
916
- "default": "false"
917
- },
918
- {
919
- "kind": "field",
920
- "name": "records",
921
- "type": {
922
- "text": "Record<string, T>"
923
- },
924
- "privacy": "private",
925
- "default": "{}"
926
- },
927
- {
928
- "kind": "field",
929
- "name": "beforeUpdateListeners",
930
- "privacy": "private"
931
- },
932
- {
933
- "kind": "field",
934
- "name": "afterUpdateListeners",
935
- "privacy": "private"
936
- },
937
- {
938
- "kind": "method",
939
- "name": "create",
940
- "privacy": "public",
941
- "return": {
942
- "type": {
943
- "text": "Promise<DatabaseAccessResult.Create<T>>"
944
- }
945
- },
946
- "parameters": [
947
- {
948
- "name": "newValue",
949
- "type": {
950
- "text": "Omit<T, 'id'>"
951
- }
952
- }
953
- ]
954
- },
955
- {
956
- "kind": "method",
957
- "name": "read",
958
- "privacy": "public",
959
- "return": {
960
- "type": {
961
- "text": "Promise<DatabaseAccessResult.Read<T>>"
962
- }
963
- },
964
- "parameters": [
965
- {
966
- "name": "id",
967
- "type": {
968
- "text": "string"
969
- }
970
- }
971
- ]
972
- },
973
- {
974
- "kind": "method",
975
- "name": "update",
976
- "privacy": "public",
977
- "return": {
978
- "type": {
979
- "text": "Promise<DatabaseAccessResult.Update<T>>"
980
- }
981
- },
982
- "parameters": [
983
- {
984
- "name": "id",
985
- "type": {
986
- "text": "string"
987
- }
988
- },
989
- {
990
- "name": "newValue",
991
- "type": {
992
- "text": "Omit<Partial<T>, 'id'>"
993
- }
994
- }
995
- ]
996
- },
997
- {
998
- "kind": "method",
999
- "name": "delete",
1000
- "privacy": "public",
1001
- "return": {
1002
- "type": {
1003
- "text": "Promise<DatabaseAccessResult.Delete>"
1004
- }
1005
- },
1006
- "parameters": [
1007
- {
1008
- "name": "id",
1009
- "type": {
1010
- "text": "string"
1011
- }
1012
- }
1013
- ]
1014
- },
1015
- {
1016
- "kind": "method",
1017
- "name": "visit",
1018
- "privacy": "public",
1019
- "return": {
1020
- "type": {
1021
- "text": "Promise<void>"
1022
- }
1023
- },
1024
- "parameters": [
1025
- {
1026
- "name": "visitor",
1027
- "type": {
1028
- "text": "(record: T) => void"
1029
- }
1030
- }
1031
- ]
1032
- },
1033
- {
1034
- "kind": "method",
1035
- "name": "onBeforeUpdate",
1036
- "privacy": "public",
1037
- "return": {
1038
- "type": {
1039
- "text": "() => void"
1040
- }
1041
- },
1042
- "parameters": [
1043
- {
1044
- "name": "listener",
1045
- "type": {
1046
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1047
- }
1048
- }
1049
- ]
1050
- },
1051
- {
1052
- "kind": "method",
1053
- "name": "onAfterUpdate",
1054
- "privacy": "public",
1055
- "return": {
1056
- "type": {
1057
- "text": "() => void"
1058
- }
1059
- },
1060
- "parameters": [
1061
- {
1062
- "name": "listener",
1063
- "type": {
1064
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1065
- }
1066
- }
1067
- ]
1068
- }
1069
- ]
1070
- }
1071
- ],
1072
- "exports": [
1073
- {
1074
- "kind": "js",
1075
- "name": "InMemoryDatabase",
1076
- "declaration": {
1077
- "name": "InMemoryDatabase",
1078
- "module": "src/data/inMemoryDatabase.ts"
1079
- }
1080
- }
1081
- ]
1082
- },
1083
- {
1084
- "kind": "javascript-module",
1085
- "path": "src/data/index.ts",
1086
- "declarations": [],
1087
- "exports": [
1088
- {
1089
- "kind": "js",
1090
- "name": "*",
1091
- "declaration": {
1092
- "name": "*",
1093
- "package": "./inMemoryDatabase"
1094
- }
1095
- }
1096
- ]
1097
- },
1098
- {
1099
- "kind": "javascript-module",
1100
- "path": "src/decorators/index.ts",
1101
- "declarations": [],
1102
- "exports": [
1103
- {
1104
- "kind": "js",
1105
- "name": "*",
1106
- "declaration": {
1107
- "name": "*",
1108
- "package": "./renderOnChange"
1109
- }
1110
- }
1111
- ]
1112
- },
1113
- {
1114
- "kind": "javascript-module",
1115
- "path": "src/decorators/renderOnChange.ts",
1116
- "declarations": [
1117
- {
1118
- "kind": "function",
1119
- "name": "renderOnChange",
1120
- "parameters": [
1121
- {
1122
- "name": "target",
1123
- "type": {
1124
- "text": "FASTElement & { render(): void }"
1125
- },
1126
- "description": "The target to define the property change handler on."
1127
- },
1128
- {
1129
- "name": "name",
1130
- "type": {
1131
- "text": "string"
1132
- },
1133
- "description": "The property name."
1134
- }
1135
- ],
1136
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1137
- "privacy": "public"
1138
- }
1139
- ],
1140
- "exports": [
1141
- {
1142
- "kind": "js",
1143
- "name": "renderOnChange",
1144
- "declaration": {
1145
- "name": "renderOnChange",
1146
- "module": "src/decorators/renderOnChange.ts"
1147
- }
1148
- }
1149
- ]
1150
- },
1151
- {
1152
- "kind": "javascript-module",
1153
- "path": "src/design-system/design-system.ts",
1154
- "declarations": [
1155
- {
1156
- "kind": "function",
1157
- "name": "assureDesignSystem",
1158
- "return": {
1159
- "type": {
1160
- "text": "DesignSystemModule"
1161
- }
1162
- },
1163
- "parameters": [
1164
- {
1165
- "name": "module",
1166
- "type": {
1167
- "text": "DesignSystemModule"
1168
- }
1169
- }
1170
- ],
1171
- "description": "assureDesignSystem.",
1172
- "privacy": "public"
1173
- },
1174
- {
1175
- "kind": "function",
1176
- "name": "getCurrentDesignSystem",
1177
- "return": {
1178
- "type": {
1179
- "text": ""
1180
- }
1181
- },
1182
- "parameters": [
1183
- {
1184
- "name": "element",
1185
- "type": {
1186
- "text": "HTMLElement"
1187
- },
1188
- "description": "The starting HTML element"
1189
- },
1190
- {
1191
- "name": "fallbackPrefix",
1192
- "type": {
1193
- "text": "string"
1194
- },
1195
- "description": "The prefix to fallback to if the provider is not available"
1196
- }
1197
- ],
1198
- "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.",
1199
- "privacy": "public"
1200
- },
1201
- {
1202
- "kind": "function",
1203
- "name": "getCurrentDesignSystemPrefix",
1204
- "return": {
1205
- "type": {
1206
- "text": ""
1207
- }
1208
- },
1209
- "parameters": [
1210
- {
1211
- "name": "element",
1212
- "type": {
1213
- "text": "HTMLElement"
1214
- },
1215
- "description": "The starting HTML element"
1216
- },
1217
- {
1218
- "name": "fallbackPrefix",
1219
- "type": {
1220
- "text": "string"
1221
- },
1222
- "description": "The prefix to fallback to if the provider is not available"
1223
- }
1224
- ],
1225
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
1226
- "privacy": "public"
1227
- }
1228
- ],
1229
- "exports": [
1230
- {
1231
- "kind": "js",
1232
- "name": "assureDesignSystem",
1233
- "declaration": {
1234
- "name": "assureDesignSystem",
1235
- "module": "src/design-system/design-system.ts"
1236
- }
1237
- },
1238
- {
1239
- "kind": "js",
1240
- "name": "getCurrentDesignSystem",
1241
- "declaration": {
1242
- "name": "getCurrentDesignSystem",
1243
- "module": "src/design-system/design-system.ts"
1244
- }
1245
- },
1246
- {
1247
- "kind": "js",
1248
- "name": "getCurrentDesignSystemPrefix",
1249
- "declaration": {
1250
- "name": "getCurrentDesignSystemPrefix",
1251
- "module": "src/design-system/design-system.ts"
1252
- }
1253
- }
1254
- ]
1255
- },
1256
- {
1257
- "kind": "javascript-module",
1258
- "path": "src/design-system/index.ts",
1259
- "declarations": [],
1260
- "exports": [
1261
- {
1262
- "kind": "js",
1263
- "name": "*",
1264
- "declaration": {
1265
- "name": "*",
1266
- "package": "./design-system"
1267
- }
1268
- }
1269
- ]
1270
- },
1271
1271
  {
1272
1272
  "kind": "javascript-module",
1273
1273
  "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.336.3-alpha-54b30b8.0",
4
+ "version": "14.337.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.336.3-alpha-54b30b8.0",
31
- "@genesislcap/genx": "14.336.3-alpha-54b30b8.0",
32
- "@genesislcap/rollup-builder": "14.336.3-alpha-54b30b8.0",
33
- "@genesislcap/ts-builder": "14.336.3-alpha-54b30b8.0",
34
- "@genesislcap/uvu-playwright-builder": "14.336.3-alpha-54b30b8.0",
35
- "@genesislcap/vite-builder": "14.336.3-alpha-54b30b8.0",
36
- "@genesislcap/webpack-builder": "14.336.3-alpha-54b30b8.0",
30
+ "@genesislcap/foundation-testing": "14.337.0",
31
+ "@genesislcap/genx": "14.337.0",
32
+ "@genesislcap/rollup-builder": "14.337.0",
33
+ "@genesislcap/ts-builder": "14.337.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.337.0",
35
+ "@genesislcap/vite-builder": "14.337.0",
36
+ "@genesislcap/webpack-builder": "14.337.0",
37
37
  "@types/json-schema": "^7.0.11"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/expression-builder": "14.336.3-alpha-54b30b8.0",
41
- "@genesislcap/foundation-logger": "14.336.3-alpha-54b30b8.0",
40
+ "@genesislcap/expression-builder": "14.337.0",
41
+ "@genesislcap/foundation-logger": "14.337.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": "0b4bbbff5505de9aab4f490e7a3cc488ad04735f"
59
+ "gitHead": "0760a44df498d52e7a8b643f0c68a40249f15cb0"
60
60
  }