@absolutejs/absolute 0.19.0-beta.189 → 0.19.0-beta.190
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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/src/angular/index.js +52 -29249
- package/dist/src/angular/index.js.map +7 -7
- package/dist/src/angular/resolveAngularPackage.d.ts +7 -0
- package/dist/src/build.js +129 -29326
- package/dist/src/build.js.map +7 -7
- package/dist/src/index.js +143 -29340
- package/dist/src/index.js.map +7 -7
- package/package.json +1 -1
- package/.absolutejs/cache/angular-linker/158f5d2f54406892543656d582e21ae3.js +0 -381
- package/.absolutejs/cache/angular-linker/1d7d0bc01f6cc20c395ef4db9c650d0f.js +0 -314
- package/.absolutejs/cache/angular-linker/40154141000203d655aadbd789faf88b.js +0 -2836
- package/.absolutejs/cache/angular-linker/4de63c283da0f961c1a06e7d70ade436.js +0 -593
- package/.absolutejs/cache/angular-linker/632a6c2bd34d1659fd7bdd363a116781.js +0 -122
- package/.absolutejs/cache/angular-linker/63ed1410c0e3412b2e85125836ee21c1.js +0 -2029
- package/.absolutejs/cache/angular-linker/74f08c52f5a8513fd37c1627c364f298.js +0 -693
- package/.absolutejs/cache/angular-linker/b7a9e782fcfefd6aa8904e2619f4e503.js +0 -1348
- package/.absolutejs/cache/angular-linker/d27f508017fb07f5fd6a908e7a7dd5b7.js +0 -33
- package/.absolutejs/cache/angular-linker/df86b7673871f02c13eba6bdc09b4006.js +0 -2900
- package/.absolutejs/cert.pem +0 -11
- package/.absolutejs/eslint-cache +0 -1
- package/.absolutejs/key.pem +0 -5
- package/.absolutejs/prettier.cache.json +0 -219
|
@@ -1,593 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Angular v21.2.1
|
|
3
|
-
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
|
-
* License: MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
export { BrowserModule, bootstrapApplication, createApplication, platformBrowser, provideProtractorTestingSupport, BrowserDomAdapter as ɵBrowserDomAdapter, BrowserGetTestability as ɵBrowserGetTestability, KeyEventsPlugin as ɵKeyEventsPlugin } from './_browser-chunk.mjs';
|
|
8
|
-
import { ɵgetDOM as _getDOM, DOCUMENT } from '@angular/common';
|
|
9
|
-
export { ɵgetDOM } from '@angular/common';
|
|
10
|
-
import * as i0 from '@angular/core';
|
|
11
|
-
import { Injectable, Inject, ɵglobal as _global, ApplicationRef, InjectionToken, ɵConsole as _Console, Optional, Injector, NgModule, forwardRef, ɵRuntimeError as _RuntimeError, ɵXSS_SECURITY_URL as _XSS_SECURITY_URL, SecurityContext, ɵallowSanitizationBypassAndThrow as _allowSanitizationBypassAndThrow, ɵunwrapSafeValue as _unwrapSafeValue, ɵ_sanitizeUrl as __sanitizeUrl, ɵ_sanitizeHtml as __sanitizeHtml, ɵbypassSanitizationTrustHtml as _bypassSanitizationTrustHtml, ɵbypassSanitizationTrustStyle as _bypassSanitizationTrustStyle, ɵbypassSanitizationTrustScript as _bypassSanitizationTrustScript, ɵbypassSanitizationTrustUrl as _bypassSanitizationTrustUrl, ɵbypassSanitizationTrustResourceUrl as _bypassSanitizationTrustResourceUrl, ɵwithI18nSupport as _withI18nSupport, ɵwithEventReplay as _withEventReplay, ɵwithIncrementalHydration as _withIncrementalHydration, makeEnvironmentProviders, provideStabilityDebugging, ɵwithDomHydration as _withDomHydration, ENVIRONMENT_INITIALIZER, inject, ɵIS_ENABLED_BLOCKING_INITIAL_NAVIGATION as _IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, ɵformatRuntimeError as _formatRuntimeError, Version } from '@angular/core';
|
|
12
|
-
import { EventManagerPlugin, EVENT_MANAGER_PLUGINS } from './_dom_renderer-chunk.mjs';
|
|
13
|
-
export { EventManager, REMOVE_STYLES_ON_COMPONENT_DESTROY, DomEventsPlugin as ɵDomEventsPlugin, DomRendererFactory2 as ɵDomRendererFactory2, SharedStylesHost as ɵSharedStylesHost } from './_dom_renderer-chunk.mjs';
|
|
14
|
-
import { ɵwithHttpTransferCache as _withHttpTransferCache } from '@angular/common/http';
|
|
15
|
-
class Meta {
|
|
16
|
-
_doc;
|
|
17
|
-
_dom;
|
|
18
|
-
constructor(_doc) {
|
|
19
|
-
this._doc = _doc;
|
|
20
|
-
this._dom = _getDOM();
|
|
21
|
-
}
|
|
22
|
-
addTag(tag, forceCreation = false) {
|
|
23
|
-
if (!tag) return null;
|
|
24
|
-
return this._getOrCreateElement(tag, forceCreation);
|
|
25
|
-
}
|
|
26
|
-
addTags(tags, forceCreation = false) {
|
|
27
|
-
if (!tags) return [];
|
|
28
|
-
return tags.reduce((result, tag) => {
|
|
29
|
-
if (tag) {
|
|
30
|
-
result.push(this._getOrCreateElement(tag, forceCreation));
|
|
31
|
-
}
|
|
32
|
-
return result;
|
|
33
|
-
}, []);
|
|
34
|
-
}
|
|
35
|
-
getTag(attrSelector) {
|
|
36
|
-
if (!attrSelector) return null;
|
|
37
|
-
return this._doc.querySelector(`meta[${attrSelector}]`) || null;
|
|
38
|
-
}
|
|
39
|
-
getTags(attrSelector) {
|
|
40
|
-
if (!attrSelector) return [];
|
|
41
|
-
const list = this._doc.querySelectorAll(`meta[${attrSelector}]`);
|
|
42
|
-
return list ? [].slice.call(list) : [];
|
|
43
|
-
}
|
|
44
|
-
updateTag(tag, selector) {
|
|
45
|
-
if (!tag) return null;
|
|
46
|
-
selector = selector || this._parseSelector(tag);
|
|
47
|
-
const meta = this.getTag(selector);
|
|
48
|
-
if (meta) {
|
|
49
|
-
return this._setMetaElementAttributes(tag, meta);
|
|
50
|
-
}
|
|
51
|
-
return this._getOrCreateElement(tag, true);
|
|
52
|
-
}
|
|
53
|
-
removeTag(attrSelector) {
|
|
54
|
-
this.removeTagElement(this.getTag(attrSelector));
|
|
55
|
-
}
|
|
56
|
-
removeTagElement(meta) {
|
|
57
|
-
if (meta) {
|
|
58
|
-
this._dom.remove(meta);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
_getOrCreateElement(meta, forceCreation = false) {
|
|
62
|
-
if (!forceCreation) {
|
|
63
|
-
const selector = this._parseSelector(meta);
|
|
64
|
-
const elem = this.getTags(selector).filter(elem => this._containsAttributes(meta, elem))[0];
|
|
65
|
-
if (elem !== undefined) return elem;
|
|
66
|
-
}
|
|
67
|
-
const element = this._dom.createElement('meta');
|
|
68
|
-
this._setMetaElementAttributes(meta, element);
|
|
69
|
-
const head = this._doc.getElementsByTagName('head')[0];
|
|
70
|
-
head.appendChild(element);
|
|
71
|
-
return element;
|
|
72
|
-
}
|
|
73
|
-
_setMetaElementAttributes(tag, el) {
|
|
74
|
-
Object.keys(tag).forEach(prop => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));
|
|
75
|
-
return el;
|
|
76
|
-
}
|
|
77
|
-
_parseSelector(tag) {
|
|
78
|
-
const attr = tag.name ? 'name' : 'property';
|
|
79
|
-
return `${attr}="${tag[attr]}"`;
|
|
80
|
-
}
|
|
81
|
-
_containsAttributes(tag, elem) {
|
|
82
|
-
return Object.keys(tag).every(key => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);
|
|
83
|
-
}
|
|
84
|
-
_getMetaKeyMap(prop) {
|
|
85
|
-
return META_KEYS_MAP[prop] || prop;
|
|
86
|
-
}
|
|
87
|
-
static ɵfac = function Meta_Factory(__ngFactoryType__) {
|
|
88
|
-
return new (__ngFactoryType__ || Meta)(i0.ɵɵinject(DOCUMENT));
|
|
89
|
-
};
|
|
90
|
-
static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
|
|
91
|
-
token: Meta,
|
|
92
|
-
factory: Meta.ɵfac,
|
|
93
|
-
providedIn: 'root'
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
(() => {
|
|
97
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Meta, [{
|
|
98
|
-
type: Injectable,
|
|
99
|
-
args: [{
|
|
100
|
-
providedIn: 'root'
|
|
101
|
-
}]
|
|
102
|
-
}], () => [{
|
|
103
|
-
type: undefined,
|
|
104
|
-
decorators: [{
|
|
105
|
-
type: Inject,
|
|
106
|
-
args: [DOCUMENT]
|
|
107
|
-
}]
|
|
108
|
-
}], null);
|
|
109
|
-
})();
|
|
110
|
-
const META_KEYS_MAP = {
|
|
111
|
-
httpEquiv: 'http-equiv'
|
|
112
|
-
};
|
|
113
|
-
class Title {
|
|
114
|
-
_doc;
|
|
115
|
-
constructor(_doc) {
|
|
116
|
-
this._doc = _doc;
|
|
117
|
-
}
|
|
118
|
-
getTitle() {
|
|
119
|
-
return this._doc.title;
|
|
120
|
-
}
|
|
121
|
-
setTitle(newTitle) {
|
|
122
|
-
this._doc.title = newTitle || '';
|
|
123
|
-
}
|
|
124
|
-
static ɵfac = function Title_Factory(__ngFactoryType__) {
|
|
125
|
-
return new (__ngFactoryType__ || Title)(i0.ɵɵinject(DOCUMENT));
|
|
126
|
-
};
|
|
127
|
-
static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
|
|
128
|
-
token: Title,
|
|
129
|
-
factory: Title.ɵfac,
|
|
130
|
-
providedIn: 'root'
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
(() => {
|
|
134
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Title, [{
|
|
135
|
-
type: Injectable,
|
|
136
|
-
args: [{
|
|
137
|
-
providedIn: 'root'
|
|
138
|
-
}]
|
|
139
|
-
}], () => [{
|
|
140
|
-
type: undefined,
|
|
141
|
-
decorators: [{
|
|
142
|
-
type: Inject,
|
|
143
|
-
args: [DOCUMENT]
|
|
144
|
-
}]
|
|
145
|
-
}], null);
|
|
146
|
-
})();
|
|
147
|
-
function exportNgVar(name, value) {
|
|
148
|
-
if (typeof COMPILED === 'undefined' || !COMPILED) {
|
|
149
|
-
const ng = _global['ng'] = _global['ng'] || {};
|
|
150
|
-
ng[name] = value;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
class ChangeDetectionPerfRecord {
|
|
154
|
-
msPerTick;
|
|
155
|
-
numTicks;
|
|
156
|
-
constructor(msPerTick, numTicks) {
|
|
157
|
-
this.msPerTick = msPerTick;
|
|
158
|
-
this.numTicks = numTicks;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
class AngularProfiler {
|
|
162
|
-
appRef;
|
|
163
|
-
constructor(ref) {
|
|
164
|
-
this.appRef = ref.injector.get(ApplicationRef);
|
|
165
|
-
}
|
|
166
|
-
timeChangeDetection(config) {
|
|
167
|
-
const record = config && config['record'];
|
|
168
|
-
const profileName = 'Change Detection';
|
|
169
|
-
if (record && 'profile' in console && typeof console.profile === 'function') {
|
|
170
|
-
console.profile(profileName);
|
|
171
|
-
}
|
|
172
|
-
const start = performance.now();
|
|
173
|
-
let numTicks = 0;
|
|
174
|
-
while (numTicks < 5 || performance.now() - start < 500) {
|
|
175
|
-
this.appRef.tick();
|
|
176
|
-
numTicks++;
|
|
177
|
-
}
|
|
178
|
-
const end = performance.now();
|
|
179
|
-
if (record && 'profileEnd' in console && typeof console.profileEnd === 'function') {
|
|
180
|
-
console.profileEnd(profileName);
|
|
181
|
-
}
|
|
182
|
-
const msPerTick = (end - start) / numTicks;
|
|
183
|
-
console.log(`ran ${numTicks} change detection cycles`);
|
|
184
|
-
console.log(`${msPerTick.toFixed(2)} ms per check`);
|
|
185
|
-
return new ChangeDetectionPerfRecord(msPerTick, numTicks);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
const PROFILER_GLOBAL_NAME = 'profiler';
|
|
189
|
-
function enableDebugTools(ref) {
|
|
190
|
-
exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));
|
|
191
|
-
return ref;
|
|
192
|
-
}
|
|
193
|
-
function disableDebugTools() {
|
|
194
|
-
exportNgVar(PROFILER_GLOBAL_NAME, null);
|
|
195
|
-
}
|
|
196
|
-
class By {
|
|
197
|
-
static all() {
|
|
198
|
-
return () => true;
|
|
199
|
-
}
|
|
200
|
-
static css(selector) {
|
|
201
|
-
return debugElement => {
|
|
202
|
-
return debugElement.nativeElement != null ? elementMatches(debugElement.nativeElement, selector) : false;
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
static directive(type) {
|
|
206
|
-
return debugNode => debugNode.providerTokens.indexOf(type) !== -1;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
function elementMatches(n, selector) {
|
|
210
|
-
if (_getDOM().isElementNode(n)) {
|
|
211
|
-
return n.matches && n.matches(selector) || n.msMatchesSelector && n.msMatchesSelector(selector) || n.webkitMatchesSelector && n.webkitMatchesSelector(selector);
|
|
212
|
-
}
|
|
213
|
-
return false;
|
|
214
|
-
}
|
|
215
|
-
const EVENT_NAMES = {
|
|
216
|
-
'pan': true,
|
|
217
|
-
'panstart': true,
|
|
218
|
-
'panmove': true,
|
|
219
|
-
'panend': true,
|
|
220
|
-
'pancancel': true,
|
|
221
|
-
'panleft': true,
|
|
222
|
-
'panright': true,
|
|
223
|
-
'panup': true,
|
|
224
|
-
'pandown': true,
|
|
225
|
-
'pinch': true,
|
|
226
|
-
'pinchstart': true,
|
|
227
|
-
'pinchmove': true,
|
|
228
|
-
'pinchend': true,
|
|
229
|
-
'pinchcancel': true,
|
|
230
|
-
'pinchin': true,
|
|
231
|
-
'pinchout': true,
|
|
232
|
-
'press': true,
|
|
233
|
-
'pressup': true,
|
|
234
|
-
'rotate': true,
|
|
235
|
-
'rotatestart': true,
|
|
236
|
-
'rotatemove': true,
|
|
237
|
-
'rotateend': true,
|
|
238
|
-
'rotatecancel': true,
|
|
239
|
-
'swipe': true,
|
|
240
|
-
'swipeleft': true,
|
|
241
|
-
'swiperight': true,
|
|
242
|
-
'swipeup': true,
|
|
243
|
-
'swipedown': true,
|
|
244
|
-
'tap': true,
|
|
245
|
-
'doubletap': true
|
|
246
|
-
};
|
|
247
|
-
const HAMMER_GESTURE_CONFIG = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerGestureConfig' : '');
|
|
248
|
-
const HAMMER_LOADER = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'HammerLoader' : '');
|
|
249
|
-
class HammerGestureConfig {
|
|
250
|
-
events = [];
|
|
251
|
-
overrides = {};
|
|
252
|
-
options;
|
|
253
|
-
buildHammer(element) {
|
|
254
|
-
const mc = new Hammer(element, this.options);
|
|
255
|
-
mc.get('pinch').set({
|
|
256
|
-
enable: true
|
|
257
|
-
});
|
|
258
|
-
mc.get('rotate').set({
|
|
259
|
-
enable: true
|
|
260
|
-
});
|
|
261
|
-
for (const eventName in this.overrides) {
|
|
262
|
-
mc.get(eventName).set(this.overrides[eventName]);
|
|
263
|
-
}
|
|
264
|
-
return mc;
|
|
265
|
-
}
|
|
266
|
-
static ɵfac = function HammerGestureConfig_Factory(__ngFactoryType__) {
|
|
267
|
-
return new (__ngFactoryType__ || HammerGestureConfig)();
|
|
268
|
-
};
|
|
269
|
-
static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
|
|
270
|
-
token: HammerGestureConfig,
|
|
271
|
-
factory: HammerGestureConfig.ɵfac
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
(() => {
|
|
275
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HammerGestureConfig, [{
|
|
276
|
-
type: Injectable
|
|
277
|
-
}], null, null);
|
|
278
|
-
})();
|
|
279
|
-
class HammerGesturesPlugin extends EventManagerPlugin {
|
|
280
|
-
_config;
|
|
281
|
-
_injector;
|
|
282
|
-
loader;
|
|
283
|
-
_loaderPromise = null;
|
|
284
|
-
constructor(doc, _config, _injector, loader) {
|
|
285
|
-
super(doc);
|
|
286
|
-
this._config = _config;
|
|
287
|
-
this._injector = _injector;
|
|
288
|
-
this.loader = loader;
|
|
289
|
-
}
|
|
290
|
-
supports(eventName) {
|
|
291
|
-
if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
|
|
292
|
-
return false;
|
|
293
|
-
}
|
|
294
|
-
if (!window.Hammer && !this.loader) {
|
|
295
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
296
|
-
const _console = this._injector.get(_Console);
|
|
297
|
-
_console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` + `loaded and no custom loader has been specified.`);
|
|
298
|
-
}
|
|
299
|
-
return false;
|
|
300
|
-
}
|
|
301
|
-
return true;
|
|
302
|
-
}
|
|
303
|
-
addEventListener(element, eventName, handler) {
|
|
304
|
-
const zone = this.manager.getZone();
|
|
305
|
-
eventName = eventName.toLowerCase();
|
|
306
|
-
if (!window.Hammer && this.loader) {
|
|
307
|
-
this._loaderPromise = this._loaderPromise || zone.runOutsideAngular(() => this.loader());
|
|
308
|
-
let cancelRegistration = false;
|
|
309
|
-
let deregister = () => {
|
|
310
|
-
cancelRegistration = true;
|
|
311
|
-
};
|
|
312
|
-
zone.runOutsideAngular(() => this._loaderPromise.then(() => {
|
|
313
|
-
if (!window.Hammer) {
|
|
314
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
315
|
-
const _console = this._injector.get(_Console);
|
|
316
|
-
_console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
|
|
317
|
-
}
|
|
318
|
-
deregister = () => {};
|
|
319
|
-
return;
|
|
320
|
-
}
|
|
321
|
-
if (!cancelRegistration) {
|
|
322
|
-
deregister = this.addEventListener(element, eventName, handler);
|
|
323
|
-
}
|
|
324
|
-
}).catch(() => {
|
|
325
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
326
|
-
const _console = this._injector.get(_Console);
|
|
327
|
-
_console.warn(`The "${eventName}" event cannot be bound because the custom ` + `Hammer.JS loader failed.`);
|
|
328
|
-
}
|
|
329
|
-
deregister = () => {};
|
|
330
|
-
}));
|
|
331
|
-
return () => {
|
|
332
|
-
deregister();
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
return zone.runOutsideAngular(() => {
|
|
336
|
-
const mc = this._config.buildHammer(element);
|
|
337
|
-
const callback = function (eventObj) {
|
|
338
|
-
zone.runGuarded(function () {
|
|
339
|
-
handler(eventObj);
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
mc.on(eventName, callback);
|
|
343
|
-
return () => {
|
|
344
|
-
mc.off(eventName, callback);
|
|
345
|
-
if (typeof mc.destroy === 'function') {
|
|
346
|
-
mc.destroy();
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
isCustomEvent(eventName) {
|
|
352
|
-
return this._config.events.indexOf(eventName) > -1;
|
|
353
|
-
}
|
|
354
|
-
static ɵfac = function HammerGesturesPlugin_Factory(__ngFactoryType__) {
|
|
355
|
-
return new (__ngFactoryType__ || HammerGesturesPlugin)(i0.ɵɵinject(DOCUMENT), i0.ɵɵinject(HAMMER_GESTURE_CONFIG), i0.ɵɵinject(i0.Injector), i0.ɵɵinject(HAMMER_LOADER, 8));
|
|
356
|
-
};
|
|
357
|
-
static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
|
|
358
|
-
token: HammerGesturesPlugin,
|
|
359
|
-
factory: HammerGesturesPlugin.ɵfac
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
(() => {
|
|
363
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HammerGesturesPlugin, [{
|
|
364
|
-
type: Injectable
|
|
365
|
-
}], () => [{
|
|
366
|
-
type: undefined,
|
|
367
|
-
decorators: [{
|
|
368
|
-
type: Inject,
|
|
369
|
-
args: [DOCUMENT]
|
|
370
|
-
}]
|
|
371
|
-
}, {
|
|
372
|
-
type: HammerGestureConfig,
|
|
373
|
-
decorators: [{
|
|
374
|
-
type: Inject,
|
|
375
|
-
args: [HAMMER_GESTURE_CONFIG]
|
|
376
|
-
}]
|
|
377
|
-
}, {
|
|
378
|
-
type: i0.Injector
|
|
379
|
-
}, {
|
|
380
|
-
type: undefined,
|
|
381
|
-
decorators: [{
|
|
382
|
-
type: Optional
|
|
383
|
-
}, {
|
|
384
|
-
type: Inject,
|
|
385
|
-
args: [HAMMER_LOADER]
|
|
386
|
-
}]
|
|
387
|
-
}], null);
|
|
388
|
-
})();
|
|
389
|
-
class HammerModule {
|
|
390
|
-
static ɵfac = function HammerModule_Factory(__ngFactoryType__) {
|
|
391
|
-
return new (__ngFactoryType__ || HammerModule)();
|
|
392
|
-
};
|
|
393
|
-
static ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({
|
|
394
|
-
type: HammerModule
|
|
395
|
-
});
|
|
396
|
-
static ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({
|
|
397
|
-
providers: [{
|
|
398
|
-
provide: EVENT_MANAGER_PLUGINS,
|
|
399
|
-
useClass: HammerGesturesPlugin,
|
|
400
|
-
multi: true,
|
|
401
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]]
|
|
402
|
-
}, {
|
|
403
|
-
provide: HAMMER_GESTURE_CONFIG,
|
|
404
|
-
useClass: HammerGestureConfig
|
|
405
|
-
}]
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
(() => {
|
|
409
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HammerModule, [{
|
|
410
|
-
type: NgModule,
|
|
411
|
-
args: [{
|
|
412
|
-
providers: [{
|
|
413
|
-
provide: EVENT_MANAGER_PLUGINS,
|
|
414
|
-
useClass: HammerGesturesPlugin,
|
|
415
|
-
multi: true,
|
|
416
|
-
deps: [DOCUMENT, HAMMER_GESTURE_CONFIG, Injector, [new Optional(), HAMMER_LOADER]]
|
|
417
|
-
}, {
|
|
418
|
-
provide: HAMMER_GESTURE_CONFIG,
|
|
419
|
-
useClass: HammerGestureConfig
|
|
420
|
-
}]
|
|
421
|
-
}]
|
|
422
|
-
}], null, null);
|
|
423
|
-
})();
|
|
424
|
-
class DomSanitizer {
|
|
425
|
-
static ɵfac = function DomSanitizer_Factory(__ngFactoryType__) {
|
|
426
|
-
return new (__ngFactoryType__ || DomSanitizer)();
|
|
427
|
-
};
|
|
428
|
-
static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
|
|
429
|
-
token: DomSanitizer,
|
|
430
|
-
factory: function DomSanitizer_Factory(__ngFactoryType__) {
|
|
431
|
-
let __ngConditionalFactory__ = null;
|
|
432
|
-
if (__ngFactoryType__) {
|
|
433
|
-
__ngConditionalFactory__ = new (__ngFactoryType__ || DomSanitizer)();
|
|
434
|
-
} else {
|
|
435
|
-
__ngConditionalFactory__ = i0.ɵɵinject(DomSanitizerImpl);
|
|
436
|
-
}
|
|
437
|
-
return __ngConditionalFactory__;
|
|
438
|
-
},
|
|
439
|
-
providedIn: 'root'
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
(() => {
|
|
443
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DomSanitizer, [{
|
|
444
|
-
type: Injectable,
|
|
445
|
-
args: [{
|
|
446
|
-
providedIn: 'root',
|
|
447
|
-
useExisting: forwardRef(() => DomSanitizerImpl)
|
|
448
|
-
}]
|
|
449
|
-
}], null, null);
|
|
450
|
-
})();
|
|
451
|
-
class DomSanitizerImpl extends DomSanitizer {
|
|
452
|
-
_doc;
|
|
453
|
-
constructor(_doc) {
|
|
454
|
-
super();
|
|
455
|
-
this._doc = _doc;
|
|
456
|
-
}
|
|
457
|
-
sanitize(ctx, value) {
|
|
458
|
-
if (value == null) return null;
|
|
459
|
-
switch (ctx) {
|
|
460
|
-
case SecurityContext.NONE:
|
|
461
|
-
return value;
|
|
462
|
-
case SecurityContext.HTML:
|
|
463
|
-
if (_allowSanitizationBypassAndThrow(value, "HTML")) {
|
|
464
|
-
return _unwrapSafeValue(value);
|
|
465
|
-
}
|
|
466
|
-
return __sanitizeHtml(this._doc, String(value)).toString();
|
|
467
|
-
case SecurityContext.STYLE:
|
|
468
|
-
if (_allowSanitizationBypassAndThrow(value, "Style")) {
|
|
469
|
-
return _unwrapSafeValue(value);
|
|
470
|
-
}
|
|
471
|
-
return value;
|
|
472
|
-
case SecurityContext.SCRIPT:
|
|
473
|
-
if (_allowSanitizationBypassAndThrow(value, "Script")) {
|
|
474
|
-
return _unwrapSafeValue(value);
|
|
475
|
-
}
|
|
476
|
-
throw new _RuntimeError(5200, (typeof ngDevMode === 'undefined' || ngDevMode) && 'unsafe value used in a script context');
|
|
477
|
-
case SecurityContext.URL:
|
|
478
|
-
if (_allowSanitizationBypassAndThrow(value, "URL")) {
|
|
479
|
-
return _unwrapSafeValue(value);
|
|
480
|
-
}
|
|
481
|
-
return __sanitizeUrl(String(value));
|
|
482
|
-
case SecurityContext.RESOURCE_URL:
|
|
483
|
-
if (_allowSanitizationBypassAndThrow(value, "ResourceURL")) {
|
|
484
|
-
return _unwrapSafeValue(value);
|
|
485
|
-
}
|
|
486
|
-
throw new _RuntimeError(5201, (typeof ngDevMode === 'undefined' || ngDevMode) && `unsafe value used in a resource URL context (see ${_XSS_SECURITY_URL})`);
|
|
487
|
-
default:
|
|
488
|
-
throw new _RuntimeError(5202, (typeof ngDevMode === 'undefined' || ngDevMode) && `Unexpected SecurityContext ${ctx} (see ${_XSS_SECURITY_URL})`);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
bypassSecurityTrustHtml(value) {
|
|
492
|
-
return _bypassSanitizationTrustHtml(value);
|
|
493
|
-
}
|
|
494
|
-
bypassSecurityTrustStyle(value) {
|
|
495
|
-
return _bypassSanitizationTrustStyle(value);
|
|
496
|
-
}
|
|
497
|
-
bypassSecurityTrustScript(value) {
|
|
498
|
-
return _bypassSanitizationTrustScript(value);
|
|
499
|
-
}
|
|
500
|
-
bypassSecurityTrustUrl(value) {
|
|
501
|
-
return _bypassSanitizationTrustUrl(value);
|
|
502
|
-
}
|
|
503
|
-
bypassSecurityTrustResourceUrl(value) {
|
|
504
|
-
return _bypassSanitizationTrustResourceUrl(value);
|
|
505
|
-
}
|
|
506
|
-
static ɵfac = function DomSanitizerImpl_Factory(__ngFactoryType__) {
|
|
507
|
-
return new (__ngFactoryType__ || DomSanitizerImpl)(i0.ɵɵinject(DOCUMENT));
|
|
508
|
-
};
|
|
509
|
-
static ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({
|
|
510
|
-
token: DomSanitizerImpl,
|
|
511
|
-
factory: DomSanitizerImpl.ɵfac,
|
|
512
|
-
providedIn: 'root'
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
(() => {
|
|
516
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DomSanitizerImpl, [{
|
|
517
|
-
type: Injectable,
|
|
518
|
-
args: [{
|
|
519
|
-
providedIn: 'root'
|
|
520
|
-
}]
|
|
521
|
-
}], () => [{
|
|
522
|
-
type: undefined,
|
|
523
|
-
decorators: [{
|
|
524
|
-
type: Inject,
|
|
525
|
-
args: [DOCUMENT]
|
|
526
|
-
}]
|
|
527
|
-
}], null);
|
|
528
|
-
})();
|
|
529
|
-
var HydrationFeatureKind;
|
|
530
|
-
(function (HydrationFeatureKind) {
|
|
531
|
-
HydrationFeatureKind[HydrationFeatureKind["NoHttpTransferCache"] = 0] = "NoHttpTransferCache";
|
|
532
|
-
HydrationFeatureKind[HydrationFeatureKind["HttpTransferCacheOptions"] = 1] = "HttpTransferCacheOptions";
|
|
533
|
-
HydrationFeatureKind[HydrationFeatureKind["I18nSupport"] = 2] = "I18nSupport";
|
|
534
|
-
HydrationFeatureKind[HydrationFeatureKind["EventReplay"] = 3] = "EventReplay";
|
|
535
|
-
HydrationFeatureKind[HydrationFeatureKind["IncrementalHydration"] = 4] = "IncrementalHydration";
|
|
536
|
-
})(HydrationFeatureKind || (HydrationFeatureKind = {}));
|
|
537
|
-
function hydrationFeature(ɵkind, ɵproviders = [], ɵoptions = {}) {
|
|
538
|
-
return {
|
|
539
|
-
ɵkind,
|
|
540
|
-
ɵproviders
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
function withNoHttpTransferCache() {
|
|
544
|
-
return hydrationFeature(HydrationFeatureKind.NoHttpTransferCache);
|
|
545
|
-
}
|
|
546
|
-
function withHttpTransferCacheOptions(options) {
|
|
547
|
-
return hydrationFeature(HydrationFeatureKind.HttpTransferCacheOptions, _withHttpTransferCache(options));
|
|
548
|
-
}
|
|
549
|
-
function withI18nSupport() {
|
|
550
|
-
return hydrationFeature(HydrationFeatureKind.I18nSupport, _withI18nSupport());
|
|
551
|
-
}
|
|
552
|
-
function withEventReplay() {
|
|
553
|
-
return hydrationFeature(HydrationFeatureKind.EventReplay, _withEventReplay());
|
|
554
|
-
}
|
|
555
|
-
function withIncrementalHydration() {
|
|
556
|
-
return hydrationFeature(HydrationFeatureKind.IncrementalHydration, _withIncrementalHydration());
|
|
557
|
-
}
|
|
558
|
-
function provideEnabledBlockingInitialNavigationDetector() {
|
|
559
|
-
return [{
|
|
560
|
-
provide: ENVIRONMENT_INITIALIZER,
|
|
561
|
-
useValue: () => {
|
|
562
|
-
const isEnabledBlockingInitialNavigation = inject(_IS_ENABLED_BLOCKING_INITIAL_NAVIGATION, {
|
|
563
|
-
optional: true
|
|
564
|
-
});
|
|
565
|
-
if (isEnabledBlockingInitialNavigation) {
|
|
566
|
-
const console = inject(_Console);
|
|
567
|
-
const message = _formatRuntimeError(5001, 'Configuration error: found both hydration and enabledBlocking initial navigation ' + 'in the same application, which is a contradiction.');
|
|
568
|
-
console.warn(message);
|
|
569
|
-
}
|
|
570
|
-
},
|
|
571
|
-
multi: true
|
|
572
|
-
}];
|
|
573
|
-
}
|
|
574
|
-
function provideClientHydration(...features) {
|
|
575
|
-
const providers = [];
|
|
576
|
-
const featuresKind = new Set();
|
|
577
|
-
for (const {
|
|
578
|
-
ɵproviders,
|
|
579
|
-
ɵkind
|
|
580
|
-
} of features) {
|
|
581
|
-
featuresKind.add(ɵkind);
|
|
582
|
-
if (ɵproviders.length) {
|
|
583
|
-
providers.push(ɵproviders);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
const hasHttpTransferCacheOptions = featuresKind.has(HydrationFeatureKind.HttpTransferCacheOptions);
|
|
587
|
-
if (typeof ngDevMode !== 'undefined' && ngDevMode && featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) && hasHttpTransferCacheOptions) {
|
|
588
|
-
throw new _RuntimeError(5001, 'Configuration error: found both withHttpTransferCacheOptions() and withNoHttpTransferCache() in the same call to provideClientHydration(), which is a contradiction.');
|
|
589
|
-
}
|
|
590
|
-
return makeEnvironmentProviders([typeof ngDevMode !== 'undefined' && ngDevMode ? provideEnabledBlockingInitialNavigationDetector() : [], typeof ngDevMode !== 'undefined' && ngDevMode ? provideStabilityDebugging() : [], _withDomHydration(), featuresKind.has(HydrationFeatureKind.NoHttpTransferCache) || hasHttpTransferCacheOptions ? [] : _withHttpTransferCache({}), providers]);
|
|
591
|
-
}
|
|
592
|
-
const VERSION = /* @__PURE__ */new Version('21.2.1');
|
|
593
|
-
export { By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManagerPlugin, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, HydrationFeatureKind, Meta, Title, VERSION, disableDebugTools, enableDebugTools, provideClientHydration, withEventReplay, withHttpTransferCacheOptions, withI18nSupport, withIncrementalHydration, withNoHttpTransferCache, DomSanitizerImpl as ɵDomSanitizerImpl, HammerGesturesPlugin as ɵHammerGesturesPlugin };
|