@genesislcap/foundation-utils 14.225.2-alpha-adaf8d7.0 → 14.225.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 +343 -343
  2. package/package.json +10 -10
@@ -161,6 +161,257 @@
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
+ },
164
415
  {
165
416
  "kind": "javascript-module",
166
417
  "path": "src/directives/index.ts",
@@ -184,6 +435,56 @@
184
435
  }
185
436
  ]
186
437
  },
438
+ {
439
+ "kind": "javascript-module",
440
+ "path": "src/design-system/design-system.ts",
441
+ "declarations": [
442
+ {
443
+ "kind": "function",
444
+ "name": "assureDesignSystem",
445
+ "return": {
446
+ "type": {
447
+ "text": "DesignSystemModule"
448
+ }
449
+ },
450
+ "parameters": [
451
+ {
452
+ "name": "module",
453
+ "type": {
454
+ "text": "DesignSystemModule"
455
+ }
456
+ }
457
+ ],
458
+ "description": "assureDesignSystem.",
459
+ "privacy": "public"
460
+ }
461
+ ],
462
+ "exports": [
463
+ {
464
+ "kind": "js",
465
+ "name": "assureDesignSystem",
466
+ "declaration": {
467
+ "name": "assureDesignSystem",
468
+ "module": "src/design-system/design-system.ts"
469
+ }
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "kind": "javascript-module",
475
+ "path": "src/design-system/index.ts",
476
+ "declarations": [],
477
+ "exports": [
478
+ {
479
+ "kind": "js",
480
+ "name": "*",
481
+ "declaration": {
482
+ "name": "*",
483
+ "package": "./design-system"
484
+ }
485
+ }
486
+ ]
487
+ },
187
488
  {
188
489
  "kind": "javascript-module",
189
490
  "path": "src/env/index.ts",
@@ -780,241 +1081,71 @@
780
1081
  },
781
1082
  {
782
1083
  "kind": "javascript-module",
783
- "path": "src/formatters/localeNumberParser.ts",
784
- "declarations": [
785
- {
786
- "kind": "class",
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",
1084
+ "path": "src/formatters/localeNumberParser.ts",
912
1085
  "declarations": [
913
1086
  {
914
1087
  "kind": "class",
915
- "description": "An in memory database of specific DatabaseRecord types.",
916
- "name": "InMemoryDatabase",
1088
+ "description": "",
1089
+ "name": "NumberParser",
917
1090
  "members": [
918
1091
  {
919
1092
  "kind": "field",
920
- "name": "isWorking",
1093
+ "name": "_decimal",
921
1094
  "type": {
922
- "text": "boolean"
1095
+ "text": "RegExp"
923
1096
  },
924
- "privacy": "public",
925
- "default": "false"
1097
+ "privacy": "private",
1098
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'decimal').value}]`)"
926
1099
  },
927
1100
  {
928
1101
  "kind": "field",
929
- "name": "records",
1102
+ "name": "_separator",
930
1103
  "type": {
931
- "text": "Record<string, T>"
1104
+ "text": "RegExp"
932
1105
  },
933
1106
  "privacy": "private",
934
- "default": "{}"
935
- },
936
- {
937
- "kind": "field",
938
- "name": "beforeUpdateListeners",
939
- "privacy": "private"
1107
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
940
1108
  },
941
1109
  {
942
1110
  "kind": "field",
943
- "name": "afterUpdateListeners",
944
- "privacy": "private"
945
- },
946
- {
947
- "kind": "method",
948
- "name": "create",
949
- "privacy": "public",
950
- "return": {
951
- "type": {
952
- "text": "Promise<DatabaseAccessResult.Create<T>>"
953
- }
1111
+ "name": "_numeral",
1112
+ "type": {
1113
+ "text": "RegExp"
954
1114
  },
955
- "parameters": [
956
- {
957
- "name": "newValue",
958
- "type": {
959
- "text": "Omit<T, 'id'>"
960
- }
961
- }
962
- ]
1115
+ "privacy": "private",
1116
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
963
1117
  },
964
1118
  {
965
- "kind": "method",
966
- "name": "read",
967
- "privacy": "public",
968
- "return": {
969
- "type": {
970
- "text": "Promise<DatabaseAccessResult.Read<T>>"
971
- }
1119
+ "kind": "field",
1120
+ "name": "_index",
1121
+ "type": {
1122
+ "text": "any"
972
1123
  },
973
- "parameters": [
974
- {
975
- "name": "id",
976
- "type": {
977
- "text": "string"
978
- }
979
- }
980
- ]
1124
+ "privacy": "private"
981
1125
  },
982
1126
  {
983
1127
  "kind": "method",
984
- "name": "update",
985
- "privacy": "public",
986
- "return": {
987
- "type": {
988
- "text": "Promise<DatabaseAccessResult.Update<T>>"
989
- }
990
- },
1128
+ "name": "parse",
991
1129
  "parameters": [
992
1130
  {
993
- "name": "id",
1131
+ "name": "localeNumber",
994
1132
  "type": {
995
1133
  "text": "string"
996
1134
  }
997
- },
998
- {
999
- "name": "newValue",
1000
- "type": {
1001
- "text": "Omit<Partial<T>, 'id'>"
1002
- }
1003
1135
  }
1004
1136
  ]
1005
1137
  },
1006
1138
  {
1007
1139
  "kind": "method",
1008
- "name": "delete",
1009
- "privacy": "public",
1140
+ "name": "hasSeparator",
1010
1141
  "return": {
1011
1142
  "type": {
1012
- "text": "Promise<DatabaseAccessResult.Delete>"
1143
+ "text": "boolean"
1013
1144
  }
1014
1145
  },
1015
1146
  "parameters": [
1016
1147
  {
1017
- "name": "id",
1148
+ "name": "localeNumber",
1018
1149
  "type": {
1019
1150
  "text": "string"
1020
1151
  }
@@ -1022,58 +1153,9 @@
1022
1153
  ]
1023
1154
  },
1024
1155
  {
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
- ]
1156
+ "kind": "field",
1157
+ "name": "_group",
1158
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1077
1159
  }
1078
1160
  ]
1079
1161
  }
@@ -1081,128 +1163,46 @@
1081
1163
  "exports": [
1082
1164
  {
1083
1165
  "kind": "js",
1084
- "name": "InMemoryDatabase",
1085
- "declaration": {
1086
- "name": "InMemoryDatabase",
1087
- "module": "src/data/inMemoryDatabase.ts"
1088
- }
1089
- }
1090
- ]
1091
- },
1092
- {
1093
- "kind": "javascript-module",
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": "*",
1166
+ "name": "NumberParser",
1115
1167
  "declaration": {
1116
- "name": "*",
1117
- "package": "./renderOnChange"
1168
+ "name": "NumberParser",
1169
+ "module": "src/formatters/localeNumberParser.ts"
1118
1170
  }
1119
1171
  }
1120
1172
  ]
1121
1173
  },
1122
1174
  {
1123
1175
  "kind": "javascript-module",
1124
- "path": "src/decorators/renderOnChange.ts",
1176
+ "path": "src/formatters/number.ts",
1125
1177
  "declarations": [
1126
1178
  {
1127
1179
  "kind": "function",
1128
- "name": "renderOnChange",
1180
+ "name": "getNumberFormatter",
1129
1181
  "parameters": [
1130
1182
  {
1131
- "name": "target",
1132
- "type": {
1133
- "text": "FASTElement & { render(): void }"
1134
- },
1135
- "description": "The target to define the property change handler on."
1136
- },
1137
- {
1138
- "name": "name",
1183
+ "name": "format",
1139
1184
  "type": {
1140
1185
  "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": [
1186
+ }
1187
+ },
1173
1188
  {
1174
- "name": "module",
1189
+ "name": "locale",
1190
+ "optional": true,
1175
1191
  "type": {
1176
- "text": "DesignSystemModule"
1192
+ "text": "string | null"
1177
1193
  }
1178
1194
  }
1179
1195
  ],
1180
- "description": "assureDesignSystem.",
1181
1196
  "privacy": "public"
1182
1197
  }
1183
1198
  ],
1184
1199
  "exports": [
1185
1200
  {
1186
1201
  "kind": "js",
1187
- "name": "assureDesignSystem",
1188
- "declaration": {
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": "*",
1202
+ "name": "getNumberFormatter",
1203
1203
  "declaration": {
1204
- "name": "*",
1205
- "package": "./design-system"
1204
+ "name": "getNumberFormatter",
1205
+ "module": "src/formatters/number.ts"
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-adaf8d7.0",
4
+ "version": "14.225.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.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",
30
+ "@genesislcap/foundation-testing": "14.225.2",
31
+ "@genesislcap/genx": "14.225.2",
32
+ "@genesislcap/rollup-builder": "14.225.2",
33
+ "@genesislcap/ts-builder": "14.225.2",
34
+ "@genesislcap/uvu-playwright-builder": "14.225.2",
35
+ "@genesislcap/vite-builder": "14.225.2",
36
+ "@genesislcap/webpack-builder": "14.225.2",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.225.2-alpha-adaf8d7.0",
40
+ "@genesislcap/foundation-logger": "14.225.2",
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": "e2aeb3cf7ba1ec55da2cd5b2acb1b8261ae4d353"
58
+ "gitHead": "efec98261d69a035d907eb4bcf8bc42bbb4ae657"
59
59
  }