@skyux/autonumeric 5.0.0 → 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 -67
- package/bundles/skyux-autonumeric.umd.js +33 -60
- package/documentation.json +113 -84
- 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 +25 -50
- 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 +5 -5
- 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 -181
- package/esm2015/modules/autonumeric/autonumeric.module.js +0 -33
- package/esm2015/public-api.js +0 -7
- package/public-api.d.ts +0 -4
package/documentation.json
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"typedoc": {
|
|
9
9
|
"id": 0,
|
|
10
10
|
"name": "@skyux/autonumeric",
|
|
11
|
-
"kind":
|
|
11
|
+
"kind": 1,
|
|
12
12
|
"kindString": "Project",
|
|
13
13
|
"flags": {},
|
|
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,30 +24,32 @@
|
|
|
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": {
|
|
30
|
-
"obj": "{\n declarations: [
|
|
32
|
+
"obj": "{\n declarations: [SkyAutonumericDirective],\n imports: [CommonModule, FormsModule, ReactiveFormsModule],\n exports: [SkyAutonumericDirective],\n}"
|
|
31
33
|
}
|
|
32
34
|
}
|
|
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/
|
|
69
|
-
"line":
|
|
70
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.module.ts",
|
|
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,37 +87,39 @@
|
|
|
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": {
|
|
91
|
-
"options": "{\n providedIn: 'root'
|
|
95
|
+
"options": "{\n providedIn: 'root',\n}"
|
|
92
96
|
}
|
|
93
97
|
}
|
|
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/
|
|
128
|
-
"line":
|
|
131
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options-provider.ts",
|
|
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,21 +157,21 @@
|
|
|
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/
|
|
170
|
-
"line":
|
|
173
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options-provider.ts",
|
|
174
|
+
"line": 12,
|
|
171
175
|
"character": 13
|
|
172
176
|
}
|
|
173
177
|
]
|
|
@@ -186,10 +190,12 @@
|
|
|
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": {
|
|
192
|
-
"obj": "{\n selector: 'input[skyAutonumeric]',\n providers: [
|
|
198
|
+
"obj": "{\n selector: 'input[skyAutonumeric]',\n providers: [SKY_AUTONUMERIC_VALUE_ACCESSOR, SKY_AUTONUMERIC_VALIDATOR],\n}"
|
|
193
199
|
}
|
|
194
200
|
}
|
|
195
201
|
],
|
|
@@ -202,8 +208,8 @@
|
|
|
202
208
|
"flags": {},
|
|
203
209
|
"sources": [
|
|
204
210
|
{
|
|
205
|
-
"fileName": "projects/
|
|
206
|
-
"line":
|
|
211
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
212
|
+
"line": 74,
|
|
207
213
|
"character": 2
|
|
208
214
|
}
|
|
209
215
|
],
|
|
@@ -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
|
}
|
|
@@ -283,14 +295,13 @@
|
|
|
283
295
|
"flags": {
|
|
284
296
|
"isPublic": true
|
|
285
297
|
},
|
|
286
|
-
"comment": {
|
|
287
|
-
"shortText": "Assigns the name of a property from `SkyAutonumericOptionsProvider`."
|
|
288
|
-
},
|
|
289
298
|
"decorators": [
|
|
290
299
|
{
|
|
291
300
|
"name": "Input",
|
|
292
301
|
"type": {
|
|
293
302
|
"type": "reference",
|
|
303
|
+
"qualifiedName": "InputDecorator",
|
|
304
|
+
"package": "@angular/core",
|
|
294
305
|
"name": "Input"
|
|
295
306
|
},
|
|
296
307
|
"arguments": {}
|
|
@@ -298,8 +309,8 @@
|
|
|
298
309
|
],
|
|
299
310
|
"sources": [
|
|
300
311
|
{
|
|
301
|
-
"fileName": "projects/
|
|
302
|
-
"line":
|
|
312
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
313
|
+
"line": 61,
|
|
303
314
|
"character": 13
|
|
304
315
|
}
|
|
305
316
|
],
|
|
@@ -322,7 +333,7 @@
|
|
|
322
333
|
"flags": {},
|
|
323
334
|
"type": {
|
|
324
335
|
"type": "reference",
|
|
325
|
-
"id":
|
|
336
|
+
"id": 65,
|
|
326
337
|
"name": "SkyAutonumericOptions"
|
|
327
338
|
}
|
|
328
339
|
}
|
|
@@ -344,8 +355,8 @@
|
|
|
344
355
|
},
|
|
345
356
|
"sources": [
|
|
346
357
|
{
|
|
347
|
-
"fileName": "projects/
|
|
348
|
-
"line":
|
|
358
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
359
|
+
"line": 110,
|
|
349
360
|
"character": 9
|
|
350
361
|
}
|
|
351
362
|
],
|
|
@@ -381,8 +392,8 @@
|
|
|
381
392
|
},
|
|
382
393
|
"sources": [
|
|
383
394
|
{
|
|
384
|
-
"fileName": "projects/
|
|
385
|
-
"line":
|
|
395
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
396
|
+
"line": 83,
|
|
386
397
|
"character": 9
|
|
387
398
|
}
|
|
388
399
|
],
|
|
@@ -421,6 +432,8 @@
|
|
|
421
432
|
"name": "HostListener",
|
|
422
433
|
"type": {
|
|
423
434
|
"type": "reference",
|
|
435
|
+
"qualifiedName": "HostListenerDecorator",
|
|
436
|
+
"package": "@angular/core",
|
|
424
437
|
"name": "HostListener"
|
|
425
438
|
},
|
|
426
439
|
"arguments": {
|
|
@@ -430,8 +443,8 @@
|
|
|
430
443
|
],
|
|
431
444
|
"sources": [
|
|
432
445
|
{
|
|
433
|
-
"fileName": "projects/
|
|
434
|
-
"line":
|
|
446
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
447
|
+
"line": 172,
|
|
435
448
|
"character": 9
|
|
436
449
|
}
|
|
437
450
|
],
|
|
@@ -459,8 +472,8 @@
|
|
|
459
472
|
},
|
|
460
473
|
"sources": [
|
|
461
474
|
{
|
|
462
|
-
"fileName": "projects/
|
|
463
|
-
"line":
|
|
475
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
476
|
+
"line": 163,
|
|
464
477
|
"character": 9
|
|
465
478
|
}
|
|
466
479
|
],
|
|
@@ -541,8 +554,8 @@
|
|
|
541
554
|
},
|
|
542
555
|
"sources": [
|
|
543
556
|
{
|
|
544
|
-
"fileName": "projects/
|
|
545
|
-
"line":
|
|
557
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
558
|
+
"line": 167,
|
|
546
559
|
"character": 9
|
|
547
560
|
}
|
|
548
561
|
],
|
|
@@ -610,8 +623,8 @@
|
|
|
610
623
|
},
|
|
611
624
|
"sources": [
|
|
612
625
|
{
|
|
613
|
-
"fileName": "projects/
|
|
614
|
-
"line":
|
|
626
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
627
|
+
"line": 118,
|
|
615
628
|
"character": 9
|
|
616
629
|
}
|
|
617
630
|
],
|
|
@@ -663,8 +676,8 @@
|
|
|
663
676
|
},
|
|
664
677
|
"sources": [
|
|
665
678
|
{
|
|
666
|
-
"fileName": "projects/
|
|
667
|
-
"line":
|
|
679
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
680
|
+
"line": 143,
|
|
668
681
|
"character": 9
|
|
669
682
|
}
|
|
670
683
|
],
|
|
@@ -684,12 +697,16 @@
|
|
|
684
697
|
"flags": {},
|
|
685
698
|
"type": {
|
|
686
699
|
"type": "reference",
|
|
700
|
+
"qualifiedName": "AbstractControl",
|
|
701
|
+
"package": "@angular/forms",
|
|
687
702
|
"name": "AbstractControl"
|
|
688
703
|
}
|
|
689
704
|
}
|
|
690
705
|
],
|
|
691
706
|
"type": {
|
|
692
707
|
"type": "reference",
|
|
708
|
+
"qualifiedName": "ValidationErrors",
|
|
709
|
+
"package": "@angular/forms",
|
|
693
710
|
"name": "ValidationErrors"
|
|
694
711
|
},
|
|
695
712
|
"implementationOf": {
|
|
@@ -713,8 +730,8 @@
|
|
|
713
730
|
},
|
|
714
731
|
"sources": [
|
|
715
732
|
{
|
|
716
|
-
"fileName": "projects/
|
|
717
|
-
"line":
|
|
733
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
734
|
+
"line": 122,
|
|
718
735
|
"character": 9
|
|
719
736
|
}
|
|
720
737
|
],
|
|
@@ -786,32 +803,40 @@
|
|
|
786
803
|
],
|
|
787
804
|
"sources": [
|
|
788
805
|
{
|
|
789
|
-
"fileName": "projects/
|
|
790
|
-
"line":
|
|
806
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric.directive.ts",
|
|
807
|
+
"line": 54,
|
|
791
808
|
"character": 13
|
|
792
809
|
}
|
|
793
810
|
],
|
|
794
811
|
"implementedTypes": [
|
|
795
812
|
{
|
|
796
813
|
"type": "reference",
|
|
814
|
+
"qualifiedName": "OnInit",
|
|
815
|
+
"package": "@angular/core",
|
|
797
816
|
"name": "OnInit"
|
|
798
817
|
},
|
|
799
818
|
{
|
|
800
819
|
"type": "reference",
|
|
820
|
+
"qualifiedName": "OnDestroy",
|
|
821
|
+
"package": "@angular/core",
|
|
801
822
|
"name": "OnDestroy"
|
|
802
823
|
},
|
|
803
824
|
{
|
|
804
825
|
"type": "reference",
|
|
826
|
+
"qualifiedName": "ControlValueAccessor",
|
|
827
|
+
"package": "@angular/forms",
|
|
805
828
|
"name": "ControlValueAccessor"
|
|
806
829
|
},
|
|
807
830
|
{
|
|
808
831
|
"type": "reference",
|
|
832
|
+
"qualifiedName": "Validator",
|
|
833
|
+
"package": "@angular/forms",
|
|
809
834
|
"name": "Validator"
|
|
810
835
|
}
|
|
811
836
|
]
|
|
812
837
|
},
|
|
813
838
|
{
|
|
814
|
-
"id":
|
|
839
|
+
"id": 65,
|
|
815
840
|
"name": "SkyAutonumericOptions",
|
|
816
841
|
"kind": 4194304,
|
|
817
842
|
"kindString": "Type alias",
|
|
@@ -821,7 +846,7 @@
|
|
|
821
846
|
},
|
|
822
847
|
"sources": [
|
|
823
848
|
{
|
|
824
|
-
"fileName": "projects/
|
|
849
|
+
"fileName": "projects/autonumeric/src/modules/autonumeric/autonumeric-options.ts",
|
|
825
850
|
"line": 11,
|
|
826
851
|
"character": 12
|
|
827
852
|
}
|
|
@@ -838,11 +863,15 @@
|
|
|
838
863
|
"operator": "keyof",
|
|
839
864
|
"target": {
|
|
840
865
|
"type": "reference",
|
|
866
|
+
"qualifiedName": "AutoNumeric.PredefinedOptions",
|
|
867
|
+
"package": "autonumeric",
|
|
841
868
|
"name": "AutoNumeric.PredefinedOptions"
|
|
842
869
|
}
|
|
843
870
|
},
|
|
844
871
|
{
|
|
845
872
|
"type": "reference",
|
|
873
|
+
"qualifiedName": "AutoNumeric.Options",
|
|
874
|
+
"package": "autonumeric",
|
|
846
875
|
"name": "AutoNumeric.Options"
|
|
847
876
|
}
|
|
848
877
|
]
|
|
@@ -854,8 +883,8 @@
|
|
|
854
883
|
"title": "Classes",
|
|
855
884
|
"kind": 128,
|
|
856
885
|
"children": [
|
|
857
|
-
|
|
858
|
-
|
|
886
|
+
66,
|
|
887
|
+
60,
|
|
859
888
|
1
|
|
860
889
|
]
|
|
861
890
|
},
|
|
@@ -863,13 +892,13 @@
|
|
|
863
892
|
"title": "Type aliases",
|
|
864
893
|
"kind": 4194304,
|
|
865
894
|
"children": [
|
|
866
|
-
|
|
895
|
+
65
|
|
867
896
|
]
|
|
868
897
|
}
|
|
869
898
|
],
|
|
870
899
|
"sources": [
|
|
871
900
|
{
|
|
872
|
-
"fileName": "
|
|
901
|
+
"fileName": "index.ts",
|
|
873
902
|
"line": 1,
|
|
874
903
|
"character": 0
|
|
875
904
|
}
|
|
@@ -878,68 +907,68 @@
|
|
|
878
907
|
"codeExamples": [
|
|
879
908
|
{
|
|
880
909
|
"fileName": "autonumeric-demo.component.html",
|
|
881
|
-
"filePath": "/projects/
|
|
882
|
-
"rawContents": "<form
|
|
910
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/currency/autonumeric-demo.component.html",
|
|
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"
|
|
883
912
|
},
|
|
884
913
|
{
|
|
885
914
|
"fileName": "autonumeric-demo.component.ts",
|
|
886
|
-
"filePath": "/projects/
|
|
887
|
-
"rawContents": "import {
|
|
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"
|
|
888
917
|
},
|
|
889
918
|
{
|
|
890
919
|
"fileName": "autonumeric-demo.module.ts",
|
|
891
|
-
"filePath": "/projects/
|
|
892
|
-
"rawContents": "import {
|
|
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"
|
|
893
922
|
},
|
|
894
923
|
{
|
|
895
924
|
"fileName": "autonumeric-demo.component.html",
|
|
896
|
-
"filePath": "/projects/
|
|
897
|
-
"rawContents": "<form
|
|
925
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/international-formatting/autonumeric-demo.component.html",
|
|
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"
|
|
898
927
|
},
|
|
899
928
|
{
|
|
900
929
|
"fileName": "autonumeric-demo.component.ts",
|
|
901
|
-
"filePath": "/projects/
|
|
902
|
-
"rawContents": "import {
|
|
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"
|
|
903
932
|
},
|
|
904
933
|
{
|
|
905
934
|
"fileName": "autonumeric-demo.module.ts",
|
|
906
|
-
"filePath": "/projects/
|
|
907
|
-
"rawContents": "import {
|
|
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"
|
|
908
937
|
},
|
|
909
938
|
{
|
|
910
939
|
"fileName": "autonumeric-demo-options-provider.ts",
|
|
911
|
-
"filePath": "/projects/
|
|
912
|
-
"rawContents": "import {
|
|
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"
|
|
913
942
|
},
|
|
914
943
|
{
|
|
915
944
|
"fileName": "autonumeric-demo.component.html",
|
|
916
|
-
"filePath": "/projects/
|
|
917
|
-
"rawContents": "<form
|
|
945
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/options-provider/autonumeric-demo.component.html",
|
|
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"
|
|
918
947
|
},
|
|
919
948
|
{
|
|
920
949
|
"fileName": "autonumeric-demo.component.ts",
|
|
921
|
-
"filePath": "/projects/
|
|
922
|
-
"rawContents": "import {
|
|
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"
|
|
923
952
|
},
|
|
924
953
|
{
|
|
925
954
|
"fileName": "autonumeric-demo.module.ts",
|
|
926
|
-
"filePath": "/projects/
|
|
927
|
-
"rawContents": "import {
|
|
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"
|
|
928
957
|
},
|
|
929
958
|
{
|
|
930
959
|
"fileName": "autonumeric-demo.component.html",
|
|
931
|
-
"filePath": "/projects/
|
|
932
|
-
"rawContents": "<form
|
|
960
|
+
"filePath": "/projects/autonumeric/documentation/code-examples/autonumeric/preset/autonumeric-demo.component.html",
|
|
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"
|
|
933
962
|
},
|
|
934
963
|
{
|
|
935
964
|
"fileName": "autonumeric-demo.component.ts",
|
|
936
|
-
"filePath": "/projects/
|
|
937
|
-
"rawContents": "import {
|
|
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"
|
|
938
967
|
},
|
|
939
968
|
{
|
|
940
969
|
"fileName": "autonumeric-demo.module.ts",
|
|
941
|
-
"filePath": "/projects/
|
|
942
|
-
"rawContents": "import {
|
|
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"
|
|
943
972
|
}
|
|
944
973
|
]
|
|
945
|
-
}
|
|
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"]}
|