@taiga-ui/addon-mobile 3.66.0 → 3.67.0-canary.04255ba

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 (31) hide show
  1. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +156 -10
  2. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
  3. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js +152 -6
  4. package/bundles/taiga-ui-addon-mobile-components-mobile-dialog.umd.js.map +1 -1
  5. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +152 -6
  6. package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
  7. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js +722 -576
  8. package/bundles/taiga-ui-addon-mobile-components-sheet-dialog.umd.js.map +1 -1
  9. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +1276 -1124
  10. package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
  11. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js +520 -374
  12. package/bundles/taiga-ui-addon-mobile-components-theme-android.umd.js.map +1 -1
  13. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js +520 -374
  14. package/bundles/taiga-ui-addon-mobile-components-theme-ios.umd.js.map +1 -1
  15. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js +565 -419
  16. package/bundles/taiga-ui-addon-mobile-directives-elastic-sticky.umd.js.map +1 -1
  17. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js +652 -506
  18. package/bundles/taiga-ui-addon-mobile-directives-sidebar.umd.js.map +1 -1
  19. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js +558 -412
  20. package/bundles/taiga-ui-addon-mobile-internal-primitive-calendar-mobile.umd.js.map +1 -1
  21. package/components/sheet/components/sheet/sheet.component.d.ts +3 -2
  22. package/components/sheet/ios.hacks.d.ts +0 -1
  23. package/esm2015/components/mobile-calendar/mobile-calendar.component.js +6 -6
  24. package/esm2015/components/sheet/components/sheet/sheet.component.js +22 -8
  25. package/esm2015/components/sheet/directives/sheet-stop/sheet-stop.directive.js +7 -3
  26. package/esm2015/components/sheet/ios.hacks.js +1 -10
  27. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +6 -6
  28. package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
  29. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +43 -35
  30. package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
  31. package/package.json +32 -32
@@ -1,1153 +1,1305 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs/operators'), require('rxjs'), require('@angular/common'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus')) :
3
- typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/sheet', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs/operators', 'rxjs', '@angular/common', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = global["taiga-ui"]["addon-mobile"] || {}, global["taiga-ui"]["addon-mobile"].components = global["taiga-ui"]["addon-mobile"].components || {}, global["taiga-ui"]["addon-mobile"].components.sheet = {}), global.ng.core, global.i3, global.i1$1, global.kit, global.rxjs.operators, global.rxjs, global.ng.common, global.common, global.i5));
5
- })(this, (function (exports, i0, i3, i1$1, kit, operators, i1, i2, common, i5) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@ng-web-apis/common'), require('@tinkoff/ng-polymorpheus')) :
3
+ typeof define === 'function' && define.amd ? define('@taiga-ui/addon-mobile/components/sheet', ['exports', '@angular/core', '@taiga-ui/cdk', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs', 'rxjs/operators', '@angular/common', '@ng-web-apis/common', '@tinkoff/ng-polymorpheus'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["taiga-ui"] = global["taiga-ui"] || {}, global["taiga-ui"]["addon-mobile"] = global["taiga-ui"]["addon-mobile"] || {}, global["taiga-ui"]["addon-mobile"].components = global["taiga-ui"]["addon-mobile"].components || {}, global["taiga-ui"]["addon-mobile"].components.sheet = {}), global.ng.core, global.i3, global.i1, global.kit, global.rxjs, global.rxjs.operators, global.ng.common, global.common, global.i5));
5
+ })(this, (function (exports, i0, i3, i1, kit, i1$1, operators, i2, common, i5) { 'use strict';
6
6
 
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
- });
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
+ });
20
18
  }
21
- n["default"] = e;
22
- return Object.freeze(n);
19
+ });
23
20
  }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
28
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
27
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
29
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
31
31
 
