@taiga-ui/addon-mobile 3.71.0 → 3.72.0-canary.e5fa8b1

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 (21) hide show
  1. package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +152 -6
  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 +1275 -1129
  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/package.json +32 -32
@@ -1,1159 +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'), 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));
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
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);
28
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
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
- /**
351
- * Sheet main component
352
- */
353
- var TUI_SHEET = new i0.InjectionToken('[TUI_SHEET]');
354
- /**
355
- * Current scrollTop of a sheet
356
- */
357
- var TUI_SHEET_SCROLL = new i0.InjectionToken('[TUI_SHEET_SCROLL]');
358
- /**
359
- * The sheet is being dragged
360
- */
361
- var TUI_SHEET_DRAGGED = new i0.InjectionToken('[TUI_SHEET_DRAGGED]');
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]');
362
508
 
363
- var TUI_SHEET_CLOSE = 'tui-sheet-close';
364
- var TUI_SHEET_ID = 'tui-sheet-id';
365
- var TuiSheetHeadingComponent = /** @class */ (function () {
366
- function TuiSheetHeadingComponent(idService, el, closeWord$, icons) {
367
- this.idService = idService;
368
- this.el = el;
369
- this.closeWord$ = closeWord$;
370
- this.icons = icons;
371
- this.id = this.idService.generate();
372
- }
373
- TuiSheetHeadingComponent.prototype.ngAfterViewInit = function () {
374
- this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_ID, { bubbles: true, detail: this.id }));
375
- };
376
- TuiSheetHeadingComponent.prototype.onClick = function () {
377
- this.el.nativeElement.dispatchEvent(new CustomEvent(TUI_SHEET_CLOSE, { bubbles: true }));
378
- };
379
- return TuiSheetHeadingComponent;
380
- }());
381
- 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 });
382
- 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 });
383
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetHeadingComponent, decorators: [{
384
- type: i0.Component,
385
- args: [{
386
- selector: '[tuiSheetHeading]',
387
- templateUrl: './sheet-heading.template.html',
388
- styleUrls: ['./sheet-heading.style.less'],
389
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
390
- }]
391
- }], ctorParameters: function () {
392
- return [{ type: i3__namespace.TuiIdService, decorators: [{
393
- type: i0.Inject,
394
- args: [i3.TuiIdService]
395
- }] }, { type: i0__namespace.ElementRef, decorators: [{
396
- type: i0.Inject,
397
- args: [i0.ElementRef]
398
- }] }, { type: i1__namespace$1.Observable, decorators: [{
399
- type: i0.Inject,
400
- args: [i1.TUI_CLOSE_WORD]
401
- }] }, { type: undefined, decorators: [{
402
- type: i0.Inject,
403
- args: [i1.TUI_COMMON_ICONS]
404
- }] }];
405
- } });
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
+ } });
406
552
 
407
- // eslint-disable-next-line @typescript-eslint/naming-convention
408
- function iosScrollFactory(element, doc, zone) {
409
- var load$ = i3.tuiTypedFromEvent(element, 'load', { capture: true });
410
- var touchstart$ = i3.tuiTypedFromEvent(element, 'touchstart', { passive: true });
411
- var touchmove$ = i3.tuiTypedFromEvent(doc, 'touchmove', { passive: true });
412
- var touchend$ = i3.tuiTypedFromEvent(doc, 'touchend');
413
- var scroll$ = i3.tuiTypedFromEvent(element, 'scroll').pipe(operators.map(function () { return element.scrollTop; }));
414
- var result$ = i1$1.merge(load$.pipe(operators.delay(0), operators.map(function () { return element.scrollTop; })), touchstart$.pipe(operators.switchMap(function (_a) {
415
- var touches = _a.touches;
416
- var screenY = touches[0].screenY;
417
- var scrollTop = element.scrollTop;
418
- return i1$1.concat(
419
- // Sometimes touch is triggered without scroll in iOS, filter that
420
- i1$1.zip(touchmove$, scroll$).pipe(operators.map(function (_a) {
421
- var _b = __read(_a, 1), touches = _b[0].touches;
422
- return scrollTop + screenY - touches[0].screenY;
423
- }), operators.takeUntil(touchend$)), scroll$);
424
- })));
425
- return i1$1.concat(scroll$.pipe(operators.take(1)), result$).pipe(i3.tuiZonefree(zone), operators.share());
426
- }
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
+ }
427
573
 
