@skyux/inline-form 8.6.0 → 9.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/documentation.json +6 -6
- package/esm2022/lib/modules/inline-form/inline-form-adapter.service.mjs +60 -0
- package/esm2022/lib/modules/inline-form/inline-form.component.mjs +226 -0
- package/{esm2020 → esm2022}/lib/modules/inline-form/inline-form.module.mjs +5 -5
- package/esm2022/lib/modules/shared/sky-inline-form-resources.module.mjs +50 -0
- package/fesm2022/skyux-inline-form.mjs +400 -0
- package/{fesm2020 → fesm2022}/skyux-inline-form.mjs.map +1 -1
- package/lib/modules/inline-form/inline-form.component.d.ts +1 -1
- package/package.json +10 -16
- package/esm2020/lib/modules/inline-form/inline-form-adapter.service.mjs +0 -63
- package/esm2020/lib/modules/inline-form/inline-form.component.mjs +0 -224
- package/esm2020/lib/modules/shared/sky-inline-form-resources.module.mjs +0 -50
- package/fesm2015/skyux-inline-form.mjs +0 -400
- package/fesm2015/skyux-inline-form.mjs.map +0 -1
- package/fesm2020/skyux-inline-form.mjs +0 -400
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/inline-form/animations/slide-dissolve.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-button-action.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-button-config.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-button-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-close-args.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/modules/inline-form/types/inline-form-config.mjs +0 -0
- /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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-inline-form.mjs","sources":["../../../../../libs/components/inline-form/src/lib/modules/shared/sky-inline-form-resources.module.ts","../../../../../libs/components/inline-form/src/lib/modules/inline-form/animations/slide-dissolve.ts","../../../../../libs/components/inline-form/src/lib/modules/inline-form/inline-form-adapter.service.ts","../../../../../libs/components/inline-form/src/lib/modules/inline-form/types/inline-form-button-layout.ts","../../../../../libs/components/inline-form/src/lib/modules/inline-form/inline-form.component.ts","../../../../../libs/components/inline-form/src/lib/modules/inline-form/inline-form.component.html","../../../../../libs/components/inline-form/src/lib/modules/inline-form/inline-form.module.ts","../../../../../libs/components/inline-form/src/skyux-inline-form.ts"],"sourcesContent":["/**\n * NOTICE: DO NOT MODIFY THIS FILE!\n * The contents of this file were automatically generated by\n * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-inline-form' schematic.\n * To update this file, simply rerun the command.\n */\nimport { NgModule } from '@angular/core';\nimport {\n SKY_LIB_RESOURCES_PROVIDERS,\n SkyAppLocaleInfo,\n SkyI18nModule,\n SkyLibResources,\n SkyLibResourcesProvider,\n getLibStringForLocale,\n} from '@skyux/i18n';\n\nconst RESOURCES: { [locale: string]: SkyLibResources } = {\n 'EN-US': {\n skyux_inline_form_button_cancel: { message: 'Cancel' },\n skyux_inline_form_button_delete: { message: 'Delete' },\n skyux_inline_form_button_done: { message: 'Done' },\n skyux_inline_form_button_save: { message: 'Save' },\n },\n};\n\nexport class SkyInlineFormResourcesProvider implements SkyLibResourcesProvider {\n public getString(\n localeInfo: SkyAppLocaleInfo,\n name: string\n ): string | undefined {\n return getLibStringForLocale(RESOURCES, localeInfo.locale, name);\n }\n}\n\n/**\n * Import into any component library module that needs to use resource strings.\n */\n@NgModule({\n exports: [SkyI18nModule],\n providers: [\n {\n provide: SKY_LIB_RESOURCES_PROVIDERS,\n useClass: SkyInlineFormResourcesProvider,\n multi: true,\n },\n ],\n})\nexport class SkyInlineFormResourcesModule {}\n","import {\n AnimationTriggerMetadata,\n animate,\n group,\n query,\n style,\n transition,\n trigger,\n} from '@angular/animations';\n\nexport const skySlideDissolve: AnimationTriggerMetadata = trigger(\n 'skySlideDissolve',\n [\n transition('* <=> *', [\n // Expand animations\n query(\n '.sky-slide-dissolve-last:enter',\n [\n style({ height: 0, opacity: 0 }),\n animate('200ms ease-in', style({ height: '*', opacity: 0 })),\n ],\n { optional: true }\n ),\n query(\n '.sky-slide-dissolve-last:enter',\n [\n style({ opacity: 0 }),\n animate('200ms ease-in', style({ opacity: 1 })),\n ],\n { optional: true }\n ),\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(\n '.sky-slide-dissolve-last:leave',\n [animate('0ms', style({ opacity: 0 }))],\n { optional: true }\n ),\n\n group([\n query(\n '.sky-slide-dissolve-first:enter',\n [\n style({ opacity: 0, height: 0 }),\n animate('100ms ease-in', style({ opacity: 1, height: '*' })),\n ],\n { optional: true }\n ),\n query(\n '.sky-slide-dissolve-last:leave',\n [animate('200ms ease-in', style({ height: 0 }))],\n { optional: true }\n ),\n ]),\n ]),\n ]\n);\n","import { ElementRef, Injectable } from '@angular/core';\n\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\n/**\n * @internal\n */\n@Injectable()\nexport class SkyInlineFormAdapterService {\n public applyAutofocus(inlineFormElementRef: ElementRef): void {\n const inputWithAutofocus =\n inlineFormElementRef.nativeElement.querySelector('[autofocus]');\n\n if (inputWithAutofocus) {\n inputWithAutofocus.focus();\n } else {\n const focusEl: HTMLElement =\n inlineFormElementRef.nativeElement.querySelector(\n '.sky-inline-form-content'\n );\n const focusableChildren = this.#loadFocusableChildren(focusEl);\n\n this.#focusFirstElement(focusableChildren);\n }\n }\n\n #loadFocusableChildren(elem: HTMLElement): HTMLElement[] {\n const elements: Array<HTMLElement> = Array.prototype.slice.call(\n elem.querySelectorAll(SKY_TABBABLE_SELECTOR)\n );\n\n return elements.filter((element) => {\n return this.#isVisible(element);\n });\n }\n\n #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 /* istanbul ignore next */\n const hasBounds = !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n return hasBounds;\n }\n\n #focusFirstElement(list: Array<HTMLElement>): void {\n if (list.length > 0) {\n list[0].focus();\n }\n }\n}\n","export enum SkyInlineFormButtonLayout {\n /**\n * Displays custom buttons.\n */\n Custom = 0,\n /**\n * Displays Done and Cancel buttons.\n */\n DoneCancel = 1,\n /**\n * Displays Done, Delete, and Cancel buttons.\n */\n DoneDeleteCancel = 2,\n /**\n * Displays Save and Cancel buttons.\n */\n SaveCancel = 3,\n /**\n * Displays Save, Delete, and Cancel buttons.\n */\n SaveDeleteCancel = 4,\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n TemplateRef,\n} from '@angular/core';\nimport { SkyAppWindowRef } from '@skyux/core';\nimport { SkyLibResourcesService } from '@skyux/i18n';\n\nimport { Observable, ReplaySubject, Subject, zip as observableZip } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { skySlideDissolve } from './animations/slide-dissolve';\nimport { SkyInlineFormAdapterService } from './inline-form-adapter.service';\nimport { SkyInlineFormButtonConfig } from './types/inline-form-button-config';\nimport { SkyInlineFormButtonLayout } from './types/inline-form-button-layout';\nimport { SkyInlineFormCloseArgs } from './types/inline-form-close-args';\nimport { SkyInlineFormConfig } from './types/inline-form-config';\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: [SkyInlineFormAdapterService],\n animations: [skySlideDissolve],\n})\nexport class SkyInlineFormComponent implements OnInit, OnDestroy {\n /**\n * Configuration options for the buttons to display with the inline form.\n * @required\n */\n @Input()\n public set config(value: SkyInlineFormConfig | undefined) {\n if (value !== this.#_config && !!value) {\n this.#_config = value;\n this.#setupButtons();\n }\n }\n\n public get config(): SkyInlineFormConfig | undefined {\n return this.#_config;\n }\n\n /**\n * The template to instantiate the inline form.\n * @required\n */\n @Input()\n public template: TemplateRef<unknown> | undefined;\n\n /**\n * 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 | undefined) {\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(): boolean | undefined {\n return this.#_showForm;\n }\n\n /**\n * Fires when users close the inline form.\n */\n @Output()\n // eslint-disable-next-line @angular-eslint/no-output-native\n public close = new EventEmitter<SkyInlineFormCloseArgs>();\n\n // TODO: handle buttons being set asynchronously (\"| undefined\") when setting autofocus\n public buttons!: SkyInlineFormButtonConfig[];\n\n #_config: SkyInlineFormConfig | undefined;\n\n #_showForm: boolean | undefined = false;\n\n #ngUnsubscribe = new Subject<void>();\n\n #adapter: SkyInlineFormAdapterService;\n #elementRef: ElementRef;\n #resourcesService: SkyLibResourcesService;\n #skyAppWindowRef: SkyAppWindowRef;\n #changeDetectorRef: ChangeDetectorRef;\n\n constructor(\n adapter: SkyInlineFormAdapterService,\n elementRef: ElementRef,\n resourcesService: SkyLibResourcesService,\n skyAppWindowRef: SkyAppWindowRef,\n changeDetectorRef: ChangeDetectorRef\n ) {\n this.#adapter = adapter;\n this.#elementRef = elementRef;\n this.#resourcesService = resourcesService;\n this.#skyAppWindowRef = skyAppWindowRef;\n this.#changeDetectorRef = changeDetectorRef;\n }\n\n public ngOnInit(): void {\n this.#setupButtons();\n }\n\n public ngOnDestroy(): void {\n this.#ngUnsubscribe.next();\n this.#ngUnsubscribe.complete();\n\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 #setupButtons(): void {\n if (\n this.#isValidCustomConfig(this.config) &&\n this.config &&\n this.config.buttons\n ) {\n this.buttons = this.#getCustomButtons(this.config.buttons);\n this.#changeDetectorRef.markForCheck();\n return;\n }\n\n this.#getPresetButtons()\n .pipe(takeUntil(this.#ngUnsubscribe))\n .subscribe((buttons: SkyInlineFormButtonConfig[]) => {\n this.buttons = buttons;\n this.#changeDetectorRef.markForCheck();\n });\n }\n\n #getPresetButtons(): Observable<SkyInlineFormButtonConfig[]> {\n const emitter = new ReplaySubject<SkyInlineFormButtonConfig[]>(1);\n\n const buttonType = this.config\n ? this.config.buttonLayout\n : SkyInlineFormButtonLayout.DoneCancel;\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(takeUntil(this.#ngUnsubscribe))\n .subscribe((values: string[]) => {\n emitter.next([\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 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(takeUntil(this.#ngUnsubscribe))\n .subscribe((values: string[]) => {\n emitter.next([\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 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(takeUntil(this.#ngUnsubscribe))\n .subscribe((values: string[]) => {\n emitter.next([\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 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(takeUntil(this.#ngUnsubscribe))\n .subscribe((values: string[]) => {\n emitter.next([\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 break;\n }\n\n return emitter.asObservable();\n }\n\n #getCustomButtons(\n buttonConfigs: SkyInlineFormButtonConfig[]\n ): SkyInlineFormButtonConfig[] {\n const buttons: SkyInlineFormButtonConfig[] = [];\n\n buttonConfigs.forEach((config: SkyInlineFormButtonConfig) => {\n /* istanbul ignore next */\n const styleType = config.styleType || 'default';\n\n buttons.push({\n action: config.action,\n disabled: config.disabled,\n styleType: styleType,\n text: config.text,\n } as SkyInlineFormButtonConfig);\n });\n\n return buttons;\n }\n\n #isValidCustomConfig(config: SkyInlineFormConfig | undefined): boolean {\n return (\n !!config &&\n !!config.buttons &&\n config.buttons.length > 0 &&\n config.buttonLayout === SkyInlineFormButtonLayout.Custom\n );\n }\n}\n","<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","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { SkyInlineFormResourcesModule } from '../shared/sky-inline-form-resources.module';\n\nimport { SkyInlineFormComponent } from './inline-form.component';\n\n@NgModule({\n declarations: [SkyInlineFormComponent],\n imports: [CommonModule, SkyInlineFormResourcesModule],\n exports: [SkyInlineFormComponent],\n})\nexport class SkyInlineFormModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["observableZip","i1.SkyInlineFormAdapterService"],"mappings":";;;;;;;;;;;;AAAA;;;;;AAKG;AAWH,MAAM,SAAS,GAA0C;AACvD,IAAA,OAAO,EAAE;AACP,QAAA,+BAA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