@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,258 +1,58 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@skyux/core'), require('@skyux/i18n'), require('rxjs'), require('rxjs/operators'), require('@angular/animations')) :
3
- typeof define === 'function' && define.amd ? define('@skyux/inline-form', ['exports', '@angular/common', '@angular/core', '@skyux/core', '@skyux/i18n', 'rxjs', 'rxjs/operators', '@angular/animations'], factory) :
4
- (global = global || self, factory((global.skyux = global.skyux || {}, global.skyux['inline-form'] = {}), global.ng.common, global.ng.core, global.core$1, global.i18n, global.rxjs, global.rxjs.operators, global.ng.animations));
5
- }(this, (function (exports, common, core, core$1, i18n, rxjs, operators, animations) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/animations'), require('@skyux/i18n'), require('@skyux/core')) :
3
+ typeof define === 'function' && define.amd ? define('@skyux/inline-form', ['exports', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/animations', '@skyux/i18n', '@skyux/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["inline-form"] = {}), global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators, global.ng.animations, global.i2, global.i3));
5
+ })(this, (function (exports, i4, i0, rxjs, operators, animations, i2, i3) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- function __createBinding(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- o[k2] = m[k];
115
- }
116
-
117
- function __exportStar(m, exports) {
118
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
119
- }
120
-
121
- function __values(o) {
122
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
123
- if (m) return m.call(o);
124
- if (o && typeof o.length === "number") return {
125
- next: function () {
126
- if (o && i >= o.length) o = void 0;
127
- return { value: o && o[i++], done: !o };
128
- }
129
- };
130
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
131
- }
132
-
133
- function __read(o, n) {
134
- var m = typeof Symbol === "function" && o[Symbol.iterator];
135
- if (!m) return o;
136
- var i = m.call(o), r, ar = [], e;
137
- try {
138
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
139
- }
140
- catch (error) { e = { error: error }; }
141
- finally {
142
- try {
143
- if (r && !r.done && (m = i["return"])) m.call(i);
144
- }
145
- finally { if (e) throw e.error; }
146
- }
147
- return ar;
148
- }
149
-
150
- function __spread() {
151
- for (var ar = [], i = 0; i < arguments.length; i++)
152
- ar = ar.concat(__read(arguments[i]));
153
- return ar;
154
- }
155
-
156
- function __spreadArrays() {
157
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
158
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
159
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
160
- r[k] = a[j];
161
- return r;
162
- };
163
-
164
- function __await(v) {
165
- return this instanceof __await ? (this.v = v, this) : new __await(v);
166
- }
167
-
168
- function __asyncGenerator(thisArg, _arguments, generator) {
169
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
170
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
171
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
172
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
173
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
174
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
175
- function fulfill(value) { resume("next", value); }
176
- function reject(value) { resume("throw", value); }
177
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
178
- }
179
-
180
- function __asyncDelegator(o) {
181
- var i, p;
182
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
183
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
184
- }
185
-
186
- function __asyncValues(o) {
187
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
188
- var m = o[Symbol.asyncIterator], i;
189
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
190
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
191
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
192
- }
193
-
194
- function __makeTemplateObject(cooked, raw) {
195
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
196
- return cooked;
197
- };
198
-
199
- function __importStar(mod) {
200
- if (mod && mod.__esModule) return mod;
201
- var result = {};
202
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
203
- result.default = mod;
204
- return result;
205
- }
206
-
207
- function __importDefault(mod) {
208
- return (mod && mod.__esModule) ? mod : { default: mod };
209
- }
210
-
211
- function __classPrivateFieldGet(receiver, privateMap) {
212
- if (!privateMap.has(receiver)) {
213
- throw new TypeError("attempted to get private field on non-instance");
214
- }
215
- return privateMap.get(receiver);
216
- }
217
-
218
- function __classPrivateFieldSet(receiver, privateMap, value) {
219
- if (!privateMap.has(receiver)) {
220
- throw new TypeError("attempted to set private field on non-instance");
221
- }
222
- privateMap.set(receiver, value);
223
- return value;
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
224
23
  }
225
24
 
25
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
26
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
28
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
+
226
30
  var skySlideDissolve = animations.trigger('skySlideDissolve', [
227
31
  animations.transition('* <=> *', [
228
32
  // Expand animations
229
33
  animations.query('.sky-slide-dissolve-last:enter', [
230
34
  animations.style({ height: 0, opacity: 0 }),
231
- animations.animate('200ms ease-in', animations.style({ height: '*', opacity: 0 }))
35
+ animations.animate('200ms ease-in', animations.style({ height: '*', opacity: 0 })),
232
36
  ], { optional: true }),
233
37
  animations.query('.sky-slide-dissolve-last:enter', [
234
38
  animations.style({ opacity: 0 }),
235
- animations.animate('200ms ease-in', animations.style({ opacity: 1 }))
39
+ animations.animate('200ms ease-in', animations.style({ opacity: 1 })),
236
40
  ], { optional: true }),
237
41
  // Collapse animations
238
42
  // The expanded content should fade out immediately to prevent
239
43
  // any overlap with the read-only content that's returning to the screen.
240
- animations.query('.sky-slide-dissolve-last:leave', [
241
- animations.animate('0ms', animations.style({ opacity: 0 }))
242
- ], { optional: true }),
44
+ animations.query('.sky-slide-dissolve-last:leave', [animations.animate('0ms', animations.style({ opacity: 0 }))], { optional: true }),
243
45
  animations.group([
244
46
  animations.query('.sky-slide-dissolve-first:enter', [
245
47
  animations.style({ opacity: 0, height: 0 }),
246
- animations.animate('100ms ease-in', animations.style({ opacity: 1, height: '*' }))
48
+ animations.animate('100ms ease-in', animations.style({ opacity: 1, height: '*' })),
247
49
  ], { optional: true }),
248
- animations.query('.sky-slide-dissolve-last:leave', [
249
- animations.animate('200ms ease-in', animations.style({ height: 0 }))
250
- ], { optional: true })
251
- ])
252
- ])
50
+ animations.query('.sky-slide-dissolve-last:leave', [animations.animate('200ms ease-in', animations.style({ height: 0 }))], { optional: true }),
51
+ ]),
52
+ ]),
253
53
  ]);
