nextalys-carousel 0.0.50 → 0.0.53

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 (35) hide show
  1. package/README.md +0 -0
  2. package/bundles/nextalys-carousel.umd.js +437 -344
  3. package/bundles/nextalys-carousel.umd.js.map +1 -1
  4. package/bundles/nextalys-carousel.umd.min.js +2 -2
  5. package/bundles/nextalys-carousel.umd.min.js.map +1 -1
  6. package/esm2015/lib/nxs-carousel/nxs-carousel-dialog.component.js +15 -19
  7. package/esm2015/lib/nxs-carousel/nxs-carousel-types.js +1 -1
  8. package/esm2015/lib/nxs-carousel/nxs-carousel.component.js +43 -71
  9. package/esm2015/lib/nxs-carousel/nxs-carousel.module.js +22 -25
  10. package/esm2015/nextalys-carousel.js +1 -1
  11. package/esm2015/public-api.js +1 -1
  12. package/fesm2015/nextalys-carousel.js +76 -106
  13. package/fesm2015/nextalys-carousel.js.map +1 -1
  14. package/lib/nxs-carousel/nxs-carousel-dialog.component.d.ts +1 -0
  15. package/lib/nxs-carousel/nxs-carousel-dialog.component.d.ts.map +1 -0
  16. package/lib/nxs-carousel/nxs-carousel-types.d.ts +1 -0
  17. package/lib/nxs-carousel/nxs-carousel-types.d.ts.map +1 -0
  18. package/lib/nxs-carousel/nxs-carousel.component.d.ts +2 -0
  19. package/lib/nxs-carousel/nxs-carousel.component.d.ts.map +1 -0
  20. package/lib/nxs-carousel/nxs-carousel.module.d.ts +1 -0
  21. package/lib/nxs-carousel/nxs-carousel.module.d.ts.map +1 -0
  22. package/nextalys-carousel.d.ts +1 -0
  23. package/nextalys-carousel.d.ts.map +1 -0
  24. package/nextalys-carousel.metadata.json +1 -1
  25. package/package.json +4 -6
  26. package/public-api.d.ts +1 -0
  27. package/public-api.d.ts.map +1 -0
  28. package/esm5/lib/nxs-carousel/nxs-carousel-dialog.component.js +0 -29
  29. package/esm5/lib/nxs-carousel/nxs-carousel-types.js +0 -8
  30. package/esm5/lib/nxs-carousel/nxs-carousel.component.js +0 -394
  31. package/esm5/lib/nxs-carousel/nxs-carousel.module.js +0 -45
  32. package/esm5/nextalys-carousel.js +0 -6
  33. package/esm5/public-api.js +0 -4
  34. package/fesm5/nextalys-carousel.js +0 -467
  35. package/fesm5/nextalys-carousel.js.map +0 -1
@@ -1,226 +1,325 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/dialog'), require('@angular/common'), require('nextalys-js-helpers/dist/events'), require('@angular/material/button'), require('@angular/material/icon'), require('@angular/cdk/observers')) :
3
3
  typeof define === 'function' && define.amd ? define('nextalys-carousel', ['exports', '@angular/core', '@angular/material/dialog', '@angular/common', 'nextalys-js-helpers/dist/events', '@angular/material/button', '@angular/material/icon', '@angular/cdk/observers'], factory) :
