@genesislcap/foundation-utils 14.145.0 → 14.145.1

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.
@@ -151,307 +151,6 @@
151
151
  }
152
152
  ]
153
153
  },
154
- {
155
- "kind": "javascript-module",
156
- "path": "src/data/inMemoryDatabase.ts",
157
- "declarations": [
158
- {
159
- "kind": "class",
160
- "description": "An in memory database of specific DatabaseRecord types.",
161
- "name": "InMemoryDatabase",
162
- "members": [
163
- {
164
- "kind": "field",
165
- "name": "isWorking",
166
- "type": {
167
- "text": "boolean"
168
- },
169
- "privacy": "public",
170
- "default": "false"
171
- },
172
- {
173
- "kind": "field",
174
- "name": "records",
175
- "type": {
176
- "text": "Record<string, T>"
177
- },
178
- "privacy": "private",
179
- "default": "{}"
180
- },
181
- {
182
- "kind": "field",
183
- "name": "beforeUpdateListeners",
184
- "privacy": "private"
185
- },
186
- {
187
- "kind": "field",
188
- "name": "afterUpdateListeners",
189
- "privacy": "private"
190
- },
191
- {
192
- "kind": "method",
193
- "name": "create",
194
- "privacy": "public",
195
- "return": {
196
- "type": {
197
- "text": "Promise<DatabaseAccessResult.Create<T>>"
198
- }
199
- },
200
- "parameters": [
201
- {
202
- "name": "newValue",
203
- "type": {
204
- "text": "Omit<T, 'id'>"
205
- }
206
- }
207
- ]
208
- },
209
- {
210
- "kind": "method",
211
- "name": "read",
212
- "privacy": "public",
213
- "return": {
214
- "type": {
215
- "text": "Promise<DatabaseAccessResult.Read<T>>"
216
- }
217
- },
218
- "parameters": [
219
- {
220
- "name": "id",
221
- "type": {
222
- "text": "string"
223
- }
224
- }
225
- ]
226
- },
227
- {
228
- "kind": "method",
229
- "name": "update",
230
- "privacy": "public",
231
- "return": {
232
- "type": {
233
- "text": "Promise<DatabaseAccessResult.Update<T>>"
234
- }
235
- },
236
- "parameters": [
237
- {
238
- "name": "id",
239
- "type": {
240
- "text": "string"
241
- }
242
- },
243
- {
244
- "name": "newValue",
245
- "type": {
246
- "text": "Omit<Partial<T>, 'id'>"
247
- }
248
- }
249
- ]
250
- },
251
- {
252
- "kind": "method",
253
- "name": "delete",
254
- "privacy": "public",
255
- "return": {
256
- "type": {
257
- "text": "Promise<DatabaseAccessResult.Delete>"
258
- }
259
- },
260
- "parameters": [
261
- {
262
- "name": "id",
263
- "type": {
264
- "text": "string"
265
- }
266
- }
267
- ]
268
- },
269
- {
270
- "kind": "method",
271
- "name": "visit",
272
- "privacy": "public",
273
- "return": {
274
- "type": {
275
- "text": "Promise<void>"
276
- }
277
- },
278
- "parameters": [
279
- {
280
- "name": "visitor",
281
- "type": {
282
- "text": "(record: T) => void"
283
- }
284
- }
285
- ]
286
- },
287
- {
288
- "kind": "method",
289
- "name": "onBeforeUpdate",
290
- "privacy": "public",
291
- "return": {
292
- "type": {
293
- "text": "() => void"
294
- }
295
- },
296
- "parameters": [
297
- {
298
- "name": "listener",
299
- "type": {
300
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
301
- }
302
- }
303
- ]
304
- },
305
- {
306
- "kind": "method",
307
- "name": "onAfterUpdate",
308
- "privacy": "public",
309
- "return": {
310
- "type": {
311
- "text": "() => void"
312
- }
313
- },
314
- "parameters": [
315
- {
316
- "name": "listener",
317
- "type": {
318
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
319
- }
320
- }
321
- ]
322
- }
323
- ]
324
- }
325
- ],
326
- "exports": [
327
- {
328
- "kind": "js",
329
- "name": "InMemoryDatabase",
330
- "declaration": {
331
- "name": "InMemoryDatabase",
332
- "module": "src/data/inMemoryDatabase.ts"
333
- }
334
- }
335
- ]
336
- },
337
- {
338
- "kind": "javascript-module",
339
- "path": "src/data/index.ts",
340
- "declarations": [],
341
- "exports": [
342
- {
343
- "kind": "js",
344
- "name": "*",
345
- "declaration": {
346
- "name": "*",
347
- "package": "./inMemoryDatabase"
348
- }
349
- }
350
- ]
351
- },
352
- {
353
- "kind": "javascript-module",
354
- "path": "src/decorators/index.ts",
355
- "declarations": [],
356
- "exports": [
357
- {
358
- "kind": "js",
359
- "name": "*",
360
- "declaration": {
361
- "name": "*",
362
- "package": "./renderOnChange"
363
- }
364
- }
365
- ]
366
- },
367
- {
368
- "kind": "javascript-module",
369
- "path": "src/decorators/renderOnChange.ts",
370
- "declarations": [
371
- {
372
- "kind": "function",
373
- "name": "renderOnChange",
374
- "parameters": [
375
- {
376
- "name": "target",
377
- "type": {
378
- "text": "FASTElement & { render(): void }"
379
- },
380
- "description": "The target to define the property change handler on."
381
- },
382
- {
383
- "name": "name",
384
- "type": {
385
- "text": "string"
386
- },
387
- "description": "The property name."
388
- }
389
- ],
390
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
391
- "privacy": "public"
392
- }
393
- ],
394
- "exports": [
395
- {
396
- "kind": "js",
397
- "name": "renderOnChange",
398
- "declaration": {
399
- "name": "renderOnChange",
400
- "module": "src/decorators/renderOnChange.ts"
401
- }
402
- }
403
- ]
404
- },
405
- {
406
- "kind": "javascript-module",
407
- "path": "src/design-system/design-system.ts",
408
- "declarations": [
409
- {
410
- "kind": "function",
411
- "name": "assureDesignSystem",
412
- "return": {
413
- "type": {
414
- "text": "DesignSystemModule"
415
- }
416
- },
417
- "parameters": [
418
- {
419
- "name": "module",
420
- "type": {
421
- "text": "DesignSystemModule"
422
- }
423
- }
424
- ],
425
- "description": "assureDesignSystem.",
426
- "privacy": "public"
427
- }
428
- ],
429
- "exports": [
430
- {
431
- "kind": "js",
432
- "name": "assureDesignSystem",
433
- "declaration": {
434
- "name": "assureDesignSystem",
435
- "module": "src/design-system/design-system.ts"
436
- }
437
- }
438
- ]
439
- },
440
- {
441
- "kind": "javascript-module",
442
- "path": "src/design-system/index.ts",
443
- "declarations": [],
444
- "exports": [
445
- {
446
- "kind": "js",
447
- "name": "*",
448
- "declaration": {
449
- "name": "*",
450
- "package": "./design-system"
451
- }
452
- }
453
- ]
454
- },
455
154
  {
456
155
  "kind": "javascript-module",
457
156
  "path": "src/directives/index.ts",
@@ -897,6 +596,56 @@
897
596
  }
