@skyux/autonumeric 9.0.0-alpha.0 → 9.0.0-alpha.2
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 +92 -92
- package/esm2022/index.mjs +3 -4
- package/index.d.ts +3 -3
- package/package.json +1 -1
package/documentation.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"originalName": "",
|
|
15
15
|
"children": [
|
|
16
16
|
{
|
|
17
|
-
"id":
|
|
17
|
+
"id": 7,
|
|
18
18
|
"name": "SkyAutonumericModule",
|
|
19
19
|
"kind": 128,
|
|
20
20
|
"kindString": "Class",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"title": "Constructors",
|
|
40
40
|
"kind": 512,
|
|
41
41
|
"children": [
|
|
42
|
-
|
|
42
|
+
8
|
|
43
43
|
]
|
|
44
44
|
}
|
|
45
45
|
],
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"id":
|
|
55
|
+
"id": 1,
|
|
56
56
|
"name": "SkyAutonumericOptionsProvider",
|
|
57
57
|
"kind": 128,
|
|
58
58
|
"kindString": "Class",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
],
|
|
77
77
|
"children": [
|
|
78
78
|
{
|
|
79
|
-
"id":
|
|
79
|
+
"id": 4,
|
|
80
80
|
"name": "getConfig",
|
|
81
81
|
"kind": 2048,
|
|
82
82
|
"kindString": "Method",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
],
|
|
93
93
|
"signatures": [
|
|
94
94
|
{
|
|
95
|
-
"id":
|
|
95
|
+
"id": 5,
|
|
96
96
|
"name": "getConfig",
|
|
97
97
|
"kind": 4096,
|
|
98
98
|
"kindString": "Call signature",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
},
|
|
103
103
|
"type": {
|
|
104
104
|
"type": "reference",
|
|
105
|
-
"id":
|
|
105
|
+
"id": 6,
|
|
106
106
|
"name": "SkyAutonumericOptions"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -114,14 +114,14 @@
|
|
|
114
114
|
"title": "Constructors",
|
|
115
115
|
"kind": 512,
|
|
116
116
|
"children": [
|
|
117
|
-
|
|
117
|
+
2
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
"title": "Methods",
|
|
122
122
|
"kind": 2048,
|
|
123
123
|
"children": [
|
|
124
|
-
|
|
124
|
+
4
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
],
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
]
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
|
-
"id":
|
|
137
|
+
"id": 10,
|
|
138
138
|
"name": "SkyAutonumericDirective",
|
|
139
139
|
"kind": 128,
|
|
140
140
|
"kindString": "Class",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
],
|
|
159
159
|
"children": [
|
|
160
160
|
{
|
|
161
|
-
"id":
|
|
161
|
+
"id": 11,
|
|
162
162
|
"name": "constructor",
|
|
163
163
|
"kind": 512,
|
|
164
164
|
"kindString": "Constructor",
|
|
@@ -172,14 +172,14 @@
|
|
|
172
172
|
],
|
|
173
173
|
"signatures": [
|
|
174
174
|
{
|
|
175
|
-
"id":
|
|
175
|
+
"id": 12,
|
|
176
176
|
"name": "SkyAutonumericDirective",
|
|
177
177
|
"kind": 16384,
|
|
178
178
|
"kindString": "Constructor signature",
|
|
179
179
|
"flags": {},
|
|
180
180
|
"parameters": [
|
|
181
181
|
{
|
|
182
|
-
"id":
|
|
182
|
+
"id": 13,
|
|
183
183
|
"name": "elementRef",
|
|
184
184
|
"kind": 32768,
|
|
185
185
|
"kindString": "Parameter",
|
|
@@ -198,19 +198,19 @@
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
|
-
"id":
|
|
201
|
+
"id": 14,
|
|
202
202
|
"name": "globalConfig",
|
|
203
203
|
"kind": 32768,
|
|
204
204
|
"kindString": "Parameter",
|
|
205
205
|
"flags": {},
|
|
206
206
|
"type": {
|
|
207
207
|
"type": "reference",
|
|
208
|
-
"id":
|
|
208
|
+
"id": 1,
|
|
209
209
|
"name": "SkyAutonumericOptionsProvider"
|
|
210
210
|
}
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
"id":
|
|
213
|
+
"id": 15,
|
|
214
214
|
"name": "renderer",
|
|
215
215
|
"kind": 32768,
|
|
216
216
|
"kindString": "Parameter",
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"id":
|
|
226
|
+
"id": 16,
|
|
227
227
|
"name": "changeDetector",
|
|
228
228
|
"kind": 32768,
|
|
229
229
|
"kindString": "Parameter",
|
|
@@ -238,14 +238,14 @@
|
|
|
238
238
|
],
|
|
239
239
|
"type": {
|
|
240
240
|
"type": "reference",
|
|
241
|
-
"id":
|
|
241
|
+
"id": 10,
|
|
242
242
|
"name": "SkyAutonumericDirective"
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
]
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
|
-
"id":
|
|
248
|
+
"id": 17,
|
|
249
249
|
"name": "skyAutonumeric",
|
|
250
250
|
"kind": 262144,
|
|
251
251
|
"kindString": "Accessor",
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
],
|
|
274
274
|
"setSignature": [
|
|
275
275
|
{
|
|
276
|
-
"id":
|
|
276
|
+
"id": 18,
|
|
277
277
|
"name": "skyAutonumeric",
|
|
278
278
|
"kind": 1048576,
|
|
279
279
|
"kindString": "Set signature",
|
|
@@ -283,14 +283,14 @@
|
|
|
283
283
|
},
|
|
284
284
|
"parameters": [
|
|
285
285
|
{
|
|
286
|
-
"id":
|
|
286
|
+
"id": 19,
|
|
287
287
|
"name": "value",
|
|
288
288
|
"kind": 32768,
|
|
289
289
|
"kindString": "Parameter",
|
|
290
290
|
"flags": {},
|
|
291
291
|
"type": {
|
|
292
292
|
"type": "reference",
|
|
293
|
-
"id":
|
|
293
|
+
"id": 6,
|
|
294
294
|
"name": "SkyAutonumericOptions"
|
|
295
295
|
}
|
|
296
296
|
}
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
]
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
|
-
"id":
|
|
306
|
+
"id": 33,
|
|
307
307
|
"name": "ngOnDestroy",
|
|
308
308
|
"kind": 2048,
|
|
309
309
|
"kindString": "Method",
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
],
|
|
320
320
|
"signatures": [
|
|
321
321
|
{
|
|
322
|
-
"id":
|
|
322
|
+
"id": 34,
|
|
323
323
|
"name": "ngOnDestroy",
|
|
324
324
|
"kind": 4096,
|
|
325
325
|
"kindString": "Call signature",
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
}
|
|
341
341
|
},
|
|
342
342
|
{
|
|
343
|
-
"id":
|
|
343
|
+
"id": 31,
|
|
344
344
|
"name": "ngOnInit",
|
|
345
345
|
"kind": 2048,
|
|
346
346
|
"kindString": "Method",
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
],
|
|
357
357
|
"signatures": [
|
|
358
358
|
{
|
|
359
|
-
"id":
|
|
359
|
+
"id": 32,
|
|
360
360
|
"name": "ngOnInit",
|
|
361
361
|
"kind": 4096,
|
|
362
362
|
"kindString": "Call signature",
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
|
-
"id":
|
|
380
|
+
"id": 55,
|
|
381
381
|
"name": "onBlur",
|
|
382
382
|
"kind": 2048,
|
|
383
383
|
"kindString": "Method",
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
],
|
|
408
408
|
"signatures": [
|
|
409
409
|
{
|
|
410
|
-
"id":
|
|
410
|
+
"id": 56,
|
|
411
411
|
"name": "onBlur",
|
|
412
412
|
"kind": 4096,
|
|
413
413
|
"kindString": "Call signature",
|
|
@@ -420,7 +420,7 @@
|
|
|
420
420
|
]
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
|
-
"id":
|
|
423
|
+
"id": 44,
|
|
424
424
|
"name": "registerOnChange",
|
|
425
425
|
"kind": 2048,
|
|
426
426
|
"kindString": "Method",
|
|
@@ -436,14 +436,14 @@
|
|
|
436
436
|
],
|
|
437
437
|
"signatures": [
|
|
438
438
|
{
|
|
439
|
-
"id":
|
|
439
|
+
"id": 45,
|
|
440
440
|
"name": "registerOnChange",
|
|
441
441
|
"kind": 4096,
|
|
442
442
|
"kindString": "Call signature",
|
|
443
443
|
"flags": {},
|
|
444
444
|
"parameters": [
|
|
445
445
|
{
|
|
446
|
-
"id":
|
|
446
|
+
"id": 46,
|
|
447
447
|
"name": "fn",
|
|
448
448
|
"kind": 32768,
|
|
449
449
|
"kindString": "Parameter",
|
|
@@ -451,21 +451,21 @@
|
|
|
451
451
|
"type": {
|
|
452
452
|
"type": "reflection",
|
|
453
453
|
"declaration": {
|
|
454
|
-
"id":
|
|
454
|
+
"id": 47,
|
|
455
455
|
"name": "__type",
|
|
456
456
|
"kind": 65536,
|
|
457
457
|
"kindString": "Type literal",
|
|
458
458
|
"flags": {},
|
|
459
459
|
"signatures": [
|
|
460
460
|
{
|
|
461
|
-
"id":
|
|
461
|
+
"id": 48,
|
|
462
462
|
"name": "__type",
|
|
463
463
|
"kind": 4096,
|
|
464
464
|
"kindString": "Call signature",
|
|
465
465
|
"flags": {},
|
|
466
466
|
"parameters": [
|
|
467
467
|
{
|
|
468
|
-
"id":
|
|
468
|
+
"id": 49,
|
|
469
469
|
"name": "value",
|
|
470
470
|
"kind": 32768,
|
|
471
471
|
"kindString": "Parameter",
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
}
|
|
503
503
|
},
|
|
504
504
|
{
|
|
505
|
-
"id":
|
|
505
|
+
"id": 50,
|
|
506
506
|
"name": "registerOnTouched",
|
|
507
507
|
"kind": 2048,
|
|
508
508
|
"kindString": "Method",
|
|
@@ -518,14 +518,14 @@
|
|
|
518
518
|
],
|
|
519
519
|
"signatures": [
|
|
520
520
|
{
|
|
521
|
-
"id":
|
|
521
|
+
"id": 51,
|
|
522
522
|
"name": "registerOnTouched",
|
|
523
523
|
"kind": 4096,
|
|
524
524
|
"kindString": "Call signature",
|
|
525
525
|
"flags": {},
|
|
526
526
|
"parameters": [
|
|
527
527
|
{
|
|
528
|
-
"id":
|
|
528
|
+
"id": 52,
|
|
529
529
|
"name": "fn",
|
|
530
530
|
"kind": 32768,
|
|
531
531
|
"kindString": "Parameter",
|
|
@@ -533,14 +533,14 @@
|
|
|
533
533
|
"type": {
|
|
534
534
|
"type": "reflection",
|
|
535
535
|
"declaration": {
|
|
536
|
-
"id":
|
|
536
|
+
"id": 53,
|
|
537
537
|
"name": "__type",
|
|
538
538
|
"kind": 65536,
|
|
539
539
|
"kindString": "Type literal",
|
|
540
540
|
"flags": {},
|
|
541
541
|
"signatures": [
|
|
542
542
|
{
|
|
543
|
-
"id":
|
|
543
|
+
"id": 54,
|
|
544
544
|
"name": "__type",
|
|
545
545
|
"kind": 4096,
|
|
546
546
|
"kindString": "Call signature",
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
}
|
|
572
572
|
},
|
|
573
573
|
{
|
|
574
|
-
"id":
|
|
574
|
+
"id": 35,
|
|
575
575
|
"name": "setDisabledState",
|
|
576
576
|
"kind": 2048,
|
|
577
577
|
"kindString": "Method",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
],
|
|
588
588
|
"signatures": [
|
|
589
589
|
{
|
|
590
|
-
"id":
|
|
590
|
+
"id": 36,
|
|
591
591
|
"name": "setDisabledState",
|
|
592
592
|
"kind": 4096,
|
|
593
593
|
"kindString": "Call signature",
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
},
|
|
598
598
|
"parameters": [
|
|
599
599
|
{
|
|
600
|
-
"id":
|
|
600
|
+
"id": 37,
|
|
601
601
|
"name": "value",
|
|
602
602
|
"kind": 32768,
|
|
603
603
|
"kindString": "Parameter",
|
|
@@ -624,7 +624,7 @@
|
|
|
624
624
|
}
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
|
-
"id":
|
|
627
|
+
"id": 41,
|
|
628
628
|
"name": "validate",
|
|
629
629
|
"kind": 2048,
|
|
630
630
|
"kindString": "Method",
|
|
@@ -640,14 +640,14 @@
|
|
|
640
640
|
],
|
|
641
641
|
"signatures": [
|
|
642
642
|
{
|
|
643
|
-
"id":
|
|
643
|
+
"id": 42,
|
|
644
644
|
"name": "validate",
|
|
645
645
|
"kind": 4096,
|
|
646
646
|
"kindString": "Call signature",
|
|
647
647
|
"flags": {},
|
|
648
648
|
"parameters": [
|
|
649
649
|
{
|
|
650
|
-
"id":
|
|
650
|
+
"id": 43,
|
|
651
651
|
"name": "control",
|
|
652
652
|
"kind": 32768,
|
|
653
653
|
"kindString": "Parameter",
|
|
@@ -688,7 +688,7 @@
|
|
|
688
688
|
}
|
|
689
689
|
},
|
|
690
690
|
{
|
|
691
|
-
"id":
|
|
691
|
+
"id": 38,
|
|
692
692
|
"name": "writeValue",
|
|
693
693
|
"kind": 2048,
|
|
694
694
|
"kindString": "Method",
|
|
@@ -704,14 +704,14 @@
|
|
|
704
704
|
],
|
|
705
705
|
"signatures": [
|
|
706
706
|
{
|
|
707
|
-
"id":
|
|
707
|
+
"id": 39,
|
|
708
708
|
"name": "writeValue",
|
|
709
709
|
"kind": 4096,
|
|
710
710
|
"kindString": "Call signature",
|
|
711
711
|
"flags": {},
|
|
712
712
|
"parameters": [
|
|
713
713
|
{
|
|
714
|
-
"id":
|
|
714
|
+
"id": 40,
|
|
715
715
|
"name": "value",
|
|
716
716
|
"kind": 32768,
|
|
717
717
|
"kindString": "Parameter",
|
|
@@ -743,28 +743,28 @@
|
|
|
743
743
|
"title": "Constructors",
|
|
744
744
|
"kind": 512,
|
|
745
745
|
"children": [
|
|
746
|
-
|
|
746
|
+
11
|
|
747
747
|
]
|
|
748
748
|
},
|
|
749
749
|
{
|
|
750
750
|
"title": "Accessors",
|
|
751
751
|
"kind": 262144,
|
|
752
752
|
"children": [
|
|
753
|
-
|
|
753
|
+
17
|
|
754
754
|
]
|
|
755
755
|
},
|
|
756
756
|
{
|
|
757
757
|
"title": "Methods",
|
|
758
758
|
"kind": 2048,
|
|
759
759
|
"children": [
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
760
|
+
33,
|
|
761
|
+
31,
|
|
762
|
+
55,
|
|
763
|
+
44,
|
|
764
|
+
50,
|
|
763
765
|
35,
|
|
764
766
|
41,
|
|
765
|
-
|
|
766
|
-
32,
|
|
767
|
-
29
|
|
767
|
+
38
|
|
768
768
|
]
|
|
769
769
|
}
|
|
770
770
|
],
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
]
|
|
804
804
|
},
|
|
805
805
|
{
|
|
806
|
-
"id":
|
|
806
|
+
"id": 6,
|
|
807
807
|
"name": "SkyAutonumericOptions",
|
|
808
808
|
"kind": 4194304,
|
|
809
809
|
"kindString": "Type alias",
|
|
@@ -850,16 +850,16 @@
|
|
|
850
850
|
"title": "Classes",
|
|
851
851
|
"kind": 128,
|
|
852
852
|
"children": [
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
853
|
+
7,
|
|
854
|
+
1,
|
|
855
|
+
10
|
|
856
856
|
]
|
|
857
857
|
},
|
|
858
858
|
{
|
|
859
859
|
"title": "Type aliases",
|
|
860
860
|
"kind": 4194304,
|
|
861
861
|
"children": [
|
|
862
|
-
|
|
862
|
+
6
|
|
863
863
|
]
|
|
864
864
|
}
|
|
865
865
|
],
|
|
@@ -872,40 +872,30 @@
|
|
|
872
872
|
]
|
|
873
873
|
},
|
|
874
874
|
"codeExamples": [
|
|
875
|
-
{
|
|
876
|
-
"fileName": "autonumeric-demo.component.html",
|
|
877
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.html",
|
|
878
|
-
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box labelText=\"Donation amount\">\n <input\n formControlName=\"donationAmount\"\n type=\"text\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
879
|
-
},
|
|
880
|
-
{
|
|
881
|
-
"fileName": "autonumeric-demo.component.ts",
|
|
882
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.ts",
|
|
883
|
-
"rawContents": "import { Component, OnInit } from '@angular/core';\nimport {\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyAutonumericOptions } from '@skyux/autonumeric';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent implements OnInit {\n public autonumericOptions: SkyAutonumericOptions | undefined;\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n donationAmount: new UntypedFormControl(1234.5678, [Validators.required]),\n });\n }\n\n public ngOnInit(): void {\n this.autonumericOptions = {\n currencySymbol: ' €',\n currencySymbolPlacement: 's',\n decimalPlaces: 2,\n decimalCharacter: ',',\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
884
|
-
},
|
|
885
875
|
{
|
|
886
876
|
"fileName": "autonumeric-demo.module.ts",
|
|
887
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
877
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.module.ts",
|
|
888
878
|
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyAutonumericModule } from '@skyux/autonumeric';\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
889
879
|
},
|
|
890
880
|
{
|
|
891
|
-
"fileName": "autonumeric-demo.component.
|
|
892
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
893
|
-
"rawContents": "
|
|
881
|
+
"fileName": "autonumeric-demo.component.ts",
|
|
882
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.component.ts",
|
|
883
|
+
"rawContents": "import { Component } from '@angular/core';\nimport {\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyAutonumericOptions } from '@skyux/autonumeric';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent {\n public autonumericOptions: SkyAutonumericOptions = 'Chinese';\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n donationAmount: new UntypedFormControl(1234.5678, [Validators.required]),\n });\n }\n}\n"
|
|
894
884
|
},
|
|
895
885
|
{
|
|
896
|
-
"fileName": "autonumeric-demo.component.
|
|
897
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
898
|
-
"rawContents": "
|
|
886
|
+
"fileName": "autonumeric-demo.component.html",
|
|
887
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.component.html",
|
|
888
|
+
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box labelText=\"Donation amount\">\n <input\n formControlName=\"donationAmount\"\n type=\"text\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
899
889
|
},
|
|
900
890
|
{
|
|
901
891
|
"fileName": "autonumeric-demo.module.ts",
|
|
902
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
892
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.module.ts",
|
|
903
893
|
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyAutonumericModule } from '@skyux/autonumeric';\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
904
894
|
},
|
|
905
895
|
{
|
|
906
|
-
"fileName": "autonumeric-demo
|
|
907
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo
|
|
908
|
-
"rawContents": "import { SkyAutonumericOptions } from '@skyux/autonumeric';\nimport { SkyAutonumericOptionsProvider } from '@skyux/autonumeric';\n\
|
|
896
|
+
"fileName": "autonumeric-demo.component.ts",
|
|
897
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.component.ts",
|
|
898
|
+
"rawContents": "import { Component } from '@angular/core';\nimport {\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyAutonumericOptions } from '@skyux/autonumeric';\nimport { SkyAutonumericOptionsProvider } from '@skyux/autonumeric';\n\nimport { AutonumericDemoOptionsProvider } from './autonumeric-demo-options-provider';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n providers: [\n {\n provide: SkyAutonumericOptionsProvider,\n useClass: AutonumericDemoOptionsProvider,\n },\n ],\n})\nexport class AutonumericDemoComponent {\n public donationOptions: SkyAutonumericOptions = {};\n\n public formGroup: UntypedFormGroup;\n\n public pledgeOptions: SkyAutonumericOptions = {\n decimalPlaces: 0,\n };\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n donationAmount: new UntypedFormControl(1234.5678, [Validators.required]),\n pledgeAmount: new UntypedFormControl(2345.6789, [Validators.required]),\n });\n }\n}\n"
|
|
909
899
|
},
|
|
910
900
|
{
|
|
911
901
|
"fileName": "autonumeric-demo.component.html",
|
|
@@ -913,29 +903,39 @@
|
|
|
913
903
|
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box labelText=\"Donation amount\" stacked=\"true\">\n <input\n formControlName=\"donationAmount\"\n type=\"text\"\n [skyAutonumeric]=\"donationOptions\"\n />\n </sky-input-box>\n <sky-input-box labelText=\"Pledge amount\">\n <input\n formControlName=\"pledgeAmount\"\n type=\"text\"\n [skyAutonumeric]=\"pledgeOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
914
904
|
},
|
|
915
905
|
{
|
|
916
|
-
"fileName": "autonumeric-demo.
|
|
917
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.
|
|
918
|
-
"rawContents": "import {
|
|
906
|
+
"fileName": "autonumeric-demo-options-provider.ts",
|
|
907
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo-options-provider.ts",
|
|
908
|
+
"rawContents": "import { SkyAutonumericOptions } from '@skyux/autonumeric';\nimport { SkyAutonumericOptionsProvider } from '@skyux/autonumeric';\n\nexport class AutonumericDemoOptionsProvider extends SkyAutonumericOptionsProvider {\n constructor() {\n super();\n }\n\n public override getConfig(): SkyAutonumericOptions {\n return {\n currencySymbol: ' €',\n currencySymbolPlacement: 's',\n decimalPlaces: 2,\n decimalCharacter: ',',\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
919
909
|
},
|
|
920
910
|
{
|
|
921
911
|
"fileName": "autonumeric-demo.module.ts",
|
|
922
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
912
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.module.ts",
|
|
923
913
|
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyAutonumericModule } from '@skyux/autonumeric';\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
924
914
|
},
|
|
925
915
|
{
|
|
926
|
-
"fileName": "autonumeric-demo.component.
|
|
927
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
928
|
-
"rawContents": "
|
|
916
|
+
"fileName": "autonumeric-demo.component.ts",
|
|
917
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.component.ts",
|
|
918
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\nimport {\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyAutonumericOptions } from '@skyux/autonumeric';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent implements OnInit {\n public autonumericOptions: SkyAutonumericOptions | undefined;\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n donationAmount: new UntypedFormControl(1234.5678, [Validators.required]),\n });\n }\n\n public ngOnInit(): void {\n this.autonumericOptions = {\n decimalCharacter: ',',\n decimalPlaces: 4,\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
929
919
|
},
|
|
930
920
|
{
|
|
931
|
-
"fileName": "autonumeric-demo.component.
|
|
932
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
933
|
-
"rawContents": "
|
|
921
|
+
"fileName": "autonumeric-demo.component.html",
|
|
922
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.component.html",
|
|
923
|
+
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box labelText=\"Autonumeric value\">\n <input\n formControlName=\"donationAmount\"\n type=\"text\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
934
924
|
},
|
|
935
925
|
{
|
|
936
926
|
"fileName": "autonumeric-demo.module.ts",
|
|
937
|
-
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/
|
|
927
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.module.ts",
|
|
938
928
|
"rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyAutonumericModule } from '@skyux/autonumeric';\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"fileName": "autonumeric-demo.component.ts",
|
|
932
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.ts",
|
|
933
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\nimport {\n UntypedFormBuilder,\n UntypedFormControl,\n UntypedFormGroup,\n Validators,\n} from '@angular/forms';\nimport { SkyAutonumericOptions } from '@skyux/autonumeric';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent implements OnInit {\n public autonumericOptions: SkyAutonumericOptions | undefined;\n\n public formGroup: UntypedFormGroup;\n\n constructor(formBuilder: UntypedFormBuilder) {\n this.formGroup = formBuilder.group({\n donationAmount: new UntypedFormControl(1234.5678, [Validators.required]),\n });\n }\n\n public ngOnInit(): void {\n this.autonumericOptions = {\n currencySymbol: ' €',\n currencySymbolPlacement: 's',\n decimalPlaces: 2,\n decimalCharacter: ',',\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"fileName": "autonumeric-demo.component.html",
|
|
937
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.html",
|
|
938
|
+
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box labelText=\"Donation amount\">\n <input\n formControlName=\"donationAmount\"\n type=\"text\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
939
939
|
}
|
|
940
940
|
]
|
|
941
941
|
}
|
package/esm2022/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export * from './lib/modules/autonumeric/autonumeric.module';
|
|
1
|
+
export { SkyAutonumericOptionsProvider } from './lib/modules/autonumeric/autonumeric-options-provider';
|
|
2
|
+
export { SkyAutonumericModule } from './lib/modules/autonumeric/autonumeric.module';
|
|
4
3
|
// Components and directives must be exported to support Angular's "partial" Ivy compiler.
|
|
5
4
|
// Obscure names are used to indicate types are not part of the public API.
|
|
6
5
|
export { SkyAutonumericDirective as λ1 } from './lib/modules/autonumeric/autonumeric.directive';
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvYXV0b251bWVyaWMvc3JjL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLHdEQUF3RCxDQUFDO0FBRXZHLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDhDQUE4QyxDQUFDO0FBRXBGLDBGQUEwRjtBQUMxRiwyRUFBMkU7QUFDM0UsT0FBTyxFQUFFLHVCQUF1QixJQUFJLEVBQUUsRUFBRSxNQUFNLGlEQUFpRCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgU2t5QXV0b251bWVyaWNPcHRpb25zUHJvdmlkZXIgfSBmcm9tICcuL2xpYi9tb2R1bGVzL2F1dG9udW1lcmljL2F1dG9udW1lcmljLW9wdGlvbnMtcHJvdmlkZXInO1xuZXhwb3J0IHsgU2t5QXV0b251bWVyaWNPcHRpb25zIH0gZnJvbSAnLi9saWIvbW9kdWxlcy9hdXRvbnVtZXJpYy9hdXRvbnVtZXJpYy1vcHRpb25zJztcbmV4cG9ydCB7IFNreUF1dG9udW1lcmljTW9kdWxlIH0gZnJvbSAnLi9saWIvbW9kdWxlcy9hdXRvbnVtZXJpYy9hdXRvbnVtZXJpYy5tb2R1bGUnO1xuXG4vLyBDb21wb25lbnRzIGFuZCBkaXJlY3RpdmVzIG11c3QgYmUgZXhwb3J0ZWQgdG8gc3VwcG9ydCBBbmd1bGFyJ3MgXCJwYXJ0aWFsXCIgSXZ5IGNvbXBpbGVyLlxuLy8gT2JzY3VyZSBuYW1lcyBhcmUgdXNlZCB0byBpbmRpY2F0ZSB0eXBlcyBhcmUgbm90IHBhcnQgb2YgdGhlIHB1YmxpYyBBUEkuXG5leHBvcnQgeyBTa3lBdXRvbnVtZXJpY0RpcmVjdGl2ZSBhcyDOuzEgfSBmcm9tICcuL2xpYi9tb2R1bGVzL2F1dG9udW1lcmljL2F1dG9udW1lcmljLmRpcmVjdGl2ZSc7XG4iXX0=
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export { SkyAutonumericOptionsProvider } from './lib/modules/autonumeric/autonumeric-options-provider';
|
|
2
|
+
export { SkyAutonumericOptions } from './lib/modules/autonumeric/autonumeric-options';
|
|
3
|
+
export { SkyAutonumericModule } from './lib/modules/autonumeric/autonumeric.module';
|
|
4
4
|
export { SkyAutonumericDirective as λ1 } from './lib/modules/autonumeric/autonumeric.directive';
|