32
- /*! *****************************************************************************
33
- Copyright (c) Microsoft Corporation.
32
+ /******************************************************************************
33
+ Copyright (c) Microsoft Corporation.
34
34
 
35
- Permission to use, copy, modify, and/or distribute this software for any
36
- purpose with or without fee is hereby granted.
35
+ Permission to use, copy, modify, and/or distribute this software for any
36
+ purpose with or without fee is hereby granted.
37
37
 
38
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
- PERFORMANCE OF THIS SOFTWARE.
45
- ***************************************************************************** */
46
- /* global Reflect, Promise */
47
- var extendStatics = function (d, b) {
48
- extendStatics = Object.setPrototypeOf ||
49
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
- function (d, b) { for (var p in b)
51
- if (Object.prototype.hasOwnProperty.call(b, p))
52
- d[p] = b[p]; };
53
- return extendStatics(d, b);
54
- };
55
- function __extends(d, b) {
56
- if (typeof b !== "function" && b !== null)
57
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
- extendStatics(d, b);
59
- function __() { this.constructor = d; }
60
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
- }
62
- var __assign = function () {
63
- __assign = Object.assign || function __assign(t) {
64
- for (var s, i = 1, n = arguments.length; i < n; i++) {
65
- s = arguments[i];
66
- for (var p in s)
67
- if (Object.prototype.hasOwnProperty.call(s, p))
68
- t[p] = s[p];
69
- }
70
- return t;
71
- };
72
- return __assign.apply(this, arguments);
73
- };
74
- function __rest(s, e) {
75
- var t = {};
76
- for (var p in s)
77
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
- t[p] = s[p];
79
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
- t[p[i]] = s[p[i]];
83
- }
84
- return t;
85
- }
86
- function __decorate(decorators, target, key, desc) {
87
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
- r = Reflect.decorate(decorators, target, key, desc);
90
- else
91
- for (var i = decorators.length - 1; i >= 0; i--)
92
- if (d = decorators[i])
93
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
- return c > 3 && r && Object.defineProperty(target, key, r), r;
95
- }
96
- function __param(paramIndex, decorator) {
97
- return function (target, key) { decorator(target, key, paramIndex); };
98
- }
99
- function __metadata(metadataKey, metadataValue) {
100
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
101
- return Reflect.metadata(metadataKey, metadataValue);
102
- }
103
- function __awaiter(thisArg, _arguments, P, generator) {
104
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
105
- return new (P || (P = Promise))(function (resolve, reject) {
106
- function fulfilled(value) { try {
107
- step(generator.next(value));
108
- }
109
- catch (e) {
110
- reject(e);
111
- } }
112
- function rejected(value) { try {
113
- step(generator["throw"](value));
114
- }
115
- catch (e) {
116
- reject(e);
117
- } }
118
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
119
- step((generator = generator.apply(thisArg, _arguments || [])).next());
120
- });
121
- }
122
- function __generator(thisArg, body) {
123
- var _ = { label: 0, sent: function () { if (t[0] & 1)
124
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
125
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
126
- function verb(n) { return function (v) { return step([n, v]); }; }
127
- function step(op) {
128
- if (f)
129
- throw new TypeError("Generator is already executing.");
130
- while (_)
131
- try {
132
- 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)
133
- return t;
134
- if (y = 0, t)
135
- op = [op[0] & 2, t.value];
136
- switch (op[0]) {
137
- case 0:
138
- case 1:
139
- t = op;
140
- break;
141
- case 4:
142
- _.label++;
143
- return { value: op[1], done: false };
144
- case 5:
145
- _.label++;
146
- y = op[1];
147
- op = [0];
148
- continue;
149
- case 7:
150
- op = _.ops.pop();
151
- _.trys.pop();
152
- continue;
153
- default:
154
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
155
- _ = 0;
156
- continue;
157
- }
158
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
159
- _.label = op[1];
160
- break;
161
- }
162
- if (op[0] === 6 && _.label < t[1]) {
163
- _.label = t[1];
164
- t = op;
165
- break;
166
- }
167
- if (t && _.label < t[2]) {
168
- _.label = t[2];
169
- _.ops.push(op);
170
- break;
171
- }
172
- if (t[2])
173
- _.ops.pop();
174
- _.trys.pop();
175
- continue;
176
- }
177
- op = body.call(thisArg, _);
178
- }
179
- catch (e) {
180
- op = [6, e];
181
- y = 0;
182
- }
183
- finally {
184
- f = t = 0;
185
- }
186
- if (op[0] & 5)
187
- throw op[1];
188
- return { value: op[0] ? op[1] : void 0, done: true };
189
- }
190
- }
191
- var __createBinding = Object.create ? (function (o, m, k, k2) {
192
- if (k2 === undefined)
193
- k2 = k;
194
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
195
- }) : (function (o, m, k, k2) {
196
- if (k2 === undefined)
197
- k2 = k;
198
- o[k2] = m[k];
199
- });
200
- function __exportStar(m, o) {
201
- for (var p in m)
202
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
203
- __createBinding(o, m, p);
204
- }
205
- function __values(o) {
206
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
207
- if (m)
208
- return m.call(o);
209
- if (o && typeof o.length === "number")
210
- return {
211
- next: function () {
212
- if (o && i >= o.length)
213
- o = void 0;
214
- return { value: o && o[i++], done: !o };
215
- }
216
- };
217
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
218
- }
219
- function __read(o, n) {
220
- var m = typeof Symbol === "function" && o[Symbol.iterator];
221
- if (!m)
222
- return o;
223
- var i = m.call(o), r, ar = [], e;
224
- try {
225
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
226
- ar.push(r.value);
227
- }
228
- catch (error) {
229
- e = { error: error };
230
- }
231
- finally {
232
- try {
233
- if (r && !r.done && (m = i["return"]))
234
- m.call(i);
235
- }
236
- finally {
237
- if (e)
238
- throw e.error;
239
- }
240
- }
241
- return ar;
242
- }
243
- /** @deprecated */
244
- function __spread() {
245
- for (var ar = [], i = 0; i < arguments.length; i++)
246
- ar = ar.concat(__read(arguments[i]));
247
- return ar;
248
- }
249
- /** @deprecated */
250
- function __spreadArrays() {
251
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
252
- s += arguments[i].length;
253
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
254
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
255
- r[k] = a[j];
256
- return r;
257
- }
258
- function __spreadArray(to, from, pack) {
259
- if (pack || arguments.length === 2)
260
- for (var i = 0, l = from.length, ar; i < l; i++) {
261
- if (ar || !(i in from)) {
262
- if (!ar)
263
- ar = Array.prototype.slice.call(from, 0, i);
264
- ar[i] = from[i];
265
- }
266
- }
267
- return to.concat(ar || from);
268
- }
269
- function __await(v) {
270
- return this instanceof __await ? (this.v = v, this) : new __await(v);
271
- }
272
- function __asyncGenerator(thisArg, _arguments, generator) {
273
- if (!Symbol.asyncIterator)
274
- throw new TypeError("Symbol.asyncIterator is not defined.");
275
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
276
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
277
- function verb(n) { if (g[n])
278
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
279
- function resume(n, v) { try {
280
- step(g[n](v));
281
- }
282
- catch (e) {
283
- settle(q[0][3], e);
284
- } }
285
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
286
- function fulfill(value) { resume("next", value); }
287
- function reject(value) { resume("throw", value); }
288
- function settle(f, v) { if (f(v), q.shift(), q.length)
289
- resume(q[0][0], q[0][1]); }
290
- }
291
- function __asyncDelegator(o) {
292
- var i, p;
293
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
294
- 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; }
295
- }
296
- function __asyncValues(o) {
297
- if (!Symbol.asyncIterator)
298
- throw new TypeError("Symbol.asyncIterator is not defined.");
299
- var m = o[Symbol.asyncIterator], i;
300
- 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);
301
- 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); }); }; }
302
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
303
- }
304
- function __makeTemplateObject(cooked, raw) {
305
- if (Object.defineProperty) {
306
- Object.defineProperty(cooked, "raw", { value: raw });
307
- }
308
- else {
309
- cooked.raw = raw;
310
- }
311
- return cooked;
312
- }
313
- ;
314
- var __setModuleDefault = Object.create ? (function (o, v) {
315
- Object.defineProperty(o, "default", { enumerable: true, value: v });
316
- }) : function (o, v) {
317
- o["default"] = v;
318
- };
319
- function __importStar(mod) {
320
- if (mod && mod.__esModule)
321
- return mod;
322
- var result = {};
323
- if (mod != null)
324
- for (var k in mod)
325
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
326
- __createBinding(result, mod, k);
327
- __setModuleDefault(result, mod);
328
- return result;
329
- }
330
- function __importDefault(mod) {
331
- return (mod && mod.__esModule) ? mod : { default: mod };
332
- }
333
- function __classPrivateFieldGet(receiver, state, kind, f) {
334
- if (kind === "a" && !f)
335
- throw new TypeError("Private accessor was defined without a getter");
336
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
337
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
338
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
339
- }
340
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
341
- if (kind === "m")
342
- throw new TypeError("Private method is not writable");
343
- if (kind === "a" && !f)
344
- throw new TypeError("Private accessor was defined without a setter");
345
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
346
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
347
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
348
- }
38
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
39
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
40
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
41
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
42
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
43
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
44
+ PERFORMANCE OF THIS SOFTWARE.
45
+ ***************************************************************************** */
46
+ /* global Reflect, Promise, SuppressedError, Symbol */
47
+ var extendStatics = function (d, b) {
48
+ extendStatics = Object.setPrototypeOf ||
49
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50
+ function (d, b) { for (var p in b)
51
+ if (Object.prototype.hasOwnProperty.call(b, p))
52
+ d[p] = b[p]; };
53
+ return extendStatics(d, b);
54
+ };
55
+ function __extends(d, b) {
56
+ if (typeof b !== "function" && b !== null)
57
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
58
+ extendStatics(d, b);
59
+ function __() { this.constructor = d; }
60
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
61
+ }
62
+ var __assign = function () {
63
+ __assign = Object.assign || function __assign(t) {
64
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
65
+ s = arguments[i];
66
+ for (var p in s)
67
+ if (Object.prototype.hasOwnProperty.call(s, p))
68
+ t[p] = s[p];
69
+ }
70
+ return t;
71
+ };
72
+ return __assign.apply(this, arguments);
73
+ };
74
+ function __rest(s, e) {
75
+ var t = {};
76
+ for (var p in s)
77
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
78
+ t[p] = s[p];
79
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
80
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
81
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
82
+ t[p[i]] = s[p[i]];
83
+ }
84
+ return t;
85
+ }
86
+ function __decorate(decorators, target, key, desc) {
87
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
88
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
89
+ r = Reflect.decorate(decorators, target, key, desc);
90
+ else
91
+ for (var i = decorators.length - 1; i >= 0; i--)
92
+ if (d = decorators[i])
93
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
94
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
95
+ }
96
+ function __param(paramIndex, decorator) {
97
+ return function (target, key) { decorator(target, key, paramIndex); };
98
+ }
99
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
100
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
101
+ throw new TypeError("Function expected"); return f; }
102
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
103
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
104
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
105
+ var _, done = false;
106
+ for (var i = decorators.length - 1; i >= 0; i--) {
107
+ var context = {};
108
+ for (var p in contextIn)
109
+ context[p] = p === "access" ? {} : contextIn[p];
110
+ for (var p in contextIn.access)
111
+ context.access[p] = contextIn.access[p];
112
+ context.addInitializer = function (f) { if (done)
113
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
114
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
115
+ if (kind === "accessor") {
116
+ if (result === void 0)
117
+ continue;
118
+ if (result === null || typeof result !== "object")
119
+ throw new TypeError("Object expected");
120
+ if (_ = accept(result.get))
121
+ descriptor.get = _;
122
+ if (_ = accept(result.set))
123
+ descriptor.set = _;
124
+ if (_ = accept(result.init))
125
+ initializers.unshift(_);
126
+ }
127
+ else if (_ = accept(result)) {
128
+ if (kind === "field")
129
+ initializers.unshift(_);
130
+ else
131
+ descriptor[key] = _;
132
+ }
133
+ }
134
+ if (target)
135
+ Object.defineProperty(target, contextIn.name, descriptor);
136
+ done = true;
137
+ }
138
+ ;
139
+ function __runInitializers(thisArg, initializers, value) {
140
+ var useValue = arguments.length > 2;
141
+ for (var i = 0; i < initializers.length; i++) {
142
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
143
+ }
144
+ return useValue ? value : void 0;
145
+ }
146
+ ;
147
+ function __propKey(x) {
148
+ return typeof x === "symbol" ? x : "".concat(x);
149
+ }
150
+ ;
151
+ function __setFunctionName(f, name, prefix) {
152
+ if (typeof name === "symbol")
153
+ name = name.description ? "[".concat(name.description, "]") : "";
154
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
155
+ }
156
+ ;
157
+ function __metadata(metadataKey, metadataValue) {
158
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
159
+ return Reflect.metadata(metadataKey, metadataValue);
160
+ }
161
+ function __awaiter(thisArg, _arguments, P, generator) {
162
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
163
+ return new (P || (P = Promise))(function (resolve, reject) {
164
+ function fulfilled(value) { try {
165
+ step(generator.next(value));
166
+ }
167
+ catch (e) {
168
+ reject(e);
169
+ } }
170
+ function rejected(value) { try {
171
+ step(generator["throw"](value));
172
+ }
173
+ catch (e) {
174
+ reject(e);
175
+ } }
176
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
177
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
178
+ });
179
+ }
180
+ function __generator(thisArg, body) {
181
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
182
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
183
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
184
+ function verb(n) { return function (v) { return step([n, v]); }; }
185
+ function step(op) {
186
+ if (f)
187
+ throw new TypeError("Generator is already executing.");
188
+ while (g && (g = 0, op[0] && (_ = 0)), _)
189
+ try {
190
+ 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)
191
+ return t;
192
+ if (y = 0, t)
193
+ op = [op[0] & 2, t.value];
194
+ switch (op[0]) {
195
+ case 0:
196
+ case 1:
197
+ t = op;
198
+ break;
199
+ case 4:
200
+ _.label++;
201
+ return { value: op[1], done: false };
202
+ case 5:
203
+ _.label++;
204
+ y = op[1];
205
+ op = [0];
206
+ continue;
207
+ case 7:
208
+ op = _.ops.pop();
209
+ _.trys.pop();
210
+ continue;
211
+ default:
212
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
213
+ _ = 0;
214
+ continue;
215
+ }
216
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
217
+ _.label = op[1];
218
+ break;
219
+ }
220
+ if (op[0] === 6 && _.label < t[1]) {
221
+ _.label = t[1];
222
+ t = op;
223
+ break;
224
+ }
225
+ if (t && _.label < t[2]) {
226
+ _.label = t[2];
227
+ _.ops.push(op);
228
+ break;
229
+ }
230
+ if (t[2])
231
+ _.ops.pop();
232
+ _.trys.pop();
233
+ continue;
234
+ }
235
+ op = body.call(thisArg, _);
236
+ }
237
+ catch (e) {
238
+ op = [6, e];
239
+ y = 0;
240
+ }
241
+ finally {
242
+ f = t = 0;
243
+ }
244
+ if (op[0] & 5)
245
+ throw op[1];
246
+ return { value: op[0] ? op[1] : void 0, done: true };
247
+ }
248
+ }
249
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
250
+ if (k2 === undefined)
251
+ k2 = k;
252
+ var desc = Object.getOwnPropertyDescriptor(m, k);
253
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
254
+ desc = { enumerable: true, get: function () { return m[k]; } };
255
+ }
256
+ Object.defineProperty(o, k2, desc);
257
+ }) : (function (o, m, k, k2) {
258
+ if (k2 === undefined)
259
+ k2 = k;
260
+ o[k2] = m[k];
261
+ });
262
+ function __exportStar(m, o) {
263
+ for (var p in m)
264
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
265
+ __createBinding(o, m, p);
266
+ }
267
+ function __values(o) {
268
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
269
+ if (m)
270
+ return m.call(o);
271
+ if (o && typeof o.length === "number")
272
+ return {
273
+ next: function () {
274
+ if (o && i >= o.length)
275
+ o = void 0;
276
+ return { value: o && o[i++], done: !o };
277
+ }
278
+ };
279
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
280
+ }
281
+ function __read(o, n) {
282
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
283
+ if (!m)
284
+ return o;
285
+ var i = m.call(o), r, ar = [], e;
286
+ try {
287
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
288
+ ar.push(r.value);
289
+ }
290
+ catch (error) {
291
+ e = { error: error };
292
+ }
293
+ finally {
294
+ try {
295
+ if (r && !r.done && (m = i["return"]))
296
+ m.call(i);
297
+ }
298
+ finally {
299
+ if (e)
300
+ throw e.error;
301
+ }
302
+ }
303
+ return ar;
304
+ }
305
+ /** @deprecated */
306
+ function __spread() {
307
+ for (var ar = [], i = 0; i < arguments.length; i++)
308
+ ar = ar.concat(__read(arguments[i]));
309
+ return ar;
310
+ }
311
+ /** @deprecated */
312
+ function __spreadArrays() {
313
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
314
+ s += arguments[i].length;
315
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
316
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
317
+ r[k] = a[j];
318
+ return r;
319
+ }
320
+ function __spreadArray(to, from, pack) {
321
+ if (pack || arguments.length === 2)
322
+ for (var i = 0, l = from.length, ar; i < l; i++) {
323
+ if (ar || !(i in from)) {
324
+ if (!ar)
325
+ ar = Array.prototype.slice.call(from, 0, i);
326
+ ar[i] = from[i];
327
+ }
328
+ }
329
+ return to.concat(ar || Array.prototype.slice.call(from));
330
+ }
331
+ function __await(v) {
332
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
333
+ }
334
+ function __asyncGenerator(thisArg, _arguments, generator) {
335
+ if (!Symbol.asyncIterator)
336
+ throw new TypeError("Symbol.asyncIterator is not defined.");
337
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
338
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
339
+ function verb(n) { if (g[n])
340
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
341
+ function resume(n, v) { try {
342
+ step(g[n](v));
343
+ }
344
+ catch (e) {
345
+ settle(q[0][3], e);
346
+ } }
347
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
348
+ function fulfill(value) { resume("next", value); }
349
+ function reject(value) { resume("throw", value); }
350
+ function settle(f, v) { if (f(v), q.shift(), q.length)
351
+ resume(q[0][0], q[0][1]); }
352
+ }
353
+ function __asyncDelegator(o) {
354
+ var i, p;
355
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
356
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
357
+ }
358
+ function __asyncValues(o) {
359
+ if (!Symbol.asyncIterator)
360
+ throw new TypeError("Symbol.asyncIterator is not defined.");
361
+ var m = o[Symbol.asyncIterator], i;
362
+ 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);
363
+ 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); }); }; }
364
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
365
+ }
366
+ function __makeTemplateObject(cooked, raw) {
367
+ if (Object.defineProperty) {
368
+ Object.defineProperty(cooked, "raw", { value: raw });
369
+ }
370
+ else {
371
+ cooked.raw = raw;
372
+ }
373
+ return cooked;
374
+ }
375
+ ;
376
+ var __setModuleDefault = Object.create ? (function (o, v) {
377
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
378
+ }) : function (o, v) {
379
+ o["default"] = v;
380
+ };
381
+ function __importStar(mod) {
382
+ if (mod && mod.__esModule)
383
+ return mod;
384
+ var result = {};
385
+ if (mod != null)
386
+ for (var k in mod)
387
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
388
+ __createBinding(result, mod, k);
389
+ __setModuleDefault(result, mod);
390
+ return result;
391
+ }
392
+ function __importDefault(mod) {
393
+ return (mod && mod.__esModule) ? mod : { default: mod };
394
+ }
395
+ function __classPrivateFieldGet(receiver, state, kind, f) {
396
+ if (kind === "a" && !f)
397
+ throw new TypeError("Private accessor was defined without a getter");
398
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
399
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
400
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
401
+ }
402
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
403
+ if (kind === "m")
404
+ throw new TypeError("Private method is not writable");
405
+ if (kind === "a" && !f)
406
+ throw new TypeError("Private accessor was defined without a setter");
407
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
408
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
409
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
410
+ }
411
+ function __classPrivateFieldIn(state, receiver) {
412
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
413
+ throw new TypeError("Cannot use 'in' operator on non-object");
414
+ return typeof state === "function" ? receiver === state : state.has(receiver);
415
+ }
416
+ function __addDisposableResource(env, value, async) {
417
+ if (value !== null && value !== void 0) {
418
+ if (typeof value !== "object" && typeof value !== "function")
419
+ throw new TypeError("Object expected.");
420
+ var dispose;
421
+ if (async) {
422
+ if (!Symbol.asyncDispose)
423
+ throw new TypeError("Symbol.asyncDispose is not defined.");
424
+ dispose = value[Symbol.asyncDispose];
425
+ }
426
+ if (dispose === void 0) {
427
+ if (!Symbol.dispose)
428
+ throw new TypeError("Symbol.dispose is not defined.");
429
+ dispose = value[Symbol.dispose];
430
+ }
431
+ if (typeof dispose !== "function")
432
+ throw new TypeError("Object not disposable.");
433
+ env.stack.push({ value: value, dispose: dispose, async: async });
434
+ }
435
+ else if (async) {
436
+ env.stack.push({ async: true });
437
+ }
438
+ return value;
439
+ }
440
+ var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
441
+ var e = new Error(message);
442
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
443
+ };
444
+ function __disposeResources(env) {
445
+ function fail(e) {
446
+ env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
447
+ env.hasError = true;
448
+ }
449
+ function next() {
450
+ while (env.stack.length) {
451
+ var rec = env.stack.pop();
452
+ try {
453
+ var result = rec.dispose && rec.dispose.call(rec.value);
454
+ if (rec.async)
455
+ return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
456
+ }
457
+ catch (e) {
458
+ fail(e);
459
+ }
460
+ }
461
+ if (env.hasError)
462
+ throw env.error;
463
+ }
464
+ return next();
465
+ }
466
+ var tslib_es6 = {
467
+ __extends: __extends,
468
+ __assign: __assign,
469
+ __rest: __rest,
470
+ __decorate: __decorate,
471
+ __param: __param,
472
+ __metadata: __metadata,
473
+ __awaiter: __awaiter,
474
+ __generator: __generator,
475
+ __createBinding: __createBinding,
476
+ __exportStar: __exportStar,
477
+ __values: __values,
478
+ __read: __read,
479
+ __spread: __spread,
480
+ __spreadArrays: __spreadArrays,
481
+ __spreadArray: __spreadArray,
482
+ __await: __await,
483
+ __asyncGenerator: __asyncGenerator,
484
+ __asyncDelegator: __asyncDelegator,
485
+ __asyncValues: __asyncValues,
486
+ __makeTemplateObject: __makeTemplateObject,
487
+ __importStar: __importStar,
488
+ __importDefault: __importDefault,
489
+ __classPrivateFieldGet: __classPrivateFieldGet,
490
+ __classPrivateFieldSet: __classPrivateFieldSet,
491
+ __classPrivateFieldIn: __classPrivateFieldIn,
492
+ __addDisposableResource: __addDisposableResource,
493
+ __disposeResources: __disposeResources,
494
+ };
349
495
 
350
- // eslint-disable-next-line @typescript-eslint/naming-convention
351
- function iosScrollFactory(element, doc, zone) {
352
- var load$ = i3.tuiTypedFromEvent(element, 'load', { capture: true });
353
- var touchstart$ = i3.tuiTypedFromEvent(element, 'touchstart', { passive: true });
354
- var touchmove$ = i3.tuiTypedFromEvent(doc, 'touchmove', { passive: true });
355
- var touchend$ = i3.tuiTypedFromEvent(doc, 'touchend');
356
- var scroll$ = i3.tuiTypedFromEvent(element, 'scroll').pipe(operators.map(function () { return element.scrollTop; }));
357
- var result$ = i1.merge(load$.pipe(operators.delay(0), operators.map(function () { return element.scrollTop; })), touchstart$.pipe(operators.switchMap(function (_a) {
358
- var touches = _a.touches;
359
- var screenY = touches[0].screenY;
360
- var scrollTop = element.scrollTop;
361
- return i1.concat(
362
- // Sometimes touch is triggered without scroll in iOS, filter that
363
- i1.zip(touchmove$, scroll$).pipe(operators.map(function (_a) {
364
- var _b = __read(_a, 1), touches = _b[0].touches;
365
- return scrollTop + screenY - touches[0].screenY;
366
- }), operators.takeUntil(touchend$)), scroll$);
367
- })));
368
- return i1.concat(scroll$.pipe(operators.take(1)), result$).pipe(i3.tuiZonefree(zone), operators.share());
369
- }
370
- // eslint-disable-next-line @typescript-eslint/naming-convention
371
- function fakeSmoothScroll(_a, offset) {
372
- var style = _a.style;
373
- style.transition = 'none';
374
- style.transform = "scaleX(-1) translate3d(0, " + offset + "px, 0)";
375
- setTimeout(function () {
376
- style.transition = '';
377
- style.transform = '';
378
- });
379
- }
496
+ /**
497
+ * Sheet main component
498
+ */
499
+ var TUI_SHEET = new i0.InjectionToken('[TUI_SHEET]');
500
+ /**
501
+ * Current scrollTop of a sheet
502
+ */
503
+ var TUI_SHEET_SCROLL = new i0.InjectionToken('[TUI_SHEET_SCROLL]');
504
+ /**
505
+ * The sheet is being dragged
506
+ */
507
+ var TUI_SHEET_DRAGGED = new i0.InjectionToken('[TUI_SHEET_DRAGGED]');
380
508
 
