@skyux/inline-form 8.7.2 → 9.0.0-alpha.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 (23) hide show
  1. package/documentation.json +25 -25
  2. package/esm2022/lib/modules/inline-form/inline-form-adapter.service.mjs +60 -0
  3. package/esm2022/lib/modules/inline-form/inline-form.component.mjs +226 -0
  4. package/{esm2020 → esm2022}/lib/modules/inline-form/inline-form.module.mjs +5 -5
  5. package/esm2022/lib/modules/shared/sky-inline-form-resources.module.mjs +50 -0
  6. package/fesm2022/skyux-inline-form.mjs +400 -0
  7. package/{fesm2020 → fesm2022}/skyux-inline-form.mjs.map +1 -1
  8. package/lib/modules/inline-form/inline-form.component.d.ts +1 -1
  9. package/package.json +10 -16
  10. package/esm2020/lib/modules/inline-form/inline-form-adapter.service.mjs +0 -63
  11. package/esm2020/lib/modules/inline-form/inline-form.component.mjs +0 -224
  12. package/esm2020/lib/modules/shared/sky-inline-form-resources.module.mjs +0 -50
  13. package/fesm2015/skyux-inline-form.mjs +0 -400
  14. package/fesm2015/skyux-inline-form.mjs.map +0 -1
  15. package/fesm2020/skyux-inline-form.mjs +0 -400
  16. /package/{esm2020 → esm2022}/index.mjs +0 -0
  17. /package/{esm2020 → esm2022}/lib/modules/inline-form/animations/slide-dissolve.mjs +0 -0
  18. /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-button-action.mjs +0 -0
  19. /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-button-config.mjs +0 -0
  20. /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-button-layout.mjs +0 -0
  21. /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-close-args.mjs +0 -0
  22. /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-config.mjs +0 -0
  23. /package/{esm2020 → esm2022}/skyux-inline-form.mjs +0 -0
