@genesislcap/foundation-utils 14.225.2-alpha-9256cb8.0 → 14.225.2-alpha-adaf8d7.0

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 +342 -342
  2. package/package.json +10 -10
@@ -161,307 +161,6 @@
161
161
  }
162
162
  ]
163
163
  },
164
- {
165
- "kind": "javascript-module",
166
- "path": "src/data/inMemoryDatabase.ts",
167
- "declarations": [
168
- {
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": [
337
- {
338
- "kind": "js",
339
- "name": "InMemoryDatabase",
340
- "declaration": {
341
- "name": "InMemoryDatabase",
342
- "module": "src/data/inMemoryDatabase.ts"
343
- }
344
- }
345
- ]
346
- },
347
- {
348
- "kind": "javascript-module",
349
- "path": "src/data/index.ts",
350
- "declarations": [],
351
- "exports": [
352
- {
353
- "kind": "js",
354
- "name": "*",
355
- "declaration": {
356
- "name": "*",
357
- "package": "./inMemoryDatabase"
358
- }
359
- }
360
- ]
361
- },
362
- {
363
- "kind": "javascript-module",
364
- "path": "src/decorators/index.ts",
365
- "declarations": [],
366
- "exports": [
367
- {
368
- "kind": "js",
369
- "name": "*",
370
- "declaration": {
371
- "name": "*",
372
- "package": "./renderOnChange"
373
- }
374
- }
375
- ]
376
- },
377
- {
378
- "kind": "javascript-module",
379
- "path": "src/decorators/renderOnChange.ts",
380
- "declarations": [
381
- {
382
- "kind": "function",
383
- "name": "renderOnChange",
384
- "parameters": [
385
- {
386
- "name": "target",
387
- "type": {
388
- "text": "FASTElement & { render(): void }"
389
- },
390
- "description": "The target to define the property change handler on."
391
- },
392
- {
393
- "name": "name",
394
- "type": {
395
- "text": "string"
396
- },
397
- "description": "The property name."
398
- }
399
- ],
400
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
401
- "privacy": "public"
402
- }
403
- ],
404
- "exports": [
405
- {
406
- "kind": "js",
407
- "name": "renderOnChange",
408
- "declaration": {
409
- "name": "renderOnChange",
410
- "module": "src/decorators/renderOnChange.ts"
411
- }
412
- }
413
- ]
414
- },
415
- {
416
- "kind": "javascript-module",
417
- "path": "src/design-system/design-system.ts",
418
- "declarations": [
419
- {
420
- "kind": "function",
421
- "name": "assureDesignSystem",
422
- "return": {
423
- "type": {
424
- "text": "DesignSystemModule"
425
- }
426
- },
427
- "parameters": [
428
- {
429
- "name": "module",
430
- "type": {
431
- "text": "DesignSystemModule"
432
- }
433
- }
434
- ],
435
- "description": "assureDesignSystem.",
436
- "privacy": "public"
437
- }
438
- ],
439
- "exports": [
440
- {
441
- "kind": "js",
442
- "name": "assureDesignSystem",
443
- "declaration": {
444
- "name": "assureDesignSystem",
445
- "module": "src/design-system/design-system.ts"
446
- }
447
- }
448
- ]
449
- },
450
- {
451
- "kind": "javascript-module",
452
- "path": "src/design-system/index.ts",
453
- "declarations": [],
454
- "exports": [
455
- {
456
- "kind": "js",
457
- "name": "*",
458
- "declaration": {
459
- "name": "*",
460
- "package": "./design-system"
461
- }
462
- }
463
- ]
464
- },
465
164
  {
466
165
  "kind": "javascript-module",
467
166
  "path": "src/directives/index.ts",
@@ -1085,50 +784,195 @@
1085
784
  "declarations": [
1086
785
  {
1087
786
  "kind": "class",
1088
- "description": "",
1089
- "name": "NumberParser",
787
+ "description": "",
788
+ "name": "NumberParser",
789
+ "members": [
790
+ {
791
+ "kind": "field",
792
+ "name": "_decimal",
793
+ "type": {
794
+ "text": "RegExp"
795
+ },
796
+ "privacy": "private",
797
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
798
+ },
799
+ {
800
+ "kind": "field",
801
+ "name": "_separator",
802
+ "type": {
803
+ "text": "RegExp"
804
+ },
805
+ "privacy": "private",
806
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
807
+ },
808
+ {
809
+ "kind": "field",
810
+ "name": "_numeral",
811
+ "type": {
812
+ "text": "RegExp"
813
+ },
814
+ "privacy": "private",
815
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
816
+ },
817
+ {
818
+ "kind": "field",
819
+ "name": "_index",
820
+ "type": {
821
+ "text": "any"
822
+ },
823
+ "privacy": "private"
824
+ },
825
+ {
826
+ "kind": "method",
827
+ "name": "parse",
828
+ "parameters": [
829
+ {
830
+ "name": "localeNumber",
831
+ "type": {
832
+ "text": "string"
833
+ }
834
+ }
835
+ ]
836
+ },
837
+ {
838
+ "kind": "method",
839
+ "name": "hasSeparator",
840
+ "return": {
841
+ "type": {
842
+ "text": "boolean"
843
+ }
844
+ },
845
+ "parameters": [
846
+ {
847
+ "name": "localeNumber",
848
+ "type": {
849
+ "text": "string"
850
+ }
851
+ }
852
+ ]
853
+ },
854
+ {
855
+ "kind": "field",
856
+ "name": "_group",
857
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
858
+ }
859
+ ]
860
+ }
861
+ ],
862
+ "exports": [
863
+ {
864
+ "kind": "js",
865
+ "name": "NumberParser",
866
+ "declaration": {
867
+ "name": "NumberParser",
868
+ "module": "src/formatters/localeNumberParser.ts"
869
+ }
870
+ }
871
+ ]
872
+ },
873
+ {
874
+ "kind": "javascript-module",
875
+ "path": "src/formatters/number.ts",
876
+ "declarations": [
877
+ {
878
+ "kind": "function",
879
+ "name": "getNumberFormatter",
880
+ "parameters": [
881
+ {
882
+ "name": "format",
883
+ "type": {
884
+ "text": "string"
885
+ }
886
+ },
887
+ {
888
+ "name": "locale",
889
+ "optional": true,
890
+ "type": {
891
+ "text": "string | null"
892
+ }
893
+ }
894
+ ],
895
+ "privacy": "public"
896
+ }
897
+ ],
898
+ "exports": [
899
+ {
900
+ "kind": "js",
901
+ "name": "getNumberFormatter",
902
+ "declaration": {
903
+ "name": "getNumberFormatter",
904
+ "module": "src/formatters/number.ts"
905
+ }
906
+ }
907
+ ]
908
+ },
909
+ {
910
+ "kind": "javascript-module",
911
+ "path": "src/data/inMemoryDatabase.ts",
912
+ "declarations": [
913
+ {
914
+ "kind": "class",
915
+ "description": "An in memory database of specific DatabaseRecord types.",
916
+ "name": "InMemoryDatabase",
1090
917
  "members": [
1091
918
  {
1092
919
  "kind": "field",
1093
- "name": "_decimal",
920
+ "name": "isWorking",
1094
921
  "type": {
1095
- "text": "RegExp"
922
+ "text": "boolean"
1096
923
  },
1097
- "privacy": "private",
1098
- "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
924
+ "privacy": "public",
925
+ "default": "false"
1099
926
  },
1100
927
  {
1101
928
  "kind": "field",
1102
- "name": "_separator",
929
+ "name": "records",
1103
930
  "type": {
1104
- "text": "RegExp"
931
+ "text": "Record<string, T>"
1105
932
  },
1106
933
  "privacy": "private",
1107
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
934
+ "default": "{}"
1108
935
  },
1109
936
  {
1110
937
  "kind": "field",
1111
- "name": "_numeral",
1112
- "type": {
1113
- "text": "RegExp"
1114
- },
1115
- "privacy": "private",
1116
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
938
+ "name": "beforeUpdateListeners",
939
+ "privacy": "private"
1117
940
  },
1118
941
  {
1119
942
  "kind": "field",
1120
- "name": "_index",
1121
- "type": {
1122
- "text": "any"
1123
- },
943
+ "name": "afterUpdateListeners",
1124
944
  "privacy": "private"
1125
945
  },
1126
946
  {
1127
947
  "kind": "method",
1128
- "name": "parse",
948
+ "name": "create",
949
+ "privacy": "public",
950
+ "return": {
951
+ "type": {
952
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
953
+ }
954
+ },
1129
955
  "parameters": [
1130
956
  {
1131
- "name": "localeNumber",
957
+ "name": "newValue",
958
+ "type": {
959
+ "text": "Omit<T, 'id'>"
960
+ }
961
+ }
962
+ ]
963
+ },
964
+ {
965
+ "kind": "method",
966
+ "name": "read",
967
+ "privacy": "public",
968
+ "return": {
969
+ "type": {
970
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
971
+ }
972
+ },
973
+ "parameters": [
974
+ {
975
+ "name": "id",
1132
976
  "type": {
1133
977
  "text": "string"
1134
978
  }
@@ -1137,25 +981,99 @@
1137
981
  },
1138
982
  {
1139
983
  "kind": "method",
1140
- "name": "hasSeparator",
984
+ "name": "update",
985
+ "privacy": "public",
1141
986
  "return": {
1142
987
  "type": {
1143
- "text": "boolean"
988
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
1144
989
  }
1145
990
  },
1146
991
  "parameters": [
1147
992
  {
1148
- "name": "localeNumber",
993
+ "name": "id",
1149
994
  "type": {
1150
995
  "text": "string"
1151
996
  }
997
+ },
998
+ {
999
+ "name": "newValue",
1000
+ "type": {
1001
+ "text": "Omit<Partial<T>, 'id'>"
1002
+ }
1152
1003
  }
1153
1004
  ]
1154
1005
  },
1155
1006
  {
1156
- "kind": "field",
1157
- "name": "_group",
1158
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1007
+ "kind": "method",
1008
+ "name": "delete",
1009
+ "privacy": "public",
1010
+ "return": {
1011
+ "type": {
1012
+ "text": "Promise<DatabaseAccessResult.Delete>"
1013
+ }
1014
+ },
1015
+ "parameters": [
1016
+ {
1017
+ "name": "id",
1018
+ "type": {
1019
+ "text": "string"
1020
+ }
1021
+ }
1022
+ ]
1023
+ },
1024
+ {
1025
+ "kind": "method",
1026
+ "name": "visit",
1027
+ "privacy": "public",
1028
+ "return": {
1029
+ "type": {
1030
+ "text": "Promise<void>"
1031
+ }
1032
+ },
1033
+ "parameters": [
1034
+ {
1035
+ "name": "visitor",
1036
+ "type": {
1037
+ "text": "(record: T) => void"
1038
+ }
1039
+ }
1040
+ ]
1041
+ },
1042
+ {
1043
+ "kind": "method",
1044
+ "name": "onBeforeUpdate",
1045
+ "privacy": "public",
1046
+ "return": {
1047
+ "type": {
1048
+ "text": "() => void"
1049
+ }
1050
+ },
1051
+ "parameters": [
1052
+ {
1053
+ "name": "listener",
1054
+ "type": {
1055
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1056
+ }
1057
+ }
1058
+ ]
1059
+ },
1060
+ {
1061
+ "kind": "method",
1062
+ "name": "onAfterUpdate",
1063
+ "privacy": "public",
1064
+ "return": {
1065
+ "type": {
1066
+ "text": "() => void"
1067
+ }
1068
+ },
1069
+ "parameters": [
1070
+ {
1071
+ "name": "listener",
1072
+ "type": {
1073
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1074
+ }
1075
+ }
1076
+ ]
1159
1077
  }
1160
1078
  ]
1161
1079
  }
@@ -1163,46 +1081,128 @@
1163
1081
  "exports": [
1164
1082
  {
1165
1083
  "kind": "js",
1166
- "name": "NumberParser",
1084
+ "name": "InMemoryDatabase",
1167
1085
  "declaration": {
1168
- "name": "NumberParser",
1169
- "module": "src/formatters/localeNumberParser.ts"
1086
+ "name": "InMemoryDatabase",
1087
+ "module": "src/data/inMemoryDatabase.ts"
1170
1088
  }
1171
1089
  }
1172
1090
  ]
1173
1091
  },
1174
1092
  {
1175
1093
  "kind": "javascript-module",
1176
- "path": "src/formatters/number.ts",
1094
+ "path": "src/data/index.ts",
1095
+ "declarations": [],
1096
+ "exports": [
1097
+ {
1098
+ "kind": "js",
1099
+ "name": "*",
1100
+ "declaration": {
1101
+ "name": "*",
1102
+ "package": "./inMemoryDatabase"
1103
+ }
1104
+ }
1105
+ ]
1106
+ },
1107
+ {
1108
+ "kind": "javascript-module",
1109
+ "path": "src/decorators/index.ts",
1110
+ "declarations": [],
1111
+ "exports": [
1112
+ {
1113
+ "kind": "js",
1114
+ "name": "*",
1115
+ "declaration": {
1116
+ "name": "*",
1117
+ "package": "./renderOnChange"
1118
+ }
1119
+ }
1120
+ ]
1121
+ },
1122
+ {
1123
+ "kind": "javascript-module",
1124
+ "path": "src/decorators/renderOnChange.ts",
1177
1125
  "declarations": [
1178
1126
  {
1179
1127
  "kind": "function",
1180
- "name": "getNumberFormatter",
1128
+ "name": "renderOnChange",
1181
1129
  "parameters": [
1182
1130
  {
1183
- "name": "format",
1131
+ "name": "target",
1184
1132
  "type": {
1185
- "text": "string"
1186
- }
1133
+ "text": "FASTElement & { render(): void }"
1134
+ },
1135
+ "description": "The target to define the property change handler on."
1187
1136
  },
1188
1137
  {
1189
- "name": "locale",
1190
- "optional": true,
1138
+ "name": "name",
1191
1139
  "type": {
1192
- "text": "string | null"
1140
+ "text": "string"
1141
+ },
1142
+ "description": "The property name."
1143
+ }
1144
+ ],
1145
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1146
+ "privacy": "public"
1147
+ }
1148
+ ],
1149
+ "exports": [
1150
+ {
1151
+ "kind": "js",
1152
+ "name": "renderOnChange",
1153
+ "declaration": {
1154
+ "name": "renderOnChange",
1155
+ "module": "src/decorators/renderOnChange.ts"
1156
+ }
1157
+ }
1158
+ ]
1159
+ },
1160
+ {
1161
+ "kind": "javascript-module",
1162
+ "path": "src/design-system/design-system.ts",
1163
+ "declarations": [
1164
+ {
1165
+ "kind": "function",
1166
+ "name": "assureDesignSystem",
1167
+ "return": {
1168
+ "type": {
1169
+ "text": "DesignSystemModule"
1170
+ }
1171
+ },
1172
+ "parameters": [
1173
+ {
1174
+ "name": "module",
1175
+ "type": {
1176
+ "text": "DesignSystemModule"
1193
1177
  }
1194
1178
  }
1195
1179
  ],
1180
+ "description": "assureDesignSystem.",
1196
1181
  "privacy": "public"
1197
1182
  }
1198
1183
  ],
1199
1184
  "exports": [
1200
1185
  {
1201
1186
  "kind": "js",
1202
- "name": "getNumberFormatter",
1187
+ "name": "assureDesignSystem",
1203
1188
  "declaration": {
1204
- "name": "getNumberFormatter",
1205
- "module": "src/formatters/number.ts"
1189
+ "name": "assureDesignSystem",
1190
+ "module": "src/design-system/design-system.ts"
1191
+ }
1192
+ }
1193
+ ]
1194
+ },
1195
+ {
1196
+ "kind": "javascript-module",
1197
+ "path": "src/design-system/index.ts",
1198
+ "declarations": [],
1199
+ "exports": [
1200
+ {
1201
+ "kind": "js",
1202
+ "name": "*",
1203
+ "declaration": {
1204
+ "name": "*",
1205
+ "package": "./design-system"
1206
1206
  }
1207
1207
  }
1208
1208
  ]
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.225.2-alpha-9256cb8.0",
4
+ "version": "14.225.2-alpha-adaf8d7.0",
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.225.2-alpha-9256cb8.0",
31
- "@genesislcap/genx": "14.225.2-alpha-9256cb8.0",
32
- "@genesislcap/rollup-builder": "14.225.2-alpha-9256cb8.0",
33
- "@genesislcap/ts-builder": "14.225.2-alpha-9256cb8.0",
34
- "@genesislcap/uvu-playwright-builder": "14.225.2-alpha-9256cb8.0",
35
- "@genesislcap/vite-builder": "14.225.2-alpha-9256cb8.0",
36
- "@genesislcap/webpack-builder": "14.225.2-alpha-9256cb8.0",
30
+ "@genesislcap/foundation-testing": "14.225.2-alpha-adaf8d7.0",
31
+ "@genesislcap/genx": "14.225.2-alpha-adaf8d7.0",
32
+ "@genesislcap/rollup-builder": "14.225.2-alpha-adaf8d7.0",
33
+ "@genesislcap/ts-builder": "14.225.2-alpha-adaf8d7.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.225.2-alpha-adaf8d7.0",
35
+ "@genesislcap/vite-builder": "14.225.2-alpha-adaf8d7.0",
36
+ "@genesislcap/webpack-builder": "14.225.2-alpha-adaf8d7.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.225.2-alpha-9256cb8.0",
40
+ "@genesislcap/foundation-logger": "14.225.2-alpha-adaf8d7.0",
41
41
  "@microsoft/fast-components": "2.30.6",
42
42
  "@microsoft/fast-element": "1.14.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": "0ff7bf51c67a95415ea9ba050104add9e4e62283"
58
+ "gitHead": "e2aeb3cf7ba1ec55da2cd5b2acb1b8261ae4d353"
59
59
  }