381
- /**
382
- * Sheet main component
383
- */
384
- var TUI_SHEET = new i0.InjectionToken('[TUI_SHEET]');
385
- /**
386
- * Current scrollTop of a sheet
387
- */
388
- var TUI_SHEET_SCROLL = new i0.InjectionToken('[TUI_SHEET_SCROLL]');
389
- /**
390
- * The sheet is being dragged
391
- */
392
- var TUI_SHEET_DRAGGED = new i0.InjectionToken('[TUI_SHEET_DRAGGED]');
509
+ var TUI_SHEET_CLOSE = 'tui-sheet-close';
510
+ var TUI_SHEET_ID = 'tui-sheet-id';
511
+ var TuiSheetHeadingComponent = /** @class */ (function () {
512
+ function TuiSheetHeadingComponent(idService, el, closeWord$, icons) {
513
+ this.idService = idService;
514
+ this.el = el;
515
+ this.closeWord$ = closeWord$;
516
+ this.icons = icons;
517
+ this.id = this.idService.generate();
518
+ }
519
+ TuiSheetHeadingComponent.prototype.ngAfterViewInit = function () {
520
+ this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_ID, { bubbles: true, detail: this.id }));
521
+ };
522
+ TuiSheetHeadingComponent.prototype.onClick = function () {
523
+ this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
524
+ };
525
+ return TuiSheetHeadingComponent;
526
+ }());
527
+ TuiSheetHeadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetHeadingComponent, deps: [{ token: i3.TuiIdService }, { token: i0.ElementRef }, { token: i1.TUI_CLOSE_WORD }, { token: i1.TUI_COMMON_ICONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
528
+ TuiSheetHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]", ngImport: i0__namespace, template: "<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-elevation-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}:host:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
529
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetHeadingComponent, decorators: [{
530
+ type: i0.Component,
531
+ args: [{
532
+ selector: '[tuiSheetHeading]',
533
+ templateUrl: './sheet-heading.template.html',
534
+ styleUrls: ['./sheet-heading.style.less'],
535
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
536
+ }]
537
+ }], ctorParameters: function () {
538
+ return [{ type: i3__namespace.TuiIdService, decorators: [{
539
+ type: i0.Inject,
540
+ args: [i3.TuiIdService]
541
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
542
+ type: i0.Inject,
543
+ args: [i0.ElementRef]
544
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
545
+ type: i0.Inject,
546
+ args: [i1.TUI_CLOSE_WORD]
547
+ }] }, { type: undefined, decorators: [{
548
+ type: i0.Inject,
549
+ args: [i1.TUI_COMMON_ICONS]
550
+ }] }];
551
+ } });
393
552
 
394
- var TUI_SHEET_CLOSE = 'tui-sheet-close';
395
- var TUI_SHEET_ID = 'tui-sheet-id';
396
- var TuiSheetHeadingComponent = /** @class */ (function () {
397
- function TuiSheetHeadingComponent(idService, el, closeWord$, icons) {
398
- this.idService = idService;
399
- this.el = el;
400
- this.closeWord$ = closeWord$;
401
- this.icons = icons;
402
- this.id = this.idService.generate();
403
- }
404
- TuiSheetHeadingComponent.prototype.ngAfterViewInit = function () {
405
- this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_ID, { bubbles: true, detail: this.id }));
406
- };
407
- TuiSheetHeadingComponent.prototype.onClick = function () {
408
- this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
409
- };
410
- return TuiSheetHeadingComponent;
411
- }());
412
- TuiSheetHeadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetHeadingComponent, deps: [{ token: i3.TuiIdService }, { token: i0.ElementRef }, { token: i1$1.TUI_CLOSE_WORD }, { token: i1$1.TUI_COMMON_ICONS }], target: i0__namespace.ɵɵFactoryTarget.Component });
413
- TuiSheetHeadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]", ngImport: i0__namespace, template: "<button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [icon]=\"icons.close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClick()\"\n></button>\n<span [id]=\"id\">\n <ng-content></ng-content>\n</span>\n", styles: [":host{position:-webkit-sticky;position:sticky;top:0;z-index:1;min-height:2rem;box-sizing:border-box;margin:-1.25rem -1rem 0;padding:1.5rem 1rem 1rem;background:var(--tui-elevation-01);border-radius:.75rem .75rem 0 0;font:var(--tui-font-heading-6);box-shadow:inset 0 1px #ffffff40}:host:after{content:\"\";position:absolute;top:100%;left:0;right:0;height:1px;background:var(--tui-base-03);opacity:0}:host :host-context(._stuck):after{opacity:1}.t-close{display:none;float:right;margin-right:-.25rem}:host-context(.t-wrapper_closeable) .t-close{display:block}\n"], components: [{ type: i1__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
414
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetHeadingComponent, decorators: [{
415
- type: i0.Component,
416
- args: [{
417
- selector: '[tuiSheetHeading]',
418
- templateUrl: './sheet-heading.template.html',
419
- styleUrls: ['./sheet-heading.style.less'],
420
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
421
- }]
422
- }], ctorParameters: function () {
423
- return [{ type: i3__namespace.TuiIdService, decorators: [{
424
- type: i0.Inject,
425
- args: [i3.TuiIdService]
426
- }] }, { type: i0__namespace.ElementRef, decorators: [{
427
- type: i0.Inject,
428
- args: [i0.ElementRef]
429
- }] }, { type: i1__namespace$1.Observable, decorators: [{
430
- type: i0.Inject,
431
- args: [i1$1.TUI_CLOSE_WORD]
432
- }] }, { type: undefined, decorators: [{
433
- type: i0.Inject,
434
- args: [i1$1.TUI_COMMON_ICONS]
435
- }] }];
436
- } });
553
+ // eslint-disable-next-line @typescript-eslint/naming-convention
554
+ function iosScrollFactory(element, doc, zone) {
555
+ var load$ = i3.tuiTypedFromEvent(element, 'load', { capture: true });
556
+ var touchstart$ = i3.tuiTypedFromEvent(element, 'touchstart', { passive: true });
557
+ var touchmove$ = i3.tuiTypedFromEvent(doc, 'touchmove', { passive: true });
558
+ var touchend$ = i3.tuiTypedFromEvent(doc, 'touchend');
559
+ var scroll$ = i3.tuiTypedFromEvent(element, 'scroll').pipe(operators.map(function () { return element.scrollTop; }));
560
+ var result$ = i1$1.merge(load$.pipe(operators.delay(0), operators.map(function () { return element.scrollTop; })), touchstart$.pipe(operators.switchMap(function (_a) {
561
+ var touches = _a.touches;
562
+ var screenY = touches[0].screenY;
563
+ var scrollTop = element.scrollTop;
564
+ return i1$1.concat(
565
+ // Sometimes touch is triggered without scroll in iOS, filter that
566
+ i1$1.zip(touchmove$, scroll$).pipe(operators.map(function (_a) {
567
+ var _b = __read(_a, 1), touches = _b[0].touches;
568
+ return scrollTop + screenY - touches[0].screenY;
569
+ }), operators.takeUntil(touchend$)), scroll$);
570
+ })));
571
+ return i1$1.concat(scroll$.pipe(operators.take(1)), result$).pipe(i3.tuiZonefree(zone), operators.share());
572
+ }
437
573
 
438
- var TUI_SHEET_PROVIDERS = [
439
- {
440
- provide: TUI_SHEET_DRAGGED,
441
- deps: [i0.ElementRef],
442
- useFactory: function (_a) {
443
- var nativeElement = _a.nativeElement;
444
- return i1.merge(i3.tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(operators.map(i3.ALWAYS_TRUE_HANDLER)), i3.tuiTypedFromEvent(nativeElement, 'touchend').pipe(operators.map(i3.ALWAYS_FALSE_HANDLER)));
445
- },
446
- },
447
- {
448
- provide: TUI_SHEET_SCROLL,
449
- deps: [i0.ElementRef, i0.NgZone, i2.DOCUMENT, i3.TUI_IS_IOS],
450
- useFactory: function (_a, zone, doc, isIos) {
451
- var nativeElement = _a.nativeElement;
452
- return isIos
453
- ? iosScrollFactory(nativeElement, doc, zone)
454
- : i1.merge(i3.tuiTypedFromEvent(nativeElement, 'scroll'), i3.tuiTypedFromEvent(nativeElement, 'load', { capture: true })).pipe(operators.map(function () { return nativeElement.scrollTop; }), i3.tuiZonefree(zone), operators.share());
455
- },
456
- },
457
- {
458
- provide: i3.TUI_SCROLL_REF,
459
- useExisting: i0.ElementRef,
460
- },
461
- {
462
- provide: TUI_SHEET,
463
- useExisting: i0.forwardRef(function () { return TuiSheetComponent; }),
464
- },
465
- ];
574
+ var TUI_SHEET_PROVIDERS = [
575
+ {
576
+ provide: TUI_SHEET_DRAGGED,
577
+ deps: [i0.ElementRef],
578
+ useFactory: function (_a) {
579
+ var nativeElement = _a.nativeElement;
580
+ return i1$1.merge(i3.tuiTypedFromEvent(nativeElement, 'touchstart', { passive: true }).pipe(operators.map(i3.ALWAYS_TRUE_HANDLER)), i3.tuiTypedFromEvent(nativeElement, 'touchend').pipe(operators.map(i3.ALWAYS_FALSE_HANDLER)));
581
+ },
582
+ },
583
+ {
584
+ provide: TUI_SHEET_SCROLL,
585
+ deps: [i0.ElementRef, i0.NgZone, i2.DOCUMENT, i3.TUI_IS_IOS],
586
+ useFactory: function (_a, zone, doc, isIos) {
587
+ var nativeElement = _a.nativeElement;
588
+ return isIos
589
+ ? iosScrollFactory(nativeElement, doc, zone)
590
+ : i1$1.merge(i3.tuiTypedFromEvent(nativeElement, 'scroll'), i3.tuiTypedFromEvent(nativeElement, 'load', { capture: true })).pipe(operators.map(function () { return nativeElement.scrollTop; }), i3.tuiZonefree(zone), operators.share());
591
+ },
592
+ },
593
+ {
594
+ provide: i3.TUI_SCROLL_REF,
595
+ useExisting: i0.ElementRef,
596
+ },
597
+ {
598
+ provide: TUI_SHEET,
599
+ useExisting: i0.forwardRef(function () { return TuiSheetComponent; }),
600
+ },
601
+ ];
466
602
 