898
597
  ]
899
598
  },
599
+ {
600
+ "kind": "javascript-module",
601
+ "path": "src/design-system/design-system.ts",
602
+ "declarations": [
603
+ {
604
+ "kind": "function",
605
+ "name": "assureDesignSystem",
606
+ "return": {
607
+ "type": {
608
+ "text": "DesignSystemModule"
609
+ }
610
+ },
611
+ "parameters": [
612
+ {
613
+ "name": "module",
614
+ "type": {
615
+ "text": "DesignSystemModule"
616
+ }
617
+ }
618
+ ],
619
+ "description": "assureDesignSystem.",
620
+ "privacy": "public"
621
+ }
622
+ ],
623
+ "exports": [
624
+ {
625
+ "kind": "js",
626
+ "name": "assureDesignSystem",
627
+ "declaration": {
628
+ "name": "assureDesignSystem",
629
+ "module": "src/design-system/design-system.ts"
630
+ }
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "kind": "javascript-module",
636
+ "path": "src/design-system/index.ts",
637
+ "declarations": [],
638
+ "exports": [
639
+ {
640
+ "kind": "js",
641
+ "name": "*",
642
+ "declaration": {
643
+ "name": "*",
644
+ "package": "./design-system"
645
+ }
646
+ }
647
+ ]
648
+ },
900
649
  {
901
650
  "kind": "javascript-module",
902
651
  "path": "src/formatters/datetime.ts",
@@ -1041,59 +790,295 @@
1041
790
  "type": {
1042
791
  "text": "RegExp"
1043
792
  },
1044
- "privacy": "private",
1045
- "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
793
+ "privacy": "private",
794
+ "default": "new RegExp(\n `[$${parts.find((d) => d.type === 'decimal').value}](?:0*$|[^0]0+$)`,\n )"
795
+ },
796
+ {
797
+ "kind": "field",
798
+ "name": "_numeral",
799
+ "type": {
800
+ "text": "RegExp"
801
+ },
802
+ "privacy": "private",
803
+ "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
804
+ },
805
+ {
806
+ "kind": "field",
807
+ "name": "_index",
808
+ "type": {
809
+ "text": "any"
810
+ },
811
+ "privacy": "private"
812
+ },
813
+ {
814
+ "kind": "method",
815
+ "name": "parse",
816
+ "parameters": [
817
+ {
818
+ "name": "localeNumber",
819
+ "type": {
820
+ "text": "string"
821
+ }
822
+ }
823
+ ]
824
+ },
825
+ {
826
+ "kind": "method",
827
+ "name": "hasSeparator",
828
+ "return": {
829
+ "type": {
830
+ "text": "boolean"
831
+ }
832
+ },
833
+ "parameters": [
834
+ {
835
+ "name": "localeNumber",
836
+ "type": {
837
+ "text": "string"
838
+ }
839
+ }
840
+ ]
841
+ },
842
+ {
843
+ "kind": "field",
844
+ "name": "_group",
845
+ "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
846
+ }
847
+ ]
848
+ }
849
+ ],
850
+ "exports": [
851
+ {
852
+ "kind": "js",
853
+ "name": "NumberParser",
854
+ "declaration": {
855
+ "name": "NumberParser",
856
+ "module": "src/formatters/localeNumberParser.ts"
857
+ }
858
+ }
859
+ ]
860
+ },
861
+ {
862
+ "kind": "javascript-module",
863
+ "path": "src/decorators/index.ts",
864
+ "declarations": [],
865
+ "exports": [
866
+ {
867
+ "kind": "js",
868
+ "name": "*",
869
+ "declaration": {
870
+ "name": "*",
871
+ "package": "./renderOnChange"
872
+ }
873
+ }
874
+ ]
875
+ },
876
+ {
877
+ "kind": "javascript-module",
878
+ "path": "src/decorators/renderOnChange.ts",
879
+ "declarations": [
880
+ {
881
+ "kind": "function",
882
+ "name": "renderOnChange",
883
+ "parameters": [
884
+ {
885
+ "name": "target",
886
+ "type": {
887
+ "text": "FASTElement & { render(): void }"
888
+ },
889
+ "description": "The target to define the property change handler on."
890
+ },
891
+ {
892
+ "name": "name",
893
+ "type": {
894
+ "text": "string"
895
+ },
896
+ "description": "The property name."
897
+ }
898
+ ],
899
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
900
+ "privacy": "public"
901
+ }
902
+ ],
903
+ "exports": [
904
+ {
905
+ "kind": "js",
906
+ "name": "renderOnChange",
907
+ "declaration": {
908
+ "name": "renderOnChange",
909
+ "module": "src/decorators/renderOnChange.ts"
910
+ }
911
+ }
912
+ ]
913
+ },
914
+ {
915
+ "kind": "javascript-module",
916
+ "path": "src/data/inMemoryDatabase.ts",
917
+ "declarations": [
918
+ {
919
+ "kind": "class",
920
+ "description": "An in memory database of specific DatabaseRecord types.",
921
+ "name": "InMemoryDatabase",
922
+ "members": [
923
+ {
924
+ "kind": "field",
925
+ "name": "isWorking",
926
+ "type": {
927
+ "text": "boolean"
928
+ },
929
+ "privacy": "public",
930
+ "default": "false"
931
+ },
932
+ {
933
+ "kind": "field",
934
+ "name": "records",
935
+ "type": {
936
+ "text": "Record<string, T>"
937
+ },
938
+ "privacy": "private",
939
+ "default": "{}"
940
+ },
941
+ {
942
+ "kind": "field",
943
+ "name": "beforeUpdateListeners",
944
+ "privacy": "private"
945
+ },
946
+ {
947
+ "kind": "field",
948
+ "name": "afterUpdateListeners",
949
+ "privacy": "private"
950
+ },
951
+ {
952
+ "kind": "method",
953
+ "name": "create",
954
+ "privacy": "public",
955
+ "return": {
956
+ "type": {
957
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
958
+ }
959
+ },
960
+ "parameters": [
961
+ {
962
+ "name": "newValue",
963
+ "type": {
964
+ "text": "Omit<T, 'id'>"
965
+ }
966
+ }
967
+ ]
968
+ },
969
+ {
970
+ "kind": "method",
971
+ "name": "read",
972
+ "privacy": "public",
973
+ "return": {
974
+ "type": {
975
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
976
+ }
977
+ },
978
+ "parameters": [
979
+ {
980
+ "name": "id",
981
+ "type": {
982
+ "text": "string"
983
+ }
984
+ }
985
+ ]
1046
986
  },
1047
987
  {
1048
- "kind": "field",
1049
- "name": "_numeral",
1050
- "type": {
1051
- "text": "RegExp"
988
+ "kind": "method",
989
+ "name": "update",
990
+ "privacy": "public",
991
+ "return": {
992
+ "type": {
993
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
994
+ }
1052
995
  },
1053
- "privacy": "private",
1054
- "default": "new RegExp(`[${numerals.join('')}]`, 'g')"
996
+ "parameters": [
997
+ {
998
+ "name": "id",
999
+ "type": {
1000
+ "text": "string"
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "newValue",
1005
+ "type": {
1006
+ "text": "Omit<Partial<T>, 'id'>"
1007
+ }
1008
+ }
1009
+ ]
1055
1010
  },
1056
1011
  {
1057
- "kind": "field",
1058
- "name": "_index",
1059
- "type": {
1060
- "text": "any"
1012
+ "kind": "method",
1013
+ "name": "delete",
1014
+ "privacy": "public",
1015
+ "return": {
1016
+ "type": {
1017
+ "text": "Promise<DatabaseAccessResult.Delete>"
1018
+ }
1061
1019
  },
1062
- "privacy": "private"
1020
+ "parameters": [
1021
+ {
1022
+ "name": "id",
1023
+ "type": {
1024
+ "text": "string"
1025
+ }
1026
+ }
1027
+ ]
1063
1028
  },
1064
1029
  {
1065
1030
  "kind": "method",
1066
- "name": "parse",
1031
+ "name": "visit",
1032
+ "privacy": "public",
1033
+ "return": {
1034
+ "type": {
1035
+ "text": "Promise<void>"
1036
+ }
1037
+ },
1067
1038
  "parameters": [
1068
1039
  {
1069
- "name": "localeNumber",
1040
+ "name": "visitor",
1070
1041
  "type": {
1071
- "text": "string"
1042
+ "text": "(record: T) => void"
1072
1043
  }
1073
1044
  }
1074
1045
  ]
1075
1046
  },
1076
1047
  {
1077
1048
  "kind": "method",
1078
- "name": "hasSeparator",
1049
+ "name": "onBeforeUpdate",
1050
+ "privacy": "public",
1079
1051
  "return": {
1080
1052
  "type": {
1081
- "text": "boolean"
1053
+ "text": "() => void"
1082
1054
  }
1083
1055
  },
1084
1056
  "parameters": [
1085
1057
  {
1086
- "name": "localeNumber",
1058
+ "name": "listener",
1087
1059
  "type": {
1088
- "text": "string"
1060
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1089
1061
  }
1090
1062
  }
1091
1063
  ]
1092
1064
  },
1093
1065
  {
1094
- "kind": "field",
1095
- "name": "_group",
1096
- "default": "new RegExp(`[${parts.find((d) => d.type === 'group').value}]`, 'g')"
1066
+ "kind": "method",
1067
+ "name": "onAfterUpdate",
1068
+ "privacy": "public",
1069
+ "return": {
1070
+ "type": {
1071
+ "text": "() => void"
1072
+ }
1073
+ },
1074
+ "parameters": [
1075
+ {
1076
+ "name": "listener",
1077
+ "type": {
1078
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1079
+ }
1080
+ }
1081
+ ]
1097
1082
  }
1098
1083
  ]
1099
1084
  }
@@ -1101,10 +1086,25 @@
1101
1086
  "exports": [
1102
1087
  {
1103
1088
  "kind": "js",
1104
- "name": "NumberParser",
1089
+ "name": "InMemoryDatabase",
1105
1090
  "declaration": {
1106
- "name": "NumberParser",
1107
- "module": "src/formatters/localeNumberParser.ts"
1091
+ "name": "InMemoryDatabase",
1092
+ "module": "src/data/inMemoryDatabase.ts"
1093
+ }
1094
+ }
1095
+ ]
1096
+ },
1097
+ {
1098
+ "kind": "javascript-module",
1099
+ "path": "src/data/index.ts",
1100
+ "declarations": [],
1101
+ "exports": [
1102
+ {
1103
+ "kind": "js",
1104
+ "name": "*",
1105
+ "declaration": {
1106
+ "name": "*",
1107
+ "package": "./inMemoryDatabase"
1108
1108
  }
1109
1109
  }
1110
1110
  ]
@@ -1210,29 +1210,6 @@
1210
1210
  }
1211
1211
  ]
1212
1212
  },
1213
- {
1214
- "kind": "javascript-module",
1215
- "path": "src/mixins/index.ts",
1216
- "declarations": [],
1217
- "exports": [
1218
- {
1219
- "kind": "js",
1220
- "name": "*",
1221
- "declaration": {
1222
- "name": "*",
1223
- "package": "./pendingState"
1224
- }
1225
- },
1226
- {
1227
- "kind": "js",
1228
- "name": "*",
1229
- "declaration": {
1230
- "name": "*",
1231
- "package": "./lifecycle"
1232
- }
1233
- }
1234
- ]
1235
- },
1236
1213
  {
1237
1214
  "kind": "javascript-module",
1238
1215
  "path": "src/observer/index.ts",
@@ -1305,6 +1282,29 @@
1305
1282
  }
1306
1283
  ]
1307
1284
  },