428
- var TUI_SHEET_PROVIDERS = [
429
- {
430
- provide: TUI_SHEET_DRAGGED,
431
- deps: [i0.ElementRef],
432
- useFactory: function (_a) {
433
- var nativeElement = _a.nativeElement;
434
- 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)));
435
- },
436
- },
437
- {
438
- provide: TUI_SHEET_SCROLL,
439
- deps: [i0.ElementRef, i0.NgZone, i2.DOCUMENT, i3.TUI_IS_IOS],
440
- useFactory: function (_a, zone, doc, isIos) {
441
- var nativeElement = _a.nativeElement;
442
- return isIos
443
- ? iosScrollFactory(nativeElement, doc, zone)
444
- : 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());
445
- },
446
- },
447
- {
448
- provide: i3.TUI_SCROLL_REF,
449
- useExisting: i0.ElementRef,
450
- },
451
- {
452
- provide: TUI_SHEET,
453
- useExisting: i0.forwardRef(function () { return TuiSheetComponent; }),
454
- },
455
- ];
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
+ ];
456
602
 
457
- var TuiSheetBarComponent = /** @class */ (function () {
458
- function TuiSheetBarComponent(sheet, scroll$, zone) {
459
- var _this = this;
460
- this.sheet = sheet;
461
- this.scroll$ = scroll$;
462
- this.zone = zone;
463
- this.rotate$ = this.scroll$.pipe(i1.tuiZonefulMap(function (y) { return i3.tuiClamp(10 - (y - _this.stop) / 5, 0, 10); }, this.zone));
464
- }
465
- Object.defineProperty(TuiSheetBarComponent.prototype, "stop", {
466
- get: function () {
467
- return this.sheet.stops[0] || 0;
468
- },
469
- enumerable: false,
470
- configurable: true
471
- });
472
- return TuiSheetBarComponent;
473
- }());
474
- 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 });
475
- 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 });
476
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetBarComponent, decorators: [{
477
- type: i0.Component,
478
- args: [{
479
- selector: 'tui-sheet-bar',
480
- templateUrl: './sheet-bar.template.html',
481
- styleUrls: ['./sheet-bar.style.less'],
482
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
483
- }]
484
- }], ctorParameters: function () {
485
- return [{ type: undefined, decorators: [{
486
- type: i0.Inject,
487
- args: [TUI_SHEET]
488
- }] }, { type: i1__namespace$1.Observable, decorators: [{
489
- type: i0.Inject,
490
- args: [TUI_SHEET_SCROLL]
491
- }] }, { type: i0__namespace.NgZone, decorators: [{
492
- type: i0.Inject,
493
- args: [i0.NgZone]
494
- }] }];
495
- } });
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
+ } });
496
642
 
497
- // So that borders get rounded when image is visible for at least 10px
498
- var OFFSET$1 = 10;
499
- var TuiSheetTopDirective = /** @class */ (function () {
500
- function TuiSheetTopDirective(scroll$, component, win) {
501
- var _this = this;
502
- this.scroll$ = scroll$;
503
- this.component = component;
504
- this.win = win;
505
- this.stop = 0;
506
- this.transform$ = this.scroll$.pipe(operators.map(function (y) { return "translateY(" + _this.getY(y) + "%) scaleX(-1)"; }));
507
- this.rounded$ = this.scroll$.pipe(operators.map(function (y) { return y < _this.stop + OFFSET$1; }));
508
- this.clickthrough$ = this.scroll$.pipe(operators.map(function (y) { return !!Math.round(_this.getY(y)); }));
509
- }
510
- TuiSheetTopDirective.prototype.getY = function (scrollTop) {
511
- var value = scrollTop - this.stop;
512
- var total = this.win.innerHeight - this.component.item.offset - this.stop;
513
- return this.stop && i3.tuiClamp(100 - (value / total) * 100, 0, 100);
514
- };
515
- return TuiSheetTopDirective;
516
- }());
517
- 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 });
518
- 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 });
519
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetTopDirective, decorators: [{
520
- type: i0.Directive,
521
- args: [{
522
- selector: '[tuiSheetTop]',
523
- host: {
524
- '[$.style.transform]': 'transform$',
525
- '($.style.transform)': 'transform$',
526
- '[$.class._rounded]': 'rounded$',
527
- '($.class._rounded)': 'rounded$',
528
- '[$.class._clickthrough]': 'clickthrough$',
529
- '($.class._clickthrough)': 'clickthrough$',
530
- },
531
- }]
532
- }], ctorParameters: function () {
533
- return [{ type: i1__namespace$1.Observable, decorators: [{
534
- type: i0.Inject,
535
- args: [TUI_SHEET_SCROLL]
536
- }] }, { type: undefined, decorators: [{
537
- type: i0.Inject,
538
- args: [TUI_SHEET]
539
- }] }, { type: Window, decorators: [{
540
- type: i0.Inject,
541
- args: [common.WINDOW]
542
- }] }];
543
- }, propDecorators: { stop: [{
544
- type: i0.Input,
545
- args: ['tuiSheetTop']
546
- }] } });
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
+ }] } });
547
693
 
