@cedx/base 0.19.0 → 0.20.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.
Files changed (82) hide show
  1. package/ReadMe.md +1 -1
  2. package/lib/{DateExtensions.d.ts → Date.d.ts} +9 -9
  3. package/lib/Date.d.ts.map +1 -0
  4. package/lib/{DateExtensions.js → Date.js} +12 -10
  5. package/lib/{FileExtensions.d.ts → File.d.ts} +1 -1
  6. package/lib/File.d.ts.map +1 -0
  7. package/lib/{NumberExtensions.d.ts → Number.d.ts} +1 -1
  8. package/lib/Number.d.ts.map +1 -0
  9. package/lib/{StringExtensions.d.ts → String.d.ts} +1 -19
  10. package/lib/String.d.ts.map +1 -0
  11. package/lib/{StringExtensions.js → String.js} +0 -40
  12. package/lib/UI/Components/LoadingIndicator.d.ts +16 -0
  13. package/lib/UI/Components/LoadingIndicator.d.ts.map +1 -1
  14. package/lib/UI/Components/LoadingIndicator.js +37 -0
  15. package/lib/UI/Components/MessageBox.d.ts +7 -7
  16. package/lib/UI/Components/MessageBox.d.ts.map +1 -1
  17. package/lib/UI/Components/MessageBox.js +4 -5
  18. package/lib/UI/Components/OfflineIndicator.d.ts +16 -0
  19. package/lib/UI/Components/OfflineIndicator.d.ts.map +1 -1
  20. package/lib/UI/Components/OfflineIndicator.js +35 -0
  21. package/lib/UI/Components/Toast.d.ts +3 -3
  22. package/lib/UI/Components/Toast.d.ts.map +1 -1
  23. package/lib/UI/Components/Toast.js +2 -2
  24. package/lib/UI/Components/Toaster.d.ts +2 -2
  25. package/lib/UI/Components/Toaster.d.ts.map +1 -1
  26. package/lib/UI/Components/Toaster.js +3 -4
  27. package/lib/UI/{FormExtensions.d.ts → Form.d.ts} +1 -1
  28. package/lib/UI/Form.d.ts.map +1 -0
  29. package/lib/UI/Tag.d.ts +15 -0
  30. package/lib/UI/Tag.d.ts.map +1 -0
  31. package/lib/UI/Tag.js +42 -0
  32. package/package.json +1 -1
  33. package/src/Client/{DateExtensions.ts → Date.ts} +13 -10
  34. package/src/Client/{StringExtensions.ts → String.ts} +0 -40
  35. package/src/Client/UI/Components/LoadingIndicator.ts +38 -0
  36. package/src/Client/UI/Components/MessageBox.ts +10 -11
  37. package/src/Client/UI/Components/OfflineIndicator.ts +36 -0
  38. package/src/Client/UI/Components/Toast.ts +4 -4
  39. package/src/Client/UI/Components/Toaster.ts +4 -5
  40. package/src/Client/UI/Tag.ts +50 -0
  41. package/src/Client/tsconfig.json +0 -2
  42. package/lib/DateExtensions.d.ts.map +0 -1
  43. package/lib/FileExtensions.d.ts.map +0 -1
  44. package/lib/Hosting/Environment.d.ts +0 -22
  45. package/lib/Hosting/Environment.d.ts.map +0 -1
  46. package/lib/Hosting/Environment.js +0 -17
  47. package/lib/Hosting/HostEnvironment.d.ts +0 -61
  48. package/lib/Hosting/HostEnvironment.d.ts.map +0 -1
  49. package/lib/Hosting/HostEnvironment.js +0 -56
  50. package/lib/Net/Http/HttpMethod.d.ts +0 -46
  51. package/lib/Net/Http/HttpMethod.d.ts.map +0 -1
  52. package/lib/Net/Http/HttpMethod.js +0 -41
  53. package/lib/Net/Http/StatusCode.d.ts +0 -122
  54. package/lib/Net/Http/StatusCode.d.ts.map +0 -1
  55. package/lib/Net/Http/StatusCode.js +0 -117
  56. package/lib/Net/Mime/DispositionType.d.ts +0 -18
  57. package/lib/Net/Mime/DispositionType.d.ts.map +0 -1
  58. package/lib/Net/Mime/DispositionType.js +0 -13
  59. package/lib/Net/Mime/MediaType.d.ts +0 -151
  60. package/lib/Net/Mime/MediaType.d.ts.map +0 -1
  61. package/lib/Net/Mime/MediaType.js +0 -150
  62. package/lib/NumberExtensions.d.ts.map +0 -1
  63. package/lib/StringExtensions.d.ts.map +0 -1
  64. package/lib/UI/ElementExtensions.d.ts +0 -13
  65. package/lib/UI/ElementExtensions.d.ts.map +0 -1
  66. package/lib/UI/ElementExtensions.js +0 -18
  67. package/lib/UI/FormExtensions.d.ts.map +0 -1
  68. package/src/Client/Hosting/Environment.ts +0 -25
  69. package/src/Client/Hosting/HostEnvironment.ts +0 -86
  70. package/src/Client/Hosting/tsconfig.json +0 -13
  71. package/src/Client/Net/Http/HttpMethod.ts +0 -55
  72. package/src/Client/Net/Http/StatusCode.ts +0 -150
  73. package/src/Client/Net/Mime/DispositionType.ts +0 -20
  74. package/src/Client/Net/Mime/MediaType.ts +0 -185
  75. package/src/Client/Net/tsconfig.json +0 -13
  76. package/src/Client/UI/ElementExtensions.ts +0 -19
  77. /package/lib/{FileExtensions.js → File.js} +0 -0
  78. /package/lib/{NumberExtensions.js → Number.js} +0 -0
  79. /package/lib/UI/{FormExtensions.js → Form.js} +0 -0
  80. /package/src/Client/{FileExtensions.ts → File.ts} +0 -0
  81. /package/src/Client/{NumberExtensions.ts → Number.ts} +0 -0
  82. /package/src/Client/UI/{FormExtensions.ts → Form.ts} +0 -0
@@ -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