@skyux/inline-form 5.0.0-beta.0 → 5.0.1

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.
Files changed (53) hide show
  1. package/bundles/skyux-inline-form.umd.js +146 -349
  2. package/bundles/skyux-inline-form.umd.js.map +1 -1
  3. package/documentation.json +1089 -0
  4. package/esm2015/modules/inline-form/animations/slide-dissolve.js +9 -13
  5. package/esm2015/modules/inline-form/inline-form-adapter.service.js +16 -14
  6. package/esm2015/modules/inline-form/inline-form.component.js +52 -57
  7. package/esm2015/modules/inline-form/inline-form.module.js +16 -22
  8. package/esm2015/modules/inline-form/types/inline-form-button-action.js +2 -1
  9. package/esm2015/modules/inline-form/types/inline-form-button-config.js +2 -1
  10. package/esm2015/modules/inline-form/types/inline-form-button-layout.js +1 -1
  11. package/esm2015/modules/inline-form/types/inline-form-close-args.js +2 -1
  12. package/esm2015/modules/inline-form/types/inline-form-config.js +2 -1
  13. package/esm2015/modules/shared/sky-inline-form-resources.module.js +50 -0
  14. package/esm2015/public-api.js +10 -0
  15. package/esm2015/skyux-inline-form.js +2 -8
  16. package/fesm2015/skyux-inline-form.js +127 -130
  17. package/fesm2015/skyux-inline-form.js.map +1 -1
  18. package/modules/inline-form/inline-form-adapter.service.d.ts +3 -0
  19. package/modules/inline-form/inline-form.component.d.ts +3 -0
  20. package/modules/inline-form/inline-form.module.d.ts +7 -0
  21. package/modules/shared/sky-inline-form-resources.module.d.ts +14 -0
  22. package/package.json +9 -24
  23. package/{public_api.d.ts → public-api.d.ts} +1 -0
  24. package/skyux-inline-form.d.ts +2 -7
  25. package/CHANGELOG.md +0 -58
  26. package/bundles/skyux-inline-form.umd.min.js +0 -16
  27. package/bundles/skyux-inline-form.umd.min.js.map +0 -1
  28. package/esm2015/modules/shared/inline-form-for-root-compat.module.js +0 -18
  29. package/esm2015/modules/shared/inline-form-resources.module.js +0 -20
  30. package/esm2015/plugin-resources/inline-form-resources-provider.js +0 -16
  31. package/esm2015/public_api.js +0 -3
  32. package/esm5/modules/inline-form/animations/slide-dissolve.js +0 -30
  33. package/esm5/modules/inline-form/inline-form-adapter.service.js +0 -64
  34. package/esm5/modules/inline-form/inline-form.component.js +0 -241
  35. package/esm5/modules/inline-form/inline-form.module.js +0 -28
  36. package/esm5/modules/inline-form/types/inline-form-button-action.js +0 -1
  37. package/esm5/modules/inline-form/types/inline-form-button-config.js +0 -1
  38. package/esm5/modules/inline-form/types/inline-form-button-layout.js +0 -9
  39. package/esm5/modules/inline-form/types/inline-form-close-args.js +0 -1
  40. package/esm5/modules/inline-form/types/inline-form-config.js +0 -1
  41. package/esm5/modules/shared/inline-form-for-root-compat.module.js +0 -21
  42. package/esm5/modules/shared/inline-form-resources.module.js +0 -23
  43. package/esm5/plugin-resources/inline-form-resources-provider.js +0 -17
  44. package/esm5/public_api.js +0 -3
  45. package/esm5/skyux-inline-form.js +0 -11
  46. package/fesm5/skyux-inline-form.js +0 -414
  47. package/fesm5/skyux-inline-form.js.map +0 -1
  48. package/modules/shared/inline-form-for-root-compat.module.d.ts +0 -6
  49. package/modules/shared/inline-form-resources.module.d.ts +0 -2
  50. package/plugin-resources/inline-form-resources-provider.d.ts +0 -5
  51. package/skyux-inline-form.metadata.json +0 -1
  52. package/src/assets/img/anatomy.png +0 -0
  53. package/src/assets/locales/resources_en_US.json +0 -18