548
- var TuiSheetStopDirective = /** @class */ (function () {
549
- function TuiSheetStopDirective(el, destroy$, dragged$, scroll$, _a) {
550
- var nativeElement = _a.nativeElement;
551
- scroll$
552
- .pipe(operators.map(function (y) { return Math.floor(y) > el.nativeElement.offsetTop; }), operators.distinctUntilChanged(), operators.withLatestFrom(dragged$), operators.map(function (_a) {
553
- var _b = __read(_a, 2), above = _b[0], dragged = _b[1];
554
- return !above && !dragged;
555
- }), operators.filter(Boolean), operators.throttleTime(100), operators.takeUntil(destroy$))
556
- .subscribe(function () {
557
- nativeElement.style.overflow = 'hidden';
558
- nativeElement.classList.remove('_stuck'); // iOS
559
- nativeElement.scrollTop = el.nativeElement.offsetTop;
560
- i1$1.timer(100)
561
- .pipe(operators.takeUntil(destroy$))
562
- // eslint-disable-next-line rxjs/no-nested-subscribe
563
- .subscribe(function () {
564
- nativeElement.style.overflow = '';
565
- });
566
- });
567
- }
568
- return TuiSheetStopDirective;
569
- }());
570
- 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 });
571
- TuiSheetStopDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: TuiSheetStopDirective, selector: "[tuiSheetStop]", providers: [i3.TuiDestroyService], ngImport: i0__namespace });
572
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetStopDirective, decorators: [{
573
- type: i0.Directive,
574
- args: [{
575
- selector: '[tuiSheetStop]',
576
- providers: [i3.TuiDestroyService],
577
- }]
578
- }], ctorParameters: function () {
579
- return [{ type: i0__namespace.ElementRef, decorators: [{
580
- type: i0.Inject,
581
- args: [i0.ElementRef]
582
- }] }, { type: i1__namespace$1.Observable, decorators: [{
583
- type: i0.Self
584
- }, {
585
- type: i0.Inject,
586
- args: [i3.TuiDestroyService]
587
- }] }, { type: i1__namespace$1.Observable, decorators: [{
588
- type: i0.Inject,
589
- args: [TUI_SHEET_DRAGGED]
590
- }] }, { type: i1__namespace$1.Observable, decorators: [{
591
- type: i0.Inject,
592
- args: [TUI_SHEET_SCROLL]
593
- }] }, { type: i0__namespace.ElementRef, decorators: [{
594
- type: i0.Inject,
595
- args: [i3.TUI_SCROLL_REF]
596
- }] }];
597
- } });
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
+ } });
598
744
 
