@progress/kendo-angular-common 11.3.0-develop.7 → 11.3.0-develop.9
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.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
import { detectDesktopBrowser, detectMobileOS } from "@progress/kendo-common";
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*
|
|
9
|
+
* Returns true if the used browser is Safari.
|
|
10
|
+
*/
|
|
11
|
+
export const isSafari = (userAgent) => {
|
|
12
|
+
return detectDesktopBrowser(userAgent).safari ||
|
|
13
|
+
(detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*
|
|
18
|
+
* Returns true if the used browser is Firefox.
|
|
19
|
+
*/
|
|
20
|
+
export const isFirefox = (userAgent) => {
|
|
21
|
+
const desktopBrowser = detectDesktopBrowser(userAgent);
|
|
22
|
+
const mobileOS = detectMobileOS(userAgent);
|
|
23
|
+
return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
|
|
24
|
+
};
|
package/esm2020/utils.mjs
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, Directive, Input, Output, NgModule, Injectable, Component } from '@angular/core';
|
|
7
|
+
import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
7
8
|
import { Draggable } from '@progress/kendo-draggable';
|
|
8
9
|
import { CommonModule } from '@angular/common';
|
|
9
10
|
import { auditTime } from 'rxjs/operators';
|
|
@@ -47,6 +48,26 @@ const guid = () => {
|
|
|
47
48
|
return id;
|
|
48
49
|
};
|
|
49
50
|
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*
|
|
54
|
+
* Returns true if the used browser is Safari.
|
|
55
|
+
*/
|
|
56
|
+
const isSafari = (userAgent) => {
|
|
57
|
+
return detectDesktopBrowser(userAgent).safari ||
|
|
58
|
+
(detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*
|
|
63
|
+
* Returns true if the used browser is Firefox.
|
|
64
|
+
*/
|
|
65
|
+
const isFirefox = (userAgent) => {
|
|
66
|
+
const desktopBrowser = detectDesktopBrowser(userAgent);
|
|
67
|
+
const mobileOS = detectMobileOS(userAgent);
|
|
68
|
+
return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
|
|
69
|
+
};
|
|
70
|
+
|
|
50
71
|
class DraggableDirective {
|
|
51
72
|
constructor(element, ngZone) {
|
|
52
73
|
this.element = element;
|
|
@@ -828,5 +849,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
828
849
|
* Generated bundle index. Do not edit.
|
|
829
850
|
*/
|
|
830
851
|
|
|
831
|
-
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFocusable, isFocusableWithTabKey, isObject, isPresent, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, splitStringToArray };
|
|
852
|
+
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, splitStringToArray };
|
|
832
853
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { EventEmitter, Directive, Input, Output, NgModule, Injectable, Component } from '@angular/core';
|
|
7
|
+
import { detectDesktopBrowser, detectMobileOS } from '@progress/kendo-common';
|
|
7
8
|
import { Draggable } from '@progress/kendo-draggable';
|
|
8
9
|
import { CommonModule } from '@angular/common';
|
|
9
10
|
import { auditTime } from 'rxjs/operators';
|
|
@@ -47,6 +48,26 @@ const guid = () => {
|
|
|
47
48
|
return id;
|
|
48
49
|
};
|
|
49
50
|
|
|
51
|
+
/**
|
|
52
|
+
* @hidden
|
|
53
|
+
*
|
|
54
|
+
* Returns true if the used browser is Safari.
|
|
55
|
+
*/
|
|
56
|
+
const isSafari = (userAgent) => {
|
|
57
|
+
return detectDesktopBrowser(userAgent).safari ||
|
|
58
|
+
(detectMobileOS(userAgent) && detectMobileOS(userAgent).browser === 'mobilesafari');
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @hidden
|
|
62
|
+
*
|
|
63
|
+
* Returns true if the used browser is Firefox.
|
|
64
|
+
*/
|
|
65
|
+
const isFirefox = (userAgent) => {
|
|
66
|
+
const desktopBrowser = detectDesktopBrowser(userAgent);
|
|
67
|
+
const mobileOS = detectMobileOS(userAgent);
|
|
68
|
+
return (desktopBrowser && desktopBrowser.mozilla) || (mobileOS && mobileOS.browser === 'firefox');
|
|
69
|
+
};
|
|
70
|
+
|
|
50
71
|
class DraggableDirective {
|
|
51
72
|
constructor(element, ngZone) {
|
|
52
73
|
this.element = element;
|
|
@@ -824,5 +845,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
824
845
|
* Generated bundle index. Do not edit.
|
|
825
846
|
*/
|
|
826
847
|
|
|
827
|
-
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFocusable, isFocusableWithTabKey, isObject, isPresent, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, splitStringToArray };
|
|
848
|
+
export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, focusableSelector, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFirefox, isFocusable, isFocusableWithTabKey, isObject, isPresent, isSafari, isString, isVisible, matchesClasses, matchesNodeName, parseCSSClassNames, rtlScrollPosition, scrollbarWidth, splitStringToArray };
|
|
828
849
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-common",
|
|
3
|
-
"version": "11.3.0-develop.
|
|
3
|
+
"version": "11.3.0-develop.9",
|
|
4
4
|
"description": "Kendo UI for Angular - Utility Package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@progress/kendo-draggable": "^3.0.2",
|
|
24
24
|
"tslib": "^2.3.1",
|
|
25
|
-
"@progress/kendo-angular-schematics": "11.3.0-develop.
|
|
25
|
+
"@progress/kendo-angular-schematics": "11.3.0-develop.9"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
/**
|
|
6
|
+
* @hidden
|
|
7
|
+
*
|
|
8
|
+
* Returns true if the used browser is Safari.
|
|
9
|
+
*/
|
|
10
|
+
export declare const isSafari: (userAgent: any) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*
|
|
14
|
+
* Returns true if the used browser is Firefox.
|
|
15
|
+
*/
|
|
16
|
+
export declare const isFirefox: (userAgent: any) => boolean;
|
package/utils.d.ts
CHANGED