467
- var TuiSheetBarComponent = /** @class */ (function () {
468
- function TuiSheetBarComponent(sheet, scroll$, zone) {
469
- var _this = this;
470
- this.sheet = sheet;
471
- this.scroll$ = scroll$;
472
- this.zone = zone;
473
- this.rotate$ = this.scroll$.pipe(i1$1.tuiZonefulMap(function (y) { return i3.tuiClamp(10 - (y - _this.stop) / 5, 0, 10); }, this.zone));
474
- }
475
- Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
476
- get: function () {
477
- return this.sheet.stops[0] || 0;
478
- },
479
- enumerable: false,
480
- configurable: true
481
- });
482
- return TuiSheetBarComponent;
483
- }());
484
- TuiSheetBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetBarComponent, deps: [{ token: TUI_SHEET }, { token: TUI_SHEET_SCROLL }, { token: i0.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
485
- TuiSheetBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetBarComponent, selector: "tui-sheet-bar", ngImport: i0__namespace, template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(-' + deg + 'deg)'}\"\n ></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:\"\";height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}\n"], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
486
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetBarComponent, decorators: [{
487
- type: i0.Component,
488
- args: [{
489
- selector: 'tui-sheet-bar',
490
- templateUrl: './sheet-bar.template.html',
491
- styleUrls: ['./sheet-bar.style.less'],
492
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
493
- }]
494
- }], ctorParameters: function () {
495
- return [{ type: undefined, decorators: [{
496
- type: i0.Inject,
497
- args: [TUI_SHEET]
498
- }] }, { type: i1__namespace$1.Observable, decorators: [{
499
- type: i0.Inject,
500
- args: [TUI_SHEET_SCROLL]
501
- }] }, { type: i0__namespace.NgZone, decorators: [{
502
- type: i0.Inject,
503
- args: [i0.NgZone]
504
- }] }];
505
- } });
603
+ var TuiSheetBarComponent = /** @class */ (function () {
604
+ function TuiSheetBarComponent(sheet, scroll$, zone) {
605
+ var _this = this;
606
+ this.sheet = sheet;
607
+ this.scroll$ = scroll$;
608
+ this.zone = zone;
609
+ this.rotate$ = this.scroll$.pipe(i1.tuiZonefulMap(function (y) { return i3.tuiClamp(10 - (y - _this.stop) / 5, 0, 10); }, this.zone));
610
+ }
611
+ Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
612
+ get: function () {
613
+ return this.sheet.stops[0] || 0;
614
+ },
615
+ enumerable: false,
616
+ configurable: true
617
+ });
618
+ return TuiSheetBarComponent;
619
+ }());
620
+ TuiSheetBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetBarComponent, deps: [{ token: TUI_SHEET }, { token: TUI_SHEET_SCROLL }, { token: i0.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
621
+ TuiSheetBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetBarComponent, selector: "tui-sheet-bar", ngImport: i0__namespace, template: "<ng-container *tuiLet=\"rotate$ | async as deg\">\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(-' + deg + 'deg)'}\"\n ></div>\n <ng-content *ngIf=\"deg\"></ng-content>\n <div\n class=\"t-bar\"\n [ngStyle]=\"{transform: 'rotate(' + deg + 'deg)'}\"\n ></div>\n</ng-container>\n", styles: [":host{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:2;display:flex;height:1.25rem;align-items:center;justify-content:center;opacity:.3}.t-bar{content:\"\";height:.25rem;width:1rem;background:var(--tui-base-09);pointer-events:none}:host-context(._ios:not(._dragged)) .t-bar{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-bar:first-child{border-radius:1rem 0 0 1rem;transform-origin:top right}.t-bar:last-child{border-radius:0 1rem 1rem 0;transform-origin:top left}\n"], directives: [{ type: i3__namespace.TuiLetDirective, selector: "[tuiLet]", inputs: ["tuiLet"] }, { type: i2__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
622
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetBarComponent, decorators: [{
623
+ type: i0.Component,
624
+ args: [{
625
+ selector: 'tui-sheet-bar',
626
+ templateUrl: './sheet-bar.template.html',
627
+ styleUrls: ['./sheet-bar.style.less'],
628
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
629
+ }]
630
+ }], ctorParameters: function () {
631
+ return [{ type: undefined, decorators: [{
632
+ type: i0.Inject,
633
+ args: [TUI_SHEET]
634
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
635
+ type: i0.Inject,
636
+ args: [TUI_SHEET_SCROLL]
637
+ }] }, { type: i0__namespace.NgZone, decorators: [{
638
+ type: i0.Inject,
639
+ args: [i0.NgZone]
640
+ }] }];
641
+ } });
506
642
 
507
- // So that borders get rounded when image is visible for at least 10px
508
- var OFFSET$1 = 10;
509
- var TuiSheetTopDirective = /** @class */ (function () {
510
- function TuiSheetTopDirective(scroll$, component, win) {
511
- var _this = this;
512
- this.scroll$ = scroll$;
513
- this.component = component;
514
- this.win = win;
515
- this.stop = 0;
516
- this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
517
- this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET$1; }));
518
- this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
519
- }
520
- TuiSheetTopDirective.prototype.getY = function (scrollTop) {
521
- var value = scrollTop - this.stop;
522
- var total = this.win.innerHeight - this.component.item.offset - this.stop;
523
- return this.stop && i3.tuiClamp(100 - (value / total) * 100, 0, 100);
524
- };
525
- return TuiSheetTopDirective;
526
- }());
527
- TuiSheetTopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetTopDirective, deps: [{ token: TUI_SHEET_SCROLL }, { token: TUI_SHEET }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
528
- TuiSheetTopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: { stop: ["tuiSheetTop", "stop"] }, host: { listeners: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" }, properties: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" } }, ngImport: i0__namespace });
529
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetTopDirective, decorators: [{
530
- type: i0.Directive,
531
- args: [{
532
- selector: '[tuiSheetTop]',
533
- host: {
534
- '[$.style.transform]': 'transform$',
535
- '($.style.transform)': 'transform$',
536
- '[$.class._rounded]': 'rounded$',
537
- '($.class._rounded)': 'rounded$',
538
- '[$.class._clickthrough]': 'clickthrough$',
539
- '($.class._clickthrough)': 'clickthrough$',
540
- },
541
- }]
542
- }], ctorParameters: function () {
543
- return [{ type: i1__namespace$1.Observable, decorators: [{
544
- type: i0.Inject,
545
- args: [TUI_SHEET_SCROLL]
546
- }] }, { type: undefined, decorators: [{
547
- type: i0.Inject,
548
- args: [TUI_SHEET]
549
- }] }, { type: Window, decorators: [{
550
- type: i0.Inject,
551
- args: [common.WINDOW]
552
- }] }];
553
- }, propDecorators: { stop: [{
554
- type: i0.Input,
555
- args: ['tuiSheetTop']
556
- }] } });
643
+ // So that borders get rounded when image is visible for at least 10px
644
+ var OFFSET$1 = 10;
645
+ var TuiSheetTopDirective = /** @class */ (function () {
646
+ function TuiSheetTopDirective(scroll$, component, win) {
647
+ var _this = this;
648
+ this.scroll$ = scroll$;
649
+ this.component = component;
650
+ this.win = win;
651
+ this.stop = 0;
652
+ this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
653
+ this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET$1; }));
654
+ this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
655
+ }
656
+ TuiSheetTopDirective.prototype.getY = function (scrollTop) {
657
+ var value = scrollTop - this.stop;
658
+ var total = this.win.innerHeight - this.component.item.offset - this.stop;
659
+ return this.stop && i3.tuiClamp(100 - (value / total) * 100, 0, 100);
660
+ };
661
+ return TuiSheetTopDirective;
662
+ }());
663
+ TuiSheetTopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetTopDirective, deps: [{ token: TUI_SHEET_SCROLL }, { token: TUI_SHEET }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
664
+ TuiSheetTopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: { stop: ["tuiSheetTop", "stop"] }, host: { listeners: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" }, properties: { "$.style.transform": "transform$", "$.class._rounded": "rounded$", "$.class._clickthrough": "clickthrough$" } }, ngImport: i0__namespace });
665
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetTopDirective, decorators: [{
666
+ type: i0.Directive,
667
+ args: [{
668
+ selector: '[tuiSheetTop]',
669
+ host: {
670
+ '[$.style.transform]': 'transform$',
671
+ '($.style.transform)': 'transform$',
672
+ '[$.class._rounded]': 'rounded$',
673
+ '($.class._rounded)': 'rounded$',
674
+ '[$.class._clickthrough]': 'clickthrough$',
675
+ '($.class._clickthrough)': 'clickthrough$',
676
+ },
677
+ }]
678
+ }], ctorParameters: function () {
679
+ return [{ type: i1__namespace$1.Observable, decorators: [{
680
+ type: i0.Inject,
681
+ args: [TUI_SHEET_SCROLL]
682
+ }] }, { type: undefined, decorators: [{
683
+ type: i0.Inject,
684
+ args: [TUI_SHEET]
685
+ }] }, { type: Window, decorators: [{
686
+ type: i0.Inject,
687
+ args: [common.WINDOW]
688
+ }] }];
689
+ }, propDecorators: { stop: [{
690
+ type: i0.Input,
691
+ args: ['tuiSheetTop']
692
+ }] } });
557
693
 
558
- var TuiSheetStopDirective = /** @class */ (function () {
559
- function TuiSheetStopDirective(el, destroy$, dragged$, scroll$, _a) {
560
- var nativeElement = _a.nativeElement;
561
- scroll$
562
- .pipe(operators.map(function (y) { return Math.floor(y) > el.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
563
- var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
564
- return !above && !dragged;
565
- }), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
566
- .subscribe(function () {
567
- nativeElement.style.overflow = 'hidden';
568
- nativeElement.classList.remove('_stuck'); // iOS
569
- nativeElement.scrollTop = el.nativeElement.offsetTop;
570
- setTimeout(function () {
571
- nativeElement.style.overflow = '';
572
- }, 100);
573
- });
574
- }
575
- return TuiSheetStopDirective;
576
- }());
577
- TuiSheetStopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetStopDirective, deps: [{ token: i0.ElementRef }, { token: i3.TuiDestroyService, self: true }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: i3.TUI_SCROLL_REF }], target: i0__namespace.ɵɵFactoryTarget.Directive });
578
- TuiSheetStopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [i3.TuiDestroyService], ngImport: i0__namespace });
579
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetStopDirective, decorators: [{
580
- type: i0.Directive,
581
- args: [{
582
- selector: '[tuiSheetStop]',
583
- providers: [i3.TuiDestroyService],
584
- }]
585
- }], ctorParameters: function () {
586
- return [{ type: i0__namespace.ElementRef, decorators: [{
587
- type: i0.Inject,
588
- args: [i0.ElementRef]
589
- }] }, { type: i1__namespace$1.Observable, decorators: [{
590
- type: i0.Self
591
- }, {
592
- type: i0.Inject,
593
- args: [i3.TuiDestroyService]
594
- }] }, { type: i1__namespace$1.Observable, decorators: [{
595
- type: i0.Inject,
596
- args: [TUI_SHEET_DRAGGED]
597
- }] }, { type: i1__namespace$1.Observable, decorators: [{
598
- type: i0.Inject,
599
- args: [TUI_SHEET_SCROLL]
600
- }] }, { type: i0__namespace.ElementRef, decorators: [{
601
- type: i0.Inject,
602
- args: [i3.TUI_SCROLL_REF]
603
- }] }];
604
- } });
694
+ var TuiSheetStopDirective = /** @class */ (function () {
695
+ function TuiSheetStopDirective(el, destroy$, dragged$, scroll$, _a) {
696
+ var nativeElement = _a.nativeElement;
697
+ scroll$
698
+ .pipe(operators.map(function (y) { return Math.floor(y) > el.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
699
+ var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
700
+ return !above && !dragged;
701
+ }), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
702
+ .subscribe(function () {
703
+ nativeElement.style.overflow = 'hidden';
704
+ nativeElement.classList.remove('_stuck'); // iOS
705
+ nativeElement.scrollTop = el.nativeElement.offsetTop;
706
+ i1$1.timer(100)
707
+ .pipe(operators.takeUntil(destroy$))
708
+ // eslint-disable-next-line rxjs/no-nested-subscribe
709
+ .subscribe(function () {
710
+ nativeElement.style.overflow = '';
711
+ });
712
+ });
713
+ }
714
+ return TuiSheetStopDirective;
715
+ }());
716
+ TuiSheetStopDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetStopDirective, deps: [{ token: i0.ElementRef }, { token: i3.TuiDestroyService, self: true }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: i3.TUI_SCROLL_REF }], target: i0__namespace.ɵɵFactoryTarget.Directive });
717
+ TuiSheetStopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [i3.TuiDestroyService], ngImport: i0__namespace });
718
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetStopDirective, decorators: [{
719
+ type: i0.Directive,
720
+ args: [{
721
+ selector: '[tuiSheetStop]',
722
+ providers: [i3.TuiDestroyService],
723
+ }]
724
+ }], ctorParameters: function () {
725
+ return [{ type: i0__namespace.ElementRef, decorators: [{
726
+ type: i0.Inject,
727
+ args: [i0.ElementRef]
728
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
729
+ type: i0.Self
730
+ }, {
731
+ type: i0.Inject,
732
+ args: [i3.TuiDestroyService]
733
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
734
+ type: i0.Inject,
735
+ args: [TUI_SHEET_DRAGGED]
736
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
737
+ type: i0.Inject,
738
+ args: [TUI_SHEET_SCROLL]
739
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
740
+ type: i0.Inject,
741
+ args: [i3.TUI_SCROLL_REF]
742
+ }] }];
743
+ } });
605
744
 