599
- var TuiSheetComponent = /** @class */ (function () {
600
- function TuiSheetComponent(scroll$, el, zone, isIos, moreWord$, destroy$) {
601
- var _this = this;
602
- this.scroll$ = scroll$;
603
- this.el = el;
604
- this.zone = zone;
605
- this.isIos = isIos;
606
- this.moreWord$ = moreWord$;
607
- this.destroy$ = destroy$;
608
- this.stopsRefs = i3.EMPTY_QUERY;
609
- this.id = '';
610
- this.stuck$ = this.scroll$.pipe(operators.map(function (y) { return Math.floor(y) > _this.contentTop; }));
611
- }
612
- Object.defineProperty(TuiSheetComponent.prototype, "stops", {
613
- get: function () {
614
- return this.getStops(this.stopsRefs);
615
- },
616
- enumerable: false,
617
- configurable: true
618
- });
619
- Object.defineProperty(TuiSheetComponent.prototype, "imageStop", {
620
- get: function () {
621
- return (this.item.imageSlide && this.stops[this.stops.length - 1]) || 0;
622
- },
623
- enumerable: false,
624
- configurable: true
625
- });
626
- Object.defineProperty(TuiSheetComponent.prototype, "imageHeight", {
627
- get: function () {
628
- return this.contentTop - this.sheetTop;
629
- },
630
- enumerable: false,
631
- configurable: true
632
- });
633
- Object.defineProperty(TuiSheetComponent.prototype, "context", {
634
- get: function () {
635
- return Object.assign(Object.assign({}, this.item), { scroll$: this.scroll$.pipe(i3.tuiZonefull(this.zone)) });
636
- },
637
- enumerable: false,
638
- configurable: true
639
- });
640
- TuiSheetComponent.prototype.onId = function (id) {
641
- this.id = id;
642
- };
643
- TuiSheetComponent.prototype.ngAfterViewInit = function () {
644
- this.el.nativeElement.scrollTop = __spreadArray(__spreadArray([], __read(this.stops)), [this.sheetTop, this.contentTop])[this.item.initial];
645
- };
646
- TuiSheetComponent.prototype.scrollTo = function (top) {
647
- if (top === void 0) { top = this.sheetTop; }
648
- var nativeElement = this.el.nativeElement;
649
- if (this.isIos) {
650
- var offset = top - nativeElement.scrollTop - 16;
651
- nativeElement.style.transition = 'none';
652
- nativeElement.style.transform = "scaleX(-1) translate3d(0, " + offset + "px, 0)";
653
- i1$1.timer(0)
654
- .pipe(operators.takeUntil(this.destroy$))
655
- .subscribe(function () {
656
- nativeElement.style.transition = '';
657
- nativeElement.style.transform = '';
658
- });
659
- }
660
- nativeElement.scrollTo({ top: top, behavior: 'smooth' });
661
- };
662
- TuiSheetComponent.prototype.close = function () {
663
- if (this.context.closeable) {
664
- this.context.$implicit.complete();
665
- }
666
- };
667
- Object.defineProperty(TuiSheetComponent.prototype, "contentTop", {
668
- get: function () {
669
- var _a, _b;
670
- return (_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
671
- },
672
- enumerable: false,
673
- configurable: true
674
- });
675
- Object.defineProperty(TuiSheetComponent.prototype, "sheetTop", {
676
- get: function () {
677
- var _a, _b;
678
- return (_b = (_a = this.sheet) === null || _a === void 0 ? void 0 : _a.nativeElement.offsetTop) !== null && _b !== void 0 ? _b : Infinity;
679
- },
680
- enumerable: false,
681
- configurable: true
682
- });
683
- TuiSheetComponent.prototype.getStops = function (stops) {
684
- return stops.map(function (_c) {
685
- var nativeElement = _c.nativeElement;
686
- return nativeElement.offsetTop + nativeElement.clientHeight;
687
- });
688
- };
689
- return TuiSheetComponent;
690
- }());
691
- 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 });
692
- 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 });
693
- __decorate([
694
- i3.tuiPure
695
- ], TuiSheetComponent.prototype, "context", null);
696
- __decorate([
697
- i3.tuiPure
698
- ], TuiSheetComponent.prototype, "getStops", null);
699
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetComponent, decorators: [{
700
- type: i0.Component,
701
- args: [{
702
- selector: 'tui-sheet',
703
- templateUrl: './sheet.template.html',
704
- styleUrls: ['./sheet.style.less'],
705
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
706
- providers: TUI_SHEET_PROVIDERS,
707
- host: {
708
- role: 'dialog',
709
- '[attr.aria-labelledby]': 'id',
710
- '[class._ios]': 'isIos',
711
- // '[class._stuck]': 'true', // Initially disable snapping for Firefox
712
- '[$.class._stuck]': 'stuck$',
713
- '($.class._stuck)': 'stuck$',
714
- },
715
- animations: [i1.tuiSlideInTop],
716
- }]
717
- }], ctorParameters: function () {
718
- return [{ type: i1__namespace$1.Observable, decorators: [{
719
- type: i0.Inject,
720
- args: [TUI_SHEET_SCROLL]
721
- }] }, { type: i0__namespace.ElementRef, decorators: [{
722
- type: i0.Inject,
723
- args: [i0.ElementRef]
724
- }] }, { type: i0__namespace.NgZone, decorators: [{
725
- type: i0.Inject,
726
- args: [i0.NgZone]
727
- }] }, { type: undefined, decorators: [{
728
- type: i0.Inject,
729
- args: [i3.TUI_IS_IOS]
730
- }] }, { type: i1__namespace$1.Observable, decorators: [{
731
- type: i0.Inject,
732
- args: [kit.TUI_MORE_WORD]
733
- }] }, { type: i1__namespace$1.Observable, decorators: [{
734
- type: i0.Self
735
- }, {
736
- type: i0.Inject,
737
- args: [i3.TuiDestroyService]
738
- }] }];
739
- }, propDecorators: { sheet: [{
740
- type: i0.ViewChild,
741
- args: ['sheet']
742
- }], content: [{
743
- type: i0.ViewChild,
744
- args: ['content']
745
- }], stopsRefs: [{
746
- type: i0.ViewChildren,
747
- args: ['stops']
748
- }], item: [{
749
- type: i0.Input
750
- }], context: [], onId: [{
751
- type: i0.HostListener,
752
- args: [TUI_SHEET_ID, ['$event.detail']]
753
- }], 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: [] } });
754
900
 
