@skyux/autonumeric 11.33.0 → 11.35.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.
- package/documentation.json +117 -301
- package/fesm2022/skyux-autonumeric.mjs.map +1 -1
- package/package.json +1 -1
package/documentation.json
CHANGED
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
],
|
|
30
30
|
"sources": [
|
|
31
31
|
{
|
|
32
|
-
"fileName": "autonumeric.module.ts",
|
|
32
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.module.ts",
|
|
33
33
|
"line": 11,
|
|
34
34
|
"character": 13,
|
|
35
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
35
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.module.ts#L11"
|
|
36
36
|
}
|
|
37
37
|
],
|
|
38
38
|
"decorators": [
|
|
@@ -69,10 +69,10 @@
|
|
|
69
69
|
},
|
|
70
70
|
"sources": [
|
|
71
71
|
{
|
|
72
|
-
"fileName": "autonumeric-options-provider.ts",
|
|
72
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options-provider.ts",
|
|
73
73
|
"line": 17,
|
|
74
74
|
"character": 9,
|
|
75
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
75
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options-provider.ts#L17"
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
"signatures": [
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
},
|
|
101
101
|
"sources": [
|
|
102
102
|
{
|
|
103
|
-
"fileName": "autonumeric-options-provider.ts",
|
|
103
|
+
"fileName": "lib/modules/autonumeric/autonumeric-options-provider.ts",
|
|
104
104
|
"line": 17,
|
|
105
|
-
"character":
|
|
106
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
105
|
+
"character": 2,
|
|
106
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options-provider.ts#L17"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
"type": {
|
|
@@ -133,10 +133,10 @@
|
|
|
133
133
|
],
|
|
134
134
|
"sources": [
|
|
135
135
|
{
|
|
136
|
-
"fileName": "autonumeric-options-provider.ts",
|
|
136
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options-provider.ts",
|
|
137
137
|
"line": 12,
|
|
138
138
|
"character": 13,
|
|
139
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
139
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options-provider.ts#L12"
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
142
|
"decorators": [
|
|
@@ -171,10 +171,10 @@
|
|
|
171
171
|
"flags": {},
|
|
172
172
|
"sources": [
|
|
173
173
|
{
|
|
174
|
-
"fileName": "autonumeric.directive.ts",
|
|
174
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
175
175
|
"line": 79,
|
|
176
176
|
"character": 2,
|
|
177
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
177
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L79"
|
|
178
178
|
}
|
|
179
179
|
],
|
|
180
180
|
"signatures": [
|
|
@@ -186,10 +186,10 @@
|
|
|
186
186
|
"flags": {},
|
|
187
187
|
"sources": [
|
|
188
188
|
{
|
|
189
|
-
"fileName": "autonumeric.directive.ts",
|
|
189
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
190
190
|
"line": 79,
|
|
191
191
|
"character": 2,
|
|
192
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
192
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L79"
|
|
193
193
|
}
|
|
194
194
|
],
|
|
195
195
|
"parameters": [
|
|
@@ -280,10 +280,10 @@
|
|
|
280
280
|
},
|
|
281
281
|
"sources": [
|
|
282
282
|
{
|
|
283
|
-
"fileName": "autonumeric.directive.ts",
|
|
283
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
284
284
|
"line": 55,
|
|
285
285
|
"character": 13,
|
|
286
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
286
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L55"
|
|
287
287
|
}
|
|
288
288
|
],
|
|
289
289
|
"setSignature": {
|
|
@@ -310,10 +310,10 @@
|
|
|
310
310
|
},
|
|
311
311
|
"sources": [
|
|
312
312
|
{
|
|
313
|
-
"fileName": "autonumeric.directive.ts",
|
|
314
|
-
"line":
|
|
315
|
-
"character":
|
|
316
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
313
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
314
|
+
"line": 54,
|
|
315
|
+
"character": 2,
|
|
316
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L54"
|
|
317
317
|
}
|
|
318
318
|
],
|
|
319
319
|
"parameters": [
|
|
@@ -352,10 +352,10 @@
|
|
|
352
352
|
},
|
|
353
353
|
"sources": [
|
|
354
354
|
{
|
|
355
|
-
"fileName": "autonumeric.directive.ts",
|
|
355
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
356
356
|
"line": 120,
|
|
357
357
|
"character": 9,
|
|
358
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
358
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L120"
|
|
359
359
|
}
|
|
360
360
|
],
|
|
361
361
|
"signatures": [
|
|
@@ -365,20 +365,12 @@
|
|
|
365
365
|
"variant": "signature",
|
|
366
366
|
"kind": 4096,
|
|
367
367
|
"flags": {},
|
|
368
|
-
"comment": {
|
|
369
|
-
"summary": [
|
|
370
|
-
{
|
|
371
|
-
"kind": "text",
|
|
372
|
-
"text": "A callback method that performs custom clean-up, invoked immediately\nbefore a directive, pipe, or service instance is destroyed."
|
|
373
|
-
}
|
|
374
|
-
]
|
|
375
|
-
},
|
|
376
368
|
"sources": [
|
|
377
369
|
{
|
|
378
|
-
"fileName": "autonumeric.directive.ts",
|
|
370
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
379
371
|
"line": 120,
|
|
380
|
-
"character":
|
|
381
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
372
|
+
"character": 2,
|
|
373
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L120"
|
|
382
374
|
}
|
|
383
375
|
],
|
|
384
376
|
"type": {
|
|
@@ -409,10 +401,10 @@
|
|
|
409
401
|
},
|
|
410
402
|
"sources": [
|
|
411
403
|
{
|
|
412
|
-
"fileName": "autonumeric.directive.ts",
|
|
404
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
413
405
|
"line": 93,
|
|
414
406
|
"character": 9,
|
|
415
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
407
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L93"
|
|
416
408
|
}
|
|
417
409
|
],
|
|
418
410
|
"signatures": [
|
|
@@ -422,20 +414,12 @@
|
|
|
422
414
|
"variant": "signature",
|
|
423
415
|
"kind": 4096,
|
|
424
416
|
"flags": {},
|
|
425
|
-
"comment": {
|
|
426
|
-
"summary": [
|
|
427
|
-
{
|
|
428
|
-
"kind": "text",
|
|
429
|
-
"text": "A callback method that is invoked immediately after the\ndefault change detector has checked the directive's\ndata-bound properties for the first time,\nand before any of the view or content children have been checked.\nIt is invoked only once when the directive is instantiated."
|
|
430
|
-
}
|
|
431
|
-
]
|
|
432
|
-
},
|
|
433
417
|
"sources": [
|
|
434
418
|
{
|
|
435
|
-
"fileName": "autonumeric.directive.ts",
|
|
419
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
436
420
|
"line": 93,
|
|
437
|
-
"character":
|
|
438
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
421
|
+
"character": 2,
|
|
422
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L93"
|
|
439
423
|
}
|
|
440
424
|
],
|
|
441
425
|
"type": {
|
|
@@ -466,10 +450,10 @@
|
|
|
466
450
|
},
|
|
467
451
|
"sources": [
|
|
468
452
|
{
|
|
469
|
-
"fileName": "autonumeric.directive.ts",
|
|
453
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
470
454
|
"line": 189,
|
|
471
455
|
"character": 9,
|
|
472
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
456
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L189"
|
|
473
457
|
}
|
|
474
458
|
],
|
|
475
459
|
"signatures": [
|
|
@@ -481,10 +465,10 @@
|
|
|
481
465
|
"flags": {},
|
|
482
466
|
"sources": [
|
|
483
467
|
{
|
|
484
|
-
"fileName": "autonumeric.directive.ts",
|
|
485
|
-
"line":
|
|
486
|
-
"character":
|
|
487
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
468
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
469
|
+
"line": 188,
|
|
470
|
+
"character": 2,
|
|
471
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L188"
|
|
488
472
|
}
|
|
489
473
|
],
|
|
490
474
|
"type": {
|
|
@@ -505,10 +489,10 @@
|
|
|
505
489
|
},
|
|
506
490
|
"sources": [
|
|
507
491
|
{
|
|
508
|
-
"fileName": "autonumeric.directive.ts",
|
|
492
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
509
493
|
"line": 180,
|
|
510
494
|
"character": 9,
|
|
511
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
495
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L180"
|
|
512
496
|
}
|
|
513
497
|
],
|
|
514
498
|
"signatures": [
|
|
@@ -518,55 +502,12 @@
|
|
|
518
502
|
"variant": "signature",
|
|
519
503
|
"kind": 4096,
|
|
520
504
|
"flags": {},
|
|
521
|
-
"comment": {
|
|
522
|
-
"summary": [],
|
|
523
|
-
"blockTags": [
|
|
524
|
-
{
|
|
525
|
-
"tag": "@description",
|
|
526
|
-
"content": [
|
|
527
|
-
{
|
|
528
|
-
"kind": "text",
|
|
529
|
-
"text": "Registers a callback function that is called when the control's value\nchanges in the UI.\n\nThis method is called by the forms API on initialization to update the form\nmodel when values propagate from the view to the model.\n\nWhen implementing the "
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
"kind": "code",
|
|
533
|
-
"text": "`registerOnChange`"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"kind": "text",
|
|
537
|
-
"text": " method in your own value accessor,\nsave the given function so your class calls it at the appropriate time."
|
|
538
|
-
}
|
|
539
|
-
]
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
"tag": "@usageNotes",
|
|
543
|
-
"content": [
|
|
544
|
-
{
|
|
545
|
-
"kind": "text",
|
|
546
|
-
"text": "### Store the change function\n\nThe following example stores the provided function as an internal method.\n\n"
|
|
547
|
-
},
|
|
548
|
-
{
|
|
549
|
-
"kind": "code",
|
|
550
|
-
"text": "```ts\nregisterOnChange(fn: (_: any) => void): void {\n this._onChange = fn;\n}\n```"
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
"kind": "text",
|
|
554
|
-
"text": "\n\nWhen the value changes in the UI, call the registered\nfunction to allow the forms API to update itself:\n\n"
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
"kind": "code",
|
|
558
|
-
"text": "```ts\nhost: {\n '(change)': '_onChange($event.target.value)'\n}\n```"
|
|
559
|
-
}
|
|
560
|
-
]
|
|
561
|
-
}
|
|
562
|
-
]
|
|
563
|
-
},
|
|
564
505
|
"sources": [
|
|
565
506
|
{
|
|
566
|
-
"fileName": "autonumeric.directive.ts",
|
|
507
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
567
508
|
"line": 180,
|
|
568
|
-
"character":
|
|
569
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
509
|
+
"character": 2,
|
|
510
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L180"
|
|
570
511
|
}
|
|
571
512
|
],
|
|
572
513
|
"parameters": [
|
|
@@ -576,14 +517,6 @@
|
|
|
576
517
|
"variant": "param",
|
|
577
518
|
"kind": 32768,
|
|
578
519
|
"flags": {},
|
|
579
|
-
"comment": {
|
|
580
|
-
"summary": [
|
|
581
|
-
{
|
|
582
|
-
"kind": "text",
|
|
583
|
-
"text": "The callback function to register"
|
|
584
|
-
}
|
|
585
|
-
]
|
|
586
|
-
},
|
|
587
520
|
"type": {
|
|
588
521
|
"type": "reflection",
|
|
589
522
|
"declaration": {
|
|
@@ -594,10 +527,10 @@
|
|
|
594
527
|
"flags": {},
|
|
595
528
|
"sources": [
|
|
596
529
|
{
|
|
597
|
-
"fileName": "autonumeric.directive.ts",
|
|
530
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
598
531
|
"line": 180,
|
|
599
532
|
"character": 30,
|
|
600
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
533
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L180"
|
|
601
534
|
}
|
|
602
535
|
],
|
|
603
536
|
"signatures": [
|
|
@@ -609,10 +542,10 @@
|
|
|
609
542
|
"flags": {},
|
|
610
543
|
"sources": [
|
|
611
544
|
{
|
|
612
|
-
"fileName": "autonumeric.directive.ts",
|
|
545
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
613
546
|
"line": 180,
|
|
614
547
|
"character": 30,
|
|
615
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
548
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L180"
|
|
616
549
|
}
|
|
617
550
|
],
|
|
618
551
|
"parameters": [
|
|
@@ -666,10 +599,10 @@
|
|
|
666
599
|
},
|
|
667
600
|
"sources": [
|
|
668
601
|
{
|
|
669
|
-
"fileName": "autonumeric.directive.ts",
|
|
602
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
670
603
|
"line": 184,
|
|
671
604
|
"character": 9,
|
|
672
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
605
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L184"
|
|
673
606
|
}
|
|
674
607
|
],
|
|
675
608
|
"signatures": [
|
|
@@ -679,55 +612,12 @@
|
|
|
679
612
|
"variant": "signature",
|
|
680
613
|
"kind": 4096,
|
|
681
614
|
"flags": {},
|
|
682
|
-
"comment": {
|
|
683
|
-
"summary": [],
|
|
684
|
-
"blockTags": [
|
|
685
|
-
{
|
|
686
|
-
"tag": "@description",
|
|
687
|
-
"content": [
|
|
688
|
-
{
|
|
689
|
-
"kind": "text",
|
|
690
|
-
"text": "Registers a callback function that is called by the forms API on initialization\nto update the form model on blur.\n\nWhen implementing "
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
"kind": "code",
|
|
694
|
-
"text": "`registerOnTouched`"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
"kind": "text",
|
|
698
|
-
"text": " in your own value accessor, save the given\nfunction so your class calls it when the control should be considered\nblurred or \"touched\"."
|
|
699
|
-
}
|
|
700
|
-
]
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
"tag": "@usageNotes",
|
|
704
|
-
"content": [
|
|
705
|
-
{
|
|
706
|
-
"kind": "text",
|
|
707
|
-
"text": "### Store the callback function\n\nThe following example stores the provided function as an internal method.\n\n"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
"kind": "code",
|
|
711
|
-
"text": "```ts\nregisterOnTouched(fn: any): void {\n this._onTouched = fn;\n}\n```"
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
"kind": "text",
|
|
715
|
-
"text": "\n\nOn blur (or equivalent), your class should call the registered function to allow\nthe forms API to update itself:\n\n"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
"kind": "code",
|
|
719
|
-
"text": "```ts\nhost: {\n '(blur)': '_onTouched()'\n}\n```"
|
|
720
|
-
}
|
|
721
|
-
]
|
|
722
|
-
}
|
|
723
|
-
]
|
|
724
|
-
},
|
|
725
615
|
"sources": [
|
|
726
616
|
{
|
|
727
|
-
"fileName": "autonumeric.directive.ts",
|
|
617
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
728
618
|
"line": 184,
|
|
729
|
-
"character":
|
|
730
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
619
|
+
"character": 2,
|
|
620
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L184"
|
|
731
621
|
}
|
|
732
622
|
],
|
|
733
623
|
"parameters": [
|
|
@@ -737,14 +627,6 @@
|
|
|
737
627
|
"variant": "param",
|
|
738
628
|
"kind": 32768,
|
|
739
629
|
"flags": {},
|
|
740
|
-
"comment": {
|
|
741
|
-
"summary": [
|
|
742
|
-
{
|
|
743
|
-
"kind": "text",
|
|
744
|
-
"text": "The callback function to register"
|
|
745
|
-
}
|
|
746
|
-
]
|
|
747
|
-
},
|
|
748
630
|
"type": {
|
|
749
631
|
"type": "reflection",
|
|
750
632
|
"declaration": {
|
|
@@ -755,10 +637,10 @@
|
|
|
755
637
|
"flags": {},
|
|
756
638
|
"sources": [
|
|
757
639
|
{
|
|
758
|
-
"fileName": "autonumeric.directive.ts",
|
|
640
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
759
641
|
"line": 184,
|
|
760
642
|
"character": 31,
|
|
761
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
643
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L184"
|
|
762
644
|
}
|
|
763
645
|
],
|
|
764
646
|
"signatures": [
|
|
@@ -770,10 +652,10 @@
|
|
|
770
652
|
"flags": {},
|
|
771
653
|
"sources": [
|
|
772
654
|
{
|
|
773
|
-
"fileName": "autonumeric.directive.ts",
|
|
655
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
774
656
|
"line": 184,
|
|
775
657
|
"character": 31,
|
|
776
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
658
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L184"
|
|
777
659
|
}
|
|
778
660
|
],
|
|
779
661
|
"type": {
|
|
@@ -814,10 +696,10 @@
|
|
|
814
696
|
},
|
|
815
697
|
"sources": [
|
|
816
698
|
{
|
|
817
|
-
"fileName": "autonumeric.directive.ts",
|
|
699
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
818
700
|
"line": 129,
|
|
819
701
|
"character": 9,
|
|
820
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
702
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L129"
|
|
821
703
|
}
|
|
822
704
|
],
|
|
823
705
|
"signatures": [
|
|
@@ -837,10 +719,10 @@
|
|
|
837
719
|
},
|
|
838
720
|
"sources": [
|
|
839
721
|
{
|
|
840
|
-
"fileName": "autonumeric.directive.ts",
|
|
722
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
841
723
|
"line": 129,
|
|
842
|
-
"character":
|
|
843
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
724
|
+
"character": 2,
|
|
725
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L129"
|
|
844
726
|
}
|
|
845
727
|
],
|
|
846
728
|
"parameters": [
|
|
@@ -884,10 +766,10 @@
|
|
|
884
766
|
},
|
|
885
767
|
"sources": [
|
|
886
768
|
{
|
|
887
|
-
"fileName": "autonumeric.directive.ts",
|
|
769
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
888
770
|
"line": 160,
|
|
889
771
|
"character": 9,
|
|
890
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
772
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L160"
|
|
891
773
|
}
|
|
892
774
|
],
|
|
893
775
|
"signatures": [
|
|
@@ -897,35 +779,12 @@
|
|
|
897
779
|
"variant": "signature",
|
|
898
780
|
"kind": 4096,
|
|
899
781
|
"flags": {},
|
|
900
|
-
"comment": {
|
|
901
|
-
"summary": [],
|
|
902
|
-
"blockTags": [
|
|
903
|
-
{
|
|
904
|
-
"tag": "@description",
|
|
905
|
-
"content": [
|
|
906
|
-
{
|
|
907
|
-
"kind": "text",
|
|
908
|
-
"text": "Method that performs synchronous validation against the provided control."
|
|
909
|
-
}
|
|
910
|
-
]
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
"tag": "@returns",
|
|
914
|
-
"content": [
|
|
915
|
-
{
|
|
916
|
-
"kind": "text",
|
|
917
|
-
"text": "A map of validation errors if validation fails,\notherwise null."
|
|
918
|
-
}
|
|
919
|
-
]
|
|
920
|
-
}
|
|
921
|
-
]
|
|
922
|
-
},
|
|
923
782
|
"sources": [
|
|
924
783
|
{
|
|
925
|
-
"fileName": "autonumeric.directive.ts",
|
|
784
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
926
785
|
"line": 160,
|
|
927
|
-
"character":
|
|
928
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
786
|
+
"character": 2,
|
|
787
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L160"
|
|
929
788
|
}
|
|
930
789
|
],
|
|
931
790
|
"parameters": [
|
|
@@ -935,14 +794,6 @@
|
|
|
935
794
|
"variant": "param",
|
|
936
795
|
"kind": 32768,
|
|
937
796
|
"flags": {},
|
|
938
|
-
"comment": {
|
|
939
|
-
"summary": [
|
|
940
|
-
{
|
|
941
|
-
"kind": "text",
|
|
942
|
-
"text": "The control to validate against."
|
|
943
|
-
}
|
|
944
|
-
]
|
|
945
|
-
},
|
|
946
797
|
"type": {
|
|
947
798
|
"type": "reference",
|
|
948
799
|
"target": {
|
|
@@ -997,10 +848,10 @@
|
|
|
997
848
|
},
|
|
998
849
|
"sources": [
|
|
999
850
|
{
|
|
1000
|
-
"fileName": "autonumeric.directive.ts",
|
|
851
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
1001
852
|
"line": 137,
|
|
1002
853
|
"character": 9,
|
|
1003
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
854
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L137"
|
|
1004
855
|
}
|
|
1005
856
|
],
|
|
1006
857
|
"signatures": [
|
|
@@ -1010,39 +861,12 @@
|
|
|
1010
861
|
"variant": "signature",
|
|
1011
862
|
"kind": 4096,
|
|
1012
863
|
"flags": {},
|
|
1013
|
-
"comment": {
|
|
1014
|
-
"summary": [],
|
|
1015
|
-
"blockTags": [
|
|
1016
|
-
{
|
|
1017
|
-
"tag": "@description",
|
|
1018
|
-
"content": [
|
|
1019
|
-
{
|
|
1020
|
-
"kind": "text",
|
|
1021
|
-
"text": "Writes a new value to the element.\n\nThis method is called by the forms API to write to the view when programmatic\nchanges from model to view are requested."
|
|
1022
|
-
}
|
|
1023
|
-
]
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
"tag": "@usageNotes",
|
|
1027
|
-
"content": [
|
|
1028
|
-
{
|
|
1029
|
-
"kind": "text",
|
|
1030
|
-
"text": "### Write a value to the element\n\nThe following example writes a value to the native DOM element.\n\n"
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"kind": "code",
|
|
1034
|
-
"text": "```ts\nwriteValue(value: any): void {\n this._renderer.setProperty(this._elementRef.nativeElement, 'value', value);\n}\n```"
|
|
1035
|
-
}
|
|
1036
|
-
]
|
|
1037
|
-
}
|
|
1038
|
-
]
|
|
1039
|
-
},
|
|
1040
864
|
"sources": [
|
|
1041
865
|
{
|
|
1042
|
-
"fileName": "autonumeric.directive.ts",
|
|
866
|
+
"fileName": "lib/modules/autonumeric/autonumeric.directive.ts",
|
|
1043
867
|
"line": 137,
|
|
1044
|
-
"character":
|
|
1045
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
868
|
+
"character": 2,
|
|
869
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L137"
|
|
1046
870
|
}
|
|
1047
871
|
],
|
|
1048
872
|
"parameters": [
|
|
@@ -1106,10 +930,10 @@
|
|
|
1106
930
|
],
|
|
1107
931
|
"sources": [
|
|
1108
932
|
{
|
|
1109
|
-
"fileName": "autonumeric.directive.ts",
|
|
933
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
1110
934
|
"line": 48,
|
|
1111
935
|
"character": 13,
|
|
1112
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
936
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts#L48"
|
|
1113
937
|
}
|
|
1114
938
|
],
|
|
1115
939
|
"implementedTypes": [
|
|
@@ -1163,7 +987,7 @@
|
|
|
1163
987
|
"id": 1,
|
|
1164
988
|
"name": "SkyAutonumericOptions",
|
|
1165
989
|
"variant": "declaration",
|
|
1166
|
-
"kind":
|
|
990
|
+
"kind": 4194304,
|
|
1167
991
|
"flags": {},
|
|
1168
992
|
"comment": {
|
|
1169
993
|
"summary": [
|
|
@@ -1199,10 +1023,10 @@
|
|
|
1199
1023
|
},
|
|
1200
1024
|
"sources": [
|
|
1201
1025
|
{
|
|
1202
|
-
"fileName": "autonumeric-options.ts",
|
|
1026
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options.ts",
|
|
1203
1027
|
"line": 11,
|
|
1204
1028
|
"character": 12,
|
|
1205
|
-
"url": "https://github.com/blackbaud/skyux/blob/
|
|
1029
|
+
"url": "https://github.com/blackbaud/skyux/blob/a6c9105/libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options.ts#L11"
|
|
1206
1030
|
}
|
|
1207
1031
|
],
|
|
1208
1032
|
"type": {
|
|
@@ -1438,14 +1262,6 @@
|
|
|
1438
1262
|
"sourceFileName": "libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts",
|
|
1439
1263
|
"qualifiedName": "SkyAutonumericDirective.onBlur"
|
|
1440
1264
|
}
|
|
1441
|
-
},
|
|
1442
|
-
"files": {
|
|
1443
|
-
"entries": {
|
|
1444
|
-
"1": "libs/components/autonumeric/src/index.ts"
|
|
1445
|
-
},
|
|
1446
|
-
"reflections": {
|
|
1447
|
-
"1": 0
|
|
1448
|
-
}
|
|
1449
1265
|
}
|
|
1450
1266
|
},
|
|
1451
1267
|
"codeExamples": [
|
|
@@ -1509,18 +1325,18 @@
|
|
|
1509
1325
|
"@angular/router": "18.2.13",
|
|
1510
1326
|
"@blackbaud/skyux-design-tokens": "0.0.42",
|
|
1511
1327
|
"@schematics/angular": "18.2.12",
|
|
1512
|
-
"@skyux-sdk/testing": "11.
|
|
1513
|
-
"@skyux/assets": "11.
|
|
1514
|
-
"@skyux/autonumeric": "11.
|
|
1515
|
-
"@skyux/core": "11.
|
|
1516
|
-
"@skyux/forms": "11.
|
|
1517
|
-
"@skyux/help-inline": "11.
|
|
1518
|
-
"@skyux/i18n": "11.
|
|
1519
|
-
"@skyux/icon": "11.
|
|
1328
|
+
"@skyux-sdk/testing": "11.35.0",
|
|
1329
|
+
"@skyux/assets": "11.35.0",
|
|
1330
|
+
"@skyux/autonumeric": "11.35.0",
|
|
1331
|
+
"@skyux/core": "11.35.0",
|
|
1332
|
+
"@skyux/forms": "11.35.0",
|
|
1333
|
+
"@skyux/help-inline": "11.35.0",
|
|
1334
|
+
"@skyux/i18n": "11.35.0",
|
|
1335
|
+
"@skyux/icon": "11.35.0",
|
|
1520
1336
|
"@skyux/icons": "7.10.0",
|
|
1521
|
-
"@skyux/indicators": "11.
|
|
1522
|
-
"@skyux/popovers": "11.
|
|
1523
|
-
"@skyux/theme": "11.
|
|
1337
|
+
"@skyux/indicators": "11.35.0",
|
|
1338
|
+
"@skyux/popovers": "11.35.0",
|
|
1339
|
+
"@skyux/theme": "11.35.0",
|
|
1524
1340
|
"@types/node": "20.14.12",
|
|
1525
1341
|
"autonumeric": "4.10.5",
|
|
1526
1342
|
"axe-core": "4.10.0",
|
|
@@ -1545,18 +1361,18 @@
|
|
|
1545
1361
|
"@angular/router": "18.2.13",
|
|
1546
1362
|
"@blackbaud/skyux-design-tokens": "0.0.42",
|
|
1547
1363
|
"@schematics/angular": "18.2.12",
|
|
1548
|
-
"@skyux-sdk/testing": "11.
|
|
1549
|
-
"@skyux/assets": "11.
|
|
1550
|
-
"@skyux/autonumeric": "11.
|
|
1551
|
-
"@skyux/core": "11.
|
|
1552
|
-
"@skyux/forms": "11.
|
|
1553
|
-
"@skyux/help-inline": "11.
|
|
1554
|
-
"@skyux/i18n": "11.
|
|
1555
|
-
"@skyux/icon": "11.
|
|
1364
|
+
"@skyux-sdk/testing": "11.35.0",
|
|
1365
|
+
"@skyux/assets": "11.35.0",
|
|
1366
|
+
"@skyux/autonumeric": "11.35.0",
|
|
1367
|
+
"@skyux/core": "11.35.0",
|
|
1368
|
+
"@skyux/forms": "11.35.0",
|
|
1369
|
+
"@skyux/help-inline": "11.35.0",
|
|
1370
|
+
"@skyux/i18n": "11.35.0",
|
|
1371
|
+
"@skyux/icon": "11.35.0",
|
|
1556
1372
|
"@skyux/icons": "7.10.0",
|
|
1557
|
-
"@skyux/indicators": "11.
|
|
1558
|
-
"@skyux/popovers": "11.
|
|
1559
|
-
"@skyux/theme": "11.
|
|
1373
|
+
"@skyux/indicators": "11.35.0",
|
|
1374
|
+
"@skyux/popovers": "11.35.0",
|
|
1375
|
+
"@skyux/theme": "11.35.0",
|
|
1560
1376
|
"@types/node": "20.14.12",
|
|
1561
1377
|
"autonumeric": "4.10.5",
|
|
1562
1378
|
"axe-core": "4.10.0",
|
|
@@ -1581,18 +1397,18 @@
|
|
|
1581
1397
|
"@angular/router": "18.2.13",
|
|
1582
1398
|
"@blackbaud/skyux-design-tokens": "0.0.42",
|
|
1583
1399
|
"@schematics/angular": "18.2.12",
|
|
1584
|
-
"@skyux-sdk/testing": "11.
|
|
1585
|
-
"@skyux/assets": "11.
|
|
1586
|
-
"@skyux/autonumeric": "11.
|
|
1587
|
-
"@skyux/core": "11.
|
|
1588
|
-
"@skyux/forms": "11.
|
|
1589
|
-
"@skyux/help-inline": "11.
|
|
1590
|
-
"@skyux/i18n": "11.
|
|
1591
|
-
"@skyux/icon": "11.
|
|
1400
|
+
"@skyux-sdk/testing": "11.35.0",
|
|
1401
|
+
"@skyux/assets": "11.35.0",
|
|
1402
|
+
"@skyux/autonumeric": "11.35.0",
|
|
1403
|
+
"@skyux/core": "11.35.0",
|
|
1404
|
+
"@skyux/forms": "11.35.0",
|
|
1405
|
+
"@skyux/help-inline": "11.35.0",
|
|
1406
|
+
"@skyux/i18n": "11.35.0",
|
|
1407
|
+
"@skyux/icon": "11.35.0",
|
|
1592
1408
|
"@skyux/icons": "7.10.0",
|
|
1593
|
-
"@skyux/indicators": "11.
|
|
1594
|
-
"@skyux/popovers": "11.
|
|
1595
|
-
"@skyux/theme": "11.
|
|
1409
|
+
"@skyux/indicators": "11.35.0",
|
|
1410
|
+
"@skyux/popovers": "11.35.0",
|
|
1411
|
+
"@skyux/theme": "11.35.0",
|
|
1596
1412
|
"@types/node": "20.14.12",
|
|
1597
1413
|
"autonumeric": "4.10.5",
|
|
1598
1414
|
"axe-core": "4.10.0",
|
|
@@ -1617,18 +1433,18 @@
|
|
|
1617
1433
|
"@angular/router": "18.2.13",
|
|
1618
1434
|
"@blackbaud/skyux-design-tokens": "0.0.42",
|
|
1619
1435
|
"@schematics/angular": "18.2.12",
|
|
1620
|
-
"@skyux-sdk/testing": "11.
|
|
1621
|
-
"@skyux/assets": "11.
|
|
1622
|
-
"@skyux/autonumeric": "11.
|
|
1623
|
-
"@skyux/core": "11.
|
|
1624
|
-
"@skyux/forms": "11.
|
|
1625
|
-
"@skyux/help-inline": "11.
|
|
1626
|
-
"@skyux/i18n": "11.
|
|
1627
|
-
"@skyux/icon": "11.
|
|
1436
|
+
"@skyux-sdk/testing": "11.35.0",
|
|
1437
|
+
"@skyux/assets": "11.35.0",
|
|
1438
|
+
"@skyux/autonumeric": "11.35.0",
|
|
1439
|
+
"@skyux/core": "11.35.0",
|
|
1440
|
+
"@skyux/forms": "11.35.0",
|
|
1441
|
+
"@skyux/help-inline": "11.35.0",
|
|
1442
|
+
"@skyux/i18n": "11.35.0",
|
|
1443
|
+
"@skyux/icon": "11.35.0",
|
|
1628
1444
|
"@skyux/icons": "7.10.0",
|
|
1629
|
-
"@skyux/indicators": "11.
|
|
1630
|
-
"@skyux/popovers": "11.
|
|
1631
|
-
"@skyux/theme": "11.
|
|
1445
|
+
"@skyux/indicators": "11.35.0",
|
|
1446
|
+
"@skyux/popovers": "11.35.0",
|
|
1447
|
+
"@skyux/theme": "11.35.0",
|
|
1632
1448
|
"@types/node": "20.14.12",
|
|
1633
1449
|
"autonumeric": "4.10.5",
|
|
1634
1450
|
"axe-core": "4.10.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-autonumeric.mjs","sources":["../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options-provider.ts","../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts","../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.module.ts","../../../../../libs/components/autonumeric/src/skyux-autonumeric.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { SkyAutonumericOptions } from './autonumeric-options';\n\n/**\n * Provides options to the underlying [AutoNumeric library](https://github.com/autoNumeric/autoNumeric).\n * This can set global options on multiple input fields.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyAutonumericOptionsProvider {\n /**\n * The value for a settings object to pass to the AutoNumeric library.\n * This overrides any default options specified by the `skyAutonumeric` attribute.\n */\n public getConfig(): SkyAutonumericOptions {\n return {};\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnDestroy,\n OnInit,\n Renderer2,\n forwardRef,\n} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\n\nimport AutoNumeric from 'autonumeric';\nimport { Subject, fromEvent } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { SkyAutonumericOptions } from './autonumeric-options';\nimport { SkyAutonumericOptionsProvider } from './autonumeric-options-provider';\n\nconst SKY_AUTONUMERIC_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SkyAutonumericDirective),\n multi: true,\n};\n\nconst SKY_AUTONUMERIC_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => SkyAutonumericDirective),\n multi: true,\n};\n\n/**\n * Wraps the [autoNumeric utility](https://github.com/autoNumeric/autoNumeric) to format\n * any type of number, including currency.\n */\n@Directive({\n selector: 'input[skyAutonumeric]',\n providers: [SKY_AUTONUMERIC_VALUE_ACCESSOR, SKY_AUTONUMERIC_VALIDATOR],\n})\nexport class SkyAutonumericDirective\n implements OnInit, OnDestroy, ControlValueAccessor, Validator\n{\n /**\n * Assigns the name of a property from `SkyAutonumericOptionsProvider`.\n */\n @Input()\n public set skyAutonumeric(value: SkyAutonumericOptions | undefined) {\n this.#autonumericOptions = this.#mergeOptions(value);\n this.#updateAutonumericInstance();\n }\n\n /**\n * @internal\n */\n @Input()\n public skyAutonumericFormChangesUnformatted: boolean | undefined = false;\n\n #autonumericInstance: AutoNumeric;\n #autonumericOptions: SkyAutonumericOptions | undefined;\n #control: AbstractControl | undefined;\n #isFirstChange = true;\n #value: number | undefined;\n\n #ngUnsubscribe = new Subject<void>();\n\n #elementRef: ElementRef;\n #globalConfig: SkyAutonumericOptionsProvider;\n #renderer: Renderer2;\n #changeDetector: ChangeDetectorRef;\n\n constructor(\n elementRef: ElementRef,\n globalConfig: SkyAutonumericOptionsProvider,\n renderer: Renderer2,\n changeDetector: ChangeDetectorRef,\n ) {\n this.#elementRef = elementRef;\n this.#globalConfig = globalConfig;\n this.#renderer = renderer;\n this.#changeDetector = changeDetector;\n\n this.#autonumericInstance = new AutoNumeric(elementRef.nativeElement);\n }\n\n public ngOnInit(): void {\n // Ensure that we set the global config even if no local config has been given.\n if (!this.#autonumericOptions) {\n this.#autonumericOptions = this.#globalConfig.getConfig();\n }\n this.#updateAutonumericInstance();\n\n fromEvent(this.#elementRef.nativeElement, 'input')\n .pipe(takeUntil(this.#ngUnsubscribe))\n .subscribe(() => {\n const numericValue: number | undefined = this.#getNumericValue();\n\n /* istanbul ignore else */\n if (this.#value !== numericValue) {\n this.#value = numericValue;\n this.#onChange(numericValue);\n }\n\n /* istanbul ignore else */\n if (this.#control && !this.#control.dirty) {\n this.#control.markAsDirty();\n }\n\n this.#changeDetector.markForCheck();\n });\n }\n\n public ngOnDestroy(): void {\n this.#autonumericInstance.remove();\n this.#ngUnsubscribe.next();\n this.#ngUnsubscribe.complete();\n }\n\n /**\n * Implemented as part of ControlValueAccessor.\n */\n public setDisabledState(value: boolean): void {\n this.#renderer.setProperty(\n this.#elementRef.nativeElement,\n 'disabled',\n value,\n );\n }\n\n public writeValue(value: number | undefined): void {\n if (this.#value !== value) {\n this.#value = value;\n this.#onChange(value);\n\n // Mark the control as \"pristine\" if it is initialized with a value.\n if (this.#isFirstChange && this.#control && this.#value !== null) {\n this.#isFirstChange = false;\n this.#control.markAsPristine();\n }\n }\n\n if (typeof value === 'number') {\n if (this.skyAutonumericFormChangesUnformatted) {\n this.#autonumericInstance.setUnformatted(value);\n } else {\n this.#autonumericInstance.set(value);\n }\n } else {\n this.#autonumericInstance.clear();\n }\n }\n\n public validate(control: AbstractControl): ValidationErrors | null {\n const noErrors = null;\n\n if (!this.#control) {\n this.#control = control;\n }\n\n if (control.value === null || control.value === undefined) {\n return noErrors;\n }\n\n if (typeof control.value !== 'number') {\n return {\n notTypeOfNumber: { value: control.value },\n };\n }\n\n return noErrors;\n }\n\n public registerOnChange(fn: (value: number | undefined) => void): void {\n this.#onChange = fn;\n }\n\n public registerOnTouched(fn: () => void): void {\n this.#onTouched = fn;\n }\n\n @HostListener('blur')\n public onBlur(): void {\n this.#onTouched();\n }\n\n #getNumericValue(): number | undefined {\n const inputValue = this.#getInputValue();\n const numericValue = this.#autonumericInstance.getNumber();\n return inputValue &&\n !this.#isInputValueTheCurrencySymbol(inputValue) &&\n typeof numericValue === 'number'\n ? numericValue\n : undefined;\n }\n\n /**\n * Due to AutoNumeric's hover logic - when AutoNumeric has a currency symbol, the value\n * that we get back on empty fields will be the currency symbol.\n * The following logic ensures that we don't accidentally set\n * a form value when the only input was the programmatically-added currency symbol.\n */\n #isInputValueTheCurrencySymbol(inputValue: string): boolean {\n /* istanbul ignore next */\n const currencySymbol = (\n (this.#autonumericOptions as AutoNumeric.Options)?.currencySymbol ?? ''\n ).trim();\n return !!currencySymbol && inputValue === currencySymbol;\n }\n\n #getInputValue(): string {\n return this.#elementRef.nativeElement.value;\n }\n\n #updateAutonumericInstance(): void {\n this.#autonumericInstance.update(\n this.#autonumericOptions as AutoNumeric.Options,\n );\n }\n\n #mergeOptions(\n value: SkyAutonumericOptions | undefined,\n ): SkyAutonumericOptions {\n const globalOptions: SkyAutonumericOptions = this.#globalConfig.getConfig();\n\n let newOptions: SkyAutonumericOptions | undefined;\n if (typeof value === 'string') {\n const predefinedOptions = AutoNumeric.getPredefinedOptions();\n newOptions = predefinedOptions[\n value as keyof AutoNumeric.Options\n ] as AutoNumeric.Options;\n } else {\n newOptions = value;\n }\n\n return Object.assign({}, globalOptions, newOptions);\n }\n\n // istanbul ignore next\n // eslint-disable-next-line @typescript-eslint/no-empty-function , @typescript-eslint/no-unused-vars\n #onChange = (_: number | undefined) => {};\n // istanbul ignore next\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n #onTouched = () => {};\n}\n","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericDirective } from './autonumeric.directive';\n\n@NgModule({\n declarations: [SkyAutonumericDirective],\n imports: [FormsModule, ReactiveFormsModule],\n exports: [SkyAutonumericDirective],\n})\nexport class SkyAutonumericModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.SkyAutonumericOptionsProvider"],"mappings":";;;;;;;AAIA;;;AAGG;MAIU,6BAA6B,CAAA;AACxC;;;AAGG;IACI,SAAS,GAAA;AACd,QAAA,OAAO,EAAE;;+GANA,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cAF5B,MAAM,EAAA,CAAA,CAAA;;4FAEP,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;ACiBD,MAAM,8BAA8B,GAAG;AACrC,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,uBAAuB,CAAC;AACtD,IAAA,KAAK,EAAE,IAAI;CACZ;AAED,MAAM,yBAAyB,GAAG;AAChC,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,WAAW,EAAE,UAAU,CAAC,MAAM,uBAAuB,CAAC;AACtD,IAAA,KAAK,EAAE,IAAI;CACZ;AAED;;;AAGG;MAKU,uBAAuB,CAAA;AAGlC;;AAEG;IACH,IACW,cAAc,CAAC,KAAwC,EAAA;QAChE,IAAI,CAAC,mBAAmB,G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.mjs","sources":["../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options-provider.ts","../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.directive.ts","../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric.module.ts","../../../../../libs/components/autonumeric/src/skyux-autonumeric.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { SkyAutonumericOptions } from './autonumeric-options';\n\n/**\n * Provides options to the underlying [AutoNumeric library](https://github.com/autoNumeric/autoNumeric).\n * This can set global options on multiple input fields.\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class SkyAutonumericOptionsProvider {\n /**\n * The value for a settings object to pass to the AutoNumeric library.\n * This overrides any default options specified by the `skyAutonumeric` attribute.\n */\n public getConfig(): SkyAutonumericOptions {\n return {};\n }\n}\n","import {\n ChangeDetectorRef,\n Directive,\n ElementRef,\n HostListener,\n Input,\n OnDestroy,\n OnInit,\n Renderer2,\n forwardRef,\n} from '@angular/core';\nimport {\n AbstractControl,\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ValidationErrors,\n Validator,\n} from '@angular/forms';\n\nimport AutoNumeric from 'autonumeric';\nimport { Subject, fromEvent } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { SkyAutonumericOptions } from './autonumeric-options';\nimport { SkyAutonumericOptionsProvider } from './autonumeric-options-provider';\n\nconst SKY_AUTONUMERIC_VALUE_ACCESSOR = {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SkyAutonumericDirective),\n multi: true,\n};\n\nconst SKY_AUTONUMERIC_VALIDATOR = {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => SkyAutonumericDirective),\n multi: true,\n};\n\n/**\n * Wraps the [autoNumeric utility](https://github.com/autoNumeric/autoNumeric) to format\n * any type of number, including currency.\n */\n@Directive({\n selector: 'input[skyAutonumeric]',\n providers: [SKY_AUTONUMERIC_VALUE_ACCESSOR, SKY_AUTONUMERIC_VALIDATOR],\n})\nexport class SkyAutonumericDirective\n implements OnInit, OnDestroy, ControlValueAccessor, Validator\n{\n /**\n * Assigns the name of a property from `SkyAutonumericOptionsProvider`.\n */\n @Input()\n public set skyAutonumeric(value: SkyAutonumericOptions | undefined) {\n this.#autonumericOptions = this.#mergeOptions(value);\n this.#updateAutonumericInstance();\n }\n\n /**\n * @internal\n */\n @Input()\n public skyAutonumericFormChangesUnformatted: boolean | undefined = false;\n\n #autonumericInstance: AutoNumeric;\n #autonumericOptions: SkyAutonumericOptions | undefined;\n #control: AbstractControl | undefined;\n #isFirstChange = true;\n #value: number | undefined;\n\n #ngUnsubscribe = new Subject<void>();\n\n #elementRef: ElementRef;\n #globalConfig: SkyAutonumericOptionsProvider;\n #renderer: Renderer2;\n #changeDetector: ChangeDetectorRef;\n\n constructor(\n elementRef: ElementRef,\n globalConfig: SkyAutonumericOptionsProvider,\n renderer: Renderer2,\n changeDetector: ChangeDetectorRef,\n ) {\n this.#elementRef = elementRef;\n this.#globalConfig = globalConfig;\n this.#renderer = renderer;\n this.#changeDetector = changeDetector;\n\n this.#autonumericInstance = new AutoNumeric(elementRef.nativeElement);\n }\n\n public ngOnInit(): void {\n // Ensure that we set the global config even if no local config has been given.\n if (!this.#autonumericOptions) {\n this.#autonumericOptions = this.#globalConfig.getConfig();\n }\n this.#updateAutonumericInstance();\n\n fromEvent(this.#elementRef.nativeElement, 'input')\n .pipe(takeUntil(this.#ngUnsubscribe))\n .subscribe(() => {\n const numericValue: number | undefined = this.#getNumericValue();\n\n /* istanbul ignore else */\n if (this.#value !== numericValue) {\n this.#value = numericValue;\n this.#onChange(numericValue);\n }\n\n /* istanbul ignore else */\n if (this.#control && !this.#control.dirty) {\n this.#control.markAsDirty();\n }\n\n this.#changeDetector.markForCheck();\n });\n }\n\n public ngOnDestroy(): void {\n this.#autonumericInstance.remove();\n this.#ngUnsubscribe.next();\n this.#ngUnsubscribe.complete();\n }\n\n /**\n * Implemented as part of ControlValueAccessor.\n */\n public setDisabledState(value: boolean): void {\n this.#renderer.setProperty(\n this.#elementRef.nativeElement,\n 'disabled',\n value,\n );\n }\n\n public writeValue(value: number | undefined): void {\n if (this.#value !== value) {\n this.#value = value;\n this.#onChange(value);\n\n // Mark the control as \"pristine\" if it is initialized with a value.\n if (this.#isFirstChange && this.#control && this.#value !== null) {\n this.#isFirstChange = false;\n this.#control.markAsPristine();\n }\n }\n\n if (typeof value === 'number') {\n if (this.skyAutonumericFormChangesUnformatted) {\n this.#autonumericInstance.setUnformatted(value);\n } else {\n this.#autonumericInstance.set(value);\n }\n } else {\n this.#autonumericInstance.clear();\n }\n }\n\n public validate(control: AbstractControl): ValidationErrors | null {\n const noErrors = null;\n\n if (!this.#control) {\n this.#control = control;\n }\n\n if (control.value === null || control.value === undefined) {\n return noErrors;\n }\n\n if (typeof control.value !== 'number') {\n return {\n notTypeOfNumber: { value: control.value },\n };\n }\n\n return noErrors;\n }\n\n public registerOnChange(fn: (value: number | undefined) => void): void {\n this.#onChange = fn;\n }\n\n public registerOnTouched(fn: () => void): void {\n this.#onTouched = fn;\n }\n\n @HostListener('blur')\n public onBlur(): void {\n this.#onTouched();\n }\n\n #getNumericValue(): number | undefined {\n const inputValue = this.#getInputValue();\n const numericValue = this.#autonumericInstance.getNumber();\n return inputValue &&\n !this.#isInputValueTheCurrencySymbol(inputValue) &&\n typeof numericValue === 'number'\n ? numericValue\n : undefined;\n }\n\n /**\n * Due to AutoNumeric's hover logic - when AutoNumeric has a currency symbol, the value\n * that we get back on empty fields will be the currency symbol.\n * The following logic ensures that we don't accidentally set\n * a form value when the only input was the programmatically-added currency symbol.\n */\n #isInputValueTheCurrencySymbol(inputValue: string): boolean {\n /* istanbul ignore next */\n const currencySymbol = (\n (this.#autonumericOptions as AutoNumeric.Options)?.currencySymbol ?? ''\n ).trim();\n return !!currencySymbol && inputValue === currencySymbol;\n }\n\n #getInputValue(): string {\n return this.#elementRef.nativeElement.value;\n }\n\n #updateAutonumericInstance(): void {\n this.#autonumericInstance.update(\n this.#autonumericOptions as AutoNumeric.Options,\n );\n }\n\n #mergeOptions(\n value: SkyAutonumericOptions | undefined,\n ): SkyAutonumericOptions {\n const globalOptions: SkyAutonumericOptions = this.#globalConfig.getConfig();\n\n let newOptions: SkyAutonumericOptions | undefined;\n if (typeof value === 'string') {\n const predefinedOptions = AutoNumeric.getPredefinedOptions();\n newOptions = predefinedOptions[\n value as keyof AutoNumeric.Options\n ] as AutoNumeric.Options;\n } else {\n newOptions = value;\n }\n\n return Object.assign({}, globalOptions, newOptions);\n }\n\n // istanbul ignore next\n // eslint-disable-next-line @typescript-eslint/no-empty-function , @typescript-eslint/no-unused-vars\n #onChange = (_: number | undefined) => {};\n // istanbul ignore next\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n #onTouched = () => {};\n}\n","import { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericDirective } from './autonumeric.directive';\n\n@NgModule({\n declarations: [SkyAutonumericDirective],\n imports: [FormsModule, ReactiveFormsModule],\n exports: [SkyAutonumericDirective],\n})\nexport class SkyAutonumericModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.SkyAutonumericOptionsProvider"],"mappings":";;;;;;;AAIA;;;AAGG;MAIU,6BAA6B,CAAA;AACxC;;;AAGG;IACI,SAAS,GAAA;AACd,QAAA,OAAO,EAAE,CAAC;KACX;+GAPU,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cAF5B,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,6BAA6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