606
- var TuiSheetComponent = /** @class */ (function () {
607
- function TuiSheetComponent(scroll$, el, zone, isIos, moreWord$) {
608
- var _this = this;
609
- this.scroll$ = scroll$;
610
- this.el = el;
611
- this.zone = zone;
612
- this.isIos = isIos;
613
- this.moreWord$ = moreWord$;
614
- this.stopsRefs = i3.EMPTY_QUERY;
615
- this.id = '';
616
- this.stuck$ = this.scroll$.pipe(operators.map(function (y) { return Math.floor(y) > _this.contentTop; }));
617
- }
618
- Object.defineProperty(TuiSheetComponent.prototype, "stops", {
619
- get: function () {
620
- return this.getStops(this.stopsRefs);
621
- },
622
- enumerable: false,
623
- configurable: true
624
- });
625
- Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
626
- get: function () {
627
- return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
628
- },
629
- enumerable: false,
630
- configurable: true
631
- });
632
- Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
633
- get: function () {
634
- return this.contentTop - this.sheetTop;
635
- },
636
- enumerable: false,
637
- configurable: true
638
- });
639
- Object.defineProperty(TuiSheetComponent.prototype, "context", {
640
- get: function () {
641
- return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(i3.tuiZonefull(this.zone)) });
642
- },
643
- enumerable: false,
644
- configurable: true
645
- });
646
- TuiSheetComponent.prototype.onId = function (id) {
647
- this.id = id;
648
- };
649
- TuiSheetComponent.prototype.ngAfterViewInit = function () {
650
- this.el.nativeElement.scrollTop = __spreadArray(__spreadArray([], __read(this.stops)), [this.sheetTop, this.contentTop])[this.item.initial];
651
- };
652
- TuiSheetComponent.prototype.scrollTo = function (top) {
653
- if (top === void 0) { top = this.sheetTop; }
654
- var nativeElement = this.el.nativeElement;
655
- if (this.isIos) {
656
- fakeSmoothScroll(nativeElement, top - nativeElement.scrollTop - 16);
657
- }
658
- nativeElement.scrollTo({ top: top, behavior: 'smooth' });
659
- };
660
- TuiSheetComponent.prototype.close = function () {
661
- if (this.context.closeable) {
662
- this.context.$implicit.complete();
663
- }
664
- };
665
- Object.defineProperty(TuiSheetComponent.prototype, "contentTop", {
666
- get: function () {
667
- var _a, _b;
668
- return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
669
- },
670
- enumerable: false,
671
- configurable: true
672
- });
673
- Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
674
- get: function () {
675
- var _a, _b;
676
- return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
677
- },
678
- enumerable: false,
679
- configurable: true
680
- });
681
- TuiSheetComponent.prototype.getStops = function (stops) {
682
- return stops.map(function (_c) {
683
- var nativeElement = _c.nativeElement;
684
- return nativeElement.offsetTop + nativeElement.clientHeight;
685
- });
686
- };
687
- return TuiSheetComponent;
688
- }());
689
- TuiSheetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetComponent, deps: [{ token: TUI_SHEET_SCROLL }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.TUI_IS_IOS }, { token: kit.TUI_MORE_WORD }], target: i0__namespace.ɵɵFactoryTarget.Component });
690
- TuiSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetComponent, selector: "tui-sheet", inputs: { item: "item" }, host: { attributes: { "role": "dialog" }, listeners: { "$.class._stuck": "stuck$", "tui-sheet-id": "onId($event.detail)" }, properties: { "attr.aria-labelledby": "id", "class._ios": "isIos", "$.class._stuck": "stuck$" } }, providers: TUI_SHEET_PROVIDERS, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "stopsRefs", predicate: ["stops"], descendants: true }], ngImport: i0__namespace, template: "<div\n class=\"t-bumpers\"\n (click)=\"close()\"\n>\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-wrapper\"\n [class.t-wrapper_shadow]=\"!item.image\"\n>\n <header\n *ngIf=\"item.image\"\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n >\n <img\n *polymorpheusOutlet=\"item.image as src; context: context\"\n alt=\"\"\n class=\"t-image\"\n [src]=\"src\"\n />\n </header>\n <section\n #content\n tuiSheetStop\n class=\"t-sheet\"\n >\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n type=\"button\"\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div class=\"t-content\">\n <h2\n *polymorpheusOutlet=\"item.content as text; context: context\"\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ text }}\n </h2>\n </div>\n </section>\n</div>\n", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-elevation-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host._stuck{scroll-snap-type:none}@supports (-moz-appearance: none){:host{scroll-snap-type:none}}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:var(--tui-shadow)}.t-top{position:-webkit-sticky;position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px #ffffff40}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading{padding-bottom:.5rem;background:var(--tui-elevation-01)}\n"], components: [{ type: TuiSheetBarComponent, selector: "tui-sheet-bar" }, { type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]" }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: ["tuiSheetTop"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: TuiSheetStopDirective, selector: "[tuiSheetStop]" }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1$1.tuiSlideInTop], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
691
- __decorate([
692
- i3.tuiPure
693
- ], TuiSheetComponent.prototype, "context", null);
694
- __decorate([
695
- i3.tuiPure
696
- ], TuiSheetComponent.prototype, "getStops", null);
697
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetComponent, decorators: [{
698
- type: i0.Component,
699
- args: [{
700
- selector: 'tui-sheet',
701
- templateUrl: './sheet.template.html',
702
- styleUrls: ['./sheet.style.less'],
703
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
704
- providers: TUI_SHEET_PROVIDERS,
705
- host: {
706
- role: 'dialog',
707
- '[attr.aria-labelledby]': 'id',
708
- '[class._ios]': 'isIos',
709
- // '[class._stuck]': 'true', // Initially disable snapping for Firefox
710
- '[$.class._stuck]': 'stuck$',
711
- '($.class._stuck)': 'stuck$',
712
- },
713
- animations: [i1$1.tuiSlideInTop],
714
- }]
715
- }], ctorParameters: function () {
716
- return [{ type: i1__namespace$1.Observable, decorators: [{
717
- type: i0.Inject,
718
- args: [TUI_SHEET_SCROLL]
719
- }] }, { type: i0__namespace.ElementRef, decorators: [{
720
- type: i0.Inject,
721
- args: [i0.ElementRef]
722
- }] }, { type: i0__namespace.NgZone, decorators: [{
723
- type: i0.Inject,
724
- args: [i0.NgZone]
725
- }] }, { type: undefined, decorators: [{
726
- type: i0.Inject,
727
- args: [i3.TUI_IS_IOS]
728
- }] }, { type: i1__namespace$1.Observable, decorators: [{
729
- type: i0.Inject,
730
- args: [kit.TUI_MORE_WORD]
731
- }] }];
732
- }, propDecorators: { sheet: [{
733
- type: i0.ViewChild,
734
- args: ['sheet']
735
- }], content: [{
736
- type: i0.ViewChild,
737
- args: ['content']
738
- }], stopsRefs: [{
739
- type: i0.ViewChildren,
740
- args: ['stops']
741
- }], item: [{
742
- type: i0.Input
743
- }], context: [], onId: [{
744
- type: i0.HostListener,
745
- args: [TUI_SHEET_ID, ['$event.detail']]
746
- }], getStops: [] } });
745
+ var TuiSheetComponent = /** @class */ (function () {
746
+ function TuiSheetComponent(scroll$, el, zone, isIos, moreWord$, destroy$) {
747
+ var _this = this;
748
+ this.scroll$ = scroll$;
749
+ this.el = el;
750
+ this.zone = zone;
751
+ this.isIos = isIos;
752
+ this.moreWord$ = moreWord$;
753
+ this.destroy$ = destroy$;
754
+ this.stopsRefs = i3.EMPTY_QUERY;
755
+ this.id = '';
756
+ this.stuck$ = this.scroll$.pipe(operators.map(function (y) { return Math.floor(y) > _this.contentTop; }));
757
+ }
758
+ Object.defineProperty(TuiSheetComponent.prototype, "stops", {
759
+ get: function () {
760
+ return this.getStops(this.stopsRefs);
761
+ },
762
+ enumerable: false,
763
+ configurable: true
764
+ });
765
+ Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
766
+ get: function () {
767
+ return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
768
+ },
769
+ enumerable: false,
770
+ configurable: true
771
+ });
772
+ Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
773
+ get: function () {
774
+ return this.contentTop - this.sheetTop;
775
+ },
776
+ enumerable: false,
777
+ configurable: true
778
+ });
779
+ Object.defineProperty(TuiSheetComponent.prototype, "context", {
780
+ get: function () {
781
+ return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(i3.tuiZonefull(this.zone)) });
782
+ },
783
+ enumerable: false,
784
+ configurable: true
785
+ });
786
+ TuiSheetComponent.prototype.onId = function (id) {
787
+ this.id = id;
788
+ };
789
+ TuiSheetComponent.prototype.ngAfterViewInit = function () {
790
+ this.el.nativeElement.scrollTop = __spreadArray(__spreadArray([], __read(this.stops)), [this.sheetTop, this.contentTop])[this.item.initial];
791
+ };
792
+ TuiSheetComponent.prototype.scrollTo = function (top) {
793
+ if (top === void 0) { top = this.sheetTop; }
794
+ var nativeElement = this.el.nativeElement;
795
+ if (this.isIos) {
796
+ var offset = top - nativeElement.scrollTop - 16;
797
+ nativeElement.style.transition = 'none';
798
+ nativeElement.style.transform = "scaleX(-1) translate3d(0, " + offset + "px, 0)";
799
+ i1$1.timer(0)
800
+ .pipe(operators.takeUntil(this.destroy$))
801
+ .subscribe(function () {
802
+ nativeElement.style.transition = '';
803
+ nativeElement.style.transform = '';
804
+ });
805
+ }
806
+ nativeElement.scrollTo({ top: top, behavior: 'smooth' });
807
+ };
808
+ TuiSheetComponent.prototype.close = function () {
809
+ if (this.context.closeable) {
810
+ this.context.$implicit.complete();
811
+ }
812
+ };
813
+ Object.defineProperty(TuiSheetComponent.prototype, "contentTop", {
814
+ get: function () {
815
+ var _a, _b;
816
+ return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
817
+ },
818
+ enumerable: false,
819
+ configurable: true
820
+ });
821
+ Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
822
+ get: function () {
823
+ var _a, _b;
824
+ return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
825
+ },
826
+ enumerable: false,
827
+ configurable: true
828
+ });
829
+ TuiSheetComponent.prototype.getStops = function (stops) {
830
+ return stops.map(function (_c) {
831
+ var nativeElement = _c.nativeElement;
832
+ return nativeElement.offsetTop + nativeElement.clientHeight;
833
+ });
834
+ };
835
+ return TuiSheetComponent;
836
+ }());
837
+ TuiSheetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetComponent, deps: [{ token: TUI_SHEET_SCROLL }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i3.TUI_IS_IOS }, { token: kit.TUI_MORE_WORD }, { token: i3.TuiDestroyService, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
838
+ TuiSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetComponent, selector: "tui-sheet", inputs: { item: "item" }, host: { attributes: { "role": "dialog" }, listeners: { "$.class._stuck": "stuck$", "tui-sheet-id": "onId($event.detail)" }, properties: { "attr.aria-labelledby": "id", "class._ios": "isIos", "$.class._stuck": "stuck$" } }, providers: TUI_SHEET_PROVIDERS, viewQueries: [{ propertyName: "sheet", first: true, predicate: ["sheet"], descendants: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true }, { propertyName: "stopsRefs", predicate: ["stops"], descendants: true }], ngImport: i0__namespace, template: "<div\n class=\"t-bumpers\"\n (click)=\"close()\"\n>\n <div\n *ngFor=\"let stop of item.stops\"\n #stops\n class=\"t-bumper\"\n [style.marginTop]=\"stop\"\n ></div>\n</div>\n<div\n #sheet\n class=\"t-wrapper\"\n [class.t-wrapper_shadow]=\"!item.image\"\n>\n <header\n *ngIf=\"item.image\"\n class=\"t-top\"\n [tuiSheetTop]=\"imageStop\"\n >\n <img\n *polymorpheusOutlet=\"item.image as src; context: context\"\n alt=\"\"\n class=\"t-image\"\n [src]=\"src\"\n />\n </header>\n <section\n #content\n tuiSheetStop\n class=\"t-sheet\"\n >\n <div class=\"t-bar\"></div>\n <tui-sheet-bar>\n <button\n type=\"button\"\n class=\"t-button\"\n [title]=\"moreWord$ | async\"\n (click)=\"scrollTo(stops[1])\"\n ></button>\n </tui-sheet-bar>\n <div class=\"t-content\">\n <h2\n *polymorpheusOutlet=\"item.content as text; context: context\"\n tuiSheetHeading\n class=\"t-heading\"\n >\n {{ text }}\n </h2>\n </div>\n </section>\n</div>\n", styles: [":host{scrollbar-width:none;-ms-overflow-style:none;position:absolute;top:0;left:0;bottom:0;right:0;transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;top:auto;border-radius:.75rem .75rem 0 0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;box-shadow:0 50vh var(--tui-elevation-01);padding-right:1rem;margin-left:-1rem;transform:scaleX(-1);-webkit-clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0);clip-path:inset(0 1rem 0 0 round .75rem .75rem 0 0)}:host::-webkit-scrollbar,:host::-webkit-scrollbar-thumb{display:none}:host._stuck{scroll-snap-type:none}@supports (-moz-appearance: none){:host{scroll-snap-type:none}}.t-bumpers{display:flex;height:100%}:host-context(.t-wrapper_closeable) .t-bumpers{scroll-snap-stop:always;scroll-snap-align:start;scroll-margin:-1px}.t-bumper{scroll-snap-stop:always;scroll-snap-align:start;height:1rem;width:1rem}.t-wrapper{border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start}.t-wrapper_shadow{box-shadow:var(--tui-shadow)}.t-top{position:-webkit-sticky;position:sticky;top:0;border-radius:.8rem .8rem 0 0;box-shadow:var(--tui-shadow);transform:scaleX(-1);overflow:hidden}.t-top._clickthrough{pointer-events:none}:host-context(._overlay:not(._visible)) .t-top{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;transform:scaleX(-1)!important}.t-image{display:block;width:100%}.t-sheet{position:relative;border-radius:inherit;scroll-snap-stop:always;scroll-snap-align:start;transform:scaleX(-1)}.t-top:not(._rounded)~.t-sheet .t-bar{border-radius:0}.t-bar{transition-property:border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:-webkit-sticky;position:sticky;top:0;z-index:1;height:1.5rem;margin-bottom:-1.5rem;border-radius:inherit;background:var(--tui-elevation-01);box-shadow:inset 0 1px #ffffff40}.t-button{position:absolute;top:0;height:1.5rem;width:3rem;padding:0;border:0;opacity:0}.t-content{padding:1rem;margin-top:-1rem;border-radius:inherit;background:var(--tui-elevation-01)}.t-heading{padding-bottom:.5rem;background:var(--tui-elevation-01)}\n"], components: [{ type: TuiSheetBarComponent, selector: "tui-sheet-bar" }, { type: TuiSheetHeadingComponent, selector: "[tuiSheetHeading]" }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: TuiSheetTopDirective, selector: "[tuiSheetTop]", inputs: ["tuiSheetTop"] }, { type: i5__namespace.PolymorpheusOutletDirective, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { type: TuiSheetStopDirective, selector: "[tuiSheetStop]" }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1.tuiSlideInTop], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
839
+ __decorate([
840
+ i3.tuiPure
841
+ ], TuiSheetComponent.prototype, "context", null);
842
+ __decorate([
843
+ i3.tuiPure
844
+ ], TuiSheetComponent.prototype, "getStops", null);
845
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetComponent, decorators: [{
846
+ type: i0.Component,
847
+ args: [{
848
+ selector: 'tui-sheet',
849
+ templateUrl: './sheet.template.html',
850
+ styleUrls: ['./sheet.style.less'],
851
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
852
+ providers: TUI_SHEET_PROVIDERS,
853
+ host: {
854
+ role: 'dialog',
855
+ '[attr.aria-labelledby]': 'id',
856
+ '[class._ios]': 'isIos',
857
+ // '[class._stuck]': 'true', // Initially disable snapping for Firefox
858
+ '[$.class._stuck]': 'stuck$',
859
+ '($.class._stuck)': 'stuck$',
860
+ },
861
+ animations: [i1.tuiSlideInTop],
862
+ }]
863
+ }], ctorParameters: function () {
864
+ return [{ type: i1__namespace$1.Observable, decorators: [{
865
+ type: i0.Inject,
866
+ args: [TUI_SHEET_SCROLL]
867
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
868
+ type: i0.Inject,
869
+ args: [i0.ElementRef]
870
+ }] }, { type: i0__namespace.NgZone, decorators: [{
871
+ type: i0.Inject,
872
+ args: [i0.NgZone]
873
+ }] }, { type: undefined, decorators: [{
874
+ type: i0.Inject,
875
+ args: [i3.TUI_IS_IOS]
876
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
877
+ type: i0.Inject,
878
+ args: [kit.TUI_MORE_WORD]
879
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
880
+ type: i0.Self
881
+ }, {
882
+ type: i0.Inject,
883
+ args: [i3.TuiDestroyService]
884
+ }] }];
885
+ }, propDecorators: { sheet: [{
886
+ type: i0.ViewChild,
887
+ args: ['sheet']
888
+ }], content: [{
889
+ type: i0.ViewChild,
890
+ args: ['content']
891
+ }], stopsRefs: [{
892
+ type: i0.ViewChildren,
893
+ args: ['stops']
894
+ }], item: [{
895
+ type: i0.Input
896
+ }], context: [], onId: [{
897
+ type: i0.HostListener,
898
+ args: [TUI_SHEET_ID, ['$event.detail']]
899
+ }], getStops: [] } });
747
900
 
