@skyux/inline-form 5.0.0-alpha.0 → 5.0.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/bundles/skyux-inline-form.umd.js +160 -335
- package/bundles/skyux-inline-form.umd.js.map +1 -1
- package/documentation.json +1084 -0
- package/esm2015/modules/inline-form/animations/slide-dissolve.js +1 -1
- package/esm2015/modules/inline-form/inline-form-adapter.service.js +10 -8
- package/esm2015/modules/inline-form/inline-form.component.js +37 -37
- package/esm2015/modules/inline-form/inline-form.module.js +25 -24
- package/esm2015/modules/inline-form/types/inline-form-button-action.js +2 -1
- package/esm2015/modules/inline-form/types/inline-form-button-config.js +2 -1
- package/esm2015/modules/inline-form/types/inline-form-button-layout.js +1 -1
- package/esm2015/modules/inline-form/types/inline-form-close-args.js +2 -1
- package/esm2015/modules/inline-form/types/inline-form-config.js +2 -1
- package/esm2015/modules/shared/sky-inline-form-resources.module.js +41 -0
- package/esm2015/public-api.js +10 -0
- package/esm2015/skyux-inline-form.js +2 -7
- package/fesm2015/skyux-inline-form.js +140 -121
- package/fesm2015/skyux-inline-form.js.map +1 -1
- package/modules/inline-form/inline-form-adapter.service.d.ts +3 -0
- package/modules/inline-form/inline-form.component.d.ts +3 -0
- package/modules/inline-form/inline-form.module.d.ts +7 -0
- package/modules/shared/sky-inline-form-resources.module.d.ts +14 -0
- package/package.json +9 -24
- package/{public_api.d.ts → public-api.d.ts} +1 -0
- package/skyux-inline-form.d.ts +2 -6
- package/CHANGELOG.md +0 -53
- package/bundles/skyux-inline-form.umd.min.js +0 -16
- package/bundles/skyux-inline-form.umd.min.js.map +0 -1
- package/esm2015/modules/shared/inline-form-resources.module.js +0 -20
- package/esm2015/plugin-resources/inline-form-resources-provider.js +0 -16
- package/esm2015/public_api.js +0 -3
- package/esm5/modules/inline-form/animations/slide-dissolve.js +0 -30
- package/esm5/modules/inline-form/inline-form-adapter.service.js +0 -64
- package/esm5/modules/inline-form/inline-form.component.js +0 -238
- package/esm5/modules/inline-form/inline-form.module.js +0 -32
- package/esm5/modules/inline-form/types/inline-form-button-action.js +0 -1
- package/esm5/modules/inline-form/types/inline-form-button-config.js +0 -1
- package/esm5/modules/inline-form/types/inline-form-button-layout.js +0 -9
- package/esm5/modules/inline-form/types/inline-form-close-args.js +0 -1
- package/esm5/modules/inline-form/types/inline-form-config.js +0 -1
- package/esm5/modules/shared/inline-form-resources.module.js +0 -23
- package/esm5/plugin-resources/inline-form-resources-provider.js +0 -17
- package/esm5/public_api.js +0 -3
- package/esm5/skyux-inline-form.js +0 -10
- package/fesm5/skyux-inline-form.js +0 -397
- package/fesm5/skyux-inline-form.js.map +0 -1
- package/modules/shared/inline-form-resources.module.d.ts +0 -2
- package/plugin-resources/inline-form-resources-provider.d.ts +0 -5
- package/skyux-inline-form.metadata.json +0 -1
- package/src/assets/img/anatomy.png +0 -0
- package/src/assets/locales/resources_en_US.json +0 -18
|
@@ -0,0 +1,1084 @@
|
|
|
1
|
+
{
|
|
2
|
+
"anchorIds": {
|
|
3
|
+
"SkyInlineFormButtonLayout": "enumeration-skyinlineformbuttonlayout",
|
|
4
|
+
"SkyInlineFormModule": "class-skyinlineformmodule",
|
|
5
|
+
"SkyInlineFormComponent": "class-skyinlineformcomponent",
|
|
6
|
+
"SkyInlineFormButtonConfig": "interface-skyinlineformbuttonconfig",
|
|
7
|
+
"SkyInlineFormCloseArgs": "interface-skyinlineformcloseargs",
|
|
8
|
+
"SkyInlineFormConfig": "interface-skyinlineformconfig"
|
|
9
|
+
},
|
|
10
|
+
"typedoc": {
|
|
11
|
+
"id": 0,
|
|
12
|
+
"name": "@skyux/inline-form",
|
|
13
|
+
"kind": 1,
|
|
14
|
+
"kindString": "Project",
|
|
15
|
+
"flags": {},
|
|
16
|
+
"originalName": "",
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"id": 53,
|
|
20
|
+
"name": "SkyInlineFormButtonLayout",
|
|
21
|
+
"kind": 8,
|
|
22
|
+
"kindString": "Enumeration",
|
|
23
|
+
"flags": {},
|
|
24
|
+
"children": [
|
|
25
|
+
{
|
|
26
|
+
"id": 54,
|
|
27
|
+
"name": "Custom",
|
|
28
|
+
"kind": 16,
|
|
29
|
+
"kindString": "Enumeration member",
|
|
30
|
+
"flags": {},
|
|
31
|
+
"sources": [
|
|
32
|
+
{
|
|
33
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-layout.ts",
|
|
34
|
+
"line": 2,
|
|
35
|
+
"character": 2
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"defaultValue": "0"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": 55,
|
|
42
|
+
"name": "DoneCancel",
|
|
43
|
+
"kind": 16,
|
|
44
|
+
"kindString": "Enumeration member",
|
|
45
|
+
"flags": {},
|
|
46
|
+
"sources": [
|
|
47
|
+
{
|
|
48
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-layout.ts",
|
|
49
|
+
"line": 3,
|
|
50
|
+
"character": 2
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"defaultValue": "1"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": 56,
|
|
57
|
+
"name": "DoneDeleteCancel",
|
|
58
|
+
"kind": 16,
|
|
59
|
+
"kindString": "Enumeration member",
|
|
60
|
+
"flags": {},
|
|
61
|
+
"sources": [
|
|
62
|
+
{
|
|
63
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-layout.ts",
|
|
64
|
+
"line": 4,
|
|
65
|
+
"character": 2
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"defaultValue": "2"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": 57,
|
|
72
|
+
"name": "SaveCancel",
|
|
73
|
+
"kind": 16,
|
|
74
|
+
"kindString": "Enumeration member",
|
|
75
|
+
"flags": {},
|
|
76
|
+
"sources": [
|
|
77
|
+
{
|
|
78
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-layout.ts",
|
|
79
|
+
"line": 5,
|
|
80
|
+
"character": 2
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"defaultValue": "3"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": 58,
|
|
87
|
+
"name": "SaveDeleteCancel",
|
|
88
|
+
"kind": 16,
|
|
89
|
+
"kindString": "Enumeration member",
|
|
90
|
+
"flags": {},
|
|
91
|
+
"sources": [
|
|
92
|
+
{
|
|
93
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-layout.ts",
|
|
94
|
+
"line": 6,
|
|
95
|
+
"character": 2
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"defaultValue": "4"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"groups": [
|
|
102
|
+
{
|
|
103
|
+
"title": "Enumeration members",
|
|
104
|
+
"kind": 16,
|
|
105
|
+
"children": [
|
|
106
|
+
54,
|
|
107
|
+
55,
|
|
108
|
+
56,
|
|
109
|
+
57,
|
|
110
|
+
58
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"sources": [
|
|
115
|
+
{
|
|
116
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-layout.ts",
|
|
117
|
+
"line": 1,
|
|
118
|
+
"character": 12
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": 39,
|
|
124
|
+
"name": "SkyInlineFormModule",
|
|
125
|
+
"kind": 128,
|
|
126
|
+
"kindString": "Class",
|
|
127
|
+
"flags": {},
|
|
128
|
+
"decorators": [
|
|
129
|
+
{
|
|
130
|
+
"name": "NgModule",
|
|
131
|
+
"type": {
|
|
132
|
+
"type": "reference",
|
|
133
|
+
"name": "NgModule"
|
|
134
|
+
},
|
|
135
|
+
"arguments": {
|
|
136
|
+
"obj": "{\n declarations: [\n SkyInlineFormComponent\n ],\n imports: [\n CommonModule,\n SkyInlineFormResourcesModule\n ],\n exports: [\n SkyInlineFormComponent\n ]\n}"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"children": [
|
|
141
|
+
{
|
|
142
|
+
"id": 40,
|
|
143
|
+
"name": "constructor",
|
|
144
|
+
"kind": 512,
|
|
145
|
+
"kindString": "Constructor",
|
|
146
|
+
"flags": {},
|
|
147
|
+
"signatures": [
|
|
148
|
+
{
|
|
149
|
+
"id": 41,
|
|
150
|
+
"name": "new SkyInlineFormModule",
|
|
151
|
+
"kind": 16384,
|
|
152
|
+
"kindString": "Constructor signature",
|
|
153
|
+
"flags": {},
|
|
154
|
+
"type": {
|
|
155
|
+
"type": "reference",
|
|
156
|
+
"id": 39,
|
|
157
|
+
"name": "SkyInlineFormModule"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"groups": [
|
|
164
|
+
{
|
|
165
|
+
"title": "Constructors",
|
|
166
|
+
"kind": 512,
|
|
167
|
+
"children": [
|
|
168
|
+
40
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"sources": [
|
|
173
|
+
{
|
|
174
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.module.ts",
|
|
175
|
+
"line": 29,
|
|
176
|
+
"character": 13
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"id": 1,
|
|
182
|
+
"name": "SkyInlineFormComponent",
|
|
183
|
+
"kind": 128,
|
|
184
|
+
"kindString": "Class",
|
|
185
|
+
"flags": {},
|
|
186
|
+
"comment": {
|
|
187
|
+
"shortText": "Renders form content in the current view instead of a separate modal."
|
|
188
|
+
},
|
|
189
|
+
"decorators": [
|
|
190
|
+
{
|
|
191
|
+
"name": "Component",
|
|
192
|
+
"type": {
|
|
193
|
+
"type": "reference",
|
|
194
|
+
"name": "Component"
|
|
195
|
+
},
|
|
196
|
+
"arguments": {
|
|
197
|
+
"obj": "{\n selector: 'sky-inline-form',\n templateUrl: './inline-form.component.html',\n styleUrls: ['./inline-form.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n SkyInlineFormAdapterService\n ],\n animations: [ skySlideDissolve ]\n}"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"children": [
|
|
202
|
+
{
|
|
203
|
+
"id": 2,
|
|
204
|
+
"name": "constructor",
|
|
205
|
+
"kind": 512,
|
|
206
|
+
"kindString": "Constructor",
|
|
207
|
+
"flags": {},
|
|
208
|
+
"sources": [
|
|
209
|
+
{
|
|
210
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
211
|
+
"line": 127,
|
|
212
|
+
"character": 2
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"signatures": [
|
|
216
|
+
{
|
|
217
|
+
"id": 3,
|
|
218
|
+
"name": "SkyInlineFormComponent",
|
|
219
|
+
"kind": 16384,
|
|
220
|
+
"kindString": "Constructor signature",
|
|
221
|
+
"flags": {},
|
|
222
|
+
"parameters": [
|
|
223
|
+
{
|
|
224
|
+
"id": 4,
|
|
225
|
+
"name": "adapter",
|
|
226
|
+
"kind": 32768,
|
|
227
|
+
"kindString": "Parameter",
|
|
228
|
+
"flags": {},
|
|
229
|
+
"type": {
|
|
230
|
+
"type": "reference",
|
|
231
|
+
"name": "SkyInlineFormAdapterService"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": 5,
|
|
236
|
+
"name": "elementRef",
|
|
237
|
+
"kind": 32768,
|
|
238
|
+
"kindString": "Parameter",
|
|
239
|
+
"flags": {},
|
|
240
|
+
"type": {
|
|
241
|
+
"type": "reference",
|
|
242
|
+
"typeArguments": [
|
|
243
|
+
{
|
|
244
|
+
"type": "intrinsic",
|
|
245
|
+
"name": "any"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"name": "ElementRef"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"id": 6,
|
|
253
|
+
"name": "resourcesService",
|
|
254
|
+
"kind": 32768,
|
|
255
|
+
"kindString": "Parameter",
|
|
256
|
+
"flags": {},
|
|
257
|
+
"type": {
|
|
258
|
+
"type": "reference",
|
|
259
|
+
"name": "SkyLibResourcesService"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"id": 7,
|
|
264
|
+
"name": "skyAppWindowRef",
|
|
265
|
+
"kind": 32768,
|
|
266
|
+
"kindString": "Parameter",
|
|
267
|
+
"flags": {},
|
|
268
|
+
"type": {
|
|
269
|
+
"type": "reference",
|
|
270
|
+
"name": "SkyAppWindowRef"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"id": 8,
|
|
275
|
+
"name": "changeDetectorRef",
|
|
276
|
+
"kind": 32768,
|
|
277
|
+
"kindString": "Parameter",
|
|
278
|
+
"flags": {},
|
|
279
|
+
"type": {
|
|
280
|
+
"type": "reference",
|
|
281
|
+
"name": "ChangeDetectorRef"
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"type": {
|
|
286
|
+
"type": "reference",
|
|
287
|
+
"id": 1,
|
|
288
|
+
"name": "SkyInlineFormComponent"
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": 19,
|
|
295
|
+
"name": "buttons",
|
|
296
|
+
"kind": 1024,
|
|
297
|
+
"kindString": "Property",
|
|
298
|
+
"flags": {
|
|
299
|
+
"isPublic": true
|
|
300
|
+
},
|
|
301
|
+
"sources": [
|
|
302
|
+
{
|
|
303
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
304
|
+
"line": 121,
|
|
305
|
+
"character": 9
|
|
306
|
+
}
|
|
307
|
+
],
|
|
308
|
+
"type": {
|
|
309
|
+
"type": "array",
|
|
310
|
+
"elementType": {
|
|
311
|
+
"type": "reference",
|
|
312
|
+
"id": 43,
|
|
313
|
+
"name": "SkyInlineFormButtonConfig"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": 18,
|
|
319
|
+
"name": "close",
|
|
320
|
+
"kind": 1024,
|
|
321
|
+
"kindString": "Property",
|
|
322
|
+
"flags": {
|
|
323
|
+
"isPublic": true
|
|
324
|
+
},
|
|
325
|
+
"comment": {
|
|
326
|
+
"shortText": "Fires when users close the inline form."
|
|
327
|
+
},
|
|
328
|
+
"decorators": [
|
|
329
|
+
{
|
|
330
|
+
"name": "Output",
|
|
331
|
+
"type": {
|
|
332
|
+
"type": "reference",
|
|
333
|
+
"name": "Output"
|
|
334
|
+
},
|
|
335
|
+
"arguments": {}
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"sources": [
|
|
339
|
+
{
|
|
340
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
341
|
+
"line": 119,
|
|
342
|
+
"character": 9
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"type": {
|
|
346
|
+
"type": "reference",
|
|
347
|
+
"typeArguments": [
|
|
348
|
+
{
|
|
349
|
+
"type": "reference",
|
|
350
|
+
"id": 48,
|
|
351
|
+
"name": "SkyInlineFormCloseArgs"
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
"name": "EventEmitter"
|
|
355
|
+
},
|
|
356
|
+
"defaultValue": "..."
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"id": 13,
|
|
360
|
+
"name": "template",
|
|
361
|
+
"kind": 1024,
|
|
362
|
+
"kindString": "Property",
|
|
363
|
+
"flags": {
|
|
364
|
+
"isPublic": true
|
|
365
|
+
},
|
|
366
|
+
"comment": {
|
|
367
|
+
"shortText": "Specifies a template to use to instantiate the inline form.",
|
|
368
|
+
"tags": [
|
|
369
|
+
{
|
|
370
|
+
"tag": "required",
|
|
371
|
+
"text": "\n"
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"decorators": [
|
|
376
|
+
{
|
|
377
|
+
"name": "Input",
|
|
378
|
+
"type": {
|
|
379
|
+
"type": "reference",
|
|
380
|
+
"name": "Input"
|
|
381
|
+
},
|
|
382
|
+
"arguments": {}
|
|
383
|
+
}
|
|
384
|
+
],
|
|
385
|
+
"sources": [
|
|
386
|
+
{
|
|
387
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
388
|
+
"line": 90,
|
|
389
|
+
"character": 9
|
|
390
|
+
}
|
|
391
|
+
],
|
|
392
|
+
"type": {
|
|
393
|
+
"type": "reference",
|
|
394
|
+
"typeArguments": [
|
|
395
|
+
{
|
|
396
|
+
"type": "intrinsic",
|
|
397
|
+
"name": "any"
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
"name": "TemplateRef"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"id": 9,
|
|
405
|
+
"name": "config",
|
|
406
|
+
"kind": 262144,
|
|
407
|
+
"kindString": "Accessor",
|
|
408
|
+
"flags": {
|
|
409
|
+
"isPublic": true
|
|
410
|
+
},
|
|
411
|
+
"decorators": [
|
|
412
|
+
{
|
|
413
|
+
"name": "Input",
|
|
414
|
+
"type": {
|
|
415
|
+
"type": "reference",
|
|
416
|
+
"name": "Input"
|
|
417
|
+
},
|
|
418
|
+
"arguments": {}
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"sources": [
|
|
422
|
+
{
|
|
423
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
424
|
+
"line": 74,
|
|
425
|
+
"character": 13
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
"getSignature": [
|
|
429
|
+
{
|
|
430
|
+
"id": 10,
|
|
431
|
+
"name": "config",
|
|
432
|
+
"kind": 524288,
|
|
433
|
+
"kindString": "Get signature",
|
|
434
|
+
"flags": {},
|
|
435
|
+
"comment": {
|
|
436
|
+
"shortText": "Specifies configuration options for the buttons to display with the inline form."
|
|
437
|
+
},
|
|
438
|
+
"type": {
|
|
439
|
+
"type": "reference",
|
|
440
|
+
"id": 50,
|
|
441
|
+
"name": "SkyInlineFormConfig"
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"setSignature": [
|
|
446
|
+
{
|
|
447
|
+
"id": 11,
|
|
448
|
+
"name": "config",
|
|
449
|
+
"kind": 1048576,
|
|
450
|
+
"kindString": "Set signature",
|
|
451
|
+
"flags": {},
|
|
452
|
+
"comment": {
|
|
453
|
+
"shortText": "Specifies configuration options for the buttons to display with the inline form.",
|
|
454
|
+
"tags": [
|
|
455
|
+
{
|
|
456
|
+
"tag": "required",
|
|
457
|
+
"text": "\n"
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
},
|
|
461
|
+
"parameters": [
|
|
462
|
+
{
|
|
463
|
+
"id": 12,
|
|
464
|
+
"name": "value",
|
|
465
|
+
"kind": 32768,
|
|
466
|
+
"kindString": "Parameter",
|
|
467
|
+
"flags": {},
|
|
468
|
+
"type": {
|
|
469
|
+
"type": "reference",
|
|
470
|
+
"id": 50,
|
|
471
|
+
"name": "SkyInlineFormConfig"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
],
|
|
475
|
+
"type": {
|
|
476
|
+
"type": "intrinsic",
|
|
477
|
+
"name": "void"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
"id": 14,
|
|
484
|
+
"name": "showForm",
|
|
485
|
+
"kind": 262144,
|
|
486
|
+
"kindString": "Accessor",
|
|
487
|
+
"flags": {
|
|
488
|
+
"isPublic": true
|
|
489
|
+
},
|
|
490
|
+
"decorators": [
|
|
491
|
+
{
|
|
492
|
+
"name": "Input",
|
|
493
|
+
"type": {
|
|
494
|
+
"type": "reference",
|
|
495
|
+
"name": "Input"
|
|
496
|
+
},
|
|
497
|
+
"arguments": {}
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
"sources": [
|
|
501
|
+
{
|
|
502
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
503
|
+
"line": 98,
|
|
504
|
+
"character": 13
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"getSignature": [
|
|
508
|
+
{
|
|
509
|
+
"id": 15,
|
|
510
|
+
"name": "showForm",
|
|
511
|
+
"kind": 524288,
|
|
512
|
+
"kindString": "Get signature",
|
|
513
|
+
"flags": {},
|
|
514
|
+
"comment": {
|
|
515
|
+
"shortText": "Indicates whether to display the inline form. Users can toggle between displaying\nand hiding the inline form."
|
|
516
|
+
},
|
|
517
|
+
"type": {
|
|
518
|
+
"type": "intrinsic",
|
|
519
|
+
"name": "boolean"
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
"setSignature": [
|
|
524
|
+
{
|
|
525
|
+
"id": 16,
|
|
526
|
+
"name": "showForm",
|
|
527
|
+
"kind": 1048576,
|
|
528
|
+
"kindString": "Set signature",
|
|
529
|
+
"flags": {},
|
|
530
|
+
"comment": {
|
|
531
|
+
"shortText": "Indicates whether to display the inline form. Users can toggle between displaying\nand hiding the inline form.",
|
|
532
|
+
"tags": [
|
|
533
|
+
{
|
|
534
|
+
"tag": "default",
|
|
535
|
+
"text": "false\n"
|
|
536
|
+
}
|
|
537
|
+
]
|
|
538
|
+
},
|
|
539
|
+
"parameters": [
|
|
540
|
+
{
|
|
541
|
+
"id": 17,
|
|
542
|
+
"name": "value",
|
|
543
|
+
"kind": 32768,
|
|
544
|
+
"kindString": "Parameter",
|
|
545
|
+
"flags": {},
|
|
546
|
+
"type": {
|
|
547
|
+
"type": "intrinsic",
|
|
548
|
+
"name": "boolean"
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"type": {
|
|
553
|
+
"type": "intrinsic",
|
|
554
|
+
"name": "void"
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
]
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"id": 26,
|
|
561
|
+
"name": "closeInlineForm",
|
|
562
|
+
"kind": 2048,
|
|
563
|
+
"kindString": "Method",
|
|
564
|
+
"flags": {
|
|
565
|
+
"isPublic": true
|
|
566
|
+
},
|
|
567
|
+
"sources": [
|
|
568
|
+
{
|
|
569
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
570
|
+
"line": 143,
|
|
571
|
+
"character": 9
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
"signatures": [
|
|
575
|
+
{
|
|
576
|
+
"id": 27,
|
|
577
|
+
"name": "closeInlineForm",
|
|
578
|
+
"kind": 4096,
|
|
579
|
+
"kindString": "Call signature",
|
|
580
|
+
"flags": {},
|
|
581
|
+
"parameters": [
|
|
582
|
+
{
|
|
583
|
+
"id": 28,
|
|
584
|
+
"name": "event",
|
|
585
|
+
"kind": 32768,
|
|
586
|
+
"kindString": "Parameter",
|
|
587
|
+
"flags": {},
|
|
588
|
+
"type": {
|
|
589
|
+
"type": "reference",
|
|
590
|
+
"id": 43,
|
|
591
|
+
"name": "SkyInlineFormButtonConfig"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
],
|
|
595
|
+
"type": {
|
|
596
|
+
"type": "intrinsic",
|
|
597
|
+
"name": "void"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"id": 24,
|
|
604
|
+
"name": "ngOnDestroy",
|
|
605
|
+
"kind": 2048,
|
|
606
|
+
"kindString": "Method",
|
|
607
|
+
"flags": {
|
|
608
|
+
"isPublic": true
|
|
609
|
+
},
|
|
610
|
+
"sources": [
|
|
611
|
+
{
|
|
612
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
613
|
+
"line": 139,
|
|
614
|
+
"character": 9
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
"signatures": [
|
|
618
|
+
{
|
|
619
|
+
"id": 25,
|
|
620
|
+
"name": "ngOnDestroy",
|
|
621
|
+
"kind": 4096,
|
|
622
|
+
"kindString": "Call signature",
|
|
623
|
+
"flags": {},
|
|
624
|
+
"type": {
|
|
625
|
+
"type": "intrinsic",
|
|
626
|
+
"name": "void"
|
|
627
|
+
},
|
|
628
|
+
"implementationOf": {
|
|
629
|
+
"type": "reference",
|
|
630
|
+
"name": "OnDestroy.ngOnDestroy"
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"implementationOf": {
|
|
635
|
+
"type": "reference",
|
|
636
|
+
"name": "OnDestroy.ngOnDestroy"
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"id": 22,
|
|
641
|
+
"name": "ngOnInit",
|
|
642
|
+
"kind": 2048,
|
|
643
|
+
"kindString": "Method",
|
|
644
|
+
"flags": {
|
|
645
|
+
"isPublic": true
|
|
646
|
+
},
|
|
647
|
+
"sources": [
|
|
648
|
+
{
|
|
649
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
650
|
+
"line": 135,
|
|
651
|
+
"character": 9
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
"signatures": [
|
|
655
|
+
{
|
|
656
|
+
"id": 23,
|
|
657
|
+
"name": "ngOnInit",
|
|
658
|
+
"kind": 4096,
|
|
659
|
+
"kindString": "Call signature",
|
|
660
|
+
"flags": {},
|
|
661
|
+
"type": {
|
|
662
|
+
"type": "intrinsic",
|
|
663
|
+
"name": "void"
|
|
664
|
+
},
|
|
665
|
+
"implementationOf": {
|
|
666
|
+
"type": "reference",
|
|
667
|
+
"name": "OnInit.ngOnInit"
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
"implementationOf": {
|
|
672
|
+
"type": "reference",
|
|
673
|
+
"name": "OnInit.ngOnInit"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"groups": [
|
|
678
|
+
{
|
|
679
|
+
"title": "Constructors",
|
|
680
|
+
"kind": 512,
|
|
681
|
+
"children": [
|
|
682
|
+
2
|
|
683
|
+
]
|
|
684
|
+
},
|
|
685
|
+
{
|
|
686
|
+
"title": "Properties",
|
|
687
|
+
"kind": 1024,
|
|
688
|
+
"children": [
|
|
689
|
+
19,
|
|
690
|
+
18,
|
|
691
|
+
13
|
|
692
|
+
]
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"title": "Accessors",
|
|
696
|
+
"kind": 262144,
|
|
697
|
+
"children": [
|
|
698
|
+
9,
|
|
699
|
+
14
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"title": "Methods",
|
|
704
|
+
"kind": 2048,
|
|
705
|
+
"children": [
|
|
706
|
+
26,
|
|
707
|
+
24,
|
|
708
|
+
22
|
|
709
|
+
]
|
|
710
|
+
}
|
|
711
|
+
],
|
|
712
|
+
"sources": [
|
|
713
|
+
{
|
|
714
|
+
"fileName": "projects/inline-form/src/modules/inline-form/inline-form.component.ts",
|
|
715
|
+
"line": 67,
|
|
716
|
+
"character": 13
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
"implementedTypes": [
|
|
720
|
+
{
|
|
721
|
+
"type": "reference",
|
|
722
|
+
"name": "OnInit"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"type": "reference",
|
|
726
|
+
"name": "OnDestroy"
|
|
727
|
+
}
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"id": 43,
|
|
732
|
+
"name": "SkyInlineFormButtonConfig",
|
|
733
|
+
"kind": 256,
|
|
734
|
+
"kindString": "Interface",
|
|
735
|
+
"flags": {},
|
|
736
|
+
"comment": {
|
|
737
|
+
"shortText": "Specifies configuration options for the inline form's buttons."
|
|
738
|
+
},
|
|
739
|
+
"children": [
|
|
740
|
+
{
|
|
741
|
+
"id": 44,
|
|
742
|
+
"name": "action",
|
|
743
|
+
"kind": 1024,
|
|
744
|
+
"kindString": "Property",
|
|
745
|
+
"flags": {},
|
|
746
|
+
"comment": {
|
|
747
|
+
"shortText": "Specifies the action that the button performs.\nThe valid options are `cancel`, `delete`, `done`, and `save`.",
|
|
748
|
+
"tags": [
|
|
749
|
+
{
|
|
750
|
+
"tag": "required",
|
|
751
|
+
"text": "\n"
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
},
|
|
755
|
+
"sources": [
|
|
756
|
+
{
|
|
757
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-config.ts",
|
|
758
|
+
"line": 11,
|
|
759
|
+
"character": 2
|
|
760
|
+
}
|
|
761
|
+
],
|
|
762
|
+
"type": {
|
|
763
|
+
"type": "intrinsic",
|
|
764
|
+
"name": "string"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
"id": 46,
|
|
769
|
+
"name": "disabled",
|
|
770
|
+
"kind": 1024,
|
|
771
|
+
"kindString": "Property",
|
|
772
|
+
"flags": {
|
|
773
|
+
"isOptional": true
|
|
774
|
+
},
|
|
775
|
+
"comment": {
|
|
776
|
+
"shortText": "Indicates whether to disable the button.",
|
|
777
|
+
"tags": [
|
|
778
|
+
{
|
|
779
|
+
"tag": "default",
|
|
780
|
+
"text": "false\n"
|
|
781
|
+
}
|
|
782
|
+
]
|
|
783
|
+
},
|
|
784
|
+
"sources": [
|
|
785
|
+
{
|
|
786
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-config.ts",
|
|
787
|
+
"line": 23,
|
|
788
|
+
"character": 2
|
|
789
|
+
}
|
|
790
|
+
],
|
|
791
|
+
"type": {
|
|
792
|
+
"type": "intrinsic",
|
|
793
|
+
"name": "boolean"
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"id": 47,
|
|
798
|
+
"name": "styleType",
|
|
799
|
+
"kind": 1024,
|
|
800
|
+
"kindString": "Property",
|
|
801
|
+
"flags": {
|
|
802
|
+
"isOptional": true
|
|
803
|
+
},
|
|
804
|
+
"comment": {
|
|
805
|
+
"shortText": "Specifies a background color and style for the button.\nThe valid options are `default`, `link`, and `primary`.\nThese values set the background color and style from the\n[secondary, link, and primary button classes](https://developer.blackbaud.com/skyux/components/button) respectively."
|
|
806
|
+
},
|
|
807
|
+
"sources": [
|
|
808
|
+
{
|
|
809
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-config.ts",
|
|
810
|
+
"line": 31,
|
|
811
|
+
"character": 2
|
|
812
|
+
}
|
|
813
|
+
],
|
|
814
|
+
"type": {
|
|
815
|
+
"type": "intrinsic",
|
|
816
|
+
"name": "string"
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"id": 45,
|
|
821
|
+
"name": "text",
|
|
822
|
+
"kind": 1024,
|
|
823
|
+
"kindString": "Property",
|
|
824
|
+
"flags": {},
|
|
825
|
+
"comment": {
|
|
826
|
+
"shortText": "Specifies a label for the button.",
|
|
827
|
+
"tags": [
|
|
828
|
+
{
|
|
829
|
+
"tag": "required",
|
|
830
|
+
"text": "\n"
|
|
831
|
+
}
|
|
832
|
+
]
|
|
833
|
+
},
|
|
834
|
+
"sources": [
|
|
835
|
+
{
|
|
836
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-config.ts",
|
|
837
|
+
"line": 17,
|
|
838
|
+
"character": 2
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"type": {
|
|
842
|
+
"type": "intrinsic",
|
|
843
|
+
"name": "string"
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
],
|
|
847
|
+
"groups": [
|
|
848
|
+
{
|
|
849
|
+
"title": "Properties",
|
|
850
|
+
"kind": 1024,
|
|
851
|
+
"children": [
|
|
852
|
+
44,
|
|
853
|
+
46,
|
|
854
|
+
47,
|
|
855
|
+
45
|
|
856
|
+
]
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"sources": [
|
|
860
|
+
{
|
|
861
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-button-config.ts",
|
|
862
|
+
"line": 4,
|
|
863
|
+
"character": 17
|
|
864
|
+
}
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"id": 48,
|
|
869
|
+
"name": "SkyInlineFormCloseArgs",
|
|
870
|
+
"kind": 256,
|
|
871
|
+
"kindString": "Interface",
|
|
872
|
+
"flags": {},
|
|
873
|
+
"children": [
|
|
874
|
+
{
|
|
875
|
+
"id": 49,
|
|
876
|
+
"name": "reason",
|
|
877
|
+
"kind": 1024,
|
|
878
|
+
"kindString": "Property",
|
|
879
|
+
"flags": {},
|
|
880
|
+
"comment": {
|
|
881
|
+
"shortText": "Returns a `string` value that explains why the inline form closed.\nThe possible values are `cancel`, `delete`, `done`, and `save`."
|
|
882
|
+
},
|
|
883
|
+
"sources": [
|
|
884
|
+
{
|
|
885
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-close-args.ts",
|
|
886
|
+
"line": 6,
|
|
887
|
+
"character": 2
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
"type": {
|
|
891
|
+
"type": "intrinsic",
|
|
892
|
+
"name": "string"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
],
|
|
896
|
+
"groups": [
|
|
897
|
+
{
|
|
898
|
+
"title": "Properties",
|
|
899
|
+
"kind": 1024,
|
|
900
|
+
"children": [
|
|
901
|
+
49
|
|
902
|
+
]
|
|
903
|
+
}
|
|
904
|
+
],
|
|
905
|
+
"sources": [
|
|
906
|
+
{
|
|
907
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-close-args.ts",
|
|
908
|
+
"line": 1,
|
|
909
|
+
"character": 17
|
|
910
|
+
}
|
|
911
|
+
]
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"id": 50,
|
|
915
|
+
"name": "SkyInlineFormConfig",
|
|
916
|
+
"kind": 256,
|
|
917
|
+
"kindString": "Interface",
|
|
918
|
+
"flags": {},
|
|
919
|
+
"comment": {
|
|
920
|
+
"shortText": "Specifies configuration options for the buttons to display with the inline form."
|
|
921
|
+
},
|
|
922
|
+
"children": [
|
|
923
|
+
{
|
|
924
|
+
"id": 51,
|
|
925
|
+
"name": "buttonLayout",
|
|
926
|
+
"kind": 1024,
|
|
927
|
+
"kindString": "Property",
|
|
928
|
+
"flags": {},
|
|
929
|
+
"comment": {
|
|
930
|
+
"shortText": "Specifies the buttons to display with the inline form. The valid options are `Custom`\nfor custom buttons, `DoneCancel` for Done and Cancel buttons, `DoneDeleteCancel` for Done,\nDelete, and Cancel buttons, `SaveCancel` for Save and Cancel buttons, and `SaveDeleteCancel`\nfor Save, Delete, and Cancel buttons.",
|
|
931
|
+
"tags": [
|
|
932
|
+
{
|
|
933
|
+
"tag": "required",
|
|
934
|
+
"text": "\n"
|
|
935
|
+
}
|
|
936
|
+
]
|
|
937
|
+
},
|
|
938
|
+
"sources": [
|
|
939
|
+
{
|
|
940
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-config.ts",
|
|
941
|
+
"line": 20,
|
|
942
|
+
"character": 2
|
|
943
|
+
}
|
|
944
|
+
],
|
|
945
|
+
"type": {
|
|
946
|
+
"type": "reference",
|
|
947
|
+
"id": 53,
|
|
948
|
+
"name": "SkyInlineFormButtonLayout"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"id": 52,
|
|
953
|
+
"name": "buttons",
|
|
954
|
+
"kind": 1024,
|
|
955
|
+
"kindString": "Property",
|
|
956
|
+
"flags": {
|
|
957
|
+
"isOptional": true
|
|
958
|
+
},
|
|
959
|
+
"comment": {
|
|
960
|
+
"shortText": "Specifies configuration options for the inline form's buttons."
|
|
961
|
+
},
|
|
962
|
+
"sources": [
|
|
963
|
+
{
|
|
964
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-config.ts",
|
|
965
|
+
"line": 24,
|
|
966
|
+
"character": 2
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"type": {
|
|
970
|
+
"type": "array",
|
|
971
|
+
"elementType": {
|
|
972
|
+
"type": "reference",
|
|
973
|
+
"id": 43,
|
|
974
|
+
"name": "SkyInlineFormButtonConfig"
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
],
|
|
979
|
+
"groups": [
|
|
980
|
+
{
|
|
981
|
+
"title": "Properties",
|
|
982
|
+
"kind": 1024,
|
|
983
|
+
"children": [
|
|
984
|
+
51,
|
|
985
|
+
52
|
|
986
|
+
]
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
"sources": [
|
|
990
|
+
{
|
|
991
|
+
"fileName": "projects/inline-form/src/modules/inline-form/types/inline-form-config.ts",
|
|
992
|
+
"line": 12,
|
|
993
|
+
"character": 17
|
|
994
|
+
}
|
|
995
|
+
]
|
|
996
|
+
}
|
|
997
|
+
],
|
|
998
|
+
"groups": [
|
|
999
|
+
{
|
|
1000
|
+
"title": "Enumerations",
|
|
1001
|
+
"kind": 8,
|
|
1002
|
+
"children": [
|
|
1003
|
+
53
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"title": "Classes",
|
|
1008
|
+
"kind": 128,
|
|
1009
|
+
"children": [
|
|
1010
|
+
39,
|
|
1011
|
+
1
|
|
1012
|
+
]
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"title": "Interfaces",
|
|
1016
|
+
"kind": 256,
|
|
1017
|
+
"children": [
|
|
1018
|
+
43,
|
|
1019
|
+
48,
|
|
1020
|
+
50
|
|
1021
|
+
]
|
|
1022
|
+
}
|
|
1023
|
+
],
|
|
1024
|
+
"sources": [
|
|
1025
|
+
{
|
|
1026
|
+
"fileName": "projects/inline-form/src/public-api.ts",
|
|
1027
|
+
"line": 1,
|
|
1028
|
+
"character": 0
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
},
|
|
1032
|
+
"codeExamples": [
|
|
1033
|
+
{
|
|
1034
|
+
"fileName": "inline-form-demo.component.html",
|
|
1035
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/basic/inline-form-demo.component.html",
|
|
1036
|
+
"rawContents": "<sky-inline-form\n [config]=\"inlineFormConfig\"\n [showForm]=\"showForm\"\n [template]=\"inlineFormTemplate\"\n (close)=\"onInlineFormClose($event)\"\n>\n <table>\n <tr>\n <th>\n First name:\n </th>\n <td>\n {{ firstName }}\n </td>\n <td>\n <button\n aria-label=\"Edit\"\n class=\"sky-btn sky-btn-link sky-demo-btn-edit\"\n (click)=\"onInlineFormOpen()\"\n >\n <sky-icon\n icon=\"pencil\"\n ></sky-icon>\n </button>\n </td>\n </tr>\n </table>\n</sky-inline-form>\n\n<ng-template\n #inlineFormTemplate\n>\n <form\n novalidate\n [formGroup]=\"myForm\"\n >\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"firstNameInput.id\"\n >\n First name\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"myFirstName\"\n skyId\n type=\"text\"\n #firstNameInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n </form>\n</ng-template>\n"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"fileName": "inline-form-demo.component.ts",
|
|
1040
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/basic/inline-form-demo.component.ts",
|
|
1041
|
+
"rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup\n} from '@angular/forms';\n\nimport {\n SkyInlineFormButtonLayout,\n SkyInlineFormCloseArgs,\n SkyInlineFormConfig\n} from '@skyux/inline-form';\n\n@Component({\n selector: 'app-inline-form-demo',\n templateUrl: './inline-form-demo.component.html'\n})\nexport class InlineFormDemoComponent implements OnInit {\n\n public firstName: string = 'Jane';\n\n public myForm: FormGroup;\n\n public inlineFormConfig: SkyInlineFormConfig = {\n buttonLayout: SkyInlineFormButtonLayout.SaveCancel\n };\n\n public showForm: boolean = false;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.myForm = this.formBuilder.group({\n myFirstName: new FormControl()\n });\n }\n\n public onInlineFormClose(args: SkyInlineFormCloseArgs): void {\n if (args.reason === 'save') {\n this.firstName = this.myForm.get('myFirstName').value;\n }\n\n this.showForm = false;\n this.myForm.patchValue({\n myFirstName: undefined\n });\n }\n\n public onInlineFormOpen(): void {\n this.showForm = true;\n this.myForm.patchValue({\n myFirstName: this.firstName\n });\n }\n\n}\n"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"fileName": "inline-form-demo.module.ts",
|
|
1045
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/basic/inline-form-demo.module.ts",
|
|
1046
|
+
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyIconModule\n} from '@skyux/indicators';\n\nimport {\n SkyInlineFormModule\n} from '@skyux/inline-form';\n\nimport {\n InlineFormDemoComponent\n} from './inline-form-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIconModule,\n SkyIdModule,\n SkyInlineFormModule,\n SkyInputBoxModule\n ],\n exports: [\n InlineFormDemoComponent\n ],\n declarations: [\n InlineFormDemoComponent\n ]\n})\nexport class InlineFormDemoModule { }\n"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"fileName": "inline-form-demo.component.html",
|
|
1050
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/custom-buttons/inline-form-demo.component.html",
|
|
1051
|
+
"rawContents": "<sky-inline-form\n [config]=\"inlineFormConfig\"\n [showForm]=\"showForm\"\n [template]=\"inlineFormTemplate\"\n (close)=\"onInlineFormClose($event)\"\n>\n <table>\n <tr>\n <th>\n First name:\n </th>\n <td>\n {{ firstName }}\n </td>\n <td>\n <button\n aria-label=\"Edit\"\n class=\"sky-btn sky-btn-link sky-demo-btn-edit\"\n (click)=\"onInlineFormOpen()\"\n >\n <sky-icon\n icon=\"pencil\"\n ></sky-icon>\n </button>\n </td>\n </tr>\n </table>\n</sky-inline-form>\n\n<ng-template\n #inlineFormTemplate\n>\n <form\n novalidate\n [formGroup]=\"myForm\"\n >\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label sky-control-label-required\"\n [for]=\"firstNameInput.id\"\n >\n First name\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"myFirstName\"\n required\n skyId\n type=\"text\"\n #firstNameInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n </form>\n</ng-template>\n"
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"fileName": "inline-form-demo.component.ts",
|
|
1055
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/custom-buttons/inline-form-demo.component.ts",
|
|
1056
|
+
"rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup\n} from '@angular/forms';\n\nimport {\n SkyInlineFormButtonLayout,\n SkyInlineFormCloseArgs,\n SkyInlineFormConfig\n} from '@skyux/inline-form';\n\n@Component({\n selector: 'app-inline-form-demo',\n templateUrl: './inline-form-demo.component.html'\n})\nexport class InlineFormDemoComponent implements OnInit {\n\n public firstName: string = 'Jane';\n\n public myForm: FormGroup;\n\n public inlineFormConfig: SkyInlineFormConfig = {\n buttonLayout: SkyInlineFormButtonLayout.Custom,\n buttons: [\n {\n action: 'save',\n text: 'Save',\n styleType: 'primary'\n },\n {\n action: 'delete',\n text: 'Delete',\n styleType: 'default'\n },\n {\n action: 'reset',\n text: 'Reset',\n styleType: 'default'\n },\n {\n action: 'cancel',\n text: 'Cancel',\n styleType: 'link'\n }\n ]\n };\n\n public showForm: boolean = false;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.myForm = this.formBuilder.group({\n myFirstName: new FormControl()\n });\n\n this.myForm.valueChanges.subscribe(() => {\n if (this.inlineFormConfig.buttons[0].disabled !== this.myForm.invalid) {\n this.inlineFormConfig.buttons[0].disabled = this.myForm.invalid;\n this.inlineFormConfig = {...{ }, ...this.inlineFormConfig};\n }\n });\n }\n\n public onInlineFormClose(args: SkyInlineFormCloseArgs): void {\n if (args.reason === 'save') {\n this.firstName = this.myForm.get('myFirstName').value;\n }\n\n this.showForm = false;\n this.myForm.patchValue({\n myFirstName: undefined\n });\n }\n\n public onInlineFormOpen(): void {\n this.showForm = true;\n this.myForm.patchValue({\n myFirstName: this.firstName\n });\n }\n\n}\n"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"fileName": "inline-form-demo.module.ts",
|
|
1060
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/custom-buttons/inline-form-demo.module.ts",
|
|
1061
|
+
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyIconModule\n} from '@skyux/indicators';\n\nimport {\n SkyInlineFormModule\n} from '@skyux/inline-form';\n\nimport {\n InlineFormDemoComponent\n} from './inline-form-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIconModule,\n SkyIdModule,\n SkyInlineFormModule,\n SkyInputBoxModule\n ],\n exports: [\n InlineFormDemoComponent\n ],\n declarations: [\n InlineFormDemoComponent\n ]\n})\nexport class InlineFormDemoModule { }\n"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"fileName": "inline-form-demo.component.html",
|
|
1065
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/repeaters/inline-form-demo.component.html",
|
|
1066
|
+
"rawContents": "<sky-repeater>\n <sky-repeater-item *ngFor=\"let item of items\"\n [inlineFormConfig]=\"inlineFormConfig\"\n [inlineFormTemplate]=\"inlineFormTemplate\"\n [showInlineForm]=\"activeInlineFormId === item.id\"\n (inlineFormClose)=\"onInlineFormClose($event)\"\n >\n\n <sky-repeater-item-title\n class=\"demo-repeater-flex\"\n >\n <div\n class=\"sky-emphasized\"\n >\n {{ item.title }}\n </div>\n <div>\n <button\n aria-label=\"Edit\"\n class=\"sky-btn sky-btn-link sky-btn-link-inline sky-no-focus sky-demo-btn-edit\"\n type=\"button\"\n (click)=\"showInlineForm(item)\"\n >\n <sky-icon\n icon=\"pencil\"\n >\n </sky-icon>\n </button>\n </div>\n </sky-repeater-item-title>\n\n <sky-repeater-item-content>\n {{ item.note }}\n </sky-repeater-item-content>\n\n </sky-repeater-item>\n</sky-repeater>\n\n<ng-template\n #inlineFormTemplate\n>\n <form\n novalidate\n [formGroup]=\"myForm\"\n >\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"myTitle.id\"\n >\n Title\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"title\"\n skyId\n type=\"text\"\n #myTitle=\"skyId\"\n />\n </sky-input-box>\n </div>\n <div\n class=\"sky-form-group\"\n >\n <sky-input-box>\n <label\n class=\"sky-control-label\"\n [for]=\"myNote.id\"\n >\n Note\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"note\"\n skyId\n type=\"text\"\n #myNote=\"skyId\"\n />\n </sky-input-box>\n </div>\n </form>\n</ng-template>\n"
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"fileName": "inline-form-demo.component.scss",
|
|
1070
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/repeaters/inline-form-demo.component.scss",
|
|
1071
|
+
"rawContents": ".demo-repeater-flex {\n display: flex;\n flex-wrap: wrap;\n\n div.sky-emphasized {\n flex-grow: 1;\n }\n}\n"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"fileName": "inline-form-demo.component.ts",
|
|
1075
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/repeaters/inline-form-demo.component.ts",
|
|
1076
|
+
"rawContents": "import {\n Component,\n OnInit\n} from '@angular/core';\n\nimport {\n FormBuilder,\n FormControl,\n FormGroup\n} from '@angular/forms';\n\nimport {\n SkyInlineFormButtonLayout,\n SkyInlineFormCloseArgs,\n SkyInlineFormConfig\n} from '@skyux/inline-form';\n\n@Component({\n selector: 'app-inline-form-demo',\n templateUrl: './inline-form-demo.component.html',\n styleUrls: ['./inline-form-demo.component.scss']\n})\nexport class InlineFormDemoComponent implements OnInit {\n\n public activeInlineFormId: string;\n\n public inlineFormConfig: SkyInlineFormConfig = {\n buttonLayout: SkyInlineFormButtonLayout.SaveCancel\n };\n\n public items: any[] = [\n {\n id: '1',\n title: '2019 Spring Gala',\n note: 'Gala for friends and family'\n },\n {\n id: '2',\n title: '2019 Special Winter Event',\n note: 'A special event'\n },\n {\n id: '3',\n title: '2019 Donor Appreciation Event',\n note: 'Event for all donors and families'\n },\n {\n id: '4',\n title: '2020 Spring Gala',\n note: 'Gala for friends and family'\n }\n ];\n\n public myForm: FormGroup;\n\n constructor(private formBuilder: FormBuilder) {}\n\n public ngOnInit(): void {\n this.myForm = this.formBuilder.group({\n id: new FormControl(),\n title: new FormControl(),\n note: new FormControl()\n });\n }\n\n public showInlineForm(item: any): void {\n this.activeInlineFormId = item.id;\n this.myForm.patchValue({\n note: item.note,\n title: item.title\n });\n }\n\n public onInlineFormClose(args: SkyInlineFormCloseArgs): void {\n if (args.reason === 'save') {\n const found = this.items.find(item => item.id === this.activeInlineFormId);\n found.note = this.myForm.get('note').value;\n found.title = this.myForm.get('title').value;\n }\n\n this.myForm.patchValue({\n note: undefined,\n title: undefined\n });\n\n // Close the active form.\n this.activeInlineFormId = undefined;\n }\n\n}\n"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"fileName": "inline-form-demo.module.ts",
|
|
1080
|
+
"filePath": "/projects/inline-form/documentation/code-examples/inline-form/repeaters/inline-form-demo.module.ts",
|
|
1081
|
+
"rawContents": "import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n ReactiveFormsModule\n} from '@angular/forms';\n\nimport {\n SkyIdModule\n} from '@skyux/core';\n\nimport {\n SkyInputBoxModule\n} from '@skyux/forms';\n\nimport {\n SkyIconModule\n} from '@skyux/indicators';\n\nimport {\n SkyInlineFormModule\n} from '@skyux/inline-form';\n\nimport {\n SkyRepeaterModule\n} from '@skyux/lists';\n\nimport {\n InlineFormDemoComponent\n} from './inline-form-demo.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyIconModule,\n SkyIdModule,\n SkyInlineFormModule,\n SkyInputBoxModule,\n SkyRepeaterModule\n ],\n exports: [\n InlineFormDemoComponent\n ],\n declarations: [\n InlineFormDemoComponent\n ]\n})\nexport class InlineFormDemoModule { }\n"
|
|
1082
|
+
}
|
|
1083
|
+
]
|
|
1084
|
+
}
|