@cedx/base 0.19.0 → 0.21.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/{DateExtensions.d.ts → Date.d.ts} +9 -9
- package/lib/Date.d.ts.map +1 -0
- package/lib/{DateExtensions.js → Date.js} +12 -10
- package/lib/{FileExtensions.d.ts → File.d.ts} +1 -1
- package/lib/File.d.ts.map +1 -0
- package/lib/{NumberExtensions.d.ts → Number.d.ts} +1 -1
- package/lib/Number.d.ts.map +1 -0
- package/lib/{StringExtensions.d.ts → String.d.ts} +1 -19
- package/lib/String.d.ts.map +1 -0
- package/lib/{StringExtensions.js → String.js} +0 -40
- package/lib/UI/Components/{MessageBox.d.ts → DialogBox.d.ts} +18 -48
- package/lib/UI/Components/DialogBox.d.ts.map +1 -0
- package/lib/UI/Components/{MessageBox.js → DialogBox.js} +49 -79
- package/lib/UI/Components/LoadingIndicator.d.ts +27 -2
- package/lib/UI/Components/LoadingIndicator.d.ts.map +1 -1
- package/lib/UI/Components/LoadingIndicator.js +55 -2
- package/lib/UI/Components/OfflineIndicator.d.ts +29 -0
- package/lib/UI/Components/OfflineIndicator.d.ts.map +1 -1
- package/lib/UI/Components/OfflineIndicator.js +70 -7
- package/lib/UI/Components/Toast.d.ts +11 -11
- package/lib/UI/Components/Toast.d.ts.map +1 -1
- package/lib/UI/Components/Toast.js +21 -21
- package/lib/UI/Components/Toaster.d.ts +6 -6
- package/lib/UI/Components/Toaster.d.ts.map +1 -1
- package/lib/UI/Components/Toaster.js +12 -13
- package/lib/UI/{FormExtensions.d.ts → Form.d.ts} +1 -1
- package/lib/UI/Form.d.ts.map +1 -0
- package/lib/UI/Tag.d.ts +15 -0
- package/lib/UI/Tag.d.ts.map +1 -0
- package/lib/UI/Tag.js +44 -0
- package/package.json +1 -1
- package/src/Client/{DateExtensions.ts → Date.ts} +13 -10
- package/src/Client/{StringExtensions.ts → String.ts} +0 -40
- package/src/Client/UI/Components/{MessageBox.ts → DialogBox.ts} +51 -106
- package/src/Client/UI/Components/LoadingIndicator.ts +57 -2
- package/src/Client/UI/Components/OfflineIndicator.ts +70 -7
- package/src/Client/UI/Components/Toast.ts +27 -27
- package/src/Client/UI/Components/Toaster.ts +14 -15
- package/src/Client/UI/Tag.ts +52 -0
- package/src/Client/tsconfig.json +0 -2
- package/lib/DateExtensions.d.ts.map +0 -1
- package/lib/FileExtensions.d.ts.map +0 -1
- package/lib/Hosting/Environment.d.ts +0 -22
- package/lib/Hosting/Environment.d.ts.map +0 -1
- package/lib/Hosting/Environment.js +0 -17
- package/lib/Hosting/HostEnvironment.d.ts +0 -61
- package/lib/Hosting/HostEnvironment.d.ts.map +0 -1
- package/lib/Hosting/HostEnvironment.js +0 -56
- package/lib/Net/Http/HttpMethod.d.ts +0 -46
- package/lib/Net/Http/HttpMethod.d.ts.map +0 -1
- package/lib/Net/Http/HttpMethod.js +0 -41
- package/lib/Net/Http/StatusCode.d.ts +0 -122
- package/lib/Net/Http/StatusCode.d.ts.map +0 -1
- package/lib/Net/Http/StatusCode.js +0 -117
- package/lib/Net/Mime/DispositionType.d.ts +0 -18
- package/lib/Net/Mime/DispositionType.d.ts.map +0 -1
- package/lib/Net/Mime/DispositionType.js +0 -13
- package/lib/Net/Mime/MediaType.d.ts +0 -151
- package/lib/Net/Mime/MediaType.d.ts.map +0 -1
- package/lib/Net/Mime/MediaType.js +0 -150
- package/lib/NumberExtensions.d.ts.map +0 -1
- package/lib/StringExtensions.d.ts.map +0 -1
- package/lib/UI/Components/MessageBox.d.ts.map +0 -1
- package/lib/UI/ElementExtensions.d.ts +0 -13
- package/lib/UI/ElementExtensions.d.ts.map +0 -1
- package/lib/UI/ElementExtensions.js +0 -18
- package/lib/UI/FormExtensions.d.ts.map +0 -1
- package/src/Client/Hosting/Environment.ts +0 -25
- package/src/Client/Hosting/HostEnvironment.ts +0 -86
- package/src/Client/Hosting/tsconfig.json +0 -13
- package/src/Client/Net/Http/HttpMethod.ts +0 -55
- package/src/Client/Net/Http/StatusCode.ts +0 -150
- package/src/Client/Net/Mime/DispositionType.ts +0 -20
- package/src/Client/Net/Mime/MediaType.ts +0 -185
- package/src/Client/Net/tsconfig.json +0 -13
- package/src/Client/UI/ElementExtensions.ts +0 -19
- /package/lib/{FileExtensions.js → File.js} +0 -0
- /package/lib/{NumberExtensions.js → Number.js} +0 -0
- /package/lib/UI/{FormExtensions.js → Form.js} +0 -0
- /package/src/Client/{FileExtensions.ts → File.ts} +0 -0
- /package/src/Client/{NumberExtensions.ts → Number.ts} +0 -0
- /package/src/Client/UI/{FormExtensions.ts → Form.ts} +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides HTTP methods.
|
|
3
|
-
*/
|
|
4
|
-
export const HttpMethod = Object.freeze({
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The `CONNECT` HTTP method.
|
|
8
|
-
*/
|
|
9
|
-
Connect: "CONNECT",
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The `DELETE` HTTP method.
|
|
13
|
-
*/
|
|
14
|
-
Delete: "DELETE",
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The `GET` HTTP method.
|
|
18
|
-
*/
|
|
19
|
-
Get: "GET",
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The `HEAD` HTTP method.
|
|
23
|
-
*/
|
|
24
|
-
Head: "HEAD",
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The `OPTIONS` HTTP method.
|
|
28
|
-
*/
|
|
29
|
-
Options: "OPTIONS",
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The `PATCH` HTTP method.
|
|
33
|
-
*/
|
|
34
|
-
Patch: "PATCH",
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The `POST` HTTP method.
|
|
38
|
-
*/
|
|
39
|
-
Post: "POST",
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The `PUT` HTTP method.
|
|
43
|
-
*/
|
|
44
|
-
Put: "PUT",
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The `TRACE` HTTP method.
|
|
48
|
-
*/
|
|
49
|
-
Trace: "TRACE"
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Provides HTTP methods.
|
|
54
|
-
*/
|
|
55
|
-
export type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides common HTTP status codes.
|
|
3
|
-
*/
|
|
4
|
-
export const StatusCode = Object.freeze({
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The `OK` status code.
|
|
8
|
-
*/
|
|
9
|
-
OK: 200,
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The `Created` status code.
|
|
13
|
-
*/
|
|
14
|
-
Created: 201,
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The `No Content` status code.
|
|
18
|
-
*/
|
|
19
|
-
NoContent: 204,
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The `Moved Permanently` status code.
|
|
23
|
-
*/
|
|
24
|
-
MovedPermanently: 301,
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The `Found` status code.
|
|
28
|
-
*/
|
|
29
|
-
Found: 302,
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* The `Not Modified` status code.
|
|
33
|
-
*/
|
|
34
|
-
NotModified: 304,
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The `Temporary Redirect` status code.
|
|
38
|
-
*/
|
|
39
|
-
TemporaryRedirect: 307,
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* The `Permanent Redirect` status code.
|
|
43
|
-
*/
|
|
44
|
-
PermanentRedirect: 308,
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* The `Bad Request` status code.
|
|
48
|
-
*/
|
|
49
|
-
BadRequest: 400,
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The `Unauthorized` status code.
|
|
53
|
-
*/
|
|
54
|
-
Unauthorized: 401,
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The `Payment Required` status code.
|
|
58
|
-
*/
|
|
59
|
-
PaymentRequired: 402,
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The `Forbidden` status code.
|
|
63
|
-
*/
|
|
64
|
-
Forbidden: 403,
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The `Not Found` status code.
|
|
68
|
-
*/
|
|
69
|
-
NotFound: 404,
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The `Method Not Allowed` status code.
|
|
73
|
-
*/
|
|
74
|
-
MethodNotAllowed: 405,
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The `Not Acceptable` status code.
|
|
78
|
-
*/
|
|
79
|
-
NotAcceptable: 406,
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The `Request Timeout` status code.
|
|
83
|
-
*/
|
|
84
|
-
RequestTimeout: 408,
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The `Conflict` status code.
|
|
88
|
-
*/
|
|
89
|
-
Conflict: 409,
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The `Payload Too Large` status code.
|
|
93
|
-
*/
|
|
94
|
-
PayloadTooLarge: 413,
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* The `Unsupported Media Type` status code.
|
|
98
|
-
*/
|
|
99
|
-
UnsupportedMediaType: 415,
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The `Authentication Timeout` status code.
|
|
103
|
-
*/
|
|
104
|
-
AuthenticationTimeout: 419,
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The `Unprocessable Content` status code.
|
|
108
|
-
*/
|
|
109
|
-
UnprocessableContent: 422,
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* The `Too Many Requests` status code.
|
|
113
|
-
*/
|
|
114
|
-
TooManyRequests: 429,
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* The `Internal Server Error` status code.
|
|
118
|
-
*/
|
|
119
|
-
InternalServerError: 500,
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* The `Not Implemented` status code.
|
|
123
|
-
*/
|
|
124
|
-
NotImplemented: 501,
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* The `Bad Gateway` status code.
|
|
128
|
-
*/
|
|
129
|
-
BadGateway: 502,
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* The `Service Unavailable` status code.
|
|
133
|
-
*/
|
|
134
|
-
ServiceUnavailable: 503,
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The `Gateway Timeout` status code.
|
|
138
|
-
*/
|
|
139
|
-
GatewayTimeout: 504,
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The `Bandwidth Limit Exceeded` status
|
|
143
|
-
*/
|
|
144
|
-
BandwidthLimitExceeded: 509
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Provides common HTTP status codes.
|
|
149
|
-
*/
|
|
150
|
-
export type StatusCode = typeof StatusCode[keyof typeof StatusCode];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides the strings used to specify the disposition type.
|
|
3
|
-
*/
|
|
4
|
-
export const DispositionType = Object.freeze({
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* The `attachment` disposition type.
|
|
8
|
-
*/
|
|
9
|
-
Attachment: "attachment",
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The `inline` disposition type.
|
|
13
|
-
*/
|
|
14
|
-
Inline: "inline"
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Provides the strings used to specify the disposition type.
|
|
19
|
-
*/
|
|
20
|
-
export type DispositionType = typeof DispositionType[keyof typeof DispositionType];
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides the strings used to specify the media type.
|
|
3
|
-
*/
|
|
4
|
-
export const MediaType = Object.freeze({
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Specifies the kind of application data.
|
|
8
|
-
*/
|
|
9
|
-
Application: Object.freeze({
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Specifies that the application data consists of url-encoded key-value pairs.
|
|
13
|
-
*/
|
|
14
|
-
FormUrlEncoded: "application/x-www-form-urlencoded",
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Specifies that the application data is in gzip format.
|
|
18
|
-
*/
|
|
19
|
-
GZip: "application/gzip",
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Specifies that the application data is in JSON format.
|
|
23
|
-
*/
|
|
24
|
-
Json: "application/json",
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Specifies that the application data is in Web Application Manifest.
|
|
28
|
-
*/
|
|
29
|
-
Manifest: "application/manifest+json",
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Specifies that the application data is not interpreted.
|
|
33
|
-
*/
|
|
34
|
-
Octet: "application/octet-stream",
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Specifies that the application data is in Portable Document Format (PDF).
|
|
38
|
-
*/
|
|
39
|
-
Pdf: "application/pdf",
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Specifies that the application data is a SOAP document.
|
|
43
|
-
*/
|
|
44
|
-
Soap: "application/soap+xml",
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Specifies that the application data is in WASM format.
|
|
48
|
-
*/
|
|
49
|
-
Wasm: "application/wasm",
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Specifies that the application data is in XML format.
|
|
53
|
-
*/
|
|
54
|
-
Xml: "application/xml",
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Specifies that the application data is compressed.
|
|
58
|
-
*/
|
|
59
|
-
Zip: "application/zip"
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Specifies the kind of font data.
|
|
64
|
-
*/
|
|
65
|
-
Font: Object.freeze({
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Specifies that the font data is in TrueType font (TTF) format.
|
|
69
|
-
*/
|
|
70
|
-
Ttf: "font/ttf",
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Specifies that the font data is in WOFF format.
|
|
74
|
-
*/
|
|
75
|
-
Woff: "font/woff",
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Specifies that the font data is in WOFF2 format.
|
|
79
|
-
*/
|
|
80
|
-
Woff2: "font/woff2"
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Specifies the kind of image data.
|
|
85
|
-
*/
|
|
86
|
-
Image: Object.freeze({
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Specifies that the image data is in AVIF format.
|
|
90
|
-
*/
|
|
91
|
-
Avif: "image/avif",
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Specifies that the image data is in GIF format.
|
|
95
|
-
*/
|
|
96
|
-
Gif: "image/gif",
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Specifies that the image data is in ICO format.
|
|
100
|
-
*/
|
|
101
|
-
Icon: "image/x-icon",
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Specifies that the image data is in JPEG format.
|
|
105
|
-
*/
|
|
106
|
-
Jpeg: "image/jpeg",
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Specifies that the image data is in PNG format.
|
|
110
|
-
*/
|
|
111
|
-
Png: "image/png",
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Specifies that the image data is in SVG format.
|
|
115
|
-
*/
|
|
116
|
-
Svg: "image/svg+xml",
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Specifies that the image data is in WEBP format.
|
|
120
|
-
*/
|
|
121
|
-
WebP: "image/webp"
|
|
122
|
-
}),
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Specifies the kind of multipart data.
|
|
126
|
-
*/
|
|
127
|
-
Multipart: Object.freeze({
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Specifies that the multipart data is in form data format.
|
|
131
|
-
*/
|
|
132
|
-
FormData: "multipart/form-data",
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Specifies that the multipart data is in mixed format.
|
|
136
|
-
*/
|
|
137
|
-
Mixed: "multipart/mixed"
|
|
138
|
-
}),
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Specifies the kind of text data.
|
|
142
|
-
*/
|
|
143
|
-
Text: Object.freeze({
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Specifies that the text data is in CSS format.
|
|
147
|
-
*/
|
|
148
|
-
Css: "text/css",
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Specifies that the text data is in CSV format.
|
|
152
|
-
*/
|
|
153
|
-
Csv: "text/csv",
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Specifies that the text data is in event stream format.
|
|
157
|
-
*/
|
|
158
|
-
EventStream: "text/event-stream",
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Specifies that the text data is in HTML format.
|
|
162
|
-
*/
|
|
163
|
-
Html: "text/html",
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Specifies that the text data is in JavaScript format.
|
|
167
|
-
*/
|
|
168
|
-
JavaScript: "text/javascript",
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Specifies that the text data is in Markdown format.
|
|
172
|
-
*/
|
|
173
|
-
Markdown: "text/markdown",
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Specifies that the text data is in plain text format.
|
|
177
|
-
*/
|
|
178
|
-
Plain: "text/plain",
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Specifies that the text data is in XML format.
|
|
182
|
-
*/
|
|
183
|
-
Xml: "text/xml"
|
|
184
|
-
})
|
|
185
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.json",
|
|
3
|
-
"include": ["**/*.ts"],
|
|
4
|
-
"compilerOptions": {
|
|
5
|
-
"composite": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"noEmit": false,
|
|
9
|
-
"outDir": "../../../lib/Net",
|
|
10
|
-
"rootDir": ".",
|
|
11
|
-
"tsBuildInfoFile": "../../../var/Net.tsbuildinfo"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates a document fragment from the specified HTML string.
|
|
3
|
-
* @param childContent The HTML string providing the child content.
|
|
4
|
-
* @returns The document fragment corresponding to the specified HTML string.
|
|
5
|
-
*/
|
|
6
|
-
export function createDocumentFragment(childContent: string): DocumentFragment {
|
|
7
|
-
const template = document.createElement("template");
|
|
8
|
-
template.innerHTML = childContent;
|
|
9
|
-
return template.content;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Returns a promise that resolves when the specified element has finished all its animations.
|
|
14
|
-
* @param element The target element.
|
|
15
|
-
* @returns The element animations.
|
|
16
|
-
*/
|
|
17
|
-
export function waitForAnimations(element: Element): Promise<Array<PromiseSettledResult<Animation>>> {
|
|
18
|
-
return Promise.allSettled(element.getAnimations().map(animation => animation.finished));
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|