@sumaris-net/ngx-components 1.15.4 → 1.15.7
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 +21 -13
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/entity-editor.class.js +5 -2
- package/esm2015/src/app/shared/dates.js +15 -1
- package/esm2015/src/app/shared/material/datetime/material.date.js +1 -1
- package/esm2015/src/app/shared/material/datetime/material.datetime.js +1 -1
- package/esm2015/src/app/shared/platforms.js +3 -11
- package/fesm2015/sumaris-net.ngx-components.js +21 -12
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/dates.d.ts +7 -0
- package/src/app/shared/platforms.d.ts +1 -6
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -17,6 +17,13 @@ export declare class DateUtils {
|
|
|
17
17
|
* @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
18
|
*/
|
|
19
19
|
static resetTime(value: Moment | string, timezone?: string, keepLocalTime?: boolean): Moment | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Test if a date is on the given day of week
|
|
22
|
+
* @param date
|
|
23
|
+
* @param weekday
|
|
24
|
+
* @param timezone
|
|
25
|
+
*/
|
|
26
|
+
static isAtDay(date: string | Moment, weekday: number, timezone?: string): boolean;
|
|
20
27
|
}
|
|
21
28
|
export declare function toDateISOString(value: any): string | undefined;
|
|
22
29
|
export declare function fromDateISOString(value: any): Moment | undefined;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export declare const matchMedia: (win: Window, query: string) => boolean;
|
|
2
2
|
export declare const testUserAgent: (win: Window, expr: RegExp) => boolean;
|
|
3
|
-
export declare const
|
|
4
|
-
/**
|
|
5
|
-
* Detect desktop, by fine cursor. See https://github.com/ionic-team/ionic-framework/issues/19942
|
|
6
|
-
* @param win
|
|
7
|
-
*/
|
|
8
|
-
export declare const isDesktop: (win?: Window) => boolean;
|
|
3
|
+
export declare const isWindows: (win?: Window) => boolean;
|
|
9
4
|
export declare const isTouchUi: (win?: Window) => boolean;
|
|
10
5
|
export declare const isMobile: (win: Window) => boolean;
|
|
11
6
|
export declare const isIOS: (win: Window) => boolean;
|