4
- (global = global || self, factory(global['nextalys-carousel'] = {}, global.ng.core, global.ng.material.dialog, global.ng.common, global.events, global.ng.material.button, global.ng.material.icon, global.ng.cdk.observers));
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['nextalys-carousel'] = {}, global.ng.core, global.ng.material.dialog, global.ng.common, global.events, global.ng.material.button, global.ng.material.icon, global.ng.cdk.observers));
5
5
  }(this, (function (exports, core, dialog, common, events, button, icon, observers) { '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
+ /*! *****************************************************************************
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
+ var extendStatics = function (d, b) {
23
+ extendStatics = Object.setPrototypeOf ||
24
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
+ function (d, b) { for (var p in b)
26
+ if (Object.prototype.hasOwnProperty.call(b, p))
27
+ d[p] = b[p]; };
28
+ return extendStatics(d, b);
29
+ };
30
+ function __extends(d, b) {
31
+ if (typeof b !== "function" && b !== null)
32
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
33
+ extendStatics(d, b);
34
+ function __() { this.constructor = d; }
35
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36
+ }
37
+ var __assign = function () {
38
+ __assign = Object.assign || function __assign(t) {
39
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
40
+ s = arguments[i];
41
+ for (var p in s)
42
+ if (Object.prototype.hasOwnProperty.call(s, p))
43
+ t[p] = s[p];
44
+ }
45
+ return t;
46
+ };
47
+ return __assign.apply(this, arguments);
48
+ };
49
+ function __rest(s, e) {
50
+ var t = {};
51
+ for (var p in s)
52
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
53
+ t[p] = s[p];
54
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
55
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
56
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
57
+ t[p[i]] = s[p[i]];
58
+ }
59
+ return t;
60
+ }
61
+ function __decorate(decorators, target, key, desc) {
62
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
63
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
64
+ r = Reflect.decorate(decorators, target, key, desc);
65
+ else
66
+ for (var i = decorators.length - 1; i >= 0; i--)
67
+ if (d = decorators[i])
68
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
69
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
70
+ }
71
+ function __param(paramIndex, decorator) {
72
+ return function (target, key) { decorator(target, key, paramIndex); };
73
+ }
74
+ function __metadata(metadataKey, metadataValue) {
75
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
76
+ return Reflect.metadata(metadataKey, metadataValue);
77
+ }
78
+ function __awaiter(thisArg, _arguments, P, generator) {
79
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
80
+ return new (P || (P = Promise))(function (resolve, reject) {
81
+ function fulfilled(value) { try {
82
+ step(generator.next(value));
83
+ }
84
+ catch (e) {
85
+ reject(e);
86
+ } }
87
+ function rejected(value) { try {
88
+ step(generator["throw"](value));
89
+ }
90
+ catch (e) {
91
+ reject(e);
92
+ } }
93
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
94
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
95
+ });
96
+ }
97
+ function __generator(thisArg, body) {
98
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
99
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
100
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
101
+ function verb(n) { return function (v) { return step([n, v]); }; }
102
+ function step(op) {
103
+ if (f)
104
+ throw new TypeError("Generator is already executing.");
105
+ while (_)
106
+ try {
107
+ 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)
108
+ return t;
109
+ if (y = 0, t)
110
+ op = [op[0] & 2, t.value];
111
+ switch (op[0]) {
112
+ case 0:
113
+ case 1:
114
+ t = op;
115
+ break;
116
+ case 4:
117
+ _.label++;
118
+ return { value: op[1], done: false };
119
+ case 5:
120
+ _.label++;
121
+ y = op[1];
122
+ op = [0];
123
+ continue;
124
+ case 7:
125
+ op = _.ops.pop();
126
+ _.trys.pop();
127
+ continue;
128
+ default:
129
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
130
+ _ = 0;
131
+ continue;
132
+ }
133
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
134
+ _.label = op[1];
135
+ break;
136
+ }
137
+ if (op[0] === 6 && _.label < t[1]) {
138
+ _.label = t[1];
139
+ t = op;
140
+ break;
141
+ }
142
+ if (t && _.label < t[2]) {
143
+ _.label = t[2];
144
+ _.ops.push(op);
145
+ break;
146
+ }
147
+ if (t[2])
148
+ _.ops.pop();
149
+ _.trys.pop();
150
+ continue;
151
+ }
152
+ op = body.call(thisArg, _);
153
+ }
154
+ catch (e) {
155
+ op = [6, e];
156
+ y = 0;
157
+ }
158
+ finally {
159
+ f = t = 0;
160
+ }
161
+ if (op[0] & 5)
162
+ throw op[1];
163
+ return { value: op[0] ? op[1] : void 0, done: true };
164
+ }
165
+ }
166
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
167
+ if (k2 === undefined)
168
+ k2 = k;
169
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
170
+ }) : (function (o, m, k, k2) {
171
+ if (k2 === undefined)
172
+ k2 = k;
173
+ o[k2] = m[k];
174
+ });
175
+ function __exportStar(m, o) {
176
+ for (var p in m)
177
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
178
+ __createBinding(o, m, p);
179
+ }
180
+ function __values(o) {
181
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
182
+ if (m)
183
+ return m.call(o);
184
+ if (o && typeof o.length === "number")
185
+ return {
186
+ next: function () {
187
+ if (o && i >= o.length)
188
+ o = void 0;
189
+ return { value: o && o[i++], done: !o };
190
+ }
191
+ };
192
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
193
+ }
194
+ function __read(o, n) {
195
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
196
+ if (!m)
197
+ return o;
198
+ var i = m.call(o), r, ar = [], e;
199
+ try {
200
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
201
+ ar.push(r.value);
202
+ }
203
+ catch (error) {
204
+ e = { error: error };
205
+ }
206
+ finally {
207
+ try {
208
+ if (r && !r.done && (m = i["return"]))
209
+ m.call(i);
210
+ }
211
+ finally {
212
+ if (e)
213
+ throw e.error;
214
+ }
215
+ }
216
+ return ar;
217
+ }
218
+ /** @deprecated */
219
+ function __spread() {
220
+ for (var ar = [], i = 0; i < arguments.length; i++)
221
+ ar = ar.concat(__read(arguments[i]));
222
+ return ar;
223
+ }
224
+ /** @deprecated */
225
+ function __spreadArrays() {
226
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
227
+ s += arguments[i].length;
228
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
229
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
230
+ r[k] = a[j];
231
+ return r;
232
+ }
233
+ function __spreadArray(to, from, pack) {
234
+ if (pack || arguments.length === 2)
235
+ for (var i = 0, l = from.length, ar; i < l; i++) {
236
+ if (ar || !(i in from)) {
237
+ if (!ar)
238
+ ar = Array.prototype.slice.call(from, 0, i);
239
+ ar[i] = from[i];
240
+ }
241
+ }
242
+ return to.concat(ar || from);
243
+ }
244
+ function __await(v) {
245
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
246
+ }
247
+ function __asyncGenerator(thisArg, _arguments, generator) {
248
+ if (!Symbol.asyncIterator)
249
+ throw new TypeError("Symbol.asyncIterator is not defined.");
250
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
251
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
252
+ function verb(n) { if (g[n])
253
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
254
+ function resume(n, v) { try {
255
+ step(g[n](v));
256
+ }
257
+ catch (e) {
258
+ settle(q[0][3], e);
259
+ } }
260
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
261
+ function fulfill(value) { resume("next", value); }
262
+ function reject(value) { resume("throw", value); }
263
+ function settle(f, v) { if (f(v), q.shift(), q.length)
264
+ resume(q[0][0], q[0][1]); }
265
+ }
266
+ function __asyncDelegator(o) {
267
+ var i, p;
268
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
269
+ 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; }
270
+ }
271
+ function __asyncValues(o) {
272
+ if (!Symbol.asyncIterator)
273
+ throw new TypeError("Symbol.asyncIterator is not defined.");
274
+ var m = o[Symbol.asyncIterator], i;
275
+ 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);
276
+ 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); }); }; }
277
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
278
+ }
279
+ function __makeTemplateObject(cooked, raw) {
280
+ if (Object.defineProperty) {
281
+ Object.defineProperty(cooked, "raw", { value: raw });
282
+ }
283
+ else {
284
+ cooked.raw = raw;
285
+ }
286
+ return cooked;
287
+ }
288
+ ;
289
+ var __setModuleDefault = Object.create ? (function (o, v) {
290
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
291
+ }) : function (o, v) {
292
+ o["default"] = v;
293
+ };
294
+ function __importStar(mod) {
295
+ if (mod && mod.__esModule)
296
+ return mod;
297
+ var result = {};
298
+ if (mod != null)
299
+ for (var k in mod)
300
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
301
+ __createBinding(result, mod, k);
302
+ __setModuleDefault(result, mod);
303
+ return result;
304
+ }
305
+ function __importDefault(mod) {
306
+ return (mod && mod.__esModule) ? mod : { default: mod };
307
+ }
308
+ function __classPrivateFieldGet(receiver, state, kind, f) {
309
+ if (kind === "a" && !f)
310
+ throw new TypeError("Private accessor was defined without a getter");
311
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
312
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
313
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
314
+ }
315
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
316
+ if (kind === "m")
317
+ throw new TypeError("Private method is not writable");
318
+ if (kind === "a" && !f)
319
+ throw new TypeError("Private accessor was defined without a setter");
320
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
321
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
322
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
224
323
  }