1285
+ {
1286
+ "kind": "javascript-module",
1287
+ "path": "src/mixins/index.ts",
1288
+ "declarations": [],
1289
+ "exports": [
1290
+ {
1291
+ "kind": "js",
1292
+ "name": "*",
1293
+ "declaration": {
1294
+ "name": "*",
1295
+ "package": "./pendingState"
1296
+ }
1297
+ },
1298
+ {
1299
+ "kind": "js",
1300
+ "name": "*",
1301
+ "declaration": {
1302
+ "name": "*",
1303
+ "package": "./lifecycle"
1304
+ }
1305
+ }
1306
+ ]
1307
+ },
1308
1308
  {
1309
1309
  "kind": "javascript-module",
1310
1310
  "path": "src/resource/index.ts",
@@ -2101,148 +2101,48 @@
2101
2101
  {
2102
2102
  "name": "conversionType",
2103
2103
  "default": "'string'",
2104
- "type": {
2105
- "text": "ConversionType"
2106
- }
2107
- },
2108
- {
2109
- "name": "eventName",
2110
- "default": "'default'",
2111
- "type": {
2112
- "text": "EventName"
2113
- }
2114
- },
2115
- {
2116
- "name": "keyAttr",
2117
- "optional": true,
2118
- "type": {
2119
- "text": "string"
2120
- }
2121
- }
2122
- ],
2123
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2124
- "privacy": "public"
2125
- }
2126
- ],
2127
- "exports": [
2128
- {
2129
- "kind": "js",
2130
- "name": "defaultEventMap",
2131
- "declaration": {
2132
- "name": "defaultEventMap",
2133
- "module": "src/directives/sync/sync.ts"
2134
- }
2135
- },
2136
- {
2137
- "kind": "js",
2138
- "name": "sync",
2139
- "declaration": {
2140
- "name": "sync",
2141
- "module": "src/directives/sync/sync.ts"
2142
- }
2143
- }
2144
- ]
2145
- },
2146
- {
2147
- "kind": "javascript-module",
2148
- "path": "src/mappers/dto/index.ts",
2149
- "declarations": [],
2150
- "exports": [
2151
- {
2152
- "kind": "js",
2153
- "name": "*",
2154
- "declaration": {
2155
- "name": "*",
2156
- "package": "./serverRow"
2157
- }
2158
- },
2159
- {
2160
- "kind": "js",
2161
- "name": "*",
2162
- "declaration": {
2163
- "name": "*",
2164
- "package": "./types"
2165
- }
2166
- }
2167
- ]
2168
- },
2169
- {
2170
- "kind": "javascript-module",
2171
- "path": "src/mappers/dto/serverRow.ts",
2172
- "declarations": [
2173
- {
2174
- "kind": "class",
2175
- "description": "The default `ServerRowDTOMapper`.",
2176
- "name": "DefaultServerRowDTOMapper",
2177
- "members": [
2178
- {
2179
- "kind": "field",
2180
- "name": "fromDTO",
2181
- "description": "Converts a server row DTO to an entity.",
2182
- "parameters": [
2183
- {
2184
- "description": "The DTO to convert.",
2185
- "name": "dto"
2186
- }
2187
- ],
2188
- "return": {
2189
- "type": {
2190
- "text": ""
2191
- }
2192
- },
2193
- "privacy": "public"
2104
+ "type": {
2105
+ "text": "ConversionType"
2106
+ }
2194
2107
  },
2195
2108
  {
2196
- "kind": "field",
2197
- "name": "toDTO",
2198
- "description": "Converts a server row entity to a DTO.",
2199
- "parameters": [
2200
- {
2201
- "description": "The entity to convert.",
2202
- "name": "entity"
2203
- }
2204
- ],
2205
- "return": {
2206
- "type": {
2207
- "text": ""
2208
- }
2209
- },
2210
- "privacy": "public"
2109
+ "name": "eventName",
2110
+ "default": "'default'",
2111
+ "type": {
2112
+ "text": "EventName"
2113
+ }
2114
+ },
2115
+ {
2116
+ "name": "keyAttr",
2117
+ "optional": true,
2118
+ "type": {
2119
+ "text": "string"
2120
+ }
2211
2121
  }
2212
- ]
2213
- },
2214
- {
2215
- "kind": "variable",
2216
- "name": "ServerRowDTOMapper",
2217
- "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2122
+ ],
2123
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2218
2124
  "privacy": "public"
2219
2125
  }
2220
2126
  ],