@@ -1,400 +0,0 @@
1
- import * as i4 from '@angular/common';
2
- import { CommonModule } from '@angular/common';
3
- import * as i0 from '@angular/core';
4
- import { NgModule, Injectable, EventEmitter, Component, ChangeDetectionStrategy, Input, Output } from '@angular/core';
5
- import * as i2 from '@skyux/i18n';
6
- import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
7
- import { __classPrivateFieldGet, __classPrivateFieldSet } from 'tslib';
8
- import { Subject, ReplaySubject, zip } from 'rxjs';
9
- import { takeUntil } from 'rxjs/operators';
10
- import { trigger, transition, query, style, animate, group } from '@angular/animations';
11
- import * as i3 from '@skyux/core';
12
-
13
- /**
14
- * NOTICE: DO NOT MODIFY THIS FILE!
15
- * The contents of this file were automatically generated by
16
- * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-inline-form' schematic.
17
- * To update this file, simply rerun the command.
18
- */
19
- const RESOURCES = {
20
- 'EN-US': {
21
- skyux_inline_form_button_cancel: { message: 'Cancel' },
22
- skyux_inline_form_button_delete: { message: 'Delete' },
23
- skyux_inline_form_button_done: { message: 'Done' },
24
- skyux_inline_form_button_save: { message: 'Save' },
25
- },
26
- };
27
- class SkyInlineFormResourcesProvider {
28
- getString(localeInfo, name) {
29
- return getLibStringForLocale(RESOURCES, localeInfo.locale, name);
30
- }
31
- }
32
- /**
33
- * Import into any component library module that needs to use resource strings.
34
- */
35
- class SkyInlineFormResourcesModule {
36
- }
37
- SkyInlineFormResourcesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
38
- SkyInlineFormResourcesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormResourcesModule, exports: [SkyI18nModule] });
39
- SkyInlineFormResourcesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormResourcesModule, providers: [
40
- {
41
- provide: SKY_LIB_RESOURCES_PROVIDERS,
42
- useClass: SkyInlineFormResourcesProvider,
43
- multi: true,
44
- },
45
- ], imports: [SkyI18nModule] });
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormResourcesModule, decorators: [{
47
- type: NgModule,
48
- args: [{
49
- exports: [SkyI18nModule],
50
- providers: [
51
- {
52
- provide: SKY_LIB_RESOURCES_PROVIDERS,
53
- useClass: SkyInlineFormResourcesProvider,
54
- multi: true,
55
- },
56
- ],
57
- }]
58
- }] });
59
-
60
- const skySlideDissolve = trigger('skySlideDissolve', [
61
- transition('* <=> *', [
62
- // Expand animations
63
- query('.sky-slide-dissolve-last:enter', [
64
- style({ height: 0, opacity: 0 }),
65
- animate('200ms ease-in', style({ height: '*', opacity: 0 })),
66
- ], { optional: true }),
67
- query('.sky-slide-dissolve-last:enter', [
68
- style({ opacity: 0 }),
69
- animate('200ms ease-in', style({ opacity: 1 })),
70
- ], { optional: true }),
71
- // Collapse animations
72
- // The expanded content should fade out immediately to prevent
73
- // any overlap with the read-only content that's returning to the screen.
74
- query('.sky-slide-dissolve-last:leave', [animate('0ms', style({ opacity: 0 }))], { optional: true }),
75
- group([
76
- query('.sky-slide-dissolve-first:enter', [
77
- style({ opacity: 0, height: 0 }),
78
- animate('100ms ease-in', style({ opacity: 1, height: '*' })),
79
- ], { optional: true }),
80
- query('.sky-slide-dissolve-last:leave', [animate('200ms ease-in', style({ height: 0 }))], { optional: true }),
81
- ]),
82
- ]),
83
- ]);
84
-
85
- var _SkyInlineFormAdapterService_instances, _SkyInlineFormAdapterService_loadFocusableChildren, _SkyInlineFormAdapterService_isVisible, _SkyInlineFormAdapterService_focusFirstElement;
86
- const SKY_TABBABLE_SELECTOR = [
87
- 'a[href]',
88
- 'area[href]',
89
- "input:not([disabled]):not([tabindex='-1'])",
90
- "button:not([disabled]):not([tabindex='-1'])",
91
- "select:not([disabled]):not([tabindex='-1'])",
92
- "textarea:not([disabled]):not([tabindex='-1'])",
93
- 'iframe',
94
- 'object',
95
- 'embed',
96
- "*[tabindex]:not([tabindex='-1'])",
97
- '*[contenteditable=true]',
98
- ].join(', ');
99
- /**
100
- * @internal
101
- */
102
- class SkyInlineFormAdapterService {
103
- constructor() {
104
- _SkyInlineFormAdapterService_instances.add(this);
105
- }
106
- applyAutofocus(inlineFormElementRef) {
107
- const inputWithAutofocus = inlineFormElementRef.nativeElement.querySelector('[autofocus]');
108
- if (inputWithAutofocus) {
109
- inputWithAutofocus.focus();
110
- }
111
- else {
112
- const focusEl = inlineFormElementRef.nativeElement.querySelector('.sky-inline-form-content');
113
- const focusableChildren = __classPrivateFieldGet(this, _SkyInlineFormAdapterService_instances, "m", _SkyInlineFormAdapterService_loadFocusableChildren).call(this, focusEl);
114
- __classPrivateFieldGet(this, _SkyInlineFormAdapterService_instances, "m", _SkyInlineFormAdapterService_focusFirstElement).call(this, focusableChildren);
115
- }
116
- }
117
- }
118
- _SkyInlineFormAdapterService_instances = new WeakSet(), _SkyInlineFormAdapterService_loadFocusableChildren = function _SkyInlineFormAdapterService_loadFocusableChildren(elem) {
119
- const elements = Array.prototype.slice.call(elem.querySelectorAll(SKY_TABBABLE_SELECTOR));
120
- return elements.filter((element) => {
121
- return __classPrivateFieldGet(this, _SkyInlineFormAdapterService_instances, "m", _SkyInlineFormAdapterService_isVisible).call(this, element);
122
- });
123
- }, _SkyInlineFormAdapterService_isVisible = function _SkyInlineFormAdapterService_isVisible(element) {
124
- const style = window.getComputedStyle(element);
125
- const isHidden = style.display === 'none' || style.visibility === 'hidden';
126
- if (isHidden) {
127
- return false;
128
- }
129
- /* istanbul ignore next */
130
- const hasBounds = !!(element.offsetWidth ||
131
- element.offsetHeight ||
132
- element.getClientRects().length);
133
- return hasBounds;
134
- }, _SkyInlineFormAdapterService_focusFirstElement = function _SkyInlineFormAdapterService_focusFirstElement(list) {
135
- if (list.length > 0) {
136
- list[0].focus();
137
- }
138
- };
139
- SkyInlineFormAdapterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormAdapterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
140
- SkyInlineFormAdapterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormAdapterService });
141
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormAdapterService, decorators: [{
142
- type: Injectable
143
- }] });
144
-
145
- var SkyInlineFormButtonLayout;
146
- (function (SkyInlineFormButtonLayout) {
147
- /**
148
- * Displays custom buttons.
149
- */
150
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["Custom"] = 0] = "Custom";
151
- /**
152
- * Displays Done and Cancel buttons.
153
- */
154
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["DoneCancel"] = 1] = "DoneCancel";
155
- /**
156
- * Displays Done, Delete, and Cancel buttons.
157
- */
158
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["DoneDeleteCancel"] = 2] = "DoneDeleteCancel";
159
- /**
160
- * Displays Save and Cancel buttons.
161
- */
162
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["SaveCancel"] = 3] = "SaveCancel";
163
- /**
164
- * Displays Save, Delete, and Cancel buttons.
165
- */
166
- SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["SaveDeleteCancel"] = 4] = "SaveDeleteCancel";
167
- })(SkyInlineFormButtonLayout || (SkyInlineFormButtonLayout = {}));
168
-
169
- var _SkyInlineFormComponent_instances, _SkyInlineFormComponent__config, _SkyInlineFormComponent__showForm, _SkyInlineFormComponent_ngUnsubscribe, _SkyInlineFormComponent_adapter, _SkyInlineFormComponent_elementRef, _SkyInlineFormComponent_resourcesService, _SkyInlineFormComponent_skyAppWindowRef, _SkyInlineFormComponent_changeDetectorRef, _SkyInlineFormComponent_setupButtons, _SkyInlineFormComponent_getPresetButtons, _SkyInlineFormComponent_getCustomButtons, _SkyInlineFormComponent_isValidCustomConfig;
170
- /**
171
- * Renders form content in the current view instead of a separate modal.
172
- */
173
- class SkyInlineFormComponent {
174
- /**
175
- * Configuration options for the buttons to display with the inline form.
176
- * @required
177
- */
178
- set config(value) {
179
- if (value !== __classPrivateFieldGet(this, _SkyInlineFormComponent__config, "f") && !!value) {
180
- __classPrivateFieldSet(this, _SkyInlineFormComponent__config, value, "f");
181
- __classPrivateFieldGet(this, _SkyInlineFormComponent_instances, "m", _SkyInlineFormComponent_setupButtons).call(this);
182
- }
183
- }
184
- get config() {
185
- return __classPrivateFieldGet(this, _SkyInlineFormComponent__config, "f");
186
- }
187
- /**
188
- * Whether to display the inline form. Users can toggle between displaying
189
- * and hiding the inline form.
190
- * @default false
191
- */
192
- set showForm(value) {
193
- __classPrivateFieldSet(this, _SkyInlineFormComponent__showForm, value, "f");
194
- /* istanbul ignore else */
195
- if (value) {
196
- // setTimeout() prevents applyAutofocus() from firing
197
- // until after *ngIf has added the form element to the DOM.
198
- __classPrivateFieldGet(this, _SkyInlineFormComponent_skyAppWindowRef, "f").nativeWindow.setTimeout(() => {
199
- __classPrivateFieldGet(this, _SkyInlineFormComponent_adapter, "f").applyAutofocus(__classPrivateFieldGet(this, _SkyInlineFormComponent_elementRef, "f"));
200
- });
201
- }
202
- }
203
- get showForm() {
204
- return __classPrivateFieldGet(this, _SkyInlineFormComponent__showForm, "f");
205
- }
206
- constructor(adapter, elementRef, resourcesService, skyAppWindowRef, changeDetectorRef) {
207
- _SkyInlineFormComponent_instances.add(this);
208
- /**
209
- * Fires when users close the inline form.
210
- */
211
- this.close = new EventEmitter();
212
- _SkyInlineFormComponent__config.set(this, void 0);
213
- _SkyInlineFormComponent__showForm.set(this, false);
214
- _SkyInlineFormComponent_ngUnsubscribe.set(this, new Subject());
215
- _SkyInlineFormComponent_adapter.set(this, void 0);
216
- _SkyInlineFormComponent_elementRef.set(this, void 0);
217
- _SkyInlineFormComponent_resourcesService.set(this, void 0);
218
- _SkyInlineFormComponent_skyAppWindowRef.set(this, void 0);
219
- _SkyInlineFormComponent_changeDetectorRef.set(this, void 0);
220
- __classPrivateFieldSet(this, _SkyInlineFormComponent_adapter, adapter, "f");
221
- __classPrivateFieldSet(this, _SkyInlineFormComponent_elementRef, elementRef, "f");
222
- __classPrivateFieldSet(this, _SkyInlineFormComponent_resourcesService, resourcesService, "f");
223
- __classPrivateFieldSet(this, _SkyInlineFormComponent_skyAppWindowRef, skyAppWindowRef, "f");
224
- __classPrivateFieldSet(this, _SkyInlineFormComponent_changeDetectorRef, changeDetectorRef, "f");
225
- }
226
- ngOnInit() {
227
- __classPrivateFieldGet(this, _SkyInlineFormComponent_instances, "m", _SkyInlineFormComponent_setupButtons).call(this);
228
- }
229
- ngOnDestroy() {
230
- __classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f").next();
231
- __classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f").complete();
232
- this.close.complete();
233
- }
234
- closeInlineForm(event) {
235
- const args = {
236
- reason: event.action,
237
- };
238
- this.close.emit(args);
239
- }
240
- }
241
- _SkyInlineFormComponent__config = new WeakMap(), _SkyInlineFormComponent__showForm = new WeakMap(), _SkyInlineFormComponent_ngUnsubscribe = new WeakMap(), _SkyInlineFormComponent_adapter = new WeakMap(), _SkyInlineFormComponent_elementRef = new WeakMap(), _SkyInlineFormComponent_resourcesService = new WeakMap(), _SkyInlineFormComponent_skyAppWindowRef = new WeakMap(), _SkyInlineFormComponent_changeDetectorRef = new WeakMap(), _SkyInlineFormComponent_instances = new WeakSet(), _SkyInlineFormComponent_setupButtons = function _SkyInlineFormComponent_setupButtons() {
242
- if (__classPrivateFieldGet(this, _SkyInlineFormComponent_instances, "m", _SkyInlineFormComponent_isValidCustomConfig).call(this, this.config) &&
243
- this.config &&
244
- this.config.buttons) {
245
- this.buttons = __classPrivateFieldGet(this, _SkyInlineFormComponent_instances, "m", _SkyInlineFormComponent_getCustomButtons).call(this, this.config.buttons);
246
- __classPrivateFieldGet(this, _SkyInlineFormComponent_changeDetectorRef, "f").markForCheck();
247
- return;
248
- }
249
- __classPrivateFieldGet(this, _SkyInlineFormComponent_instances, "m", _SkyInlineFormComponent_getPresetButtons).call(this)
250
- .pipe(takeUntil(__classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f")))
251
- .subscribe((buttons) => {
252
- this.buttons = buttons;
253
- __classPrivateFieldGet(this, _SkyInlineFormComponent_changeDetectorRef, "f").markForCheck();
254
- });
255
- }, _SkyInlineFormComponent_getPresetButtons = function _SkyInlineFormComponent_getPresetButtons() {
256
- const emitter = new ReplaySubject(1);
257
- const buttonType = this.config
258
- ? this.config.buttonLayout
259
- : SkyInlineFormButtonLayout.DoneCancel;
260
- switch (buttonType) {
261
- /* istanbul ignore next */
262
- default:
263
- case SkyInlineFormButtonLayout.DoneCancel:
264
- zip(__classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_done'), __classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_cancel'))
265
- .pipe(takeUntil(__classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f")))
266
- .subscribe((values) => {
267
- emitter.next([
268
- {
269
- text: values[0],
270
- styleType: 'primary',
271
- action: 'done',
272
- },
273
- {
274
- text: values[1],
275
- styleType: 'link',
276
- action: 'cancel',
277
- },
278
- ]);
279
- });
280
- break;
281
- case SkyInlineFormButtonLayout.SaveCancel:
282
- zip(__classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_save'), __classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_cancel'))
283
- .pipe(takeUntil(__classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f")))
284
- .subscribe((values) => {
285
- emitter.next([
286
- {
287
- text: values[0],
288
- styleType: 'primary',
289
- action: 'save',
290
- },
291
- {
292
- text: values[1],
293
- styleType: 'link',
294
- action: 'cancel',
295
- },
296
- ]);
297
- });
298
- break;
299
- case SkyInlineFormButtonLayout.DoneDeleteCancel:
300
- zip(__classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_done'), __classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_delete'), __classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_cancel'))
301
- .pipe(takeUntil(__classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f")))
302
- .subscribe((values) => {
303
- emitter.next([
304
- {
305
- text: values[0],
306
- styleType: 'primary',
307
- action: 'done',
308
- },
309
- {
310
- text: values[1],
311
- styleType: 'default',
312
- action: 'delete',
313
- },
314
- {
315
- text: values[2],
316
- styleType: 'link',
317
- action: 'cancel',
318
- },
319
- ]);
320
- });
321
- break;
322
- case SkyInlineFormButtonLayout.SaveDeleteCancel:
323
- zip(__classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_save'), __classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_delete'), __classPrivateFieldGet(this, _SkyInlineFormComponent_resourcesService, "f").getString('skyux_inline_form_button_cancel'))
324
- .pipe(takeUntil(__classPrivateFieldGet(this, _SkyInlineFormComponent_ngUnsubscribe, "f")))
325
- .subscribe((values) => {
326
- emitter.next([
327
- {
328
- text: values[0],
329
- styleType: 'primary',
330
- action: 'save',
331
- },
332
- {
333
- text: values[1],
334
- styleType: 'default',
335
- action: 'delete',
336
- },
337
- {
338
- text: values[2],
339
- styleType: 'link',
340
- action: 'cancel',
341
- },
342
- ]);
343
- });
344
- break;
345
- }
346
- return emitter.asObservable();
347
- }, _SkyInlineFormComponent_getCustomButtons = function _SkyInlineFormComponent_getCustomButtons(buttonConfigs) {
348
- const buttons = [];
349
- buttonConfigs.forEach((config) => {
350
- /* istanbul ignore next */
351
- const styleType = config.styleType || 'default';
352
- buttons.push({
353
- action: config.action,
354
- disabled: config.disabled,
355
- styleType: styleType,
356
- text: config.text,
357
- });
358
- });
359
- return buttons;
360
- }, _SkyInlineFormComponent_isValidCustomConfig = function _SkyInlineFormComponent_isValidCustomConfig(config) {
361
- return (!!config &&
362
- !!config.buttons &&
363
- config.buttons.length > 0 &&
364
- config.buttonLayout === SkyInlineFormButtonLayout.Custom);
365
- };
366
- SkyInlineFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormComponent, deps: [{ token: SkyInlineFormAdapterService }, { token: i0.ElementRef }, { token: i2.SkyLibResourcesService }, { token: i3.SkyAppWindowRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
367
- SkyInlineFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SkyInlineFormComponent, selector: "sky-inline-form", inputs: { config: "config", template: "template", showForm: "showForm" }, outputs: { close: "close" }, providers: [SkyInlineFormAdapterService], ngImport: i0, template: "<div [@skySlideDissolve]=\"showForm\">\n <div *ngIf=\"!showForm\" class=\"sky-slide-dissolve-first\">\n <ng-content></ng-content>\n </div>\n\n <div *ngIf=\"template && showForm\" class=\"sky-slide-dissolve-last\">\n <div class=\"sky-inline-form sky-shadow sky-box sky-elevation-3\">\n <div class=\"sky-inline-form-content\">\n <ng-container [ngTemplateOutlet]=\"template\"> </ng-container>\n </div>\n <div class=\"sky-inline-form-footer\">\n <button\n *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</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}:host-context(.sky-theme-modern) .sky-inline-form{background-color:#fff;border:none;padding:15px}:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer{margin-top:30px}:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer button{margin-right:10px}.sky-theme-modern .sky-inline-form{background-color:#fff;border:none;padding:15px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer{margin-top:30px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer button{margin-right:10px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-inline-form{background-color:#232427}.sky-theme-modern.sky-theme-mode-dark .sky-inline-form{background-color:#232427}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [skySlideDissolve], changeDetection: i0.ChangeDetectionStrategy.OnPush });
368
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormComponent, decorators: [{
369
- type: Component,
370
- args: [{ selector: 'sky-inline-form', changeDetection: ChangeDetectionStrategy.OnPush, providers: [SkyInlineFormAdapterService], animations: [skySlideDissolve], template: "<div [@skySlideDissolve]=\"showForm\">\n <div *ngIf=\"!showForm\" class=\"sky-slide-dissolve-first\">\n <ng-content></ng-content>\n </div>\n\n <div *ngIf=\"template && showForm\" class=\"sky-slide-dissolve-last\">\n <div class=\"sky-inline-form sky-shadow sky-box sky-elevation-3\">\n <div class=\"sky-inline-form-content\">\n <ng-container [ngTemplateOutlet]=\"template\"> </ng-container>\n </div>\n <div class=\"sky-inline-form-footer\">\n <button\n *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</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}:host-context(.sky-theme-modern) .sky-inline-form{background-color:#fff;border:none;padding:15px}:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer{margin-top:30px}:host-context(.sky-theme-modern) .sky-inline-form .sky-inline-form-footer button{margin-right:10px}.sky-theme-modern .sky-inline-form{background-color:#fff;border:none;padding:15px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer{margin-top:30px}.sky-theme-modern .sky-inline-form .sky-inline-form-footer button{margin-right:10px}:host-context(.sky-theme-modern.sky-theme-mode-dark) .sky-inline-form{background-color:#232427}.sky-theme-modern.sky-theme-mode-dark .sky-inline-form{background-color:#232427}\n"] }]
371
- }], ctorParameters: function () { return [{ type: SkyInlineFormAdapterService }, { type: i0.ElementRef }, { type: i2.SkyLibResourcesService }, { type: i3.SkyAppWindowRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { config: [{
372
- type: Input
373
- }], template: [{
374
- type: Input
375
- }], showForm: [{
376
- type: Input
377
- }], close: [{
378
- type: Output
379
- }] } });
380
-
381
- class SkyInlineFormModule {
382
- }
383
- SkyInlineFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
384
- SkyInlineFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormModule, declarations: [SkyInlineFormComponent], imports: [CommonModule, SkyInlineFormResourcesModule], exports: [SkyInlineFormComponent] });
385
- SkyInlineFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormModule, imports: [CommonModule, SkyInlineFormResourcesModule] });
386
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SkyInlineFormModule, decorators: [{
387
- type: NgModule,
388
- args: [{
389
- declarations: [SkyInlineFormComponent],
390
- imports: [CommonModule, SkyInlineFormResourcesModule],
391
- exports: [SkyInlineFormComponent],
392
- }]
393
- }] });
394
-
395
- /**
396
- * Generated bundle index. Do not edit.
397
- */
398
-
399
- export { SkyInlineFormButtonLayout, SkyInlineFormModule, SkyInlineFormComponent as λ1 };
400
- //# sourceMappingURL=skyux-inline-form.mjs.map
File without changes
File without changes