@bluemarble/bm-components 0.0.54 → 0.0.55
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/dist/esm/index.js +24 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/utils/DateFormat.d.ts +5 -133
- package/dist/index.d.ts +6 -134
- package/package.json +1 -1
|
@@ -2,135 +2,8 @@ import moment from 'moment';
|
|
|
2
2
|
import 'moment/locale/pt-br';
|
|
3
3
|
export declare function DateFormat(date?: any): {
|
|
4
4
|
from: {
|
|
5
|
-
db: {
|
|
6
|
-
toDateOrUndefined
|
|
7
|
-
format(format?: string): string;
|
|
8
|
-
startOf(unitOfTime: moment.unitOfTime.StartOf): moment.Moment;
|
|
9
|
-
endOf(unitOfTime: moment.unitOfTime.StartOf): moment.Moment;
|
|
10
|
-
add(amount?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor): moment.Moment;
|
|
11
|
-
add(unit: moment.unitOfTime.DurationConstructor, amount: string | number): moment.Moment;
|
|
12
|
-
subtract(amount?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor): moment.Moment;
|
|
13
|
-
subtract(unit: moment.unitOfTime.DurationConstructor, amount: string | number): moment.Moment;
|
|
14
|
-
calendar(): string;
|
|
15
|
-
calendar(formats: moment.CalendarSpec): string;
|
|
16
|
-
calendar(time?: moment.MomentInput, formats?: moment.CalendarSpec): string;
|
|
17
|
-
clone(): moment.Moment;
|
|
18
|
-
valueOf(): number;
|
|
19
|
-
local(keepLocalTime?: boolean): moment.Moment;
|
|
20
|
-
isLocal(): boolean;
|
|
21
|
-
utc(keepLocalTime?: boolean): moment.Moment;
|
|
22
|
-
isUTC(): boolean;
|
|
23
|
-
isUtc(): boolean;
|
|
24
|
-
parseZone(): moment.Moment;
|
|
25
|
-
isValid(): boolean;
|
|
26
|
-
invalidAt(): number;
|
|
27
|
-
hasAlignedHourOffset(other?: moment.MomentInput): boolean;
|
|
28
|
-
creationData(): moment.MomentCreationData;
|
|
29
|
-
parsingFlags(): moment.MomentParsingFlags;
|
|
30
|
-
year(y: number): moment.Moment;
|
|
31
|
-
year(): number;
|
|
32
|
-
years(y: number): moment.Moment;
|
|
33
|
-
years(): number;
|
|
34
|
-
quarter(): number;
|
|
35
|
-
quarter(q: number): moment.Moment;
|
|
36
|
-
quarters(): number;
|
|
37
|
-
quarters(q: number): moment.Moment;
|
|
38
|
-
month(M: string | number): moment.Moment;
|
|
39
|
-
month(): number;
|
|
40
|
-
months(M: string | number): moment.Moment;
|
|
41
|
-
months(): number;
|
|
42
|
-
day(d: string | number): moment.Moment;
|
|
43
|
-
day(): number;
|
|
44
|
-
days(d: string | number): moment.Moment;
|
|
45
|
-
days(): number;
|
|
46
|
-
date(d: number): moment.Moment;
|
|
47
|
-
date(): number;
|
|
48
|
-
dates(d: number): moment.Moment;
|
|
49
|
-
dates(): number;
|
|
50
|
-
hour(h: number): moment.Moment;
|
|
51
|
-
hour(): number;
|
|
52
|
-
hours(h: number): moment.Moment;
|
|
53
|
-
hours(): number;
|
|
54
|
-
minute(m: number): moment.Moment;
|
|
55
|
-
minute(): number;
|
|
56
|
-
minutes(m: number): moment.Moment;
|
|
57
|
-
minutes(): number;
|
|
58
|
-
second(s: number): moment.Moment;
|
|
59
|
-
second(): number;
|
|
60
|
-
seconds(s: number): moment.Moment;
|
|
61
|
-
seconds(): number;
|
|
62
|
-
millisecond(ms: number): moment.Moment;
|
|
63
|
-
millisecond(): number;
|
|
64
|
-
milliseconds(ms: number): moment.Moment;
|
|
65
|
-
milliseconds(): number;
|
|
66
|
-
weekday(): number;
|
|
67
|
-
weekday(d: number): moment.Moment;
|
|
68
|
-
isoWeekday(): number;
|
|
69
|
-
isoWeekday(d: string | number): moment.Moment;
|
|
70
|
-
weekYear(): number;
|
|
71
|
-
weekYear(d: number): moment.Moment;
|
|
72
|
-
isoWeekYear(): number;
|
|
73
|
-
isoWeekYear(d: number): moment.Moment;
|
|
74
|
-
week(): number;
|
|
75
|
-
week(d: number): moment.Moment;
|
|
76
|
-
weeks(): number;
|
|
77
|
-
weeks(d: number): moment.Moment;
|
|
78
|
-
isoWeek(): number;
|
|
79
|
-
isoWeek(d: number): moment.Moment;
|
|
80
|
-
isoWeeks(): number;
|
|
81
|
-
isoWeeks(d: number): moment.Moment;
|
|
82
|
-
weeksInYear(): number;
|
|
83
|
-
isoWeeksInYear(): number;
|
|
84
|
-
isoWeeksInISOWeekYear(): number;
|
|
85
|
-
dayOfYear(): number;
|
|
86
|
-
dayOfYear(d: number): moment.Moment;
|
|
87
|
-
from(inp: moment.MomentInput, suffix?: boolean): string;
|
|
88
|
-
to(inp: moment.MomentInput, suffix?: boolean): string;
|
|
89
|
-
fromNow(withoutSuffix?: boolean): string;
|
|
90
|
-
toNow(withoutPrefix?: boolean): string;
|
|
91
|
-
diff(b: moment.MomentInput, unitOfTime?: moment.unitOfTime.Diff, precise?: boolean): number;
|
|
92
|
-
toArray(): [number, number, number, number, number, number, number];
|
|
93
|
-
toDate(): Date;
|
|
94
|
-
toISOString(keepOffset?: boolean): string;
|
|
95
|
-
inspect(): string;
|
|
96
|
-
toJSON(): string;
|
|
97
|
-
unix(): number;
|
|
98
|
-
isLeapYear(): boolean;
|
|
99
|
-
zone(): number;
|
|
100
|
-
zone(b: string | number): moment.Moment;
|
|
101
|
-
utcOffset(): number;
|
|
102
|
-
utcOffset(b: string | number, keepLocalTime?: boolean): moment.Moment;
|
|
103
|
-
isUtcOffset(): boolean;
|
|
104
|
-
daysInMonth(): number;
|
|
105
|
-
isDST(): boolean;
|
|
106
|
-
zoneAbbr(): string;
|
|
107
|
-
zoneName(): string;
|
|
108
|
-
isBefore(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
109
|
-
isAfter(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
110
|
-
isSame(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
111
|
-
isSameOrAfter(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
112
|
-
isSameOrBefore(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
113
|
-
isBetween(a: moment.MomentInput, b: moment.MomentInput, granularity?: moment.unitOfTime.StartOf, inclusivity?: "()" | "[)" | "(]" | "[]"): boolean;
|
|
114
|
-
lang(language: moment.LocaleSpecifier): moment.Moment;
|
|
115
|
-
lang(): moment.Locale;
|
|
116
|
-
locale(): string;
|
|
117
|
-
locale(locale: moment.LocaleSpecifier): moment.Moment;
|
|
118
|
-
localeData(): moment.Locale;
|
|
119
|
-
isDSTShifted(): boolean;
|
|
120
|
-
max(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
|
|
121
|
-
max(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
|
|
122
|
-
min(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
|
|
123
|
-
min(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
|
|
124
|
-
get(unit: moment.unitOfTime.All): number;
|
|
125
|
-
set(unit: moment.unitOfTime.All, value: number): moment.Moment;
|
|
126
|
-
set(objectLiteral: moment.MomentSetObject): moment.Moment;
|
|
127
|
-
toObject(): moment.MomentObjectOutput;
|
|
128
|
-
constructor: Function;
|
|
129
|
-
toString(): string;
|
|
130
|
-
toLocaleString(): string;
|
|
131
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
132
|
-
isPrototypeOf(v: Object): boolean;
|
|
133
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
5
|
+
db: moment.Moment & {
|
|
6
|
+
toDateOrUndefined(): Date | undefined;
|
|
134
7
|
};
|
|
135
8
|
client: {
|
|
136
9
|
toDateOrUndefined: () => Date;
|
|
@@ -145,7 +18,7 @@ export declare function DateFormat(date?: any): {
|
|
|
145
18
|
calendar(formats: moment.CalendarSpec): string;
|
|
146
19
|
calendar(time?: moment.MomentInput, formats?: moment.CalendarSpec): string;
|
|
147
20
|
clone(): moment.Moment;
|
|
148
|
-
valueOf()
|
|
21
|
+
valueOf: (() => number) & (() => Object);
|
|
149
22
|
local(keepLocalTime?: boolean): moment.Moment;
|
|
150
23
|
isLocal(): boolean;
|
|
151
24
|
utc(keepLocalTime?: boolean): moment.Moment;
|
|
@@ -263,7 +136,6 @@ export declare function DateFormat(date?: any): {
|
|
|
263
136
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
264
137
|
};
|
|
265
138
|
};
|
|
139
|
+
now: () => moment.Moment;
|
|
140
|
+
utc: (newUTC: number) => void;
|
|
266
141
|
};
|
|
267
|
-
export declare namespace DateFormat {
|
|
268
|
-
var now: () => moment.Moment;
|
|
269
|
-
}
|
package/dist/index.d.ts
CHANGED
|
@@ -300,135 +300,8 @@ declare const Dialog: ({ open, title, loading, body, options, ...rest }: DialogC
|
|
|
300
300
|
|
|
301
301
|
declare function DateFormat(date?: any): {
|
|
302
302
|
from: {
|
|
303
|
-
db: {
|
|
304
|
-
toDateOrUndefined
|
|
305
|
-
format(format?: string): string;
|
|
306
|
-
startOf(unitOfTime: moment.unitOfTime.StartOf): moment.Moment;
|
|
307
|
-
endOf(unitOfTime: moment.unitOfTime.StartOf): moment.Moment;
|
|
308
|
-
add(amount?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor): moment.Moment;
|
|
309
|
-
add(unit: moment.unitOfTime.DurationConstructor, amount: string | number): moment.Moment;
|
|
310
|
-
subtract(amount?: moment.DurationInputArg1, unit?: moment.unitOfTime.DurationConstructor): moment.Moment;
|
|
311
|
-
subtract(unit: moment.unitOfTime.DurationConstructor, amount: string | number): moment.Moment;
|
|
312
|
-
calendar(): string;
|
|
313
|
-
calendar(formats: moment.CalendarSpec): string;
|
|
314
|
-
calendar(time?: moment.MomentInput, formats?: moment.CalendarSpec): string;
|
|
315
|
-
clone(): moment.Moment;
|
|
316
|
-
valueOf(): number;
|
|
317
|
-
local(keepLocalTime?: boolean): moment.Moment;
|
|
318
|
-
isLocal(): boolean;
|
|
319
|
-
utc(keepLocalTime?: boolean): moment.Moment;
|
|
320
|
-
isUTC(): boolean;
|
|
321
|
-
isUtc(): boolean;
|
|
322
|
-
parseZone(): moment.Moment;
|
|
323
|
-
isValid(): boolean;
|
|
324
|
-
invalidAt(): number;
|
|
325
|
-
hasAlignedHourOffset(other?: moment.MomentInput): boolean;
|
|
326
|
-
creationData(): moment.MomentCreationData;
|
|
327
|
-
parsingFlags(): moment.MomentParsingFlags;
|
|
328
|
-
year(y: number): moment.Moment;
|
|
329
|
-
year(): number;
|
|
330
|
-
years(y: number): moment.Moment;
|
|
331
|
-
years(): number;
|
|
332
|
-
quarter(): number;
|
|
333
|
-
quarter(q: number): moment.Moment;
|
|
334
|
-
quarters(): number;
|
|
335
|
-
quarters(q: number): moment.Moment;
|
|
336
|
-
month(M: string | number): moment.Moment;
|
|
337
|
-
month(): number;
|
|
338
|
-
months(M: string | number): moment.Moment;
|
|
339
|
-
months(): number;
|
|
340
|
-
day(d: string | number): moment.Moment;
|
|
341
|
-
day(): number;
|
|
342
|
-
days(d: string | number): moment.Moment;
|
|
343
|
-
days(): number;
|
|
344
|
-
date(d: number): moment.Moment;
|
|
345
|
-
date(): number;
|
|
346
|
-
dates(d: number): moment.Moment;
|
|
347
|
-
dates(): number;
|
|
348
|
-
hour(h: number): moment.Moment;
|
|
349
|
-
hour(): number;
|
|
350
|
-
hours(h: number): moment.Moment;
|
|
351
|
-
hours(): number;
|
|
352
|
-
minute(m: number): moment.Moment;
|
|
353
|
-
minute(): number;
|
|
354
|
-
minutes(m: number): moment.Moment;
|
|
355
|
-
minutes(): number;
|
|
356
|
-
second(s: number): moment.Moment;
|
|
357
|
-
second(): number;
|
|
358
|
-
seconds(s: number): moment.Moment;
|
|
359
|
-
seconds(): number;
|
|
360
|
-
millisecond(ms: number): moment.Moment;
|
|
361
|
-
millisecond(): number;
|
|
362
|
-
milliseconds(ms: number): moment.Moment;
|
|
363
|
-
milliseconds(): number;
|
|
364
|
-
weekday(): number;
|
|
365
|
-
weekday(d: number): moment.Moment;
|
|
366
|
-
isoWeekday(): number;
|
|
367
|
-
isoWeekday(d: string | number): moment.Moment;
|
|
368
|
-
weekYear(): number;
|
|
369
|
-
weekYear(d: number): moment.Moment;
|
|
370
|
-
isoWeekYear(): number;
|
|
371
|
-
isoWeekYear(d: number): moment.Moment;
|
|
372
|
-
week(): number;
|
|
373
|
-
week(d: number): moment.Moment;
|
|
374
|
-
weeks(): number;
|
|
375
|
-
weeks(d: number): moment.Moment;
|
|
376
|
-
isoWeek(): number;
|
|
377
|
-
isoWeek(d: number): moment.Moment;
|
|
378
|
-
isoWeeks(): number;
|
|
379
|
-
isoWeeks(d: number): moment.Moment;
|
|
380
|
-
weeksInYear(): number;
|
|
381
|
-
isoWeeksInYear(): number;
|
|
382
|
-
isoWeeksInISOWeekYear(): number;
|
|
383
|
-
dayOfYear(): number;
|
|
384
|
-
dayOfYear(d: number): moment.Moment;
|
|
385
|
-
from(inp: moment.MomentInput, suffix?: boolean): string;
|
|
386
|
-
to(inp: moment.MomentInput, suffix?: boolean): string;
|
|
387
|
-
fromNow(withoutSuffix?: boolean): string;
|
|
388
|
-
toNow(withoutPrefix?: boolean): string;
|
|
389
|
-
diff(b: moment.MomentInput, unitOfTime?: moment.unitOfTime.Diff, precise?: boolean): number;
|
|
390
|
-
toArray(): [number, number, number, number, number, number, number];
|
|
391
|
-
toDate(): Date;
|
|
392
|
-
toISOString(keepOffset?: boolean): string;
|
|
393
|
-
inspect(): string;
|
|
394
|
-
toJSON(): string;
|
|
395
|
-
unix(): number;
|
|
396
|
-
isLeapYear(): boolean;
|
|
397
|
-
zone(): number;
|
|
398
|
-
zone(b: string | number): moment.Moment;
|
|
399
|
-
utcOffset(): number;
|
|
400
|
-
utcOffset(b: string | number, keepLocalTime?: boolean): moment.Moment;
|
|
401
|
-
isUtcOffset(): boolean;
|
|
402
|
-
daysInMonth(): number;
|
|
403
|
-
isDST(): boolean;
|
|
404
|
-
zoneAbbr(): string;
|
|
405
|
-
zoneName(): string;
|
|
406
|
-
isBefore(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
407
|
-
isAfter(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
408
|
-
isSame(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
409
|
-
isSameOrAfter(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
410
|
-
isSameOrBefore(inp?: moment.MomentInput, granularity?: moment.unitOfTime.StartOf): boolean;
|
|
411
|
-
isBetween(a: moment.MomentInput, b: moment.MomentInput, granularity?: moment.unitOfTime.StartOf, inclusivity?: "()" | "[)" | "(]" | "[]"): boolean;
|
|
412
|
-
lang(language: moment.LocaleSpecifier): moment.Moment;
|
|
413
|
-
lang(): moment.Locale;
|
|
414
|
-
locale(): string;
|
|
415
|
-
locale(locale: moment.LocaleSpecifier): moment.Moment;
|
|
416
|
-
localeData(): moment.Locale;
|
|
417
|
-
isDSTShifted(): boolean;
|
|
418
|
-
max(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
|
|
419
|
-
max(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
|
|
420
|
-
min(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, strict?: boolean): moment.Moment;
|
|
421
|
-
min(inp?: moment.MomentInput, format?: moment.MomentFormatSpecification, language?: string, strict?: boolean): moment.Moment;
|
|
422
|
-
get(unit: moment.unitOfTime.All): number;
|
|
423
|
-
set(unit: moment.unitOfTime.All, value: number): moment.Moment;
|
|
424
|
-
set(objectLiteral: moment.MomentSetObject): moment.Moment;
|
|
425
|
-
toObject(): moment.MomentObjectOutput;
|
|
426
|
-
constructor: Function;
|
|
427
|
-
toString(): string;
|
|
428
|
-
toLocaleString(): string;
|
|
429
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
430
|
-
isPrototypeOf(v: Object): boolean;
|
|
431
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
303
|
+
db: moment.Moment & {
|
|
304
|
+
toDateOrUndefined(): Date | undefined;
|
|
432
305
|
};
|
|
433
306
|
client: {
|
|
434
307
|
toDateOrUndefined: () => Date;
|
|
@@ -443,7 +316,7 @@ declare function DateFormat(date?: any): {
|
|
|
443
316
|
calendar(formats: moment.CalendarSpec): string;
|
|
444
317
|
calendar(time?: moment.MomentInput, formats?: moment.CalendarSpec): string;
|
|
445
318
|
clone(): moment.Moment;
|
|
446
|
-
valueOf()
|
|
319
|
+
valueOf: (() => number) & (() => Object);
|
|
447
320
|
local(keepLocalTime?: boolean): moment.Moment;
|
|
448
321
|
isLocal(): boolean;
|
|
449
322
|
utc(keepLocalTime?: boolean): moment.Moment;
|
|
@@ -561,10 +434,9 @@ declare function DateFormat(date?: any): {
|
|
|
561
434
|
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
562
435
|
};
|
|
563
436
|
};
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}
|
|
437
|
+
now: () => moment.Moment;
|
|
438
|
+
utc: (newUTC: number) => void;
|
|
439
|
+
};
|
|
568
440
|
|
|
569
441
|
declare type MethodsProps = {
|
|
570
442
|
GET?: NextApiHandler;
|