@genesislcap/foundation-utils 14.295.0 → 14.296.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.
@@ -367,6 +367,59 @@
367
367
  }
368
368
  ]
369
369
  },
370
+ {
371
+ "kind": "javascript-module",
372
+ "path": "src/decorators/index.ts",
373
+ "declarations": [],
374
+ "exports": [
375
+ {
376
+ "kind": "js",
377
+ "name": "*",
378
+ "declaration": {
379
+ "name": "*",
380
+ "package": "./renderOnChange"
381
+ }
382
+ }
383
+ ]
384
+ },
385
+ {
386
+ "kind": "javascript-module",
387
+ "path": "src/decorators/renderOnChange.ts",
388
+ "declarations": [
389
+ {
390
+ "kind": "function",
391
+ "name": "renderOnChange",
392
+ "parameters": [
393
+ {
394
+ "name": "target",
395
+ "type": {
396
+ "text": "FASTElement & { render(): void }"
397
+ },
398
+ "description": "The target to define the property change handler on."
399
+ },
400
+ {
401
+ "name": "name",
402
+ "type": {
403
+ "text": "string"
404
+ },
405
+ "description": "The property name."
406
+ }
407
+ ],
408
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
409
+ "privacy": "public"
410
+ }
411
+ ],
412
+ "exports": [
413
+ {
414
+ "kind": "js",
415
+ "name": "renderOnChange",
416
+ "declaration": {
417
+ "name": "renderOnChange",
418
+ "module": "src/decorators/renderOnChange.ts"
419
+ }
420
+ }
421
+ ]
422
+ },
370
423
  {
371
424
  "kind": "javascript-module",
372
425
  "path": "src/design-system/design-system.ts",
@@ -454,7 +507,7 @@
454
507
  },
455
508
  {
456
509
  "kind": "javascript-module",
457
- "path": "src/decorators/index.ts",
510
+ "path": "src/directives/index.ts",
458
511
  "declarations": [],
459
512
  "exports": [
460
513
  {
@@ -462,52 +515,22 @@
462
515
  "name": "*",
463
516
  "declaration": {
464
517
  "name": "*",
465
- "package": "./renderOnChange"
518
+ "package": "./sync"
466
519
  }
467
- }
468
- ]
469
- },
470
- {
471
- "kind": "javascript-module",
472
- "path": "src/decorators/renderOnChange.ts",
473
- "declarations": [
474
- {
475
- "kind": "function",
476
- "name": "renderOnChange",
477
- "parameters": [
478
- {
479
- "name": "target",
480
- "type": {
481
- "text": "FASTElement & { render(): void }"
482
- },
483
- "description": "The target to define the property change handler on."
484
- },
485
- {
486
- "name": "name",
487
- "type": {
488
- "text": "string"
489
- },
490
- "description": "The property name."
491
- }
492
- ],
493
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
494
- "privacy": "public"
495
- }
496
- ],
497
- "exports": [
520
+ },
498
521
  {
499
522
  "kind": "js",
500
- "name": "renderOnChange",
523
+ "name": "*",
501
524
  "declaration": {
502
- "name": "renderOnChange",
503
- "module": "src/decorators/renderOnChange.ts"
525
+ "name": "*",
526
+ "package": "./when-else"
504
527
  }
505
528
  }
506
529
  ]
507
530
  },
508
531
  {
509
532
  "kind": "javascript-module",
510
- "path": "src/directives/index.ts",
533
+ "path": "src/encoding/index.ts",
511
534
  "declarations": [],
512
535
  "exports": [
513
536
  {
@@ -515,15 +538,7 @@
515
538
  "name": "*",
516
539
  "declaration": {
517
540
  "name": "*",
518
- "package": "./sync"
519
- }
520
- },
521
- {
522
- "kind": "js",
523
- "name": "*",
524
- "declaration": {
525
- "name": "*",
526
- "package": "./when-else"
541
+ "package": "./base64"
527
542
  }
528
543
  }
529
544
  ]
@@ -986,21 +1001,6 @@
986
1001
  }
987
1002
  ]
988
1003
  },
989
- {
990
- "kind": "javascript-module",
991
- "path": "src/encoding/index.ts",
992
- "declarations": [],
993
- "exports": [
994
- {
995
- "kind": "js",
996
- "name": "*",
997
- "declaration": {
998
- "name": "*",
999
- "package": "./base64"
1000
- }
1001
- }
1002
- ]
1003
- },
1004
1004
  {
1005
1005
  "kind": "javascript-module",
1006
1006
  "path": "src/error/errorMap.ts",
@@ -1242,6 +1242,25 @@
1242
1242
  "description": "Formats [DATETIME] UNIX Timestamps (with time) to readable strings",
1243
1243
  "privacy": "public"
1244
1244
  },