225
324
 
226
325
  var NxsCarouselModuleConfig = /** @class */ (function () {
@@ -238,22 +337,20 @@
238
337
  if (data.wrapperClass)
239
338
  this.wrapperClass += ' ' + data.wrapperClass;
240
339
  }
241
- NxsCarouselDialogComponent.ctorParameters = function () { return [
242
- { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
243
- { type: dialog.MatDialogRef }
244
- ]; };
245
- NxsCarouselDialogComponent = __decorate([
246
- core.Component({
247
- selector: 'nxs-carousel-dialog',
248
- template: "\n <div class=\"nxs-carousel-dialog-flex-wrapper\">\n <div class=\"nxs-carousel-dialog-header\">\n <button (click)=\"dialogRef.close()\" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]=\"wrapperClass\">\n <nxs-carousel [options]=\"data.options\" [images]=\"data.images\"></nxs-carousel>\n </div>\n</div>\n ",
249
- encapsulation: core.ViewEncapsulation.None,
250
- styles: [".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}"]
251
- }),
252
- __param(0, core.Inject(dialog.MAT_DIALOG_DATA)),
253
- __metadata("design:paramtypes", [Object, dialog.MatDialogRef])
254
- ], NxsCarouselDialogComponent);
255
340
  return NxsCarouselDialogComponent;
256
341
  }());
