mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
1 line
154 KiB
JSON
1 line
154 KiB
JSON
|
|
{"ast":null,"code":"import { __awaiter } from 'tslib';\nimport { HttpClient, HttpClientModule } from '@angular/common/http';\nimport { Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, Component, ElementRef, Renderer2, Input, Output, NgModule } from '@angular/core';\nimport { File } from '@ionic-native/file/ngx';\nimport { WebView } from '@ionic-native/ionic-webview/ngx';\nimport { Platform, IonicModule } from '@ionic/angular';\nimport { Subject, fromEvent } from 'rxjs';\nimport { first, take, filter } from 'rxjs/operators';\nimport { File as File$1 } from '@ionic-native/file/ngx/index';\nimport { WebView as WebView$1 } from '@ionic-native/ionic-webview/ngx/index';\nimport { CommonModule } from '@angular/common';\n\n/**\n * @fileoverview added by tsickle\n * Generated from: lib/services/image-loader-config.service.ts\n * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@ionic-native/file/ngx';\nimport * as ɵngcc2 from '@angular/common/http';\nimport * as ɵngcc3 from '@ionic/angular';\nimport * as ɵngcc4 from '@ionic-native/ionic-webview/ngx';\nimport * as ɵngcc5 from '@angular/common';\nfunction IonicImageLoaderComponent_ion_spinner_0_Template(rf, ctx) {\n if (rf & 1) {\n ɵngcc0.ɵɵelement(0, \"ion-spinner\", 1);\n }\n if (rf & 2) {\n const ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"name\", ctx_r0.spinnerName)(\"color\", ctx_r0.spinnerColor);\n }\n}\nconst _c0 = [\"*\"];\nclass ImageLoaderConfigService {\n constructor() {\n this.debugMode = false;\n this.spinnerEnabled = true;\n this.fallbackAsPlaceholder = false;\n this.backgroundSize = 'contain';\n this.backgroundRepeat = 'no-repeat';\n this.display = 'block';\n this.width = '100%';\n this.height = '100%';\n this.useImg = false;\n this.concurrency = 5;\n this.maxCacheSize = -1;\n this.maxCacheAge = -1;\n this.imageReturnType = 'uri';\n // Must be default 'true' for the new WebView to show images\n this.fileNameCachedWithExtension = true;\n this.fallbackFileNameCachedExtension = '.jpg';\n this.cacheDirectoryType = 'cache';\n this._cacheDirectoryName = 'image-loader-cache';\n }\n /**\n * @return {?}\n */\n get cacheDirectoryName() {\n return this._cacheDirectoryName;\n }\n /**\n * @param {?} name\n * @return {?}\n */\n set cacheDirectoryName(name) {\n name.replace(/\\W/g, '');\n this._cacheDirectoryName = name;\n }\n /**\n * Enables debug mode to receive console logs, errors, warnings\n * @return {?}\n */\n enableDebugMode() {\n this.debugMode = true;\n }\n /**\n * Enable/Disable the spinner by default. Defaults to true.\n * @param {?} enable set to true to enable\n * @return {?}\n */\n enableSpinner(enable) {\n this.spinnerEnabled = enable;\n }\n /**\n * Enable/Disable the fallback image as placeholder instead of the spinner. Defaults to false.\n * @param {?} enable set to true to enable\n * @return {?}\n */\n enableFallbackAsPlaceholder(enable) {\n this.fallbackAsPlaceholder = enable;\n }\n /**\n * Sets the cache directory name. Defaults to 'image-loader-cache'\n * @param {?} name name of directory\n * @return {?}\n */\n setCacheDirectoryName(name) {\n this.cacheDirectoryName = name;\n }\n /**\n * Set default height for images that are not using <img> tag\n * @param {?} height height\n * @return {?}\n */\n setHeight(height) {\n this.height = height;\n }\n /**\n * Set default width for images that are not using <img> tag\n * @param {?} width Width\n * @return {?}\n */\n setWidth(width) {\n this.width = width;\n }\n /**\n * Enable display mode for images that are not using <img> tag\n * @param {?} display Display mode\n * @return {?}\n */\n setDisplay(display) {\n this.display = display;\n }\n /**\n * Use <img> tag by default\n * @param {?} use set to true to use <img> tag by default\n * @
|