@sumaris-net/ngx-components 1.22.11 → 1.22.12-rc3
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/bundles/sumaris-net.ngx-components.umd.js +44 -10
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/constants.js +2 -1
- package/esm2015/src/app/shared/dates.js +22 -4
- package/esm2015/src/app/shared/material/datetime/material.datetime.js +16 -9
- package/esm2015/src/app/shared/material/datetime/testing/mat-date-time.test.js +9 -3
- package/fesm2015/sumaris-net.ngx-components.js +43 -11
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/constants.d.ts +1 -0
- package/src/app/shared/dates.d.ts +3 -0
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const DATE_ISO_PATTERN = "YYYY-MM-DDTHH:mm:ss.SSSZ";
|
|
2
|
+
export declare const DATE_PATTERN = "YYYY-MM-DD";
|
|
2
3
|
export declare const DEFAULT_PLACEHOLDER_CHAR = "_";
|
|
3
4
|
export declare const PUBKEY_REGEXP: RegExp;
|
|
4
5
|
export declare const SPACE_PLACEHOLDER_CHAR = "\u2000";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Duration, Moment, unitOfTime } from 'moment';
|
|
2
2
|
export declare const DATE_UNIX_TIMESTAMP = "X";
|
|
3
3
|
export declare const DATE_UNIX_MS_TIMESTAMP = "x";
|
|
4
|
+
export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
|
|
4
5
|
export declare class DateUtils {
|
|
5
6
|
static toDateISOString: typeof toDateISOString;
|
|
6
7
|
static fromDateISOString: typeof fromDateISOString;
|
|
@@ -17,6 +18,8 @@ export declare class DateUtils {
|
|
|
17
18
|
* @param keepLocalTime if true, only the timezone (and offset) is updated, keeping the local time same. Consequently, it will now point to a different point in time if the offset has changed.
|
|
18
19
|
*/
|
|
19
20
|
static resetTime(value: Moment | string, timezone?: string, keepLocalTime?: boolean): Moment | undefined;
|
|
21
|
+
static markNoTime(value: Moment): Moment | undefined;
|
|
22
|
+
static isNoTime(value: Moment): boolean;
|
|
20
23
|
/**
|
|
21
24
|
* Test if a date is on the given day of week
|
|
22
25
|
* @param date
|
|
@@ -13,6 +13,7 @@ export declare class DateTimeTestPage implements OnInit {
|
|
|
13
13
|
memoryMobile: boolean;
|
|
14
14
|
memoryTimer: Timer;
|
|
15
15
|
form: FormGroup;
|
|
16
|
+
noTimeProperty: string;
|
|
16
17
|
constructor(platform: Platform, formBuilder: FormBuilder, cd: ChangeDetectorRef);
|
|
17
18
|
ngOnInit(): void;
|
|
18
19
|
loadData(): Promise<void>;
|