1245
+ {
1246
+ "kind": "function",
1247
+ "name": "formatDateTimeTimestampWithMilliseconds",
1248
+ "return": {
1249
+ "type": {
1250
+ "text": "string"
1251
+ }
1252
+ },
1253
+ "parameters": [
1254
+ {
1255
+ "name": "timestamp",
1256
+ "type": {
1257
+ "text": "number"
1258
+ }
1259
+ }
1260
+ ],
1261
+ "description": "Formats [DATETIME] UNIX Timestamps (with time and milliseconds) to readable strings",
1262
+ "privacy": "public"
1263
+ },
1245
1264
  {
1246
1265
  "kind": "function",
1247
1266
  "name": "formatTimestamp",
@@ -1308,6 +1327,14 @@
1308
1327
  "module": "src/formatters/datetime.ts"
1309
1328
  }
1310
1329
  },
1330
+ {
1331
+ "kind": "js",
1332
+ "name": "formatDateTimeTimestampWithMilliseconds",
1333
+ "declaration": {
1334
+ "name": "formatDateTimeTimestampWithMilliseconds",
1335
+ "module": "src/formatters/datetime.ts"
1336
+ }
1337
+ },
1311
1338
  {
1312
1339
  "kind": "js",
1313
1340
  "name": "formatTimestamp",
@@ -8,6 +8,11 @@ export declare function formatDateTimestamp(timestamp: number): string;
8
8
  * @public
9
9
  */
10
10
  export declare function formatDateTimeTimestamp(timestamp: number): string;
11
+ /**
12
+ * Formats [DATETIME] UNIX Timestamps (with time and milliseconds) to readable strings
13
+ * @public
14
+ */
15
+ export declare function formatDateTimeTimestampWithMilliseconds(timestamp: number): string;
11
16
  /**
12
17
  * Formats [DATE|DATETIME] Unix Timestamps to readable strings
13
18
  * @public
@@ -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;AASD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,GAAE,MAAgB,EACxB,OAAO,GAAE,IAAI,CAAC,qBAA0C,YAExC,GAAG,YAKpB"}
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;AAGD;;;GAGG;AACH,wBAAgB,uCAAuC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAGjF;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"}
@@ -18,6 +18,16 @@ export function formatDateTimeTimestamp(timestamp) {
18
18
  return null;
19
19
  return new Date(timestamp).toISOString().slice(0, isoDateTimeSliceEnd).replace('T', ' ');
20
20
  }
21
+ const isoDateTimeWithMsSliceEnd = 23;
22
+ /**
23
+ * Formats [DATETIME] UNIX Timestamps (with time and milliseconds) to readable strings
24
+ * @public
25
+ */
26
+ export function formatDateTimeTimestampWithMilliseconds(timestamp) {
27
+ if (!timestamp || isNaN(timestamp))
28
+ return null;
29
+ return new Date(timestamp).toISOString().slice(0, isoDateTimeWithMsSliceEnd).replace('T', ' ');
30
+ }
21
31
  /**
22
32
  * Formats [DATE|DATETIME] Unix Timestamps to readable strings
23
33
  * @public
@@ -3536,6 +3536,51 @@
3536
3536
  ],
3537
3537
  "name": "formatDateTimeTimestamp"
3538
3538
  },
3539
+ {
3540
+ "kind": "Function",
3541
+ "canonicalReference": "@genesislcap/foundation-utils!formatDateTimeTimestampWithMilliseconds:function(1)",
3542
+ "docComment": "/**\n * Formats [DATETIME] UNIX Timestamps (with time and milliseconds) to readable strings\n *\n * @public\n */\n",
3543
+ "excerptTokens": [
3544
+ {
3545
+ "kind": "Content",
3546
+ "text": "export declare function formatDateTimeTimestampWithMilliseconds(timestamp: "
3547
+ },
3548
+ {
3549
+ "kind": "Content",
3550
+ "text": "number"
3551
+ },
3552
+ {
3553
+ "kind": "Content",
3554
+ "text": "): "
3555
+ },
3556
+ {
3557
+ "kind": "Content",
3558
+ "text": "string"
3559
+ },
3560
+ {
3561
+ "kind": "Content",
3562
+ "text": ";"
3563
+ }
3564
+ ],
3565
+ "fileUrlPath": "src/formatters/datetime.ts",
3566
+ "returnTypeTokenRange": {
3567
+ "startIndex": 3,
3568
+ "endIndex": 4
3569
+ },
3570
+ "releaseTag": "Public",
3571
+ "overloadIndex": 1,
3572
+ "parameters": [
3573
+ {
3574
+ "parameterName": "timestamp",
3575
+ "parameterTypeTokenRange": {
3576
+ "startIndex": 1,
3577
+ "endIndex": 2
3578
+ },
3579
+ "isOptional": false
3580
+ }
3581
+ ],
3582
+ "name": "formatDateTimeTimestampWithMilliseconds"
3583
+ },
3539
3584
  {
3540
3585
  "kind": "Function",
3541
3586
  "canonicalReference": "@genesislcap/foundation-utils!formatTimestamp:function(1)",
@@ -493,6 +493,12 @@ export declare function formatDateTimestamp(timestamp: number): string;
493
493
  */
494
494
  export declare function formatDateTimeTimestamp(timestamp: number): string;
495
495
 
496
+ /**
497
+ * Formats [DATETIME] UNIX Timestamps (with time and milliseconds) to readable strings
498
+ * @public
499
+ */
500
+ export declare function formatDateTimeTimestampWithMilliseconds(timestamp: number): string;
501
+
496
502
  /**
497
503
  * Formats [DATE|DATETIME] Unix Timestamps to readable strings
498
504
  * @public
@@ -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; [formatDateTimeTimestampWithMilliseconds](./foundation-utils.formatdatetimetimestampwithmilliseconds.md)
4
+
5
+ ## formatDateTimeTimestampWithMilliseconds() function
6
+
7
+ Formats \[DATETIME\] UNIX Timestamps (with time and milliseconds) to readable strings
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare function formatDateTimeTimestampWithMilliseconds(timestamp: number): string;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | timestamp | number | |
20
+
21
+ **Returns:**
22
+
23
+ string
24
+
@@ -31,6 +31,7 @@
31
31
  | [customNumberParser(value)](./foundation-utils.customnumberparser.md) | A Default Number Parser for deserializing objects. |
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
+ | [formatDateTimeTimestampWithMilliseconds(timestamp)](./foundation-utils.formatdatetimetimestampwithmilliseconds.md) | Formats \[DATETIME\] UNIX Timestamps (with time and milliseconds) to readable strings |
34
35
  | [formatTimestamp(timestamp, withTime)](./foundation-utils.formattimestamp.md) | Formats \[DATE\|DATETIME\] Unix Timestamps to readable strings |
35
36
  | [getCurrentDesignSystemPrefix(element, fallbackPrefix)](./foundation-utils.getcurrentdesignsystemprefix.md) | Get the current design system prefix by checking available providers. If no provider is found, falls back to the provided prefix. |
36
37
  | [getDateFormatter(locale, options)](./foundation-utils.getdateformatter.md) | |
@@ -269,6 +269,9 @@ export function formatDateTimestamp(timestamp: number): string;
269
269
  // @public
270
270
  export function formatDateTimeTimestamp(timestamp: number): string;
271
271
 
272
+ // @public
273
+ export function formatDateTimeTimestampWithMilliseconds(timestamp: number): string;
274
+
272
275
  // @public
273
276
  export function formatTimestamp(timestamp: number, withTime: boolean): string;
274
277
 
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.295.0",
4
+ "version": "14.296.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,19 +27,19 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.295.0",
31
- "@genesislcap/genx": "14.295.0",
32
- "@genesislcap/rollup-builder": "14.295.0",
33
- "@genesislcap/ts-builder": "14.295.0",
34
- "@genesislcap/uvu-playwright-builder": "14.295.0",
35
- "@genesislcap/vite-builder": "14.295.0",
36
- "@genesislcap/webpack-builder": "14.295.0",
30
+ "@genesislcap/foundation-testing": "14.296.0",
31
+ "@genesislcap/genx": "14.296.0",
32
+ "@genesislcap/rollup-builder": "14.296.0",
33
+ "@genesislcap/ts-builder": "14.296.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.296.0",
35
+ "@genesislcap/vite-builder": "14.296.0",
36
+ "@genesislcap/webpack-builder": "14.296.0",
37
37
  "@types/json-schema": "^7.0.11",
38
38
  "rimraf": "^5.0.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "@genesislcap/expression-builder": "14.258.1",
42
- "@genesislcap/foundation-logger": "14.295.0",
42
+ "@genesislcap/foundation-logger": "14.296.0",
43
43
  "@microsoft/fast-components": "2.30.6",
44
44
  "@microsoft/fast-element": "1.14.0",
45
45
  "@microsoft/fast-foundation": "2.49.6",
@@ -57,5 +57,5 @@
57
57
  "access": "public"
58
58
  },
59
59
  "customElements": "dist/custom-elements.json",
60
- "gitHead": "2fbc580036b886f22f2da3803ce33672202f3214"
60
+ "gitHead": "b39d43917f83e982be25f04961346d802691fd7d"
61
61
  }