@genesislcap/foundation-utils 14.196.1 → 14.197.0-FUI-2106.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.
@@ -159,6 +159,59 @@
159
159
  }
160
160
  ]
161
161
  },
162
+ {
163
+ "kind": "javascript-module",
164
+ "path": "src/decorators/index.ts",
165
+ "declarations": [],
166
+ "exports": [
167
+ {
168
+ "kind": "js",
169
+ "name": "*",
170
+ "declaration": {
171
+ "name": "*",
172
+ "package": "./renderOnChange"
173
+ }
174
+ }
175
+ ]
176
+ },
177
+ {
178
+ "kind": "javascript-module",
179
+ "path": "src/decorators/renderOnChange.ts",
180
+ "declarations": [
181
+ {
182
+ "kind": "function",
183
+ "name": "renderOnChange",
184
+ "parameters": [
185
+ {
186
+ "name": "target",
187
+ "type": {
188
+ "text": "FASTElement & { render(): void }"
189
+ },
190
+ "description": "The target to define the property change handler on."
191
+ },
192
+ {
193
+ "name": "name",
194
+ "type": {
195
+ "text": "string"
196
+ },
197
+ "description": "The property name."
198
+ }
199
+ ],
200
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
201
+ "privacy": "public"
202
+ }
203
+ ],
204
+ "exports": [
205
+ {
206
+ "kind": "js",
207
+ "name": "renderOnChange",
208
+ "declaration": {
209
+ "name": "renderOnChange",
210
+ "module": "src/decorators/renderOnChange.ts"
211
+ }
212
+ }
213
+ ]
214
+ },
162
215
  {
163
216
  "kind": "javascript-module",
164
217
  "path": "src/data/inMemoryDatabase.ts",
@@ -359,42 +412,7 @@
359
412
  },
360
413
  {
361
414
  "kind": "javascript-module",
362
- "path": "src/design-system/design-system.ts",
363
- "declarations": [
364
- {
365
- "kind": "function",
366
- "name": "assureDesignSystem",
367
- "return": {
368
- "type": {
369
- "text": "DesignSystemModule"
370
- }
371
- },
372
- "parameters": [
373
- {
374
- "name": "module",
375
- "type": {
376
- "text": "DesignSystemModule"
377
- }
378
- }
379
- ],
380
- "description": "assureDesignSystem.",
381
- "privacy": "public"
382
- }
383
- ],
384
- "exports": [
385
- {
386
- "kind": "js",
387
- "name": "assureDesignSystem",
388
- "declaration": {
389
- "name": "assureDesignSystem",
390
- "module": "src/design-system/design-system.ts"
391
- }
392
- }
393
- ]
394
- },
395
- {
396
- "kind": "javascript-module",
397
- "path": "src/design-system/index.ts",
415
+ "path": "src/directives/index.ts",
398
416
  "declarations": [],
399
417
  "exports": [
400
418
  {
@@ -402,67 +420,57 @@
402
420
  "name": "*",
403
421
  "declaration": {
404
422
  "name": "*",
405
- "package": "./design-system"
423
+ "package": "./sync"
406
424
  }
407
- }
408
- ]
409
- },
410
- {
411
- "kind": "javascript-module",
412
- "path": "src/decorators/index.ts",
413
- "declarations": [],
414
- "exports": [
425
+ },
415
426
  {
416
427
  "kind": "js",
417
428
  "name": "*",
418
429
  "declaration": {
419
430
  "name": "*",
420
- "package": "./renderOnChange"
431
+ "package": "./when-else"
421
432
  }
422
433
  }
423
434
  ]
424
435
  },