748
- /**
749
- * @deprecated: drop in v4.0
750
- */
751
- var TUI_SHEET_DEFAULT_OPTIONS = {
752
- image: '',
753
- imageSlide: true,
754
- stops: [],
755
- initial: 0,
756
- offset: 16,
757
- closeable: true,
758
- overlay: false,
759
- };
760
- /**
761
- * @deprecated: drop in v4.0
762
- * Default parameters for sheet component
763
- */
764
- var TUI_SHEET_OPTIONS = i3.tuiCreateToken(Object.assign({}, TUI_SHEET_DEFAULT_OPTIONS));
901
+ /**
902
+ * @deprecated: drop in v4.0
903
+ */
904
+ var TUI_SHEET_DEFAULT_OPTIONS = {
905
+ image: '',
906
+ imageSlide: true,
907
+ stops: [],
908
+ initial: 0,
909
+ offset: 16,
910
+ closeable: true,
911
+ overlay: false,
912
+ };
913
+ /**
914
+ * @deprecated: drop in v4.0
915
+ * Default parameters for sheet component
916
+ */
917
+ var TUI_SHEET_OPTIONS = i3.tuiCreateToken(Object.assign({}, TUI_SHEET_DEFAULT_OPTIONS));
765
918
 
766
- /**
767
- * @deprecated: use {@link TuiSheetDialogService}
768
- * drop in v4.0
769
- */
770
- var TuiSheetService = /** @class */ (function () {
771
- function TuiSheetService(doc, options) {
772
- this.doc = doc;
773
- this.options = options;
774
- this.sheets$ = new i1.BehaviorSubject([]);
775
- }
776
- TuiSheetService.prototype.open = function (content, options) {
777
- var _this = this;
778
- if (options === void 0) { options = {}; }
779
- return new i1.Observable(function ($implicit) {
780
- var completeWith = function (result) {
781
- $implicit.next(result);
782
- $implicit.complete();
783
- };
784
- var sheet = Object.assign(Object.assign(Object.assign({}, _this.options), options), { content: content, completeWith: completeWith, $implicit: $implicit, scroll$: i1.EMPTY });
785
- var focused = i3.tuiGetNativeFocused(_this.doc);
786
- if (i3.tuiIsHTMLElement(focused) && sheet.overlay) {
787
- focused.blur();
788
- }
789
- _this.sheets$.next(__spreadArray(__spreadArray([], __read(_this.sheets$.value)), [sheet]));
790
- return function () {
791
- _this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
792
- };
793
- });
794
- };
795
- return TuiSheetService;
796
- }());
797
- TuiSheetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, deps: [{ token: i2.DOCUMENT }, { token: TUI_SHEET_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
798
- TuiSheetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, providedIn: 'root' });
799
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, decorators: [{
800
- type: i0.Injectable,
801
- args: [{
802
- providedIn: 'root',
803
- }]
804
- }], ctorParameters: function () {
805
- return [{ type: Document, decorators: [{
806
- type: i0.Inject,
807
- args: [i2.DOCUMENT]
808
- }] }, { type: undefined, decorators: [{
809
- type: i0.Inject,
810
- args: [TUI_SHEET_OPTIONS]
811
- }] }];
812
- } });
919
+ /**
920
+ * @deprecated: use {@link TuiSheetDialogService}
921
+ * drop in v4.0
922
+ */
923
+ var TuiSheetService = /** @class */ (function () {
924
+ function TuiSheetService(doc, options) {
925
+ this.doc = doc;
926
+ this.options = options;
927
+ this.sheets$ = new i1$1.BehaviorSubject([]);
928
+ }
929
+ TuiSheetService.prototype.open = function (content, options) {
930
+ var _this = this;
931
+ if (options === void 0) { options = {}; }
932
+ return new i1$1.Observable(function ($implicit) {
933
+ var completeWith = function (result) {
934
+ $implicit.next(result);
935
+ $implicit.complete();
936
+ };
937
+ var sheet = Object.assign(Object.assign(Object.assign({}, _this.options), options), { content: content, completeWith: completeWith, $implicit: $implicit, scroll$: i1$1.EMPTY });
938
+ var focused = i3.tuiGetNativeFocused(_this.doc);
939
+ if (i3.tuiIsHTMLElement(focused) && sheet.overlay) {
940
+ focused.blur();
941
+ }
942
+ _this.sheets$.next(__spreadArray(__spreadArray([], __read(_this.sheets$.value)), [sheet]));
943
+ return function () {
944
+ _this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
945
+ };
946
+ });
947
+ };
948
+ return TuiSheetService;
949
+ }());
950
+ TuiSheetService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, deps: [{ token: i2.DOCUMENT }, { token: TUI_SHEET_OPTIONS }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
951
+ TuiSheetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, providedIn: 'root' });
952
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, decorators: [{
953
+ type: i0.Injectable,
954
+ args: [{
955
+ providedIn: 'root',
956
+ }]
957
+ }], ctorParameters: function () {
958
+ return [{ type: Document, decorators: [{
959
+ type: i0.Inject,
960
+ args: [i2.DOCUMENT]
961
+ }] }, { type: undefined, decorators: [{
962
+ type: i0.Inject,
963
+ args: [TUI_SHEET_OPTIONS]
964
+ }] }];
965
+ } });
813
966
 
814
- // Safety offset for shadow
815
- var OFFSET = 16;
816
- function processDragged(dragged$, scroll$) {
817
- var touchstart$ = dragged$.pipe(operators.filter(Boolean));
818
- var touchend$ = dragged$.pipe(operators.filter(i3.tuiIsFalsy));
819
- var race$ = i1.race(scroll$, i1.timer(100)).pipe(operators.debounceTime(200), operators.take(1), operators.map(i3.ALWAYS_FALSE_HANDLER));
820
- return touchstart$.pipe(operators.switchMap(function () { return touchend$.pipe(operators.switchMap(function () { return race$; }), operators.startWith(true)); }), operators.startWith(false));
821
- }
822
- var TuiSheetWrapperDirective = /** @class */ (function () {
823
- function TuiSheetWrapperDirective(zone, win) {
824
- this.zone = zone;
825
- this.win = win;
826
- this.tuiSheetWrapper = 16;
827
- }
828
- Object.defineProperty(TuiSheetWrapperDirective.prototype, "overlay$", {
829
- get: function () {
830
- var _this = this;
831
- return this.scroll$.pipe(operators.map(function (y) { return y + 16 > _this.win.innerHeight - _this.tuiSheetWrapper; }), operators.distinctUntilChanged(), i3.tuiZonefull(this.zone));
832
- },
833
- enumerable: false,
834
- configurable: true
835
- });
836
- Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
837
- get: function () {
838
- return processDragged(this.dragged$, this.scroll$).pipe(operators.distinctUntilChanged(), i3.tuiZonefull(this.zone));
839
- },
840
- enumerable: false,
841
- configurable: true
842
- });
843
- Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
844
- get: function () {
845
- return this.scroll$.pipe(operators.map(this.getHeight.bind(this)));
846
- },
847
- enumerable: false,
848
- configurable: true
849
- });
850
- TuiSheetWrapperDirective.prototype.getHeight = function (value) {
851
- var _a;
852
- return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
853
- ? null
854
- : i3.tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.win.innerHeight);
855
- };
856
- TuiSheetWrapperDirective.prototype.withImage = function (value) {
857
- var _a;
858
- return !((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.imageStop) || Math.floor(value) > this.sheet.imageStop
859
- ? value
860
- : value - this.sheet.imageHeight;
861
- };
862
- return TuiSheetWrapperDirective;
863
- }());
864
- TuiSheetWrapperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetWrapperDirective, deps: [{ token: i0.NgZone }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
865
- TuiSheetWrapperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: { tuiSheetWrapper: "tuiSheetWrapper" }, queries: [{ propertyName: "sheet", first: true, predicate: TuiSheetComponent, descendants: true }, { propertyName: "dragged$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_DRAGGED, static: true }, { propertyName: "scroll$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_SCROLL, static: true }], exportAs: ["tuiSheetWrapper"], ngImport: i0__namespace });
866
- __decorate([
867
- i3.tuiPure
868
- ], TuiSheetWrapperDirective.prototype, "overlay$", null);
869
- __decorate([
870
- i3.tuiPure
871
- ], TuiSheetWrapperDirective.prototype, "visible$", null);
872
- __decorate([
873
- i3.tuiPure
874
- ], TuiSheetWrapperDirective.prototype, "height$", null);
875
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetWrapperDirective, decorators: [{
876
- type: i0.Directive,
877
- args: [{
878
- selector: '[tuiSheetWrapper]',
879
- exportAs: 'tuiSheetWrapper',
880
- }]
881
- }], ctorParameters: function () {
882
- return [{ type: i0__namespace.NgZone, decorators: [{
883
- type: i0.Inject,
884
- args: [i0.NgZone]
885
- }] }, { type: Window, decorators: [{
886
- type: i0.Inject,
887
- args: [common.WINDOW]
888
- }] }];
889
- }, propDecorators: { sheet: [{
890
- type: i0.ContentChild,
891
- args: [TuiSheetComponent]
892
- }], dragged$: [{
893
- type: i0.ContentChild,
894
- args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED, static: true }]
895
- }], scroll$: [{
896
- type: i0.ContentChild,
897
- args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL, static: true }]
898
- }], tuiSheetWrapper: [{
899
- type: i0.Input
900
- }], overlay$: [], visible$: [], height$: [] } });
967
+ // Safety offset for shadow
968
+ var OFFSET = 16;
969
+ function processDragged(dragged$, scroll$) {
970
+ var touchstart$ = dragged$.pipe(operators.filter(Boolean));
971
+ var touchend$ = dragged$.pipe(operators.filter(i3.tuiIsFalsy));
972
+ var race$ = i1$1.race(scroll$, i1$1.timer(100)).pipe(operators.debounceTime(200), operators.take(1), operators.map(i3.ALWAYS_FALSE_HANDLER));
973
+ return touchstart$.pipe(operators.switchMap(function () { return touchend$.pipe(operators.switchMap(function () { return race$; }), operators.startWith(true)); }), operators.startWith(false));
974
+ }
975
+ var TuiSheetWrapperDirective = /** @class */ (function () {
976
+ function TuiSheetWrapperDirective(zone, win) {
977
+ this.zone = zone;
978
+ this.win = win;
979
+ this.tuiSheetWrapper = 16;
980
+ }
981
+ Object.defineProperty(TuiSheetWrapperDirective.prototype, "overlay$", {
982
+ get: function () {
983
+ var _this = this;
984
+ return this.scroll$.pipe(operators.map(function (y) { return y + 16 > _this.win.innerHeight - _this.tuiSheetWrapper; }), operators.distinctUntilChanged(), i3.tuiZonefull(this.zone));
985
+ },
986
+ enumerable: false,
987
+ configurable: true
988
+ });
989
+ Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
990
+ get: function () {
991
+ return processDragged(this.dragged$, this.scroll$).pipe(operators.distinctUntilChanged(), i3.tuiZonefull(this.zone));
992
+ },
993
+ enumerable: false,
994
+ configurable: true
995
+ });
996
+ Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
997
+ get: function () {
998
+ return this.scroll$.pipe(operators.map(this.getHeight.bind(this)));
999
+ },
1000
+ enumerable: false,
1001
+ configurable: true
1002
+ });
1003
+ TuiSheetWrapperDirective.prototype.getHeight = function (value) {
1004
+ var _a;
1005
+ return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
1006
+ ? null
1007
+ : i3.tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.win.innerHeight);
1008
+ };
1009
+ TuiSheetWrapperDirective.prototype.withImage = function (value) {
1010
+ var _a;
1011
+ return !((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.imageStop) || Math.floor(value) > this.sheet.imageStop
1012
+ ? value
1013
+ : value - this.sheet.imageHeight;
1014
+ };
1015
+ return TuiSheetWrapperDirective;
1016
+ }());
1017
+ TuiSheetWrapperDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetWrapperDirective, deps: [{ token: i0.NgZone }, { token: common.WINDOW }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1018
+ TuiSheetWrapperDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: { tuiSheetWrapper: "tuiSheetWrapper" }, queries: [{ propertyName: "sheet", first: true, predicate: TuiSheetComponent, descendants: true }, { propertyName: "dragged$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_DRAGGED, static: true }, { propertyName: "scroll$", first: true, predicate: TuiSheetComponent, descendants: true, read: TUI_SHEET_SCROLL, static: true }], exportAs: ["tuiSheetWrapper"], ngImport: i0__namespace });
1019
+ __decorate([
1020
+ i3.tuiPure
1021
+ ], TuiSheetWrapperDirective.prototype, "overlay$", null);
1022
+ __decorate([
1023
+ i3.tuiPure
1024
+ ], TuiSheetWrapperDirective.prototype, "visible$", null);
1025
+ __decorate([
1026
+ i3.tuiPure
1027
+ ], TuiSheetWrapperDirective.prototype, "height$", null);
1028
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetWrapperDirective, decorators: [{
1029
+ type: i0.Directive,
1030
+ args: [{
1031
+ selector: '[tuiSheetWrapper]',
1032
+ exportAs: 'tuiSheetWrapper',
1033
+ }]
1034
+ }], ctorParameters: function () {
1035
+ return [{ type: i0__namespace.NgZone, decorators: [{
1036
+ type: i0.Inject,
1037
+ args: [i0.NgZone]
1038
+ }] }, { type: Window, decorators: [{
1039
+ type: i0.Inject,
1040
+ args: [common.WINDOW]
1041
+ }] }];
1042
+ }, propDecorators: { sheet: [{
1043
+ type: i0.ContentChild,
1044
+ args: [TuiSheetComponent]
1045
+ }], dragged$: [{
1046
+ type: i0.ContentChild,
1047
+ args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED, static: true }]
1048
+ }], scroll$: [{
1049
+ type: i0.ContentChild,
1050
+ args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL, static: true }]
1051
+ }], tuiSheetWrapper: [{
1052
+ type: i0.Input
1053
+ }], overlay$: [], visible$: [], height$: [] } });
901
1054
 