2221
2127
  "exports": [
2222
2128
  {
2223
2129
  "kind": "js",
2224
- "name": "DefaultServerRowDTOMapper",
2130
+ "name": "defaultEventMap",
2225
2131
  "declaration": {
2226
- "name": "DefaultServerRowDTOMapper",
2227
- "module": "src/mappers/dto/serverRow.ts"
2132
+ "name": "defaultEventMap",
2133
+ "module": "src/directives/sync/sync.ts"
2228
2134
  }
2229
2135
  },
2230
2136
  {
2231
2137
  "kind": "js",
2232
- "name": "ServerRowDTOMapper",
2138
+ "name": "sync",
2233
2139
  "declaration": {
2234
- "name": "ServerRowDTOMapper",
2235
- "module": "src/mappers/dto/serverRow.ts"
2140
+ "name": "sync",
2141
+ "module": "src/directives/sync/sync.ts"
2236
2142
  }
2237
2143
  }
2238
2144
  ]
2239
2145
  },
2240
- {
2241
- "kind": "javascript-module",
2242
- "path": "src/mappers/dto/types.ts",
2243
- "declarations": [],
2244
- "exports": []
2245
- },
2246
2146
  {
2247
2147
  "kind": "javascript-module",
2248
2148
  "path": "src/directives/when-else/index.ts",
@@ -2310,7 +2210,7 @@
2310
2210
  },