425
436
  {
426
437
  "kind": "javascript-module",
427
- "path": "src/decorators/renderOnChange.ts",
438
+ "path": "src/design-system/design-system.ts",
428
439
  "declarations": [
429
440
  {
430
441
  "kind": "function",
431
- "name": "renderOnChange",
442
+ "name": "assureDesignSystem",
443
+ "return": {
444
+ "type": {
445
+ "text": "DesignSystemModule"
446
+ }
447
+ },
432
448
  "parameters": [
433
449
  {
434
- "name": "target",
435
- "type": {
436
- "text": "FASTElement & { render(): void }"
437
- },
438
- "description": "The target to define the property change handler on."
439
- },
440
- {
441
- "name": "name",
450
+ "name": "module",
442
451
  "type": {
443
- "text": "string"
444
- },
445
- "description": "The property name."
452
+ "text": "DesignSystemModule"
453
+ }
446
454
  }
447
455
  ],
448
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
456
+ "description": "assureDesignSystem.",
449
457
  "privacy": "public"
450
458
  }
451
459
  ],
452
460
  "exports": [
453
461
  {
454
462
  "kind": "js",
455
- "name": "renderOnChange",
463
+ "name": "assureDesignSystem",
456
464
  "declaration": {
457
- "name": "renderOnChange",
458
- "module": "src/decorators/renderOnChange.ts"
465
+ "name": "assureDesignSystem",
466
+ "module": "src/design-system/design-system.ts"
459
467
  }
460
468
  }
461
469
  ]
462
470
  },
463
471
  {
464
472
  "kind": "javascript-module",
465
- "path": "src/directives/index.ts",
473
+ "path": "src/design-system/index.ts",
466
474
  "declarations": [],
467
475
  "exports": [
468
476
  {
@@ -470,15 +478,7 @@
470
478
  "name": "*",
471
479
  "declaration": {
472
480
  "name": "*",
473
- "package": "./sync"
474
- }
475
- },
476
- {
477
- "kind": "js",
478
- "name": "*",
479
- "declaration": {
480
- "name": "*",
481
- "package": "./when-else"
481
+ "package": "./design-system"
482
482
  }
483
483
  }
484
484
  ]
@@ -988,6 +988,27 @@
988
988
  ],
989
989
  "description": "Formats [DATE|DATETIME] Unix Timestamps to readable strings",
990
990
  "privacy": "public"
991
+ },
992
+ {
993
+ "kind": "function",
994
+ "name": "getDateFormatter",
995
+ "parameters": [
996
+ {
997
+ "name": "locale",
998
+ "default": "'en-GB'",
999
+ "type": {
1000
+ "text": "string"
1001
+ }
1002
+ },
1003
+ {
1004
+ "name": "options",
1005
+ "default": "defaultDateOptions",
1006
+ "type": {
1007
+ "text": "Intl.DateTimeFormatOptions"
1008
+ }
1009
+ }
1010
+ ],
1011
+ "privacy": "public"
991
1012
  }
992
1013
  ],
993
1014
  "exports": [
@@ -1014,6 +1035,14 @@
1014
1035
  "name": "formatTimestamp",
1015
1036
  "module": "src/formatters/datetime.ts"
1016
1037
  }
1038
+ },
1039
+ {
1040
+ "kind": "js",
1041
+ "name": "getDateFormatter",
1042
+ "declaration": {
1043
+ "name": "getDateFormatter",
1044
+ "module": "src/formatters/datetime.ts"
1045
+ }
1017
1046
  }
1018
1047
  ]
1019
1048
  },
@@ -1037,6 +1066,14 @@
1037
1066
  "name": "*",
1038
1067
  "package": "./localeNumberParser"
1039
1068
  }
1069
+ },
1070
+ {
1071
+ "kind": "js",
1072
+ "name": "*",
1073
+ "declaration": {
1074
+ "name": "*",
1075
+ "package": "./number"
1076
+ }
1040
1077
  }
1041
1078
  ]
1042
1079
  },
@@ -1132,6 +1169,42 @@
1132
1169
  }
1133
1170
  ]
1134
1171
  },
