@ngrdt/utils 0.0.74 → 0.0.77

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/src/index.d.ts DELETED
@@ -1,20 +0,0 @@
1
- export * from './lib/models/base-model';
2
- export * from './lib/types/aria';
3
- export * from './lib/types/encodings';
4
- export * from './lib/types/keyboard';
5
- export * from './lib/types/mime-types';
6
- export * from './lib/types/router';
7
- export * from './lib/types/type';
8
- export * from './lib/utils/array';
9
- export * from './lib/utils/css';
10
- export * from './lib/utils/date';
11
- export * from './lib/utils/date-format';
12
- export * from './lib/utils/dom';
13
- export * from './lib/utils/file';
14
- export * from './lib/utils/html';
15
- export * from './lib/utils/model';
16
- export * from './lib/utils/object';
17
- export * from './lib/utils/random';
18
- export * from './lib/utils/rxjs';
19
- export * from './lib/utils/signal-to-promise';
20
- export * from './lib/utils/string';
@@ -1,10 +0,0 @@
1
- export interface RdtBaseFormInputComponentInputsInt {
2
- label?: string;
3
- rdtDisabled?: boolean;
4
- name?: string;
5
- readonly?: boolean;
6
- required?: boolean;
7
- loading?: boolean;
8
- id?: string;
9
- autofocus?: boolean;
10
- }
@@ -1,219 +0,0 @@
1
- /**
2
- * Used to represent DOM API's where users can either pass
3
- * true or false as a boolean or as its equivalent strings.
4
- */
5
- type Booleanish = boolean | 'true' | 'false';
6
- export interface AriaAttributes {
7
- role: AriaRole;
8
- /** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
9
- 'aria-activedescendant'?: string | undefined;
10
- /** Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. */
11
- 'aria-atomic'?: Booleanish | undefined;
12
- /**
13
- * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
14
- * presented if they are made.
15
- */
16
- 'aria-autocomplete'?: 'none' | 'inline' | 'list' | 'both' | undefined;
17
- /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */
18
- /**
19
- * Defines a string value that labels the current element, which is intended to be converted into Braille.
20
- * @see aria-label.
21
- */
22
- 'aria-braillelabel'?: string | undefined;
23
- /**
24
- * Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
25
- * @see aria-roledescription.
26
- */
27
- 'aria-brailleroledescription'?: string | undefined;
28
- 'aria-busy'?: Booleanish | undefined;
29
- /**
30
- * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
31
- * @see aria-pressed @see aria-selected.
32
- */
33
- 'aria-checked'?: boolean | 'false' | 'mixed' | 'true' | undefined;
34
- /**
35
- * Defines the total number of columns in a table, grid, or treegrid.
36
- * @see aria-colindex.
37
- */
38
- 'aria-colcount'?: number | undefined;
39
- /**
40
- * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
41
- * @see aria-colcount @see aria-colspan.
42
- */
43
- 'aria-colindex'?: number | undefined;
44
- /**
45
- * Defines a human readable text alternative of aria-colindex.
46
- * @see aria-rowindextext.
47
- */
48
- 'aria-colindextext'?: string | undefined;
49
- /**
50
- * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
51
- * @see aria-colindex @see aria-rowspan.
52
- */
53
- 'aria-colspan'?: number | undefined;
54
- /**
55
- * Identifies the element (or elements) whose contents or presence are controlled by the current element.
56
- * @see aria-owns.
57
- */
58
- 'aria-controls'?: string | undefined;
59
- /** Indicates the element that represents the current item within a container or set of related elements. */
60
- 'aria-current'?: boolean | 'false' | 'true' | 'page' | 'step' | 'location' | 'date' | 'time' | undefined;
61
- /**
62
- * Identifies the element (or elements) that describes the object.
63
- * @see aria-labelledby
64
- */
65
- 'aria-describedby'?: string | undefined;
66
- /**
67
- * Defines a string value that describes or annotates the current element.
68
- * @see related aria-describedby.
69
- */
70
- 'aria-description'?: string | undefined;
71
- /**
72
- * Identifies the element that provides a detailed, extended description for the object.
73
- * @see aria-describedby.
74
- */
75
- 'aria-details'?: string | undefined;
76
- /**
77
- * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
78
- * @see aria-hidden @see aria-readonly.
79
- */
80
- 'aria-disabled'?: Booleanish | undefined;
81
- /**
82
- * Indicates what functions can be performed when a dragged object is released on the drop target.
83
- * @deprecated in ARIA 1.1
84
- */
85
- 'aria-dropeffect'?: 'none' | 'copy' | 'execute' | 'link' | 'move' | 'popup' | undefined;
86
- /**
87
- * Identifies the element that provides an error message for the object.
88
- * @see aria-invalid @see aria-describedby.
89
- */
90
- 'aria-errormessage'?: string | undefined;
91
- /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */
92
- 'aria-expanded'?: Booleanish | undefined;
93
- /**
94
- * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
95
- * allows assistive technology to override the general default of reading in document source order.
96
- */
97
- 'aria-flowto'?: string | undefined;
98
- /**
99
- * Indicates an element's "grabbed" state in a drag-and-drop operation.
100
- * @deprecated in ARIA 1.1
101
- */
102
- 'aria-grabbed'?: Booleanish | undefined;
103
- /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */
104
- 'aria-haspopup'?: boolean | 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | undefined;
105
- /**
106
- * Indicates whether the element is exposed to an accessibility API.
107
- * @see aria-disabled.
108
- */
109
- 'aria-hidden'?: Booleanish | undefined;
110
- /**
111
- * Indicates the entered value does not conform to the format expected by the application.
112
- * @see aria-errormessage.
113
- */
114
- 'aria-invalid'?: boolean | 'false' | 'true' | 'grammar' | 'spelling' | undefined;
115
- /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */
116
- 'aria-keyshortcuts'?: string | undefined;
117
- /**
118
- * Defines a string value that labels the current element.
119
- * @see aria-labelledby.
120
- */
121
- 'aria-label'?: string | undefined;
122
- /**
123
- * Identifies the element (or elements) that labels the current element.
124
- * @see aria-describedby.
125
- */
126
- 'aria-labelledby'?: string | undefined;
127
- /** Defines the hierarchical level of an element within a structure. */
128
- 'aria-level'?: number | undefined;
129
- /** Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. */
130
- 'aria-live'?: 'off' | 'assertive' | 'polite' | undefined;
131
- /** Indicates whether an element is modal when displayed. */
132
- 'aria-modal'?: Booleanish | undefined;
133
- /** Indicates whether a text box accepts multiple lines of input or only a single line. */
134
- 'aria-multiline'?: Booleanish | undefined;
135
- /** Indicates that the user may select more than one item from the current selectable descendants. */
136
- 'aria-multiselectable'?: Booleanish | undefined;
137
- /** Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. */
138
- 'aria-orientation'?: 'horizontal' | 'vertical' | undefined;
139
- /**
140
- * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
141
- * between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
142
- * @see aria-controls.
143
- */
144
- 'aria-owns'?: string | undefined;
145
- /**
146
- * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
147
- * A hint could be a sample value or a brief description of the expected format.
148
- */
149
- 'aria-placeholder'?: string | undefined;
150
- /**
151
- * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
152
- * @see aria-setsize.
153
- */
154
- 'aria-posinset'?: number | undefined;
155
- /**
156
- * Indicates the current "pressed" state of toggle buttons.
157
- * @see aria-checked @see aria-selected.
158
- */
159
- 'aria-pressed'?: boolean | 'false' | 'mixed' | 'true' | undefined;
160
- /**
161
- * Indicates that the element is not editable, but is otherwise operable.
162
- * @see aria-disabled.
163
- */
164
- 'aria-readonly'?: Booleanish | undefined;
165
- /**
166
- * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
167
- * @see aria-atomic.
168
- */
169
- 'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals' | undefined;
170
- /** Indicates that user input is required on the element before a form may be submitted. */
171
- 'aria-required'?: Booleanish | undefined;
172
- /** Defines a human-readable, author-localized description for the role of an element. */
173
- 'aria-roledescription'?: string | undefined;
174
- /**
175
- * Defines the total number of rows in a table, grid, or treegrid.
176
- * @see aria-rowindex.
177
- */
178
- 'aria-rowcount'?: number | undefined;
179
- /**
180
- * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
181
- * @see aria-rowcount @see aria-rowspan.
182
- */
183
- 'aria-rowindex'?: number | undefined;
184
- /**
185
- * Defines a human readable text alternative of aria-rowindex.
186
- * @see aria-colindextext.
187
- */
188
- 'aria-rowindextext'?: string | undefined;
189
- /**
190
- * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
191
- * @see aria-rowindex @see aria-colspan.
192
- */
193
- 'aria-rowspan'?: number | undefined;
194
- /**
195
- * Indicates the current "selected" state of various widgets.
196
- * @see aria-checked @see aria-pressed.
197
- */
198
- 'aria-selected'?: Booleanish | undefined;
199
- /**
200
- * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
201
- * @see aria-posinset.
202
- */
203
- 'aria-setsize'?: number | undefined;
204
- /** Indicates if items in a table or grid are sorted in ascending or descending order. */
205
- 'aria-sort'?: 'none' | 'ascending' | 'descending' | 'other' | undefined;
206
- /** Defines the maximum allowed value for a range widget. */
207
- 'aria-valuemax'?: number | undefined;
208
- /** Defines the minimum allowed value for a range widget. */
209
- 'aria-valuemin'?: number | undefined;
210
- /**
211
- * Defines the current value for a range widget.
212
- * @see aria-valuetext.
213
- */
214
- 'aria-valuenow'?: number | undefined;
215
- /** Defines the human readable text alternative of aria-valuenow for a range widget. */
216
- 'aria-valuetext'?: string | undefined;
217
- }
218
- export type AriaRole = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'cell' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'navigation' | 'none' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem' | (string & {});
219
- export {};
@@ -1,44 +0,0 @@
1
- export declare enum RdtEncoding {
2
- UTF_8 = "utf-8",
3
- IBM_866 = "ibm866",
4
- ISO_8859_2 = "iso-8859-2",
5
- ISO_8859_3 = "iso-8859-3",
6
- ISO_8859_4 = "iso-8859-4",
7
- ISO_8859_5 = "iso-8859-5",
8
- ISO_8859_6 = "iso-8859-6",
9
- ISO_8859_7 = "iso-8859-7",
10
- ISO_8859_8 = "iso-8859-8",
11
- ISO_8859_8_I = "iso-8859-8-i",
12
- ISO_8859_10 = "iso-8859-10",
13
- ISO_8859_13 = "iso-8859-13",
14
- ISO_8859_14 = "iso-8859-14",
15
- ISO_8859_15 = "iso-8859-15",
16
- ISO_8859_16 = "iso-8859-16",
17
- KOI8_R = "koi8-r",
18
- MACINTOSH = "macintosh",
19
- WINDOWS_874 = "windows-874",
20
- WINDOWS_1250 = "windows-1250",
21
- WINDOWS_1251 = "windows-1251",
22
- WINDOWS_1252 = "windows-1252",
23
- WINDOWS_1253 = "windows-1253",
24
- WINDOWS_1254 = "windows-1254",
25
- WINDOWS_1255 = "windows-1255",
26
- WINDOWS_1256 = "windows-1256",
27
- WINDOWS_1257 = "windows-1257",
28
- WINDOWS_1258 = "windows-1258",
29
- X_MAC_CYRILLIC = "x-mac-cyrillic",
30
- GBK = "gbk",
31
- GB18030 = "gb18030",
32
- BIG5 = "big5",
33
- EUC_JP = "euc-jp",
34
- ISO_2022_JP = "iso-2022-jp",
35
- SHIFT_JIS = "shift-jis",
36
- EUC_KR = "euc-kr",
37
- HZ_GB_2312 = "hz-gb-2312",
38
- ISO_2022_CN = "iso-2022-cn",
39
- ISO_2022_CN_EXT = "iso-2022-cn-ext",
40
- ISO_2022_KR = "iso-2022-kr",
41
- UTF_16 = "utf-16",
42
- X_USER_DEFINED = "x-user-defined"
43
- }
44
- export type AllEncodingAliases = 'unicode-1-1-utf-8' | 'unicode11utf8' | 'unicode20utf8' | 'utf-8' | 'utf8' | 'x-unicode20utf8' | '866' | 'cp866' | 'csibm866' | 'ibm866' | 'csisolatin2' | 'iso-8859-2' | 'iso-ir-101' | 'iso8859-2' | 'iso88592' | 'iso_8859-2' | 'iso_8859-2:1987' | 'l2' | 'latin2' | 'csisolatin3' | 'iso-8859-3' | 'iso-ir-109' | 'iso8859-3' | 'iso88593' | 'iso_8859-3' | 'iso_8859-3:1988' | 'l3' | 'latin3' | 'csisolatin4' | 'iso-8859-4' | 'iso-ir-110' | 'iso8859-4' | 'iso88594' | 'iso_8859-4' | 'iso_8859-4:1988' | 'l4' | 'latin4' | 'csisolatincyrillic' | 'cyrillic' | 'iso-8859-5' | 'iso-ir-144' | 'iso8859-5' | 'iso88595' | 'iso_8859-5' | 'iso_8859-5:1988' | 'arabic' | 'asmo-708' | 'csiso88596e' | 'csiso88596i' | 'csisolatinarabic' | 'ecma-114' | 'iso-8859-6' | 'iso-8859-6-e' | 'iso-8859-6-i' | 'iso-ir-127' | 'iso8859-6' | 'iso88596' | 'iso_8859-6' | 'iso_8859-6:1987' | 'csisolatingreek' | 'ecma-118' | 'elot_928' | 'greek' | 'greek8' | 'iso-8859-7' | 'iso-ir-126' | 'iso8859-7' | 'iso88597' | 'iso_8859-7' | 'iso_8859-7:1987' | 'sun_eu_greek' | 'csiso88598e' | 'csisolatinhebrew' | 'hebrew' | 'iso-8859-8' | 'iso-8859-8-e' | 'iso-ir-138' | 'iso8859-8' | 'iso88598' | 'iso_8859-8' | 'iso_8859-8:1988' | 'visual' | 'csiso88598i' | 'iso-8859-8-i' | 'logical' | 'csisolatin6' | 'iso-8859-10' | 'iso-ir-157' | 'iso8859-10' | 'iso885910' | 'l6' | 'latin6' | 'iso-8859-13' | 'iso8859-13' | 'iso885913' | 'iso-8859-14' | 'iso8859-14' | 'iso885914' | 'csisolatin9' | 'iso-8859-15' | 'iso8859-15' | 'iso885915' | 'iso_8859-15' | 'l9' | 'iso-8859-16' | 'cskoi8r' | 'koi' | 'koi8' | 'koi8-r' | 'koi8_r' | 'koi8-ru' | 'koi8-u' | 'csmacintosh' | 'mac' | 'macintosh' | 'x-mac-roman' | 'dos-874' | 'iso-8859-11' | 'iso8859-11' | 'iso885911' | 'tis-620' | 'windows-874' | 'cp1250' | 'windows-1250' | 'x-cp1250' | 'cp1251' | 'windows-1251' | 'x-cp1251' | 'ansi_x3.4-1968' | 'ascii' | 'cp1252' | 'cp819' | 'csisolatin1' | 'ibm819' | 'iso-8859-1' | 'iso-ir-100' | 'iso8859-1' | 'iso88591' | 'iso_8859-1' | 'iso_8859-1:1987' | 'l1' | 'latin1' | 'us-ascii' | 'windows-1252' | 'x-cp1252' | 'cp1253' | 'windows-1253' | 'x-cp1253' | 'cp1254' | 'csisolatin5' | 'iso-8859-9' | 'iso-ir-148' | 'iso8859-9' | 'iso88599' | 'iso_8859-9' | 'iso_8859-9:1989' | 'l5' | 'latin5' | 'windows-1254' | 'x-cp1254' | 'cp1255' | 'windows-1255' | 'x-cp1255' | 'cp1256' | 'windows-1256' | 'x-cp1256' | 'cp1257' | 'windows-1257' | 'x-cp1257' | 'cp1258' | 'windows-1258' | 'x-cp1258' | 'x-mac-cyrillic' | 'x-mac-ukrainian' | 'chinese' | 'csgb2312' | 'csiso58gb231280' | 'gb2312' | 'gb_2312' | 'gb_2312-80' | 'gbk' | 'iso-ir-58' | 'x-gbk' | 'gb18030' | 'big5' | 'big5-hkscs' | 'cn-big5' | 'csbig5' | 'x-x-big5' | 'cseucpkdfmtjapanese' | 'euc-jp' | 'x-euc-jp' | 'csiso2022jp' | 'iso-2022-jp' | 'csshiftjis' | 'ms932' | 'ms_kanji' | 'shift-jis' | 'shift_jis' | 'sjis' | 'windows-31j' | 'x-sjis' | 'cseuckr' | 'csksc56011987' | 'euc-kr' | 'iso-ir-149' | 'korean' | 'ks_c_5601-1987' | 'ks_c_5601-1989' | 'ksc5601' | 'ksc_5601' | 'windows-949' | 'csiso2022kr' | 'hz-gb-2312' | 'iso-2022-cn' | 'iso-2022-cn-ext' | 'iso-2022-kr' | 'replacement' | 'unicodefffe' | 'utf-16be' | 'csunicode' | 'iso-10646-ucs-2' | 'ucs-2' | 'unicode' | 'unicodefeff' | 'utf-16' | 'utf-16le' | 'x-user-defined';
@@ -1,36 +0,0 @@
1
- export declare const ARROW: {
2
- UP: string;
3
- DOWN: string;
4
- LEFT: string;
5
- RIGHT: string;
6
- };
7
- export declare const KB_KEY: {
8
- SPACEBAR: string;
9
- ENTER: string;
10
- ESCAPE: string;
11
- HOME: string;
12
- END: string;
13
- TAB: string;
14
- ARROW: {
15
- UP: string;
16
- DOWN: string;
17
- LEFT: string;
18
- RIGHT: string;
19
- };
20
- };
21
- export declare const KB_CODE: {
22
- SPACEBAR: string;
23
- ENTER: string;
24
- ESCAPE: string;
25
- HOME: string;
26
- END: string;
27
- TAB: string;
28
- ARROW: {
29
- UP: string;
30
- DOWN: string;
31
- LEFT: string;
32
- RIGHT: string;
33
- };
34
- };
35
- export declare const ALPHABET_KB_KEYS: string[];
36
- export declare const KB_ALPHABET_CODES: string[];
@@ -1,111 +0,0 @@
1
- export declare enum RdtMimeType {
2
- DOCX = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
3
- XLSX = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
4
- PDF = "application/pdf",
5
- TXT = "text/plain",
6
- CSV = "text/csv",
7
- ZIP = "application/zip",
8
- JPG = "image/jpeg",
9
- PNG = "image/png",
10
- GIF = "image/gif",
11
- SVG = "image/svg+xml",
12
- HTML = "text/html",
13
- XML = "application/xml",
14
- JSON = "application/json",
15
- MP3 = "audio/mpeg",
16
- MP4 = "video/mp4",
17
- OGG = "audio/ogg",
18
- WEBM = "video/webm",
19
- WAV = "audio/wav",
20
- AVI = "video/x-msvideo",
21
- MPEG = "video/mpeg",
22
- WEBP = "image/webp",
23
- ICO = "image/x-icon",
24
- TTF = "font/ttf",
25
- WOFF = "font/woff",
26
- WOFF2 = "font/woff2",
27
- EOT = "application/vnd.ms-fontobject",
28
- OTF = "font/otf",
29
- PPTX = "application/vnd.openxmlformats-officedocument.presentationml.presentation",
30
- PPT = "application/vnd.ms-powerpoint",
31
- XLS = "application/vnd.ms-excel",
32
- DOC = "application/msword",
33
- ODT = "application/vnd.oasis.opendocument.text",
34
- ODS = "application/vnd.oasis.opendocument.spreadsheet",
35
- ODP = "application/vnd.oasis.opendocument.presentation",
36
- ODF = "application/vnd.oasis.opendocument.formula",
37
- RAR = "application/vnd.rar",
38
- TAR = "application/x-tar",
39
- GZIP = "application/gzip",
40
- BZIP2 = "application/x-bzip2",
41
- XZ = "application/x-xz",
42
- SEVENZ = "application/x-7z-compressed",
43
- RAR5 = "application/x-rar-compressed",
44
- WMA = "audio/x-ms-wma",
45
- WMV = "video/x-ms-wmv",
46
- FLV = "video/x-flv",
47
- OGV = "video/ogg",
48
- BIN = "application/octet-stream",
49
- UNKNOWN = "unknown"
50
- }
51
- export declare enum RdtCombinedMimeType {
52
- IMAGE = "image/*",
53
- AUDIO = "audio/*",
54
- VIDEO = "video/*",
55
- FONT = "font/*",
56
- DOCUMENT = "application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,application/pdf,text/plain,text/csv",
57
- SPREADSHEET = "application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.oasis.opendocument.spreadsheet",
58
- PRESENTATION = "application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.oasis.opendocument.presentation",
59
- ARCHIVE = "application/zip,application/vnd.rar,application/x-tar,application/gzip,application/x-bzip2,application/x-xz,application/x-7z-compressed,application/x-rar-compressed"
60
- }
61
- export declare const EXTENSION_BY_MIME_TYPE: {
62
- readonly "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx";
63
- readonly "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx";
64
- readonly "application/pdf": "pdf";
65
- readonly "text/plain": "txt";
66
- readonly "text/csv": "csv";
67
- readonly "application/zip": "zip";
68
- readonly "image/jpeg": "jpg";
69
- readonly "image/png": "png";
70
- readonly "image/gif": "gif";
71
- readonly "image/svg+xml": "svg";
72
- readonly "text/html": "html";
73
- readonly "application/xml": "xml";
74
- readonly "application/json": "json";
75
- readonly "audio/mpeg": "mp3";
76
- readonly "video/mp4": "mp4";
77
- readonly "audio/ogg": "ogg";
78
- readonly "video/webm": "webm";
79
- readonly "audio/wav": "wav";
80
- readonly "video/x-msvideo": "avi";
81
- readonly "video/mpeg": "mpeg";
82
- readonly "image/webp": "webp";
83
- readonly "image/x-icon": "ico";
84
- readonly "font/ttf": "ttf";
85
- readonly "font/woff": "woff";
86
- readonly "font/woff2": "woff2";
87
- readonly "application/vnd.ms-fontobject": "eot";
88
- readonly "font/otf": "otf";
89
- readonly "application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx";
90
- readonly "application/vnd.ms-powerpoint": "ppt";
91
- readonly "application/vnd.ms-excel": "xls";
92
- readonly "application/msword": "doc";
93
- readonly "application/vnd.oasis.opendocument.text": "odt";
94
- readonly "application/vnd.oasis.opendocument.spreadsheet": "ods";
95
- readonly "application/vnd.oasis.opendocument.presentation": "odp";
96
- readonly "application/vnd.oasis.opendocument.formula": "odf";
97
- readonly "application/vnd.rar": "rar";
98
- readonly "application/x-tar": "tar";
99
- readonly "application/gzip": "gz";
100
- readonly "application/x-bzip2": "bz2";
101
- readonly "application/x-xz": "xz";
102
- readonly "application/x-7z-compressed": "7z";
103
- readonly "application/x-rar-compressed": "rar";
104
- readonly "audio/x-ms-wma": "wma";
105
- readonly "video/x-ms-wmv": "wmv";
106
- readonly "video/x-flv": "flv";
107
- readonly "video/ogg": "ogv";
108
- readonly "application/octet-stream": "bin";
109
- readonly unknown: "unknown";
110
- };
111
- export declare const MIME_TYPE_BY_EXTENSION: Record<(typeof EXTENSION_BY_MIME_TYPE)[keyof typeof EXTENSION_BY_MIME_TYPE], RdtMimeType>;
@@ -1 +0,0 @@
1
- export type WindowOpenTargetType = '_blank' | '_self' | '_parent' | '_top';
@@ -1,13 +0,0 @@
1
- export type TypesAreEqual<T, U> = [T] extends [U] ? [U] extends [T] ? true : false : false;
2
- export type DotNotationPath<T> = keyof T extends string ? PathImpl2<T> extends infer P ? P extends string | keyof T ? P : keyof T : keyof T : never;
3
- export type StringKey<T, TGrid = T> = keyof T & keyof TGrid & string;
4
- export type Nullable<T> = T | null | undefined;
5
- type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
6
- type ExcludeArrayKeys<T> = T extends ArrayLike<any> ? Exclude<keyof T, keyof any[]> : keyof T;
7
- type PathImpl<T, Key extends keyof T> = Key extends string ? IsAny<T[Key]> extends true ? never : T[Key] extends Record<string, any> ? `${Key}.${PathImpl<T[Key], ExcludeArrayKeys<T[Key]>> & string}` | `${Key}.${ExcludeArrayKeys<T[Key]> & string}` : never : never;
8
- type PathImpl2<T> = PathImpl<T, keyof T> | keyof T;
9
- export type NullPartial<T> = {
10
- [key in keyof T]: T[key] | null;
11
- };
12
- export type Modify<T, R> = Omit<T, keyof R> & R;
13
- export {};
@@ -1,6 +0,0 @@
1
- import { Nullable } from '../types/type';
2
- export declare class RdtArrayUtils {
3
- static removeAt<T>(array: T[], index: number): T[];
4
- static insertAt<T>(array: T[], index: number, item: T): T[];
5
- static isEqual<T>(a: Nullable<Readonly<T[]>>, b: Nullable<Readonly<T[]>>): boolean;
6
- }
@@ -1,19 +0,0 @@
1
- export declare class RdtCssUtils {
2
- static normalizeColor(color: string): string | null;
3
- private static normalizeHex;
4
- private static normalizeRgb;
5
- private static normalizeRgba;
6
- private static isRgbColor;
7
- private static isHexColor;
8
- private static isRgbaColor;
9
- private static rgbRegex;
10
- private static rgbaRegex;
11
- private static hexRegex;
12
- }
13
- export type RdtHorizontalDirection = 'left' | 'right';
14
- export type RdtVerticalDirection = 'up' | 'down';
15
- export interface RdtRgbColor {
16
- r: number;
17
- g: number;
18
- b: number;
19
- }
@@ -1,77 +0,0 @@
1
- interface RdtNumericNode {
2
- type: RdtFormatType.Day | RdtFormatType.Month | RdtFormatType.Year;
3
- maxLength: number;
4
- minLength: number;
5
- }
6
- declare enum RdtFormatType {
7
- Day = "day",
8
- Month = "month",
9
- Year = "year",
10
- Constant = "constant"
11
- }
12
- export declare const PRIMENG_DATE_FORMAT_META: Record<string, RdtNumericNode>;
13
- export interface RdtDateInputConfig {
14
- format: string;
15
- yearInputMode: RdtYearInputMode;
16
- twoDigitYearInputStrategy: RdtTwoDigitYearInputConversionStrategy;
17
- leadingZeroMode: RdtLeadingZeroInputMode;
18
- symbolMeta: Record<string, RdtNumericNode>;
19
- insertMode: RdtInsertMode;
20
- }
21
- export declare enum RdtInsertMode {
22
- Overwrite = 0,
23
- Shift = 1
24
- }
25
- export declare enum RdtPasteMode {
26
- Replace = 0,
27
- Insert = 1
28
- }
29
- export declare enum RdtYearInputMode {
30
- FourDigit = 1,
31
- TwoDigit = 2,
32
- Both = 3
33
- }
34
- export declare enum RdtLeadingZeroInputMode {
35
- NoLeadingZero = 1,
36
- LeadingZero = 2,
37
- Both = 3
38
- }
39
- export type RdtTwoDigitYearInputConversionStrategy = 'past' | 'future';
40
- export declare class RdtDateParser {
41
- private cfg;
42
- private _value;
43
- private _inputValue;
44
- private _parsedFormat;
45
- private deleting;
46
- private caretPosition;
47
- constructor(cfg: RdtDateInputConfig);
48
- set leadingZeroMode(mode: RdtLeadingZeroInputMode);
49
- get leadingZeroMode(): RdtLeadingZeroInputMode;
50
- set yearInputMode(mode: RdtYearInputMode);
51
- get yearInputMode(): RdtYearInputMode;
52
- set twoDigitYearInputStrategy(strategy: RdtTwoDigitYearInputConversionStrategy);
53
- get twoDigitYearInputStrategy(): RdtTwoDigitYearInputConversionStrategy;
54
- set insertMode(mode: RdtInsertMode);
55
- get insertMode(): RdtInsertMode;
56
- set format(format: string);
57
- get format(): string;
58
- onKeyDown(event: KeyboardEvent): void;
59
- onKeyUp(event: KeyboardEvent): void;
60
- onInput(event: InputEvent): void;
61
- get value(): Date | null;
62
- set value(d: Date | null);
63
- set inputValue(value: string);
64
- get inputValue(): string;
65
- parse(input: string, caretPosition?: number, deleting?: boolean): {
66
- prettyInput: string;
67
- date: Date | null;
68
- complete: boolean;
69
- caret: number;
70
- ambiguous: boolean;
71
- };
72
- private readNumber;
73
- private parseFormat;
74
- private useUpNumbersUntilNextSeparator;
75
- private containsNonNumericCharacters;
76
- }
77
- export {};
@@ -1,60 +0,0 @@
1
- import { Nullable } from '../types/type';
2
- export declare class RdtDateUtils {
3
- static readonly MS = 1;
4
- static readonly SECOND: number;
5
- static readonly MINUTE: number;
6
- static readonly HOUR: number;
7
- static readonly DAY: number;
8
- /**
9
- * Returns number of days between two dates.
10
- * Returns zero in case dates are the same. Ignores time.
11
- */
12
- static getDays(a: Date | string | number, b: Date | string | number): number;
13
- static checkDate(year: number, month: number, day: number): boolean;
14
- static isValidDate(value: any): value is string | number | Date;
15
- static startOfDay(input: Date | string): Date;
16
- static endOfDay(input: Date | string): Date;
17
- static startOfMonth(input: Date | string): Date;
18
- static endOfMonth(input: Date | string): Date;
19
- static startOfYear(year: number): Date;
20
- static endOfYear(year: number): Date;
21
- static beginningOfNextMonth(): Date;
22
- static endOfNextMonth(): Date;
23
- static beginningOfInThreeMonths(): Date;
24
- static endOfInNextThreeMonths(): Date;
25
- static minusOneDay(date: Date): Date;
26
- static toISOLocal(d: Date): string;
27
- static formatDate(date: any): string;
28
- static timeToDate(time: string): Date | null;
29
- static setTime(date: Date, time: string): Date;
30
- static getTime(d: Date, showSeconds?: boolean): string;
31
- static parseToDate(input: Nullable<string | Date>): Date | null;
32
- static parse(input: Nullable<string | Date>): number | null;
33
- static isEqual(d1: Date | null, d2: Date | null): boolean;
34
- static isLeapYear(year: number): boolean;
35
- static getDaysInYear(year: number): 365 | 366;
36
- private static hhMmRegex;
37
- private static hhMmSsRegex;
38
- private static hhMmSsMsRegex;
39
- private static daysUpToMonth;
40
- private static daysUpToMonthLeapYear;
41
- private static getDayOffset;
42
- static doubleDigitYearToPast(year2: number): number;
43
- static doubleDigitYearToFuture(year2: number): number;
44
- static getCurrentYear(): number;
45
- static calculateAge(birthDateStr: string, referenceDateStr: string): number;
46
- }
47
- export declare enum Month {
48
- January = 0,
49
- February = 1,
50
- March = 2,
51
- April = 3,
52
- May = 4,
53
- June = 5,
54
- July = 6,
55
- August = 7,
56
- September = 8,
57
- October = 9,
58
- November = 10,
59
- December = 11
60
- }
@@ -1,4 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export declare class RdtDomUtils {
3
- static getResizeEvent$(element: HTMLElement): Observable<ResizeObserverEntry[]>;
4
- }