254
54
 
255
-
55
+ exports.SkyInlineFormButtonLayout = void 0;
256
56
  (function (SkyInlineFormButtonLayout) {
257
57
  SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["Custom"] = 0] = "Custom";
258
58
  SkyInlineFormButtonLayout[SkyInlineFormButtonLayout["DoneCancel"] = 1] = "DoneCancel";
@@ -265,15 +65,15 @@
265
65
  var SKY_TABBABLE_SELECTOR = [
266
66
  'a[href]',
267
67
  'area[href]',
268
- 'input:not([disabled]):not([tabindex=\'-1\'])',
269
- 'button:not([disabled]):not([tabindex=\'-1\'])',
270
- 'select:not([disabled]):not([tabindex=\'-1\'])',
271
- 'textarea:not([disabled]):not([tabindex=\'-1\'])',
68
+ "input:not([disabled]):not([tabindex='-1'])",
69
+ "button:not([disabled]):not([tabindex='-1'])",
70
+ "select:not([disabled]):not([tabindex='-1'])",
71
+ "textarea:not([disabled]):not([tabindex='-1'])",
272
72
  'iframe',
273
73
  'object',
274
74
  'embed',
275
- '*[tabindex]:not([tabindex=\'-1\'])',
276
- '*[contenteditable=true]'
75
+ "*[tabindex]:not([tabindex='-1'])",
76
+ '*[contenteditable=true]',
277
77
  ].join(', ');
278
78
  /* tslint:enable */
279
79
  /**
@@ -306,6 +106,7 @@
306
106
  if (isHidden) {
307
107
  return false;
308
108
  }
109
+ /* istanbul ignore next */
309
110
  var hasBounds = !!(element.offsetWidth ||
310
111
  element.offsetHeight ||
311
112
  element.getClientRects().length);
@@ -316,11 +117,13 @@
316
117
  list[0].focus();
317
118
  }
318
119
  };
319
- SkyInlineFormAdapterService = __decorate([
320
- core.Injectable()
321
- ], SkyInlineFormAdapterService);
322
120
  return SkyInlineFormAdapterService;
323
121
  }());
122
+ SkyInlineFormAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormAdapterService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
123
+ SkyInlineFormAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormAdapterService });
124
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormAdapterService, decorators: [{
125
+ type: i0.Injectable
126
+ }] });
324
127
 