1172
+ {
1173
+ "kind": "javascript-module",
1174
+ "path": "src/formatters/number.ts",
1175
+ "declarations": [
1176
+ {
1177
+ "kind": "function",
1178
+ "name": "getNumberFormatter",
1179
+ "parameters": [
1180
+ {
1181
+ "name": "format",
1182
+ "type": {
1183
+ "text": "string"
1184
+ }
1185
+ },
1186
+ {
1187
+ "name": "locale",
1188
+ "optional": true,
1189
+ "type": {
1190
+ "text": "string | null"
1191
+ }
1192
+ }
1193
+ ],
1194
+ "privacy": "public"
1195
+ }
1196
+ ],
1197
+ "exports": [
1198
+ {
1199
+ "kind": "js",
1200
+ "name": "getNumberFormatter",
1201
+ "declaration": {
1202
+ "name": "getNumberFormatter",
1203
+ "module": "src/formatters/number.ts"
1204
+ }
1205
+ }
1206
+ ]
1207
+ },
1135
1208
  {
1136
1209
  "kind": "javascript-module",
1137
1210
  "path": "src/logger/index.ts",
@@ -2287,6 +2360,106 @@
2287
2360
  }
2288
2361
  ]
2289
2362
  },
2363
+ {
2364
+ "kind": "javascript-module",
2365
+ "path": "src/mappers/dto/index.ts",
2366
+ "declarations": [],
2367
+ "exports": [
2368
+ {
2369
+ "kind": "js",
2370
+ "name": "*",
2371
+ "declaration": {
2372
+ "name": "*",
2373
+ "package": "./serverRow"
2374
+ }
2375
+ },
2376
+ {
2377
+ "kind": "js",
2378
+ "name": "*",
2379
+ "declaration": {
2380
+ "name": "*",
2381
+ "package": "./types"
2382
+ }
2383
+ }
2384
+ ]
2385
+ },
2386
+ {
2387
+ "kind": "javascript-module",
2388
+ "path": "src/mappers/dto/serverRow.ts",
2389
+ "declarations": [
2390
+ {
2391
+ "kind": "class",
2392
+ "description": "The default `ServerRowDTOMapper`.",
2393
+ "name": "DefaultServerRowDTOMapper",
2394
+ "members": [
2395
+ {
2396
+ "kind": "field",
2397
+ "name": "fromDTO",
2398
+ "description": "Converts a server row DTO to an entity.",
2399
+ "parameters": [
2400
+ {
2401
+ "description": "The DTO to convert.",
2402
+ "name": "dto"
2403
+ }
2404
+ ],
2405
+ "return": {
2406
+ "type": {
2407
+ "text": ""
2408
+ }
2409
+ },
2410
+ "privacy": "public"
2411
+ },
2412
+ {
2413
+ "kind": "field",
2414
+ "name": "toDTO",
2415
+ "description": "Converts a server row entity to a DTO.",
2416
+ "parameters": [
2417
+ {
2418
+ "description": "The entity to convert.",
2419
+ "name": "entity"
2420
+ }
2421
+ ],
2422
+ "return": {
2423
+ "type": {
2424
+ "text": ""
2425
+ }
2426
+ },
2427
+ "privacy": "public"
2428
+ }
2429
+ ]
2430
+ },
2431
+ {
2432
+ "kind": "variable",
2433
+ "name": "ServerRowDTOMapper",
2434
+ "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2435
+ "privacy": "public"
2436
+ }
2437
+ ],
2438
+ "exports": [
2439
+ {
2440
+ "kind": "js",
2441
+ "name": "DefaultServerRowDTOMapper",
2442
+ "declaration": {
2443
+ "name": "DefaultServerRowDTOMapper",
2444
+ "module": "src/mappers/dto/serverRow.ts"
2445
+ }
2446
+ },
2447
+ {
2448
+ "kind": "js",
2449
+ "name": "ServerRowDTOMapper",
2450
+ "declaration": {
2451
+ "name": "ServerRowDTOMapper",
2452
+ "module": "src/mappers/dto/serverRow.ts"
2453
+ }
2454
+ }
2455
+ ]
2456
+ },
2457
+ {
2458
+ "kind": "javascript-module",
2459
+ "path": "src/mappers/dto/types.ts",
2460
+ "declarations": [],
2461
+ "exports": []
2462
+ },
2290
2463
  {
2291
2464
  "kind": "javascript-module",
2292
2465
  "path": "src/mixins/lifecycle/index.ts",
@@ -2411,106 +2584,6 @@
2411
2584
  }
