@taiga-ui/addon-mobile 2.52.0 → 2.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js +1 -0
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-mobile-calendar.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js +1 -0
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-pull-to-refresh.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js +5 -0
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-components-sheet.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js +2 -0
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-directives-ripple.umd.min.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.js +6 -0
- package/bundles/taiga-ui-addon-mobile-utils.umd.js.map +1 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.min.js +1 -1
- package/bundles/taiga-ui-addon-mobile-utils.umd.min.js.map +1 -1
- package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json +1 -1
- package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json +1 -1
- package/components/sheet/taiga-ui-addon-mobile-components-sheet.metadata.json +1 -1
- package/directives/ripple/taiga-ui-addon-mobile-directives-ripple.metadata.json +1 -1
- package/esm2015/components/mobile-calendar/mobile-calendar.providers.js +2 -1
- package/esm2015/components/pull-to-refresh/pull-to-refresh.providers.js +2 -1
- package/esm2015/components/sheet/components/sheet/sheet.providers.js +3 -1
- package/esm2015/components/sheet/ios.hacks.js +4 -1
- package/esm2015/directives/ripple/ripple.providers.js +3 -1
- package/esm2015/utils/find-touch-index.js +6 -1
- package/esm5/components/mobile-calendar/mobile-calendar.providers.js +2 -1
- package/esm5/components/pull-to-refresh/pull-to-refresh.providers.js +2 -1
- package/esm5/components/sheet/components/sheet/sheet.providers.js +3 -1
- package/esm5/components/sheet/ios.hacks.js +4 -1
- package/esm5/directives/ripple/ripple.providers.js +3 -1
- package/esm5/utils/find-touch-index.js +6 -1
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -0
- package/fesm2015/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js +5 -0
- package/fesm2015/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js +2 -0
- package/fesm2015/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.js +6 -1
- package/fesm2015/taiga-ui-addon-mobile-utils.js.map +1 -1
- package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js +1 -0
- package/fesm5/taiga-ui-addon-mobile-components-mobile-calendar.js.map +1 -1
- package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js +1 -0
- package/fesm5/taiga-ui-addon-mobile-components-pull-to-refresh.js.map +1 -1
- package/fesm5/taiga-ui-addon-mobile-components-sheet.js +5 -0
- package/fesm5/taiga-ui-addon-mobile-components-sheet.js.map +1 -1
- package/fesm5/taiga-ui-addon-mobile-directives-ripple.js +2 -0
- package/fesm5/taiga-ui-addon-mobile-directives-ripple.js.map +1 -1
- package/fesm5/taiga-ui-addon-mobile-utils.js +6 -1
- package/fesm5/taiga-ui-addon-mobile-utils.js.map +1 -1
- package/package.json +4 -4
- package/utils/find-touch-index.d.ts +4 -0
- package/utils/taiga-ui-addon-mobile-utils.metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/addon-mobile/directives/ripple/ripple.providers.ts","ng://@taiga-ui/addon-mobile/directives/ripple/ripple-styles.component.ts","ng://@taiga-ui/addon-mobile/directives/ripple/ripple.directive.ts","ng://@taiga-ui/addon-mobile/directives/ripple/ripple.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","TUI_RIPPLE_START","InjectionToken","TUI_RIPPLE_END","TUI_RIPPLE_PROVIDERS","TuiDestroyService","provide","deps","TUI_TOUCH_SUPPORTED","TUI_IS_IOS","ElementRef","Renderer2","useFactory","rippleStartFactory","rippleEndFactory","touchSupported","isIOS","_a","renderer","nativeElement","EMPTY","typedFromEvent","pipe","map","touches","_b","clientX","clientY","_c","getBoundingClientRect","width","height","top","left","radius","Math","sqrt","dimension","x","y","ripple","createElement","addClass","setAttribute","destroy$","filter","animationName","isPresent","takeUntil","TuiRippleStylesComponent","Component","template","encapsulation","ViewEncapsulation","None","TuiRippleDirective","directiveStyles","start$","end$","_this","this","addComponent","touchEnd$","touchMove$","subscribe","element","removeChild","mergeMap","animationEndOn$","race","timer","mapTo","take","tap","setStyle","tuiRipple","appendChild","switchMap","isTap","switchMapTo","type","Inject","args","TuiDirectiveStylesService","Observable","Input","Directive","selector","providers","TuiRippleModule","NgModule","declarations","exports","entryComponents"],"mappings":"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","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {ElementRef, InjectionToken, Provider, Renderer2} from '@angular/core';\nimport {\n isPresent,\n TUI_IS_IOS,\n TUI_TOUCH_SUPPORTED,\n TuiDestroyService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {EMPTY, Observable} from 'rxjs';\nimport {filter, map, takeUntil} from 'rxjs/operators';\n\nexport const RIPPLE_ON = 'tuiRippleOn';\nexport const RIPPLE_OFF = 'tuiRippleOff';\nexport const TUI_RIPPLE_START = new InjectionToken<Observable<HTMLElement>>(\n 'Stream of ripple elements to add',\n);\nexport const TUI_RIPPLE_END = new InjectionToken<Observable<HTMLElement>>(\n 'Stream of ripple elements to remove',\n);\nexport const TUI_RIPPLE_PROVIDERS: Provider[] = [\n TuiDestroyService,\n {\n provide: TUI_RIPPLE_START,\n deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, Renderer2],\n useFactory: rippleStartFactory,\n },\n {\n provide: TUI_RIPPLE_END,\n deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, TuiDestroyService],\n useFactory: rippleEndFactory,\n },\n];\n\nexport function rippleStartFactory(\n touchSupported: boolean,\n isIOS: boolean,\n {nativeElement}: ElementRef<HTMLElement>,\n renderer: Renderer2,\n): Observable<HTMLElement> {\n return isIOS || !touchSupported\n ? EMPTY\n : typedFromEvent(nativeElement, 'touchstart').pipe(\n map(({touches}) => {\n const {clientX, clientY} = touches[touches.length - 1];\n const {width, height, top, left} =\n nativeElement.getBoundingClientRect();\n const radius = Math.sqrt(width * width + height * height);\n const dimension = radius * 2;\n const x = clientX - left - radius;\n const y = clientY - top - radius;\n const ripple = renderer.createElement('div');\n\n renderer.addClass(ripple, 'tui-ripple');\n renderer.setAttribute(\n ripple,\n 'style',\n `\n width: ${dimension}px;\n height: ${dimension}px;\n left: ${x}px;\n top: ${y}px;\n animation-name: ${RIPPLE_ON};\n `,\n );\n\n return ripple;\n }),\n );\n}\n\nexport function rippleEndFactory(\n touchSupported: boolean,\n isIOS: boolean,\n {nativeElement}: ElementRef<HTMLElement>,\n destroy$: Observable<void>,\n): Observable<EventTarget> {\n return isIOS || !touchSupported\n ? EMPTY\n : typedFromEvent(nativeElement, 'animationend').pipe(\n filter(({animationName}) => animationName === RIPPLE_OFF),\n map(({target}) => target),\n filter(isPresent),\n takeUntil(destroy$),\n );\n}\n","import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./ripple.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiRippleStylesComponent {}\n","import {Directive, ElementRef, Inject, Input, Renderer2} from '@angular/core';\nimport {\n TuiDestroyService,\n TuiDirectiveStylesService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {Observable, race, timer} from 'rxjs';\nimport {\n mapTo,\n mergeMap,\n switchMap,\n switchMapTo,\n take,\n takeUntil,\n tap,\n} from 'rxjs/operators';\n\nimport {\n RIPPLE_OFF,\n TUI_RIPPLE_END,\n TUI_RIPPLE_PROVIDERS,\n TUI_RIPPLE_START,\n} from './ripple.providers';\nimport {TuiRippleStylesComponent} from './ripple-styles.component';\n\nconst TOUCH_MOVE_DELAY = 100;\n\n@Directive({\n selector: '[tuiRipple]',\n providers: TUI_RIPPLE_PROVIDERS,\n})\nexport class TuiRippleDirective {\n @Input()\n tuiRipple?: string;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n @Inject(TUI_RIPPLE_START) start$: Observable<HTMLElement>,\n @Inject(TUI_RIPPLE_END) end$: Observable<EventTarget>,\n ) {\n directiveStyles.addComponent(TuiRippleStylesComponent);\n\n const touchEnd$ = typedFromEvent(nativeElement, 'touchend');\n const touchMove$ = typedFromEvent(nativeElement, 'touchmove');\n\n end$.subscribe(element => {\n renderer.removeChild(nativeElement, element);\n });\n start$\n .pipe(\n mergeMap(ripple => {\n const animationEndOn$ = typedFromEvent(ripple, 'animationend');\n\n return race(\n timer(TOUCH_MOVE_DELAY).pipe(mapTo(false)),\n touchEnd$.pipe(mapTo(true)),\n ).pipe(\n take(1),\n // eslint-disable-next-line rxjs/no-unsafe-takeuntil\n takeUntil(touchMove$),\n tap(() => {\n renderer.setStyle(\n ripple,\n 'background',\n this.tuiRipple || null,\n );\n renderer.appendChild(nativeElement, ripple);\n }),\n switchMap(isTap =>\n isTap\n ? animationEndOn$\n : race<unknown>(\n touchEnd$.pipe(switchMapTo(animationEndOn$)),\n animationEndOn$.pipe(switchMapTo(touchEnd$)),\n ),\n ),\n mapTo(ripple),\n );\n }),\n takeUntil(destroy$),\n )\n .subscribe(element => {\n renderer.setStyle(element, 'animationName', RIPPLE_OFF);\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRippleDirective} from './ripple.directive';\nimport {TuiRippleStylesComponent} from './ripple-styles.component';\n\n@NgModule({\n declarations: [TuiRippleDirective, TuiRippleStylesComponent],\n exports: [TuiRippleDirective],\n entryComponents: [TuiRippleStylesComponent],\n})\nexport class TuiRippleModule {}\n"]}
|
|
1
|
+
{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","ng://@taiga-ui/addon-mobile/directives/ripple/ripple.providers.ts","ng://@taiga-ui/addon-mobile/directives/ripple/ripple-styles.component.ts","ng://@taiga-ui/addon-mobile/directives/ripple/ripple.directive.ts","ng://@taiga-ui/addon-mobile/directives/ripple/ripple.module.ts"],"names":["__decorate","decorators","target","key","desc","d","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__param","paramIndex","decorator","create","TUI_RIPPLE_START","InjectionToken","TUI_RIPPLE_END","TUI_RIPPLE_PROVIDERS","TuiDestroyService","provide","deps","TUI_TOUCH_SUPPORTED","TUI_IS_IOS","ElementRef","Renderer2","useFactory","rippleStartFactory","rippleEndFactory","touchSupported","isIOS","_a","renderer","nativeElement","EMPTY","typedFromEvent","pipe","map","touches","_b","clientX","clientY","_c","getBoundingClientRect","width","height","top","left","radius","Math","sqrt","dimension","x","y","ripple","createElement","addClass","setAttribute","destroy$","filter","animationName","isPresent","takeUntil","TuiRippleStylesComponent","Component","template","encapsulation","ViewEncapsulation","None","TuiRippleDirective","directiveStyles","start$","end$","_this","this","addComponent","touchEnd$","touchMove$","subscribe","element","removeChild","mergeMap","animationEndOn$","race","timer","mapTo","take","tap","setStyle","tuiRipple","appendChild","switchMap","isTap","switchMapTo","type","Inject","args","TuiDirectiveStylesService","Observable","Input","Directive","selector","providers","TuiRippleModule","NgModule","declarations","exports","entryComponents"],"mappings":"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","sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n 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; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n 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);\r\n 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); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import {ElementRef, InjectionToken, Provider, Renderer2} from '@angular/core';\nimport {\n isPresent,\n TUI_IS_IOS,\n TUI_TOUCH_SUPPORTED,\n TuiDestroyService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {EMPTY, Observable} from 'rxjs';\nimport {filter, map, takeUntil} from 'rxjs/operators';\n\nexport const RIPPLE_ON = 'tuiRippleOn';\nexport const RIPPLE_OFF = 'tuiRippleOff';\nexport const TUI_RIPPLE_START = new InjectionToken<Observable<HTMLElement>>(\n 'Stream of ripple elements to add',\n);\nexport const TUI_RIPPLE_END = new InjectionToken<Observable<HTMLElement>>(\n 'Stream of ripple elements to remove',\n);\nexport const TUI_RIPPLE_PROVIDERS: Provider[] = [\n TuiDestroyService,\n {\n provide: TUI_RIPPLE_START,\n deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, Renderer2],\n useFactory: rippleStartFactory,\n },\n {\n provide: TUI_RIPPLE_END,\n deps: [TUI_TOUCH_SUPPORTED, TUI_IS_IOS, ElementRef, TuiDestroyService],\n useFactory: rippleEndFactory,\n },\n];\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function rippleStartFactory(\n touchSupported: boolean,\n isIOS: boolean,\n {nativeElement}: ElementRef<HTMLElement>,\n renderer: Renderer2,\n): Observable<HTMLElement> {\n return isIOS || !touchSupported\n ? EMPTY\n : typedFromEvent(nativeElement, 'touchstart').pipe(\n map(({touches}) => {\n const {clientX, clientY} = touches[touches.length - 1];\n const {width, height, top, left} =\n nativeElement.getBoundingClientRect();\n const radius = Math.sqrt(width * width + height * height);\n const dimension = radius * 2;\n const x = clientX - left - radius;\n const y = clientY - top - radius;\n const ripple = renderer.createElement('div');\n\n renderer.addClass(ripple, 'tui-ripple');\n renderer.setAttribute(\n ripple,\n 'style',\n `\n width: ${dimension}px;\n height: ${dimension}px;\n left: ${x}px;\n top: ${y}px;\n animation-name: ${RIPPLE_ON};\n `,\n );\n\n return ripple;\n }),\n );\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function rippleEndFactory(\n touchSupported: boolean,\n isIOS: boolean,\n {nativeElement}: ElementRef<HTMLElement>,\n destroy$: Observable<void>,\n): Observable<EventTarget> {\n return isIOS || !touchSupported\n ? EMPTY\n : typedFromEvent(nativeElement, 'animationend').pipe(\n filter(({animationName}) => animationName === RIPPLE_OFF),\n map(({target}) => target),\n filter(isPresent),\n takeUntil(destroy$),\n );\n}\n","import {Component, ViewEncapsulation} from '@angular/core';\n\n@Component({\n template: '',\n styleUrls: ['./ripple.style.less'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class TuiRippleStylesComponent {}\n","import {Directive, ElementRef, Inject, Input, Renderer2} from '@angular/core';\nimport {\n TuiDestroyService,\n TuiDirectiveStylesService,\n typedFromEvent,\n} from '@taiga-ui/cdk';\nimport {Observable, race, timer} from 'rxjs';\nimport {\n mapTo,\n mergeMap,\n switchMap,\n switchMapTo,\n take,\n takeUntil,\n tap,\n} from 'rxjs/operators';\n\nimport {\n RIPPLE_OFF,\n TUI_RIPPLE_END,\n TUI_RIPPLE_PROVIDERS,\n TUI_RIPPLE_START,\n} from './ripple.providers';\nimport {TuiRippleStylesComponent} from './ripple-styles.component';\n\nconst TOUCH_MOVE_DELAY = 100;\n\n@Directive({\n selector: '[tuiRipple]',\n providers: TUI_RIPPLE_PROVIDERS,\n})\nexport class TuiRippleDirective {\n @Input()\n tuiRipple?: string;\n\n constructor(\n @Inject(ElementRef) {nativeElement}: ElementRef<HTMLElement>,\n @Inject(TuiDirectiveStylesService) directiveStyles: TuiDirectiveStylesService,\n @Inject(Renderer2) renderer: Renderer2,\n @Inject(TuiDestroyService) destroy$: TuiDestroyService,\n @Inject(TUI_RIPPLE_START) start$: Observable<HTMLElement>,\n @Inject(TUI_RIPPLE_END) end$: Observable<EventTarget>,\n ) {\n directiveStyles.addComponent(TuiRippleStylesComponent);\n\n const touchEnd$ = typedFromEvent(nativeElement, 'touchend');\n const touchMove$ = typedFromEvent(nativeElement, 'touchmove');\n\n end$.subscribe(element => {\n renderer.removeChild(nativeElement, element);\n });\n start$\n .pipe(\n mergeMap(ripple => {\n const animationEndOn$ = typedFromEvent(ripple, 'animationend');\n\n return race(\n timer(TOUCH_MOVE_DELAY).pipe(mapTo(false)),\n touchEnd$.pipe(mapTo(true)),\n ).pipe(\n take(1),\n // eslint-disable-next-line rxjs/no-unsafe-takeuntil\n takeUntil(touchMove$),\n tap(() => {\n renderer.setStyle(\n ripple,\n 'background',\n this.tuiRipple || null,\n );\n renderer.appendChild(nativeElement, ripple);\n }),\n switchMap(isTap =>\n isTap\n ? animationEndOn$\n : race<unknown>(\n touchEnd$.pipe(switchMapTo(animationEndOn$)),\n animationEndOn$.pipe(switchMapTo(touchEnd$)),\n ),\n ),\n mapTo(ripple),\n );\n }),\n takeUntil(destroy$),\n )\n .subscribe(element => {\n renderer.setStyle(element, 'animationName', RIPPLE_OFF);\n });\n }\n}\n","import {NgModule} from '@angular/core';\n\nimport {TuiRippleDirective} from './ripple.directive';\nimport {TuiRippleStylesComponent} from './ripple-styles.component';\n\n@NgModule({\n declarations: [TuiRippleDirective, TuiRippleStylesComponent],\n exports: [TuiRippleDirective],\n entryComponents: [TuiRippleStylesComponent],\n})\nexport class TuiRippleModule {}\n"]}
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
(global = global || self, factory((global['taiga-ui'] = global['taiga-ui'] || {}, global['taiga-ui']['addon-mobile'] = global['taiga-ui']['addon-mobile'] || {}, global['taiga-ui']['addon-mobile'].utils = {})));
|
|
5
5
|
}(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated: use {@link tuiFindTouchIndex} instead
|
|
9
|
+
*/
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
11
|
function findTouchIndex(touches, id) {
|
|
8
12
|
for (var i = 0; i < touches.length; i++) {
|
|
9
13
|
var identifier = touches[i].identifier;
|
|
@@ -13,8 +17,10 @@
|
|
|
13
17
|
}
|
|
14
18
|
return -1;
|
|
15
19
|
}
|
|
20
|
+
var tuiFindTouchIndex = findTouchIndex;
|
|
16
21
|
|
|
17
22
|
exports.findTouchIndex = findTouchIndex;
|
|
23
|
+
exports.tuiFindTouchIndex = tuiFindTouchIndex;
|
|
18
24
|
|
|
19
25
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
20
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-addon-mobile-utils.umd.js","sources":["ng://@taiga-ui/addon-mobile/utils/find-touch-index.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"taiga-ui-addon-mobile-utils.umd.js","sources":["ng://@taiga-ui/addon-mobile/utils/find-touch-index.ts"],"sourcesContent":["/**\n * @deprecated: use {@link tuiFindTouchIndex} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function findTouchIndex(touches: TouchList, id: number): number {\n for (let i = 0; i < touches.length; i++) {\n const {identifier} = touches[i];\n\n if (identifier === id) {\n return i;\n }\n }\n\n return -1;\n}\n\nexport const tuiFindTouchIndex = findTouchIndex;\n"],"names":[],"mappings":";;;;;;IAAA;;;IAGA;aACgB,cAAc,CAAC,OAAkB,EAAE,EAAU;QACzD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9B,IAAA,kCAAU,CAAe;YAEhC,IAAI,UAAU,KAAK,EAAE,EAAE;gBACnB,OAAO,CAAC,CAAC;aACZ;SACJ;QAED,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;QAEY,iBAAiB,GAAG;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define("@taiga-ui/addon-mobile/utils",["exports"],i):i(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"]["addon-mobile"]=e["taiga-ui"]["addon-mobile"]||{},e["taiga-ui"]["addon-mobile"].utils={}))}(this,(function(e){"use strict";
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define("@taiga-ui/addon-mobile/utils",["exports"],i):i(((e=e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"]["addon-mobile"]=e["taiga-ui"]["addon-mobile"]||{},e["taiga-ui"]["addon-mobile"].utils={}))}(this,(function(e){"use strict";function i(e,i){for(var t=0;t<e.length;t++){if(e[t].identifier===i)return t}return-1}var t=i;e.findTouchIndex=i,e.tuiFindTouchIndex=t,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=taiga-ui-addon-mobile-utils.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["ng://@taiga-ui/addon-mobile/utils/find-touch-index.ts"],"names":["touches","id","i","length","identifier"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["ng://@taiga-ui/addon-mobile/utils/find-touch-index.ts"],"names":["findTouchIndex","touches","id","i","length","identifier","tuiFindTouchIndex"],"mappings":"yWAIgBA,EAAeC,EAAoBC,GAC/C,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAQG,OAAQD,IAAK,CAGrC,GAFOF,EAAAE,GAAAE,aAEYH,EACf,OAAOC,EAIf,OAAQ,MAGCG,EAAoBN","sourcesContent":["/**\n * @deprecated: use {@link tuiFindTouchIndex} instead\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function findTouchIndex(touches: TouchList, id: number): number {\n for (let i = 0; i < touches.length; i++) {\n const {identifier} = touches[i];\n\n if (identifier === id) {\n return i;\n }\n }\n\n return -1;\n}\n\nexport const tuiFindTouchIndex = findTouchIndex;\n"]}
|
package/components/mobile-calendar/taiga-ui-addon-mobile-components-mobile-calendar.metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TuiMobileCalendarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":58,"character":1},"arguments":[{"selector":"tui-mobile-calendar","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":62,"character":21},"member":"OnPush"},"providers":{"__symbolic":"reference","name":"TUI_MOBILE_CALENDAR_PROVIDERS"},"host":{"[class._ios]":"isIOS","$quoted$":["[class._ios]"]},"template":"<header class=\"t-header\">\n <button\n tuiIconButton\n type=\"button\"\n automation-id=\"tui-mobile-calendar__cancel\"\n icon=\"tuiIconRemoveLarge\"\n shape=\"rounded\"\n appearance=\"\"\n tuiRipple\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{ cancelWord$ | async }}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n automation-id=\"tui-mobile-calendar__label\"\n class=\"t-label\"\n >\n {{ single ? texts[0] : texts[1] }}\n </h2>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n automation-id=\"tui-mobile-calendar__confirm\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{ doneWord$ | async }}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n orientation=\"horizontal\"\n class=\"t-years\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n class=\"t-year\"\n [attr.data-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{ index }}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div\n *ngFor=\"let day of weekDays$ | async\"\n class=\"t-day\"\n >\n {{ day }}\n </div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{ month | tuiMonth | async }}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [month]=\"month\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper:min:max\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n","styles":[":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--tui-text-01);-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:var(--tui-link)}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{position:relative;overflow:hidden;flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap}.t-label:after{content:'';position:absolute;top:0;right:0;width:1.875rem;height:100%;background-image:linear-gradient(to right,transparent 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%);pointer-events:none;background-image:linear-gradient(to right,rgba(255,255,255,0) 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%)}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}:host-context([data-mode=onDark]) .t-label:after{background-image:linear-gradient(to right,rgba(34,34,34,0) 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%)}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:var(--tui-base-01);box-shadow:0 .5px var(--tui-base-03)}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;line-height:inherit;outline:0;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-state=active]{color:var(--tui-link);opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:var(--tui-text-02)}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px var(--tui-base-03);overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}"]}]}],"members":{"yearsScrollRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":67,"character":5},"arguments":["yearsScrollRef"]}]}],"monthsScrollRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":70,"character":5},"arguments":["monthsScrollRef"]}]}],"single":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":78,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":82,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":86,"character":5}}]}],"disabledItemHandler":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":90,"character":5}}]}],"cancel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":93,"character":5}}]}],"confirm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":96,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":113,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":113,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":114,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":114,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":115,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":115,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":117,"character":9},"arguments":[{"__symbolic":"reference","name":"TUI_VALUE_STREAM"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":118,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_CLOSE_WORD","line":118,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":119,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_CANCEL_WORD","line":119,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":120,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_DONE_WORD","line":120,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":121,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_ORDERED_SHORT_WEEK_DAYS","line":121,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":125,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_CHOOSE_DAY_OR_RANGE_TEXTS","line":125,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"error","message":"Could not resolve type","line":114,"character":56,"context":{"typeName":"Document"},"module":"./mobile-calendar.component"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":116,"character":35},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"onClose":[{"__symbolic":"method"}],"onConfirm":[{"__symbolic":"method"}],"onDayClick":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"onMonthChange":[{"__symbolic":"method"}],"setYear":[{"__symbolic":"method"}],"getYearsViewportSize":[{"__symbolic":"method"}],"updateViewportDimension":[{"__symbolic":"method"}],"lateInit":[{"__symbolic":"method"}],"waitScrolledChange":[{"__symbolic":"method"}],"initYearScroll":[{"__symbolic":"method"}],"initMonthScroll":[{"__symbolic":"method"}],"scrollToActiveYear":[{"__symbolic":"method"}],"scrollToActiveMonth":[{"__symbolic":"method"}],"isYearActive":[{"__symbolic":"method"}],"monthToYear":[{"__symbolic":"method"}],"getMonthOffset":[{"__symbolic":"method"}]}},"SCROLL_DEBOUNCE_TIME":80,"YEARS_IN_ROW":5,"STARTING_YEAR":1900,"RANGE":196,"BUFFER":500,"ANDROID_LABEL":64,"ANDROID_WEEK":48,"IOS_LABEL":50,"IOS_WEEK":50,"YEARLY_CYCLE":28,"ANDROID_CYCLE":{"__symbolic":"error","message":"Reference to a non-exported function","line":15,"character":9,"context":{"name":"getCycle"},"module":"./mobile-calendar.const"},"IOS_CYCLE":{"__symbolic":"error","message":"Reference to a non-exported function","line":15,"character":9,"context":{"name":"getCycle"},"module":"./mobile-calendar.const"},"TuiMobileCalendarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":8},{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"ScrollingModule","line":14,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/directives/touchable","name":"TuiTouchableModule","line":15,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/directives/ripple","name":"TuiRippleModule","line":16,"character":8},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiMapperPipeModule","line":17,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiLinkModule","line":18,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/internal/primitive-calendar-mobile","name":"TuiPrimitiveCalendarMobileModule","line":19,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiButtonModule","line":20,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiMonthPipeModule","line":21,"character":8}],"declarations":[{"__symbolic":"reference","name":"TuiMobileCalendarComponent"}],"exports":[{"__symbolic":"reference","name":"TuiMobileCalendarComponent"}]}]}],"members":{}},"TUI_VALUE_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":36},"arguments":["Stream for updating value"]},"TUI_MOBILE_CALENDAR_PROVIDERS":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":19,"character":4},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiScrollService","line":20,"character":4},{"provide":{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"VIRTUAL_SCROLL_STRATEGY","line":22,"character":17},"deps":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":23,"character":15},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiScrollService","line":23,"character":27}],"useClass":{"__symbolic":"reference","name":"TuiMobileCalendarStrategy"}},{"provide":{"__symbolic":"reference","name":"TUI_VALUE_STREAM"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":29,"character":17}},{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_CALENDAR_DATA_STREAM","line":29,"character":29}],{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":30,"character":12},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":31,"character":12}],"useFactory":{"__symbolic":"reference","name":"valueStreamFactory"}}],"valueStreamFactory":{"__symbolic":"function","parameters":["value$","destroy$","changeDetectorRef"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"value$"},"right":{"__symbolic":"reference","module":"rxjs","name":"EMPTY","line":42,"character":22}},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"watch","line":42,"character":34},"arguments":[{"__symbolic":"reference","name":"changeDetectorRef"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"takeUntil","line":42,"character":60},"arguments":[{"__symbolic":"reference","name":"destroy$"}]}]}},"TuiMobileCalendarStrategy":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiScrollService","line":50,"character":40}]}],"scrolledIndexChange":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":53,"character":5}]}],"attach":[{"__symbolic":"method"}],"detach":[{"__symbolic":"method"}],"onContentScrolled":[{"__symbolic":"method"}],"onDataLengthChanged":[{"__symbolic":"method"}],"onContentRendered":[{"__symbolic":"method"}],"onRenderedOffsetChanged":[{"__symbolic":"method"}],"scrollToIndex":[{"__symbolic":"method"}],"getOffsetForIndex":[{"__symbolic":"method"}],"getIndexForOffset":[{"__symbolic":"method"}],"computeHeight":[{"__symbolic":"method"}],"updateRenderedRange":[{"__symbolic":"method"}]}}},"origins":{"TuiMobileCalendarComponent":"./mobile-calendar.component","SCROLL_DEBOUNCE_TIME":"./mobile-calendar.const","YEARS_IN_ROW":"./mobile-calendar.const","STARTING_YEAR":"./mobile-calendar.const","RANGE":"./mobile-calendar.const","BUFFER":"./mobile-calendar.const","ANDROID_LABEL":"./mobile-calendar.const","ANDROID_WEEK":"./mobile-calendar.const","IOS_LABEL":"./mobile-calendar.const","IOS_WEEK":"./mobile-calendar.const","YEARLY_CYCLE":"./mobile-calendar.const","ANDROID_CYCLE":"./mobile-calendar.const","IOS_CYCLE":"./mobile-calendar.const","TuiMobileCalendarModule":"./mobile-calendar.module","TUI_VALUE_STREAM":"./mobile-calendar.providers","TUI_MOBILE_CALENDAR_PROVIDERS":"./mobile-calendar.providers","valueStreamFactory":"./mobile-calendar.providers","TuiMobileCalendarStrategy":"./mobile-calendar.strategy"},"importAs":"@taiga-ui/addon-mobile/components/mobile-calendar"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TuiMobileCalendarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":58,"character":1},"arguments":[{"selector":"tui-mobile-calendar","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":62,"character":21},"member":"OnPush"},"providers":{"__symbolic":"reference","name":"TUI_MOBILE_CALENDAR_PROVIDERS"},"host":{"[class._ios]":"isIOS","$quoted$":["[class._ios]"]},"template":"<header class=\"t-header\">\n <button\n tuiIconButton\n type=\"button\"\n automation-id=\"tui-mobile-calendar__cancel\"\n icon=\"tuiIconRemoveLarge\"\n shape=\"rounded\"\n appearance=\"\"\n tuiRipple\n class=\"t-close\"\n [title]=\"closeWord$ | async\"\n (click)=\"onClose()\"\n ></button>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n class=\"t-link t-link_close\"\n (click)=\"onClose()\"\n >\n {{ cancelWord$ | async }}\n </button>\n <h2\n *ngIf=\"chooseDayOrRangeTexts$ | async as texts\"\n automation-id=\"tui-mobile-calendar__label\"\n class=\"t-label\"\n >\n {{ single ? texts[0] : texts[1] }}\n </h2>\n <button\n tuiLink\n tuiTouchable=\"opacity\"\n type=\"button\"\n automation-id=\"tui-mobile-calendar__confirm\"\n class=\"t-link\"\n (click)=\"onConfirm()\"\n >\n {{ doneWord$ | async }}\n </button>\n</header>\n<cdk-virtual-scroll-viewport\n #yearsScrollRef\n orientation=\"horizontal\"\n class=\"t-years\"\n [itemSize]=\"yearWidth\"\n>\n <div class=\"t-years-wrapper\">\n <button\n *cdkVirtualFor=\"let index of years\"\n class=\"t-year\"\n [attr.data-state]=\"getState(index)\"\n (click)=\"setYear(index)\"\n >\n {{ index }}\n </button>\n </div>\n</cdk-virtual-scroll-viewport>\n<div class=\"t-week\">\n <div\n *ngFor=\"let day of weekDays$ | async\"\n class=\"t-day\"\n >\n {{ day }}\n </div>\n</div>\n<cdk-virtual-scroll-viewport\n #monthsScrollRef\n class=\"t-months\"\n (scrolledIndexChange)=\"onMonthChange($event)\"\n>\n <section\n *cdkVirtualFor=\"let month of months; templateCacheSize: 10\"\n class=\"t-month-wrapper\"\n >\n <h2 class=\"t-month\">{{ month | tuiMonth | async }}</h2>\n <tui-primitive-calendar-mobile\n class=\"t-calendar\"\n [month]=\"month\"\n [value]=\"value\"\n [disabledItemHandler]=\"disabledItemHandler | tuiMapper: disabledItemHandlerMapper:min:max\"\n (dayClick)=\"onDayClick($event)\"\n ></tui-primitive-calendar-mobile>\n </section>\n</cdk-virtual-scroll-viewport>\n","styles":[":host{display:block;height:100%;font-family:-apple-system,BlinkMacSystemFont,Roboto,sans-serif;color:var(--tui-text-01);-webkit-tap-highlight-color:transparent}.t-header{position:relative;display:flex;align-items:center;height:3.5rem;padding:0 1rem;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-header{height:2.75rem;border-bottom:none}.t-close{width:1.5rem;height:1.5rem;margin-right:2rem}:host._ios .t-close{display:none}.t-link{margin-left:auto;flex-shrink:0;font-size:.875rem;line-height:1rem;font-weight:500;text-transform:uppercase;color:var(--tui-link)}.t-link_close{display:none}:host._ios .t-link{min-width:3.75rem;text-align:right;font-size:.9375rem;line-height:1.125rem;font-weight:400;letter-spacing:.018125rem;text-transform:none}:host._ios .t-link_close{display:block;margin:0 auto 0 0;text-align:left}.t-label{position:relative;overflow:hidden;flex-grow:1;margin:0;font-size:1.25rem;line-height:3.5rem;font-weight:500;letter-spacing:-.0125rem;white-space:nowrap}.t-label:after{content:'';position:absolute;top:0;right:0;width:1.875rem;height:100%;background-image:linear-gradient(to right,transparent 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%);pointer-events:none;background-image:linear-gradient(to right,rgba(255,255,255,0) 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%)}:host._ios .t-label{font-size:1.0625rem;font-weight:600;letter-spacing:-.025625rem;text-align:center}:host-context([data-mode=onDark]) .t-label:after{background-image:linear-gradient(to right,rgba(34,34,34,0) 0,var(--tui-base-01) 80%,var(--tui-base-01) 100%)}.t-years{scrollbar-width:none;-ms-overflow-style:none;height:4.0625rem;background-color:var(--tui-base-01);box-shadow:0 .5px var(--tui-base-03)}.t-years::-webkit-scrollbar,.t-years::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-years{background-color:transparent}.t-years-wrapper{display:flex;height:4.0625rem}.t-year{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:0 0;line-height:inherit;outline:0;width:20vw;flex-shrink:0;font-size:.9375rem;font-weight:700;letter-spacing:.015625rem;cursor:pointer;opacity:.1;transform:scale(.73);transition:color,opacity,transform .2s}.t-year[data-state=adjacent]{transform:scale(.86);opacity:.3}.t-year[data-state=active]{color:var(--tui-link);opacity:1;transform:scale(1)}.t-week{display:flex;align-items:center;height:1.875rem;width:20.75rem;max-width:100%;margin:0 auto;font-size:.75rem}:host._ios .t-week{width:22.625rem;font-size:.6875rem;font-weight:500;color:var(--tui-text-02)}.t-day{flex:1;text-align:center}.t-months{scrollbar-width:none;-ms-overflow-style:none;height:calc(100% - 9.5rem);box-shadow:0 -1px var(--tui-base-03);overflow-x:hidden}.t-months::-webkit-scrollbar,.t-months::-webkit-scrollbar-thumb{background:0 0;width:0;height:0}:host._ios .t-months{height:calc(100% - 8.75rem)}.t-month-wrapper{margin:.625rem 0 -.625rem}.t-month{height:2.75rem;line-height:2.75rem;padding-left:1rem;font-size:.875rem;font-weight:500;text-transform:uppercase;margin:0 0 1.25rem;box-sizing:border-box;border-bottom:.5px solid var(--tui-base-03)}:host._ios .t-month{height:3.125rem;margin:0;border-bottom:none;text-transform:none;font-size:1.375rem;line-height:3.125rem;letter-spacing:.02rem;font-weight:700}.t-calendar{margin:0 auto;font-family:inherit;font-size:1.125rem;transition:opacity .2s}:host._ios .t-calendar{font-size:1.0625rem}"]}]}],"members":{"yearsScrollRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":67,"character":5},"arguments":["yearsScrollRef"]}]}],"monthsScrollRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":70,"character":5},"arguments":["monthsScrollRef"]}]}],"single":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":77,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":78,"character":5}}]}],"min":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":81,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":82,"character":5}}]}],"max":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":85,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":86,"character":5}}]}],"disabledItemHandler":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":89,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiDefaultProp","line":90,"character":5}}]}],"cancel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":93,"character":5}}]}],"confirm":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":96,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":113,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":113,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":114,"character":9},"arguments":[{"__symbolic":"reference","module":"@angular/common","name":"DOCUMENT","line":114,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":115,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":115,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":117,"character":9},"arguments":[{"__symbolic":"reference","name":"TUI_VALUE_STREAM"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":118,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_CLOSE_WORD","line":118,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":119,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_CANCEL_WORD","line":119,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":120,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_DONE_WORD","line":120,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":121,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/core","name":"TUI_ORDERED_SHORT_WEEK_DAYS","line":121,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":125,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_CHOOSE_DAY_OR_RANGE_TEXTS","line":125,"character":16}]}]],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"error","message":"Could not resolve type","line":114,"character":56,"context":{"typeName":"Document"},"module":"./mobile-calendar.component"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":116,"character":35},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"error","message":"Expression form not supported","line":126,"character":52,"module":"./mobile-calendar.component"}]}]}],"ngAfterViewInit":[{"__symbolic":"method"}],"onClose":[{"__symbolic":"method"}],"onConfirm":[{"__symbolic":"method"}],"onDayClick":[{"__symbolic":"method"}],"getState":[{"__symbolic":"method"}],"onMonthChange":[{"__symbolic":"method"}],"setYear":[{"__symbolic":"method"}],"getYearsViewportSize":[{"__symbolic":"method"}],"updateViewportDimension":[{"__symbolic":"method"}],"lateInit":[{"__symbolic":"method"}],"waitScrolledChange":[{"__symbolic":"method"}],"initYearScroll":[{"__symbolic":"method"}],"initMonthScroll":[{"__symbolic":"method"}],"scrollToActiveYear":[{"__symbolic":"method"}],"scrollToActiveMonth":[{"__symbolic":"method"}],"isYearActive":[{"__symbolic":"method"}],"monthToYear":[{"__symbolic":"method"}],"getMonthOffset":[{"__symbolic":"method"}]}},"SCROLL_DEBOUNCE_TIME":80,"YEARS_IN_ROW":5,"STARTING_YEAR":1900,"RANGE":196,"BUFFER":500,"ANDROID_LABEL":64,"ANDROID_WEEK":48,"IOS_LABEL":50,"IOS_WEEK":50,"YEARLY_CYCLE":28,"ANDROID_CYCLE":{"__symbolic":"error","message":"Reference to a non-exported function","line":15,"character":9,"context":{"name":"getCycle"},"module":"./mobile-calendar.const"},"IOS_CYCLE":{"__symbolic":"error","message":"Reference to a non-exported function","line":15,"character":9,"context":{"name":"getCycle"},"module":"./mobile-calendar.const"},"TuiMobileCalendarModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":8},{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"ScrollingModule","line":14,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/directives/touchable","name":"TuiTouchableModule","line":15,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/directives/ripple","name":"TuiRippleModule","line":16,"character":8},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiMapperPipeModule","line":17,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiLinkModule","line":18,"character":8},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/internal/primitive-calendar-mobile","name":"TuiPrimitiveCalendarMobileModule","line":19,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiButtonModule","line":20,"character":8},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiMonthPipeModule","line":21,"character":8}],"declarations":[{"__symbolic":"reference","name":"TuiMobileCalendarComponent"}],"exports":[{"__symbolic":"reference","name":"TuiMobileCalendarComponent"}]}]}],"members":{}},"TUI_VALUE_STREAM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":36},"arguments":["Stream for updating value"]},"TUI_MOBILE_CALENDAR_PROVIDERS":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":19,"character":4},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiScrollService","line":20,"character":4},{"provide":{"__symbolic":"reference","module":"@angular/cdk/scrolling","name":"VIRTUAL_SCROLL_STRATEGY","line":22,"character":17},"deps":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":23,"character":15},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiScrollService","line":23,"character":27}],"useClass":{"__symbolic":"reference","name":"TuiMobileCalendarStrategy"}},{"provide":{"__symbolic":"reference","name":"TUI_VALUE_STREAM"},"deps":[[{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":29,"character":17}},{"__symbolic":"reference","module":"@taiga-ui/kit","name":"TUI_CALENDAR_DATA_STREAM","line":29,"character":29}],{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":30,"character":12},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":31,"character":12}],"useFactory":{"__symbolic":"reference","name":"valueStreamFactory"}}],"valueStreamFactory":{"__symbolic":"function","parameters":["value$","destroy$","changeDetectorRef"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"binop","operator":"||","left":{"__symbolic":"reference","name":"value$"},"right":{"__symbolic":"reference","module":"rxjs","name":"EMPTY","line":43,"character":22}},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"watch","line":43,"character":34},"arguments":[{"__symbolic":"reference","name":"changeDetectorRef"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"takeUntil","line":43,"character":60},"arguments":[{"__symbolic":"reference","name":"destroy$"}]}]}},"TuiMobileCalendarStrategy":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiScrollService","line":50,"character":40}]}],"scrolledIndexChange":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":53,"character":5}]}],"attach":[{"__symbolic":"method"}],"detach":[{"__symbolic":"method"}],"onContentScrolled":[{"__symbolic":"method"}],"onDataLengthChanged":[{"__symbolic":"method"}],"onContentRendered":[{"__symbolic":"method"}],"onRenderedOffsetChanged":[{"__symbolic":"method"}],"scrollToIndex":[{"__symbolic":"method"}],"getOffsetForIndex":[{"__symbolic":"method"}],"getIndexForOffset":[{"__symbolic":"method"}],"computeHeight":[{"__symbolic":"method"}],"updateRenderedRange":[{"__symbolic":"method"}]}}},"origins":{"TuiMobileCalendarComponent":"./mobile-calendar.component","SCROLL_DEBOUNCE_TIME":"./mobile-calendar.const","YEARS_IN_ROW":"./mobile-calendar.const","STARTING_YEAR":"./mobile-calendar.const","RANGE":"./mobile-calendar.const","BUFFER":"./mobile-calendar.const","ANDROID_LABEL":"./mobile-calendar.const","ANDROID_WEEK":"./mobile-calendar.const","IOS_LABEL":"./mobile-calendar.const","IOS_WEEK":"./mobile-calendar.const","YEARLY_CYCLE":"./mobile-calendar.const","ANDROID_CYCLE":"./mobile-calendar.const","IOS_CYCLE":"./mobile-calendar.const","TuiMobileCalendarModule":"./mobile-calendar.module","TUI_VALUE_STREAM":"./mobile-calendar.providers","TUI_MOBILE_CALENDAR_PROVIDERS":"./mobile-calendar.providers","valueStreamFactory":"./mobile-calendar.providers","TuiMobileCalendarStrategy":"./mobile-calendar.strategy"},"importAs":"@taiga-ui/addon-mobile/components/mobile-calendar"}
|
package/components/pull-to-refresh/taiga-ui-addon-mobile-components-pull-to-refresh.metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"TuiMobileLoaderAndroidComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"tui-mobile-android-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":11,"character":21},"member":"OnPush"},"template":"<svg\n *ngIf=\"pulled !== 100; else loading\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n [attr.transform]=\"transform\"\n>\n <defs>\n <mask id=\"mask-1\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z\"\n fill=\"white\"\n />\n </mask>\n </defs>\n <g mask=\"url(#mask-1)\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z\"\n fill=\"black\"\n />\n </g>\n</svg>\n<ng-template #loading>\n <svg\n viewBox=\"0 0 100 100\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-loading\"\n >\n <circle\n cx=\"50\"\n cy=\"50\"\n r=\"50\"\n stroke-dasharray=\"314\"\n class=\"t-circle\"\n ></circle>\n </svg>\n</ng-template>\n","styles":[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:flex;height:2.25rem;width:2.25rem;background-color:#fff;border-radius:6.25rem;align-items:center;justify-content:center}:host._hidden{visibility:hidden;transition:none}.t-loading{display:block;width:1rem;border-radius:100%;-webkit-animation:3s linear infinite tuiLoaderRotate;animation:3s linear infinite tuiLoaderRotate}.t-circle{fill:none;stroke:var(--tui-text-01);stroke-width:1.5rem;-webkit-animation:3s linear infinite tuiLoaderDashOffset;animation:3s linear infinite tuiLoaderDashOffset}"]}]}],"members":{"pulled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":5}}]}],"hidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":26,"character":5},"arguments":["class._hidden"]}]}]}},"TuiMobileLoaderIOSComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"tui-mobile-ios-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":10,"character":16}],"template":"<svg\n width=\"36\"\n height=\"36\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"xMidYMid\"\n>\n <ng-container *tuiRepeatTimes=\"let index of steps\">\n <g\n *ngIf=\"isShown(index)\"\n [attr.transform]=\"calculateTransform(index)\"\n >\n <rect\n x=\"47\"\n y=\"22\"\n rx=\"7.05\"\n ry=\"3.3\"\n width=\"6\"\n height=\"16\"\n fill=\"#c7c9cc\"\n >\n <animate\n *ngIf=\"finished\"\n attributeName=\"opacity\"\n values=\"1;0\"\n keyTimes=\"0;1\"\n dur=\"1s\"\n repeatCount=\"indefinite\"\n [attr.begin]=\"calculateAnimationBegin(index)\"\n ></animate>\n </rect>\n </g>\n </ng-container>\n</svg>\n"}]}],"members":{"pulled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":5}}]}],"isShown":[{"__symbolic":"method"}],"calculateTransform":[{"__symbolic":"method"}],"calculateAnimationBegin":[{"__symbolic":"method"}]}},"TuiPullToRefreshComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"tui-pull-to-refresh","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"TUI_PULL_TO_REFRESH_PROVIDERS"}],"template":"<div\n tuiOverscroll\n [class.t-drop-animation]=\"dropped$ | async\"\n [style.transform]=\"contentTransform$ | async\"\n>\n <ng-content></ng-content>\n</div>\n\n<tui-mobile-ios-loader\n *ngIf=\"isIOS; else androidLoader\"\n class=\"t-ios-spinner\"\n [pulled]=\"(pulledInPercent$ | async) || 0\"\n></tui-mobile-ios-loader>\n\n<ng-template #androidLoader>\n <tui-mobile-android-loader\n class=\"t-android-loader\"\n [class.t-drop-animation]=\"dropped$ | async\"\n [style.transform]=\"loaderTransform$ | async\"\n [pulled]=\"(pulledInPercent$ | async) || 0\"\n ></tui-mobile-android-loader>\n</ng-template>\n","styles":[":host{position:relative;display:block;overflow:hidden}.t-ios-spinner{position:absolute;top:-.5rem;left:50%;margin-left:-1.125rem}.t-android-loader{position:absolute;top:-1.5rem;left:50%;margin-left:-1.125rem}.t-drop-animation{transition:all var(--tui-duration) cubic-bezier(.4,0,.2,1)}"]}]}],"members":{"pulled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":53,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":53,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":54,"character":9},"arguments":[{"__symbolic":"reference","name":"TUI_PULLING"}]}]],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"reference","name":"number"}]}]}],"loaderTransform$":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":57,"character":5}]}]}},"TuiPullToRefreshModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":14},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiSvgModule","line":10,"character":28},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiOverscrollModule","line":10,"character":42},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiRepeatTimesModule","line":10,"character":63}],"declarations":[{"__symbolic":"reference","name":"TuiPullToRefreshComponent"},{"__symbolic":"reference","name":"TuiMobileLoaderAndroidComponent"},{"__symbolic":"reference","name":"TuiMobileLoaderIOSComponent"}],"exports":[{"__symbolic":"reference","name":"TuiPullToRefreshComponent"}]}]}],"members":{}},"MICRO_OFFSET":{"__symbolic":"binop","operator":"**","left":10,"right":-6},"PULLED_DISTANCE":50,"TUI_PULLING":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":31},"arguments":["Stream that emits content pulling"]},"TUI_PULL_TO_REFRESH_PROVIDERS":[{"provide":{"__symbolic":"reference","name":"TUI_PULLING"},"deps":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":16,"character":15},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/tokens","name":"TUI_LOADED","line":16,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":39}],"useFactory":{"__symbolic":"reference","name":"pullingFactory"}}],"pullingFactory":{"__symbolic":"function","parameters":["isIOS","loaded$","nativeElement"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs","name":"merge","line":26,"character":11},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"typedFromEvent","line":27,"character":8},"arguments":[{"__symbolic":"reference","name":"nativeElement"},"touchstart",{"passive":true}]},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"filter","line":28,"character":12},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":28,"character":19,"module":"./pull-to-refresh.providers"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"switchMap","line":29,"character":12},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":29,"character":22,"module":"./pull-to-refresh.providers"}]}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"loaded$"},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"mapTo","line":40,"character":21},"arguments":[{"__symbolic":"reference","name":"NaN"}]}]}]},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"scan","line":42,"character":8},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":42,"character":13,"module":"./pull-to-refresh.providers"},0]}]}}},"origins":{"TuiMobileLoaderAndroidComponent":"./loader-android/loader-android.component","TuiMobileLoaderIOSComponent":"./loader-ios/loader-ios.component","TuiPullToRefreshComponent":"./pull-to-refresh.component","TuiPullToRefreshModule":"./pull-to-refresh.module","MICRO_OFFSET":"./pull-to-refresh.providers","PULLED_DISTANCE":"./pull-to-refresh.providers","TUI_PULLING":"./pull-to-refresh.providers","TUI_PULL_TO_REFRESH_PROVIDERS":"./pull-to-refresh.providers","pullingFactory":"./pull-to-refresh.providers"},"importAs":"@taiga-ui/addon-mobile/components/pull-to-refresh"}
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"TuiMobileLoaderAndroidComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"tui-mobile-android-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":11,"character":21},"member":"OnPush"},"template":"<svg\n *ngIf=\"pulled !== 100; else loading\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n [attr.transform]=\"transform\"\n>\n <defs>\n <mask id=\"mask-1\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z\"\n fill=\"white\"\n />\n </mask>\n </defs>\n <g mask=\"url(#mask-1)\">\n <path\n fill-rule=\"evenodd\"\n clip-rule=\"evenodd\"\n d=\"M21 12C21 7.03 16.97 3 12 3C7.03 3 3 7.03 3 12C3 16.97 7.03 21 12 21C14.06 21 15.96 20.3 17.48 19.14L16.06 17.7C14.91 18.51 13.51 19 12 19C8.13 19 5 15.87 5 12C5 8.13 8.13 5 12 5C15.87 5 19 8.13 19 12H16L20 16L24 12H21Z\"\n fill=\"black\"\n />\n </g>\n</svg>\n<ng-template #loading>\n <svg\n viewBox=\"0 0 100 100\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"t-loading\"\n >\n <circle\n cx=\"50\"\n cy=\"50\"\n r=\"50\"\n stroke-dasharray=\"314\"\n class=\"t-circle\"\n ></circle>\n </svg>\n</ng-template>\n","styles":[":host{box-shadow:0 .5rem 1rem rgba(0,0,0,.16);display:flex;height:2.25rem;width:2.25rem;background-color:#fff;border-radius:6.25rem;align-items:center;justify-content:center}:host._hidden{visibility:hidden;transition:none}.t-loading{display:block;width:1rem;border-radius:100%;-webkit-animation:3s linear infinite tuiLoaderRotate;animation:3s linear infinite tuiLoaderRotate}.t-circle{fill:none;stroke:var(--tui-text-01);stroke-width:1.5rem;-webkit-animation:3s linear infinite tuiLoaderDashOffset;animation:3s linear infinite tuiLoaderDashOffset}"]}]}],"members":{"pulled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":5}}]}],"hidden":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":26,"character":5},"arguments":["class._hidden"]}]}]}},"TuiMobileLoaderIOSComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"tui-mobile-ios-loader","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":9,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiDestroyService","line":10,"character":16}],"template":"<svg\n width=\"36\"\n height=\"36\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"xMidYMid\"\n>\n <ng-container *tuiRepeatTimes=\"let index of steps\">\n <g\n *ngIf=\"isShown(index)\"\n [attr.transform]=\"calculateTransform(index)\"\n >\n <rect\n x=\"47\"\n y=\"22\"\n rx=\"7.05\"\n ry=\"3.3\"\n width=\"6\"\n height=\"16\"\n fill=\"#c7c9cc\"\n >\n <animate\n *ngIf=\"finished\"\n attributeName=\"opacity\"\n values=\"1;0\"\n keyTimes=\"0;1\"\n dur=\"1s\"\n repeatCount=\"indefinite\"\n [attr.begin]=\"calculateAnimationBegin(index)\"\n ></animate>\n </rect>\n </g>\n </ng-container>\n</svg>\n"}]}],"members":{"pulled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":5}}]}],"isShown":[{"__symbolic":"method"}],"calculateTransform":[{"__symbolic":"method"}],"calculateAnimationBegin":[{"__symbolic":"method"}]}},"TuiPullToRefreshComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":19,"character":1},"arguments":[{"selector":"tui-pull-to-refresh","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":23,"character":21},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"TUI_PULL_TO_REFRESH_PROVIDERS"}],"template":"<div\n tuiOverscroll\n [class.t-drop-animation]=\"dropped$ | async\"\n [style.transform]=\"contentTransform$ | async\"\n>\n <ng-content></ng-content>\n</div>\n\n<tui-mobile-ios-loader\n *ngIf=\"isIOS; else androidLoader\"\n class=\"t-ios-spinner\"\n [pulled]=\"(pulledInPercent$ | async) || 0\"\n></tui-mobile-ios-loader>\n\n<ng-template #androidLoader>\n <tui-mobile-android-loader\n class=\"t-android-loader\"\n [class.t-drop-animation]=\"dropped$ | async\"\n [style.transform]=\"loaderTransform$ | async\"\n [pulled]=\"(pulledInPercent$ | async) || 0\"\n ></tui-mobile-android-loader>\n</ng-template>\n","styles":[":host{position:relative;display:block;overflow:hidden}.t-ios-spinner{position:absolute;top:-.5rem;left:50%;margin-left:-1.125rem}.t-android-loader{position:absolute;top:-1.5rem;left:50%;margin-left:-1.125rem}.t-drop-animation{transition:all var(--tui-duration) cubic-bezier(.4,0,.2,1)}"]}]}],"members":{"pulled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":53,"character":9},"arguments":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":53,"character":16}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":54,"character":9},"arguments":[{"__symbolic":"reference","name":"TUI_PULLING"}]}]],"parameters":[{"__symbolic":"reference","name":"boolean"},{"__symbolic":"reference","name":"Observable","module":"rxjs","arguments":[{"__symbolic":"reference","name":"number"}]}]}],"loaderTransform$":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"tuiPure","line":57,"character":5}]}]}},"TuiPullToRefreshModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":14},{"__symbolic":"reference","module":"@taiga-ui/core","name":"TuiSvgModule","line":10,"character":28},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiOverscrollModule","line":10,"character":42},{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TuiRepeatTimesModule","line":10,"character":63}],"declarations":[{"__symbolic":"reference","name":"TuiPullToRefreshComponent"},{"__symbolic":"reference","name":"TuiMobileLoaderAndroidComponent"},{"__symbolic":"reference","name":"TuiMobileLoaderIOSComponent"}],"exports":[{"__symbolic":"reference","name":"TuiPullToRefreshComponent"}]}]}],"members":{}},"MICRO_OFFSET":{"__symbolic":"binop","operator":"**","left":10,"right":-6},"PULLED_DISTANCE":50,"TUI_PULLING":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":31},"arguments":["Stream that emits content pulling"]},"TUI_PULL_TO_REFRESH_PROVIDERS":[{"provide":{"__symbolic":"reference","name":"TUI_PULLING"},"deps":[{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"TUI_IS_IOS","line":16,"character":15},{"__symbolic":"reference","module":"@taiga-ui/addon-mobile/tokens","name":"TUI_LOADED","line":16,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":16,"character":39}],"useFactory":{"__symbolic":"reference","name":"pullingFactory"}}],"pullingFactory":{"__symbolic":"function","parameters":["isIOS","loaded$","nativeElement"],"value":{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs","name":"merge","line":27,"character":11},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@taiga-ui/cdk","name":"typedFromEvent","line":28,"character":8},"arguments":[{"__symbolic":"reference","name":"nativeElement"},"touchstart",{"passive":true}]},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"filter","line":29,"character":12},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":29,"character":19,"module":"./pull-to-refresh.providers"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"switchMap","line":30,"character":12},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":30,"character":22,"module":"./pull-to-refresh.providers"}]}]},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"loaded$"},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"mapTo","line":41,"character":21},"arguments":[{"__symbolic":"reference","name":"NaN"}]}]}]},"member":"pipe"},"arguments":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"rxjs/operators","name":"scan","line":43,"character":8},"arguments":[{"__symbolic":"error","message":"Lambda not supported","line":43,"character":13,"module":"./pull-to-refresh.providers"},0]}]}}},"origins":{"TuiMobileLoaderAndroidComponent":"./loader-android/loader-android.component","TuiMobileLoaderIOSComponent":"./loader-ios/loader-ios.component","TuiPullToRefreshComponent":"./pull-to-refresh.component","TuiPullToRefreshModule":"./pull-to-refresh.module","MICRO_OFFSET":"./pull-to-refresh.providers","PULLED_DISTANCE":"./pull-to-refresh.providers","TUI_PULLING":"./pull-to-refresh.providers","TUI_PULL_TO_REFRESH_PROVIDERS":"./pull-to-refresh.providers","pullingFactory":"./pull-to-refresh.providers"},"importAs":"@taiga-ui/addon-mobile/components/pull-to-refresh"}
|