@angular/common 17.1.1 → 17.1.3
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/esm2022/http/public_api.mjs +6 -6
- package/esm2022/http/src/client.mjs +6 -6
- package/esm2022/http/src/fetch.mjs +12 -11
- package/esm2022/http/src/headers.mjs +7 -9
- package/esm2022/http/src/interceptor.mjs +11 -10
- package/esm2022/http/src/jsonp.mjs +11 -13
- package/esm2022/http/src/module.mjs +18 -28
- package/esm2022/http/src/params.mjs +15 -14
- package/esm2022/http/src/private_export.mjs +2 -2
- package/esm2022/http/src/provider.mjs +13 -13
- package/esm2022/http/src/request.mjs +19 -21
- package/esm2022/http/src/response.mjs +3 -3
- package/esm2022/http/src/transfer_cache.mjs +15 -11
- package/esm2022/http/src/xhr.mjs +11 -10
- package/esm2022/http/src/xsrf.mjs +17 -14
- package/esm2022/http/testing/src/api.mjs +1 -1
- package/esm2022/http/testing/src/backend.mjs +11 -11
- package/esm2022/http/testing/src/module.mjs +7 -13
- package/esm2022/http/testing/src/provider.mjs +1 -1
- package/esm2022/http/testing/src/request.mjs +11 -8
- package/esm2022/src/common.mjs +6 -6
- package/esm2022/src/common_module.mjs +5 -5
- package/esm2022/src/cookie.mjs +1 -1
- package/esm2022/src/directives/index.mjs +1 -1
- package/esm2022/src/directives/ng_class.mjs +6 -6
- package/esm2022/src/directives/ng_component_outlet.mjs +11 -13
- package/esm2022/src/directives/ng_for_of.mjs +5 -5
- package/esm2022/src/directives/ng_if.mjs +7 -9
- package/esm2022/src/directives/ng_optimized_image/asserts.mjs +1 -1
- package/esm2022/src/directives/ng_optimized_image/error_helper.mjs +4 -2
- package/esm2022/src/directives/ng_optimized_image/image_loaders/cloudflare_loader.mjs +1 -1
- package/esm2022/src/directives/ng_optimized_image/image_loaders/cloudinary_loader.mjs +9 -8
- package/esm2022/src/directives/ng_optimized_image/image_loaders/image_loader.mjs +2 -2
- package/esm2022/src/directives/ng_optimized_image/image_loaders/imagekit_loader.mjs +1 -1
- package/esm2022/src/directives/ng_optimized_image/image_loaders/imgix_loader.mjs +2 -2
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +6 -6
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +35 -28
- package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +12 -14
- package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +4 -4
- package/esm2022/src/directives/ng_optimized_image/tokens.mjs +5 -2
- package/esm2022/src/directives/ng_optimized_image/url.mjs +2 -2
- package/esm2022/src/directives/ng_plural.mjs +7 -7
- package/esm2022/src/directives/ng_style.mjs +5 -5
- package/esm2022/src/directives/ng_switch.mjs +17 -15
- package/esm2022/src/directives/ng_switch_equality.mjs +1 -1
- package/esm2022/src/directives/ng_template_outlet.mjs +5 -5
- package/esm2022/src/dom_adapter.mjs +2 -4
- package/esm2022/src/dom_tokens.mjs +2 -2
- package/esm2022/src/i18n/format_date.mjs +62 -43
- package/esm2022/src/i18n/format_number.mjs +14 -13
- package/esm2022/src/i18n/locale_data.mjs +1 -1
- package/esm2022/src/i18n/locale_data_api.mjs +14 -8
- package/esm2022/src/i18n/localization.mjs +7 -7
- package/esm2022/src/location/hash_location_strategy.mjs +6 -8
- package/esm2022/src/location/index.mjs +2 -2
- package/esm2022/src/location/location.mjs +9 -11
- package/esm2022/src/location/location_strategy.mjs +14 -11
- package/esm2022/src/location/platform_location.mjs +9 -9
- package/esm2022/src/location/util.mjs +2 -2
- package/esm2022/src/navigation/platform_navigation.mjs +4 -4
- package/esm2022/src/pipes/async_pipe.mjs +7 -7
- package/esm2022/src/pipes/case_conversion_pipes.mjs +11 -11
- package/esm2022/src/pipes/date_pipe.mjs +70 -71
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +4 -5
- package/esm2022/src/pipes/i18n_select_pipe.mjs +4 -5
- package/esm2022/src/pipes/index.mjs +1 -1
- package/esm2022/src/pipes/invalid_pipe_argument_error.mjs +1 -1
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +7 -9
- package/esm2022/src/pipes/number_pipe.mjs +13 -13
- package/esm2022/src/pipes/slice_pipe.mjs +4 -4
- package/esm2022/src/private_export.mjs +2 -2
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/src/viewport_scroller.mjs +6 -5
- package/esm2022/testing/src/location_mock.mjs +34 -19
- package/esm2022/testing/src/mock_location_strategy.mjs +6 -6
- package/esm2022/testing/src/mock_platform_location.mjs +33 -12
- package/esm2022/testing/src/navigation/fake_navigation.mjs +11 -9
- package/esm2022/testing/src/navigation/provide_fake_platform_navigation.mjs +2 -2
- package/esm2022/testing/src/testing.mjs +2 -2
- package/esm2022/upgrade/src/index.mjs +2 -2
- package/esm2022/upgrade/src/location_shim.mjs +11 -13
- package/esm2022/upgrade/src/location_upgrade_module.mjs +15 -18
- package/esm2022/upgrade/src/params.mjs +6 -6
- package/esm2022/upgrade/src/utils.mjs +2 -2
- package/fesm2022/common.mjs +366 -338
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +26 -29
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +133 -138
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +70 -34
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +30 -35
- package/fesm2022/upgrade.mjs.map +1 -1
- package/http/index.d.ts +2 -2
- package/http/testing/index.d.ts +3 -3
- package/index.d.ts +69 -69
- package/locales/ff-CM.mjs +31 -11
- package/locales/ff-GN.mjs +31 -11
- package/locales/ff-MR.mjs +31 -11
- package/locales/global/ff-CM.js +58 -44
- package/locales/global/ff-GN.js +58 -44
- package/locales/global/ff-MR.js +58 -44
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/upgrade.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.mjs","sources":["../../../../../../packages/common/upgrade/src/utils.ts","../../../../../../packages/common/upgrade/src/location_shim.ts","../../../../../../packages/common/upgrade/src/params.ts","../../../../../../packages/common/upgrade/src/location_upgrade_module.ts","../../../../../../packages/common/upgrade/public_api.ts","../../../../../../packages/common/upgrade/index.ts","../../../../../../packages/common/upgrade/upgrade.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport function stripPrefix(val: string, prefix: string): string {\n return val.startsWith(prefix) ? val.substring(prefix.length) : val;\n}\n\nexport function deepEqual(a: any, b: any): boolean {\n if (a === b) {\n return true;\n } else if (!a || !b) {\n return false;\n } else {\n try {\n if ((a.prototype !== b.prototype) || (Array.isArray(a) && Array.isArray(b))) {\n return false;\n }\n return JSON.stringify(a) === JSON.stringify(b);\n } catch (e) {\n return false;\n }\n }\n}\n\nexport function isAnchor(el: (Node&ParentNode)|Element|null): el is HTMLAnchorElement {\n return (<HTMLAnchorElement>el).href !== undefined;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Location, LocationStrategy, PlatformLocation} from '@angular/common';\nimport {ɵisPromise as isPromise} from '@angular/core';\nimport {UpgradeModule} from '@angular/upgrade/static';\nimport {ReplaySubject} from 'rxjs';\n\nimport {UrlCodec} from './params';\nimport {deepEqual, isAnchor} from './utils';\n\nconst PATH_MATCH = /^([^?#]*)(\\?([^#]*))?(#(.*))?$/;\nconst DOUBLE_SLASH_REGEX = /^\\s*[\\\\/]{2,}/;\nconst IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\nconst DEFAULT_PORTS: {[key: string]: number} = {\n 'http:': 80,\n 'https:': 443,\n 'ftp:': 21\n};\n\n/**\n * Location service that provides a drop-in replacement for the $location service\n * provided in AngularJS.\n *\n * @see [Using the Angular Unified Location Service](guide/upgrade#using-the-unified-angular-location-service)\n *\n * @publicApi\n */\nexport class $locationShim {\n private initializing = true;\n private updateBrowser = false;\n private $$absUrl: string = '';\n private $$url: string = '';\n private $$protocol: string;\n private $$host: string = '';\n private $$port: number|null;\n private $$replace: boolean = false;\n private $$path: string = '';\n private $$search: any = '';\n private $$hash: string = '';\n private $$state: unknown;\n private $$changeListeners: [\n ((url: string, state: unknown, oldUrl: string, oldState: unknown, err?: (e: Error) => void) =>\n void),\n (e: Error) => void\n ][] = [];\n\n private cachedState: unknown = null;\n\n private urlChanges = new ReplaySubject<{newUrl: string, newState: unknown}>(1);\n\n constructor(\n $injector: any, private location: Location, private platformLocation: PlatformLocation,\n private urlCodec: UrlCodec, private locationStrategy: LocationStrategy) {\n const initialUrl = this.browserUrl();\n\n let parsedUrl = this.urlCodec.parse(initialUrl);\n\n if (typeof parsedUrl === 'string') {\n throw 'Invalid URL';\n }\n\n this.$$protocol = parsedUrl.protocol;\n this.$$host = parsedUrl.hostname;\n this.$$port = parseInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\n this.$$parseLinkUrl(initialUrl, initialUrl);\n this.cacheState();\n this.$$state = this.browserState();\n\n this.location.onUrlChange((newUrl, newState) => {\n this.urlChanges.next({newUrl, newState});\n });\n\n if (isPromise($injector)) {\n $injector.then($i => this.initialize($i));\n } else {\n this.initialize($injector);\n }\n }\n\n private initialize($injector: any) {\n const $rootScope = $injector.get('$rootScope');\n const $rootElement = $injector.get('$rootElement');\n\n $rootElement.on('click', (event: any) => {\n if (event.ctrlKey || event.metaKey || event.shiftKey || event.which === 2 ||\n event.button === 2) {\n return;\n }\n\n let elm: (Node&ParentNode)|null = event.target;\n\n // traverse the DOM up to find first A tag\n while (elm && elm.nodeName.toLowerCase() !== 'a') {\n // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n if (elm === $rootElement[0] || !(elm = elm.parentNode)) {\n return;\n }\n }\n\n if (!isAnchor(elm)) {\n return;\n }\n\n const absHref = elm.href;\n const relHref = elm.getAttribute('href');\n\n // Ignore when url is started with javascript: or mailto:\n if (IGNORE_URI_REGEXP.test(absHref)) {\n return;\n }\n\n if (absHref && !elm.getAttribute('target') && !event.isDefaultPrevented()) {\n if (this.$$parseLinkUrl(absHref, relHref)) {\n // We do a preventDefault for all urls that are part of the AngularJS application,\n // in html5mode and also without, so that we are able to abort navigation without\n // getting double entries in the location history.\n event.preventDefault();\n // update location manually\n if (this.absUrl() !== this.browserUrl()) {\n $rootScope.$apply();\n }\n }\n }\n });\n\n this.urlChanges.subscribe(({newUrl, newState}) => {\n const oldUrl = this.absUrl();\n const oldState = this.$$state;\n this.$$parse(newUrl);\n newUrl = this.absUrl();\n this.$$state = newState;\n const defaultPrevented =\n $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, newState, oldState)\n .defaultPrevented;\n\n // if the location was changed by a `$locationChangeStart` handler then stop\n // processing this location change\n if (this.absUrl() !== newUrl) return;\n\n // If default was prevented, set back to old state. This is the state that was locally\n // cached in the $location service.\n if (defaultPrevented) {\n this.$$parse(oldUrl);\n this.state(oldState);\n this.setBrowserUrlWithFallback(oldUrl, false, oldState);\n this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);\n } else {\n this.initializing = false;\n $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);\n this.resetBrowserUpdate();\n }\n if (!$rootScope.$$phase) {\n $rootScope.$digest();\n }\n });\n\n // update browser\n $rootScope.$watch(() => {\n if (this.initializing || this.updateBrowser) {\n this.updateBrowser = false;\n\n const oldUrl = this.browserUrl();\n const newUrl = this.absUrl();\n const oldState = this.browserState();\n let currentReplace = this.$$replace;\n\n const urlOrStateChanged =\n !this.urlCodec.areEqual(oldUrl, newUrl) || oldState !== this.$$state;\n\n // Fire location changes one time to on initialization. This must be done on the\n // next tick (thus inside $evalAsync()) in order for listeners to be registered\n // before the event fires. Mimicing behavior from $locationWatch:\n // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983\n if (this.initializing || urlOrStateChanged) {\n this.initializing = false;\n\n $rootScope.$evalAsync(() => {\n // Get the new URL again since it could have changed due to async update\n const newUrl = this.absUrl();\n const defaultPrevented =\n $rootScope\n .$broadcast('$locationChangeStart', newUrl, oldUrl, this.$$state, oldState)\n .defaultPrevented;\n\n // if the location was changed by a `$locationChangeStart` handler then stop\n // processing this location change\n if (this.absUrl() !== newUrl) return;\n\n if (defaultPrevented) {\n this.$$parse(oldUrl);\n this.$$state = oldState;\n } else {\n // This block doesn't run when initializing because it's going to perform the update\n // to the URL which shouldn't be needed when initializing.\n if (urlOrStateChanged) {\n this.setBrowserUrlWithFallback(\n newUrl, currentReplace, oldState === this.$$state ? null : this.$$state);\n this.$$replace = false;\n }\n $rootScope.$broadcast(\n '$locationChangeSuccess', newUrl, oldUrl, this.$$state, oldState);\n if (urlOrStateChanged) {\n this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);\n }\n }\n });\n }\n }\n this.$$replace = false;\n });\n }\n\n private resetBrowserUpdate() {\n this.$$replace = false;\n this.$$state = this.browserState();\n this.updateBrowser = false;\n this.lastBrowserUrl = this.browserUrl();\n }\n\n private lastHistoryState: unknown;\n private lastBrowserUrl: string = '';\n private browserUrl(): string;\n private browserUrl(url: string, replace?: boolean, state?: unknown): this;\n private browserUrl(url?: string, replace?: boolean, state?: unknown) {\n // In modern browsers `history.state` is `null` by default; treating it separately\n // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n if (typeof state === 'undefined') {\n state = null;\n }\n\n // setter\n if (url) {\n let sameState = this.lastHistoryState === state;\n\n // Normalize the inputted URL\n url = this.urlCodec.parse(url).href;\n\n // Don't change anything if previous and current URLs and states match.\n if (this.lastBrowserUrl === url && sameState) {\n return this;\n }\n this.lastBrowserUrl = url;\n this.lastHistoryState = state;\n\n // Remove server base from URL as the Angular APIs for updating URL require\n // it to be the path+.\n url = this.stripBaseUrl(this.getServerBase(), url) || url;\n\n // Set the URL\n if (replace) {\n this.locationStrategy.replaceState(state, '', url, '');\n } else {\n this.locationStrategy.pushState(state, '', url, '');\n }\n\n this.cacheState();\n\n return this;\n // getter\n } else {\n return this.platformLocation.href;\n }\n }\n\n // This variable should be used *only* inside the cacheState function.\n private lastCachedState: unknown = null;\n private cacheState() {\n // This should be the only place in $browser where `history.state` is read.\n this.cachedState = this.platformLocation.getState();\n if (typeof this.cachedState === 'undefined') {\n this.cachedState = null;\n }\n\n // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n if (deepEqual(this.cachedState, this.lastCachedState)) {\n this.cachedState = this.lastCachedState;\n }\n\n this.lastCachedState = this.cachedState;\n this.lastHistoryState = this.cachedState;\n }\n\n /**\n * This function emulates the $browser.state() function from AngularJS. It will cause\n * history.state to be cached unless changed with deep equality check.\n */\n private browserState(): unknown {\n return this.cachedState;\n }\n\n private stripBaseUrl(base: string, url: string) {\n if (url.startsWith(base)) {\n return url.slice(base.length);\n }\n return undefined;\n }\n\n private getServerBase() {\n const {protocol, hostname, port} = this.platformLocation;\n const baseHref = this.locationStrategy.getBaseHref();\n let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;\n return url.endsWith('/') ? url : url + '/';\n }\n\n private parseAppUrl(url: string) {\n if (DOUBLE_SLASH_REGEX.test(url)) {\n throw new Error(`Bad Path - URL cannot start with double slashes: ${url}`);\n }\n\n let prefixed = (url.charAt(0) !== '/');\n if (prefixed) {\n url = '/' + url;\n }\n let match = this.urlCodec.parse(url, this.getServerBase());\n if (typeof match === 'string') {\n throw new Error(`Bad URL - Cannot parse URL: ${url}`);\n }\n let path =\n prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;\n this.$$path = this.urlCodec.decodePath(path);\n this.$$search = this.urlCodec.decodeSearch(match.search);\n this.$$hash = this.urlCodec.decodeHash(match.hash);\n\n // make sure path starts with '/';\n if (this.$$path && this.$$path.charAt(0) !== '/') {\n this.$$path = '/' + this.$$path;\n }\n }\n\n /**\n * Registers listeners for URL changes. This API is used to catch updates performed by the\n * AngularJS framework. These changes are a subset of the `$locationChangeStart` and\n * `$locationChangeSuccess` events which fire when AngularJS updates its internally-referenced\n * version of the browser URL.\n *\n * It's possible for `$locationChange` events to happen, but for the browser URL\n * (window.location) to remain unchanged. This `onChange` callback will fire only when AngularJS\n * actually updates the browser URL (window.location).\n *\n * @param fn The callback function that is triggered for the listener when the URL changes.\n * @param err The callback function that is triggered when an error occurs.\n */\n onChange(\n fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void,\n err: (e: Error) => void = (e: Error) => {}) {\n this.$$changeListeners.push([fn, err]);\n }\n\n /** @internal */\n $$notifyChangeListeners(\n url: string = '', state: unknown, oldUrl: string = '', oldState: unknown) {\n this.$$changeListeners.forEach(([fn, err]) => {\n try {\n fn(url, state, oldUrl, oldState);\n } catch (e) {\n err(e as Error);\n }\n });\n }\n\n /**\n * Parses the provided URL, and sets the current URL to the parsed result.\n *\n * @param url The URL string.\n */\n $$parse(url: string) {\n let pathUrl: string|undefined;\n if (url.startsWith('/')) {\n pathUrl = url;\n } else {\n // Remove protocol & hostname if URL starts with it\n pathUrl = this.stripBaseUrl(this.getServerBase(), url);\n }\n if (typeof pathUrl === 'undefined') {\n throw new Error(`Invalid url \"${url}\", missing path prefix \"${this.getServerBase()}\".`);\n }\n\n this.parseAppUrl(pathUrl);\n\n if (!this.$$path) {\n this.$$path = '/';\n }\n this.composeUrls();\n }\n\n /**\n * Parses the provided URL and its relative URL.\n *\n * @param url The full URL string.\n * @param relHref A URL string relative to the full URL string.\n */\n $$parseLinkUrl(url: string, relHref?: string|null): boolean {\n // When relHref is passed, it should be a hash and is handled separately\n if (relHref && relHref[0] === '#') {\n this.hash(relHref.slice(1));\n return true;\n }\n let rewrittenUrl;\n let appUrl = this.stripBaseUrl(this.getServerBase(), url);\n if (typeof appUrl !== 'undefined') {\n rewrittenUrl = this.getServerBase() + appUrl;\n } else if (this.getServerBase() === url + '/') {\n rewrittenUrl = this.getServerBase();\n }\n // Set the URL\n if (rewrittenUrl) {\n this.$$parse(rewrittenUrl);\n }\n return !!rewrittenUrl;\n }\n\n private setBrowserUrlWithFallback(url: string, replace: boolean, state: unknown) {\n const oldUrl = this.url();\n const oldState = this.$$state;\n try {\n this.browserUrl(url, replace, state);\n\n // Make sure $location.state() returns referentially identical (not just deeply equal)\n // state object; this makes possible quick checking if the state changed in the digest\n // loop. Checking deep equality would be too expensive.\n this.$$state = this.browserState();\n } catch (e) {\n // Restore old values if pushState fails\n this.url(oldUrl);\n this.$$state = oldState;\n\n throw e;\n }\n }\n\n private composeUrls() {\n this.$$url = this.urlCodec.normalize(this.$$path, this.$$search, this.$$hash);\n this.$$absUrl = this.getServerBase() + this.$$url.slice(1); // remove '/' from front of URL\n this.updateBrowser = true;\n }\n\n /**\n * Retrieves the full URL representation with all segments encoded according to\n * rules specified in\n * [RFC 3986](https://tools.ietf.org/html/rfc3986).\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let absUrl = $location.absUrl();\n * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n * ```\n */\n absUrl(): string {\n return this.$$absUrl;\n }\n\n /**\n * Retrieves the current URL, or sets a new URL. When setting a URL,\n * changes the path, search, and hash, and returns a reference to its own instance.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let url = $location.url();\n * // => \"/some/path?foo=bar&baz=xoxo\"\n * ```\n */\n url(): string;\n url(url: string): this;\n url(url?: string): string|this {\n if (typeof url === 'string') {\n if (!url.length) {\n url = '/';\n }\n\n const match = PATH_MATCH.exec(url);\n if (!match) return this;\n if (match[1] || url === '') this.path(this.urlCodec.decodePath(match[1]));\n if (match[2] || match[1] || url === '') this.search(match[3] || '');\n this.hash(match[5] || '');\n\n // Chainable method\n return this;\n }\n\n return this.$$url;\n }\n\n /**\n * Retrieves the protocol of the current URL.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let protocol = $location.protocol();\n * // => \"http\"\n * ```\n */\n protocol(): string {\n return this.$$protocol;\n }\n\n /**\n * Retrieves the protocol of the current URL.\n *\n * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this\n * returns the `hostname` portion only.\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let host = $location.host();\n * // => \"example.com\"\n *\n * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n * host = $location.host();\n * // => \"example.com\"\n * host = location.host;\n * // => \"example.com:8080\"\n * ```\n */\n host(): string {\n return this.$$host;\n }\n\n /**\n * Retrieves the port of the current URL.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let port = $location.port();\n * // => 80\n * ```\n */\n port(): number|null {\n return this.$$port;\n }\n\n /**\n * Retrieves the path of the current URL, or changes the path and returns a reference to its own\n * instance.\n *\n * Paths should always begin with forward slash (/). This method adds the forward slash\n * if it is missing.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let path = $location.path();\n * // => \"/some/path\"\n * ```\n */\n path(): string;\n path(path: string|number|null): this;\n path(path?: string|number|null): string|this {\n if (typeof path === 'undefined') {\n return this.$$path;\n }\n\n // null path converts to empty string. Prepend with \"/\" if needed.\n path = path !== null ? path.toString() : '';\n path = path.charAt(0) === '/' ? path : '/' + path;\n\n this.$$path = path;\n\n this.composeUrls();\n return this;\n }\n\n /**\n * Retrieves a map of the search parameters of the current URL, or changes a search\n * part and returns a reference to its own instance.\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let searchObject = $location.search();\n * // => {foo: 'bar', baz: 'xoxo'}\n *\n * // set foo to 'yipee'\n * $location.search('foo', 'yipee');\n * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n * ```\n *\n * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n * hash object.\n *\n * When called with a single argument the method acts as a setter, setting the `search` component\n * of `$location` to the specified value.\n *\n * If the argument is a hash object containing an array of values, these values will be encoded\n * as duplicate search parameters in the URL.\n *\n * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number,\n * then `paramValue`\n * will override only a single search property.\n *\n * If `paramValue` is an array, it will override the property of the `search` component of\n * `$location` specified via the first argument.\n *\n * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n *\n * If `paramValue` is `true`, the property specified via the first argument will be added with no\n * value nor trailing equal sign.\n *\n * @return {Object} The parsed `search` object of the current URL, or the changed `search` object.\n */\n search(): {[key: string]: unknown};\n search(search: string|number|{[key: string]: unknown}): this;\n search(\n search: string|number|{[key: string]: unknown},\n paramValue: null|undefined|string|number|boolean|string[]): this;\n search(\n search?: string|number|{[key: string]: unknown},\n paramValue?: null|undefined|string|number|boolean|string[]): {[key: string]: unknown}|this {\n switch (arguments.length) {\n case 0:\n return this.$$search;\n case 1:\n if (typeof search === 'string' || typeof search === 'number') {\n this.$$search = this.urlCodec.decodeSearch(search.toString());\n } else if (typeof search === 'object' && search !== null) {\n // Copy the object so it's never mutated\n search = {...search};\n // remove object undefined or null properties\n for (const key in search) {\n if (search[key] == null) delete search[key];\n }\n\n this.$$search = search;\n } else {\n throw new Error(\n 'LocationProvider.search(): First argument must be a string or an object.');\n }\n break;\n default:\n if (typeof search === 'string') {\n const currentSearch = this.search();\n if (typeof paramValue === 'undefined' || paramValue === null) {\n delete currentSearch[search];\n return this.search(currentSearch);\n } else {\n currentSearch[search] = paramValue;\n return this.search(currentSearch);\n }\n }\n }\n this.composeUrls();\n return this;\n }\n\n /**\n * Retrieves the current hash fragment, or changes the hash fragment and returns a reference to\n * its own instance.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n * let hash = $location.hash();\n * // => \"hashValue\"\n * ```\n */\n hash(): string;\n hash(hash: string|number|null): this;\n hash(hash?: string|number|null): string|this {\n if (typeof hash === 'undefined') {\n return this.$$hash;\n }\n\n this.$$hash = hash !== null ? hash.toString() : '';\n\n this.composeUrls();\n return this;\n }\n\n /**\n * Changes to `$location` during the current `$digest` will replace the current\n * history record, instead of adding a new one.\n */\n replace(): this {\n this.$$replace = true;\n return this;\n }\n\n /**\n * Retrieves the history state object when called without any parameter.\n *\n * Change the history state object when called with one parameter and return `$location`.\n * The state object is later passed to `pushState` or `replaceState`.\n *\n * This method is supported only in HTML5 mode and only in browsers supporting\n * the HTML5 History API methods such as `pushState` and `replaceState`. If you need to support\n * older browsers (like Android < 4.0), don't use this method.\n *\n */\n state(): unknown;\n state(state: unknown): this;\n state(state?: unknown): unknown|this {\n if (typeof state === 'undefined') {\n return this.$$state;\n }\n\n this.$$state = state;\n return this;\n }\n}\n\n/**\n * The factory function used to create an instance of the `$locationShim` in Angular,\n * and provides an API-compatible `$locationProvider` for AngularJS.\n *\n * @publicApi\n */\nexport class $locationShimProvider {\n constructor(\n private ngUpgrade: UpgradeModule, private location: Location,\n private platformLocation: PlatformLocation, private urlCodec: UrlCodec,\n private locationStrategy: LocationStrategy) {}\n\n /**\n * Factory method that returns an instance of the $locationShim\n */\n $get() {\n return new $locationShim(\n this.ngUpgrade.$injector, this.location, this.platformLocation, this.urlCodec,\n this.locationStrategy);\n }\n\n /**\n * Stub method used to keep API compatible with AngularJS. This setting is configured through\n * the LocationUpgradeModule's `config` method in your Angular app.\n */\n hashPrefix(prefix?: string) {\n throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');\n }\n\n /**\n * Stub method used to keep API compatible with AngularJS. This setting is configured through\n * the LocationUpgradeModule's `config` method in your Angular app.\n */\n html5Mode(mode?: any) {\n throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * A codec for encoding and decoding URL parts.\n *\n * @publicApi\n **/\nexport abstract class UrlCodec {\n /**\n * Encodes the path from the provided string\n *\n * @param path The path string\n */\n abstract encodePath(path: string): string;\n\n /**\n * Decodes the path from the provided string\n *\n * @param path The path string\n */\n abstract decodePath(path: string): string;\n\n /**\n * Encodes the search string from the provided string or object\n *\n * @param path The path string or object\n */\n abstract encodeSearch(search: string|{[k: string]: unknown}): string;\n\n /**\n * Decodes the search objects from the provided string\n *\n * @param path The path string\n */\n abstract decodeSearch(search: string): {[k: string]: unknown};\n\n /**\n * Encodes the hash from the provided string\n *\n * @param path The hash string\n */\n abstract encodeHash(hash: string): string;\n\n /**\n * Decodes the hash from the provided string\n *\n * @param path The hash string\n */\n abstract decodeHash(hash: string): string;\n\n /**\n * Normalizes the URL from the provided string\n *\n * @param path The URL string\n */\n abstract normalize(href: string): string;\n\n\n /**\n * Normalizes the URL from the provided string, search, hash, and base URL parameters\n *\n * @param path The URL path\n * @param search The search object\n * @param hash The has string\n * @param baseUrl The base URL for the URL\n */\n abstract normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string):\n string;\n\n /**\n * Checks whether the two strings are equal\n * @param valA First string for comparison\n * @param valB Second string for comparison\n */\n abstract areEqual(valA: string, valB: string): boolean;\n\n /**\n * Parses the URL string based on the base URL\n *\n * @param url The full URL string\n * @param base The base for the URL\n */\n abstract parse(url: string, base?: string): {\n href: string,\n protocol: string,\n host: string,\n search: string,\n hash: string,\n hostname: string,\n port: string,\n pathname: string\n };\n}\n\n/**\n * A `UrlCodec` that uses logic from AngularJS to serialize and parse URLs\n * and URL parameters.\n *\n * @publicApi\n */\nexport class AngularJSUrlCodec implements UrlCodec {\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L15\n encodePath(path: string): string {\n const segments = path.split('/');\n let i = segments.length;\n\n while (i--) {\n // decode forward slashes to prevent them from being double encoded\n segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));\n }\n\n path = segments.join('/');\n return _stripIndexHtml((path && path[0] !== '/' && '/' || '') + path);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42\n encodeSearch(search: string|{[k: string]: unknown}): string {\n if (typeof search === 'string') {\n search = parseKeyValue(search);\n }\n\n search = toKeyValue(search);\n return search ? '?' + search : '';\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L44\n encodeHash(hash: string) {\n hash = encodeUriSegment(hash);\n return hash ? '#' + hash : '';\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L27\n decodePath(path: string, html5Mode = true): string {\n const segments = path.split('/');\n let i = segments.length;\n\n while (i--) {\n segments[i] = decodeURIComponent(segments[i]);\n if (html5Mode) {\n // encode forward slashes to prevent them from being mistaken for path separators\n segments[i] = segments[i].replace(/\\//g, '%2F');\n }\n }\n\n return segments.join('/');\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72\n decodeSearch(search: string) {\n return parseKeyValue(search);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73\n decodeHash(hash: string) {\n hash = decodeURIComponent(hash);\n return hash[0] === '#' ? hash.substring(1) : hash;\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L149\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42\n normalize(href: string): string;\n normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string): string;\n normalize(pathOrHref: string, search?: {[k: string]: unknown}, hash?: string, baseUrl?: string):\n string {\n if (arguments.length === 1) {\n const parsed = this.parse(pathOrHref, baseUrl);\n\n if (typeof parsed === 'string') {\n return parsed;\n }\n\n const serverUrl =\n `${parsed.protocol}://${parsed.hostname}${parsed.port ? ':' + parsed.port : ''}`;\n\n return this.normalize(\n this.decodePath(parsed.pathname), this.decodeSearch(parsed.search),\n this.decodeHash(parsed.hash), serverUrl);\n } else {\n const encPath = this.encodePath(pathOrHref);\n const encSearch = search && this.encodeSearch(search) || '';\n const encHash = hash && this.encodeHash(hash) || '';\n\n let joinedPath = (baseUrl || '') + encPath;\n\n if (!joinedPath.length || joinedPath[0] !== '/') {\n joinedPath = '/' + joinedPath;\n }\n return joinedPath + encSearch + encHash;\n }\n }\n\n areEqual(valA: string, valB: string) {\n return this.normalize(valA) === this.normalize(valB);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60\n parse(url: string, base?: string) {\n try {\n // Safari 12 throws an error when the URL constructor is called with an undefined base.\n const parsed = !base ? new URL(url) : new URL(url, base);\n return {\n href: parsed.href,\n protocol: parsed.protocol ? parsed.protocol.replace(/:$/, '') : '',\n host: parsed.host,\n search: parsed.search ? parsed.search.replace(/^\\?/, '') : '',\n hash: parsed.hash ? parsed.hash.replace(/^#/, '') : '',\n hostname: parsed.hostname,\n port: parsed.port,\n pathname: (parsed.pathname.charAt(0) === '/') ? parsed.pathname : '/' + parsed.pathname\n };\n } catch (e) {\n throw new Error(`Invalid URL (${url}) with base (${base})`);\n }\n }\n}\n\nfunction _stripIndexHtml(url: string): string {\n return url.replace(/\\/index.html$/, '');\n}\n\n/**\n * Tries to decode the URI component without throwing an exception.\n *\n * @param str value potential URI component to check.\n * @returns the decoded URI if it can be decoded or else `undefined`.\n */\nfunction tryDecodeURIComponent(value: string): string|undefined {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n // Ignore any invalid uri component.\n return undefined;\n }\n}\n\n\n/**\n * Parses an escaped url query string into key-value pairs. Logic taken from\n * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382\n */\nfunction parseKeyValue(keyValue: string): {[k: string]: unknown} {\n const obj: {[k: string]: unknown} = {};\n (keyValue || '').split('&').forEach((keyValue) => {\n let splitPoint, key, val;\n if (keyValue) {\n key = keyValue = keyValue.replace(/\\+/g, '%20');\n splitPoint = keyValue.indexOf('=');\n if (splitPoint !== -1) {\n key = keyValue.substring(0, splitPoint);\n val = keyValue.substring(splitPoint + 1);\n }\n key = tryDecodeURIComponent(key);\n if (typeof key !== 'undefined') {\n val = typeof val !== 'undefined' ? tryDecodeURIComponent(val) : true;\n if (!obj.hasOwnProperty(key)) {\n obj[key] = val;\n } else if (Array.isArray(obj[key])) {\n (obj[key] as unknown[]).push(val);\n } else {\n obj[key] = [obj[key], val];\n }\n }\n }\n });\n return obj;\n}\n\n/**\n * Serializes into key-value pairs. Logic taken from\n * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1409\n */\nfunction toKeyValue(obj: {[k: string]: unknown}) {\n const parts: unknown[] = [];\n for (const key in obj) {\n let value = obj[key];\n if (Array.isArray(value)) {\n value.forEach((arrayValue) => {\n parts.push(\n encodeUriQuery(key, true) +\n (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));\n });\n } else {\n parts.push(\n encodeUriQuery(key, true) +\n (value === true ? '' : '=' + encodeUriQuery(value as any, true)));\n }\n }\n return parts.length ? parts.join('&') : '';\n}\n\n\n/**\n * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path\n * segments:\n * segment = *pchar\n * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n * pct-encoded = \"%\" HEXDIG HEXDIG\n * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n *\n * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437\n */\nfunction encodeUriSegment(val: string) {\n return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+');\n}\n\n\n/**\n * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n * encoded per https://tools.ietf.org/html/rfc3986:\n * query = *( pchar / \"/\" / \"?\" )\n * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n * pct-encoded = \"%\" HEXDIG HEXDIG\n * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n *\n * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1456\n */\nfunction encodeUriQuery(val: string, pctEncodeSpaces: boolean = false) {\n return encodeURIComponent(val)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',')\n .replace(/%3B/gi, ';')\n .replace(/%20/g, (pctEncodeSpaces ? '%20' : '+'));\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {APP_BASE_HREF, CommonModule, HashLocationStrategy, Location, LocationStrategy, PathLocationStrategy, PlatformLocation} from '@angular/common';\nimport {Inject, InjectionToken, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {UpgradeModule} from '@angular/upgrade/static';\n\nimport {$locationShim, $locationShimProvider} from './location_shim';\nimport {AngularJSUrlCodec, UrlCodec} from './params';\n\n\n/**\n * Configuration options for LocationUpgrade.\n *\n * @publicApi\n */\nexport interface LocationUpgradeConfig {\n /**\n * Configures whether the location upgrade module should use the `HashLocationStrategy`\n * or the `PathLocationStrategy`\n */\n useHash?: boolean;\n /**\n * Configures the hash prefix used in the URL when using the `HashLocationStrategy`\n */\n hashPrefix?: string;\n /**\n * Configures the URL codec for encoding and decoding URLs. Default is the `AngularJSCodec`\n */\n urlCodec?: typeof UrlCodec;\n /**\n * Configures the base href when used in server-side rendered applications\n */\n serverBaseHref?: string;\n /**\n * Configures the base href when used in client-side rendered applications\n */\n appBaseHref?: string;\n}\n\n/**\n * A provider token used to configure the location upgrade module.\n *\n * @publicApi\n */\nexport const LOCATION_UPGRADE_CONFIGURATION =\n new InjectionToken<LocationUpgradeConfig>('LOCATION_UPGRADE_CONFIGURATION');\n\nconst APP_BASE_HREF_RESOLVED = new InjectionToken<string>('APP_BASE_HREF_RESOLVED');\n\n/**\n * `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.\n *\n * @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)\n *\n * @publicApi\n */\n@NgModule({imports: [CommonModule]})\nexport class LocationUpgradeModule {\n static config(config?: LocationUpgradeConfig): ModuleWithProviders<LocationUpgradeModule> {\n return {\n ngModule: LocationUpgradeModule,\n providers: [\n Location,\n {\n provide: $locationShim,\n useFactory: provide$location,\n deps: [UpgradeModule, Location, PlatformLocation, UrlCodec, LocationStrategy]\n },\n {provide: LOCATION_UPGRADE_CONFIGURATION, useValue: config ? config : {}},\n {provide: UrlCodec, useFactory: provideUrlCodec, deps: [LOCATION_UPGRADE_CONFIGURATION]},\n {\n provide: APP_BASE_HREF_RESOLVED,\n useFactory: provideAppBaseHref,\n deps: [LOCATION_UPGRADE_CONFIGURATION, [new Inject(APP_BASE_HREF), new Optional()]]\n },\n {\n provide: LocationStrategy,\n useFactory: provideLocationStrategy,\n deps: [\n PlatformLocation,\n APP_BASE_HREF_RESOLVED,\n LOCATION_UPGRADE_CONFIGURATION,\n ]\n },\n ],\n };\n }\n}\n\nexport function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?: string) {\n if (config && config.appBaseHref != null) {\n return config.appBaseHref;\n } else if (appBaseHref != null) {\n return appBaseHref;\n }\n return '';\n}\n\nexport function provideUrlCodec(config: LocationUpgradeConfig) {\n const codec = config && config.urlCodec || AngularJSUrlCodec;\n return new (codec as any)();\n}\n\nexport function provideLocationStrategy(\n platformLocation: PlatformLocation, baseHref: string, options: LocationUpgradeConfig = {}) {\n return options.useHash ? new HashLocationStrategy(platformLocation, baseHref) :\n new PathLocationStrategy(platformLocation, baseHref);\n}\n\nexport function provide$location(\n ngUpgrade: UpgradeModule, location: Location, platformLocation: PlatformLocation,\n urlCodec: UrlCodec, locationStrategy: LocationStrategy) {\n const $locationProvider =\n new $locationShimProvider(ngUpgrade, location, platformLocation, urlCodec, locationStrategy);\n\n return $locationProvider.$get();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/index';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["isPromise"],"mappings":";;;;;;;;;;;;AAQgB,SAAA,WAAW,CAAC,GAAW,EAAE,MAAc,EAAA;IACrD,OAAO,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AACrE,CAAC;AAEe,SAAA,SAAS,CAAC,CAAM,EAAE,CAAM,EAAA;AACtC,IAAA,IAAI,CAAC,KAAK,CAAC,EAAE;AACX,QAAA,OAAO,IAAI,CAAC;KACb;AAAM,SAAA,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;AACnB,QAAA,OAAO,KAAK,CAAC;KACd;SAAM;AACL,QAAA,IAAI;YACF,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;AAC3E,gBAAA,OAAO,KAAK,CAAC;aACd;AACD,YAAA,O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,CAAC,EAAC,CAAA;;AAiCnB,SAAA,kBAAkB,CAAC,MAA6B,EAAE,WAAoB,EAAA;IACpF,IAAI,MAAM,IAAI,MAAM,CAAC,WAAW,IAAI,IAAI,EAAE;QACxC,OAAO,MAAM,CAAC,WAAW,CAAC;KAC3B;AAAM,SAAA,IAAI,WAAW,IAAI,IAAI,EAAE;AAC9B,QAAA,OAAO,WAAW,CAAC;KACpB;AACD,IAAA,OAAO,EAAE,CAAC;AACZ,CAAC;AAEK,SAAU,eAAe,CAAC,MAA6B,EAAA;IAC3D,MAAM,KAAK,GAAG,MAAM,IAAI,MAAM,CAAC,QAAQ,IAAI,iBAAiB,CAAC;IAC7D,OAAO,IAAK,KAAa,EAAE,CAAC;AAC9B,CAAC;AAEK,SAAU,uBAAuB,CACnC,gBAAkC,EAAE,QAAgB,EAAE,UAAiC,EAAE,EAAA;AAC3F,IAAA,OAAO,OAAO,CAAC,OAAO,GAAG,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,QAAQ,CAAC;AACpD,QAAA,IAAI,oBAAoB,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;AAChF,CAAC;AAEK,SAAU,gBAAgB,CAC5B,SAAwB,EAAE,QAAkB,EAAE,gBAAkC,EAChF,QAAkB,EAAE,gBAAkC,EAAA;AACxD,IAAA,MAAM,iBAAiB,GACnB,IAAI,qBAAqB,CAAC,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAEjG,IAAA,OAAO,iBAAiB,CAAC,IAAI,EAAE,CAAC;AAClC;;AClHA;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"upgrade.mjs","sources":["../../../../../../packages/common/upgrade/src/utils.ts","../../../../../../packages/common/upgrade/src/location_shim.ts","../../../../../../packages/common/upgrade/src/params.ts","../../../../../../packages/common/upgrade/src/location_upgrade_module.ts","../../../../../../packages/common/upgrade/public_api.ts","../../../../../../packages/common/upgrade/index.ts","../../../../../../packages/common/upgrade/upgrade.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nexport function stripPrefix(val: string, prefix: string): string {\n return val.startsWith(prefix) ? val.substring(prefix.length) : val;\n}\n\nexport function deepEqual(a: any, b: any): boolean {\n if (a === b) {\n return true;\n } else if (!a || !b) {\n return false;\n } else {\n try {\n if (a.prototype !== b.prototype || (Array.isArray(a) && Array.isArray(b))) {\n return false;\n }\n return JSON.stringify(a) === JSON.stringify(b);\n } catch (e) {\n return false;\n }\n }\n}\n\nexport function isAnchor(el: (Node & ParentNode) | Element | null): el is HTMLAnchorElement {\n return (<HTMLAnchorElement>el).href !== undefined;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {Location, LocationStrategy, PlatformLocation} from '@angular/common';\nimport {ɵisPromise as isPromise} from '@angular/core';\nimport {UpgradeModule} from '@angular/upgrade/static';\nimport {ReplaySubject} from 'rxjs';\n\nimport {UrlCodec} from './params';\nimport {deepEqual, isAnchor} from './utils';\n\nconst PATH_MATCH = /^([^?#]*)(\\?([^#]*))?(#(.*))?$/;\nconst DOUBLE_SLASH_REGEX = /^\\s*[\\\\/]{2,}/;\nconst IGNORE_URI_REGEXP = /^\\s*(javascript|mailto):/i;\nconst DEFAULT_PORTS: {[key: string]: number} = {\n 'http:': 80,\n 'https:': 443,\n 'ftp:': 21,\n};\n\n/**\n * Location service that provides a drop-in replacement for the $location service\n * provided in AngularJS.\n *\n * @see [Using the Angular Unified Location Service](guide/upgrade#using-the-unified-angular-location-service)\n *\n * @publicApi\n */\nexport class $locationShim {\n private initializing = true;\n private updateBrowser = false;\n private $$absUrl: string = '';\n private $$url: string = '';\n private $$protocol: string;\n private $$host: string = '';\n private $$port: number | null;\n private $$replace: boolean = false;\n private $$path: string = '';\n private $$search: any = '';\n private $$hash: string = '';\n private $$state: unknown;\n private $$changeListeners: [\n (\n url: string,\n state: unknown,\n oldUrl: string,\n oldState: unknown,\n err?: (e: Error) => void,\n ) => void,\n (e: Error) => void,\n ][] = [];\n\n private cachedState: unknown = null;\n\n private urlChanges = new ReplaySubject<{newUrl: string; newState: unknown}>(1);\n\n constructor(\n $injector: any,\n private location: Location,\n private platformLocation: PlatformLocation,\n private urlCodec: UrlCodec,\n private locationStrategy: LocationStrategy,\n ) {\n const initialUrl = this.browserUrl();\n\n let parsedUrl = this.urlCodec.parse(initialUrl);\n\n if (typeof parsedUrl === 'string') {\n throw 'Invalid URL';\n }\n\n this.$$protocol = parsedUrl.protocol;\n this.$$host = parsedUrl.hostname;\n this.$$port = parseInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;\n\n this.$$parseLinkUrl(initialUrl, initialUrl);\n this.cacheState();\n this.$$state = this.browserState();\n\n this.location.onUrlChange((newUrl, newState) => {\n this.urlChanges.next({newUrl, newState});\n });\n\n if (isPromise($injector)) {\n $injector.then(($i) => this.initialize($i));\n } else {\n this.initialize($injector);\n }\n }\n\n private initialize($injector: any) {\n const $rootScope = $injector.get('$rootScope');\n const $rootElement = $injector.get('$rootElement');\n\n $rootElement.on('click', (event: any) => {\n if (\n event.ctrlKey ||\n event.metaKey ||\n event.shiftKey ||\n event.which === 2 ||\n event.button === 2\n ) {\n return;\n }\n\n let elm: (Node & ParentNode) | null = event.target;\n\n // traverse the DOM up to find first A tag\n while (elm && elm.nodeName.toLowerCase() !== 'a') {\n // ignore rewriting if no A tag (reached root element, or no parent - removed from document)\n if (elm === $rootElement[0] || !(elm = elm.parentNode)) {\n return;\n }\n }\n\n if (!isAnchor(elm)) {\n return;\n }\n\n const absHref = elm.href;\n const relHref = elm.getAttribute('href');\n\n // Ignore when url is started with javascript: or mailto:\n if (IGNORE_URI_REGEXP.test(absHref)) {\n return;\n }\n\n if (absHref && !elm.getAttribute('target') && !event.isDefaultPrevented()) {\n if (this.$$parseLinkUrl(absHref, relHref)) {\n // We do a preventDefault for all urls that are part of the AngularJS application,\n // in html5mode and also without, so that we are able to abort navigation without\n // getting double entries in the location history.\n event.preventDefault();\n // update location manually\n if (this.absUrl() !== this.browserUrl()) {\n $rootScope.$apply();\n }\n }\n }\n });\n\n this.urlChanges.subscribe(({newUrl, newState}) => {\n const oldUrl = this.absUrl();\n const oldState = this.$$state;\n this.$$parse(newUrl);\n newUrl = this.absUrl();\n this.$$state = newState;\n const defaultPrevented = $rootScope.$broadcast(\n '$locationChangeStart',\n newUrl,\n oldUrl,\n newState,\n oldState,\n ).defaultPrevented;\n\n // if the location was changed by a `$locationChangeStart` handler then stop\n // processing this location change\n if (this.absUrl() !== newUrl) return;\n\n // If default was prevented, set back to old state. This is the state that was locally\n // cached in the $location service.\n if (defaultPrevented) {\n this.$$parse(oldUrl);\n this.state(oldState);\n this.setBrowserUrlWithFallback(oldUrl, false, oldState);\n this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);\n } else {\n this.initializing = false;\n $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);\n this.resetBrowserUpdate();\n }\n if (!$rootScope.$$phase) {\n $rootScope.$digest();\n }\n });\n\n // update browser\n $rootScope.$watch(() => {\n if (this.initializing || this.updateBrowser) {\n this.updateBrowser = false;\n\n const oldUrl = this.browserUrl();\n const newUrl = this.absUrl();\n const oldState = this.browserState();\n let currentReplace = this.$$replace;\n\n const urlOrStateChanged =\n !this.urlCodec.areEqual(oldUrl, newUrl) || oldState !== this.$$state;\n\n // Fire location changes one time to on initialization. This must be done on the\n // next tick (thus inside $evalAsync()) in order for listeners to be registered\n // before the event fires. Mimicing behavior from $locationWatch:\n // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983\n if (this.initializing || urlOrStateChanged) {\n this.initializing = false;\n\n $rootScope.$evalAsync(() => {\n // Get the new URL again since it could have changed due to async update\n const newUrl = this.absUrl();\n const defaultPrevented = $rootScope.$broadcast(\n '$locationChangeStart',\n newUrl,\n oldUrl,\n this.$$state,\n oldState,\n ).defaultPrevented;\n\n // if the location was changed by a `$locationChangeStart` handler then stop\n // processing this location change\n if (this.absUrl() !== newUrl) return;\n\n if (defaultPrevented) {\n this.$$parse(oldUrl);\n this.$$state = oldState;\n } else {\n // This block doesn't run when initializing because it's going to perform the update\n // to the URL which shouldn't be needed when initializing.\n if (urlOrStateChanged) {\n this.setBrowserUrlWithFallback(\n newUrl,\n currentReplace,\n oldState === this.$$state ? null : this.$$state,\n );\n this.$$replace = false;\n }\n $rootScope.$broadcast(\n '$locationChangeSuccess',\n newUrl,\n oldUrl,\n this.$$state,\n oldState,\n );\n if (urlOrStateChanged) {\n this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);\n }\n }\n });\n }\n }\n this.$$replace = false;\n });\n }\n\n private resetBrowserUpdate() {\n this.$$replace = false;\n this.$$state = this.browserState();\n this.updateBrowser = false;\n this.lastBrowserUrl = this.browserUrl();\n }\n\n private lastHistoryState: unknown;\n private lastBrowserUrl: string = '';\n private browserUrl(): string;\n private browserUrl(url: string, replace?: boolean, state?: unknown): this;\n private browserUrl(url?: string, replace?: boolean, state?: unknown) {\n // In modern browsers `history.state` is `null` by default; treating it separately\n // from `undefined` would cause `$browser.url('/foo')` to change `history.state`\n // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.\n if (typeof state === 'undefined') {\n state = null;\n }\n\n // setter\n if (url) {\n let sameState = this.lastHistoryState === state;\n\n // Normalize the inputted URL\n url = this.urlCodec.parse(url).href;\n\n // Don't change anything if previous and current URLs and states match.\n if (this.lastBrowserUrl === url && sameState) {\n return this;\n }\n this.lastBrowserUrl = url;\n this.lastHistoryState = state;\n\n // Remove server base from URL as the Angular APIs for updating URL require\n // it to be the path+.\n url = this.stripBaseUrl(this.getServerBase(), url) || url;\n\n // Set the URL\n if (replace) {\n this.locationStrategy.replaceState(state, '', url, '');\n } else {\n this.locationStrategy.pushState(state, '', url, '');\n }\n\n this.cacheState();\n\n return this;\n // getter\n } else {\n return this.platformLocation.href;\n }\n }\n\n // This variable should be used *only* inside the cacheState function.\n private lastCachedState: unknown = null;\n private cacheState() {\n // This should be the only place in $browser where `history.state` is read.\n this.cachedState = this.platformLocation.getState();\n if (typeof this.cachedState === 'undefined') {\n this.cachedState = null;\n }\n\n // Prevent callbacks fo fire twice if both hashchange & popstate were fired.\n if (deepEqual(this.cachedState, this.lastCachedState)) {\n this.cachedState = this.lastCachedState;\n }\n\n this.lastCachedState = this.cachedState;\n this.lastHistoryState = this.cachedState;\n }\n\n /**\n * This function emulates the $browser.state() function from AngularJS. It will cause\n * history.state to be cached unless changed with deep equality check.\n */\n private browserState(): unknown {\n return this.cachedState;\n }\n\n private stripBaseUrl(base: string, url: string) {\n if (url.startsWith(base)) {\n return url.slice(base.length);\n }\n return undefined;\n }\n\n private getServerBase() {\n const {protocol, hostname, port} = this.platformLocation;\n const baseHref = this.locationStrategy.getBaseHref();\n let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;\n return url.endsWith('/') ? url : url + '/';\n }\n\n private parseAppUrl(url: string) {\n if (DOUBLE_SLASH_REGEX.test(url)) {\n throw new Error(`Bad Path - URL cannot start with double slashes: ${url}`);\n }\n\n let prefixed = url.charAt(0) !== '/';\n if (prefixed) {\n url = '/' + url;\n }\n let match = this.urlCodec.parse(url, this.getServerBase());\n if (typeof match === 'string') {\n throw new Error(`Bad URL - Cannot parse URL: ${url}`);\n }\n let path =\n prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;\n this.$$path = this.urlCodec.decodePath(path);\n this.$$search = this.urlCodec.decodeSearch(match.search);\n this.$$hash = this.urlCodec.decodeHash(match.hash);\n\n // make sure path starts with '/';\n if (this.$$path && this.$$path.charAt(0) !== '/') {\n this.$$path = '/' + this.$$path;\n }\n }\n\n /**\n * Registers listeners for URL changes. This API is used to catch updates performed by the\n * AngularJS framework. These changes are a subset of the `$locationChangeStart` and\n * `$locationChangeSuccess` events which fire when AngularJS updates its internally-referenced\n * version of the browser URL.\n *\n * It's possible for `$locationChange` events to happen, but for the browser URL\n * (window.location) to remain unchanged. This `onChange` callback will fire only when AngularJS\n * actually updates the browser URL (window.location).\n *\n * @param fn The callback function that is triggered for the listener when the URL changes.\n * @param err The callback function that is triggered when an error occurs.\n */\n onChange(\n fn: (url: string, state: unknown, oldUrl: string, oldState: unknown) => void,\n err: (e: Error) => void = (e: Error) => {},\n ) {\n this.$$changeListeners.push([fn, err]);\n }\n\n /** @internal */\n $$notifyChangeListeners(\n url: string = '',\n state: unknown,\n oldUrl: string = '',\n oldState: unknown,\n ) {\n this.$$changeListeners.forEach(([fn, err]) => {\n try {\n fn(url, state, oldUrl, oldState);\n } catch (e) {\n err(e as Error);\n }\n });\n }\n\n /**\n * Parses the provided URL, and sets the current URL to the parsed result.\n *\n * @param url The URL string.\n */\n $$parse(url: string) {\n let pathUrl: string | undefined;\n if (url.startsWith('/')) {\n pathUrl = url;\n } else {\n // Remove protocol & hostname if URL starts with it\n pathUrl = this.stripBaseUrl(this.getServerBase(), url);\n }\n if (typeof pathUrl === 'undefined') {\n throw new Error(`Invalid url \"${url}\", missing path prefix \"${this.getServerBase()}\".`);\n }\n\n this.parseAppUrl(pathUrl);\n\n this.$$path ||= '/';\n this.composeUrls();\n }\n\n /**\n * Parses the provided URL and its relative URL.\n *\n * @param url The full URL string.\n * @param relHref A URL string relative to the full URL string.\n */\n $$parseLinkUrl(url: string, relHref?: string | null): boolean {\n // When relHref is passed, it should be a hash and is handled separately\n if (relHref && relHref[0] === '#') {\n this.hash(relHref.slice(1));\n return true;\n }\n let rewrittenUrl;\n let appUrl = this.stripBaseUrl(this.getServerBase(), url);\n if (typeof appUrl !== 'undefined') {\n rewrittenUrl = this.getServerBase() + appUrl;\n } else if (this.getServerBase() === url + '/') {\n rewrittenUrl = this.getServerBase();\n }\n // Set the URL\n if (rewrittenUrl) {\n this.$$parse(rewrittenUrl);\n }\n return !!rewrittenUrl;\n }\n\n private setBrowserUrlWithFallback(url: string, replace: boolean, state: unknown) {\n const oldUrl = this.url();\n const oldState = this.$$state;\n try {\n this.browserUrl(url, replace, state);\n\n // Make sure $location.state() returns referentially identical (not just deeply equal)\n // state object; this makes possible quick checking if the state changed in the digest\n // loop. Checking deep equality would be too expensive.\n this.$$state = this.browserState();\n } catch (e) {\n // Restore old values if pushState fails\n this.url(oldUrl);\n this.$$state = oldState;\n\n throw e;\n }\n }\n\n private composeUrls() {\n this.$$url = this.urlCodec.normalize(this.$$path, this.$$search, this.$$hash);\n this.$$absUrl = this.getServerBase() + this.$$url.slice(1); // remove '/' from front of URL\n this.updateBrowser = true;\n }\n\n /**\n * Retrieves the full URL representation with all segments encoded according to\n * rules specified in\n * [RFC 3986](https://tools.ietf.org/html/rfc3986).\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let absUrl = $location.absUrl();\n * // => \"http://example.com/#/some/path?foo=bar&baz=xoxo\"\n * ```\n */\n absUrl(): string {\n return this.$$absUrl;\n }\n\n /**\n * Retrieves the current URL, or sets a new URL. When setting a URL,\n * changes the path, search, and hash, and returns a reference to its own instance.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let url = $location.url();\n * // => \"/some/path?foo=bar&baz=xoxo\"\n * ```\n */\n url(): string;\n url(url: string): this;\n url(url?: string): string | this {\n if (typeof url === 'string') {\n if (!url.length) {\n url = '/';\n }\n\n const match = PATH_MATCH.exec(url);\n if (!match) return this;\n if (match[1] || url === '') this.path(this.urlCodec.decodePath(match[1]));\n if (match[2] || match[1] || url === '') this.search(match[3] || '');\n this.hash(match[5] || '');\n\n // Chainable method\n return this;\n }\n\n return this.$$url;\n }\n\n /**\n * Retrieves the protocol of the current URL.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let protocol = $location.protocol();\n * // => \"http\"\n * ```\n */\n protocol(): string {\n return this.$$protocol;\n }\n\n /**\n * Retrieves the protocol of the current URL.\n *\n * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this\n * returns the `hostname` portion only.\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let host = $location.host();\n * // => \"example.com\"\n *\n * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo\n * host = $location.host();\n * // => \"example.com\"\n * host = location.host;\n * // => \"example.com:8080\"\n * ```\n */\n host(): string {\n return this.$$host;\n }\n\n /**\n * Retrieves the port of the current URL.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let port = $location.port();\n * // => 80\n * ```\n */\n port(): number | null {\n return this.$$port;\n }\n\n /**\n * Retrieves the path of the current URL, or changes the path and returns a reference to its own\n * instance.\n *\n * Paths should always begin with forward slash (/). This method adds the forward slash\n * if it is missing.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let path = $location.path();\n * // => \"/some/path\"\n * ```\n */\n path(): string;\n path(path: string | number | null): this;\n path(path?: string | number | null): string | this {\n if (typeof path === 'undefined') {\n return this.$$path;\n }\n\n // null path converts to empty string. Prepend with \"/\" if needed.\n path = path !== null ? path.toString() : '';\n path = path.charAt(0) === '/' ? path : '/' + path;\n\n this.$$path = path;\n\n this.composeUrls();\n return this;\n }\n\n /**\n * Retrieves a map of the search parameters of the current URL, or changes a search\n * part and returns a reference to its own instance.\n *\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo\n * let searchObject = $location.search();\n * // => {foo: 'bar', baz: 'xoxo'}\n *\n * // set foo to 'yipee'\n * $location.search('foo', 'yipee');\n * // $location.search() => {foo: 'yipee', baz: 'xoxo'}\n * ```\n *\n * @param {string|Object.<string>|Object.<Array.<string>>} search New search params - string or\n * hash object.\n *\n * When called with a single argument the method acts as a setter, setting the `search` component\n * of `$location` to the specified value.\n *\n * If the argument is a hash object containing an array of values, these values will be encoded\n * as duplicate search parameters in the URL.\n *\n * @param {(string|Number|Array<string>|boolean)=} paramValue If `search` is a string or number,\n * then `paramValue`\n * will override only a single search property.\n *\n * If `paramValue` is an array, it will override the property of the `search` component of\n * `$location` specified via the first argument.\n *\n * If `paramValue` is `null`, the property specified via the first argument will be deleted.\n *\n * If `paramValue` is `true`, the property specified via the first argument will be added with no\n * value nor trailing equal sign.\n *\n * @return {Object} The parsed `search` object of the current URL, or the changed `search` object.\n */\n search(): {[key: string]: unknown};\n search(search: string | number | {[key: string]: unknown}): this;\n search(\n search: string | number | {[key: string]: unknown},\n paramValue: null | undefined | string | number | boolean | string[],\n ): this;\n search(\n search?: string | number | {[key: string]: unknown},\n paramValue?: null | undefined | string | number | boolean | string[],\n ): {[key: string]: unknown} | this {\n switch (arguments.length) {\n case 0:\n return this.$$search;\n case 1:\n if (typeof search === 'string' || typeof search === 'number') {\n this.$$search = this.urlCodec.decodeSearch(search.toString());\n } else if (typeof search === 'object' && search !== null) {\n // Copy the object so it's never mutated\n search = {...search};\n // remove object undefined or null properties\n for (const key in search) {\n if (search[key] == null) delete search[key];\n }\n\n this.$$search = search;\n } else {\n throw new Error(\n 'LocationProvider.search(): First argument must be a string or an object.',\n );\n }\n break;\n default:\n if (typeof search === 'string') {\n const currentSearch = this.search();\n if (typeof paramValue === 'undefined' || paramValue === null) {\n delete currentSearch[search];\n return this.search(currentSearch);\n } else {\n currentSearch[search] = paramValue;\n return this.search(currentSearch);\n }\n }\n }\n this.composeUrls();\n return this;\n }\n\n /**\n * Retrieves the current hash fragment, or changes the hash fragment and returns a reference to\n * its own instance.\n *\n * ```js\n * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo#hashValue\n * let hash = $location.hash();\n * // => \"hashValue\"\n * ```\n */\n hash(): string;\n hash(hash: string | number | null): this;\n hash(hash?: string | number | null): string | this {\n if (typeof hash === 'undefined') {\n return this.$$hash;\n }\n\n this.$$hash = hash !== null ? hash.toString() : '';\n\n this.composeUrls();\n return this;\n }\n\n /**\n * Changes to `$location` during the current `$digest` will replace the current\n * history record, instead of adding a new one.\n */\n replace(): this {\n this.$$replace = true;\n return this;\n }\n\n /**\n * Retrieves the history state object when called without any parameter.\n *\n * Change the history state object when called with one parameter and return `$location`.\n * The state object is later passed to `pushState` or `replaceState`.\n *\n * This method is supported only in HTML5 mode and only in browsers supporting\n * the HTML5 History API methods such as `pushState` and `replaceState`. If you need to support\n * older browsers (like Android < 4.0), don't use this method.\n *\n */\n state(): unknown;\n state(state: unknown): this;\n state(state?: unknown): unknown | this {\n if (typeof state === 'undefined') {\n return this.$$state;\n }\n\n this.$$state = state;\n return this;\n }\n}\n\n/**\n * The factory function used to create an instance of the `$locationShim` in Angular,\n * and provides an API-compatible `$locationProvider` for AngularJS.\n *\n * @publicApi\n */\nexport class $locationShimProvider {\n constructor(\n private ngUpgrade: UpgradeModule,\n private location: Location,\n private platformLocation: PlatformLocation,\n private urlCodec: UrlCodec,\n private locationStrategy: LocationStrategy,\n ) {}\n\n /**\n * Factory method that returns an instance of the $locationShim\n */\n $get() {\n return new $locationShim(\n this.ngUpgrade.$injector,\n this.location,\n this.platformLocation,\n this.urlCodec,\n this.locationStrategy,\n );\n }\n\n /**\n * Stub method used to keep API compatible with AngularJS. This setting is configured through\n * the LocationUpgradeModule's `config` method in your Angular app.\n */\n hashPrefix(prefix?: string) {\n throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');\n }\n\n /**\n * Stub method used to keep API compatible with AngularJS. This setting is configured through\n * the LocationUpgradeModule's `config` method in your Angular app.\n */\n html5Mode(mode?: any) {\n throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * A codec for encoding and decoding URL parts.\n *\n * @publicApi\n **/\nexport abstract class UrlCodec {\n /**\n * Encodes the path from the provided string\n *\n * @param path The path string\n */\n abstract encodePath(path: string): string;\n\n /**\n * Decodes the path from the provided string\n *\n * @param path The path string\n */\n abstract decodePath(path: string): string;\n\n /**\n * Encodes the search string from the provided string or object\n *\n * @param path The path string or object\n */\n abstract encodeSearch(search: string | {[k: string]: unknown}): string;\n\n /**\n * Decodes the search objects from the provided string\n *\n * @param path The path string\n */\n abstract decodeSearch(search: string): {[k: string]: unknown};\n\n /**\n * Encodes the hash from the provided string\n *\n * @param path The hash string\n */\n abstract encodeHash(hash: string): string;\n\n /**\n * Decodes the hash from the provided string\n *\n * @param path The hash string\n */\n abstract decodeHash(hash: string): string;\n\n /**\n * Normalizes the URL from the provided string\n *\n * @param path The URL string\n */\n abstract normalize(href: string): string;\n\n /**\n * Normalizes the URL from the provided string, search, hash, and base URL parameters\n *\n * @param path The URL path\n * @param search The search object\n * @param hash The has string\n * @param baseUrl The base URL for the URL\n */\n abstract normalize(\n path: string,\n search: {[k: string]: unknown},\n hash: string,\n baseUrl?: string,\n ): string;\n\n /**\n * Checks whether the two strings are equal\n * @param valA First string for comparison\n * @param valB Second string for comparison\n */\n abstract areEqual(valA: string, valB: string): boolean;\n\n /**\n * Parses the URL string based on the base URL\n *\n * @param url The full URL string\n * @param base The base for the URL\n */\n abstract parse(\n url: string,\n base?: string,\n ): {\n href: string;\n protocol: string;\n host: string;\n search: string;\n hash: string;\n hostname: string;\n port: string;\n pathname: string;\n };\n}\n\n/**\n * A `UrlCodec` that uses logic from AngularJS to serialize and parse URLs\n * and URL parameters.\n *\n * @publicApi\n */\nexport class AngularJSUrlCodec implements UrlCodec {\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L15\n encodePath(path: string): string {\n const segments = path.split('/');\n let i = segments.length;\n\n while (i--) {\n // decode forward slashes to prevent them from being double encoded\n segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));\n }\n\n path = segments.join('/');\n return _stripIndexHtml(((path && path[0] !== '/' && '/') || '') + path);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42\n encodeSearch(search: string | {[k: string]: unknown}): string {\n if (typeof search === 'string') {\n search = parseKeyValue(search);\n }\n\n search = toKeyValue(search);\n return search ? '?' + search : '';\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L44\n encodeHash(hash: string) {\n hash = encodeUriSegment(hash);\n return hash ? '#' + hash : '';\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L27\n decodePath(path: string, html5Mode = true): string {\n const segments = path.split('/');\n let i = segments.length;\n\n while (i--) {\n segments[i] = decodeURIComponent(segments[i]);\n if (html5Mode) {\n // encode forward slashes to prevent them from being mistaken for path separators\n segments[i] = segments[i].replace(/\\//g, '%2F');\n }\n }\n\n return segments.join('/');\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72\n decodeSearch(search: string) {\n return parseKeyValue(search);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73\n decodeHash(hash: string) {\n hash = decodeURIComponent(hash);\n return hash[0] === '#' ? hash.substring(1) : hash;\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L149\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42\n normalize(href: string): string;\n normalize(path: string, search: {[k: string]: unknown}, hash: string, baseUrl?: string): string;\n normalize(\n pathOrHref: string,\n search?: {[k: string]: unknown},\n hash?: string,\n baseUrl?: string,\n ): string {\n if (arguments.length === 1) {\n const parsed = this.parse(pathOrHref, baseUrl);\n\n if (typeof parsed === 'string') {\n return parsed;\n }\n\n const serverUrl = `${parsed.protocol}://${parsed.hostname}${\n parsed.port ? ':' + parsed.port : ''\n }`;\n\n return this.normalize(\n this.decodePath(parsed.pathname),\n this.decodeSearch(parsed.search),\n this.decodeHash(parsed.hash),\n serverUrl,\n );\n } else {\n const encPath = this.encodePath(pathOrHref);\n const encSearch = (search && this.encodeSearch(search)) || '';\n const encHash = (hash && this.encodeHash(hash)) || '';\n\n let joinedPath = (baseUrl || '') + encPath;\n\n if (!joinedPath.length || joinedPath[0] !== '/') {\n joinedPath = '/' + joinedPath;\n }\n return joinedPath + encSearch + encHash;\n }\n }\n\n areEqual(valA: string, valB: string) {\n return this.normalize(valA) === this.normalize(valB);\n }\n\n // https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60\n parse(url: string, base?: string) {\n try {\n // Safari 12 throws an error when the URL constructor is called with an undefined base.\n const parsed = !base ? new URL(url) : new URL(url, base);\n return {\n href: parsed.href,\n protocol: parsed.protocol ? parsed.protocol.replace(/:$/, '') : '',\n host: parsed.host,\n search: parsed.search ? parsed.search.replace(/^\\?/, '') : '',\n hash: parsed.hash ? parsed.hash.replace(/^#/, '') : '',\n hostname: parsed.hostname,\n port: parsed.port,\n pathname: parsed.pathname.charAt(0) === '/' ? parsed.pathname : '/' + parsed.pathname,\n };\n } catch (e) {\n throw new Error(`Invalid URL (${url}) with base (${base})`);\n }\n }\n}\n\nfunction _stripIndexHtml(url: string): string {\n return url.replace(/\\/index.html$/, '');\n}\n\n/**\n * Tries to decode the URI component without throwing an exception.\n *\n * @param str value potential URI component to check.\n * @returns the decoded URI if it can be decoded or else `undefined`.\n */\nfunction tryDecodeURIComponent(value: string): string | undefined {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n // Ignore any invalid uri component.\n return undefined;\n }\n}\n\n/**\n * Parses an escaped url query string into key-value pairs. Logic taken from\n * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382\n */\nfunction parseKeyValue(keyValue: string): {[k: string]: unknown} {\n const obj: {[k: string]: unknown} = {};\n (keyValue || '').split('&').forEach((keyValue) => {\n let splitPoint, key, val;\n if (keyValue) {\n key = keyValue = keyValue.replace(/\\+/g, '%20');\n splitPoint = keyValue.indexOf('=');\n if (splitPoint !== -1) {\n key = keyValue.substring(0, splitPoint);\n val = keyValue.substring(splitPoint + 1);\n }\n key = tryDecodeURIComponent(key);\n if (typeof key !== 'undefined') {\n val = typeof val !== 'undefined' ? tryDecodeURIComponent(val) : true;\n if (!obj.hasOwnProperty(key)) {\n obj[key] = val;\n } else if (Array.isArray(obj[key])) {\n (obj[key] as unknown[]).push(val);\n } else {\n obj[key] = [obj[key], val];\n }\n }\n }\n });\n return obj;\n}\n\n/**\n * Serializes into key-value pairs. Logic taken from\n * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1409\n */\nfunction toKeyValue(obj: {[k: string]: unknown}) {\n const parts: unknown[] = [];\n for (const key in obj) {\n let value = obj[key];\n if (Array.isArray(value)) {\n value.forEach((arrayValue) => {\n parts.push(\n encodeUriQuery(key, true) +\n (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)),\n );\n });\n } else {\n parts.push(\n encodeUriQuery(key, true) +\n (value === true ? '' : '=' + encodeUriQuery(value as any, true)),\n );\n }\n }\n return parts.length ? parts.join('&') : '';\n}\n\n/**\n * We need our custom method because encodeURIComponent is too aggressive and doesn't follow\n * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path\n * segments:\n * segment = *pchar\n * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n * pct-encoded = \"%\" HEXDIG HEXDIG\n * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n *\n * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437\n */\nfunction encodeUriSegment(val: string) {\n return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+');\n}\n\n/**\n * This method is intended for encoding *key* or *value* parts of query component. We need a custom\n * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be\n * encoded per https://tools.ietf.org/html/rfc3986:\n * query = *( pchar / \"/\" / \"?\" )\n * pchar = unreserved / pct-encoded / sub-delims / \":\" / \"@\"\n * unreserved = ALPHA / DIGIT / \"-\" / \".\" / \"_\" / \"~\"\n * pct-encoded = \"%\" HEXDIG HEXDIG\n * sub-delims = \"!\" / \"$\" / \"&\" / \"'\" / \"(\" / \")\"\n * / \"*\" / \"+\" / \",\" / \";\" / \"=\"\n *\n * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1456\n */\nfunction encodeUriQuery(val: string, pctEncodeSpaces: boolean = false) {\n return encodeURIComponent(val)\n .replace(/%40/g, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',')\n .replace(/%3B/gi, ';')\n .replace(/%20/g, pctEncodeSpaces ? '%20' : '+');\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\nimport {\n APP_BASE_HREF,\n CommonModule,\n HashLocationStrategy,\n Location,\n LocationStrategy,\n PathLocationStrategy,\n PlatformLocation,\n} from '@angular/common';\nimport {Inject, InjectionToken, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {UpgradeModule} from '@angular/upgrade/static';\n\nimport {$locationShim, $locationShimProvider} from './location_shim';\nimport {AngularJSUrlCodec, UrlCodec} from './params';\n\n/**\n * Configuration options for LocationUpgrade.\n *\n * @publicApi\n */\nexport interface LocationUpgradeConfig {\n /**\n * Configures whether the location upgrade module should use the `HashLocationStrategy`\n * or the `PathLocationStrategy`\n */\n useHash?: boolean;\n /**\n * Configures the hash prefix used in the URL when using the `HashLocationStrategy`\n */\n hashPrefix?: string;\n /**\n * Configures the URL codec for encoding and decoding URLs. Default is the `AngularJSCodec`\n */\n urlCodec?: typeof UrlCodec;\n /**\n * Configures the base href when used in server-side rendered applications\n */\n serverBaseHref?: string;\n /**\n * Configures the base href when used in client-side rendered applications\n */\n appBaseHref?: string;\n}\n\n/**\n * A provider token used to configure the location upgrade module.\n *\n * @publicApi\n */\nexport const LOCATION_UPGRADE_CONFIGURATION = new InjectionToken<LocationUpgradeConfig>(\n ngDevMode ? 'LOCATION_UPGRADE_CONFIGURATION' : '',\n);\n\nconst APP_BASE_HREF_RESOLVED = new InjectionToken<string>(\n ngDevMode ? 'APP_BASE_HREF_RESOLVED' : '',\n);\n\n/**\n * `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.\n *\n * @see [Using the Unified Angular Location Service](guide/upgrade#using-the-unified-angular-location-service)\n *\n * @publicApi\n */\n@NgModule({imports: [CommonModule]})\nexport class LocationUpgradeModule {\n static config(config?: LocationUpgradeConfig): ModuleWithProviders<LocationUpgradeModule> {\n return {\n ngModule: LocationUpgradeModule,\n providers: [\n Location,\n {\n provide: $locationShim,\n useFactory: provide$location,\n deps: [UpgradeModule, Location, PlatformLocation, UrlCodec, LocationStrategy],\n },\n {provide: LOCATION_UPGRADE_CONFIGURATION, useValue: config ? config : {}},\n {provide: UrlCodec, useFactory: provideUrlCodec, deps: [LOCATION_UPGRADE_CONFIGURATION]},\n {\n provide: APP_BASE_HREF_RESOLVED,\n useFactory: provideAppBaseHref,\n deps: [LOCATION_UPGRADE_CONFIGURATION, [new Inject(APP_BASE_HREF), new Optional()]],\n },\n {\n provide: LocationStrategy,\n useFactory: provideLocationStrategy,\n deps: [PlatformLocation, APP_BASE_HREF_RESOLVED, LOCATION_UPGRADE_CONFIGURATION],\n },\n ],\n };\n }\n}\n\nexport function provideAppBaseHref(config: LocationUpgradeConfig, appBaseHref?: string) {\n if (config && config.appBaseHref != null) {\n return config.appBaseHref;\n } else if (appBaseHref != null) {\n return appBaseHref;\n }\n return '';\n}\n\nexport function provideUrlCodec(config: LocationUpgradeConfig) {\n const codec = (config && config.urlCodec) || AngularJSUrlCodec;\n return new (codec as any)();\n}\n\nexport function provideLocationStrategy(\n platformLocation: PlatformLocation,\n baseHref: string,\n options: LocationUpgradeConfig = {},\n) {\n return options.useHash\n ? new HashLocationStrategy(platformLocation, baseHref)\n : new PathLocationStrategy(platformLocation, baseHref);\n}\n\nexport function provide$location(\n ngUpgrade: UpgradeModule,\n location: Location,\n platformLocation: PlatformLocation,\n urlCodec: UrlCodec,\n locationStrategy: LocationStrategy,\n) {\n const $locationProvider = new $locationShimProvider(\n ngUpgrade,\n location,\n platformLocation,\n urlCodec,\n locationStrategy,\n );\n\n return $locationProvider.$get();\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/index';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["isPromise"],"mappings":";;;;;;;;;;;;AAQgB,SAAA,WAAW,CAAC,GAAW,EAAE,MAAc,EAAA;IACrD,OAAO,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AACrE,CAAC;AAEe,SAAA,SAAS,CAAC,CAAM,EAAE,CAAM,EAAA;AACtC,IAAA,IAAI,CAAC,KAAK,CAAC,EAAE;AACX,QAAA,OAAO,IAAI,CAAC;KACb;AAAM,SAAA,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;AACnB,QAAA,OAAO,KAAK,CAAC;KACd;SAAM;AACL,QAAA,IAAI;YACF,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAA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7 +4469,7 @@ export declare function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind
|
|
|
4469
4469
|
*
|
|
4470
4470
|
* @see {@link provideHttpClient}
|
|
4471
4471
|
*/
|
|
4472
|
-
export declare function withXsrfConfiguration({ cookieName, headerName }: {
|
|
4472
|
+
export declare function withXsrfConfiguration({ cookieName, headerName, }: {
|
|
4473
4473
|
cookieName?: string;
|
|
4474
4474
|
headerName?: string;
|
|
4475
4475
|
}): HttpFeature<HttpFeatureKind.CustomXsrfConfiguration>;
|
package/http/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.1.
|
|
2
|
+
* @license Angular v17.1.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -60,7 +60,7 @@ export declare abstract class HttpTestingController {
|
|
|
60
60
|
* If no such request has been made, or more than one such request has been made, fail with an
|
|
61
61
|
* error message including the given request description, if any.
|
|
62
62
|
*/
|
|
63
|
-
abstract expectOne(matchFn: (
|
|
63
|
+
abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string): TestRequest;
|
|
64
64
|
/**
|
|
65
65
|
* Expect that a single request has been made which matches the given condition, and return
|
|
66
66
|
* its mock.
|
|
@@ -89,7 +89,7 @@ export declare abstract class HttpTestingController {
|
|
|
89
89
|
* If a matching request has been made, fail with an error message including the given request
|
|
90
90
|
* description, if any.
|
|
91
91
|
*/
|
|
92
|
-
abstract expectNone(matchFn: (
|
|
92
|
+
abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string): void;
|
|
93
93
|
/**
|
|
94
94
|
* Expect that no requests have been made which match the given condition.
|
|
95
95
|
*
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.1.
|
|
2
|
+
* @license Angular v17.1.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -281,70 +281,70 @@ export declare const DATE_PIPE_DEFAULT_TIMEZONE: InjectionToken<string>;
|
|
|
281
281
|
* Format details depend on the locale.
|
|
282
282
|
* Fields marked with (*) are only available in the extra data set for the given locale.
|
|
283
283
|
*
|
|
284
|
-
* | Field type
|
|
285
|
-
*
|
|
286
|
-
* | Era
|
|
287
|
-
* |
|
|
288
|
-
* |
|
|
289
|
-
* | Year
|
|
290
|
-
* |
|
|
291
|
-
* |
|
|
292
|
-
* |
|
|
293
|
-
* | Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
|
|
294
|
-
* |
|
|
295
|
-
* |
|
|
296
|
-
* |
|
|
297
|
-
* | Month
|
|
298
|
-
* |
|
|
299
|
-
* |
|
|
300
|
-
* |
|
|
301
|
-
* |
|
|
302
|
-
* | Month standalone
|
|
303
|
-
* |
|
|
304
|
-
* |
|
|
305
|
-
* |
|
|
306
|
-
* |
|
|
307
|
-
* | Week of year | w | Numeric: minimum digits | 1... 53 |
|
|
308
|
-
* |
|
|
309
|
-
* | Week of month
|
|
310
|
-
* | Day of month
|
|
311
|
-
* |
|
|
312
|
-
* | Week day
|
|
313
|
-
* |
|
|
314
|
-
* |
|
|
315
|
-
* |
|
|
316
|
-
* | Week day standalone
|
|
317
|
-
* |
|
|
318
|
-
* |
|
|
319
|
-
* |
|
|
320
|
-
* |
|
|
321
|
-
* | Period
|
|
322
|
-
* |
|
|
323
|
-
* |
|
|
324
|
-
* | Period*
|
|
325
|
-
* |
|
|
326
|
-
* |
|
|
327
|
-
* | Period standalone*
|
|
328
|
-
* |
|
|
329
|
-
* |
|
|
330
|
-
* | Hour 1-12
|
|
331
|
-
* |
|
|
332
|
-
* | Hour 0-23
|
|
333
|
-
* |
|
|
334
|
-
* | Minute
|
|
335
|
-
* |
|
|
336
|
-
* | Second
|
|
337
|
-
* |
|
|
338
|
-
* | Fractional seconds
|
|
339
|
-
* |
|
|
340
|
-
* |
|
|
341
|
-
* | Zone
|
|
342
|
-
* |
|
|
343
|
-
* |
|
|
344
|
-
* |
|
|
345
|
-
* |
|
|
346
|
-
* |
|
|
347
|
-
* |
|
|
284
|
+
* | Field type | Format | Description | Example Value |
|
|
285
|
+
* |-------------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|
|
|
286
|
+
* | Era | G, GG & GGG | Abbreviated | AD |
|
|
287
|
+
* | | GGGG | Wide | Anno Domini |
|
|
288
|
+
* | | GGGGG | Narrow | A |
|
|
289
|
+
* | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
|
|
290
|
+
* | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
|
|
291
|
+
* | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
|
|
292
|
+
* | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
|
|
293
|
+
* | ISO Week-numbering year | Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
|
|
294
|
+
* | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
|
|
295
|
+
* | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
|
|
296
|
+
* | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
|
|
297
|
+
* | Month | M | Numeric: 1 digit | 9, 12 |
|
|
298
|
+
* | | MM | Numeric: 2 digits + zero padded | 09, 12 |
|
|
299
|
+
* | | MMM | Abbreviated | Sep |
|
|
300
|
+
* | | MMMM | Wide | September |
|
|
301
|
+
* | | MMMMM | Narrow | S |
|
|
302
|
+
* | Month standalone | L | Numeric: 1 digit | 9, 12 |
|
|
303
|
+
* | | LL | Numeric: 2 digits + zero padded | 09, 12 |
|
|
304
|
+
* | | LLL | Abbreviated | Sep |
|
|
305
|
+
* | | LLLL | Wide | September |
|
|
306
|
+
* | | LLLLL | Narrow | S |
|
|
307
|
+
* | ISO Week of year | w | Numeric: minimum digits | 1... 53 |
|
|
308
|
+
* | | ww | Numeric: 2 digits + zero padded | 01... 53 |
|
|
309
|
+
* | Week of month | W | Numeric: 1 digit | 1... 5 |
|
|
310
|
+
* | Day of month | d | Numeric: minimum digits | 1 |
|
|
311
|
+
* | | dd | Numeric: 2 digits + zero padded | 01 |
|
|
312
|
+
* | Week day | E, EE & EEE | Abbreviated | Tue |
|
|
313
|
+
* | | EEEE | Wide | Tuesday |
|
|
314
|
+
* | | EEEEE | Narrow | T |
|
|
315
|
+
* | | EEEEEE | Short | Tu |
|
|
316
|
+
* | Week day standalone | c, cc | Numeric: 1 digit | 2 |
|
|
317
|
+
* | | ccc | Abbreviated | Tue |
|
|
318
|
+
* | | cccc | Wide | Tuesday |
|
|
319
|
+
* | | ccccc | Narrow | T |
|
|
320
|
+
* | | cccccc | Short | Tu |
|
|
321
|
+
* | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM |
|
|
322
|
+
* | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem |
|
|
323
|
+
* | | aaaaa | Narrow | a/p |
|
|
324
|
+
* | Period* | B, BB & BBB | Abbreviated | mid. |
|
|
325
|
+
* | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |
|
|
326
|
+
* | | BBBBB | Narrow | md |
|
|
327
|
+
* | Period standalone* | b, bb & bbb | Abbreviated | mid. |
|
|
328
|
+
* | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |
|
|
329
|
+
* | | bbbbb | Narrow | md |
|
|
330
|
+
* | Hour 1-12 | h | Numeric: minimum digits | 1, 12 |
|
|
331
|
+
* | | hh | Numeric: 2 digits + zero padded | 01, 12 |
|
|
332
|
+
* | Hour 0-23 | H | Numeric: minimum digits | 0, 23 |
|
|
333
|
+
* | | HH | Numeric: 2 digits + zero padded | 00, 23 |
|
|
334
|
+
* | Minute | m | Numeric: minimum digits | 8, 59 |
|
|
335
|
+
* | | mm | Numeric: 2 digits + zero padded | 08, 59 |
|
|
336
|
+
* | Second | s | Numeric: minimum digits | 0... 59 |
|
|
337
|
+
* | | ss | Numeric: 2 digits + zero padded | 00... 59 |
|
|
338
|
+
* | Fractional seconds | S | Numeric: 1 digit | 0... 9 |
|
|
339
|
+
* | | SS | Numeric: 2 digits + zero padded | 00... 99 |
|
|
340
|
+
* | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 |
|
|
341
|
+
* | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 |
|
|
342
|
+
* | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 |
|
|
343
|
+
* | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 |
|
|
344
|
+
* | | ZZZZ | Long localized GMT format | GMT-8:00 |
|
|
345
|
+
* | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 |
|
|
346
|
+
* | | O, OO & OOO | Short localized GMT format | GMT-8 |
|
|
347
|
+
* | | OOOO | Long localized GMT format | GMT-08:00 |
|
|
348
348
|
*
|
|
349
349
|
*
|
|
350
350
|
* ### Format examples
|
|
@@ -913,7 +913,7 @@ export declare function getLocaleNumberSymbol(locale: string, symbol: NumberSymb
|
|
|
913
913
|
* @alias core/ɵgetLocalePluralCase
|
|
914
914
|
* @publicApi
|
|
915
915
|
*/
|
|
916
|
-
export declare const getLocalePluralCase: (locale: string) => (
|
|
916
|
+
export declare const getLocalePluralCase: (locale: string) => (value: number) => Plural;
|
|
917
917
|
|
|
918
918
|
/**
|
|
919
919
|
* Retrieves a localized time-value formatting string.
|
|
@@ -1821,7 +1821,7 @@ declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoC
|
|
|
1821
1821
|
* The value of the iterable expression, which can be used as a
|
|
1822
1822
|
* [template input variable](guide/structural-directives#shorthand).
|
|
1823
1823
|
*/
|
|
1824
|
-
set ngForOf(ngForOf: U & NgIterable<T> | undefined | null);
|
|
1824
|
+
set ngForOf(ngForOf: (U & NgIterable<T>) | undefined | null);
|
|
1825
1825
|
/**
|
|
1826
1826
|
* Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.
|
|
1827
1827
|
*
|
|
@@ -2529,8 +2529,8 @@ export declare class NgSwitch {
|
|
|
2529
2529
|
* that defines the subtree to be selected if the value of the match expression
|
|
2530
2530
|
* matches the value of the switch expression.
|
|
2531
2531
|
*
|
|
2532
|
-
*
|
|
2533
|
-
*
|
|
2532
|
+
* As of Angular v17 the NgSwitch directive uses strict equality comparison (`===`) instead of
|
|
2533
|
+
* loose equality (`==`) to match different cases.
|
|
2534
2534
|
*
|
|
2535
2535
|
* @publicApi
|
|
2536
2536
|
* @see {@link NgSwitch}
|