angular-toolbox 0.0.7 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +14 -10
- package/{esm2020 → esm2022}/angular-toolbox.mjs +4 -4
- package/esm2022/lib/angular-toolbox.module.mjs +21 -0
- package/esm2022/lib/core/bridge/app-bridge.mjs +76 -0
- package/esm2022/lib/core/error/app-bridge-error.mjs +24 -0
- package/esm2022/lib/core/error/http-mock-service-error.mjs +26 -0
- package/esm2022/lib/core/error/index.mjs +5 -0
- package/esm2022/lib/core/error/integrity-error.mjs +26 -0
- package/esm2022/lib/core/error/subscription-error.mjs +26 -0
- package/esm2022/lib/core/impl/index.mjs +2 -0
- package/esm2022/lib/core/impl/lang/identifiable-component.mjs +31 -0
- package/esm2022/lib/core/impl/lang/index.mjs +2 -0
- package/esm2022/lib/core/impl/version/version.impl.mjs +34 -0
- package/esm2022/lib/core/index.mjs +3 -0
- package/esm2022/lib/directive/anchor-link.directive.mjs +62 -0
- package/esm2022/lib/directive/button-role.directive.mjs +102 -0
- package/esm2022/lib/directive/content-renderer.directive.mjs +61 -0
- package/esm2022/lib/directive/index.mjs +5 -0
- package/esm2022/lib/directive/navigate-to-url.directive.mjs +51 -0
- package/esm2022/lib/directive/navigation-directive-base.mjs +23 -0
- package/esm2022/lib/framework/index.mjs +2 -0
- package/esm2022/lib/framework/mock/http/config/http-mock-parameters.mjs +9 -0
- package/esm2022/lib/framework/mock/http/config/http-mock.decorator.mjs +48 -0
- package/esm2022/lib/framework/mock/http/config/index.mjs +3 -0
- package/esm2022/lib/framework/mock/http/config/route-mock-config.mjs +9 -0
- package/esm2022/lib/framework/mock/http/core/data-storage.mjs +9 -0
- package/esm2022/lib/framework/mock/http/event/event-target.impl.mjs +122 -0
- package/esm2022/lib/framework/mock/http/event/progress-event-mock.mjs +48 -0
- package/esm2022/lib/framework/mock/http/index.mjs +4 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/constants.mjs +111 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.mjs +34 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/get-flags.mjs +28 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/iter.mjs +76 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/lexer.mjs +96 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/loose-replacer.mjs +28 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/decode-key-to-string.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/encode.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/key.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/lex-token.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/lexer-type.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/loose-replacer-provider.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/non-delimiter-encoder-provider.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/parse-options.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/path-to-regexp-options.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/route-string-tokenizer.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/simple-tokens.mjs +30 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/token-data-regexp-factory.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/token-type.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/model/token.mjs +17 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/string-to-token-data.mjs +87 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/to-key-regexp.mjs +41 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/to-stringify.mjs +29 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/token-data-to-regexp.mjs +49 -0
- package/esm2022/lib/framework/mock/http/path-to-regexp/token-data.mjs +33 -0
- package/esm2022/lib/framework/mock/http/util/data-storage.builder.mjs +35 -0
- package/esm2022/lib/framework/mock/http/util/http-headers-mock.builder.mjs +138 -0
- package/esm2022/lib/framework/mock/http/util/http-headers.util.mjs +56 -0
- package/esm2022/lib/framework/mock/http/util/http-method-ref.enum.mjs +60 -0
- package/esm2022/lib/framework/mock/http/util/http-mock-response.builder.mjs +117 -0
- package/esm2022/lib/framework/mock/http/util/index.mjs +3 -0
- package/esm2022/lib/framework/mock/http/xhr/delegate-xhr.mjs +316 -0
- package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.impl.mjs +29 -0
- package/esm2022/lib/framework/mock/http/xhr/http-mock-factory.mjs +19 -0
- package/esm2022/lib/framework/mock/http/xhr/index.mjs +2 -0
- package/esm2022/lib/framework/mock/http/xhr/xhr-base.mjs +123 -0
- package/esm2022/lib/framework/mock/http/xhr/xhr-proxy-impl.mjs +177 -0
- package/esm2022/lib/model/business/index.mjs +5 -0
- package/esm2022/lib/model/business/lang/app-bridge-command.mjs +9 -0
- package/esm2022/lib/model/business/lang/destroyable.mjs +9 -0
- package/esm2022/lib/model/business/lang/identifiable.mjs +9 -0
- package/esm2022/lib/model/business/lang/index.mjs +5 -0
- package/esm2022/lib/model/business/lang/instantiable.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-method-mock.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-mock-config.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-mock-endpoint.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-mock-error.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-mock-interceptor.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/http-response-mock.mjs +9 -0
- package/esm2022/lib/model/business/mock/http/index.mjs +8 -0
- package/esm2022/lib/model/business/mock/http/xhr-proxy.mjs +9 -0
- package/esm2022/lib/model/business/ui/dark-mode-config.mjs +9 -0
- package/esm2022/lib/model/business/ui/dark-mode-config.provider.mjs +43 -0
- package/esm2022/lib/model/business/ui/dark-mode.constant.mjs +16 -0
- package/esm2022/lib/model/business/ui/index.mjs +5 -0
- package/esm2022/lib/model/business/ui/scroll-behavior.type.mjs +9 -0
- package/esm2022/lib/model/business/version/index.mjs +4 -0
- package/esm2022/lib/model/business/version/version-config.mjs +9 -0
- package/esm2022/lib/model/business/version/version-config.provider.mjs +40 -0
- package/esm2022/lib/model/business/version/version.mjs +10 -0
- package/esm2022/lib/model/index.mjs +3 -0
- package/esm2022/lib/model/service/index.mjs +5 -0
- package/esm2022/lib/model/service/mock/http/http-mock.service.mjs +239 -0
- package/esm2022/lib/model/service/subscription/subscription.service.mjs +122 -0
- package/esm2022/lib/model/service/ui/app-bridge.service.mjs +142 -0
- package/esm2022/lib/model/service/ui/dark-mode.service.mjs +183 -0
- package/esm2022/lib/model/service/ui/index.mjs +4 -0
- package/esm2022/lib/model/service/ui/scroll.service.mjs +93 -0
- package/esm2022/lib/model/service/version/version.service.mjs +51 -0
- package/{esm2020 → esm2022}/lib/pipe/index.mjs +1 -1
- package/esm2022/lib/pipe/safe/safe-html.pipe.mjs +34 -0
- package/esm2022/lib/util/aria-role.constant.mjs +16 -0
- package/esm2022/lib/util/default-scroll-behavior.mjs +13 -0
- package/esm2022/lib/util/empty-string.const.mjs +12 -0
- package/esm2022/lib/util/index.mjs +5 -0
- package/esm2022/lib/util/js-type.mjs +40 -0
- package/esm2022/lib/util/uuid.mjs +126 -0
- package/esm2022/public-api.mjs +18 -0
- package/fesm2022/angular-toolbox.mjs +3710 -0
- package/fesm2022/angular-toolbox.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/angular-toolbox.module.d.ts +9 -7
- package/lib/core/bridge/app-bridge.d.ts +59 -0
- package/lib/core/error/app-bridge-error.d.ts +16 -0
- package/lib/core/error/http-mock-service-error.d.ts +18 -0
- package/lib/core/error/index.d.ts +4 -0
- package/lib/core/error/integrity-error.d.ts +18 -0
- package/lib/core/error/subscription-error.d.ts +18 -0
- package/lib/core/impl/index.d.ts +1 -0
- package/lib/core/impl/lang/identifiable-component.d.ts +26 -0
- package/lib/core/impl/lang/index.d.ts +1 -0
- package/lib/core/impl/version/version.impl.d.ts +42 -0
- package/lib/core/index.d.ts +2 -0
- package/lib/directive/anchor-link.directive.d.ts +29 -0
- package/lib/directive/button-role.directive.d.ts +52 -0
- package/lib/directive/content-renderer.directive.d.ts +39 -0
- package/lib/directive/index.d.ts +4 -0
- package/lib/directive/navigate-to-url.directive.d.ts +23 -0
- package/lib/directive/navigation-directive-base.d.ts +19 -0
- package/lib/framework/index.d.ts +1 -0
- package/lib/framework/mock/http/config/http-mock-parameters.d.ts +13 -0
- package/lib/framework/mock/http/config/http-mock.decorator.d.ts +13 -0
- package/lib/framework/mock/http/config/index.d.ts +2 -0
- package/lib/framework/mock/http/config/route-mock-config.d.ts +30 -0
- package/lib/framework/mock/http/core/data-storage.d.ts +38 -0
- package/lib/framework/mock/http/event/event-target.impl.d.ts +70 -0
- package/lib/framework/mock/http/event/progress-event-mock.d.ts +36 -0
- package/lib/framework/mock/http/index.d.ts +3 -0
- package/lib/framework/mock/http/path-to-regexp/constants.d.ts +111 -0
- package/lib/framework/mock/http/path-to-regexp/escape-to-regexp-string.d.ts +24 -0
- package/lib/framework/mock/http/path-to-regexp/get-flags.d.ts +25 -0
- package/lib/framework/mock/http/path-to-regexp/iter.d.ts +50 -0
- package/lib/framework/mock/http/path-to-regexp/lexer.d.ts +24 -0
- package/lib/framework/mock/http/path-to-regexp/loose-replacer.d.ts +25 -0
- package/lib/framework/mock/http/path-to-regexp/model/decode-key-to-string.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/model/encode.d.ts +20 -0
- package/lib/framework/mock/http/path-to-regexp/model/key.d.ts +45 -0
- package/lib/framework/mock/http/path-to-regexp/model/lex-token.d.ts +34 -0
- package/lib/framework/mock/http/path-to-regexp/model/lexer-type.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/model/loose-replacer-provider.d.ts +20 -0
- package/lib/framework/mock/http/path-to-regexp/model/non-delimiter-encoder-provider.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/model/parse-options.d.ts +33 -0
- package/lib/framework/mock/http/path-to-regexp/model/path-to-regexp-options.d.ts +52 -0
- package/lib/framework/mock/http/path-to-regexp/model/route-string-tokenizer.d.ts +22 -0
- package/lib/framework/mock/http/path-to-regexp/model/simple-tokens.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/model/token-data-regexp-factory.d.ts +23 -0
- package/lib/framework/mock/http/path-to-regexp/model/token-type.d.ts +20 -0
- package/lib/framework/mock/http/path-to-regexp/model/token.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/string-to-token-data.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/to-key-regexp.d.ts +22 -0
- package/lib/framework/mock/http/path-to-regexp/to-stringify.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/token-data-to-regexp.d.ts +21 -0
- package/lib/framework/mock/http/path-to-regexp/token-data.d.ts +32 -0
- package/lib/framework/mock/http/util/data-storage.builder.d.ts +25 -0
- package/lib/framework/mock/http/util/http-headers-mock.builder.d.ts +106 -0
- package/lib/framework/mock/http/util/http-headers.util.d.ts +31 -0
- package/lib/framework/mock/http/util/http-method-ref.enum.d.ts +58 -0
- package/lib/framework/mock/http/util/http-mock-response.builder.d.ts +83 -0
- package/lib/framework/mock/http/util/index.d.ts +2 -0
- package/lib/framework/mock/http/xhr/delegate-xhr.d.ts +199 -0
- package/lib/framework/mock/http/xhr/http-mock-factory.d.ts +14 -0
- package/lib/framework/mock/http/xhr/http-mock-factory.impl.d.ts +24 -0
- package/lib/framework/mock/http/xhr/index.d.ts +1 -0
- package/lib/framework/mock/http/xhr/xhr-base.d.ts +123 -0
- package/lib/framework/mock/http/xhr/xhr-proxy-impl.d.ts +125 -0
- package/lib/model/business/index.d.ts +4 -0
- package/lib/model/business/lang/app-bridge-command.d.ts +11 -0
- package/lib/model/business/lang/destroyable.d.ts +16 -0
- package/lib/model/business/lang/identifiable.d.ts +19 -0
- package/lib/model/business/lang/index.d.ts +4 -0
- package/lib/model/business/lang/instantiable.d.ts +15 -0
- package/lib/model/business/mock/http/http-method-mock.d.ts +35 -0
- package/lib/model/business/mock/http/http-mock-config.d.ts +28 -0
- package/lib/model/business/mock/http/http-mock-endpoint.d.ts +41 -0
- package/lib/model/business/mock/http/http-mock-error.d.ts +21 -0
- package/lib/model/business/mock/http/http-mock-interceptor.d.ts +27 -0
- package/lib/model/business/mock/http/http-response-mock.d.ts +44 -0
- package/lib/model/business/mock/http/index.d.ts +7 -0
- package/lib/model/business/mock/http/xhr-proxy.d.ts +15 -0
- package/lib/model/business/ui/dark-mode-config.d.ts +29 -0
- package/lib/model/business/ui/dark-mode-config.provider.d.ts +21 -0
- package/lib/model/business/ui/dark-mode.constant.d.ts +15 -0
- package/lib/model/business/ui/index.d.ts +4 -0
- package/lib/model/business/ui/scroll-behavior.type.d.ts +11 -0
- package/lib/model/business/version/index.d.ts +3 -0
- package/lib/model/business/version/version-config.d.ts +28 -0
- package/lib/model/business/version/version-config.provider.d.ts +22 -0
- package/lib/model/business/version/version.d.ts +34 -0
- package/lib/model/index.d.ts +2 -0
- package/lib/model/service/index.d.ts +4 -0
- package/lib/model/service/mock/http/http-mock.service.d.ts +101 -0
- package/lib/model/service/subscription/subscription.service.d.ts +66 -0
- package/lib/model/service/ui/app-bridge.service.d.ts +80 -0
- package/lib/model/service/ui/dark-mode.service.d.ts +99 -0
- package/lib/model/service/ui/index.d.ts +3 -0
- package/lib/model/service/ui/scroll.service.d.ts +55 -0
- package/lib/model/service/version/version.service.d.ts +30 -0
- package/lib/pipe/index.d.ts +1 -1
- package/lib/pipe/safe/safe-html.pipe.d.ts +30 -10
- package/lib/util/aria-role.constant.d.ts +15 -0
- package/lib/util/default-scroll-behavior.d.ts +12 -0
- package/lib/util/empty-string.const.d.ts +11 -0
- package/lib/util/index.d.ts +4 -0
- package/lib/util/js-type.d.ts +39 -0
- package/lib/util/uuid.d.ts +89 -0
- package/package.json +10 -13
- package/public-api.d.ts +14 -3
- package/esm2020/lib/angular-toolbox.module.mjs +0 -26
- package/esm2020/lib/pipe/safe/safe-html.pipe.mjs +0 -18
- package/esm2020/lib/service/index.mjs +0 -3
- package/esm2020/lib/service/subscription/subscription.service.mjs +0 -60
- package/esm2020/lib/service/ui/dark-mode.service.mjs +0 -167
- package/esm2020/public-api.mjs +0 -7
- package/fesm2015/angular-toolbox.mjs +0 -278
- package/fesm2015/angular-toolbox.mjs.map +0 -1
- package/fesm2020/angular-toolbox.mjs +0 -274
- package/fesm2020/angular-toolbox.mjs.map +0 -1
- package/lib/service/index.d.ts +0 -2
- package/lib/service/subscription/subscription.service.d.ts +0 -33
- package/lib/service/ui/dark-mode.service.d.ts +0 -92
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*/
|
|
8
|
+
import { TokenType } from "./model/token-type";
|
|
9
|
+
/**
|
|
10
|
+
* @private
|
|
11
|
+
* The reference to the default delimiter.
|
|
12
|
+
* Value is `"/"`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_DELIMITER: string;
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
* The reference to the case insensitive flag.
|
|
18
|
+
* Value is `"i"`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const I_FLAG: string;
|
|
21
|
+
/**
|
|
22
|
+
* @private
|
|
23
|
+
* The reference to the global flag.
|
|
24
|
+
* Value is `"g"`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const G_FLAG: string;
|
|
27
|
+
/**
|
|
28
|
+
* @private
|
|
29
|
+
* The reference to the `{` `TokenType`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const LEFT_CURLY_BRACE: TokenType;
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
* The reference to the `}` `TokenType`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const RIGHT_CURLY_BRACE: TokenType;
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
* The reference to the `*` `TokenType`.
|
|
40
|
+
*/
|
|
41
|
+
export declare const ASTERISK: TokenType;
|
|
42
|
+
/**
|
|
43
|
+
* @private
|
|
44
|
+
* The reference to the `+` `TokenType`.
|
|
45
|
+
*/
|
|
46
|
+
export declare const PLUS: TokenType;
|
|
47
|
+
/**
|
|
48
|
+
* @private
|
|
49
|
+
* The reference to the `?` `TokenType`.
|
|
50
|
+
*/
|
|
51
|
+
export declare const QUESTION_MARK: TokenType;
|
|
52
|
+
/**
|
|
53
|
+
* @private
|
|
54
|
+
* The reference to the `NAME` `TokenType`.
|
|
55
|
+
*/
|
|
56
|
+
export declare const NAME: TokenType;
|
|
57
|
+
/**
|
|
58
|
+
* @private
|
|
59
|
+
* The reference to the `PATTERN` `TokenType`.
|
|
60
|
+
*/
|
|
61
|
+
export declare const PATTERN: TokenType;
|
|
62
|
+
/**
|
|
63
|
+
* @private
|
|
64
|
+
* The reference to the `CHAR` `TokenType`.
|
|
65
|
+
*/
|
|
66
|
+
export declare const CHAR: TokenType;
|
|
67
|
+
/**
|
|
68
|
+
* @private
|
|
69
|
+
* The reference to the `ESCAPED` `TokenType`.
|
|
70
|
+
*/
|
|
71
|
+
export declare const ESCAPED: TokenType;
|
|
72
|
+
/**
|
|
73
|
+
* @private
|
|
74
|
+
* The reference to the `END` `TokenType`.
|
|
75
|
+
*/
|
|
76
|
+
export declare const END: TokenType;
|
|
77
|
+
/**
|
|
78
|
+
* @private
|
|
79
|
+
* The reference to the semi colon (`;`) character.
|
|
80
|
+
*/
|
|
81
|
+
export declare const SEMI_COLON: TokenType;
|
|
82
|
+
/**
|
|
83
|
+
* @private
|
|
84
|
+
* The reference to the colon (`:`) character.
|
|
85
|
+
*/
|
|
86
|
+
export declare const COLON: string;
|
|
87
|
+
/**
|
|
88
|
+
* @private
|
|
89
|
+
* The reference to the left parenthesis (`(`) character.
|
|
90
|
+
*/
|
|
91
|
+
export declare const LEFT_PARENTHESIS: string;
|
|
92
|
+
/**
|
|
93
|
+
* @private
|
|
94
|
+
* The reference to the right parenthesis (`)`) character.
|
|
95
|
+
*/
|
|
96
|
+
export declare const RIGHT_PARENTHESIS: string;
|
|
97
|
+
/**
|
|
98
|
+
* @private
|
|
99
|
+
* The reference to the escaped back slash (`\\`) character.
|
|
100
|
+
*/
|
|
101
|
+
export declare const ESC_BACK_SLASH: string;
|
|
102
|
+
/**
|
|
103
|
+
* @private
|
|
104
|
+
* The reference to the carret (`^`) character.
|
|
105
|
+
*/
|
|
106
|
+
export declare const CARRET: string;
|
|
107
|
+
/**
|
|
108
|
+
* @private
|
|
109
|
+
* The reference to the carret (`$`) character.
|
|
110
|
+
*/
|
|
111
|
+
export declare const DOLLAR: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be ound in
|
|
6
|
+
* fthe LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Encode } from "./model/encode";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* Escape a regular expression string.
|
|
20
|
+
*
|
|
21
|
+
* @param str The regular expression string to escape.
|
|
22
|
+
* @returns An escaped a regular expression string.
|
|
23
|
+
*/
|
|
24
|
+
export declare const escapeRegexpString: Encode;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* Get the flags for a regexp from the spcified options.
|
|
19
|
+
*
|
|
20
|
+
* @param options The options used to determine the flags for a regexp.
|
|
21
|
+
* @returns The flags for a regexp depending on the spcified options.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getFlags: (options: {
|
|
24
|
+
sensitive?: boolean;
|
|
25
|
+
}) => string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { LexToken } from "./model/lex-token";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
export declare class Iter {
|
|
21
|
+
private _tokens;
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
private _index;
|
|
26
|
+
/**
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
constructor(_tokens: LexToken[]);
|
|
30
|
+
/**
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
tryConsume(type: LexToken["type"]): string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* @private
|
|
36
|
+
*/
|
|
37
|
+
consume(type: LexToken["type"]): string;
|
|
38
|
+
/**
|
|
39
|
+
* @private
|
|
40
|
+
*/
|
|
41
|
+
text(): string;
|
|
42
|
+
/**
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
modifier(): string;
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
peek(): LexToken;
|
|
50
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Lexer } from "./model/lexer-type";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* A lexer method that tokenizes input string.
|
|
20
|
+
*
|
|
21
|
+
* @param str The string expression to analyse.
|
|
22
|
+
* @returns A new `Iter`object instance built from the specified input string.
|
|
23
|
+
*/
|
|
24
|
+
export declare const lexer: Lexer;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { LooseReplacerProvider } from "./model/loose-replacer-provider";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* Escape and repeat loose characters for regular expressions.
|
|
20
|
+
*
|
|
21
|
+
* @param value The string expression to escape.
|
|
22
|
+
* @param loose
|
|
23
|
+
* @returns The escaped string transfromed from the original string expression.
|
|
24
|
+
*/
|
|
25
|
+
export declare const looseReplacer: LooseReplacerProvider;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Key } from "./key";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* Markup interface used as return value of the `toKeyRegexp()` method.
|
|
20
|
+
*/
|
|
21
|
+
export type DecodeKeyToString = (key: Key) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* Encode a string into another string.
|
|
19
|
+
*/
|
|
20
|
+
export type Encode = (value: string) => string;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* A key is a capture group in a regex.
|
|
19
|
+
*/
|
|
20
|
+
export interface Key {
|
|
21
|
+
/**
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
prefix?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
suffix?: string;
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
pattern?: string;
|
|
37
|
+
/**
|
|
38
|
+
* @private
|
|
39
|
+
*/
|
|
40
|
+
modifier?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @private
|
|
43
|
+
*/
|
|
44
|
+
separator?: string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be ound in
|
|
6
|
+
* fthe LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { TokenType } from "./token-type";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* Defines the API for tokenizer results.
|
|
20
|
+
*/
|
|
21
|
+
export interface LexToken {
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
type: TokenType;
|
|
26
|
+
/**
|
|
27
|
+
* @private
|
|
28
|
+
*/
|
|
29
|
+
index: number;
|
|
30
|
+
/**
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Iter } from "../iter";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* The markup interface of the lexer used to analyse route strings.
|
|
20
|
+
*/
|
|
21
|
+
export type Lexer = (str: string) => Iter;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* The markup interface of the function that provides encoders for escaping loose characters.
|
|
19
|
+
*/
|
|
20
|
+
export type LooseReplacerProvider = (substring: string, ...args: any[]) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Encode } from "./encode";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* The markup interface of the function that provides encoders for all non-delimiter characters.
|
|
20
|
+
*/
|
|
21
|
+
export type NonDelimiterEncoderProvider = (loose: boolean, delimiter: string) => Encode;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Encode } from "./encode";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* A set of options used to parse routes.
|
|
20
|
+
*/
|
|
21
|
+
export interface ParseOptions {
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* Set the default delimiter for repeat parameters.
|
|
25
|
+
* Default value is `'/'`.
|
|
26
|
+
*/
|
|
27
|
+
delimiter?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
* Function for encoding input strings for output into path.
|
|
31
|
+
*/
|
|
32
|
+
encodePath?: Encode;
|
|
33
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { ParseOptions } from "./parse-options";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* A set of options used to transform route definitions in regexp objects.
|
|
20
|
+
*/
|
|
21
|
+
export interface PathToRegexpOptions extends ParseOptions {
|
|
22
|
+
/**
|
|
23
|
+
* @private
|
|
24
|
+
* When `true` the regexp will be case sensitive.
|
|
25
|
+
* Default value is `false`.
|
|
26
|
+
*/
|
|
27
|
+
sensitive?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
* Allow delimiter to be arbitrarily repeated.
|
|
31
|
+
* Default value is `true`.
|
|
32
|
+
*/
|
|
33
|
+
loose?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @private
|
|
36
|
+
* When `true` the regexp will match to the end of the string.
|
|
37
|
+
* Default value is `true`.
|
|
38
|
+
*/
|
|
39
|
+
end?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
* When `true` the regexp will match from the beginning of the string.
|
|
43
|
+
* Default value is `true`.
|
|
44
|
+
*/
|
|
45
|
+
start?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
* When `true` the regexp allows an optional trailing delimiter to match.
|
|
49
|
+
* Default value is `true`.
|
|
50
|
+
*/
|
|
51
|
+
trailing?: boolean;
|
|
52
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { ParseOptions } from "./parse-options";
|
|
17
|
+
import { TokenData } from "../token-data";
|
|
18
|
+
/**
|
|
19
|
+
* @private
|
|
20
|
+
* This interface defines the default API that must be implemented by HTTP routes parsers tokenizers.
|
|
21
|
+
*/
|
|
22
|
+
export type RouteStringTokenizer = (str: string, options?: ParseOptions) => TokenData;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { TokenType } from "./token-type";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* A markup interface for token types consumed by `Lexer` objects.
|
|
20
|
+
*/
|
|
21
|
+
export declare const SIMPLE_TOKENS: Record<string, TokenType>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Key } from "./key";
|
|
17
|
+
import { PathToRegexpOptions } from "./path-to-regexp-options";
|
|
18
|
+
import { TokenData } from "../token-data";
|
|
19
|
+
/**
|
|
20
|
+
* @private
|
|
21
|
+
* This interface defines the default API that must be implemented by `RegExp` factories based on `TokenData` collections.
|
|
22
|
+
*/
|
|
23
|
+
export type TokenDataRegExpFactory = (data: TokenData, keys: Key[], options: PathToRegexpOptions) => RegExp;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
* Defines the type of tokens used to parse manipulate regexp objects.
|
|
19
|
+
*/
|
|
20
|
+
export type TokenType = "{" | "}" | "*" | "+" | "?" | "NAME" | "PATTERN" | "CHAR" | "ESCAPED" | "END" | "!" | "@" | ";";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { Key } from "./key";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* A token is a string (nothing special) or key metadata (capture group).
|
|
20
|
+
*/
|
|
21
|
+
export type Token = string | Key;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Pascal ECHEMANN. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be found in
|
|
6
|
+
* the LICENSE file at https://pascalechemann.com/angular-toolbox/resources/license
|
|
7
|
+
*
|
|
8
|
+
* This source code is derived from the following original source code:
|
|
9
|
+
* - https://github.com/pillarjs/path-to-regexp
|
|
10
|
+
* - Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com)
|
|
11
|
+
*
|
|
12
|
+
* Use of the original source code is governed by an MIT-style license
|
|
13
|
+
* that can be found in the LICENSE file at
|
|
14
|
+
* https://github.com/pillarjs/path-to-regexp/blob/master/LICENSE
|
|
15
|
+
*/
|
|
16
|
+
import { RouteStringTokenizer } from "./model/route-string-tokenizer";
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* Parse a string for the raw tokens.
|
|
20
|
+
*/
|
|
21
|
+
export declare const stringToTokenData: RouteStringTokenizer;
|