342
+ NxsCarouselDialogComponent.decorators = [
343
+ { type: core.Component, args: [{
344
+ selector: 'nxs-carousel-dialog',
345
+ template: "\n <div class=\"nxs-carousel-dialog-flex-wrapper\">\n <div class=\"nxs-carousel-dialog-header\">\n <button (click)=\"dialogRef.close()\" mat-icon-button><mat-icon>close</mat-icon></button>\n </div>\n <div [class]=\"wrapperClass\">\n <nxs-carousel [options]=\"data.options\" [images]=\"data.images\"></nxs-carousel>\n </div>\n</div>\n ",
346
+ encapsulation: core.ViewEncapsulation.None,
347
+ styles: [".nxs-carousel-dialog{max-width:98vw!important;width:98vw;height:98vh}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper{display:flex;height:100%;flex-direction:column}.nxs-carousel-dialog .nxs-carousel-dialog-flex-wrapper .nxs-carousel-wrapper{flex:auto}.nxs-carousel-dialog .nxs-carousel-dialog-header{position:relative;display:flex;justify-content:flex-end;padding-bottom:8px}.nxs-carousel-dialog mat-dialog-container{padding:20px}.nxs-carousel-dialog .nxs-carousel-wrapper{width:100%;margin:auto;height:100%}"]
348
+ },] }
349
+ ];
350
+ NxsCarouselDialogComponent.ctorParameters = function () { return [
351
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
352
+ { type: dialog.MatDialogRef }
353
+ ]; };
257
354
 
258
355
  var NxsCarouselComponent = /** @class */ (function () {
259
356
  function NxsCarouselComponent(matDialog, zone, platformId, config) {
@@ -281,7 +378,7 @@
281
378
  set: function (val) {
282
379
  this.options = this.setDefaultOptions(val, false);
283
380
  },
284
- enumerable: true,
381
+ enumerable: false,
285
382
  configurable: true
286
383
  });
287
384
  Object.defineProperty(NxsCarouselComponent.prototype, "setImages", {
@@ -290,7 +387,7 @@
290
387
  this.initSlides();
291
388
  this.createSlider(true);
292
389
  },
293
- enumerable: true,
390
+ enumerable: false,
294
391
  configurable: true
295
392
  });
296
393
  NxsCarouselComponent.prototype.log = function () {
@@ -300,7 +397,7 @@
300
397
  }
301
398
  if (!this.config.debug)
302
399
  return;
303
- console.log.apply(console, __spread(['[NxsCarousel]'], args));
400
+ console.log.apply(console, __spreadArray(['[NxsCarousel]'], __read(args)));
304
401
  };
305
402
  NxsCarouselComponent.prototype.onContentChange = function (changes) {
306
403
  // console.log("Log: NxsCarouselComponent -> onContentChange -> changes", changes);
@@ -318,30 +415,52 @@
318
415
  }
319
416
  this.log('initSlides begins');