755
- /**
756
- * @deprecated: drop in v4.0
757
- */
758
- var TUI_SHEET_DEFAULT_OPTIONS = {
759
- image: '',
760
- imageSlide: true,
761
- stops: [],
762
- initial: 0,
763
- offset: 16,
764
- closeable: true,
765
- overlay: false,
766
- };
767
- /**
768
- * @deprecated: drop in v4.0
769
- * Default parameters for sheet component
770
- */
771
- 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));
772
918
 
773
- /**
774
- * @deprecated: use {@link TuiSheetDialogService}
775
- * drop in v4.0
776
- */
777
- var TuiSheetService = /** @class */ (function () {
778
- function TuiSheetService(doc, options) {
779
- this.doc = doc;
780
- this.options = options;
781
- this.sheets$ = new i1$1.BehaviorSubject([]);
782
- }
783
- TuiSheetService.prototype.open = function (content, options) {
784
- var _this = this;
785
- if (options === void 0) { options = {}; }
786
- return new i1$1.Observable(function ($implicit) {
787
- var completeWith = function (result) {
788
- $implicit.next(result);
789
- $implicit.complete();
790
- };
791
- var sheet = Object.assign(Object.assign(Object.assign({}, _this.options), options), { content: content, completeWith: completeWith, $implicit: $implicit, scroll$: i1$1.EMPTY });
792
- var focused = i3.tuiGetNativeFocused(_this.doc);
793
- if (i3.tuiIsHTMLElement(focused) && sheet.overlay) {
794
- focused.blur();
795
- }
796
- _this.sheets$.next(__spreadArray(__spreadArray([], __read(_this.sheets$.value)), [sheet]));
797
- return function () {
798
- _this.sheets$.next(_this.sheets$.value.filter(function (item) { return item !== sheet; }));
799
- };
800
- });
801
- };
802
- return TuiSheetService;
803
- }());
804
- 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 });
805
- TuiSheetService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, providedIn: 'root' });
806
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetService, decorators: [{
807
- type: i0.Injectable,
808
- args: [{
809
- providedIn: 'root',
810
- }]
811
- }], ctorParameters: function () {
812
- return [{ type: Document, decorators: [{
813
- type: i0.Inject,
814
- args: [i2.DOCUMENT]
815
- }] }, { type: undefined, decorators: [{
816
- type: i0.Inject,
817
- args: [TUI_SHEET_OPTIONS]
818
- }] }];
819
- } });
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
+ } });
820
966
 
