@cedx/base 0.5.0 → 0.7.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/ReadMe.md +1 -1
- package/lib/Data/PaginatedList.d.ts +35 -0
- package/lib/Data/PaginatedList.d.ts.map +1 -0
- package/lib/Data/PaginatedList.js +28 -0
- package/lib/Data/Pagination.d.ts +74 -0
- package/lib/Data/Pagination.d.ts.map +1 -0
- package/lib/Data/Pagination.js +101 -0
- package/lib/Data/Sort.d.ts +25 -23
- package/lib/Data/Sort.d.ts.map +1 -1
- package/lib/Data/Sort.js +37 -33
- package/lib/{Date.d.ts → DateExtensions.d.ts} +1 -1
- package/lib/DateExtensions.d.ts.map +1 -0
- package/lib/{Html/File.d.ts → FileExtensions.d.ts} +4 -11
- package/lib/FileExtensions.d.ts.map +1 -0
- package/lib/{Html/File.js → FileExtensions.js} +3 -12
- package/lib/{Http → Net/Http}/HttpClient.d.ts +17 -2
- package/lib/Net/Http/HttpClient.d.ts.map +1 -0
- package/lib/{Http → Net/Http}/HttpClient.js +17 -15
- package/lib/Net/Http/HttpMethod.d.ts +46 -0
- package/lib/Net/Http/HttpMethod.d.ts.map +1 -0
- package/lib/Net/Http/HttpMethod.js +41 -0
- package/lib/Net/Http/HttpRequestError.d.ts +33 -0
- package/lib/Net/Http/HttpRequestError.d.ts.map +1 -0
- package/lib/{Http/HttpError.js → Net/Http/HttpRequestError.js} +16 -16
- package/lib/Net/Http/StatusCode.d.ts +122 -0
- package/lib/Net/Http/StatusCode.d.ts.map +1 -0
- package/lib/Net/Http/StatusCode.js +117 -0
- package/lib/Net/Mime/DispositionType.d.ts +18 -0
- package/lib/Net/Mime/DispositionType.d.ts.map +1 -0
- package/lib/Net/Mime/DispositionType.js +13 -0
- package/lib/Net/Mime/MediaType.d.ts +151 -0
- package/lib/Net/Mime/MediaType.d.ts.map +1 -0
- package/lib/Net/Mime/MediaType.js +150 -0
- package/lib/{Number.d.ts → NumberExtensions.d.ts} +1 -1
- package/lib/NumberExtensions.d.ts.map +1 -0
- package/lib/{String.d.ts → StringExtensions.d.ts} +1 -1
- package/lib/StringExtensions.d.ts.map +1 -0
- package/lib/{Html → UI}/AppTheme.d.ts +3 -3
- package/lib/UI/AppTheme.d.ts.map +1 -0
- package/lib/{Html → UI}/AppTheme.js +3 -3
- package/lib/UI/Components/ComponentBase.d.ts +24 -0
- package/lib/UI/Components/ComponentBase.d.ts.map +1 -0
- package/lib/UI/Components/ComponentBase.js +29 -0
- package/lib/UI/{LoadingIndicator.d.ts → Components/LoadingIndicator.d.ts} +1 -2
- package/lib/UI/Components/LoadingIndicator.d.ts.map +1 -0
- package/lib/UI/{MenuActivator.d.ts → Components/MenuActivator.d.ts} +1 -1
- package/lib/UI/Components/MenuActivator.d.ts.map +1 -0
- package/lib/UI/{MenuActivator.js → Components/MenuActivator.js} +1 -1
- package/lib/UI/Components/OfflineIndicator.d.ts.map +1 -0
- package/lib/UI/Components/ThemeDropdown.d.ts +67 -0
- package/lib/UI/Components/ThemeDropdown.d.ts.map +1 -0
- package/lib/UI/Components/ThemeDropdown.js +140 -0
- package/lib/UI/Context.d.ts.map +1 -0
- package/lib/UI/MenuAlignment.d.ts +18 -0
- package/lib/UI/MenuAlignment.d.ts.map +1 -0
- package/lib/UI/MenuAlignment.js +13 -0
- package/lib/{Html → UI}/ViewportScroller.d.ts +1 -1
- package/lib/UI/ViewportScroller.d.ts.map +1 -0
- package/lib/{Html → UI}/ViewportScroller.js +6 -6
- package/package.json +7 -8
- package/src/Client/Data/PaginatedList.ts +47 -0
- package/src/Client/Data/Pagination.ts +136 -0
- package/src/Client/Data/Sort.ts +40 -35
- package/src/Client/Data/tsconfig.json +1 -1
- package/src/Client/{Html/File.ts → FileExtensions.ts} +3 -13
- package/src/Client/{Http → Net/Http}/HttpClient.ts +32 -14
- package/src/Client/Net/Http/HttpMethod.ts +55 -0
- package/src/Client/{Http/HttpError.ts → Net/Http/HttpRequestError.ts} +17 -17
- package/src/Client/Net/Http/StatusCode.ts +150 -0
- package/src/Client/Net/Mime/DispositionType.ts +20 -0
- package/src/Client/Net/Mime/MediaType.ts +185 -0
- package/src/Client/{Abstractions → Net}/tsconfig.json +3 -3
- package/src/Client/{Html → UI}/AppTheme.ts +3 -3
- package/src/Client/UI/Components/ComponentBase.ts +34 -0
- package/src/Client/UI/{LoadingIndicator.ts → Components/LoadingIndicator.ts} +1 -3
- package/src/Client/UI/{MenuActivator.ts → Components/MenuActivator.ts} +1 -1
- package/src/Client/UI/Components/ThemeDropdown.ts +163 -0
- package/src/Client/UI/MenuAlignment.ts +20 -0
- package/src/Client/{Html → UI}/ViewportScroller.ts +6 -6
- package/src/Client/UI/tsconfig.json +2 -3
- package/src/Client/tsconfig.json +1 -4
- package/lib/Abstractions/ILoadingIndicator.d.ts +0 -17
- package/lib/Abstractions/ILoadingIndicator.d.ts.map +0 -1
- package/lib/Abstractions/ILoadingIndicator.js +0 -1
- package/lib/Date.d.ts.map +0 -1
- package/lib/DependencyInjection/Container.d.ts +0 -43
- package/lib/DependencyInjection/Container.d.ts.map +0 -1
- package/lib/DependencyInjection/Container.js +0 -65
- package/lib/Html/AppTheme.d.ts.map +0 -1
- package/lib/Html/Context.d.ts.map +0 -1
- package/lib/Html/File.d.ts.map +0 -1
- package/lib/Html/ViewportScroller.d.ts.map +0 -1
- package/lib/Http/HttpClient.d.ts.map +0 -1
- package/lib/Http/HttpError.d.ts +0 -33
- package/lib/Http/HttpError.d.ts.map +0 -1
- package/lib/Http/StatusCodes.d.ts +0 -114
- package/lib/Http/StatusCodes.d.ts.map +0 -1
- package/lib/Http/StatusCodes.js +0 -109
- package/lib/Number.d.ts.map +0 -1
- package/lib/String.d.ts.map +0 -1
- package/lib/UI/ActionBar.d.ts +0 -25
- package/lib/UI/ActionBar.d.ts.map +0 -1
- package/lib/UI/ActionBar.js +0 -25
- package/lib/UI/LoadingIndicator.d.ts.map +0 -1
- package/lib/UI/MenuActivator.d.ts.map +0 -1
- package/lib/UI/OfflineIndicator.d.ts.map +0 -1
- package/lib/UI/ThemeDropdown.d.ts +0 -34
- package/lib/UI/ThemeDropdown.d.ts.map +0 -1
- package/lib/UI/ThemeDropdown.js +0 -71
- package/src/Client/Abstractions/ILoadingIndicator.ts +0 -16
- package/src/Client/Data/Pagination.new +0 -130
- package/src/Client/DependencyInjection/Container.ts +0 -75
- package/src/Client/DependencyInjection/tsconfig.json +0 -13
- package/src/Client/Html/tsconfig.json +0 -16
- package/src/Client/Http/StatusCodes.ts +0 -140
- package/src/Client/Http/tsconfig.json +0 -16
- package/src/Client/UI/ActionBar.ts +0 -41
- package/src/Client/UI/ThemeDropdown.ts +0 -94
- /package/lib/{Date.js → DateExtensions.js} +0 -0
- /package/lib/{Number.js → NumberExtensions.js} +0 -0
- /package/lib/{String.js → StringExtensions.js} +0 -0
- /package/lib/UI/{LoadingIndicator.js → Components/LoadingIndicator.js} +0 -0
- /package/lib/UI/{OfflineIndicator.d.ts → Components/OfflineIndicator.d.ts} +0 -0
- /package/lib/UI/{OfflineIndicator.js → Components/OfflineIndicator.js} +0 -0
- /package/lib/{Html → UI}/Context.d.ts +0 -0
- /package/lib/{Html → UI}/Context.js +0 -0
- /package/src/Client/{Date.ts → DateExtensions.ts} +0 -0
- /package/src/Client/{Number.ts → NumberExtensions.ts} +0 -0
- /package/src/Client/{String.ts → StringExtensions.ts} +0 -0
- /package/src/Client/UI/{OfflineIndicator.ts → Components/OfflineIndicator.ts} +0 -0
- /package/src/Client/{Html → UI}/Context.ts +0 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import {AppTheme, getIcon} from "../AppTheme.js";
|
|
2
|
+
import {MenuAlignment} from "../MenuAlignment.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A dropdown menu for switching the application theme.
|
|
6
|
+
*/
|
|
7
|
+
export class ThemeDropdown extends HTMLElement {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The list of observed attributes.
|
|
11
|
+
*/
|
|
12
|
+
static readonly observedAttributes = ["alignment", "apptheme", "label"];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The media query used to check the application theme.
|
|
16
|
+
*/
|
|
17
|
+
readonly #mediaQuery = matchMedia("(prefers-color-scheme: dark)");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new theme dropdown.
|
|
21
|
+
*/
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
for (const button of this.querySelectorAll("button")) button.addEventListener("click", this.#setTheme.bind(this));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Registers the component.
|
|
29
|
+
*/
|
|
30
|
+
static {
|
|
31
|
+
customElements.define("theme-dropdown", this);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The alignment of the dropdown menu.
|
|
36
|
+
*/
|
|
37
|
+
get alignment(): MenuAlignment {
|
|
38
|
+
const value = this.getAttribute("alignment") as MenuAlignment;
|
|
39
|
+
return Object.values(MenuAlignment).includes(value) ? value : MenuAlignment.End;
|
|
40
|
+
}
|
|
41
|
+
set alignment(value: MenuAlignment) {
|
|
42
|
+
this.setAttribute("alignment", value);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The current application theme.
|
|
47
|
+
*/
|
|
48
|
+
get appTheme(): AppTheme {
|
|
49
|
+
const value = this.getAttribute("apptheme") as AppTheme;
|
|
50
|
+
return Object.values(AppTheme).includes(value) ? value : AppTheme.System;
|
|
51
|
+
}
|
|
52
|
+
set appTheme(value: AppTheme) {
|
|
53
|
+
this.setAttribute("apptheme", value);
|
|
54
|
+
localStorage.setItem(this.storageKey, this.appTheme);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The label of the dropdown menu.
|
|
59
|
+
*/
|
|
60
|
+
get label(): string {
|
|
61
|
+
const value = this.getAttribute("label") ?? "";
|
|
62
|
+
return value.trim() || "Thème";
|
|
63
|
+
}
|
|
64
|
+
set label(value: string) {
|
|
65
|
+
this.setAttribute("label", value);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The key of the storage entry providing the saved application theme.
|
|
70
|
+
*/
|
|
71
|
+
get storageKey(): string {
|
|
72
|
+
const value = this.getAttribute("storagekey") ?? "";
|
|
73
|
+
return value.trim() || "AppTheme";
|
|
74
|
+
}
|
|
75
|
+
set storageKey(value: string) {
|
|
76
|
+
this.setAttribute("storagekey", value);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Method invoked when an attribute has been changed.
|
|
81
|
+
* @param attribute The attribute name.
|
|
82
|
+
* @param oldValue The previous attribute value.
|
|
83
|
+
* @param newValue The new attribute value.
|
|
84
|
+
*/
|
|
85
|
+
attributeChangedCallback(attribute: string, oldValue: string|null, newValue: string|null): void {
|
|
86
|
+
if (newValue != oldValue) switch (attribute) {
|
|
87
|
+
case "alignment": {
|
|
88
|
+
const alignment = Object.values(MenuAlignment).includes(newValue as MenuAlignment) ? newValue as MenuAlignment : MenuAlignment.End;
|
|
89
|
+
const {classList} = this.querySelector(".dropdown-menu")!;
|
|
90
|
+
if (alignment == MenuAlignment.End) classList.add("dropdown-menu-end");
|
|
91
|
+
else classList.remove("dropdown-menu-end");
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
case "apptheme": {
|
|
95
|
+
const appTheme = Object.values(AppTheme).includes(newValue as AppTheme) ? newValue as AppTheme : AppTheme.System;
|
|
96
|
+
this.querySelector(".dropdown-toggle > .icon")!.textContent = getIcon(appTheme);
|
|
97
|
+
this.querySelector(`button[data-theme="${appTheme}"]`)!.appendChild(this.querySelector(".dropdown-item > .icon")!);
|
|
98
|
+
this.#applyTheme();
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
case "label": {
|
|
102
|
+
this.querySelector(".dropdown-toggle > span")!.textContent = (newValue ?? "").trim() || "Thème";
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
// No default
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Method invoked when this component is connected.
|
|
111
|
+
*/
|
|
112
|
+
connectedCallback(): void {
|
|
113
|
+
this.#mediaQuery.addEventListener("change", this);
|
|
114
|
+
const appTheme = localStorage.getItem(this.storageKey) as AppTheme|null;
|
|
115
|
+
if (appTheme) this.setAttribute("apptheme", appTheme);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Method invoked when this component is disconnected.
|
|
120
|
+
*/
|
|
121
|
+
disconnectedCallback(): void {
|
|
122
|
+
this.#mediaQuery.removeEventListener("change", this);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Handles the events.
|
|
127
|
+
*/
|
|
128
|
+
handleEvent(): void {
|
|
129
|
+
this.#applyTheme();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Applies the application theme to the document.
|
|
134
|
+
*/
|
|
135
|
+
#applyTheme(): void {
|
|
136
|
+
const {appTheme} = this;
|
|
137
|
+
const bsTheme = appTheme == AppTheme.System ? (this.#mediaQuery.matches ? AppTheme.Dark : AppTheme.Light) : appTheme;
|
|
138
|
+
document.documentElement.dataset.bsTheme = bsTheme.toLowerCase();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Changes the current application theme.
|
|
143
|
+
* @param event The dispatched event.
|
|
144
|
+
*/
|
|
145
|
+
#setTheme(event: Event): void {
|
|
146
|
+
event.preventDefault();
|
|
147
|
+
const button = (event.target as HTMLElement).closest("button")!;
|
|
148
|
+
this.appTheme = button.dataset.theme! as AppTheme;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Declaration merging.
|
|
154
|
+
*/
|
|
155
|
+
declare global {
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The map of HTML tag names.
|
|
159
|
+
*/
|
|
160
|
+
interface HTMLElementTagNameMap {
|
|
161
|
+
"theme-dropdown": ThemeDropdown;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the alignment of a dropdown menu.
|
|
3
|
+
*/
|
|
4
|
+
export const MenuAlignment = Object.freeze({
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The dropdown menu is left aligned.
|
|
8
|
+
*/
|
|
9
|
+
Start: "Start",
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The dropdown menu is right aligned.
|
|
13
|
+
*/
|
|
14
|
+
End: "End"
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Defines the alignment of a dropdown menu.
|
|
19
|
+
*/
|
|
20
|
+
export type MenuAlignment = typeof MenuAlignment[keyof typeof MenuAlignment];
|
|
@@ -37,24 +37,24 @@ export class ViewportScroller {
|
|
|
37
37
|
*/
|
|
38
38
|
get scrollOffset(): number {
|
|
39
39
|
if (this.#scrollOffset < 0) {
|
|
40
|
-
const fontSize = parseInt(getComputedStyle(document.body).fontSize);
|
|
40
|
+
const fontSize = Number.parseInt(getComputedStyle(document.body).fontSize);
|
|
41
41
|
this.#scrollOffset = Number.isNaN(fontSize) ? 0 : fontSize * 2;
|
|
42
42
|
|
|
43
|
-
const
|
|
44
|
-
this.#scrollOffset +=
|
|
43
|
+
const navbar = document.body.querySelector<HTMLElement>(".navbar");
|
|
44
|
+
this.#scrollOffset += (navbar?.offsetHeight ?? 0);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
const actionBar = document.body.querySelector<HTMLElement>("action-bar");
|
|
47
|
+
const actionBar = document.body.querySelector<HTMLElement>("action-bar, .action-bar");
|
|
48
48
|
return this.#scrollOffset + (actionBar?.offsetHeight ?? 0);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* Scrolls to the specified anchor.
|
|
53
|
-
* @param anchor The identifier or name of an
|
|
53
|
+
* @param anchor The identifier or name of an element.
|
|
54
54
|
* @param options Value indicating whether scrolling is instant or animates smoothly.
|
|
55
55
|
*/
|
|
56
56
|
scrollToAnchor(anchor: string, options: ScrollOptions = {}): void {
|
|
57
|
-
const element = document.getElementById(anchor) ??
|
|
57
|
+
const element = document.getElementById(anchor) ?? this.#viewport().querySelector(`[name="${anchor}"]`);
|
|
58
58
|
if (element) this.scrollToElement(element, options);
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "../../../tsconfig.json",
|
|
3
|
-
"include": ["
|
|
3
|
+
"include": ["**/*.ts"],
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"composite": true,
|
|
6
6
|
"declaration": true,
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
"tsBuildInfoFile": "../../../var/UI.tsbuildinfo"
|
|
12
12
|
},
|
|
13
13
|
"references": [
|
|
14
|
-
{"path": "../
|
|
15
|
-
{"path": "../Html/tsconfig.json"}
|
|
14
|
+
{"path": "../Base/tsconfig.json"}
|
|
16
15
|
]
|
|
17
16
|
}
|
package/src/Client/tsconfig.json
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": [],
|
|
3
3
|
"references": [
|
|
4
|
-
{"path": "Abstractions/tsconfig.json"},
|
|
5
4
|
{"path": "Base/tsconfig.json"},
|
|
6
5
|
{"path": "Data/tsconfig.json"},
|
|
7
|
-
{"path": "
|
|
8
|
-
{"path": "Html/tsconfig.json"},
|
|
9
|
-
{"path": "Http/tsconfig.json"},
|
|
6
|
+
{"path": "Net/tsconfig.json"},
|
|
10
7
|
{"path": "UI/tsconfig.json"}
|
|
11
8
|
]
|
|
12
9
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A component that shows up when an HTTP request starts, and hides when all concurrent HTTP requests are completed.
|
|
3
|
-
*/
|
|
4
|
-
export interface ILoadingIndicator {
|
|
5
|
-
/**
|
|
6
|
-
* Starts the loading indicator.
|
|
7
|
-
*/
|
|
8
|
-
start: () => void;
|
|
9
|
-
/**
|
|
10
|
-
* Stops the loading indicator.
|
|
11
|
-
* @param options Value indicating whether to force the loading indicator to stop.
|
|
12
|
-
*/
|
|
13
|
-
stop: (options?: {
|
|
14
|
-
force?: boolean;
|
|
15
|
-
}) => void;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=ILoadingIndicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ILoadingIndicator.d.ts","sourceRoot":"","sources":["../../src/Client/Abstractions/ILoadingIndicator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAEjC;;OAEG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB;;;OAGG;IACH,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;CAC5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/Date.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../src/Client/Date.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAE3C;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,SAA2B,GAAG,IAAI,CAY/D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,SAA2B,GAAG,IAAI,EAAE,CAoBnE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE7C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAIhD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAG9C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAGhD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,GAAE;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAM,GAAG,MAAM,CAM7H"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides a dependency container.
|
|
3
|
-
*/
|
|
4
|
-
export declare class Container {
|
|
5
|
-
#private;
|
|
6
|
-
/**
|
|
7
|
-
* Removes the service registered with the specified identifier.
|
|
8
|
-
* @param id The identification token.
|
|
9
|
-
*/
|
|
10
|
-
delete(id: ContainerToken): void;
|
|
11
|
-
/**
|
|
12
|
-
* Gets the service registered with the specified identifier.
|
|
13
|
-
* @param id The identification token.
|
|
14
|
-
* @returns The instance of the service registered with the specified identifier.
|
|
15
|
-
* @throws `Error` if there is no factory registered with the specified identifier.
|
|
16
|
-
*/
|
|
17
|
-
get<T>(id: ContainerToken): T;
|
|
18
|
-
/**
|
|
19
|
-
* Gets a value indicating whether this container has a service registered with the specified identifier.
|
|
20
|
-
* @param id The identification token.
|
|
21
|
-
* @returns `true` if a service registered with the specified identifier exists in this container, otherwise `false`.
|
|
22
|
-
*/
|
|
23
|
-
has(id: ContainerToken): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Registers a service factory with this container.
|
|
26
|
-
* @param id The identification token.
|
|
27
|
-
* @param factory The service factory.
|
|
28
|
-
* @returns This instance.
|
|
29
|
-
*/
|
|
30
|
-
register(id: ContainerToken, factory: () => unknown): this;
|
|
31
|
-
/**
|
|
32
|
-
* Registers a service instance with this container.
|
|
33
|
-
* @param id The identification token.
|
|
34
|
-
* @param service The service instance.
|
|
35
|
-
* @returns This instance.
|
|
36
|
-
*/
|
|
37
|
-
set(id: ContainerToken, service: unknown): this;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A token identifying a service.
|
|
41
|
-
*/
|
|
42
|
-
export type ContainerToken = string | symbol | (new (...args: any[]) => any);
|
|
43
|
-
//# sourceMappingURL=Container.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../src/Client/DependencyInjection/Container.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAS;;IAYrB;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI;IAKhC;;;;;OAKG;IACH,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,cAAc,GAAG,CAAC;IAS7B;;;;OAIG;IACH,GAAG,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO;IAIhC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,OAAO,GAAG,IAAI;IAK1D;;;;;OAKG;IACH,GAAG,CAAC,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;CAI/C;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAC,MAAM,GAAC,CAAC,KAAI,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides a dependency container.
|
|
3
|
-
*/
|
|
4
|
-
export class Container {
|
|
5
|
-
/**
|
|
6
|
-
* The registered factories.
|
|
7
|
-
*/
|
|
8
|
-
#factories = new Map;
|
|
9
|
-
/**
|
|
10
|
-
* The registered services.
|
|
11
|
-
*/
|
|
12
|
-
#services = new Map;
|
|
13
|
-
/**
|
|
14
|
-
* Removes the service registered with the specified identifier.
|
|
15
|
-
* @param id The identification token.
|
|
16
|
-
*/
|
|
17
|
-
delete(id) {
|
|
18
|
-
this.#factories.delete(id);
|
|
19
|
-
this.#services.delete(id);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Gets the service registered with the specified identifier.
|
|
23
|
-
* @param id The identification token.
|
|
24
|
-
* @returns The instance of the service registered with the specified identifier.
|
|
25
|
-
* @throws `Error` if there is no factory registered with the specified identifier.
|
|
26
|
-
*/
|
|
27
|
-
get(id) {
|
|
28
|
-
if (!this.#services.has(id))
|
|
29
|
-
if (this.#factories.has(id))
|
|
30
|
-
this.set(id, this.#factories.get(id).call(this));
|
|
31
|
-
else if (typeof id == "function")
|
|
32
|
-
this.set(id, Reflect.construct(id, []));
|
|
33
|
-
else
|
|
34
|
-
throw Error("There is no factory registered with the specified identifier.");
|
|
35
|
-
return this.#services.get(id);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Gets a value indicating whether this container has a service registered with the specified identifier.
|
|
39
|
-
* @param id The identification token.
|
|
40
|
-
* @returns `true` if a service registered with the specified identifier exists in this container, otherwise `false`.
|
|
41
|
-
*/
|
|
42
|
-
has(id) {
|
|
43
|
-
return this.#factories.has(id) || this.#services.has(id);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Registers a service factory with this container.
|
|
47
|
-
* @param id The identification token.
|
|
48
|
-
* @param factory The service factory.
|
|
49
|
-
* @returns This instance.
|
|
50
|
-
*/
|
|
51
|
-
register(id, factory) {
|
|
52
|
-
this.#factories.set(id, factory);
|
|
53
|
-
return this;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Registers a service instance with this container.
|
|
57
|
-
* @param id The identification token.
|
|
58
|
-
* @param service The service instance.
|
|
59
|
-
* @returns This instance.
|
|
60
|
-
*/
|
|
61
|
-
set(id, service) {
|
|
62
|
-
this.#services.set(id, service);
|
|
63
|
-
return this;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppTheme.d.ts","sourceRoot":"","sources":["../../src/Client/Html/AppTheme.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,QAAQ;IAEpB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEF,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAE9D;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAM/C;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAMhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/Client/Html/Context.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO;IAEnB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEF,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAE3D;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAOhD"}
|
package/lib/Html/File.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../src/Client/Html/File.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAU7C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,IAAI,CAElG;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,GAAE;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAM,GAAG,IAAI,CAkB3E;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAa1C;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,CAOlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewportScroller.d.ts","sourceRoot":"","sources":["../../src/Client/Html/ViewportScroller.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAEnC;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAA;CACxB,CAAC,CAAC;AAEH;;GAEG;AACH,qBAAa,gBAAgB;;IAY5B;;;OAGG;gBACS,QAAQ,GAAE,MAAM,OAAqE;IAIjG;;OAEG;IACH,IAAI,YAAY,IAAI,MAAM,CAWzB;IAED;;;;OAIG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,IAAI;IAKjE;;;;OAIG;IACH,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,aAAkB,GAAG,IAAI;IAMpE;;;;;OAKG;IACH,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB,GAAG,IAAI;IAIzE;;;OAGG;IACH,WAAW,CAAC,OAAO,GAAE,aAAkB,GAAG,IAAI;CAG9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../../src/Client/Http/HttpClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,oCAAoC,CAAC;AAG1E;;GAEG;AACH,qBAAa,UAAU;;IAEtB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC;IAOtB;;;OAGG;gBACS,OAAO,GAAE,iBAAsB;IAM3C;;;;;OAKG;IACH,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,GAAC,GAAG,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIlE;;;;;OAKG;IACH,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,GAAC,GAAG,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI/D;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,CAAC,EAAE,MAAM,GAAC,GAAG,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIjF;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAC,GAAG,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIhF;;;;;;OAMG;IACH,GAAG,CAAC,GAAG,CAAC,EAAE,MAAM,GAAC,GAAG,EAAE,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC;CAiC/E;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;IAEvC;;OAEG;IACH,OAAO,EAAE,MAAM,GAAC,GAAG,CAAC;IAEpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,iBAAiB,GAAC,IAAI,CAAC;CAC/C,CAAC,CAAC"}
|
package/lib/Http/HttpError.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { StatusCodes } from "./StatusCodes.js";
|
|
2
|
-
/**
|
|
3
|
-
* An object thrown when an HTTP error occurs.
|
|
4
|
-
*/
|
|
5
|
-
export declare class HttpError extends globalThis.Error {
|
|
6
|
-
#private;
|
|
7
|
-
/**
|
|
8
|
-
* Creates a new HTTP error.
|
|
9
|
-
* @param response The server response.
|
|
10
|
-
*/
|
|
11
|
-
constructor(response: Response);
|
|
12
|
-
/**
|
|
13
|
-
* The server response.
|
|
14
|
-
*/
|
|
15
|
-
get cause(): Response;
|
|
16
|
-
/**
|
|
17
|
-
* Value indicating whether the response's status code is between 400 and 499.
|
|
18
|
-
*/
|
|
19
|
-
get isClientError(): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Value indicating whether the response's status code is between 500 and 599.
|
|
22
|
-
*/
|
|
23
|
-
get isServerError(): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The response's status code.
|
|
26
|
-
*/
|
|
27
|
-
get status(): StatusCodes;
|
|
28
|
-
/**
|
|
29
|
-
* The validation errors.
|
|
30
|
-
*/
|
|
31
|
-
get validationErrors(): Promise<Map<string, string>>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=HttpError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HttpError.d.ts","sourceRoot":"","sources":["../../src/Client/Http/HttpError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C;;GAEG;AACH,qBAAa,SAAU,SAAQ,UAAU,CAAC,KAAK;;IAO9C;;;OAGG;gBACS,QAAQ,EAAE,QAAQ;IAK9B;;OAEG;IACH,IAAa,KAAK,IAAI,QAAQ,CAE7B;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAG3B;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,OAAO,CAG3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,WAAW,CAExB;IAED;;OAEG;IACH,IAAI,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAInD;CAgBD"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides common HTTP status codes.
|
|
3
|
-
*/
|
|
4
|
-
export declare const StatusCodes: Readonly<{
|
|
5
|
-
/**
|
|
6
|
-
* The `OK` status.
|
|
7
|
-
*/
|
|
8
|
-
OK: 200;
|
|
9
|
-
/**
|
|
10
|
-
* The `Created` status.
|
|
11
|
-
*/
|
|
12
|
-
Created: 201;
|
|
13
|
-
/**
|
|
14
|
-
* The `No Content` status.
|
|
15
|
-
*/
|
|
16
|
-
NoContent: 204;
|
|
17
|
-
/**
|
|
18
|
-
* The `Moved Permanently` status.
|
|
19
|
-
*/
|
|
20
|
-
MovedPermanently: 301;
|
|
21
|
-
/**
|
|
22
|
-
* The `Found` status.
|
|
23
|
-
*/
|
|
24
|
-
Found: 302;
|
|
25
|
-
/**
|
|
26
|
-
* The `Not Modified` status.
|
|
27
|
-
*/
|
|
28
|
-
NotModified: 304;
|
|
29
|
-
/**
|
|
30
|
-
* The `Bad Request` status.
|
|
31
|
-
*/
|
|
32
|
-
BadRequest: 400;
|
|
33
|
-
/**
|
|
34
|
-
* The `Unauthorized` status.
|
|
35
|
-
*/
|
|
36
|
-
Unauthorized: 401;
|
|
37
|
-
/**
|
|
38
|
-
* The `Payment Required` status.
|
|
39
|
-
*/
|
|
40
|
-
PaymentRequired: 402;
|
|
41
|
-
/**
|
|
42
|
-
* The `Forbidden` status.
|
|
43
|
-
*/
|
|
44
|
-
Forbidden: 403;
|
|
45
|
-
/**
|
|
46
|
-
* The `Not Found` status.
|
|
47
|
-
*/
|
|
48
|
-
NotFound: 404;
|
|
49
|
-
/**
|
|
50
|
-
* The `Method Not Allowed` status.
|
|
51
|
-
*/
|
|
52
|
-
MethodNotAllowed: 405;
|
|
53
|
-
/**
|
|
54
|
-
* The `Not Acceptable` status.
|
|
55
|
-
*/
|
|
56
|
-
NotAcceptable: 406;
|
|
57
|
-
/**
|
|
58
|
-
* The `Request Timeout` status.
|
|
59
|
-
*/
|
|
60
|
-
RequestTimeout: 408;
|
|
61
|
-
/**
|
|
62
|
-
* The `Conflict` status.
|
|
63
|
-
*/
|
|
64
|
-
Conflict: 409;
|
|
65
|
-
/**
|
|
66
|
-
* The `Payload Too Large` status.
|
|
67
|
-
*/
|
|
68
|
-
PayloadTooLarge: 413;
|
|
69
|
-
/**
|
|
70
|
-
* The `Unsupported Media Type` status.
|
|
71
|
-
*/
|
|
72
|
-
UnsupportedMediaType: 415;
|
|
73
|
-
/**
|
|
74
|
-
* The `Page Expired` status.
|
|
75
|
-
*/
|
|
76
|
-
PageExpired: 419;
|
|
77
|
-
/**
|
|
78
|
-
* The `Unprocessable Content` status.
|
|
79
|
-
*/
|
|
80
|
-
UnprocessableContent: 422;
|
|
81
|
-
/**
|
|
82
|
-
* The `Too Many Requests` status.
|
|
83
|
-
*/
|
|
84
|
-
TooManyRequests: 429;
|
|
85
|
-
/**
|
|
86
|
-
* The `Internal Server Error` status.
|
|
87
|
-
*/
|
|
88
|
-
InternalServerError: 500;
|
|
89
|
-
/**
|
|
90
|
-
* The `Not Implemented` status.
|
|
91
|
-
*/
|
|
92
|
-
NotImplemented: 501;
|
|
93
|
-
/**
|
|
94
|
-
* The `Bad Gateway` status.
|
|
95
|
-
*/
|
|
96
|
-
BadGateway: 502;
|
|
97
|
-
/**
|
|
98
|
-
* The `Service Unavailable` status.
|
|
99
|
-
*/
|
|
100
|
-
ServiceUnavailable: 503;
|
|
101
|
-
/**
|
|
102
|
-
* The `Gateway Timeout` status.
|
|
103
|
-
*/
|
|
104
|
-
GatewayTimeout: 504;
|
|
105
|
-
/**
|
|
106
|
-
* The `Bandwidth Limit Exceeded` status
|
|
107
|
-
*/
|
|
108
|
-
BandwidthLimitExceeded: 509;
|
|
109
|
-
}>;
|
|
110
|
-
/**
|
|
111
|
-
* Provides common HTTP status codes.
|
|
112
|
-
*/
|
|
113
|
-
export type StatusCodes = typeof StatusCodes[keyof typeof StatusCodes];
|
|
114
|
-
//# sourceMappingURL=StatusCodes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusCodes.d.ts","sourceRoot":"","sources":["../../src/Client/Http/StatusCodes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,WAAW;IAEvB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEF,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC"}
|
package/lib/Http/StatusCodes.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides common HTTP status codes.
|
|
3
|
-
*/
|
|
4
|
-
export const StatusCodes = Object.freeze({
|
|
5
|
-
/**
|
|
6
|
-
* The `OK` status.
|
|
7
|
-
*/
|
|
8
|
-
OK: 200,
|
|
9
|
-
/**
|
|
10
|
-
* The `Created` status.
|
|
11
|
-
*/
|
|
12
|
-
Created: 201,
|
|
13
|
-
/**
|
|
14
|
-
* The `No Content` status.
|
|
15
|
-
*/
|
|
16
|
-
NoContent: 204,
|
|
17
|
-
/**
|
|
18
|
-
* The `Moved Permanently` status.
|
|
19
|
-
*/
|
|
20
|
-
MovedPermanently: 301,
|
|
21
|
-
/**
|
|
22
|
-
* The `Found` status.
|
|
23
|
-
*/
|
|
24
|
-
Found: 302,
|
|
25
|
-
/**
|
|
26
|
-
* The `Not Modified` status.
|
|
27
|
-
*/
|
|
28
|
-
NotModified: 304,
|
|
29
|
-
/**
|
|
30
|
-
* The `Bad Request` status.
|
|
31
|
-
*/
|
|
32
|
-
BadRequest: 400,
|
|
33
|
-
/**
|
|
34
|
-
* The `Unauthorized` status.
|
|
35
|
-
*/
|
|
36
|
-
Unauthorized: 401,
|
|
37
|
-
/**
|
|
38
|
-
* The `Payment Required` status.
|
|
39
|
-
*/
|
|
40
|
-
PaymentRequired: 402,
|
|
41
|
-
/**
|
|
42
|
-
* The `Forbidden` status.
|
|
43
|
-
*/
|
|
44
|
-
Forbidden: 403,
|
|
45
|
-
/**
|
|
46
|
-
* The `Not Found` status.
|
|
47
|
-
*/
|
|
48
|
-
NotFound: 404,
|
|
49
|
-
/**
|
|
50
|
-
* The `Method Not Allowed` status.
|
|
51
|
-
*/
|
|
52
|
-
MethodNotAllowed: 405,
|
|
53
|
-
/**
|
|
54
|
-
* The `Not Acceptable` status.
|
|
55
|
-
*/
|
|
56
|
-
NotAcceptable: 406,
|
|
57
|
-
/**
|
|
58
|
-
* The `Request Timeout` status.
|
|
59
|
-
*/
|
|
60
|
-
RequestTimeout: 408,
|
|
61
|
-
/**
|
|
62
|
-
* The `Conflict` status.
|
|
63
|
-
*/
|
|
64
|
-
Conflict: 409,
|
|
65
|
-
/**
|
|
66
|
-
* The `Payload Too Large` status.
|
|
67
|
-
*/
|
|
68
|
-
PayloadTooLarge: 413,
|
|
69
|
-
/**
|
|
70
|
-
* The `Unsupported Media Type` status.
|
|
71
|
-
*/
|
|
72
|
-
UnsupportedMediaType: 415,
|
|
73
|
-
/**
|
|
74
|
-
* The `Page Expired` status.
|
|
75
|
-
*/
|
|
76
|
-
PageExpired: 419,
|
|
77
|
-
/**
|
|
78
|
-
* The `Unprocessable Content` status.
|
|
79
|
-
*/
|
|
80
|
-
UnprocessableContent: 422,
|
|
81
|
-
/**
|
|
82
|
-
* The `Too Many Requests` status.
|
|
83
|
-
*/
|
|
84
|
-
TooManyRequests: 429,
|
|
85
|
-
/**
|
|
86
|
-
* The `Internal Server Error` status.
|
|
87
|
-
*/
|
|
88
|
-
InternalServerError: 500,
|
|
89
|
-
/**
|
|
90
|
-
* The `Not Implemented` status.
|
|
91
|
-
*/
|
|
92
|
-
NotImplemented: 501,
|
|
93
|
-
/**
|
|
94
|
-
* The `Bad Gateway` status.
|
|
95
|
-
*/
|
|
96
|
-
BadGateway: 502,
|
|
97
|
-
/**
|
|
98
|
-
* The `Service Unavailable` status.
|
|
99
|
-
*/
|
|
100
|
-
ServiceUnavailable: 503,
|
|
101
|
-
/**
|
|
102
|
-
* The `Gateway Timeout` status.
|
|
103
|
-
*/
|
|
104
|
-
GatewayTimeout: 504,
|
|
105
|
-
/**
|
|
106
|
-
* The `Bandwidth Limit Exceeded` status
|
|
107
|
-
*/
|
|
108
|
-
BandwidthLimitExceeded: 509
|
|
109
|
-
});
|
package/lib/Number.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../src/Client/Number.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,SAAI,GAAG,MAAM,CAG1D"}
|