@eurosat/snackbar 10.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/style.css +20 -20
- package/bundles/eurosat-snackbar.umd.js +380 -442
- package/bundles/eurosat-snackbar.umd.js.map +1 -1
- package/bundles/eurosat-snackbar.umd.min.js +1 -1
- package/bundles/eurosat-snackbar.umd.min.js.map +1 -1
- package/esm2015/eurosat-snackbar.js +5 -10
- package/esm2015/lib/es-snack-bar-panel.class.js +7 -22
- package/esm2015/lib/es-snack-bar.config.js +4 -9
- package/esm2015/lib/es-snack-bar.js +39 -74
- package/esm2015/lib/es-snack-bar.module.js +14 -19
- package/esm2015/lib/es-snack-bar.ref.js +4 -12
- package/esm2015/public_api.js +9 -14
- package/eurosat-snackbar.d.ts +4 -4
- package/fesm2015/eurosat-snackbar.js +52 -124
- package/fesm2015/eurosat-snackbar.js.map +1 -1
- package/lib/es-snack-bar-panel.class.d.ts +6 -6
- package/lib/es-snack-bar.config.d.ts +3 -3
- package/lib/es-snack-bar.d.ts +12 -12
- package/lib/es-snack-bar.module.d.ts +2 -2
- package/lib/es-snack-bar.ref.d.ts +3 -3
- package/package.json +5 -5
- package/public_api.d.ts +5 -5
|
@@ -4,460 +4,398 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.eurosat = global.eurosat || {}, global.eurosat.snackbar = {}), global.ng.core, global.ng.material.snackBar));
|
|
5
5
|
}(this, (function (exports, i0, i1) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
EsSnackBarPanelClass.WARNING = 'es-snackbar-alert-warning';
|
|
20
|
-
EsSnackBarPanelClass.DANGER = 'es-snackbar-alert-danger';
|
|
21
|
-
if (false) {
|
|
22
|
-
/** @type {?} */
|
|
23
|
-
EsSnackBarPanelClass.SUCCESS;
|
|
24
|
-
/** @type {?} */
|
|
25
|
-
EsSnackBarPanelClass.INFO;
|
|
26
|
-
/** @type {?} */
|
|
27
|
-
EsSnackBarPanelClass.WARNING;
|
|
28
|
-
/** @type {?} */
|
|
29
|
-
EsSnackBarPanelClass.DANGER;
|
|
30
|
-
}
|
|
7
|
+
var EsSnackBarPanelClass = /** @class */ (function () {
|
|
8
|
+
function EsSnackBarPanelClass() {
|
|
9
|
+
}
|
|
10
|
+
return EsSnackBarPanelClass;
|
|
11
|
+
}());
|
|
12
|
+
EsSnackBarPanelClass.SUCCESS = 'es-snackbar-alert-success';
|
|
13
|
+
EsSnackBarPanelClass.INFO = 'es-snackbar-alert-info';
|
|
14
|
+
EsSnackBarPanelClass.WARNING = 'es-snackbar-alert-warning';
|
|
15
|
+
EsSnackBarPanelClass.DANGER = 'es-snackbar-alert-danger';
|
|
16
|
+
|
|
17
|
+
/*! *****************************************************************************
|
|
18
|
+
Copyright (c) Microsoft Corporation.
|
|
31
19
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
return
|
|
95
|
-
}
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
case
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
case
|
|
142
|
-
_.label++;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
op =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
_.trys.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
op =
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
var
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
return
|
|
262
|
-
}
|
|
263
|
-
function
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
if (mod
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
return
|
|
323
|
-
}
|
|
324
|
-
function
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
340
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
341
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
20
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
21
|
+
purpose with or without fee is hereby granted.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
24
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
25
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
26
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
27
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
28
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
29
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
30
|
+
***************************************************************************** */
|
|
31
|
+
/* global Reflect, Promise */
|
|
32
|
+
var extendStatics = function (d, b) {
|
|
33
|
+
extendStatics = Object.setPrototypeOf ||
|
|
34
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
35
|
+
function (d, b) { for (var p in b)
|
|
36
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
37
|
+
d[p] = b[p]; };
|
|
38
|
+
return extendStatics(d, b);
|
|
39
|
+
};
|
|
40
|
+
function __extends(d, b) {
|
|
41
|
+
if (typeof b !== "function" && b !== null)
|
|
42
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
43
|
+
extendStatics(d, b);
|
|
44
|
+
function __() { this.constructor = d; }
|
|
45
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
46
|
+
}
|
|
47
|
+
var __assign = function () {
|
|
48
|
+
__assign = Object.assign || function __assign(t) {
|
|
49
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
50
|
+
s = arguments[i];
|
|
51
|
+
for (var p in s)
|
|
52
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
53
|
+
t[p] = s[p];
|
|
54
|
+
}
|
|
55
|
+
return t;
|
|
56
|
+
};
|
|
57
|
+
return __assign.apply(this, arguments);
|
|
58
|
+
};
|
|
59
|
+
function __rest(s, e) {
|
|
60
|
+
var t = {};
|
|
61
|
+
for (var p in s)
|
|
62
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
63
|
+
t[p] = s[p];
|
|
64
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
65
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
66
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
67
|
+
t[p[i]] = s[p[i]];
|
|
68
|
+
}
|
|
69
|
+
return t;
|
|
70
|
+
}
|
|
71
|
+
function __decorate(decorators, target, key, desc) {
|
|
72
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
73
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
74
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
75
|
+
else
|
|
76
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
77
|
+
if (d = decorators[i])
|
|
78
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
79
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
80
|
+
}
|
|
81
|
+
function __param(paramIndex, decorator) {
|
|
82
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
83
|
+
}
|
|
84
|
+
function __metadata(metadataKey, metadataValue) {
|
|
85
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
86
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
87
|
+
}
|
|
88
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
89
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
90
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
91
|
+
function fulfilled(value) { try {
|
|
92
|
+
step(generator.next(value));
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
reject(e);
|
|
96
|
+
} }
|
|
97
|
+
function rejected(value) { try {
|
|
98
|
+
step(generator["throw"](value));
|
|
99
|
+
}
|
|
100
|
+
catch (e) {
|
|
101
|
+
reject(e);
|
|
102
|
+
} }
|
|
103
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
104
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function __generator(thisArg, body) {
|
|
108
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
109
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
110
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
111
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
112
|
+
function step(op) {
|
|
113
|
+
if (f)
|
|
114
|
+
throw new TypeError("Generator is already executing.");
|
|
115
|
+
while (_)
|
|
116
|
+
try {
|
|
117
|
+
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)
|
|
118
|
+
return t;
|
|
119
|
+
if (y = 0, t)
|
|
120
|
+
op = [op[0] & 2, t.value];
|
|
121
|
+
switch (op[0]) {
|
|
122
|
+
case 0:
|
|
123
|
+
case 1:
|
|
124
|
+
t = op;
|
|
125
|
+
break;
|
|
126
|
+
case 4:
|
|
127
|
+
_.label++;
|
|
128
|
+
return { value: op[1], done: false };
|
|
129
|
+
case 5:
|
|
130
|
+
_.label++;
|
|
131
|
+
y = op[1];
|
|
132
|
+
op = [0];
|
|
133
|
+
continue;
|
|
134
|
+
case 7:
|
|
135
|
+
op = _.ops.pop();
|
|
136
|
+
_.trys.pop();
|
|
137
|
+
continue;
|
|
138
|
+
default:
|
|
139
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
140
|
+
_ = 0;
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
144
|
+
_.label = op[1];
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
148
|
+
_.label = t[1];
|
|
149
|
+
t = op;
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
if (t && _.label < t[2]) {
|
|
153
|
+
_.label = t[2];
|
|
154
|
+
_.ops.push(op);
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
if (t[2])
|
|
158
|
+
_.ops.pop();
|
|
159
|
+
_.trys.pop();
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
op = body.call(thisArg, _);
|
|
163
|
+
}
|
|
164
|
+
catch (e) {
|
|
165
|
+
op = [6, e];
|
|
166
|
+
y = 0;
|
|
167
|
+
}
|
|
168
|
+
finally {
|
|
169
|
+
f = t = 0;
|
|
170
|
+
}
|
|
171
|
+
if (op[0] & 5)
|
|
172
|
+
throw op[1];
|
|
173
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
177
|
+
if (k2 === undefined)
|
|
178
|
+
k2 = k;
|
|
179
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
180
|
+
}) : (function (o, m, k, k2) {
|
|
181
|
+
if (k2 === undefined)
|
|
182
|
+
k2 = k;
|
|
183
|
+
o[k2] = m[k];
|
|
184
|
+
});
|
|
185
|
+
function __exportStar(m, o) {
|
|
186
|
+
for (var p in m)
|
|
187
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
188
|
+
__createBinding(o, m, p);
|
|
189
|
+
}
|
|
190
|
+
function __values(o) {
|
|
191
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
192
|
+
if (m)
|
|
193
|
+
return m.call(o);
|
|
194
|
+
if (o && typeof o.length === "number")
|
|
195
|
+
return {
|
|
196
|
+
next: function () {
|
|
197
|
+
if (o && i >= o.length)
|
|
198
|
+
o = void 0;
|
|
199
|
+
return { value: o && o[i++], done: !o };
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
203
|
+
}
|
|
204
|
+
function __read(o, n) {
|
|
205
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
206
|
+
if (!m)
|
|
207
|
+
return o;
|
|
208
|
+
var i = m.call(o), r, ar = [], e;
|
|
209
|
+
try {
|
|
210
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
211
|
+
ar.push(r.value);
|
|
212
|
+
}
|
|
213
|
+
catch (error) {
|
|
214
|
+
e = { error: error };
|
|
215
|
+
}
|
|
216
|
+
finally {
|
|
217
|
+
try {
|
|
218
|
+
if (r && !r.done && (m = i["return"]))
|
|
219
|
+
m.call(i);
|
|
220
|
+
}
|
|
221
|
+
finally {
|
|
222
|
+
if (e)
|
|
223
|
+
throw e.error;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return ar;
|
|
227
|
+
}
|
|
228
|
+
/** @deprecated */
|
|
229
|
+
function __spread() {
|
|
230
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
231
|
+
ar = ar.concat(__read(arguments[i]));
|
|
232
|
+
return ar;
|
|
233
|
+
}
|
|
234
|
+
/** @deprecated */
|
|
235
|
+
function __spreadArrays() {
|
|
236
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
237
|
+
s += arguments[i].length;
|
|
238
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
239
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
240
|
+
r[k] = a[j];
|
|
241
|
+
return r;
|
|
242
|
+
}
|
|
243
|
+
function __spreadArray(to, from) {
|
|
244
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
245
|
+
to[j] = from[i];
|
|
246
|
+
return to;
|
|
247
|
+
}
|
|
248
|
+
function __await(v) {
|
|
249
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
250
|
+
}
|
|
251
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
252
|
+
if (!Symbol.asyncIterator)
|
|
253
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
254
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
255
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
256
|
+
function verb(n) { if (g[n])
|
|
257
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
258
|
+
function resume(n, v) { try {
|
|
259
|
+
step(g[n](v));
|
|
260
|
+
}
|
|
261
|
+
catch (e) {
|
|
262
|
+
settle(q[0][3], e);
|
|
263
|
+
} }
|
|
264
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
265
|
+
function fulfill(value) { resume("next", value); }
|
|
266
|
+
function reject(value) { resume("throw", value); }
|
|
267
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
268
|
+
resume(q[0][0], q[0][1]); }
|
|
269
|
+
}
|
|
270
|
+
function __asyncDelegator(o) {
|
|
271
|
+
var i, p;
|
|
272
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
273
|
+
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; }
|
|
274
|
+
}
|
|
275
|
+
function __asyncValues(o) {
|
|
276
|
+
if (!Symbol.asyncIterator)
|
|
277
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
278
|
+
var m = o[Symbol.asyncIterator], i;
|
|
279
|
+
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);
|
|
280
|
+
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); }); }; }
|
|
281
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
282
|
+
}
|
|
283
|
+
function __makeTemplateObject(cooked, raw) {
|
|
284
|
+
if (Object.defineProperty) {
|
|
285
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
cooked.raw = raw;
|
|
289
|
+
}
|
|
290
|
+
return cooked;
|
|
291
|
+
}
|
|
292
|
+
;
|
|
293
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
294
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
295
|
+
}) : function (o, v) {
|
|
296
|
+
o["default"] = v;
|
|
297
|
+
};
|
|
298
|
+
function __importStar(mod) {
|
|
299
|
+
if (mod && mod.__esModule)
|
|
300
|
+
return mod;
|
|
301
|
+
var result = {};
|
|
302
|
+
if (mod != null)
|
|
303
|
+
for (var k in mod)
|
|
304
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
305
|
+
__createBinding(result, mod, k);
|
|
306
|
+
__setModuleDefault(result, mod);
|
|
307
|
+
return result;
|
|
308
|
+
}
|
|
309
|
+
function __importDefault(mod) {
|
|
310
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
311
|
+
}
|
|
312
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
313
|
+
if (kind === "a" && !f)
|
|
314
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
315
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
316
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
317
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
318
|
+
}
|
|
319
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
320
|
+
if (kind === "m")
|
|
321
|
+
throw new TypeError("Private method is not writable");
|
|
322
|
+
if (kind === "a" && !f)
|
|
323
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
324
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
325
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
326
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
342
327
|
}
|
|
343
328
|
|
|
344
|
-
var EsSnackBarConfig = /** @class */ (function (_super) {
|
|
345
|
-
__extends(EsSnackBarConfig, _super);
|
|
346
|
-
function EsSnackBarConfig() {
|
|
347
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
348
|
-
}
|
|
349
|
-
return EsSnackBarConfig;
|
|
329
|
+
var EsSnackBarConfig = /** @class */ (function (_super) {
|
|
330
|
+
__extends(EsSnackBarConfig, _super);
|
|
331
|
+
function EsSnackBarConfig() {
|
|
332
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
333
|
+
}
|
|
334
|
+
return EsSnackBarConfig;
|
|
350
335
|
}(i1.MatSnackBarConfig));
|
|
351
336
|
|
|
352
|
-
/**
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
this.snackBar
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
EsSnackBar.prototype.
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
return this.snackBar.openFromComponent(component, config);
|
|
386
|
-
};
|
|
387
|
-
/**
|
|
388
|
-
* @param {?} template
|
|
389
|
-
* @param {?=} config
|
|
390
|
-
* @return {?}
|
|
391
|
-
*/
|
|
392
|
-
EsSnackBar.prototype.openFromTemplate = function (template, config) {
|
|
393
|
-
return this.snackBar.openFromTemplate(template, config);
|
|
394
|
-
};
|
|
395
|
-
/**
|
|
396
|
-
* @return {?}
|
|
397
|
-
*/
|
|
398
|
-
EsSnackBar.prototype.dismiss = function () {
|
|
399
|
-
this.snackBar.dismiss();
|
|
400
|
-
};
|
|
401
|
-
return EsSnackBar;
|
|
402
|
-
}());
|
|
403
|
-
EsSnackBar.decorators = [
|
|
404
|
-
{ type: i0.Injectable, args: [{
|
|
405
|
-
providedIn: 'root'
|
|
406
|
-
},] }
|
|
407
|
-
];
|
|
408
|
-
/** @nocollapse */
|
|
409
|
-
EsSnackBar.ctorParameters = function () { return [
|
|
410
|
-
{ type: i1.MatSnackBar }
|
|
411
|
-
]; };
|
|
412
|
-
/** @nocollapse */ EsSnackBar.ɵprov = i0.ɵɵdefineInjectable({ factory: function EsSnackBar_Factory() { return new EsSnackBar(i0.ɵɵinject(i1.MatSnackBar)); }, token: EsSnackBar, providedIn: "root" });
|
|
413
|
-
if (false) {
|
|
414
|
-
/**
|
|
415
|
-
* @type {?}
|
|
416
|
-
* @private
|
|
417
|
-
*/
|
|
418
|
-
EsSnackBar.prototype.snackBar;
|
|
419
|
-
}
|
|
337
|
+
var EsSnackBar = /** @class */ (function () {
|
|
338
|
+
function EsSnackBar(snackBar) {
|
|
339
|
+
this.snackBar = snackBar;
|
|
340
|
+
}
|
|
341
|
+
EsSnackBar.prototype.open = function (message, config, action) {
|
|
342
|
+
if (config === undefined) {
|
|
343
|
+
config = new EsSnackBarConfig();
|
|
344
|
+
config.duration = 2000;
|
|
345
|
+
config.panelClass = EsSnackBarPanelClass.SUCCESS;
|
|
346
|
+
}
|
|
347
|
+
return this.snackBar.open(message, action, config);
|
|
348
|
+
};
|
|
349
|
+
EsSnackBar.prototype.openFromComponent = function (component, config) {
|
|
350
|
+
return this.snackBar.openFromComponent(component, config);
|
|
351
|
+
};
|
|
352
|
+
EsSnackBar.prototype.openFromTemplate = function (template, config) {
|
|
353
|
+
return this.snackBar.openFromTemplate(template, config);
|
|
354
|
+
};
|
|
355
|
+
EsSnackBar.prototype.dismiss = function () {
|
|
356
|
+
this.snackBar.dismiss();
|
|
357
|
+
};
|
|
358
|
+
return EsSnackBar;
|
|
359
|
+
}());
|
|
360
|
+
/** @nocollapse */ EsSnackBar.ɵprov = i0.ɵɵdefineInjectable({ factory: function EsSnackBar_Factory() { return new EsSnackBar(i0.ɵɵinject(i1.MatSnackBar)); }, token: EsSnackBar, providedIn: "root" });
|
|
361
|
+
EsSnackBar.decorators = [
|
|
362
|
+
{ type: i0.Injectable, args: [{
|
|
363
|
+
providedIn: 'root'
|
|
364
|
+
},] }
|
|
365
|
+
];
|
|
366
|
+
/** @nocollapse */
|
|
367
|
+
EsSnackBar.ctorParameters = function () { return [
|
|
368
|
+
{ type: i1.MatSnackBar }
|
|
369
|
+
]; };
|
|
420
370
|
|
|
421
|
-
/**
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
imports: [
|
|
434
|
-
i1.MatSnackBarModule,
|
|
435
|
-
],
|
|
436
|
-
providers: [EsSnackBar],
|
|
437
|
-
},] }
|
|
371
|
+
var EsSnackBarModule = /** @class */ (function () {
|
|
372
|
+
function EsSnackBarModule() {
|
|
373
|
+
}
|
|
374
|
+
return EsSnackBarModule;
|
|
375
|
+
}());
|
|
376
|
+
EsSnackBarModule.decorators = [
|
|
377
|
+
{ type: i0.NgModule, args: [{
|
|
378
|
+
imports: [
|
|
379
|
+
i1.MatSnackBarModule,
|
|
380
|
+
],
|
|
381
|
+
providers: [EsSnackBar],
|
|
382
|
+
},] }
|
|
438
383
|
];
|
|
439
384
|
|
|
440
|
-
/**
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
447
|
-
}
|
|
448
|
-
return EsSnackBarRef;
|
|
385
|
+
var EsSnackBarRef = /** @class */ (function (_super) {
|
|
386
|
+
__extends(EsSnackBarRef, _super);
|
|
387
|
+
function EsSnackBarRef() {
|
|
388
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
389
|
+
}
|
|
390
|
+
return EsSnackBarRef;
|
|
449
391
|
}(i1.MatSnackBarRef));
|
|
450
392
|
|
|
451
|
-
|
|
452
|
-
*
|
|
453
|
-
* Generated from: public_api.ts
|
|
454
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
393
|
+
/*
|
|
394
|
+
* Public API Surface of snackbar
|
|
455
395
|
*/
|
|
456
396
|
|
|
457
|
-
/**
|
|
458
|
-
*
|
|
459
|
-
* Generated from: eurosat-snackbar.ts
|
|
460
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
397
|
+
/**
|
|
398
|
+
* Generated bundle index. Do not edit.
|
|
461
399
|
*/
|
|
462
400
|
|
|
463
401
|
exports.EsSnackBar = EsSnackBar;
|