@@ -1,414 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import { CommonModule } from '@angular/common';
3
- import { Injectable, EventEmitter, ElementRef, ChangeDetectorRef, Input, Output, Component, ChangeDetectionStrategy, NgModule } from '@angular/core';
4
- import { SkyAppWindowRef } from '@skyux/core';
5
- import { SkyLibResourcesService, getStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
6
- import { zip } from 'rxjs';
7
- import { take } from 'rxjs/operators';
8
- import { trigger, transition, query, style, animate, group } from '@angular/animations';
9
-
10
- var skySlideDissolve = trigger('skySlideDissolve', [
11
- transition('* <=> *', [
12
- // Expand animations
13
- query('.sky-slide-dissolve-last:enter', [
14
- style({ height: 0, opacity: 0 }),
15
- animate('200ms ease-in', style({ height: '*', opacity: 0 }))
16
- ], { optional: true }),
17
- query('.sky-slide-dissolve-last:enter', [
18
- style({ opacity: 0 }),
19
- animate('200ms ease-in', style({ opacity: 1 }))
20
- ], { optional: true }),
21
- // Collapse animations
22
- // The expanded content should fade out immediately to prevent
23
- // any overlap with the read-only content that's returning to the screen.
24
- query('.sky-slide-dissolve-last:leave', [
25
- animate('0ms', style({ opacity: 0 }))
26
- ], { optional: true }),
27
- group([
28
- query('.sky-slide-dissolve-first:enter', [
29
- style({ opacity: 0, height: 0 }),
30
- animate('100ms ease-in', style({ opacity: 1, height: '*' }))
31
- ], { optional: true }),
32
- query('.sky-slide-dissolve-last:leave', [
33
- animate('200ms ease-in', style({ height: 0 }))
34
- ], { optional: true })
35
- ])
36
- ])
37
- ]);
38
-
39
- var SkyInlineFormButtonLayout;
40
- (function (SkyInlineFormButtonLayout) {
41
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["Custom"] = 0] = "Custom";
42
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["DoneCancel"] = 1] = "DoneCancel";
43
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["DoneDeleteCancel"] = 2] = "DoneDeleteCancel";
44
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["SaveCancel"] = 3] = "SaveCancel";
45
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["SaveDeleteCancel"] = 4] = "SaveDeleteCancel";
46
- })(SkyInlineFormButtonLayout || (SkyInlineFormButtonLayout = {}));
47
-
48
- /* tslint:disable */
49
- var SKY_TABBABLE_SELECTOR = [
50
- 'a[href]',
51
- 'area[href]',
52
- 'input:not([disabled]):not([tabindex=\'-1\'])',
53
- 'button:not([disabled]):not([tabindex=\'-1\'])',
54
- 'select:not([disabled]):not([tabindex=\'-1\'])',
55
- 'textarea:not([disabled]):not([tabindex=\'-1\'])',
56
- 'iframe',
57
- 'object',
58
- 'embed',
59
- '*[tabindex]:not([tabindex=\'-1\'])',
60
- '*[contenteditable=true]'
61
- ].join(', ');
62
- /* tslint:enable */
63
- /**
64
- * @internal
65
- */
66
- var SkyInlineFormAdapterService = /** @class */ (function () {
67
- function SkyInlineFormAdapterService() {
68
- }
69
- SkyInlineFormAdapterService.prototype.applyAutofocus = function (inlineFormElementRef) {
70
- var inputWithAutofocus = inlineFormElementRef.nativeElement.querySelector('[autofocus]');
71
- if (inputWithAutofocus) {
72
- inputWithAutofocus.focus();
73
- }
74
- else {
75
- var focusEl = inlineFormElementRef.nativeElement.querySelector('.sky-inline-form-content');
76
- var focusableChildren = this.loadFocusableChildren(focusEl);
77
- this.focusFirstElement(focusableChildren);
78
- }
79
- };
80
- SkyInlineFormAdapterService.prototype.loadFocusableChildren = function (elem) {
81
- var _this = this;
82
- var elements = Array.prototype.slice.call(elem.querySelectorAll(SKY_TABBABLE_SELECTOR));
83
- return elements.filter(function (element) {
84
- return _this.isVisible(element);
85
- });
86
- };
87
- SkyInlineFormAdapterService.prototype.isVisible = function (element) {
88
- var style = window.getComputedStyle(element);
89
- var isHidden = style.display === 'none' || style.visibility === 'hidden';
90
- if (isHidden) {
91
- return false;
92
- }
93
- var hasBounds = !!(element.offsetWidth ||
94
- element.offsetHeight ||
95
- element.getClientRects().length);
96
- return hasBounds;
97
- };
98
- SkyInlineFormAdapterService.prototype.focusFirstElement = function (list) {
99
- if (list.length > 0) {
100
- list[0].focus();
101
- }
102
- };
103
- SkyInlineFormAdapterService = __decorate([
104
- Injectable()
105
- ], SkyInlineFormAdapterService);
106
- return SkyInlineFormAdapterService;
107
- }());
108
-
109
- /**
110
- * Renders form content in the current view instead of a separate modal.
111
- */
112
- var SkyInlineFormComponent = /** @class */ (function () {
113
- function SkyInlineFormComponent(adapter, elementRef, resourcesService, skyAppWindowRef, changeDetectorRef) {
114
- this.adapter = adapter;
115
- this.elementRef = elementRef;
116
- this.resourcesService = resourcesService;
117
- this.skyAppWindowRef = skyAppWindowRef;
118
- this.changeDetectorRef = changeDetectorRef;
119
- /**
120
- * Fires when users close the inline form.
121
- */
122
- this.close = new EventEmitter();
123
- this._showForm = false;
124
- }
125
- Object.defineProperty(SkyInlineFormComponent.prototype, "config", {
126
- get: function () {
127
- return this._config;
128
- },
129
- /**
130
- * Specifies configuration options for the buttons to display with the inline form.
131
- * @required
132
- */
133
- set: function (value) {
134
- if (value !== this._config) {
135
- this._config = value;
136
- this.setupButtons();
137
- }
138
- },
139
- enumerable: true,
140
- configurable: true
141
- });
142
- Object.defineProperty(SkyInlineFormComponent.prototype, "showForm", {
143
- get: function () {
144
- return this._showForm;
145
- },
146
- /**
147
- * Indicates whether to display the inline form. Users can toggle between displaying
148
- * and hiding the inline form.
149
- * @default false
150
- */
151
- set: function (value) {
152
- var _this = this;
153
- this._showForm = value;
154
- /* istanbul ignore else */
155
- if (value) {
156
- // setTimeout() prevents applyAutofocus() from firing
157
- // until after *ngIf has added the form element to the DOM.
158
- this.skyAppWindowRef.nativeWindow.setTimeout(function () {
159
- _this.adapter.applyAutofocus(_this.elementRef);
160
- });
161
- }
162
- },
163
- enumerable: true,
164
- configurable: true
165
- });
166
- SkyInlineFormComponent.prototype.ngOnInit = function () {
167
- this.setupButtons();
168
- };
169
- SkyInlineFormComponent.prototype.ngOnDestroy = function () {
170
- this.close.complete();
171
- };
172
- SkyInlineFormComponent.prototype.closeInlineForm = function (event) {
173
- var args = {
174
- reason: event.action
175
- };
176
- this.close.emit(args);
177
- };
178
- SkyInlineFormComponent.prototype.setupButtons = function () {
179
- var _this = this;
180
- if (this.isValidCustomConfig(this.config)) {
181
- this.buttons = this.getCustomButtons(this.config.buttons);
182
- this.changeDetectorRef.markForCheck();
183
- return;
184
- }
185
- this.getPresetButtons().then(function (buttons) {
186
- _this.buttons = buttons;
187
- _this.changeDetectorRef.markForCheck();
188
- });
189
- };
190
- SkyInlineFormComponent.prototype.getPresetButtons = function () {
191
- var buttonType = this.config ? this.config.buttonLayout : SkyInlineFormButtonLayout.DoneCancel;
192
- var promise;
193
- switch (buttonType) {
194
- /* istanbul ignore next */
195
- default:
196
- case SkyInlineFormButtonLayout.DoneCancel:
197
- zip(this.resourcesService.getString('skyux_inline_form_button_done'), this.resourcesService.getString('skyux_inline_form_button_cancel'))
198
- .pipe(take(1))
199
- .subscribe(function (values) {
200
- promise = new Promise(function (resolve) {
201
- resolve([
202
- {
203
- text: values[0],
204
- styleType: 'primary',
205
- action: 'done'
206
- },
207
- {
208
- text: values[1],
209
- styleType: 'link',
210
- action: 'cancel'
211
- }
212
- ]);
213
- });
214
- });
215
- break;
216
- case SkyInlineFormButtonLayout.SaveCancel:
217
- zip(this.resourcesService.getString('skyux_inline_form_button_save'), this.resourcesService.getString('skyux_inline_form_button_cancel'))
218
- .pipe(take(1))
219
- .subscribe(function (values) {
220
- promise = new Promise(function (resolve) {
221
- resolve([
222
- {
223
- text: values[0],
224
- styleType: 'primary',
225
- action: 'save'
226
- },
227
- {
228
- text: values[1],
229
- styleType: 'link',
230
- action: 'cancel'
231
- }
232
- ]);
233
- });
234
- });
235
- break;
236
- case SkyInlineFormButtonLayout.DoneDeleteCancel:
237
- zip(this.resourcesService.getString('skyux_inline_form_button_done'), this.resourcesService.getString('skyux_inline_form_button_delete'), this.resourcesService.getString('skyux_inline_form_button_cancel'))
238
- .pipe(take(1))
239
- .subscribe(function (values) {
240
- promise = new Promise(function (resolve) {
241
- resolve([
242
- {
243
- text: values[0],
244
- styleType: 'primary',
245
- action: 'done'
246
- },
247
- {
248
- text: values[1],
249
- styleType: 'default',
250
- action: 'delete'
251
- },
252
- {
253
- text: values[2],
254
- styleType: 'link',
255
- action: 'cancel'
256
- }
257
- ]);
258
- });
259
- });
260
- break;
261
- case SkyInlineFormButtonLayout.SaveDeleteCancel:
262
- zip(this.resourcesService.getString('skyux_inline_form_button_save'), this.resourcesService.getString('skyux_inline_form_button_delete'), this.resourcesService.getString('skyux_inline_form_button_cancel'))
263
- .pipe(take(1))
264
- .subscribe(function (values) {
265
- promise = new Promise(function (resolve) {
266
- resolve([
267
- {
268
- text: values[0],
269
- styleType: 'primary',
270
- action: 'save'
271
- },
272
- {
273
- text: values[1],
274
- styleType: 'default',
275
- action: 'delete'
276
- },
277
- {
278
- text: values[2],
279
- styleType: 'link',
280
- action: 'cancel'
281
- }
282
- ]);
283
- });
284
- });
285
- break;
286
- }
287
- return promise;
288
- };
289
- SkyInlineFormComponent.prototype.getCustomButtons = function (buttonConfigs) {
290
- var buttons = [];
291
- buttonConfigs.forEach(function (config) {
292
- buttons.push({
293
- action: config.action,
294
- disabled: config.disabled,
295
- styleType: config.styleType || 'default',
296
- text: config.text
297
- });
298
- });
299
- return buttons;
300
- };
301
- SkyInlineFormComponent.prototype.isValidCustomConfig = function (config) {
302
- return (config &&
303
- config.buttonLayout === SkyInlineFormButtonLayout.Custom &&
304
- config.buttons.length > 0);
305
- };
306
- SkyInlineFormComponent.ctorParameters = function () { return [
307
- { type: SkyInlineFormAdapterService },
308
- { type: ElementRef },
309
- { type: SkyLibResourcesService },
310
- { type: SkyAppWindowRef },
311
- { type: ChangeDetectorRef }
312
- ]; };
313
- __decorate([
314
- Input()
315
- ], SkyInlineFormComponent.prototype, "config", null);
316
- __decorate([
317
- Input()
318
- ], SkyInlineFormComponent.prototype, "template", void 0);
319
- __decorate([
320
- Input()
321
- ], SkyInlineFormComponent.prototype, "showForm", null);
322
- __decorate([
323
- Output()
324
- ], SkyInlineFormComponent.prototype, "close", void 0);
325
- SkyInlineFormComponent = __decorate([
326
- Component({
327
- selector: 'sky-inline-form',
328
- template: "<div\n [@skySlideDissolve]=\"showForm\"\n>\n\n <div *ngIf=\"!showForm\"\n class=\"sky-slide-dissolve-first\"\n >\n <ng-content></ng-content>\n </div>\n\n <div *ngIf=\"template && showForm\"\n class=\"sky-slide-dissolve-last\"\n >\n <div\n class=\"sky-inline-form sky-shadow sky-box sky-elevation-3\"\n >\n <div\n class=\"sky-inline-form-content\"\n >\n <ng-container\n [ngTemplateOutlet]=\"template\"\n >\n </ng-container>\n </div>\n <div\n class=\"sky-inline-form-footer\"\n >\n <button *ngFor=\"let button of buttons\"\n class=\"sky-btn {{ 'sky-btn-' + button.styleType }}\"\n type=\"button\"\n [disabled]=\"(button.disabled) ? true : null\"\n [ngClass]=\"{ 'sky-btn-disabled' : button.disabled }\"\n (click)=\"closeInlineForm(button)\"\n >\n {{ button.text }}\n </button>\n </div>\n </div>\n </div>\n\n</div>\n",
329
- changeDetection: ChangeDetectionStrategy.OnPush,
330
- providers: [
331
- SkyInlineFormAdapterService
332
- ],
333
- animations: [skySlideDissolve],
334
- styles: [".sky-inline-form{background:#eeeeef;border:1px solid #cdcfd2;padding:10px;width:100%}.sky-inline-form .sky-inline-form-footer{margin-top:20px}.sky-inline-form .sky-inline-form-footer button{margin:0 5px 0 0}.sky-theme-modern .sky-inline-form,:host-context(.sky-theme-modern) .sky-inline-form{background-color:#fff;border:none;padding:15px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer,:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer{margin-top:30px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer button,:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer button{margin-right:10px}.sky-theme-modern.sky-theme-mode-dark .sky-inline-form,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-inline-form{background-color:#232427}"]
335
- })
336
- ], SkyInlineFormComponent);
337
- return SkyInlineFormComponent;
338
- }());
339
-
340
- /**
341
- * @internal
342
- * @deprecated This module can be removed after we upgrade SKY UX development dependencies to version 5.
343
- */
344
- var SkyInlineFormForRootCompatModule = /** @class */ (function () {
345
- function SkyInlineFormForRootCompatModule() {
346
- }
347
- SkyInlineFormForRootCompatModule = __decorate([
348
- NgModule({
349
- providers: [
350
- SkyAppWindowRef
351
- ]
352
- })
353
- ], SkyInlineFormForRootCompatModule);
354
- return SkyInlineFormForRootCompatModule;
355
- }());
356
-
357
- var SkyInlineFormResourcesProvider = /** @class */ (function () {
358
- function SkyInlineFormResourcesProvider() {
359
- this.resources = { "EN-US": { "skyux_inline_form_button_cancel": "Cancel", "skyux_inline_form_button_delete": "Delete", "skyux_inline_form_button_done": "Done", "skyux_inline_form_button_save": "Save" } };
360
- }
361
- SkyInlineFormResourcesProvider.prototype.getString = function (localeInfo, name) {
362
- return getStringForLocale(this.resources, localeInfo.locale, name);
363
- };
364
- SkyInlineFormResourcesProvider = __decorate([
365
- Injectable()
366
- ], SkyInlineFormResourcesProvider);
367
- return SkyInlineFormResourcesProvider;
368
- }());
369
-
370
- var SkyInlineFormResourcesModule = /** @class */ (function () {
371
- function SkyInlineFormResourcesModule() {
372
- }
373
- SkyInlineFormResourcesModule = __decorate([
374
- NgModule({
375
- exports: [
376
- SkyI18nModule
377
- ],
378
- providers: [{
379
- provide: SKY_LIB_RESOURCES_PROVIDERS,
380
- useClass: SkyInlineFormResourcesProvider,
381
- multi: true
382
- }]
383
- })
384
- ], SkyInlineFormResourcesModule);
385
- return SkyInlineFormResourcesModule;
386
- }());
387
-
388
- var SkyInlineFormModule = /** @class */ (function () {
389
- function SkyInlineFormModule() {
390
- }
391
- SkyInlineFormModule = __decorate([
392
- NgModule({
393
- declarations: [
394
- SkyInlineFormComponent
395
- ],
396
- imports: [
397
- CommonModule,
398
- SkyInlineFormForRootCompatModule,
399
- SkyInlineFormResourcesModule
400
- ],
401
- exports: [
402
- SkyInlineFormComponent
403
- ]
404
- })
405
- ], SkyInlineFormModule);
406
- return SkyInlineFormModule;
407
- }());
408
-
409
- /**
410
- * Generated bundle index. Do not edit.
411
- */
412
-
413
- export { SkyInlineFormButtonLayout, SkyInlineFormModule, SkyInlineFormComponent as ɵa, SkyInlineFormAdapterService as ɵb, skySlideDissolve as ɵc, SkyInlineFormForRootCompatModule as ɵd, SkyInlineFormResourcesModule as ɵe, SkyInlineFormResourcesProvider as ɵf };
414
- //# sourceMappingURL=skyux-inline-form.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skyux-inline-form.js","sources":["ng://@skyux/inline-form/modules/inline-form/animations/slide-dissolve.ts","ng://@skyux/inline-form/modules/inline-form/types/inline-form-button-layout.ts","ng://@skyux/inline-form/modules/inline-form/inline-form-adapter.service.ts","ng://@skyux/inline-form/modules/inline-form/inline-form.component.ts","ng://@skyux/inline-form/modules/shared/inline-form-for-root-compat.module.ts","ng://@skyux/inline-form/plugin-resources/inline-form-resources-provider.ts","ng://@skyux/inline-form/modules/shared/inline-form-resources.module.ts","ng://@skyux/inline-form/modules/inline-form/inline-form.module.ts","ng://@skyux/inline-form/skyux-inline-form.ts"],"sourcesContent":["import {\n animate,\n AnimationTriggerMetadata,\n group,\n query,\n style,\n transition,\n trigger\n} from '@angular/animations';\n\nexport const skySlideDissolve: AnimationTriggerMetadata = trigger('skySlideDissolve', [\n transition('* <=> *', [\n\n // Expand animations\n query('.sky-slide-dissolve-last:enter', [\n style({ height: 0, opacity: 0 }),\n animate('200ms ease-in', style({ height: '*', opacity: 0 }))\n ], { optional: true }),\n query('.sky-slide-dissolve-last:enter', [\n style({ opacity: 0 }),\n animate('200ms ease-in', style({ opacity: 1 }))\n ], { optional: true }),\n\n // Collapse animations\n // The expanded content should fade out immediately to prevent\n // any overlap with the read-only content that's returning to the screen.\n query('.sky-slide-dissolve-last:leave', [\n animate('0ms', style({ opacity: 0 }))\n ], { optional: true }),\n\n group([\n query('.sky-slide-dissolve-first:enter', [\n style({ opacity: 0, height: 0 }),\n animate('100ms ease-in', style({ opacity: 1, height: '*' }))\n ], { optional: true }),\n query('.sky-slide-dissolve-last:leave', [\n animate('200ms ease-in', style({ height: 0 }))\n ], { optional: true })\n\n ])\n ])\n]);\n","export enum SkyInlineFormButtonLayout {\n Custom = 0,\n DoneCancel = 1,\n DoneDeleteCancel = 2,\n SaveCancel = 3,\n SaveDeleteCancel = 4\n}\n","import {\n ElementRef,\n Injectable\n} from '@angular/core';\n\n/* tslint:disable */\nconst SKY_TABBABLE_SELECTOR = [\n 'a[href]',\n 'area[href]',\n 'input:not([disabled]):not([tabindex=\\'-1\\'])',\n 'button:not([disabled]):not([tabindex=\\'-1\\'])',\n 'select:not([disabled]):not([tabindex=\\'-1\\'])',\n 'textarea:not([disabled]):not([tabindex=\\'-1\\'])',\n 'iframe',\n 'object',\n 'embed',\n '*[tabindex]:not([tabindex=\\'-1\\'])',\n '*[contenteditable=true]'\n].join(', ');\n/* tslint:enable */\n\n/**\n * @internal\n */\n@Injectable()\nexport class SkyInlineFormAdapterService {\n\n public applyAutofocus(inlineFormElementRef: ElementRef): void {\n const inputWithAutofocus = inlineFormElementRef.nativeElement.querySelector('[autofocus]');\n\n if (inputWithAutofocus) {\n inputWithAutofocus.focus();\n } else {\n let focusEl: HTMLElement = inlineFormElementRef.nativeElement.querySelector('.sky-inline-form-content');\n let focusableChildren = this.loadFocusableChildren(focusEl);\n\n this.focusFirstElement(focusableChildren);\n }\n }\n\n private loadFocusableChildren(elem: HTMLElement): HTMLElement[] {\n const elements: Array<HTMLElement>\n = Array.prototype.slice.call(elem.querySelectorAll(SKY_TABBABLE_SELECTOR));\n\n return elements.filter((element) => {\n return this.isVisible(element);\n });\n }\n\n private isVisible(element: HTMLElement): boolean {\n const style = window.getComputedStyle(element);\n const isHidden = style.display === 'none' || style.visibility === 'hidden';\n if (isHidden) {\n return false;\n }\n\n const hasBounds = !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n return hasBounds;\n }\n\n private focusFirstElement(list: Array<HTMLElement>): void {\n if (list.length > 0) {\n list[0].focus();\n }\n }\n}\n","import {\n ChangeDetectorRef,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef\n} from '@angular/core';\n\nimport {\n SkyAppWindowRef\n} from '@skyux/core';\n\nimport {\n SkyLibResourcesService\n} from '@skyux/i18n';\n\nimport {\n zip as observableZip\n} from 'rxjs';\n\nimport {\n take\n} from 'rxjs/operators';\n\nimport {\n skySlideDissolve\n} from './animations/slide-dissolve';\n\nimport {\n SkyInlineFormButtonConfig\n} from './types/inline-form-button-config';\n\nimport {\n SkyInlineFormButtonLayout\n} from './types/inline-form-button-layout';\n\nimport {\n SkyInlineFormCloseArgs\n} from './types/inline-form-close-args';\n\nimport {\n SkyInlineFormConfig\n} from './types/inline-form-config';\n\nimport {\n SkyInlineFormAdapterService\n} from './inline-form-adapter.service';\n\n/**\n * Renders form content in the current view instead of a separate modal.\n */\n@Component({\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})\nexport class SkyInlineFormComponent implements OnInit, OnDestroy {\n\n /**\n * Specifies configuration options for the buttons to display with the inline form.\n * @required\n */\n @Input()\n public set config(value: SkyInlineFormConfig) {\n if (value !== this._config) {\n this._config = value;\n this.setupButtons();\n }\n }\n\n public get config(): SkyInlineFormConfig {\n return this._config;\n }\n\n /**\n * Specifies a template to use to instantiate the inline form.\n * @required\n */\n @Input()\n public template: TemplateRef<any>;\n\n /**\n * Indicates whether to display the inline form. Users can toggle between displaying\n * and hiding the inline form.\n * @default false\n */\n @Input()\n public set showForm(value: boolean) {\n this._showForm = value;\n\n /* istanbul ignore else */\n if (value) {\n // setTimeout() prevents applyAutofocus() from firing\n // until after *ngIf has added the form element to the DOM.\n this.skyAppWindowRef.nativeWindow.setTimeout(() => {\n this.adapter.applyAutofocus(this.elementRef);\n });\n }\n }\n\n public get showForm() {\n return this._showForm;\n }\n\n /**\n * Fires when users close the inline form.\n */\n @Output()\n public close = new EventEmitter<SkyInlineFormCloseArgs>();\n\n public buttons: SkyInlineFormButtonConfig[];\n\n private _config: SkyInlineFormConfig;\n\n private _showForm: boolean = false;\n\n constructor(\n private adapter: SkyInlineFormAdapterService,\n private elementRef: ElementRef,\n private resourcesService: SkyLibResourcesService,\n private skyAppWindowRef: SkyAppWindowRef,\n private changeDetectorRef: ChangeDetectorRef\n ) {}\n\n public ngOnInit(): void {\n this.setupButtons();\n }\n\n public ngOnDestroy(): void {\n this.close.complete();\n }\n\n public closeInlineForm(event: SkyInlineFormButtonConfig): void {\n const args: SkyInlineFormCloseArgs = {\n reason: event.action\n };\n this.close.emit(args);\n }\n\n private setupButtons(): void {\n if (this.isValidCustomConfig(this.config)) {\n this.buttons = this.getCustomButtons(this.config.buttons);\n this.changeDetectorRef.markForCheck();\n return;\n }\n\n this.getPresetButtons().then((buttons) => {\n this.buttons = buttons;\n this.changeDetectorRef.markForCheck();\n });\n }\n\n private getPresetButtons(): Promise<SkyInlineFormButtonConfig[]> {\n let buttonType =\n this.config ? this.config.buttonLayout : SkyInlineFormButtonLayout.DoneCancel;\n\n let promise: Promise<SkyInlineFormButtonConfig[]>;\n\n switch (buttonType) {\n /* istanbul ignore next */\n default:\n case SkyInlineFormButtonLayout.DoneCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_done'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'done'\n },\n {\n text: values[1],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n\n case SkyInlineFormButtonLayout.SaveCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_save'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'save'\n },\n {\n text: values[1],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n\n case SkyInlineFormButtonLayout.DoneDeleteCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_done'),\n this.resourcesService.getString('skyux_inline_form_button_delete'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'done'\n },\n {\n text: values[1],\n styleType: 'default',\n action: 'delete'\n },\n {\n text: values[2],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n\n case SkyInlineFormButtonLayout.SaveDeleteCancel:\n observableZip(\n this.resourcesService.getString('skyux_inline_form_button_save'),\n this.resourcesService.getString('skyux_inline_form_button_delete'),\n this.resourcesService.getString('skyux_inline_form_button_cancel')\n )\n .pipe(take(1))\n .subscribe((values: any) => {\n promise = new Promise<SkyInlineFormButtonConfig[]>((resolve: any) => {\n resolve([\n {\n text: values[0],\n styleType: 'primary',\n action: 'save'\n },\n {\n text: values[1],\n styleType: 'default',\n action: 'delete'\n },\n {\n text: values[2],\n styleType: 'link',\n action: 'cancel'\n }\n ]);\n });\n });\n break;\n }\n\n return promise;\n }\n\n private getCustomButtons(buttonConfigs: SkyInlineFormButtonConfig[]): SkyInlineFormButtonConfig[] {\n const buttons: SkyInlineFormButtonConfig[] = [];\n\n buttonConfigs.forEach((config: SkyInlineFormButtonConfig) => {\n buttons.push({\n action: config.action,\n disabled: config.disabled,\n styleType: config.styleType || 'default',\n text: config.text\n } as SkyInlineFormButtonConfig);\n });\n\n return buttons;\n }\n\n private isValidCustomConfig(config: SkyInlineFormConfig): boolean {\n return (\n config &&\n config.buttonLayout === SkyInlineFormButtonLayout.Custom &&\n config.buttons.length > 0\n );\n }\n\n}\n","import {\n NgModule\n} from '@angular/core';\n\nimport {\n SkyAppWindowRef\n} from '@skyux/core';\n\n/**\n * @internal\n * @deprecated This module can be removed after we upgrade SKY UX development dependencies to version 5.\n */\n @NgModule({\n providers: [\n SkyAppWindowRef\n ]\n})\nexport class SkyInlineFormForRootCompatModule {}\n","\nimport {\n Injectable\n} from '@angular/core';\n\nimport {\n getStringForLocale,\n SkyAppLocaleInfo,\n SkyLibResourcesProvider\n} from '@skyux/i18n';\n\n@Injectable()\nexport class SkyInlineFormResourcesProvider implements SkyLibResourcesProvider {\n private resources: any = {\"EN-US\":{\"skyux_inline_form_button_cancel\":\"Cancel\",\"skyux_inline_form_button_delete\":\"Delete\",\"skyux_inline_form_button_done\":\"Done\",\"skyux_inline_form_button_save\":\"Save\"}};\n\n public getString(localeInfo: SkyAppLocaleInfo, name: string): string {\n return getStringForLocale(this.resources, localeInfo.locale, name);\n }\n}\n","import {\n NgModule\n} from '@angular/core';\n\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyI18nModule\n} from '@skyux/i18n';\n\nimport {\n SkyInlineFormResourcesProvider\n} from '../../plugin-resources/inline-form-resources-provider';\n\n@NgModule({\n exports: [\n SkyI18nModule\n ],\n providers: [{\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyInlineFormResourcesProvider,\n multi: true\n }]\n})\nexport class SkyInlineFormResourcesModule { }\n","import {\n CommonModule\n} from '@angular/common';\n\nimport {\n NgModule\n} from '@angular/core';\n\nimport {\n SkyInlineFormComponent\n} from './inline-form.component';\n\nimport {\n SkyInlineFormForRootCompatModule\n} from '../shared/inline-form-for-root-compat.module';\n\nimport {\n SkyInlineFormResourcesModule\n} from '../shared/inline-form-resources.module';\n\n@NgModule({\n declarations: [\n SkyInlineFormComponent\n ],\n imports: [\n CommonModule,\n SkyInlineFormForRootCompatModule,\n SkyInlineFormResourcesModule\n ],\n exports: [\n SkyInlineFormComponent\n ]\n})\nexport class SkyInlineFormModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {skySlideDissolve as ɵc} from './modules/inline-form/animations/slide-dissolve';\nexport {SkyInlineFormAdapterService as ɵb} from './modules/inline-form/inline-form-adapter.service';\nexport {SkyInlineFormComponent as ɵa} from './modules/inline-form/inline-form.component';\nexport {SkyInlineFormForRootCompatModule as ɵd} from './modules/shared/inline-form-for-root-compat.module';\nexport {SkyInlineFormResourcesModule as ɵe} from './modules/shared/inline-form-resources.module';\nexport {SkyInlineFormResourcesProvider as ɵf} from './plugin-resources/inline-form-resources-provider';"],"names":["observableZip"],"mappings":";;;;;;;;;IAUa,gBAAgB,GAA6B,OAAO,CAAC,kBAAkB,EAAE;IACpF,UAAU,CAAC,SAAS,EAAE;;QAGpB,KAAK,CAAC,gCAAgC,EAAE;YACtC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;SAC7D,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACtB,KAAK,CAAC,gCAAgC,EAAE;YACtC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YACrB,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;SAChD,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;;;QAKtB,KAAK,CAAC,gCAAgC,EAAE;YACtC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;SACtC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QAEtB,KAAK,CAAC;YACJ,KAAK,CAAC,iCAAiC,EAAE;gBACvC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;gBAChC,OAAO,CAAC,eAAe,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;aAC7D,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACtB,KAAK,CAA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AD,0BAAC;CAApC;;ACjCA;;;;;;"}
@@ -1,6 +0,0 @@
1
- /**
2
- * @internal
3
- * @deprecated This module can be removed after we upgrade SKY UX development dependencies to version 5.
4
- */
5
- export declare class SkyInlineFormForRootCompatModule {
6
- }
@@ -1,2 +0,0 @@
1
- export declare class SkyInlineFormResourcesModule {
2
- }
@@ -1,5 +0,0 @@
1
- import { SkyAppLocaleInfo, SkyLibResourcesProvider } from '@skyux/i18n';
2
- export declare class SkyInlineFormResourcesProvider implements SkyLibResourcesProvider {
3
- private resources;
4
- getString(localeInfo: SkyAppLocaleInfo, name: string): string;
5
- }
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"metadata":{"SkyInlineFormModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":20,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":25,"character":4},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"}],"exports":[{"__symbolic":"reference","name":"ɵa"}]}]}],"members":{}},"SkyInlineFormButtonAction":{"__symbolic":"interface"},"SkyInlineFormButtonConfig":{"__symbolic":"interface"},"SkyInlineFormCloseArgs":{"__symbolic":"interface"},"SkyInlineFormConfig":{"__symbolic":"interface"},"SkyInlineFormButtonLayout":{"Custom":0,"DoneCancel":1,"DoneDeleteCancel":2,"SaveCancel":3,"SaveDeleteCancel":4},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":56,"character":1},"arguments":[{"selector":"sky-inline-form","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":60,"character":19},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"ɵb"}],"animations":[{"__symbolic":"reference","name":"ɵc"}],"template":"<div\n [@skySlideDissolve]=\"showForm\"\n>\n\n <div *ngIf=\"!showForm\"\n class=\"sky-slide-dissolve-first\"\n >\n <ng-content></ng-content>\n </div>\n\n <div *ngIf=\"template && showForm\"\n class=\"sky-slide-dissolve-last\"\n >\n <div\n class=\"sky-inline-form sky-shadow sky-box sky-elevation-3\"\n >\n <div\n class=\"sky-inline-form-content\"\n >\n <ng-container\n [ngTemplateOutlet]=\"template\"\n >\n </ng-container>\n </div>\n <div\n class=\"sky-inline-form-footer\"\n >\n <button *ngFor=\"let button of buttons\"\n class=\"sky-btn {{ 'sky-btn-' + button.styleType }}\"\n type=\"button\"\n [disabled]=\"(button.disabled) ? true : null\"\n [ngClass]=\"{ 'sky-btn-disabled' : button.disabled }\"\n (click)=\"closeInlineForm(button)\"\n >\n {{ button.text }}\n </button>\n </div>\n </div>\n </div>\n\n</div>\n","styles":[".sky-inline-form{background:#eeeeef;border:1px solid #cdcfd2;padding:10px;width:100%}.sky-inline-form .sky-inline-form-footer{margin-top:20px}.sky-inline-form .sky-inline-form-footer button{margin:0 5px 0 0}.sky-theme-modern .sky-inline-form,:host-context(.sky-theme-modern) .sky-inline-form{background-color:#fff;border:none;padding:15px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer,:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer{margin-top:30px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer button,:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer button{margin-right:10px}.sky-theme-modern.sky-theme-mode-dark .sky-inline-form,:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-inline-form{background-color:#232427}"]}]}],"members":{"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":72,"character":3}}]}],"template":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":88,"character":3}}]}],"showForm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":96,"character":3}}]}],"close":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":117,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":128,"character":24},{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyLibResourcesService","line":129,"character":30},{"__symbolic":"reference","module":"@skyux/core","name":"SkyAppWindowRef","line":130,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":131,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"closeInlineForm":[{"__symbolic":"method"}],"setupButtons":[{"__symbolic":"method"}],"getPresetButtons":[{"__symbolic":"method"}],"getCustomButtons":[{"__symbolic":"method"}],"isValidCustomConfig":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":24,"character":1}}],"members":{"applyAutofocus":[{"__symbolic":"method"}],"loadFocusableChildren":[{"__symbolic":"method"}],"isVisible":[{"__symbolic":"method"}],"focusFirstElement":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"trigger","line":10,"character":58},"arguments":["skySlideDissolve",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"transition","line":11,"character":2},"arguments":["* <=> *",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":14,"character":4},"arguments":[".sky-slide-dissolve-last:enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":15,"character":6},"arguments":[{"height":0,"opacity":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":16,"character":6},"arguments":["200ms ease-in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":16,"character":31},"arguments":[{"height":"*","opacity":0}]}]}],{"optional":true}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":18,"character":4},"arguments":[".sky-slide-dissolve-last:enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":19,"character":6},"arguments":[{"opacity":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":20,"character":6},"arguments":["200ms ease-in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":20,"character":31},"arguments":[{"opacity":1}]}]}],{"optional":true}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":26,"character":4},"arguments":[".sky-slide-dissolve-last:leave",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":27,"character":6},"arguments":["0ms",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":27,"character":21},"arguments":[{"opacity":0}]}]}],{"optional":true}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"group","line":30,"character":4},"arguments":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":31,"character":6},"arguments":[".sky-slide-dissolve-first:enter",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":32,"character":8},"arguments":[{"opacity":0,"height":0}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":33,"character":8},"arguments":["100ms ease-in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":33,"character":33},"arguments":[{"opacity":1,"height":"*"}]}]}],{"optional":true}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"query","line":35,"character":6},"arguments":[".sky-slide-dissolve-last:leave",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"animate","line":36,"character":8},"arguments":["200ms ease-in",{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/animations","name":"style","line":36,"character":33},"arguments":[{"height":0}]}]}],{"optional":true}]}]]}]]}]]},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":2},"arguments":[{"providers":[{"__symbolic":"reference","module":"@skyux/core","name":"SkyAppWindowRef","line":14,"character":4}]}]}],"members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":13,"character":1},"arguments":[{"exports":[{"__symbolic":"reference","module":"@skyux/i18n","name":"SkyI18nModule","line":15,"character":4}],"providers":[{"provide":{"__symbolic":"reference","module":"@skyux/i18n","name":"SKY_LIB_RESOURCES_PROVIDERS","line":18,"character":13},"useClass":{"__symbolic":"reference","name":"ɵf"},"multi":true}]}]}],"members":{}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"getString":[{"__symbolic":"method"}]}}},"origins":{"SkyInlineFormModule":"./modules/inline-form/inline-form.module","SkyInlineFormButtonAction":"./modules/inline-form/types/inline-form-button-action","SkyInlineFormButtonConfig":"./modules/inline-form/types/inline-form-button-config","SkyInlineFormCloseArgs":"./modules/inline-form/types/inline-form-close-args","SkyInlineFormConfig":"./modules/inline-form/types/inline-form-config","SkyInlineFormButtonLayout":"./modules/inline-form/types/inline-form-button-layout","ɵa":"./modules/inline-form/inline-form.component","ɵb":"./modules/inline-form/inline-form-adapter.service","ɵc":"./modules/inline-form/animations/slide-dissolve","ɵd":"./modules/shared/inline-form-for-root-compat.module","ɵe":"./modules/shared/inline-form-resources.module","ɵf":"./plugin-resources/inline-form-resources-provider"},"importAs":"@skyux/inline-form"}
Binary file
@@ -1,18 +0,0 @@
1
- {
2
- "skyux_inline_form_button_cancel": {
3
- "_description": "Text for cancel button",
4
- "message": "Cancel"
5
- },
6
- "skyux_inline_form_button_delete": {
7
- "_description": "Text for delete button",
8
- "message": "Delete"
9
- },
10
- "skyux_inline_form_button_done": {
11
- "_description": "Text for done button",
12
- "message": "Done"
13
- },
14
- "skyux_inline_form_button_save": {
15
- "_description": "Text for save button",
16
- "message": "Save"
17
- }
18
- }