325
128
  /**
326
129
  * Renders form content in the current view instead of a separate modal.
@@ -335,7 +138,7 @@
335
138
  /**
336
139
  * Fires when users close the inline form.
337
140
  */
338
- this.close = new core.EventEmitter();
141
+ this.close = new i0.EventEmitter();
339
142
  this._showForm = false;
340
143
  }
341
144
  Object.defineProperty(SkyInlineFormComponent.prototype, "config", {
@@ -352,7 +155,7 @@
352
155
  this.setupButtons();
353
156
  }
354
157
  },
355
- enumerable: true,
158
+ enumerable: false,
356
159
  configurable: true
357
160
  });
358
161
  Object.defineProperty(SkyInlineFormComponent.prototype, "showForm", {
@@ -376,7 +179,7 @@
376
179
  });
377
180
  }
378
181
  },
379
- enumerable: true,
182
+ enumerable: false,
380
183
  configurable: true
381
184
  });
382
185
  SkyInlineFormComponent.prototype.ngOnInit = function () {
@@ -387,7 +190,7 @@
387
190
  };
388
191
  SkyInlineFormComponent.prototype.closeInlineForm = function (event) {
389
192
  var args = {
390
- reason: event.action
193
+ reason: event.action,
391
194
  };
392
195
  this.close.emit(args);
393
196
  };
@@ -404,7 +207,9 @@
404
207
  });
405
208
  };
406
209
  SkyInlineFormComponent.prototype.getPresetButtons = function () {
407
- var buttonType = this.config ? this.config.buttonLayout : exports.SkyInlineFormButtonLayout.DoneCancel;
210
+ var buttonType = this.config
211
+ ? this.config.buttonLayout
212
+ : exports.SkyInlineFormButtonLayout.DoneCancel;
408
213
  var promise;
409
214
  switch (buttonType) {
410
215
  /* istanbul ignore next */
@@ -418,13 +223,13 @@
418
223
  {
419
224
  text: values[0],
420
225
  styleType: 'primary',
421
- action: 'done'
226
+ action: 'done',
422
227
  },
423
228
  {
424
229
  text: values[1],
425
230
  styleType: 'link',
426
- action: 'cancel'
427
- }
231
+ action: 'cancel',
232
+ },
428
233
  ]);
429
234
  });
430
235
  });
@@ -438,13 +243,13 @@
438
243
  {
439
244
  text: values[0],
440
245
  styleType: 'primary',
441
- action: 'save'
246
+ action: 'save',
442
247
  },
443
248
  {
444
249
  text: values[1],
445
250
  styleType: 'link',
446
- action: 'cancel'
447
- }
251
+ action: 'cancel',
252
+ },
448
253
  ]);
449
254
  });
450
255
  });
@@ -458,18 +263,18 @@
458
263
  {
459
264
  text: values[0],
460
265
  styleType: 'primary',
461
- action: 'done'
266
+ action: 'done',
462
267
  },
463
268
  {
464
269
  text: values[1],
465
270
  styleType: 'default',
466
- action: 'delete'
271
+ action: 'delete',
467
272
  },
468
273
  {
469
274
  text: values[2],
470
275
  styleType: 'link',
471
- action: 'cancel'
472
- }
276
+ action: 'cancel',
277
+ },
473
278
  ]);
474
279
  });
475
280
  });
@@ -483,18 +288,18 @@
483
288
  {
484
289
  text: values[0],
485
290
  styleType: 'primary',
486
- action: 'save'
291
+ action: 'save',
487
292
  },
488
293
  {
489
294
  text: values[1],
490
295
  styleType: 'default',
491
- action: 'delete'
296
+ action: 'delete',
492
297
  },
493
298
  {
494
299
  text: values[2],
495
300
  styleType: 'link',
496
- action: 'cancel'
497
- }
301
+ action: 'cancel',
302
+ },
498
303
  ]);
499
304
  });
500
305
  });
@@ -505,11 +310,13 @@
505
310
  SkyInlineFormComponent.prototype.getCustomButtons = function (buttonConfigs) {
506
311
  var buttons = [];
507
312
  buttonConfigs.forEach(function (config) {
313
+ /* istanbul ignore next */
314
+ var styleType = config.styleType || 'default';
508
315
  buttons.push({
509
316
  action: config.action,
510
317
  disabled: config.disabled,
511
- styleType: config.styleType || 'default',
512
- text: config.text
318
+ styleType: styleType,
319
+ text: config.text,
513
320
  });
514
321
  });
515
322
  return buttons;
@@ -519,118 +326,108 @@
519
326
  config.buttonLayout === exports.SkyInlineFormButtonLayout.Custom &&
520
327
  config.buttons.length > 0);