2311
2211
  {
2312
2212
  "kind": "javascript-module",
2313
- "path": "src/mixins/pendingState/index.ts",
2213
+ "path": "src/mappers/dto/index.ts",
2314
2214
  "declarations": [],
2315
2215
  "exports": [
2316
2216
  {
@@ -2318,83 +2218,96 @@
2318
2218
  "name": "*",
2319
2219
  "declaration": {
2320
2220
  "name": "*",
2321
- "package": "./pendingState"
2221
+ "package": "./serverRow"
2222
+ }
2223
+ },
2224
+ {
2225
+ "kind": "js",
2226
+ "name": "*",
2227
+ "declaration": {
2228
+ "name": "*",
2229
+ "package": "./types"
2322
2230
  }
2323
2231
  }
2324
2232
  ]
2325
2233
  },
2326
2234
  {
2327
2235
  "kind": "javascript-module",
2328
- "path": "src/mixins/pendingState/pendingState.ts",
2236
+ "path": "src/mappers/dto/serverRow.ts",
2329
2237
  "declarations": [
2330
2238
  {
2331
- "kind": "mixin",
2332
- "description": "The `PendingState` mixin.",
2333
- "name": "PendingState",
2239
+ "kind": "class",
2240
+ "description": "The default `ServerRowDTOMapper`.",
2241
+ "name": "DefaultServerRowDTOMapper",
2334
2242
  "members": [
2335
2243
  {
2336
2244
  "kind": "field",
2337
- "name": "pendingCount",
2338
- "type": {
2339
- "text": "number"
2340
- },
2341
- "privacy": "public",
2342
- "default": "0",
2343
- "description": "The number of promises that are currently pending."
2344
- },
2345
- {
2346
- "kind": "field",
2347
- "name": "resolvedCount",
2348
- "type": {
2349
- "text": "number"
2350
- },
2351
- "privacy": "public",
2352
- "default": "0",
2353
- "description": "The number of promises that have been resolved."
2354
- },
2355
- {
2356
- "kind": "field",
2357
- "name": "hasPendingChildren",
2358
- "type": {
2359
- "text": "boolean"
2245
+ "name": "fromDTO",
2246
+ "description": "Converts a server row DTO to an entity.",
2247
+ "parameters": [
2248
+ {
2249
+ "description": "The DTO to convert.",
2250
+ "name": "dto"
2251
+ }
2252
+ ],
2253
+ "return": {
2254
+ "type": {
2255
+ "text": ""
2256
+ }
2360
2257
  },
2361
- "privacy": "public",
2362
- "default": "false",
2363
- "description": "A boolean indicating whether there are any pending children."
2258
+ "privacy": "public"
2364
2259
  },
2365
2260
  {
2366
2261
  "kind": "field",
2367
- "name": "progress",
2368
- "type": {
2369
- "text": "number"
2262
+ "name": "toDTO",
2263
+ "description": "Converts a server row entity to a DTO.",
2264
+ "parameters": [
2265
+ {
2266
+ "description": "The entity to convert.",
2267
+ "name": "entity"
2268
+ }
2269
+ ],
2270
+ "return": {
2271
+ "type": {
2272
+ "text": ""
2273
+ }
2370
2274
  },
2371
- "privacy": "public",
2372
- "description": "Gets the progress of the pending promises as a percentage between 0 and 1.",
2373
- "readonly": true
2374
- }
2375
- ],
2376
- "parameters": [
2377
- {
2378
- "name": "Base",
2379
- "type": {
2380
- "text": "TBase"
2381
- }
2275
+ "privacy": "public"
2382
2276
  }
2383
- ],
2277
+ ]
2278
+ },
2279
+ {
2280
+ "kind": "variable",
2281
+ "name": "ServerRowDTOMapper",
2282
+ "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2384
2283
  "privacy": "public"
2385
2284
  }
2386
2285
  ],
2387
2286
  "exports": [
2388
2287
  {
2389
2288
  "kind": "js",
2390
- "name": "PendingState",
2289
+ "name": "DefaultServerRowDTOMapper",
2391
2290
  "declaration": {
2392
- "name": "PendingState",
2393
- "module": "src/mixins/pendingState/pendingState.ts"
2291
+ "name": "DefaultServerRowDTOMapper",
2292
+ "module": "src/mappers/dto/serverRow.ts"
2293
+ }
2294
+ },
2295
+ {
2296
+ "kind": "js",
2297
+ "name": "ServerRowDTOMapper",
2298
+ "declaration": {
2299
+ "name": "ServerRowDTOMapper",
2300
+ "module": "src/mappers/dto/serverRow.ts"
2394
2301
  }
2395
2302
  }
2396
2303
  ]
2397
2304
  },
2305
+ {
2306
+ "kind": "javascript-module",
2307
+ "path": "src/mappers/dto/types.ts",
2308
+ "declarations": [],
2309
+ "exports": []
2310
+ },
2398
2311
  {
2399
2312
  "kind": "javascript-module",
2400
2313
  "path": "src/mixins/lifecycle/index.ts",
@@ -2519,6 +2432,93 @@
2519
2432
  }
2520
2433
  ]