2412
2585
  ]
2413
2586
  },
2414
- {
2415
- "kind": "javascript-module",
2416
- "path": "src/mappers/dto/index.ts",
2417
- "declarations": [],
2418
- "exports": [
2419
- {
2420
- "kind": "js",
2421
- "name": "*",
2422
- "declaration": {
2423
- "name": "*",
2424
- "package": "./serverRow"
2425
- }
2426
- },
2427
- {
2428
- "kind": "js",
2429
- "name": "*",
2430
- "declaration": {
2431
- "name": "*",
2432
- "package": "./types"
2433
- }
2434
- }
2435
- ]
2436
- },
2437
- {
2438
- "kind": "javascript-module",
2439
- "path": "src/mappers/dto/serverRow.ts",
2440
- "declarations": [
2441
- {
2442
- "kind": "class",
2443
- "description": "The default `ServerRowDTOMapper`.",
2444
- "name": "DefaultServerRowDTOMapper",
2445
- "members": [
2446
- {
2447
- "kind": "field",
2448
- "name": "fromDTO",
2449
- "description": "Converts a server row DTO to an entity.",
2450
- "parameters": [
2451
- {
2452
- "description": "The DTO to convert.",
2453
- "name": "dto"
2454
- }
2455
- ],
2456
- "return": {
2457
- "type": {
2458
- "text": ""
2459
- }
2460
- },
2461
- "privacy": "public"
2462
- },
2463
- {
2464
- "kind": "field",
2465
- "name": "toDTO",
2466
- "description": "Converts a server row entity to a DTO.",
2467
- "parameters": [
2468
- {
2469
- "description": "The entity to convert.",
2470
- "name": "entity"
2471
- }
2472
- ],
2473
- "return": {
2474
- "type": {
2475
- "text": ""
2476
- }
2477
- },
2478
- "privacy": "public"
2479
- }
2480
- ]
2481
- },
2482
- {
2483
- "kind": "variable",
2484
- "name": "ServerRowDTOMapper",
2485
- "description": "A DI token used to obtain a `ServerRowDTOMapper` instance.",
2486
- "privacy": "public"
2487
- }
2488
- ],
2489
- "exports": [
2490
- {
2491
- "kind": "js",
2492
- "name": "DefaultServerRowDTOMapper",
2493
- "declaration": {
2494
- "name": "DefaultServerRowDTOMapper",
2495
- "module": "src/mappers/dto/serverRow.ts"
2496
- }
2497
- },
2498
- {
2499
- "kind": "js",
2500
- "name": "ServerRowDTOMapper",
2501
- "declaration": {
2502
- "name": "ServerRowDTOMapper",
2503
- "module": "src/mappers/dto/serverRow.ts"
2504
- }
2505
- }
2506
- ]
2507
- },
2508
- {
2509
- "kind": "javascript-module",
2510
- "path": "src/mappers/dto/types.ts",
2511
- "declarations": [],
2512
- "exports": []
2513
- },
2514
2587
  {
2515
2588
  "kind": "javascript-module",
2516
2589
  "path": "src/mixins/pendingState/index.ts",
@@ -15,4 +15,8 @@ export declare function formatDateTimeTimestamp(timestamp: number): string;
15
15
  * @param withTime - The flag to determine if formatted value should contain 'time' info.
16
16
  */
17
17
  export declare function formatTimestamp(timestamp: number, withTime: boolean): string;
18
+ /**
19
+ * @public
20
+ */
21
+ export declare function getDateFormatter(locale?: string, options?: Intl.DateTimeFormatOptions): (params: any) => string;
18
22
  //# sourceMappingURL=datetime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/formatters/datetime.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAGD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAM5E"}
1
+ {"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/formatters/datetime.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAG7D;AAGD;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGjE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAM5E;AASD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,GAAE,MAAgB,EACxB,OAAO,GAAE,IAAI,CAAC,qBAA0C,YAExC,GAAG,YAKpB"}
@@ -1,3 +1,4 @@
1
1
  export * from './datetime';
2
2
  export * from './localeNumberParser';
3
+ export * from './number';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ import 'numeral/locales';
2
+ /**
3
+ * @public
4
+ */
5
+ export declare function getNumberFormatter(format: string, locale?: string | null): (params: any) => any;
6
+ //# sourceMappingURL=number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../../src/formatters/number.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,CAAC;AAEzB;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,YACvD,GAAG,SAYpB"}
@@ -30,3 +30,19 @@ export function formatTimestamp(timestamp, withTime) {
30
30
  }
31
31
  return formatDateTimestamp(timestamp);
32
32
  }