902
- var TuiSheetCloseDirective = /** @class */ (function () {
903
- function TuiSheetCloseDirective(zone, dragged$, scroll$, win, el, sheet) {
904
- var _this = this;
905
- this.zone = zone;
906
- this.dragged$ = dragged$;
907
- this.scroll$ = scroll$;
908
- this.win = win;
909
- this.el = el;
910
- this.sheet = sheet;
911
- this.close = i1.merge(i3.tuiTypedFromEvent(this.el.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(i3.tuiIfMap(function () { return _this.scroll$.pipe(operators.startWith(_this.el.nativeElement.scrollTop)); }, i3.tuiIsFalsy), operators.filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), operators.distinctUntilChanged(), i3.tuiZonefull(this.zone)));
912
- }
913
- TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
914
- var height = Math.min(this.win.innerHeight, this.el.nativeElement.scrollHeight - this.win.innerHeight);
915
- var min = Math.min(height, this.sheet.stops[0] || Infinity);
916
- return scrollTop < min / 2;
917
- };
918
- return TuiSheetCloseDirective;
919
- }());
920
- TuiSheetCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetCloseDirective, deps: [{ token: i0.NgZone }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: common.WINDOW }, { token: i0.ElementRef }, { token: TuiSheetComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
921
- TuiSheetCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: { close: "close" }, ngImport: i0__namespace });
922
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetCloseDirective, decorators: [{
923
- type: i0.Directive,
924
- args: [{
925
- selector: 'tui-sheet[close]',
926
- }]
927
- }], ctorParameters: function () {
928
- return [{ type: i0__namespace.NgZone, decorators: [{
929
- type: i0.Inject,
930
- args: [i0.NgZone]
931
- }] }, { type: i1__namespace$1.Observable, decorators: [{
932
- type: i0.Inject,
933
- args: [TUI_SHEET_DRAGGED]
934
- }] }, { type: i1__namespace$1.Observable, decorators: [{
935
- type: i0.Inject,
936
- args: [TUI_SHEET_SCROLL]
937
- }] }, { type: Window, decorators: [{
938
- type: i0.Inject,
939
- args: [common.WINDOW]
940
- }] }, { type: i0__namespace.ElementRef, decorators: [{
941
- type: i0.Inject,
942
- args: [i0.ElementRef]
943
- }] }, { type: TuiSheetComponent, decorators: [{
944
- type: i0.Inject,
945
- args: [TuiSheetComponent]
946
- }] }];
947
- }, propDecorators: { close: [{
948
- type: i0.Output
949
- }] } });
1055
+ var TuiSheetCloseDirective = /** @class */ (function () {
1056
+ function TuiSheetCloseDirective(zone, dragged$, scroll$, win, el, sheet) {
1057
+ var _this = this;
1058
+ this.zone = zone;
1059
+ this.dragged$ = dragged$;
1060
+ this.scroll$ = scroll$;
1061
+ this.win = win;
1062
+ this.el = el;
1063
+ this.sheet = sheet;
1064
+ this.close = i1$1.merge(i3.tuiTypedFromEvent(this.el.nativeElement, TUI_SHEET_CLOSE), this.dragged$.pipe(i3.tuiIfMap(function () { return _this.scroll$.pipe(operators.startWith(_this.el.nativeElement.scrollTop)); }, i3.tuiIsFalsy), operators.filter(function (y) { var _a; return ((_a = _this.sheet.item) === null || _a === void 0 ? void 0 : _a.closeable) && _this.shouldClose(y); }), operators.distinctUntilChanged(), i3.tuiZonefull(this.zone)));
1065
+ }
1066
+ TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
1067
+ var height = Math.min(this.win.innerHeight, this.el.nativeElement.scrollHeight - this.win.innerHeight);
1068
+ var min = Math.min(height, this.sheet.stops[0] || Infinity);
1069
+ return scrollTop < min / 2;
1070
+ };
1071
+ return TuiSheetCloseDirective;
1072
+ }());
1073
+ TuiSheetCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetCloseDirective, deps: [{ token: i0.NgZone }, { token: TUI_SHEET_DRAGGED }, { token: TUI_SHEET_SCROLL }, { token: common.WINDOW }, { token: i0.ElementRef }, { token: TuiSheetComponent }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1074
+ TuiSheetCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: { close: "close" }, ngImport: i0__namespace });
1075
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetCloseDirective, decorators: [{
1076
+ type: i0.Directive,
1077
+ args: [{
1078
+ selector: 'tui-sheet[close]',
1079
+ }]
1080
+ }], ctorParameters: function () {
1081
+ return [{ type: i0__namespace.NgZone, decorators: [{
1082
+ type: i0.Inject,
1083
+ args: [i0.NgZone]
1084
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
1085
+ type: i0.Inject,
1086
+ args: [TUI_SHEET_DRAGGED]
1087
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
1088
+ type: i0.Inject,
1089
+ args: [TUI_SHEET_SCROLL]
1090
+ }] }, { type: Window, decorators: [{
1091
+ type: i0.Inject,
1092
+ args: [common.WINDOW]
1093
+ }] }, { type: i0__namespace.ElementRef, decorators: [{
1094
+ type: i0.Inject,
1095
+ args: [i0.ElementRef]
1096
+ }] }, { type: TuiSheetComponent, decorators: [{
1097
+ type: i0.Inject,
1098
+ args: [TuiSheetComponent]
1099
+ }] }];
1100
+ }, propDecorators: { close: [{
1101
+ type: i0.Output
1102
+ }] } });
950
1103
 
951
- var TuiSheetsHostComponent = /** @class */ (function () {
952
- function TuiSheetsHostComponent(options, service, height$, destroy$, cdr) {
953
- this.options = options;
954
- this.service = service;
955
- this.height$ = height$;
956
- this.destroy$ = destroy$;
957
- this.cdr = cdr;
958
- this.sheets = [];
959
- }
960
- TuiSheetsHostComponent.prototype.ngOnInit = function () {
961
- var _this = this;
962
- // Due to this view being parallel to app content, `markForCheck` from `async` pipe
963
- // can happen after view was checked, so calling `detectChanges` instead
964
- this.service.sheets$.pipe(operators.takeUntil(this.destroy$)).subscribe(function (sheets) {
965
- _this.sheets = sheets;
966
- _this.cdr.detectChanges();
967
- });
968
- };
969
- TuiSheetsHostComponent.prototype.close = function (_a) {
970
- var closeable = _a.closeable, $implicit = _a.$implicit;
971
- if (closeable) {
972
- $implicit.complete();
973
- }
974
- };
975
- return TuiSheetsHostComponent;
976
- }());
977
- TuiSheetsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetsHostComponent, deps: [{ token: i1$1.TUI_ANIMATION_OPTIONS }, { token: TuiSheetService }, { token: i3.TUI_WINDOW_HEIGHT }, { token: i3.TuiDestroyService, self: true }, { token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
978
- TuiSheetsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetsHostComponent, selector: "tui-sheets-host", providers: [i3.TuiDestroyService], ngImport: i0__namespace, template: "<div\n *ngFor=\"let item of sheets\"\n #wrapper=\"tuiSheetWrapper\"\n class=\"t-wrapper\"\n [@tuiFadeIn]=\"options\"\n [@tuiSlideInTop]=\"options\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n [class.t-wrapper_overlay]=\"item.overlay || (wrapper.overlay$ | async)\"\n [class.t-wrapper_visible]=\"wrapper.visible$ | async\"\n [style.height.px]=\"wrapper.height$ | async\"\n [tuiSheetWrapper]=\"item.offset\"\n (click.self)=\"close(item)\"\n>\n <tui-sheet\n tuiOverscroll=\"all\"\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n ></tui-sheet>\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n", styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper_visible{overflow:visible}\n"], components: [{ type: TuiSheetComponent, selector: "tui-sheet", inputs: ["item"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: ["tuiSheetWrapper"], exportAs: ["tuiSheetWrapper"] }, { type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: ["close"] }, { type: i3__namespace.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }, { type: i1__namespace.TuiScrollRefDirective, selector: "[tuiScrollRef]" }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
979
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetsHostComponent, decorators: [{
980
- type: i0.Component,
981
- args: [{
982
- selector: 'tui-sheets-host',
983
- templateUrl: './sheets-host.template.html',
984
- styleUrls: ['./sheets-host.style.less'],
985
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
986
- providers: [i3.TuiDestroyService],
987
- animations: [i1$1.tuiSlideInTop, i1$1.tuiFadeIn],
988
- }]
989
- }], ctorParameters: function () {
990
- return [{ type: undefined, decorators: [{
991
- type: i0.Inject,
992
- args: [i1$1.TUI_ANIMATION_OPTIONS]
993
- }] }, { type: TuiSheetService, decorators: [{
994
- type: i0.Inject,
995
- args: [TuiSheetService]
996
- }] }, { type: i1__namespace$1.Observable, decorators: [{
997
- type: i0.Inject,
998
- args: [i3.TUI_WINDOW_HEIGHT]
999
- }] }, { type: i1__namespace$1.Observable, decorators: [{
1000
- type: i0.Self
1001
- }, {
1002
- type: i0.Inject,
1003
- args: [i3.TuiDestroyService]
1004
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
1005
- type: i0.Inject,
1006
- args: [i0.ChangeDetectorRef]
1007
- }] }];
1008
- } });
1104
+ var TuiSheetsHostComponent = /** @class */ (function () {
1105
+ function TuiSheetsHostComponent(options, service, height$, destroy$, cdr) {
1106
+ this.options = options;
1107
+ this.service = service;
1108
+ this.height$ = height$;
1109
+ this.destroy$ = destroy$;
1110
+ this.cdr = cdr;
1111
+ this.sheets = [];
1112
+ }
1113
+ TuiSheetsHostComponent.prototype.ngOnInit = function () {
1114
+ var _this = this;
1115
+ // Due to this view being parallel to app content, `markForCheck` from `async` pipe
1116
+ // can happen after view was checked, so calling `detectChanges` instead
1117
+ this.service.sheets$.pipe(operators.takeUntil(this.destroy$)).subscribe(function (sheets) {
1118
+ _this.sheets = sheets;
1119
+ _this.cdr.detectChanges();
1120
+ });
1121
+ };
1122
+ TuiSheetsHostComponent.prototype.close = function (_a) {
1123
+ var closeable = _a.closeable, $implicit = _a.$implicit;
1124
+ if (closeable) {
1125
+ $implicit.complete();
1126
+ }
1127
+ };
1128
+ return TuiSheetsHostComponent;
1129
+ }());
1130
+ TuiSheetsHostComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetsHostComponent, deps: [{ token: i1.TUI_ANIMATION_OPTIONS }, { token: TuiSheetService }, { token: i3.TUI_WINDOW_HEIGHT }, { token: i3.TuiDestroyService, self: true }, { token: i0.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1131
+ TuiSheetsHostComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetsHostComponent, selector: "tui-sheets-host", providers: [i3.TuiDestroyService], ngImport: i0__namespace, template: "<div\n *ngFor=\"let item of sheets\"\n #wrapper=\"tuiSheetWrapper\"\n class=\"t-wrapper\"\n [@tuiFadeIn]=\"options\"\n [@tuiSlideInTop]=\"options\"\n [class.t-wrapper_closeable]=\"item.closeable\"\n [class.t-wrapper_overlay]=\"item.overlay || (wrapper.overlay$ | async)\"\n [class.t-wrapper_visible]=\"wrapper.visible$ | async\"\n [style.height.px]=\"wrapper.height$ | async\"\n [tuiSheetWrapper]=\"item.offset\"\n (click.self)=\"close(item)\"\n>\n <tui-sheet\n tuiOverscroll=\"all\"\n tuiScrollRef\n [item]=\"item\"\n [style.height.px]=\"((height$ | async) || 0) - item.offset\"\n (close)=\"close(item)\"\n ></tui-sheet>\n</div>\n<div\n class=\"t-overlay\"\n (click)=\"close(sheets[0])\"\n></div>\n", styles: [":host{position:-webkit-sticky;position:sticky;bottom:0;display:block;height:0}.t-overlay{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:0;left:0;width:100%;z-index:-1;height:100%;background:#000;opacity:.001;pointer-events:none}.t-wrapper_overlay~.t-overlay{opacity:.8;pointer-events:auto;touch-action:none}.t-wrapper{position:absolute;bottom:0;z-index:0;width:100%;height:100vh;overflow:hidden}.t-wrapper_visible{overflow:visible}\n"], components: [{ type: TuiSheetComponent, selector: "tui-sheet", inputs: ["item"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: TuiSheetWrapperDirective, selector: "[tuiSheetWrapper]", inputs: ["tuiSheetWrapper"], exportAs: ["tuiSheetWrapper"] }, { type: TuiSheetCloseDirective, selector: "tui-sheet[close]", outputs: ["close"] }, { type: i3__namespace.TuiOverscrollDirective, selector: "[tuiOverscroll]", inputs: ["tuiOverscroll"] }, { type: i1__namespace.TuiScrollRefDirective, selector: "[tuiScrollRef]" }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [i1.tuiSlideInTop, i1.tuiFadeIn], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1132
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetsHostComponent, decorators: [{
1133
+ type: i0.Component,
1134
+ args: [{
1135
+ selector: 'tui-sheets-host',
1136
+ templateUrl: './sheets-host.template.html',
1137
+ styleUrls: ['./sheets-host.style.less'],
1138
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
1139
+ providers: [i3.TuiDestroyService],
1140
+ animations: [i1.tuiSlideInTop, i1.tuiFadeIn],
1141
+ }]
1142
+ }], ctorParameters: function () {
1143
+ return [{ type: undefined, decorators: [{
1144
+ type: i0.Inject,
1145
+ args: [i1.TUI_ANIMATION_OPTIONS]
1146
+ }] }, { type: TuiSheetService, decorators: [{
1147
+ type: i0.Inject,
1148
+ args: [TuiSheetService]
1149
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
1150
+ type: i0.Inject,
1151
+ args: [i3.TUI_WINDOW_HEIGHT]
1152
+ }] }, { type: i1__namespace$1.Observable, decorators: [{
1153
+ type: i0.Self
1154
+ }, {
1155
+ type: i0.Inject,
1156
+ args: [i3.TuiDestroyService]
1157
+ }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
1158
+ type: i0.Inject,
1159
+ args: [i0.ChangeDetectorRef]
1160
+ }] }];
1161
+ } });
1009
1162
 
1010
- /**
1011
- * @deprecated: use {@link TuiSheetDialogDirective}
1012
- * drop in v4.0
1013
- */
1014
- var TuiSheetDirective = /** @class */ (function (_super) {
1015
- __extends(TuiSheetDirective, _super);
1016
- function TuiSheetDirective(cdr, templateRef, service) {
1017
- var _this = _super.call(this, templateRef, cdr) || this;
1018
- _this.service = service;
1019
- _this.open$ = new i1.Subject();
1020
- _this.options = {};
1021
- _this.tuiSheetChange = _this.open$.pipe(i3.tuiIfMap(function () { return _this.service.open(_this, _this.options).pipe(operators.ignoreElements(), operators.endWith(false)); }), operators.share());
1022
- return _this;
1023
- }
1024
- Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
1025
- set: function (open) {
1026
- this.open$.next(open);
1027
- },
1028
- enumerable: false,
1029
- configurable: true
1030
- });
1031
- return TuiSheetDirective;
1032
- }(i5.PolymorpheusTemplate));
1033
- TuiSheetDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.TemplateRef }, { token: TuiSheetService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1034
- TuiSheetDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetDirective, selector: "ng-template[tuiSheet]", inputs: { options: ["tuiSheetOptions", "options"], tuiSheet: "tuiSheet" }, outputs: { tuiSheetChange: "tuiSheetChange" }, usesInheritance: true, ngImport: i0__namespace });
1035
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetDirective, decorators: [{
1036
- type: i0.Directive,
1037
- args: [{
1038
- selector: 'ng-template[tuiSheet]',
1039
- }]
1040
- }], ctorParameters: function () {
1041
- return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1042
- type: i0.Inject,
1043
- args: [i0.ChangeDetectorRef]
1044
- }] }, { type: i0__namespace.TemplateRef, decorators: [{
1045
- type: i0.Inject,
1046
- args: [i0.TemplateRef]
1047
- }] }, { type: TuiSheetService, decorators: [{
1048
- type: i0.Inject,
1049
- args: [TuiSheetService]
1050
- }] }];
1051
- }, propDecorators: { options: [{
1052
- type: i0.Input,
1053
- args: ['tuiSheetOptions']
1054
- }], tuiSheet: [{
1055
- type: i0.Input
1056
- }], tuiSheetChange: [{
1057
- type: i0.Output
1058
- }] } });
1163
+ /**
1164
+ * @deprecated: use {@link TuiSheetDialogDirective}
1165
+ * drop in v4.0
1166
+ */
1167
+ var TuiSheetDirective = /** @class */ (function (_super) {
1168
+ __extends(TuiSheetDirective, _super);
1169
+ function TuiSheetDirective(cdr, templateRef, service) {
1170
+ var _this = _super.call(this, templateRef, cdr) || this;
1171
+ _this.service = service;
1172
+ _this.open$ = new i1$1.Subject();
1173
+ _this.options = {};
1174
+ _this.tuiSheetChange = _this.open$.pipe(i3.tuiIfMap(function () { return _this.service.open(_this, _this.options).pipe(operators.ignoreElements(), operators.endWith(false)); }), operators.share());
1175
+ return _this;
1176
+ }
1177
+ Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
1178
+ set: function (open) {
1179
+ this.open$.next(open);
1180
+ },
1181
+ enumerable: false,
1182
+ configurable: true
1183
+ });
1184
+ return TuiSheetDirective;
1185
+ }(i5.PolymorpheusTemplate));
1186
+ TuiSheetDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.TemplateRef }, { token: TuiSheetService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
1187
+ TuiSheetDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetDirective, selector: "ng-template[tuiSheet]", inputs: { options: ["tuiSheetOptions", "options"], tuiSheet: "tuiSheet" }, outputs: { tuiSheetChange: "tuiSheetChange" }, usesInheritance: true, ngImport: i0__namespace });
1188
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetDirective, decorators: [{
1189
+ type: i0.Directive,
1190
+ args: [{
1191
+ selector: 'ng-template[tuiSheet]',
1192
+ }]
1193
+ }], ctorParameters: function () {
1194
+ return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1195
+ type: i0.Inject,
1196
+ args: [i0.ChangeDetectorRef]
1197
+ }] }, { type: i0__namespace.TemplateRef, decorators: [{
1198
+ type: i0.Inject,
1199
+ args: [i0.TemplateRef]
1200
+ }] }, { type: TuiSheetService, decorators: [{
1201
+ type: i0.Inject,
1202
+ args: [TuiSheetService]
1203
+ }] }];
1204
+ }, propDecorators: { options: [{
1205
+ type: i0.Input,
1206
+ args: ['tuiSheetOptions']
1207
+ }], tuiSheet: [{
1208
+ type: i0.Input
1209
+ }], tuiSheetChange: [{
1210
+ type: i0.Output
1211
+ }] } });
1059
1212
 