521
328
  };
522
- SkyInlineFormComponent.ctorParameters = function () { return [
523
- { type: SkyInlineFormAdapterService },
524
- { type: core.ElementRef },
525
- { type: i18n.SkyLibResourcesService },
526
- { type: core$1.SkyAppWindowRef },
527
- { type: core.ChangeDetectorRef }
528
- ]; };
529
- __decorate([
530
- core.Input()
531
- ], SkyInlineFormComponent.prototype, "config", null);
532
- __decorate([
533
- core.Input()
534
- ], SkyInlineFormComponent.prototype, "template", void 0);
535
- __decorate([
536
- core.Input()
537
- ], SkyInlineFormComponent.prototype, "showForm", null);
538
- __decorate([
539
- core.Output()
540
- ], SkyInlineFormComponent.prototype, "close", void 0);
541
- SkyInlineFormComponent = __decorate([
542
- core.Component({
543
- selector: 'sky-inline-form',
544
- 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",
545
- changeDetection: core.ChangeDetectionStrategy.OnPush,
546
- providers: [
547
- SkyInlineFormAdapterService
548
- ],
549
- animations: [skySlideDissolve],
550
- 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}"]
551
- })
552
- ], SkyInlineFormComponent);
553
329
  return SkyInlineFormComponent;
554
330
  }());
331
+ SkyInlineFormComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormComponent, deps: [{ token: SkyInlineFormAdapterService }, { token: i0__namespace.ElementRef }, { token: i2__namespace.SkyLibResourcesService }, { token: i3__namespace.SkyAppWindowRef }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
332
+ SkyInlineFormComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SkyInlineFormComponent, selector: "sky-inline-form", inputs: { config: "config", template: "template", showForm: "showForm" }, outputs: { close: "close" }, providers: [SkyInlineFormAdapterService], ngImport: i0__namespace, 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"], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [skySlideDissolve], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
333
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormComponent, decorators: [{
334
+ type: i0.Component,
335
+ args: [{
336
+ selector: 'sky-inline-form',
337
+ template: "template",
338
+ 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"],
339
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
340
+ providers: [SkyInlineFormAdapterService],
341
+ animations: [skySlideDissolve],
342
+ }]
343
+ }], ctorParameters: function () { return [{ type: SkyInlineFormAdapterService }, { type: i0__namespace.ElementRef }, { type: i2__namespace.SkyLibResourcesService }, { type: i3__namespace.SkyAppWindowRef }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { config: [{
344
+ type: i0.Input
345
+ }], template: [{
346
+ type: i0.Input
347
+ }], showForm: [{
348
+ type: i0.Input
349
+ }], close: [{
350
+ type: i0.Output
351
+ }] } });
555
352
 
556
353
  /**
557
- * @internal
558
- * @deprecated This module can be removed after we upgrade SKY UX development dependencies to version 5.
354
+ * NOTICE: DO NOT MODIFY THIS FILE!
355
+ * The contents of this file were automatically generated by
356
+ * the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-inline-form' schematic.
357
+ * To update this file, simply rerun the command.
559
358
  */
560
- var SkyInlineFormForRootCompatModule = /** @class */ (function () {
561
- function SkyInlineFormForRootCompatModule() {
562
- }
563
- SkyInlineFormForRootCompatModule = __decorate([
564
- core.NgModule({
565
- providers: [
566
- core$1.SkyAppWindowRef
567
- ]
568
- })
569
- ], SkyInlineFormForRootCompatModule);
570
- return SkyInlineFormForRootCompatModule;
571
- }());
572
-
359
+ var RESOURCES = {
360
+ 'EN-US': {
361
+ skyux_inline_form_button_cancel: { message: 'Cancel' },
362
+ skyux_inline_form_button_delete: { message: 'Delete' },
363
+ skyux_inline_form_button_done: { message: 'Done' },
364
+ skyux_inline_form_button_save: { message: 'Save' },
365
+ },
366
+ };
573
367
  var SkyInlineFormResourcesProvider = /** @class */ (function () {
574
368
  function SkyInlineFormResourcesProvider() {
575
- 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" } };
576
369
  }
577
370
  SkyInlineFormResourcesProvider.prototype.getString = function (localeInfo, name) {
578
- return i18n.getStringForLocale(this.resources, localeInfo.locale, name);
371
+ return i2.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
579
372
  };
580
- SkyInlineFormResourcesProvider = __decorate([
581
- core.Injectable()
582
- ], SkyInlineFormResourcesProvider);
583
373
  return SkyInlineFormResourcesProvider;
584
374
  }());
585
-
375
+ /**
376
+ * Import into any component library module that needs to use resource strings.
377
+ */
586
378
  var SkyInlineFormResourcesModule = /** @class */ (function () {
587
379
  function SkyInlineFormResourcesModule() {
588
380
  }
589
- SkyInlineFormResourcesModule = __decorate([
590
- core.NgModule({
591
- exports: [
592
- i18n.SkyI18nModule
593
- ],
594
- providers: [{
595
- provide: i18n.SKY_LIB_RESOURCES_PROVIDERS,
596
- useClass: SkyInlineFormResourcesProvider,
597
- multi: true
598
- }]
599
- })
600
- ], SkyInlineFormResourcesModule);
601
381
  return SkyInlineFormResourcesModule;
602
382
  }());
383
+ SkyInlineFormResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
384
+ SkyInlineFormResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormResourcesModule, exports: [i2.SkyI18nModule] });
385
+ SkyInlineFormResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormResourcesModule, providers: [
386
+ {
387
+ provide: i2.SKY_LIB_RESOURCES_PROVIDERS,
388
+ useClass: SkyInlineFormResourcesProvider,
389
+ multi: true,
390
+ },
391
+ ], imports: [i2.SkyI18nModule] });
392
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormResourcesModule, decorators: [{
393
+ type: i0.NgModule,
394
+ args: [{
395
+ exports: [i2.SkyI18nModule],
396
+ providers: [
397
+ {
398
+ provide: i2.SKY_LIB_RESOURCES_PROVIDERS,
399
+ useClass: SkyInlineFormResourcesProvider,
400
+ multi: true,
401
+ },
402
+ ],
403
+ }]
404
+ }] });
603
405
 