33
+ const defaultDateOptions = {
34
+ year: 'numeric',
35
+ month: '2-digit',
36
+ day: '2-digit',
37
+ timeZone: 'UTC',
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export function getDateFormatter(locale = 'en-GB', options = defaultDateOptions) {
43
+ return (params) => {
44
+ if (!(params && typeof params.value === 'number'))
45
+ return '';
46
+ return new Intl.DateTimeFormat(locale, options).format(params.value);
47
+ };
48
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './datetime';
2
2
  export * from './localeNumberParser';
3
+ export * from './number';
@@ -0,0 +1,17 @@
1
+ import Numeral from 'numeral';
2
+ import 'numeral/locales';
3
+ /**
4
+ * @public
5
+ */
6
+ export function getNumberFormatter(format, locale) {
7
+ return (params) => {
8
+ // bigdecimals are sent as strings
9
+ if (!(params && (typeof params.value === 'number' || typeof params.value === 'string'))) {
10
+ return '';
11
+ }
12
+ if (locale) {
13
+ Numeral.locale(locale);
14
+ }
15
+ return Numeral(params.value).format(format);
16
+ };
17
+ }
@@ -3376,6 +3376,68 @@
3376
3376
  "endIndex": 2
3377
3377
  }
3378
3378
  },
3379
+ {
3380
+ "kind": "Function",
3381
+ "canonicalReference": "@genesislcap/foundation-utils!getDateFormatter:function(1)",
3382
+ "docComment": "/**\n * @public\n */\n",
3383
+ "excerptTokens": [
3384
+ {
3385
+ "kind": "Content",
3386
+ "text": "export declare function getDateFormatter(locale?: "
3387
+ },
3388
+ {
3389
+ "kind": "Content",
3390
+ "text": "string"
3391
+ },
3392
+ {
3393
+ "kind": "Content",
3394
+ "text": ", options?: "
3395
+ },
3396
+ {
3397
+ "kind": "Reference",
3398
+ "text": "Intl.DateTimeFormatOptions",
3399
+ "canonicalReference": "!Intl.DateTimeFormatOptions:interface"
3400
+ },
3401
+ {
3402
+ "kind": "Content",
3403
+ "text": "): "
3404
+ },
3405
+ {
3406
+ "kind": "Content",
3407
+ "text": "(params: any) => string"
3408
+ },
3409
+ {
3410
+ "kind": "Content",
3411
+ "text": ";"
3412
+ }
3413
+ ],
3414
+ "fileUrlPath": "src/formatters/datetime.ts",
3415
+ "returnTypeTokenRange": {
3416
+ "startIndex": 5,
3417
+ "endIndex": 6
3418
+ },
3419
+ "releaseTag": "Public",
3420
+ "overloadIndex": 1,
3421
+ "parameters": [
3422
+ {
3423
+ "parameterName": "locale",
3424
+ "parameterTypeTokenRange": {
3425
+ "startIndex": 1,
3426
+ "endIndex": 2
3427
+ },
3428
+ "isOptional": true
3429
+ },
3430
+ {
3431
+ "parameterName": "options",
3432
+ "parameterTypeTokenRange": {
3433
+ "startIndex": 3,
3434
+ "endIndex": 4
3435
+ },
3436
+ "isOptional": true
3437
+ }
3438
+ ],
3439
+ "name": "getDateFormatter"
3440
+ },
3379
3441
  {
3380
3442
  "kind": "Variable",
3381
3443
  "canonicalReference": "@genesislcap/foundation-utils!getFontMixin:var",
@@ -3417,6 +3479,67 @@
3417
3479
  "endIndex": 6
3418
3480
  }
