@skyux/autonumeric 5.0.2 → 5.5.0-alpha.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/README.md +4 -69
- package/bundles/skyux-autonumeric.umd.js +19 -24
- package/documentation.json +95 -68
- package/esm2015/index.js +7 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/autonumeric/autonumeric-options-provider.js +24 -0
- package/esm2015/lib/modules/autonumeric/autonumeric-options-provider.js.map +1 -0
- package/esm2015/lib/modules/autonumeric/autonumeric-options.js +2 -0
- package/esm2015/lib/modules/autonumeric/autonumeric-options.js.map +1 -0
- package/esm2015/lib/modules/autonumeric/autonumeric.directive.js +171 -0
- package/esm2015/lib/modules/autonumeric/autonumeric.directive.js.map +1 -0
- package/esm2015/lib/modules/autonumeric/autonumeric.module.js +19 -0
- package/esm2015/lib/modules/autonumeric/autonumeric.module.js.map +1 -0
- package/esm2015/skyux-autonumeric.js +2 -2
- package/esm2015/skyux-autonumeric.js.map +1 -0
- package/fesm2015/skyux-autonumeric.js +16 -21
- package/fesm2015/skyux-autonumeric.js.map +1 -1
- package/index.d.ts +4 -0
- package/{modules → lib/modules}/autonumeric/autonumeric-options-provider.d.ts +0 -0
- package/{modules → lib/modules}/autonumeric/autonumeric-options.d.ts +0 -0
- package/{modules → lib/modules}/autonumeric/autonumeric.directive.d.ts +2 -3
- package/{modules → lib/modules}/autonumeric/autonumeric.module.d.ts +0 -0
- package/package.json +4 -4
- package/skyux-autonumeric.d.ts +1 -1
- package/LICENSE +0 -21
- package/bundles/skyux-autonumeric.umd.js.map +0 -1
- package/esm2015/modules/autonumeric/autonumeric-options-provider.js +0 -24
- package/esm2015/modules/autonumeric/autonumeric-options.js +0 -2
- package/esm2015/modules/autonumeric/autonumeric.directive.js +0 -175
- package/esm2015/modules/autonumeric/autonumeric.module.js +0 -19
- package/esm2015/public-api.js +0 -7
- package/public-api.d.ts +0 -4
package/documentation.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"originalName": "",
|
|
15
15
|
"children": [
|
|
16
16
|
{
|
|
17
|
-
"id":
|
|
17
|
+
"id": 66,
|
|
18
18
|
"name": "SkyAutonumericModule",
|
|
19
19
|
"kind": 128,
|
|
20
20
|
"kindString": "Class",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"name": "NgModule",
|
|
25
25
|
"type": {
|
|
26
26
|
"type": "reference",
|
|
27
|
+
"qualifiedName": "NgModuleDecorator",
|
|
28
|
+
"package": "@angular/core",
|
|
27
29
|
"name": "NgModule"
|
|
28
30
|
},
|
|
29
31
|
"arguments": {
|
|
@@ -33,21 +35,21 @@
|
|
|
33
35
|
],
|
|
34
36
|
"children": [
|
|
35
37
|
{
|
|
36
|
-
"id":
|
|
38
|
+
"id": 67,
|
|
37
39
|
"name": "constructor",
|
|
38
40
|
"kind": 512,
|
|
39
41
|
"kindString": "Constructor",
|
|
40
42
|
"flags": {},
|
|
41
43
|
"signatures": [
|
|
42
44
|
{
|
|
43
|
-
"id":
|
|
45
|
+
"id": 68,
|
|
44
46
|
"name": "new SkyAutonumericModule",
|
|
45
47
|
"kind": 16384,
|
|
46
48
|
"kindString": "Constructor signature",
|
|
47
49
|
"flags": {},
|
|
48
50
|
"type": {
|
|
49
51
|
"type": "reference",
|
|
50
|
-
"id":
|
|
52
|
+
"id": 66,
|
|
51
53
|
"name": "SkyAutonumericModule"
|
|
52
54
|
}
|
|
53
55
|
}
|
|
@@ -59,20 +61,20 @@
|
|
|
59
61
|
"title": "Constructors",
|
|
60
62
|
"kind": 512,
|
|
61
63
|
"children": [
|
|
62
|
-
|
|
64
|
+
67
|
|
63
65
|
]
|
|
64
66
|
}
|
|
65
67
|
],
|
|
66
68
|
"sources": [
|
|
67
69
|
{
|
|
68
|
-
"fileName": "projects/
|
|
70
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.module.ts",
|
|
69
71
|
"line": 14,
|
|
70
72
|
"character": 13
|
|
71
73
|
}
|
|
72
74
|
]
|
|
73
75
|
},
|
|
74
76
|
{
|
|
75
|
-
"id":
|
|
77
|
+
"id": 60,
|
|
76
78
|
"name": "SkyAutonumericOptionsProvider",
|
|
77
79
|
"kind": 128,
|
|
78
80
|
"kindString": "Class",
|
|
@@ -85,6 +87,8 @@
|
|
|
85
87
|
"name": "Injectable",
|
|
86
88
|
"type": {
|
|
87
89
|
"type": "reference",
|
|
90
|
+
"qualifiedName": "InjectableDecorator",
|
|
91
|
+
"package": "@angular/core",
|
|
88
92
|
"name": "Injectable"
|
|
89
93
|
},
|
|
90
94
|
"arguments": {
|
|
@@ -94,28 +98,28 @@
|
|
|
94
98
|
],
|
|
95
99
|
"children": [
|
|
96
100
|
{
|
|
97
|
-
"id":
|
|
101
|
+
"id": 61,
|
|
98
102
|
"name": "constructor",
|
|
99
103
|
"kind": 512,
|
|
100
104
|
"kindString": "Constructor",
|
|
101
105
|
"flags": {},
|
|
102
106
|
"signatures": [
|
|
103
107
|
{
|
|
104
|
-
"id":
|
|
108
|
+
"id": 62,
|
|
105
109
|
"name": "new SkyAutonumericOptionsProvider",
|
|
106
110
|
"kind": 16384,
|
|
107
111
|
"kindString": "Constructor signature",
|
|
108
112
|
"flags": {},
|
|
109
113
|
"type": {
|
|
110
114
|
"type": "reference",
|
|
111
|
-
"id":
|
|
115
|
+
"id": 60,
|
|
112
116
|
"name": "SkyAutonumericOptionsProvider"
|
|
113
117
|
}
|
|
114
118
|
}
|
|
115
119
|
]
|
|
116
120
|
},
|
|
117
121
|
{
|
|
118
|
-
"id":
|
|
122
|
+
"id": 63,
|
|
119
123
|
"name": "getConfig",
|
|
120
124
|
"kind": 2048,
|
|
121
125
|
"kindString": "Method",
|
|
@@ -124,14 +128,14 @@
|
|
|
124
128
|
},
|
|
125
129
|
"sources": [
|
|
126
130
|
{
|
|
127
|
-
"fileName": "projects/
|
|
131
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options-provider.ts",
|
|
128
132
|
"line": 17,
|
|
129
133
|
"character": 9
|
|
130
134
|
}
|
|
131
135
|
],
|
|
132
136
|
"signatures": [
|
|
133
137
|
{
|
|
134
|
-
"id":
|
|
138
|
+
"id": 64,
|
|
135
139
|
"name": "getConfig",
|
|
136
140
|
"kind": 4096,
|
|
137
141
|
"kindString": "Call signature",
|
|
@@ -141,7 +145,7 @@
|
|
|
141
145
|
},
|
|
142
146
|
"type": {
|
|
143
147
|
"type": "reference",
|
|
144
|
-
"id":
|
|
148
|
+
"id": 65,
|
|
145
149
|
"name": "SkyAutonumericOptions"
|
|
146
150
|
}
|
|
147
151
|
}
|
|
@@ -153,20 +157,20 @@
|
|
|
153
157
|
"title": "Constructors",
|
|
154
158
|
"kind": 512,
|
|
155
159
|
"children": [
|
|
156
|
-
|
|
160
|
+
61
|
|
157
161
|
]
|
|
158
162
|
},
|
|
159
163
|
{
|
|
160
164
|
"title": "Methods",
|
|
161
165
|
"kind": 2048,
|
|
162
166
|
"children": [
|
|
163
|
-
|
|
167
|
+
63
|
|
164
168
|
]
|
|
165
169
|
}
|
|
166
170
|
],
|
|
167
171
|
"sources": [
|
|
168
172
|
{
|
|
169
|
-
"fileName": "projects/
|
|
173
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options-provider.ts",
|
|
170
174
|
"line": 12,
|
|
171
175
|
"character": 13
|
|
172
176
|
}
|
|
@@ -186,6 +190,8 @@
|
|
|
186
190
|
"name": "Directive",
|
|
187
191
|
"type": {
|
|
188
192
|
"type": "reference",
|
|
193
|
+
"qualifiedName": "DirectiveDecorator",
|
|
194
|
+
"package": "@angular/core",
|
|
189
195
|
"name": "Directive"
|
|
190
196
|
},
|
|
191
197
|
"arguments": {
|
|
@@ -202,7 +208,7 @@
|
|
|
202
208
|
"flags": {},
|
|
203
209
|
"sources": [
|
|
204
210
|
{
|
|
205
|
-
"fileName": "projects/
|
|
211
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
206
212
|
"line": 74,
|
|
207
213
|
"character": 2
|
|
208
214
|
}
|
|
@@ -229,6 +235,8 @@
|
|
|
229
235
|
"name": "any"
|
|
230
236
|
}
|
|
231
237
|
],
|
|
238
|
+
"qualifiedName": "ElementRef",
|
|
239
|
+
"package": "@angular/core",
|
|
232
240
|
"name": "ElementRef"
|
|
233
241
|
}
|
|
234
242
|
},
|
|
@@ -240,7 +248,7 @@
|
|
|
240
248
|
"flags": {},
|
|
241
249
|
"type": {
|
|
242
250
|
"type": "reference",
|
|
243
|
-
"id":
|
|
251
|
+
"id": 60,
|
|
244
252
|
"name": "SkyAutonumericOptionsProvider"
|
|
245
253
|
}
|
|
246
254
|
},
|
|
@@ -252,6 +260,8 @@
|
|
|
252
260
|
"flags": {},
|
|
253
261
|
"type": {
|
|
254
262
|
"type": "reference",
|
|
263
|
+
"qualifiedName": "Renderer2",
|
|
264
|
+
"package": "@angular/core",
|
|
255
265
|
"name": "Renderer2"
|
|
256
266
|
}
|
|
257
267
|
},
|
|
@@ -263,6 +273,8 @@
|
|
|
263
273
|
"flags": {},
|
|
264
274
|
"type": {
|
|
265
275
|
"type": "reference",
|
|
276
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
277
|
+
"package": "@angular/core",
|
|
266
278
|
"name": "ChangeDetectorRef"
|
|
267
279
|
}
|
|
268
280
|
}
|
|
@@ -288,6 +300,8 @@
|
|
|
288
300
|
"name": "Input",
|
|
289
301
|
"type": {
|
|
290
302
|
"type": "reference",
|
|
303
|
+
"qualifiedName": "InputDecorator",
|
|
304
|
+
"package": "@angular/core",
|
|
291
305
|
"name": "Input"
|
|
292
306
|
},
|
|
293
307
|
"arguments": {}
|
|
@@ -295,7 +309,7 @@
|
|
|
295
309
|
],
|
|
296
310
|
"sources": [
|
|
297
311
|
{
|
|
298
|
-
"fileName": "projects/
|
|
312
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
299
313
|
"line": 61,
|
|
300
314
|
"character": 13
|
|
301
315
|
}
|
|
@@ -319,7 +333,7 @@
|
|
|
319
333
|
"flags": {},
|
|
320
334
|
"type": {
|
|
321
335
|
"type": "reference",
|
|
322
|
-
"id":
|
|
336
|
+
"id": 65,
|
|
323
337
|
"name": "SkyAutonumericOptions"
|
|
324
338
|
}
|
|
325
339
|
}
|
|
@@ -341,7 +355,7 @@
|
|
|
341
355
|
},
|
|
342
356
|
"sources": [
|
|
343
357
|
{
|
|
344
|
-
"fileName": "projects/
|
|
358
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
345
359
|
"line": 110,
|
|
346
360
|
"character": 9
|
|
347
361
|
}
|
|
@@ -378,7 +392,7 @@
|
|
|
378
392
|
},
|
|
379
393
|
"sources": [
|
|
380
394
|
{
|
|
381
|
-
"fileName": "projects/
|
|
395
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
382
396
|
"line": 83,
|
|
383
397
|
"character": 9
|
|
384
398
|
}
|
|
@@ -418,6 +432,8 @@
|
|
|
418
432
|
"name": "HostListener",
|
|
419
433
|
"type": {
|
|
420
434
|
"type": "reference",
|
|
435
|
+
"qualifiedName": "HostListenerDecorator",
|
|
436
|
+
"package": "@angular/core",
|
|
421
437
|
"name": "HostListener"
|
|
422
438
|
},
|
|
423
439
|
"arguments": {
|
|
@@ -427,8 +443,8 @@
|
|
|
427
443
|
],
|
|
428
444
|
"sources": [
|
|
429
445
|
{
|
|
430
|
-
"fileName": "projects/
|
|
431
|
-
"line":
|
|
446
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
447
|
+
"line": 172,
|
|
432
448
|
"character": 9
|
|
433
449
|
}
|
|
434
450
|
],
|
|
@@ -456,8 +472,8 @@
|
|
|
456
472
|
},
|
|
457
473
|
"sources": [
|
|
458
474
|
{
|
|
459
|
-
"fileName": "projects/
|
|
460
|
-
"line":
|
|
475
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
476
|
+
"line": 163,
|
|
461
477
|
"character": 9
|
|
462
478
|
}
|
|
463
479
|
],
|
|
@@ -538,8 +554,8 @@
|
|
|
538
554
|
},
|
|
539
555
|
"sources": [
|
|
540
556
|
{
|
|
541
|
-
"fileName": "projects/
|
|
542
|
-
"line":
|
|
557
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
558
|
+
"line": 167,
|
|
543
559
|
"character": 9
|
|
544
560
|
}
|
|
545
561
|
],
|
|
@@ -607,7 +623,7 @@
|
|
|
607
623
|
},
|
|
608
624
|
"sources": [
|
|
609
625
|
{
|
|
610
|
-
"fileName": "projects/
|
|
626
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
611
627
|
"line": 118,
|
|
612
628
|
"character": 9
|
|
613
629
|
}
|
|
@@ -660,8 +676,8 @@
|
|
|
660
676
|
},
|
|
661
677
|
"sources": [
|
|
662
678
|
{
|
|
663
|
-
"fileName": "projects/
|
|
664
|
-
"line":
|
|
679
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
680
|
+
"line": 143,
|
|
665
681
|
"character": 9
|
|
666
682
|
}
|
|
667
683
|
],
|
|
@@ -681,12 +697,16 @@
|
|
|
681
697
|
"flags": {},
|
|
682
698
|
"type": {
|
|
683
699
|
"type": "reference",
|
|
700
|
+
"qualifiedName": "AbstractControl",
|
|
701
|
+
"package": "@angular/forms",
|
|
684
702
|
"name": "AbstractControl"
|
|
685
703
|
}
|
|
686
704
|
}
|
|
687
705
|
],
|
|
688
706
|
"type": {
|
|
689
707
|
"type": "reference",
|
|
708
|
+
"qualifiedName": "ValidationErrors",
|
|
709
|
+
"package": "@angular/forms",
|
|
690
710
|
"name": "ValidationErrors"
|
|
691
711
|
},
|
|
692
712
|
"implementationOf": {
|
|
@@ -710,7 +730,7 @@
|
|
|
710
730
|
},
|
|
711
731
|
"sources": [
|
|
712
732
|
{
|
|
713
|
-
"fileName": "projects/
|
|
733
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
714
734
|
"line": 122,
|
|
715
735
|
"character": 9
|
|
716
736
|
}
|
|
@@ -783,7 +803,7 @@
|
|
|
783
803
|
],
|
|
784
804
|
"sources": [
|
|
785
805
|
{
|
|
786
|
-
"fileName": "projects/
|
|
806
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
787
807
|
"line": 54,
|
|
788
808
|
"character": 13
|
|
789
809
|
}
|
|
@@ -791,24 +811,32 @@
|
|
|
791
811
|
"implementedTypes": [
|
|
792
812
|
{
|
|
793
813
|
"type": "reference",
|
|
814
|
+
"qualifiedName": "OnInit",
|
|
815
|
+
"package": "@angular/core",
|
|
794
816
|
"name": "OnInit"
|
|
795
817
|
},
|
|
796
818
|
{
|
|
797
819
|
"type": "reference",
|
|
820
|
+
"qualifiedName": "OnDestroy",
|
|
821
|
+
"package": "@angular/core",
|
|
798
822
|
"name": "OnDestroy"
|
|
799
823
|
},
|
|
800
824
|
{
|
|
801
825
|
"type": "reference",
|
|
826
|
+
"qualifiedName": "ControlValueAccessor",
|
|
827
|
+
"package": "@angular/forms",
|
|
802
828
|
"name": "ControlValueAccessor"
|
|
803
829
|
},
|
|
804
830
|
{
|
|
805
831
|
"type": "reference",
|
|
832
|
+
"qualifiedName": "Validator",
|
|
833
|
+
"package": "@angular/forms",
|
|
806
834
|
"name": "Validator"
|
|
807
835
|
}
|
|
808
836
|
]
|
|
809
837
|
},
|
|
810
838
|
{
|
|
811
|
-
"id":
|
|
839
|
+
"id": 65,
|
|
812
840
|
"name": "SkyAutonumericOptions",
|
|
813
841
|
"kind": 4194304,
|
|
814
842
|
"kindString": "Type alias",
|
|
@@ -818,7 +846,7 @@
|
|
|
818
846
|
},
|
|
819
847
|
"sources": [
|
|
820
848
|
{
|
|
821
|
-
"fileName": "projects/
|
|
849
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options.ts",
|
|
822
850
|
"line": 11,
|
|
823
851
|
"character": 12
|
|
824
852
|
}
|
|
@@ -835,11 +863,15 @@
|
|
|
835
863
|
"operator": "keyof",
|
|
836
864
|
"target": {
|
|
837
865
|
"type": "reference",
|
|
866
|
+
"qualifiedName": "AutoNumeric.PredefinedOptions",
|
|
867
|
+
"package": "autonumeric",
|
|
838
868
|
"name": "AutoNumeric.PredefinedOptions"
|
|
839
869
|
}
|
|
840
870
|
},
|
|
841
871
|
{
|
|
842
872
|
"type": "reference",
|
|
873
|
+
"qualifiedName": "AutoNumeric.Options",
|
|
874
|
+
"package": "autonumeric",
|
|
843
875
|
"name": "AutoNumeric.Options"
|
|
844
876
|
}
|
|
845
877
|
]
|
|
@@ -851,8 +883,8 @@
|
|
|
851
883
|
"title": "Classes",
|
|
852
884
|
"kind": 128,
|
|
853
885
|
"children": [
|
|
854
|
-
|
|
855
|
-
|
|
886
|
+
66,
|
|
887
|
+
60,
|
|
856
888
|
1
|
|
857
889
|
]
|
|
858
890
|
},
|
|
@@ -860,88 +892,83 @@
|
|
|
860
892
|
"title": "Type aliases",
|
|
861
893
|
"kind": 4194304,
|
|
862
894
|
"children": [
|
|
863
|
-
|
|
895
|
+
65
|
|
864
896
|
]
|
|
865
897
|
}
|
|
866
898
|
],
|
|
867
899
|
"sources": [
|
|
868
900
|
{
|
|
869
|
-
"fileName": "
|
|
901
|
+
"fileName": "index.ts",
|
|
870
902
|
"line": 1,
|
|
871
903
|
"character": 0
|
|
872
904
|
}
|
|
873
905
|
]
|
|
874
906
|
},
|
|
875
907
|
"codeExamples": [
|
|
876
|
-
{
|
|
877
|
-
"fileName": ".eslintrc.json",
|
|
878
|
-
"filePath": "/projects/sky-autonumeric/documentation/code-examples/.eslintrc.json",
|
|
879
|
-
"rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n"
|
|
880
|
-
},
|
|
881
908
|
{
|
|
882
909
|
"fileName": "autonumeric-demo.component.html",
|
|
883
|
-
"filePath": "/projects/
|
|
910
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.html",
|
|
884
911
|
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"autonumericInput.id\">\n Donation amount\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"donationAmount\"\n skyId\n type=\"text\"\n #autonumericInput=\"skyId\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
885
912
|
},
|
|
886
913
|
{
|
|
887
914
|
"fileName": "autonumeric-demo.component.ts",
|
|
888
|
-
"filePath": "/projects/
|
|
889
|
-
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from '
|
|
915
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.ts",
|
|
916
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from 'projects/sky-autonumeric/src/public-api';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent implements OnInit {\n public autonumericOptions: SkyAutonumericOptions;\n\n public formGroup: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n donationAmount: new FormControl(1234.5678, [Validators.required]),\n });\n\n this.autonumericOptions = {\n currencySymbol: ' €',\n currencySymbolPlacement: 's',\n decimalPlaces: 2,\n decimalCharacter: ',',\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
890
917
|
},
|
|
891
918
|
{
|
|
892
919
|
"fileName": "autonumeric-demo.module.ts",
|
|
893
|
-
"filePath": "/projects/
|
|
894
|
-
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from '
|
|
920
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.module.ts",
|
|
921
|
+
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from 'projects/sky-autonumeric/src/public-api';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyIdModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
895
922
|
},
|
|
896
923
|
{
|
|
897
924
|
"fileName": "autonumeric-demo.component.html",
|
|
898
|
-
"filePath": "/projects/
|
|
925
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.component.html",
|
|
899
926
|
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"autonumericInput.id\">\n Autonumeric value\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"donationAmount\"\n skyId\n type=\"text\"\n #autonumericInput=\"skyId\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
900
927
|
},
|
|
901
928
|
{
|
|
902
929
|
"fileName": "autonumeric-demo.component.ts",
|
|
903
|
-
"filePath": "/projects/
|
|
904
|
-
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from '
|
|
930
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.component.ts",
|
|
931
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from 'projects/sky-autonumeric/src/public-api';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent implements OnInit {\n public autonumericOptions: SkyAutonumericOptions;\n\n public formGroup: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n donationAmount: new FormControl(1234.5678, [Validators.required]),\n });\n\n this.autonumericOptions = {\n decimalCharacter: ',',\n decimalPlaces: 4,\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
905
932
|
},
|
|
906
933
|
{
|
|
907
934
|
"fileName": "autonumeric-demo.module.ts",
|
|
908
|
-
"filePath": "/projects/
|
|
909
|
-
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from '
|
|
935
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.module.ts",
|
|
936
|
+
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from 'projects/sky-autonumeric/src/public-api';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyIdModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
910
937
|
},
|
|
911
938
|
{
|
|
912
939
|
"fileName": "autonumeric-demo-options-provider.ts",
|
|
913
|
-
"filePath": "/projects/
|
|
914
|
-
"rawContents": "import { SkyAutonumericOptions } from '
|
|
940
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo-options-provider.ts",
|
|
941
|
+
"rawContents": "import { SkyAutonumericOptions } from 'projects/sky-autonumeric/src/public-api';\n\nimport { SkyAutonumericOptionsProvider } from 'projects/sky-autonumeric/src/public-api';\n\nexport class AutonumericDemoOptionsProvider extends SkyAutonumericOptionsProvider {\n constructor() {\n super();\n }\n\n public getConfig(): SkyAutonumericOptions {\n return {\n currencySymbol: ' €',\n currencySymbolPlacement: 's',\n decimalPlaces: 2,\n decimalCharacter: ',',\n digitGroupSeparator: '',\n };\n }\n}\n"
|
|
915
942
|
},
|
|
916
943
|
{
|
|
917
944
|
"fileName": "autonumeric-demo.component.html",
|
|
918
|
-
"filePath": "/projects/
|
|
945
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.component.html",
|
|
919
946
|
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"donationInput.id\">\n Donation amount\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"donationAmount\"\n skyId\n type=\"text\"\n #donationInput=\"skyId\"\n [skyAutonumeric]=\"donationOptions\"\n />\n </sky-input-box>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"pledgeInput.id\">\n Pledge amount\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"pledgeAmount\"\n skyId\n type=\"text\"\n #pledgeInput=\"skyId\"\n [skyAutonumeric]=\"pledgeOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
920
947
|
},
|
|
921
948
|
{
|
|
922
949
|
"fileName": "autonumeric-demo.component.ts",
|
|
923
|
-
"filePath": "/projects/
|
|
924
|
-
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from '
|
|
950
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.component.ts",
|
|
951
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from 'projects/sky-autonumeric/src/public-api';\n\nimport { SkyAutonumericOptionsProvider } from 'projects/sky-autonumeric/src/public-api';\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 implements OnInit {\n public donationOptions: SkyAutonumericOptions = {};\n\n public formGroup: FormGroup;\n\n public pledgeOptions: SkyAutonumericOptions = {\n decimalPlaces: 0,\n };\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n donationAmount: new FormControl(1234.5678, [Validators.required]),\n pledgeAmount: new FormControl(2345.6789, [Validators.required]),\n });\n }\n}\n"
|
|
925
952
|
},
|
|
926
953
|
{
|
|
927
954
|
"fileName": "autonumeric-demo.module.ts",
|
|
928
|
-
"filePath": "/projects/
|
|
929
|
-
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from '
|
|
955
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.module.ts",
|
|
956
|
+
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from 'projects/sky-autonumeric/src/public-api';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyIdModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
930
957
|
},
|
|
931
958
|
{
|
|
932
959
|
"fileName": "autonumeric-demo.component.html",
|
|
933
|
-
"filePath": "/projects/
|
|
960
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.component.html",
|
|
934
961
|
"rawContents": "<form [formGroup]=\"formGroup\" novalidate>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"autonumericInput.id\">\n Donation amount\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"donationAmount\"\n skyId\n type=\"text\"\n #autonumericInput=\"skyId\"\n [skyAutonumeric]=\"autonumericOptions\"\n />\n </sky-input-box>\n</form>\n"
|
|
935
962
|
},
|
|
936
963
|
{
|
|
937
964
|
"fileName": "autonumeric-demo.component.ts",
|
|
938
|
-
"filePath": "/projects/
|
|
939
|
-
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from '
|
|
965
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.component.ts",
|
|
966
|
+
"rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup,\n Validators,\n} from '@angular/forms';\n\nimport { SkyAutonumericOptions } from 'projects/sky-autonumeric/src/public-api';\n\n@Component({\n selector: 'app-autonumeric-demo',\n templateUrl: './autonumeric-demo.component.html',\n})\nexport class AutonumericDemoComponent implements OnInit {\n public autonumericOptions: SkyAutonumericOptions;\n\n public formGroup: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.formGroup = this.formBuilder.group({\n donationAmount: new FormControl(1234.5678, [Validators.required]),\n });\n\n this.autonumericOptions = 'Chinese';\n }\n}\n"
|
|
940
967
|
},
|
|
941
968
|
{
|
|
942
969
|
"fileName": "autonumeric-demo.module.ts",
|
|
943
|
-
"filePath": "/projects/
|
|
944
|
-
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from '
|
|
970
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.module.ts",
|
|
971
|
+
"rawContents": "import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyAutonumericModule } from 'projects/sky-autonumeric/src/public-api';\n\nimport { SkyIdModule } from '@skyux/core';\n\nimport { SkyInputBoxModule } from '@skyux/forms';\n\nimport { AutonumericDemoComponent } from './autonumeric-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyAutonumericModule,\n SkyIdModule,\n SkyInputBoxModule,\n ],\n declarations: [AutonumericDemoComponent],\n exports: [AutonumericDemoComponent],\n})\nexport class AutonumericDemoModule {}\n"
|
|
945
972
|
}
|
|
946
973
|
]
|
|
947
|
-
}
|
|
974
|
+
}
|
package/esm2015/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './lib/modules/autonumeric/autonumeric-options-provider';
|
|
2
|
+
export * from './lib/modules/autonumeric/autonumeric-options';
|
|
3
|
+
export * from './lib/modules/autonumeric/autonumeric.module';
|
|
4
|
+
// Components and directives must be exported to support Angular's "partial" Ivy compiler.
|
|
5
|
+
// Obscure names are used to indicate types are not part of the public API.
|
|
6
|
+
export { SkyAutonumericDirective as λ1 } from './lib/modules/autonumeric/autonumeric.directive';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/autonumeric/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wDAAwD,CAAC;AACvE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAE7D,0FAA0F;AAC1F,2EAA2E;AAC3E,OAAO,EAAE,uBAAuB,IAAI,EAAE,EAAE,MAAM,iDAAiD,CAAC","sourcesContent":["export * from './lib/modules/autonumeric/autonumeric-options-provider';\nexport * from './lib/modules/autonumeric/autonumeric-options';\nexport * from './lib/modules/autonumeric/autonumeric.module';\n\n// Components and directives must be exported to support Angular's \"partial\" Ivy compiler.\n// Obscure names are used to indicate types are not part of the public API.\nexport { SkyAutonumericDirective as λ1 } from './lib/modules/autonumeric/autonumeric.directive';\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Provides options to the underlying [autoNumeric utility](https://github.com/autoNumeric/autoNumeric).
|
|
5
|
+
* This can set global options on multiple input fields.
|
|
6
|
+
*/
|
|
7
|
+
export class SkyAutonumericOptionsProvider {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the value for a settings object to pass to the autoNumeric utility.
|
|
10
|
+
* This overrides any default options specified by the `skyAutonumeric` attribute.
|
|
11
|
+
*/
|
|
12
|
+
getConfig() {
|
|
13
|
+
return {};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
SkyAutonumericOptionsProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAutonumericOptionsProvider, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
+
SkyAutonumericOptionsProvider.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAutonumericOptionsProvider, providedIn: 'root' });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAutonumericOptionsProvider, decorators: [{
|
|
19
|
+
type: Injectable,
|
|
20
|
+
args: [{
|
|
21
|
+
providedIn: 'root',
|
|
22
|
+
}]
|
|
23
|
+
}] });
|
|
24
|
+
//# sourceMappingURL=autonumeric-options-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autonumeric-options-provider.js","sourceRoot":"","sources":["../../../../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;AAI3C;;;GAGG;AAIH,MAAM,OAAO,6BAA6B;IACxC;;;OAGG;IACI,SAAS;QACd,OAAO,EAAE,CAAC;IACZ,CAAC;;2HAPU,6BAA6B;+HAA7B,6BAA6B,cAF5B,MAAM;4FAEP,6BAA6B;kBAHzC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { SkyAutonumericOptions } from './autonumeric-options';\n\n/**\n * Provides options to the underlying [autoNumeric utility](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 * Specifies the value for a settings object to pass to the autoNumeric utility.\n * This overrides any default options specified by the `skyAutonumeric` attribute.\n */\n public getConfig(): SkyAutonumericOptions {\n return {};\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autonumeric-options.js","sourceRoot":"","sources":["../../../../../../../../libs/components/autonumeric/src/lib/modules/autonumeric/autonumeric-options.ts"],"names":[],"mappings":"","sourcesContent":["import AutoNumeric from 'autonumeric';\n\n/**\n * Specifies custom options to provide directly to the underlying [autoNumeric utility](https://github.com/autoNumeric/autoNumeric).\n * The value can be set to `string`, which is an alias that represents\n * a [set of predefined set of options](https://github.com/autoNumeric/autoNumeric#predefined-options)\n * for a currency or language, or `Options`, which is a\n * [custom set of options](https://github.com/autoNumeric/autoNumeric#options)\n * that override any default options that the `skyAutonumeric` attribute specifies.\n */\nexport type SkyAutonumericOptions =\n | string\n | keyof AutoNumeric.PredefinedOptions\n | AutoNumeric.Options;\n"]}
|