2521
2434
  },
2435
+ {
2436
+ "kind": "javascript-module",
2437
+ "path": "src/mixins/pendingState/index.ts",
2438
+ "declarations": [],
2439
+ "exports": [
2440
+ {
2441
+ "kind": "js",
2442
+ "name": "*",
2443
+ "declaration": {
2444
+ "name": "*",
2445
+ "package": "./pendingState"
2446
+ }
2447
+ }
2448
+ ]
2449
+ },
2450
+ {
2451
+ "kind": "javascript-module",
2452
+ "path": "src/mixins/pendingState/pendingState.ts",
2453
+ "declarations": [
2454
+ {
2455
+ "kind": "mixin",
2456
+ "description": "The `PendingState` mixin.",
2457
+ "name": "PendingState",
2458
+ "members": [
2459
+ {
2460
+ "kind": "field",
2461
+ "name": "pendingCount",
2462
+ "type": {
2463
+ "text": "number"
2464
+ },
2465
+ "privacy": "public",
2466
+ "default": "0",
2467
+ "description": "The number of promises that are currently pending."
2468
+ },
2469
+ {
2470
+ "kind": "field",
2471
+ "name": "resolvedCount",
2472
+ "type": {
2473
+ "text": "number"
2474
+ },
2475
+ "privacy": "public",
2476
+ "default": "0",
2477
+ "description": "The number of promises that have been resolved."
2478
+ },
2479
+ {
2480
+ "kind": "field",
2481
+ "name": "hasPendingChildren",
2482
+ "type": {
2483
+ "text": "boolean"
2484
+ },
2485
+ "privacy": "public",
2486
+ "default": "false",
2487
+ "description": "A boolean indicating whether there are any pending children."
2488
+ },
2489
+ {
2490
+ "kind": "field",
2491
+ "name": "progress",
2492
+ "type": {
2493
+ "text": "number"
2494
+ },
2495
+ "privacy": "public",
2496
+ "description": "Gets the progress of the pending promises as a percentage between 0 and 1.",
2497
+ "readonly": true
2498
+ }
2499
+ ],
2500
+ "parameters": [
2501
+ {
2502
+ "name": "Base",
2503
+ "type": {
2504
+ "text": "TBase"
2505
+ }
2506
+ }
2507
+ ],
2508
+ "privacy": "public"
2509
+ }
2510
+ ],
2511
+ "exports": [
2512
+ {
2513
+ "kind": "js",
2514
+ "name": "PendingState",
2515
+ "declaration": {
2516
+ "name": "PendingState",
2517
+ "module": "src/mixins/pendingState/pendingState.ts"
2518
+ }
2519
+ }
2520
+ ]
2521
+ },
2522
2522
  {
2523
2523
  "kind": "javascript-module",
2524
2524
  "path": "src/serializers/json/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.145.0",
4
+ "version": "14.145.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -19,12 +19,12 @@
19
19
  "test": "genx test"
20
20
  },
21
21
  "devDependencies": {
22
- "@genesislcap/foundation-testing": "14.145.0",
23
- "@genesislcap/genx": "14.145.0",
22
+ "@genesislcap/foundation-testing": "14.145.1",
23
+ "@genesislcap/genx": "14.145.1",
24
24
  "rimraf": "^3.0.2"
25
25
  },
26
26
  "dependencies": {
27
- "@genesislcap/foundation-logger": "14.145.0",
27
+ "@genesislcap/foundation-logger": "14.145.1",
28
28
  "@microsoft/fast-components": "^2.30.6",
29
29
  "@microsoft/fast-element": "^1.12.0",
30
30
  "@microsoft/fast-foundation": "^2.49.4",
@@ -42,5 +42,5 @@
42
42
  "access": "public"
43
43
  },
44
44
  "customElements": "dist/custom-elements.json",
45
- "gitHead": "6af8e057bf423c3045239449edad01d15153bf0b"
45
+ "gitHead": "5ec311e6d296eb8c048be764d107f7f4dd14de22"
46
46
  }