821
- // Safety offset for shadow
822
- var OFFSET = 16;
823
- function processDragged(dragged$, scroll$) {
824
- var touchstart$ = dragged$.pipe(operators.filter(Boolean));
825
- var touchend$ = dragged$.pipe(operators.filter(i3.tuiIsFalsy));
826
- var race$ = i1$1.race(scroll$, i1$1.timer(100)).pipe(operators.debounceTime(200), operators.take(1), operators.map(i3.ALWAYS_FALSE_HANDLER));
827
- return touchstart$.pipe(operators.switchMap(function () { return touchend$.pipe(operators.switchMap(function () { return race$; }), operators.startWith(true)); }), operators.startWith(false));
828
- }
829
- var TuiSheetWrapperDirective = /** @class */ (function () {
830
- function TuiSheetWrapperDirective(zone, win) {
831
- this.zone = zone;
832
- this.win = win;
833
- this.tuiSheetWrapper = 16;
834
- }
835
- Object.defineProperty(TuiSheetWrapperDirective.prototype, "overlay$", {
836
- get: function () {
837
- var _this = this;
838
- return this.scroll$.pipe(operators.map(function (y) { return y + 16 > _this.win.innerHeight - _this.tuiSheetWrapper; }), operators.distinctUntilChanged(), i3.tuiZonefull(this.zone));
839
- },
840
- enumerable: false,
841
- configurable: true
842
- });
843
- Object.defineProperty(TuiSheetWrapperDirective.prototype, "visible$", {
844
- get: function () {
845
- return processDragged(this.dragged$, this.scroll$).pipe(operators.distinctUntilChanged(), i3.tuiZonefull(this.zone));
846
- },
847
- enumerable: false,
848
- configurable: true
849
- });
850
- Object.defineProperty(TuiSheetWrapperDirective.prototype, "height$", {
851
- get: function () {
852
- return this.scroll$.pipe(operators.map(this.getHeight.bind(this)));
853
- },
854
- enumerable: false,
855
- configurable: true
856
- });
857
- TuiSheetWrapperDirective.prototype.getHeight = function (value) {
858
- var _a;
859
- return ((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.context.overlay)
860
- ? null
861
- : i3.tuiClamp(this.withImage(value) + OFFSET, OFFSET, this.win.innerHeight);
862
- };
863
- TuiSheetWrapperDirective.prototype.withImage = function (value) {
864
- var _a;
865
- return !((_a = this.sheet) === null || _a === void 0 ? void 0 : _a.imageStop) || Math.floor(value) > this.sheet.imageStop
866
- ? value
867
- : value - this.sheet.imageHeight;
868
- };
869
- return TuiSheetWrapperDirective;
870
- }());
871
- 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 });
872
- 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 });
873
- __decorate([
874
- i3.tuiPure
875
- ], TuiSheetWrapperDirective.prototype, "overlay$", null);
876
- __decorate([
877
- i3.tuiPure
878
- ], TuiSheetWrapperDirective.prototype, "visible$", null);
879
- __decorate([
880
- i3.tuiPure
881
- ], TuiSheetWrapperDirective.prototype, "height$", null);
882
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetWrapperDirective, decorators: [{
883
- type: i0.Directive,
884
- args: [{
885
- selector: '[tuiSheetWrapper]',
886
- exportAs: 'tuiSheetWrapper',
887
- }]
888
- }], ctorParameters: function () {
889
- return [{ type: i0__namespace.NgZone, decorators: [{
890
- type: i0.Inject,
891
- args: [i0.NgZone]
892
- }] }, { type: Window, decorators: [{
893
- type: i0.Inject,
894
- args: [common.WINDOW]
895
- }] }];
896
- }, propDecorators: { sheet: [{
897
- type: i0.ContentChild,
898
- args: [TuiSheetComponent]
899
- }], dragged$: [{
900
- type: i0.ContentChild,
901
- args: [TuiSheetComponent, { read: TUI_SHEET_DRAGGED, static: true }]
902
- }], scroll$: [{
903
- type: i0.ContentChild,
904
- args: [TuiSheetComponent, { read: TUI_SHEET_SCROLL, static: true }]
905
- }], tuiSheetWrapper: [{
906
- type: i0.Input
907
- }], 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$: [] } });
908
1054
 
909
- var TuiSheetCloseDirective = /** @class */ (function () {
910
- function TuiSheetCloseDirective(zone, dragged$, scroll$, win, el, sheet) {
911
- var _this = this;
912
- this.zone = zone;
913
- this.dragged$ = dragged$;
914
- this.scroll$ = scroll$;
915
- this.win = win;
916
- this.el = el;
917
- this.sheet = sheet;
918
- 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)));
919
- }
920
- TuiSheetCloseDirective.prototype.shouldClose = function (scrollTop) {
921
- var height = Math.min(this.win.innerHeight, this.el.nativeElement.scrollHeight - this.win.innerHeight);
922
- var min = Math.min(height, this.sheet.stops[0] || Infinity);
923
- return scrollTop < min / 2;
924
- };
925
- return TuiSheetCloseDirective;
926
- }());
927
- 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 });
928
- 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 });
929
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetCloseDirective, decorators: [{
930
- type: i0.Directive,
931
- args: [{
932
- selector: 'tui-sheet[close]',
933
- }]
934
- }], ctorParameters: function () {
935
- return [{ type: i0__namespace.NgZone, decorators: [{
936
- type: i0.Inject,
937
- args: [i0.NgZone]
938
- }] }, { type: i1__namespace$1.Observable, decorators: [{
939
- type: i0.Inject,
940
- args: [TUI_SHEET_DRAGGED]
941
- }] }, { type: i1__namespace$1.Observable, decorators: [{
942
- type: i0.Inject,
943
- args: [TUI_SHEET_SCROLL]
944
- }] }, { type: Window, decorators: [{
945
- type: i0.Inject,
946
- args: [common.WINDOW]
947
- }] }, { type: i0__namespace.ElementRef, decorators: [{
948
- type: i0.Inject,
949
- args: [i0.ElementRef]
950
- }] }, { type: TuiSheetComponent, decorators: [{
951
- type: i0.Inject,
952
- args: [TuiSheetComponent]
953
- }] }];
954
- }, propDecorators: { close: [{
955
- type: i0.Output
956
- }] } });
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
+ }] } });
957
1103
 