320
417
  this.zone.runOutsideAngular(function () {
418
+ var e_1, _d, e_2, _e;
321
419
  if (!_this.hasHtmlContent && _this.images) {
322
420
  _this.nxsSlidesWrapper.nativeElement.innerHTML = '';
323
- for (var i = 0; i < _this.images.length; i++) {
324
- var div = document.createElement('div');
325
- div.className = 'swiper-slide';
326
- div.style.backgroundImage = 'url(' + _this.images[i].src + ')';
327
- if (_this.options.nxsCarouselImageBackgroundSize)
328
- div.style.backgroundSize = _this.options.nxsCarouselImageBackgroundSize;
329
- _this.nxsSlidesWrapper.nativeElement.appendChild(div);
421
+ try {
422
+ for (var _f = __values(_this.images), _g = _f.next(); !_g.done; _g = _f.next()) {
423
+ var cImage = _g.value;
424
+ var div = document.createElement('div');
425
+ div.className = 'swiper-slide';
426
+ div.style.backgroundImage = 'url(' + cImage.src + ')';
427
+ if (_this.options.nxsCarouselImageBackgroundSize)
428
+ div.style.backgroundSize = _this.options.nxsCarouselImageBackgroundSize;
429
+ _this.nxsSlidesWrapper.nativeElement.appendChild(div);
430
+ }
431
+ }
432
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
433
+ finally {
434
+ try {
435
+ if (_g && !_g.done && (_d = _f.return)) _d.call(_f);
436
+ }
437
+ finally { if (e_1) throw e_1.error; }
330
438
  }
331
439
  _this.slidesCount = _this.images.length;
332
440
  if (!!_this.options.nxsThumbnails && _this.options.nxsThumbnails.show) {
333
441
  _this.nxsThumbnailsSlidesWrapper.nativeElement.innerHTML = '';
334
- for (var i = 0; i < _this.images.length; i++) {
335
- var div = document.createElement('div');
336
- div.className = 'swiper-slide';
337
- div.style.backgroundImage = 'url(' + _this.images[i].src + ')';
338
- _this.nxsThumbnailsSlidesWrapper.nativeElement.appendChild(div);
442
+ try {
443
+ for (var _h = __values(_this.images), _j = _h.next(); !_j.done; _j = _h.next()) {
444
+ var cImage = _j.value;
445
+ var div = document.createElement('div');
446
+ div.className = 'swiper-slide';
447
+ div.style.backgroundImage = 'url(' + cImage.src + ')';
448
+ _this.nxsThumbnailsSlidesWrapper.nativeElement.appendChild(div);
449
+ }
450
+ }
451
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
452
+ finally {
453
+ try {
454
+ if (_j && !_j.done && (_e = _h.return)) _e.call(_h);
455
+ }
456
+ finally { if (e_2) throw e_2.error; }
339
457
  }
340
458
  }
341
459
  _this.log('initSlides - images are defined - slides count => ', _this.slidesCount);
342
460
  }
343
461
  else if (_this.hasHtmlContent) {
344
462
  _this.log('initSlides - html content - slides length => ', _this.nxsSlidesWrapper.nativeElement.children.length);
463
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
345
464
  for (var i = 0; i < _this.nxsSlidesWrapper.nativeElement.children.length; i++) {
346
465
  var child = _this.nxsSlidesWrapper.nativeElement.children[i];
347
466
  if (!child.className)
@@ -355,15 +474,17 @@
355
474
  }
356
475
  });
357
476
  };
358
- NxsCarouselComponent.prototype.ngOnDestroy = function () {
477
+ NxsCarouselComponent.prototype.destroy = function () {
478
+ var _a, _b, _c;
359
479
  if (!this.isBrowser) {
360
480
  return;
361
481
  }
362
- this.eventsCollector.unsubscribeAll();
363
- if (this.mutationObserver)
364
- this.mutationObserver.disconnect();
365
- if (this.sliderInstance)
366
- this.sliderInstance.destroy();
482
+ (_a = this.eventsCollector) === null || _a === void 0 ? void 0 : _a.unsubscribeAll();
483
+ (_b = this.mutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
484
+ (_c = this.sliderInstance) === null || _c === void 0 ? void 0 : _c.destroy();
485
+ };
486
+ NxsCarouselComponent.prototype.ngOnDestroy = function () {
487
+ this.destroy();
367
488
  };
368
489
  NxsCarouselComponent.prototype.subscribeToSlideChanged = function () {
369
490
  var _this = this;
@@ -383,7 +504,7 @@
383
504
  this.mutationObserver.disconnect();
384
505
  this.log('subscribe to mutation observer');
385
506
  this.mutationObserver = new MutationObserver(function (mutationsList) {
386
- var e_1, _a;
507
+ var e_3, _d;
387
508
  // console.log("Log: NxsCarouselComponent -> subscribeToSlideChanged -> mutationsList", mutationsList);
388
509
  // console.log("Log: NxsCarouselComponent -> subscribeToSlideChanged -> MutationObserver");
389
510
  _this.log('mutation observer - html content has changed');
@@ -399,12 +520,12 @@
399
520
  }
400
521
  }
401
522
  }
402
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
523
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
403
524
  finally {
404
525
  try {
405
- if (mutationsList_1_1 && !mutationsList_1_1.done && (_a = mutationsList_1.return)) _a.call(mutationsList_1);
526
+ if (mutationsList_1_1 && !mutationsList_1_1.done && (_d = mutationsList_1.return)) _d.call(mutationsList_1);
406
527
  }
407
- finally { if (e_1) throw e_1.error; }
528
+ finally { if (e_3) throw e_3.error; }
408
529
  }
409
530
  if (mustUpdate) {
410
531
  _this.initSlides();
@@ -431,6 +552,7 @@
431
552
  return '';
432
553
  };
433
554
  NxsCarouselComponent.prototype.setDefaultOptions = function (options, forDialog) {
555
+ var _a;
434
556
  if (!options && forDialog) {
435
557
  options = { nxsShowNavigationBullets: true, loop: true, nxsThumbnails: { show: true }, effect: 'slide', nxsShowNavigationArrows: true, nxsShowImagesCount: true };
436
558
  }
@@ -443,7 +565,7 @@
443
565
  options.nxsCarouselDialogOptions.effect = 'slide';
444
566
  if (typeof options.nxsCarouselDialogOptions.nxsShowNavigationArrows === 'undefined')
445
567
  options.nxsCarouselDialogOptions.nxsShowNavigationArrows = true;
446
- if (options.nxsCarouselDialogOptions.nxsThumbnails.show) {
568
+ if (!!((_a = options.nxsCarouselDialogOptions.nxsThumbnails) === null || _a === void 0 ? void 0 : _a.show)) {
447
569
  if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight === 'undefined')
448
570
  options.nxsCarouselDialogOptions.nxsThumbnails.percentHeight = 20;
449
571
  if (typeof options.nxsCarouselDialogOptions.nxsThumbnails.perView === 'undefined')
@@ -461,7 +583,7 @@
461
583
  };
462
584
  }
463
585
  }
464
- if (typeof options.nxsThumbnails === 'undefined')
586
+ if (!options.nxsThumbnails)
465
587
  options.nxsThumbnails = { show: false };
466
588
  if (options.nxsThumbnails.show && typeof options.nxsThumbnails.percentHeight === 'undefined')
467
589
  options.nxsThumbnails.percentHeight = 20;
@@ -505,13 +627,12 @@
505
627
  return;
506
628
  }
507
629
  this.zone.runOutsideAngular(function () { return __awaiter(_this, void 0, void 0, function () {
508
- var _a, Swiper, thumbnailsOptions;
630
+ var _d, Swiper, thumbnailsOptions;
509
631
  var _this = this;
510
- return __generator(this, function (_b) {
511
- switch (_b.label) {
632
+ return __generator(this, function (_e) {
633
+ switch (_e.label) {
512
634
  case 0:
513
- if (this.sliderInstance)
514
- this.sliderInstance.destroy();
635
+ this.destroy();
515
636
  this.options.pagination = {
516
637
  el: '.nxs-carousel-pagination',
517
638
  clickable: true,
@@ -522,11 +643,11 @@
522
643
  prevEl: '.nxs-carousel-button-prev',
523
644
  };
524
645
  if (!!this.swiperLibrary) return [3 /*break*/, 2];
525
- _a = this;
646
+ _d = this;
526
647
  return [4 /*yield*/, import('swiper')];
527
648
  case 1:
528
- _a.swiperLibrary = _b.sent();
529
- _b.label = 2;
649
+ _d.swiperLibrary = _e.sent();
650
+ _e.label = 2;
530
651
  case 2:
531
652
  Swiper = this.swiperLibrary.default;
532
653
  if (!!this.options.nxsThumbnails && this.options.nxsThumbnails.show) {
@@ -537,6 +658,7 @@
537
658
  watchSlidesVisibility: true,
538
659
  watchSlidesProgress: true,
539
660
  breakpoints: this.options.nxsThumbnails.breakpoints,
661
+ // spaceBetween: 10,
540
662
  };
541
663
  this.thumbnailsSliderInstance = new Swiper(this.nxsThumbnailsSliderContainer.nativeElement, thumbnailsOptions);
542
664
  this.options.thumbs = { swiper: this.thumbnailsSliderInstance };
@@ -582,98 +704,69 @@
582
704
  return;
583
705
  this.sliderInstance.slidePrev();
584
706
  };
585
- NxsCarouselComponent.ctorParameters = function () { return [
586
- { type: dialog.MatDialog },
587
- { type: core.NgZone },
588
- { type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
589
- { type: NxsCarouselModuleConfig, decorators: [{ type: core.Optional }] }
590
- ]; };
591
- __decorate([
592
- core.ViewChild('nxsSliderContainer', { static: true }),
593
- __metadata("design:type", core.ElementRef)
594
- ], NxsCarouselComponent.prototype, "nxsSliderContainer", void 0);
595
- __decorate([
596
- core.ViewChild('nxsSlidesWrapper', { static: true }),
597
- __metadata("design:type", core.ElementRef)
598
- ], NxsCarouselComponent.prototype, "nxsSlidesWrapper", void 0);
599
- __decorate([
600
- core.ViewChild('nxsThumbnailsSliderContainer', { static: true }),
601
- __metadata("design:type", core.ElementRef)
602
- ], NxsCarouselComponent.prototype, "nxsThumbnailsSliderContainer", void 0);
603
- __decorate([
604
- core.ViewChild('nxsThumbnailsSlidesWrapper', { static: true }),
605
- __metadata("design:type", core.ElementRef)
606
- ], NxsCarouselComponent.prototype, "nxsThumbnailsSlidesWrapper", void 0);
607
- __decorate([
608
- core.Input('options'),
609
- __metadata("design:type", Object),
610
- __metadata("design:paramtypes", [Object])
611
- ], NxsCarouselComponent.prototype, "setOptions", null);
612
- __decorate([
613
- core.Input('images'),
614
- __metadata("design:type", Array),
615
- __metadata("design:paramtypes", [Array])
616
- ], NxsCarouselComponent.prototype, "setImages", null);
617
- __decorate([
618
- core.Input(),
619
- __metadata("design:type", Object)
620
- ], NxsCarouselComponent.prototype, "hasHtmlContent", void 0);
621
- __decorate([
622
- core.Output(),
623
- __metadata("design:type", Object)
624
- ], NxsCarouselComponent.prototype, "slideChange", void 0);
625
- __decorate([
626
- core.Output(),
627
- __metadata("design:type", Object)
628
- ], NxsCarouselComponent.prototype, "slideClick", void 0);
629
- NxsCarouselComponent = __decorate([
630
- core.Component({
631
- selector: 'nxs-carousel',
632
- template: "<div #nxsSliderContainer\n \u00A0[ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <div class=\"swiper-wrapper\" #nxsSlidesWrapper>\n <ng-content>\n\n </ng-content>\n </div>\n <!-- (cdkObserveContent)=\"onContentChange($event)\" -->\n <!-- If we need pagination -->\n <div class=\"swiper-pagination nxs-carousel-pagination\"\n [style.display]=\"slidesCount>0 && options && options.nxsShowNavigationBullets ? '':'none'\"></div>\n\n <!-- If we need navigation buttons -->\n <ng-container *ngIf=\"options.nxsShowNavigationArrows\">\n <div class=\"nxs-carousel-button-prev swiper-button-prev\"></div>\n <div class=\"nxs-carousel-button-next swiper-button-next\"></div>\n </ng-container>\n\n <ng-container *ngIf=\"images && options.nxsShowImagesCount\">\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\n\n</div>\n\n<div #nxsThumbnailsSliderContainer\n [style.display]=\"(images && !!options.nxsThumbnails && options.nxsThumbnails.show) ?'':'none'\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <div class=\"swiper-wrapper\" #nxsThumbnailsSlidesWrapper>\n\n </div>\n\n</div>",
633
- encapsulation: core.ViewEncapsulation.None,
634
- styles: ["nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color:white;--swiper-theme-color:white}nxs-carousel .swiper-container{width:100%;display:block;position:relative;height:100%}nxs-carousel .swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:100%;min-height:50px;background-size:cover;background-position:center;background-repeat:no-repeat}nxs-carousel .swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel .swiper-container.nxs-slider-thumbnails-container{height:20%;background:0 0;padding:6px 0}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid #add8e6}nxs-carousel .swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}"]
635
- }),
636
- __param(2, core.Inject(core.PLATFORM_ID)),
637
- __param(3, core.Optional()),
638
- __metadata("design:paramtypes", [dialog.MatDialog,
639
- core.NgZone, Object, NxsCarouselModuleConfig])
640
- ], NxsCarouselComponent);
641
707
  return NxsCarouselComponent;
642
708
  }());
709
+ NxsCarouselComponent.decorators = [
710
+ { type: core.Component, args: [{
711
+ selector: 'nxs-carousel',
712
+ template: "<div #nxsSliderContainer\n \u00A0[ngClass]=\"{'swiper-container':true,'nxs-slider-with-thumbnails':!!options.nxsThumbnails && options.nxsThumbnails.show}\"\n [style.height]=\"getMainSliderHeight()\">\n <div class=\"swiper-wrapper\" #nxsSlidesWrapper>\n <ng-content>\n\n </ng-content>\n </div>\n <!-- (cdkObserveContent)=\"onContentChange($event)\" -->\n <!-- If we need pagination -->\n <div class=\"swiper-pagination nxs-carousel-pagination\"\n [style.display]=\"slidesCount>0 && options && options.nxsShowNavigationBullets ? '':'none'\"></div>\n\n <!-- If we need navigation buttons -->\n <ng-container *ngIf=\"options.nxsShowNavigationArrows\">\n <div class=\"nxs-carousel-button-prev swiper-button-prev\"></div>\n <div class=\"nxs-carousel-button-next swiper-button-next\"></div>\n </ng-container>\n\n <ng-container *ngIf=\"images && options.nxsShowImagesCount\">\n <div class=\"nxs-image-counter\">\n {{currentSlide+1}} / {{images.length}}\n </div>\n </ng-container>\n\n</div>\n\n<div #nxsThumbnailsSliderContainer\n [style.display]=\"(images && !!options.nxsThumbnails && options.nxsThumbnails.show) ?'':'none'\"\n [style.height]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight) ? (options.nxsThumbnails.percentHeight + '%'):''\"\n [style.top]=\"(!!options.nxsThumbnails && options.nxsThumbnails.show && !!options.nxsThumbnails.percentHeight && options.nxsThumbnails.onMainSlider) ? ('-' + (options.nxsThumbnails.percentHeight) + '%'):''\"\n [ngClass]=\"{'swiper-container':true, 'nxs-slider-thumbnails-container':true,'nxs-slider-thumbnails-on-main-slider':options.nxsThumbnails && options.nxsThumbnails.onMainSlider}\">\n <div class=\"swiper-wrapper\" #nxsThumbnailsSlidesWrapper>\n\n </div>\n\n</div>",
713
+ encapsulation: core.ViewEncapsulation.None,
714
+ styles: ["nxs-carousel{display:block;height:100%;position:relative;--swiper-navigation-color:#fff;--swiper-theme-color:#fff}nxs-carousel .swiper-container{width:100%;display:block;position:relative;height:100%}nxs-carousel .swiper-container .swiper-wrapper .swiper-slide{height:100%;position:relative;width:100%;min-height:50px;background-size:cover;background-position:50%;background-repeat:no-repeat}nxs-carousel .swiper-container.nxs-slider-with-thumbnails{height:80%}nxs-carousel .swiper-container.nxs-slider-thumbnails-container{height:20%;background:transparent;padding:6px 0}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide{cursor:pointer;border-radius:6px;margin:0 6px;border:2px solid transparent}nxs-carousel .swiper-container.nxs-slider-thumbnails-container .swiper-slide.swiper-slide-thumb-active{border:2px solid #add8e6}nxs-carousel .swiper-container.nxs-slider-thumbnails-on-main-slider{top:-20%}nxs-carousel .nxs-image-counter{position:absolute;top:0;right:0;color:#fff;padding:4px;font-weight:700;z-index:10}"]
715
+ },] }
716
+ ];
717
+ NxsCarouselComponent.ctorParameters = function () { return [
718
+ { type: dialog.MatDialog },
719
+ { type: core.NgZone },
720
+ { type: undefined, decorators: [{ type: core.Inject, args: [core.PLATFORM_ID,] }] },
721
+ { type: NxsCarouselModuleConfig, decorators: [{ type: core.Optional }] }
722
+ ]; };
723
+ NxsCarouselComponent.propDecorators = {
724
+ nxsSliderContainer: [{ type: core.ViewChild, args: ['nxsSliderContainer', { static: true },] }],
725
+ nxsSlidesWrapper: [{ type: core.ViewChild, args: ['nxsSlidesWrapper', { static: true },] }],
726
+ nxsThumbnailsSliderContainer: [{ type: core.ViewChild, args: ['nxsThumbnailsSliderContainer', { static: true },] }],
727
+ nxsThumbnailsSlidesWrapper: [{ type: core.ViewChild, args: ['nxsThumbnailsSlidesWrapper', { static: true },] }],
728
+ setOptions: [{ type: core.Input, args: ['options',] }],
729
+ setImages: [{ type: core.Input, args: ['images',] }],
730
+ hasHtmlContent: [{ type: core.Input }],
731
+ slideChange: [{ type: core.Output }],
732
+ slideClick: [{ type: core.Output }]
733
+ };
643
734
 
644
735
  var NxsCarouselModule = /** @class */ (function () {
645
736
  function NxsCarouselModule() {
646
737
  }
647
- NxsCarouselModule_1 = NxsCarouselModule;
648
738
  NxsCarouselModule.forRoot = function (config) {
649
739
  return {
650
- ngModule: NxsCarouselModule_1,
740
+ ngModule: NxsCarouselModule,
651
741
  providers: [
652
742
  { provide: NxsCarouselModuleConfig, useValue: config },
653
743
  ]
654
744
  };
655
745
  };
656
- var NxsCarouselModule_1;
657
- NxsCarouselModule = NxsCarouselModule_1 = __decorate([
658
- core.NgModule({
659
- declarations: [
660
- NxsCarouselComponent,
661
- NxsCarouselDialogComponent,
662
- ],
663
- imports: [
664
- common.CommonModule,
665
- icon.MatIconModule,
666
- button.MatButtonModule,
667
- dialog.MatDialogModule,
668
- observers.ObserversModule,
669
- ],
670
- exports: [
671
- NxsCarouselComponent,
672
- ],
673
- })
674
- ], NxsCarouselModule);
675
746
  return NxsCarouselModule;
676
747
  }());
748
+ NxsCarouselModule.decorators = [
749
+ { type: core.NgModule, args: [{
750
+ declarations: [
751
+ NxsCarouselComponent,
752
+ NxsCarouselDialogComponent,
753
+ ],
754
+ imports: [
755
+ common.CommonModule,
756
+ icon.MatIconModule,
757
+ button.MatButtonModule,
758
+ dialog.MatDialogModule,
759
+ observers.ObserversModule,
760
+ ],
761
+ exports: [
762
+ NxsCarouselComponent,
763
+ ],
764
+ },] }
765
+ ];
766
+
767
+ /**
768
+ * Generated bundle index. Do not edit.
769
+ */
677
770
 
678
771
  exports.NxsCarouselComponent = NxsCarouselComponent;
679
772
  exports.NxsCarouselModule = NxsCarouselModule;