mol_time_all 1.1.1673 → 1.1.1674
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/package.json +1 -1
- package/web.d.ts +203 -0
- package/web.d.ts.map +1 -1
package/package.json
CHANGED
package/web.d.ts
CHANGED
|
@@ -1,3 +1,206 @@
|
|
|
1
|
+
declare let _$_: {
|
|
2
|
+
new (): {};
|
|
3
|
+
} & typeof globalThis;
|
|
4
|
+
declare class $ extends _$_ {
|
|
5
|
+
}
|
|
6
|
+
declare namespace $ {
|
|
7
|
+
export type $ = typeof $$;
|
|
8
|
+
export class $$ extends $ {
|
|
9
|
+
static $: $;
|
|
10
|
+
}
|
|
11
|
+
namespace $$ {
|
|
12
|
+
type $$ = $;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare namespace $ {
|
|
18
|
+
class $mol_time_base {
|
|
19
|
+
static patterns: Record<string, (arg: any) => string>;
|
|
20
|
+
static formatter(pattern: string): (arg: any) => string;
|
|
21
|
+
toString(pattern: string): string;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare namespace $ {
|
|
26
|
+
type $mol_time_duration_config = number | string | readonly [number, number, number, number, number, number] | {
|
|
27
|
+
year?: number;
|
|
28
|
+
month?: number;
|
|
29
|
+
day?: number;
|
|
30
|
+
hour?: number;
|
|
31
|
+
minute?: number;
|
|
32
|
+
second?: number;
|
|
33
|
+
};
|
|
34
|
+
class $mol_time_duration extends $mol_time_base {
|
|
35
|
+
constructor(config?: $mol_time_duration_config);
|
|
36
|
+
readonly year: number;
|
|
37
|
+
readonly month: number;
|
|
38
|
+
readonly day: number;
|
|
39
|
+
readonly hour: number;
|
|
40
|
+
readonly minute: number;
|
|
41
|
+
readonly second: number;
|
|
42
|
+
get normal(): $mol_time_duration;
|
|
43
|
+
summ(config: $mol_time_duration_config): $mol_time_duration;
|
|
44
|
+
mult(numb: number): $mol_time_duration;
|
|
45
|
+
count(config: $mol_time_duration_config): number;
|
|
46
|
+
valueOf(): number;
|
|
47
|
+
toJSON(): string;
|
|
48
|
+
toString(pattern?: string): string;
|
|
49
|
+
toArray(): readonly [number, number, number, number, number, number];
|
|
50
|
+
[Symbol.toPrimitive](mode: 'default' | 'number' | 'string'): string | number;
|
|
51
|
+
static patterns: {
|
|
52
|
+
'#Y': (duration: $mol_time_duration) => string;
|
|
53
|
+
'#M': (duration: $mol_time_duration) => string;
|
|
54
|
+
'#D': (duration: $mol_time_duration) => string;
|
|
55
|
+
'#h': (duration: $mol_time_duration) => string;
|
|
56
|
+
'#m': (duration: $mol_time_duration) => string;
|
|
57
|
+
'#s': (duration: $mol_time_duration) => string;
|
|
58
|
+
hh: (moment: $mol_time_moment) => string;
|
|
59
|
+
h: (moment: $mol_time_moment) => string;
|
|
60
|
+
':mm': (moment: $mol_time_moment) => string;
|
|
61
|
+
mm: (moment: $mol_time_moment) => string;
|
|
62
|
+
m: (moment: $mol_time_moment) => string;
|
|
63
|
+
':ss': (moment: $mol_time_moment) => string;
|
|
64
|
+
ss: (moment: $mol_time_moment) => string;
|
|
65
|
+
s: (moment: $mol_time_moment) => string;
|
|
66
|
+
'.sss': (moment: $mol_time_moment) => string;
|
|
67
|
+
sss: (moment: $mol_time_moment) => string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare namespace $ {
|
|
73
|
+
function $mol_fail(error: any): never;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare namespace $ {
|
|
77
|
+
function $mol_fail_hidden(error: any): never;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare namespace $ {
|
|
81
|
+
function $mol_dev_format_register(config: {
|
|
82
|
+
header: (val: any, config: any) => any;
|
|
83
|
+
hasBody: (val: any, config: any) => false;
|
|
84
|
+
} | {
|
|
85
|
+
header: (val: any, config: any) => any;
|
|
86
|
+
hasBody: (val: any, config: any) => boolean;
|
|
87
|
+
body: (val: any, config: any) => any;
|
|
88
|
+
}): void;
|
|
89
|
+
const $mol_dev_format_head: unique symbol;
|
|
90
|
+
const $mol_dev_format_body: unique symbol;
|
|
91
|
+
function $mol_dev_format_native(obj: any): any[];
|
|
92
|
+
function $mol_dev_format_auto(obj: any): any[];
|
|
93
|
+
function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
|
|
94
|
+
let $mol_dev_format_span: (style: object, ...content: any[]) => any[];
|
|
95
|
+
let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
|
|
96
|
+
let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
|
|
97
|
+
let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
|
|
98
|
+
let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
|
|
99
|
+
let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
|
|
100
|
+
let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
|
|
101
|
+
let $mol_dev_format_accent: (...args: any[]) => any[];
|
|
102
|
+
let $mol_dev_format_strong: (...args: any[]) => any[];
|
|
103
|
+
let $mol_dev_format_string: (...args: any[]) => any[];
|
|
104
|
+
let $mol_dev_format_shade: (...args: any[]) => any[];
|
|
105
|
+
let $mol_dev_format_indent: (...args: any[]) => any[];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare namespace $ {
|
|
109
|
+
enum $mol_time_moment_weekdays {
|
|
110
|
+
monday = 0,
|
|
111
|
+
tuesday = 1,
|
|
112
|
+
wednesday = 2,
|
|
113
|
+
thursday = 3,
|
|
114
|
+
friday = 4,
|
|
115
|
+
saturday = 5,
|
|
116
|
+
sunday = 6
|
|
117
|
+
}
|
|
118
|
+
type $mol_time_moment_config = number | Date | string | readonly (number | undefined)[] | {
|
|
119
|
+
year?: number;
|
|
120
|
+
month?: number;
|
|
121
|
+
day?: number;
|
|
122
|
+
hour?: number;
|
|
123
|
+
minute?: number;
|
|
124
|
+
second?: number;
|
|
125
|
+
offset?: $mol_time_duration_config;
|
|
126
|
+
};
|
|
127
|
+
class $mol_time_moment extends $mol_time_base {
|
|
128
|
+
constructor(config?: $mol_time_moment_config);
|
|
129
|
+
readonly year: number | undefined;
|
|
130
|
+
readonly month: number | undefined;
|
|
131
|
+
readonly day: number | undefined;
|
|
132
|
+
readonly hour: number | undefined;
|
|
133
|
+
readonly minute: number | undefined;
|
|
134
|
+
readonly second: number | undefined;
|
|
135
|
+
readonly offset: $mol_time_duration | undefined;
|
|
136
|
+
get weekday(): number;
|
|
137
|
+
_native: Date | undefined;
|
|
138
|
+
get native(): Date;
|
|
139
|
+
_normal: $mol_time_moment | undefined;
|
|
140
|
+
get normal(): $mol_time_moment;
|
|
141
|
+
merge(config: $mol_time_moment_config): $mol_time_moment;
|
|
142
|
+
shift(config: $mol_time_duration_config): $mol_time_moment;
|
|
143
|
+
mask(config: $mol_time_moment_config): $mol_time_moment;
|
|
144
|
+
toOffset(config?: $mol_time_duration_config): $mol_time_moment;
|
|
145
|
+
valueOf(): number;
|
|
146
|
+
toJSON(): string;
|
|
147
|
+
toString(pattern?: string): string;
|
|
148
|
+
toArray(): readonly [number | undefined, number | undefined, number | undefined, number | undefined, number | undefined, number | undefined, number | undefined];
|
|
149
|
+
[Symbol.toPrimitive](mode: 'default' | 'number' | 'string'): string | number;
|
|
150
|
+
[$mol_dev_format_head](): any[];
|
|
151
|
+
static patterns: {
|
|
152
|
+
YYYY: (moment: $mol_time_moment) => string;
|
|
153
|
+
AD: (moment: $mol_time_moment) => string;
|
|
154
|
+
YY: (moment: $mol_time_moment) => string;
|
|
155
|
+
Month: (moment: $mol_time_moment) => string;
|
|
156
|
+
'DD Month': (moment: $mol_time_moment) => string;
|
|
157
|
+
'D Month': (moment: $mol_time_moment) => string;
|
|
158
|
+
Mon: (moment: $mol_time_moment) => string;
|
|
159
|
+
'DD Mon': (moment: $mol_time_moment) => string;
|
|
160
|
+
'D Mon': (moment: $mol_time_moment) => string;
|
|
161
|
+
'-MM': (moment: $mol_time_moment) => string;
|
|
162
|
+
MM: (moment: $mol_time_moment) => string;
|
|
163
|
+
M: (moment: $mol_time_moment) => string;
|
|
164
|
+
WeekDay: (moment: $mol_time_moment) => string;
|
|
165
|
+
WD: (moment: $mol_time_moment) => string;
|
|
166
|
+
'-DD': (moment: $mol_time_moment) => string;
|
|
167
|
+
DD: (moment: $mol_time_moment) => string;
|
|
168
|
+
D: (moment: $mol_time_moment) => string;
|
|
169
|
+
Thh: (moment: $mol_time_moment) => string;
|
|
170
|
+
hh: (moment: $mol_time_moment) => string;
|
|
171
|
+
h: (moment: $mol_time_moment) => string;
|
|
172
|
+
':mm': (moment: $mol_time_moment) => string;
|
|
173
|
+
mm: (moment: $mol_time_moment) => string;
|
|
174
|
+
m: (moment: $mol_time_moment) => string;
|
|
175
|
+
':ss': (moment: $mol_time_moment) => string;
|
|
176
|
+
ss: (moment: $mol_time_moment) => string;
|
|
177
|
+
s: (moment: $mol_time_moment) => string;
|
|
178
|
+
'.sss': (moment: $mol_time_moment) => string;
|
|
179
|
+
sss: (moment: $mol_time_moment) => string;
|
|
180
|
+
Z: (moment: $mol_time_moment) => string;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare namespace $ {
|
|
186
|
+
type $mol_time_interval_config = string | {
|
|
187
|
+
start?: $mol_time_moment_config;
|
|
188
|
+
end?: $mol_time_moment_config;
|
|
189
|
+
duration?: $mol_time_duration_config;
|
|
190
|
+
};
|
|
191
|
+
class $mol_time_interval extends $mol_time_base {
|
|
192
|
+
constructor(config: $mol_time_interval_config);
|
|
193
|
+
private _start;
|
|
194
|
+
get start(): $mol_time_moment;
|
|
195
|
+
private _end;
|
|
196
|
+
get end(): $mol_time_moment;
|
|
197
|
+
private _duration;
|
|
198
|
+
get duration(): $mol_time_duration;
|
|
199
|
+
toJSON(): string;
|
|
200
|
+
toString(): string;
|
|
201
|
+
[Symbol.toPrimitive](mode: 'default' | 'number' | 'string'): string;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
1
204
|
|
|
2
205
|
export = $;
|
|
3
206
|
//# sourceMappingURL=web.d.ts.map
|
package/web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
1
|
+
{"version":3,"sources":["../../../../mam.d.ts","../../base/base.d.ts","../../duration/duration.d.ts","../../../fail/fail.d.ts","../../../fail/hidden/hidden.d.ts","../../../dev/format/format.d.ts","../../moment/moment.d.ts","../../interval/interval.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC9CA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":[null,null,null,null,null,null,null,null]}
|