958
- var TuiSheetsHostComponent = /** @class */ (function () {
959
- function TuiSheetsHostComponent(options, service, height$, destroy$, cdr) {
960
- this.options = options;
961
- this.service = service;
962
- this.height$ = height$;
963
- this.destroy$ = destroy$;
964
- this.cdr = cdr;
965
- this.sheets = [];
966
- }
967
- TuiSheetsHostComponent.prototype.ngOnInit = function () {
968
- var _this = this;
969
- // Due to this view being parallel to app content, `markForCheck` from `async` pipe
970
- // can happen after view was checked, so calling `detectChanges` instead
971
- this.service.sheets$.pipe(operators.takeUntil(this.destroy$)).subscribe(function (sheets) {
972
- _this.sheets = sheets;
973
- _this.cdr.detectChanges();
974
- });
975
- };
976
- TuiSheetsHostComponent.prototype.close = function (_a) {
977
- var closeable = _a.closeable, $implicit = _a.$implicit;
978
- if (closeable) {
979
- $implicit.complete();
980
- }
981
- };
982
- return TuiSheetsHostComponent;
983
- }());
984
- 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 });
985
- 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 });
986
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetsHostComponent, decorators: [{
987
- type: i0.Component,
988
- args: [{
989
- selector: 'tui-sheets-host',
990
- templateUrl: './sheets-host.template.html',
991
- styleUrls: ['./sheets-host.style.less'],
992
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
993
- providers: [i3.TuiDestroyService],
994
- animations: [i1.tuiSlideInTop, i1.tuiFadeIn],
995
- }]
996
- }], ctorParameters: function () {
997
- return [{ type: undefined, decorators: [{
998
- type: i0.Inject,
999
- args: [i1.TUI_ANIMATION_OPTIONS]
1000
- }] }, { type: TuiSheetService, decorators: [{
1001
- type: i0.Inject,
1002
- args: [TuiSheetService]
1003
- }] }, { type: i1__namespace$1.Observable, decorators: [{
1004
- type: i0.Inject,
1005
- args: [i3.TUI_WINDOW_HEIGHT]
1006
- }] }, { type: i1__namespace$1.Observable, decorators: [{
1007
- type: i0.Self
1008
- }, {
1009
- type: i0.Inject,
1010
- args: [i3.TuiDestroyService]
1011
- }] }, { type: i0__namespace.ChangeDetectorRef, decorators: [{
1012
- type: i0.Inject,
1013
- args: [i0.ChangeDetectorRef]
1014
- }] }];
1015
- } });
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
+ } });
1016
1162
 
1017
- /**
1018
- * @deprecated: use {@link TuiSheetDialogDirective}
1019
- * drop in v4.0
1020
- */
1021
- var TuiSheetDirective = /** @class */ (function (_super) {
1022
- __extends(TuiSheetDirective, _super);
1023
- function TuiSheetDirective(cdr, templateRef, service) {
1024
- var _this = _super.call(this, templateRef, cdr) || this;
1025
- _this.service = service;
1026
- _this.open$ = new i1$1.Subject();
1027
- _this.options = {};
1028
- _this.tuiSheetChange = _this.open$.pipe(i3.tuiIfMap(function () { return _this.service.open(_this, _this.options).pipe(operators.ignoreElements(), operators.endWith(false)); }), operators.share());
1029
- return _this;
1030
- }
1031
- Object.defineProperty(TuiSheetDirective.prototype, "tuiSheet", {
1032
- set: function (open) {
1033
- this.open$.next(open);
1034
- },
1035
- enumerable: false,
1036
- configurable: true
1037
- });
1038
- return TuiSheetDirective;
1039
- }(i5.PolymorpheusTemplate));
1040
- 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 });
1041
- 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 });
1042
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetDirective, decorators: [{
1043
- type: i0.Directive,
1044
- args: [{
1045
- selector: 'ng-template[tuiSheet]',
1046
- }]
1047
- }], ctorParameters: function () {
1048
- return [{ type: i0__namespace.ChangeDetectorRef, decorators: [{
1049
- type: i0.Inject,
1050
- args: [i0.ChangeDetectorRef]
1051
- }] }, { type: i0__namespace.TemplateRef, decorators: [{
1052
- type: i0.Inject,
1053
- args: [i0.TemplateRef]
1054
- }] }, { type: TuiSheetService, decorators: [{
1055
- type: i0.Inject,
1056
- args: [TuiSheetService]
1057
- }] }];
1058
- }, propDecorators: { options: [{
1059
- type: i0.Input,
1060
- args: ['tuiSheetOptions']
1061
- }], tuiSheet: [{
1062
- type: i0.Input
1063
- }], tuiSheetChange: [{
1064
- type: i0.Output
1065
- }] } });
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
+ }] } });
1066
1212
 