604
406
  var SkyInlineFormModule = /** @class */ (function () {
605
407
  function SkyInlineFormModule() {
606
408
  }
607
- SkyInlineFormModule = __decorate([
608
- core.NgModule({
609
- declarations: [
610
- SkyInlineFormComponent
611
- ],
612
- imports: [
613
- common.CommonModule,
614
- SkyInlineFormForRootCompatModule,
615
- SkyInlineFormResourcesModule
616
- ],
617
- exports: [
618
- SkyInlineFormComponent
619
- ]
620
- })
621
- ], SkyInlineFormModule);
622
409
  return SkyInlineFormModule;
623
410
  }());
411
+ SkyInlineFormModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
412
+ SkyInlineFormModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormModule, declarations: [SkyInlineFormComponent], imports: [i4.CommonModule, SkyInlineFormResourcesModule], exports: [SkyInlineFormComponent] });
413
+ SkyInlineFormModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormModule, imports: [[i4.CommonModule, SkyInlineFormResourcesModule]] });
414
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SkyInlineFormModule, decorators: [{
415
+ type: i0.NgModule,
416
+ args: [{
417
+ declarations: [SkyInlineFormComponent],
418
+ imports: [i4.CommonModule, SkyInlineFormResourcesModule],
419
+ exports: [SkyInlineFormComponent],
420
+ }]
421
+ }] });
422
+
423
+ /**
424
+ * Generated bundle index. Do not edit.
425
+ */
624
426
 
625
427
  exports.SkyInlineFormModule = SkyInlineFormModule;
626
- exports.ɵa = SkyInlineFormComponent;
627
- exports.ɵb = SkyInlineFormAdapterService;
628
- exports.ɵc = skySlideDissolve;
629
- exports.ɵd = SkyInlineFormForRootCompatModule;
630
- exports.ɵe = SkyInlineFormResourcesModule;
631
- exports.ɵf = SkyInlineFormResourcesProvider;
428
+ exports["λ1"] = SkyInlineFormComponent;
632
429
 
633
430
  Object.defineProperty(exports, '__esModule', { value: true });
634
431
 
635
- })));
432
+ }));
636
433
  //# sourceMappingURL=skyux-inline-form.umd.js.map