1060
- /**
1061
- * @deprecated: use {@link TuiSheetDialogModule}
1062
- * drop in v4.0
1063
- */
1064
- var TuiSheetModule = /** @class */ (function () {
1065
- function TuiSheetModule() {
1066
- }
1067
- return TuiSheetModule;
1068
- }());
1069
- TuiSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1070
- TuiSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
1071
- TuiSheetComponent,
1072
- TuiSheetBarComponent,
1073
- TuiSheetHeadingComponent,
1074
- TuiSheetTopDirective,
1075
- TuiSheetDirective,
1076
- TuiSheetWrapperDirective,
1077
- TuiSheetCloseDirective,
1078
- TuiSheetStopDirective], imports: [i2.CommonModule,
1079
- i5.PolymorpheusModule,
1080
- i3.TuiLetModule,
1081
- i1$1.TuiButtonModule,
1082
- i3.TuiOverscrollModule,
1083
- i1$1.TuiScrollbarModule], exports: [TuiSheetsHostComponent,
1084
- TuiSheetComponent,
1085
- TuiSheetHeadingComponent,
1086
- TuiSheetDirective] });
1087
- TuiSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, imports: [[
1088
- i2.CommonModule,
1089
- i5.PolymorpheusModule,
1090
- i3.TuiLetModule,
1091
- i1$1.TuiButtonModule,
1092
- i3.TuiOverscrollModule,
1093
- i1$1.TuiScrollbarModule,
1094
- ]] });
1095
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, decorators: [{
1096
- type: i0.NgModule,
1097
- args: [{
1098
- imports: [
1099
- i2.CommonModule,
1100
- i5.PolymorpheusModule,
1101
- i3.TuiLetModule,
1102
- i1$1.TuiButtonModule,
1103
- i3.TuiOverscrollModule,
1104
- i1$1.TuiScrollbarModule,
1105
- ],
1106
- declarations: [
1107
- TuiSheetsHostComponent,
1108
- TuiSheetComponent,
1109
- TuiSheetBarComponent,
1110
- TuiSheetHeadingComponent,
1111
- TuiSheetTopDirective,
1112
- TuiSheetDirective,
1113
- TuiSheetWrapperDirective,
1114
- TuiSheetCloseDirective,
1115
- TuiSheetStopDirective,
1116
- ],
1117
- exports: [
1118
- TuiSheetsHostComponent,
1119
- TuiSheetComponent,
1120
- TuiSheetHeadingComponent,
1121
- TuiSheetDirective,
1122
- ],
1123
- schemas: [i0.NO_ERRORS_SCHEMA],
1124
- }]
1125
- }] });
1213
+ /**
1214
+ * @deprecated: use {@link TuiSheetDialogModule}
1215
+ * drop in v4.0
1216
+ */
1217
+ var TuiSheetModule = /** @class */ (function () {
1218
+ function TuiSheetModule() {
1219
+ }
1220
+ return TuiSheetModule;
1221
+ }());
1222
+ TuiSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1223
+ TuiSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
1224
+ TuiSheetComponent,
1225
+ TuiSheetBarComponent,
1226
+ TuiSheetHeadingComponent,
1227
+ TuiSheetTopDirective,
1228
+ TuiSheetDirective,
1229
+ TuiSheetWrapperDirective,
1230
+ TuiSheetCloseDirective,
1231
+ TuiSheetStopDirective], imports: [i2.CommonModule,
1232
+ i5.PolymorpheusModule,
1233
+ i3.TuiLetModule,
1234
+ i1.TuiButtonModule,
1235
+ i3.TuiOverscrollModule,
1236
+ i1.TuiScrollbarModule], exports: [TuiSheetsHostComponent,
1237
+ TuiSheetComponent,
1238
+ TuiSheetHeadingComponent,
1239
+ TuiSheetDirective] });
1240
+ TuiSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, imports: [[
1241
+ i2.CommonModule,
1242
+ i5.PolymorpheusModule,
1243
+ i3.TuiLetModule,
1244
+ i1.TuiButtonModule,
1245
+ i3.TuiOverscrollModule,
1246
+ i1.TuiScrollbarModule,
1247
+ ]] });
1248
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, decorators: [{
1249
+ type: i0.NgModule,
1250
+ args: [{
1251
+ imports: [
1252
+ i2.CommonModule,
1253
+ i5.PolymorpheusModule,
1254
+ i3.TuiLetModule,
1255
+ i1.TuiButtonModule,
1256
+ i3.TuiOverscrollModule,
1257
+ i1.TuiScrollbarModule,
1258
+ ],
1259
+ declarations: [
1260
+ TuiSheetsHostComponent,
1261
+ TuiSheetComponent,
1262
+ TuiSheetBarComponent,
1263
+ TuiSheetHeadingComponent,
1264
+ TuiSheetTopDirective,
1265
+ TuiSheetDirective,
1266
+ TuiSheetWrapperDirective,
1267
+ TuiSheetCloseDirective,
1268
+ TuiSheetStopDirective,
1269
+ ],
1270
+ exports: [
1271
+ TuiSheetsHostComponent,
1272
+ TuiSheetComponent,
1273
+ TuiSheetHeadingComponent,
1274
+ TuiSheetDirective,
1275
+ ],
1276
+ schemas: [i0.NO_ERRORS_SCHEMA],
1277
+ }]
1278
+ }] });
1126
1279
 
1127
- /**
1128
- * Generated bundle index. Do not edit.
1129
- */
1280
+ /**
1281
+ * Generated bundle index. Do not edit.
1282
+ */
1130
1283
 
1131
- exports.TUI_SHEET_CLOSE = TUI_SHEET_CLOSE;
1132
- exports.TUI_SHEET_DEFAULT_OPTIONS = TUI_SHEET_DEFAULT_OPTIONS;
1133
- exports.TUI_SHEET_ID = TUI_SHEET_ID;
1134
- exports.TUI_SHEET_OPTIONS = TUI_SHEET_OPTIONS;
1135
- exports.TUI_SHEET_PROVIDERS = TUI_SHEET_PROVIDERS;
1136
- exports.TuiSheetBarComponent = TuiSheetBarComponent;
1137
- exports.TuiSheetCloseDirective = TuiSheetCloseDirective;
1138
- exports.TuiSheetComponent = TuiSheetComponent;
1139
- exports.TuiSheetDirective = TuiSheetDirective;
1140
- exports.TuiSheetHeadingComponent = TuiSheetHeadingComponent;
1141
- exports.TuiSheetModule = TuiSheetModule;
1142
- exports.TuiSheetService = TuiSheetService;
1143
- exports.TuiSheetStopDirective = TuiSheetStopDirective;
1144
- exports.TuiSheetTopDirective = TuiSheetTopDirective;
1145
- exports.TuiSheetWrapperDirective = TuiSheetWrapperDirective;
1146
- exports.TuiSheetsHostComponent = TuiSheetsHostComponent;
1147
- exports.fakeSmoothScroll = fakeSmoothScroll;
1148
- exports.iosScrollFactory = iosScrollFactory;
1284
+ exports.TUI_SHEET_CLOSE = TUI_SHEET_CLOSE;
1285
+ exports.TUI_SHEET_DEFAULT_OPTIONS = TUI_SHEET_DEFAULT_OPTIONS;
1286
+ exports.TUI_SHEET_ID = TUI_SHEET_ID;
1287
+ exports.TUI_SHEET_OPTIONS = TUI_SHEET_OPTIONS;
1288
+ exports.TUI_SHEET_PROVIDERS = TUI_SHEET_PROVIDERS;
1289
+ exports.TuiSheetBarComponent = TuiSheetBarComponent;
1290
+ exports.TuiSheetCloseDirective = TuiSheetCloseDirective;
1291
+ exports.TuiSheetComponent = TuiSheetComponent;
1292
+ exports.TuiSheetDirective = TuiSheetDirective;
1293
+ exports.TuiSheetHeadingComponent = TuiSheetHeadingComponent;
1294
+ exports.TuiSheetModule = TuiSheetModule;
1295
+ exports.TuiSheetService = TuiSheetService;
1296
+ exports.TuiSheetStopDirective = TuiSheetStopDirective;
1297
+ exports.TuiSheetTopDirective = TuiSheetTopDirective;
1298
+ exports.TuiSheetWrapperDirective = TuiSheetWrapperDirective;
1299
+ exports.TuiSheetsHostComponent = TuiSheetsHostComponent;
1300
+ exports.iosScrollFactory = iosScrollFactory;
1149
1301
 
1150
- Object.defineProperty(exports, '__esModule', { value: true });
1302
+ Object.defineProperty(exports, '__esModule', { value: true });
1151
1303
 
1152
1304
  }));
1153
1305
  //# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.umd.js.map