1067
- /**
1068
- * @deprecated: use {@link TuiSheetDialogModule}
1069
- * drop in v4.0
1070
- */
1071
- var TuiSheetModule = /** @class */ (function () {
1072
- function TuiSheetModule() {
1073
- }
1074
- return TuiSheetModule;
1075
- }());
1076
- TuiSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1077
- TuiSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, declarations: [TuiSheetsHostComponent,
1078
- TuiSheetComponent,
1079
- TuiSheetBarComponent,
1080
- TuiSheetHeadingComponent,
1081
- TuiSheetTopDirective,
1082
- TuiSheetDirective,
1083
- TuiSheetWrapperDirective,
1084
- TuiSheetCloseDirective,
1085
- TuiSheetStopDirective], imports: [i2.CommonModule,
1086
- i5.PolymorpheusModule,
1087
- i3.TuiLetModule,
1088
- i1.TuiButtonModule,
1089
- i3.TuiOverscrollModule,
1090
- i1.TuiScrollbarModule], exports: [TuiSheetsHostComponent,
1091
- TuiSheetComponent,
1092
- TuiSheetHeadingComponent,
1093
- TuiSheetDirective] });
1094
- TuiSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, imports: [[
1095
- i2.CommonModule,
1096
- i5.PolymorpheusModule,
1097
- i3.TuiLetModule,
1098
- i1.TuiButtonModule,
1099
- i3.TuiOverscrollModule,
1100
- i1.TuiScrollbarModule,
1101
- ]] });
1102
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TuiSheetModule, decorators: [{
1103
- type: i0.NgModule,
1104
- args: [{
1105
- imports: [
1106
- i2.CommonModule,
1107
- i5.PolymorpheusModule,
1108
- i3.TuiLetModule,
1109
- i1.TuiButtonModule,
1110
- i3.TuiOverscrollModule,
1111
- i1.TuiScrollbarModule,
1112
- ],
1113
- declarations: [
1114
- TuiSheetsHostComponent,
1115
- TuiSheetComponent,
1116
- TuiSheetBarComponent,
1117
- TuiSheetHeadingComponent,
1118
- TuiSheetTopDirective,
1119
- TuiSheetDirective,
1120
- TuiSheetWrapperDirective,
1121
- TuiSheetCloseDirective,
1122
- TuiSheetStopDirective,
1123
- ],
1124
- exports: [
1125
- TuiSheetsHostComponent,
1126
- TuiSheetComponent,
1127
- TuiSheetHeadingComponent,
1128
- TuiSheetDirective,
1129
- ],
1130
- schemas: [i0.NO_ERRORS_SCHEMA],
1131
- }]
1132
- }] });
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
+ }] });
1133
1279
 
1134
- /**
1135
- * Generated bundle index. Do not edit.
1136
- */
1280
+ /**
1281
+ * Generated bundle index. Do not edit.
1282
+ */
1137
1283
 
1138
- exports.TUI_SHEET_CLOSE = TUI_SHEET_CLOSE;
1139
- exports.TUI_SHEET_DEFAULT_OPTIONS = TUI_SHEET_DEFAULT_OPTIONS;
1140
- exports.TUI_SHEET_ID = TUI_SHEET_ID;
1141
- exports.TUI_SHEET_OPTIONS = TUI_SHEET_OPTIONS;
1142
- exports.TUI_SHEET_PROVIDERS = TUI_SHEET_PROVIDERS;
1143
- exports.TuiSheetBarComponent = TuiSheetBarComponent;
1144
- exports.TuiSheetCloseDirective = TuiSheetCloseDirective;
1145
- exports.TuiSheetComponent = TuiSheetComponent;
1146
- exports.TuiSheetDirective = TuiSheetDirective;
1147
- exports.TuiSheetHeadingComponent = TuiSheetHeadingComponent;
1148
- exports.TuiSheetModule = TuiSheetModule;
1149
- exports.TuiSheetService = TuiSheetService;
1150
- exports.TuiSheetStopDirective = TuiSheetStopDirective;
1151
- exports.TuiSheetTopDirective = TuiSheetTopDirective;
1152
- exports.TuiSheetWrapperDirective = TuiSheetWrapperDirective;
1153
- exports.TuiSheetsHostComponent = TuiSheetsHostComponent;
1154
- 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;
1155
1301
 
1156
- Object.defineProperty(exports, '__esModule', { value: true });
1302
+ Object.defineProperty(exports, '__esModule', { value: true });
1157
1303
 
1158
1304
  }));
1159
1305
  //# sourceMappingURL=taiga-ui-addon-mobile-components-sheet.umd.js.map