3419
3481
  },
3482
+ {
3483
+ "kind": "Function",
3484
+ "canonicalReference": "@genesislcap/foundation-utils!getNumberFormatter:function(1)",
3485
+ "docComment": "/**\n * @public\n */\n",
3486
+ "excerptTokens": [
3487
+ {
3488
+ "kind": "Content",
3489
+ "text": "export declare function getNumberFormatter(format: "
3490
+ },
3491
+ {
3492
+ "kind": "Content",
3493
+ "text": "string"
3494
+ },
3495
+ {
3496
+ "kind": "Content",
3497
+ "text": ", locale?: "
3498
+ },
3499
+ {
3500
+ "kind": "Content",
3501
+ "text": "string | null"
3502
+ },
3503
+ {
3504
+ "kind": "Content",
3505
+ "text": "): "
3506
+ },
3507
+ {
3508
+ "kind": "Content",
3509
+ "text": "(params: any) => any"
3510
+ },
3511
+ {
3512
+ "kind": "Content",
3513
+ "text": ";"
3514
+ }
3515
+ ],
3516
+ "fileUrlPath": "src/formatters/number.ts",
3517
+ "returnTypeTokenRange": {
3518
+ "startIndex": 5,
3519
+ "endIndex": 6
3520
+ },
3521
+ "releaseTag": "Public",
3522
+ "overloadIndex": 1,
3523
+ "parameters": [
3524
+ {
3525
+ "parameterName": "format",
3526
+ "parameterTypeTokenRange": {
3527
+ "startIndex": 1,
3528
+ "endIndex": 2
3529
+ },
3530
+ "isOptional": false
3531
+ },
3532
+ {
3533
+ "parameterName": "locale",
3534
+ "parameterTypeTokenRange": {
3535
+ "startIndex": 3,
3536
+ "endIndex": 4
3537
+ },
3538
+ "isOptional": true
3539
+ }
3540
+ ],
3541
+ "name": "getNumberFormatter"
3542
+ },
3420
3543
  {
3421
3544
  "kind": "Variable",
3422
3545
  "canonicalReference": "@genesislcap/foundation-utils!HTTP_CONFIG:var",
@@ -451,6 +451,11 @@ export declare type FoundationLayoutContainer = {
451
451
  */
452
452
  export declare const GENESIS_SOCKET_URL: string;
453
453
 
454
+ /**
455
+ * @public
456
+ */
457
+ export declare function getDateFormatter(locale?: string, options?: Intl.DateTimeFormatOptions): (params: any) => string;
458
+
454
459
  /**
455
460
  * Generates a CSS mixin for the specified font family, style, and weight.
456
461
  * @param family - The font family.
@@ -461,6 +466,11 @@ export declare const GENESIS_SOCKET_URL: string;
461
466
  */
462
467
  export declare const getFontMixin: (family: string, style?: FontStyle, weight?: FontWeight) => string;
463
468
 
469
+ /**
470
+ * @public
471
+ */
472
+ export declare function getNumberFormatter(format: string, locale?: string | null): (params: any) => any;
473
+
464
474
  /**
465
475
  * Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).
466
476
  * @remarks Optional.
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [getDateFormatter](./foundation-utils.getdateformatter.md)
4
+
5
+ ## getDateFormatter() function
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ export declare function getDateFormatter(locale?: string, options?: Intl.DateTimeFormatOptions): (params: any) => string;
12
+ ```
13
+
14
+ ## Parameters
15
+
16
+ | Parameter | Type | Description |
17
+ | --- | --- | --- |
18
+ | locale | string | _(Optional)_ |
19
+ | options | Intl.DateTimeFormatOptions | _(Optional)_ |
20
+
21
+ **Returns:**
22
+
23
+ (params: any) =&gt; string
24
+
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [getNumberFormatter](./foundation-utils.getnumberformatter.md)
4
+
5
+ ## getNumberFormatter() function
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ export declare function getNumberFormatter(format: string, locale?: string | null): (params: any) => any;
12
+ ```
13
+
14
+ ## Parameters
15
+
16
+ | Parameter | Type | Description |
17
+ | --- | --- | --- |
18
+ | format | string | |
19
+ | locale | string \| null | _(Optional)_ |
20
+
21
+ **Returns:**
22
+
23
+ (params: any) =&gt; any
24
+
@@ -32,6 +32,8 @@
32
32
  | [formatDateTimestamp(timestamp)](./foundation-utils.formatdatetimestamp.md) | Formats \[DATE\] UNIX Timestamps (without time) to readable strings |
33
33
  | [formatDateTimeTimestamp(timestamp)](./foundation-utils.formatdatetimetimestamp.md) | Formats \[DATETIME\] UNIX Timestamps (with time) to readable strings |
34
34
  | [formatTimestamp(timestamp, withTime)](./foundation-utils.formattimestamp.md) | Formats \[DATE\|DATETIME\] Unix Timestamps to readable strings |
35
+ | [getDateFormatter(locale, options)](./foundation-utils.getdateformatter.md) | |
36
+ | [getNumberFormatter(format, locale)](./foundation-utils.getnumberformatter.md) | |
35
37
  | [JSONReplacer(key, value)](./foundation-utils.jsonreplacer.md) | JSON replacer function. |
36
38
  | [JSONReviver(key, value)](./foundation-utils.jsonreviver.md) | JSON reviver function. |
37
39
  | [reactive(object, deep)](./foundation-utils.reactive.md) | **_(BETA)_** Converts a plain object to a reactive, observable object. |
@@ -256,9 +256,15 @@ export type FoundationLayoutContainer = {
256
256
  // @public
257
257
  export const GENESIS_SOCKET_URL: string;
258
258
 
259
+ // @public (undocumented)
260
+ export function getDateFormatter(locale?: string, options?: Intl.DateTimeFormatOptions): (params: any) => string;
261
+
259
262
  // @public
260
263
  export const getFontMixin: (family: string, style?: FontStyle, weight?: FontWeight) => string;
261
264
 
265
+ // @public (undocumented)
266
+ export function getNumberFormatter(format: string, locale?: string | null): (params: any) => any;
267
+
262
268
  // @public
263
269
  export let HTTP_CONFIG: string;
264
270
 
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.196.1",
4
+ "version": "14.197.0-FUI-2106.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,21 +27,22 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.196.1",
31
- "@genesislcap/genx": "14.196.1",
32
- "@genesislcap/rollup-builder": "14.196.1",
33
- "@genesislcap/ts-builder": "14.196.1",
34
- "@genesislcap/uvu-playwright-builder": "14.196.1",
35
- "@genesislcap/vite-builder": "14.196.1",
36
- "@genesislcap/webpack-builder": "14.196.1",
30
+ "@genesislcap/foundation-testing": "14.197.0-FUI-2106.1",
31
+ "@genesislcap/genx": "14.197.0-FUI-2106.1",
32
+ "@genesislcap/rollup-builder": "14.197.0-FUI-2106.1",
33
+ "@genesislcap/ts-builder": "14.197.0-FUI-2106.1",
34
+ "@genesislcap/uvu-playwright-builder": "14.197.0-FUI-2106.1",
35
+ "@genesislcap/vite-builder": "14.197.0-FUI-2106.1",
36
+ "@genesislcap/webpack-builder": "14.197.0-FUI-2106.1",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.196.1",
40
+ "@genesislcap/foundation-logger": "14.197.0-FUI-2106.1",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
44
44
  "lossless-json": "^2.0.11",
45
+ "numeral": "2.0.6",
45
46
  "tslib": "^2.3.1",
46
47
  "uuid": "^8.3.2"
47
48
  },
@@ -54,5 +55,5 @@
54
55
  "access": "public"
55
56
  },
56
57
  "customElements": "dist/custom-elements.json",
57
- "gitHead": "bb556c4499cbd190f90c76b1d22f0d29e6b500f7"
58
+ "gitHead": "601729ce35aaf314fc6f856c3669a544f8578107"
58
59
  }