@frontile/overlays 0.17.0-alpha.15 → 0.17.0-alpha.17
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/declarations/-private/dom.d.ts +3 -6
- package/declarations/-private/dom.d.ts.map +1 -1
- package/declarations/components/backdrop.d.ts +12 -12
- package/declarations/components/backdrop.d.ts.map +1 -1
- package/declarations/components/drawer.d.ts +12 -12
- package/declarations/components/drawer.d.ts.map +1 -1
- package/declarations/components/modal.d.ts +12 -12
- package/declarations/components/modal.d.ts.map +1 -1
- package/declarations/components/overlay.d.ts +108 -120
- package/declarations/components/overlay.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +14 -14
- package/declarations/components/popover.d.ts.map +1 -1
- package/declarations/components/portal-target.d.ts +16 -0
- package/declarations/components/portal-target.d.ts.map +1 -0
- package/declarations/components/portal.d.ts +39 -0
- package/declarations/components/portal.d.ts.map +1 -0
- package/declarations/dom-9I59qt_u.d.ts +13 -0
- package/declarations/dom-BI_uQkXb.d.ts +8 -0
- package/declarations/dom-B_ENXiHH.d.ts +8 -0
- package/declarations/dom-CMyQS3Oz.d.ts +13 -0
- package/declarations/dom-Cp5IIlL4.d.ts +4 -0
- package/declarations/dom-DHyFkbDr.d.ts +4 -0
- package/declarations/dom-DIi2VVux.d.ts +4 -0
- package/declarations/dom-WPXDWK_u.d.ts +8 -0
- package/declarations/dom-dbUCTwuj.d.ts +8 -0
- package/declarations/dom-jOMs0s9x.d.ts +8 -0
- package/declarations/index.d.ts +2 -0
- package/declarations/index.d.ts.map +1 -1
- package/declarations/portal-4iQN-PkV.d.ts +4 -0
- package/declarations/portal-BGTNFSAg.d.ts +4 -0
- package/declarations/portal-BLQJmMxe.d.ts +4 -0
- package/declarations/portal-BOcsYXDc.d.ts +4 -0
- package/declarations/portal-BhezJ2Cp.d.ts +4 -0
- package/declarations/portal-Brdv-ICH.d.ts +4 -0
- package/declarations/portal-BtW9vxQV.d.ts +4 -0
- package/declarations/portal-C5lzQxj8.d.ts +4 -0
- package/declarations/portal-C9gJ9LOQ.d.ts +4 -0
- package/declarations/portal-CCKyKK6K.d.ts +4 -0
- package/declarations/portal-CItNli4y.d.ts +4 -0
- package/declarations/portal-CN7LCbdv.d.ts +4 -0
- package/declarations/portal-CVDAaezz.d.ts +4 -0
- package/declarations/portal-CX2DUipc.d.ts +4 -0
- package/declarations/portal-CY8f2DI_.d.ts +4 -0
- package/declarations/portal-CZ8I-Xuk.d.ts +4 -0
- package/declarations/portal-C_BmhNjY.d.ts +4 -0
- package/declarations/portal-CbexLfjV.d.ts +4 -0
- package/declarations/portal-CnxtZIlV.d.ts +4 -0
- package/declarations/portal-Crm_QZX3.d.ts +4 -0
- package/declarations/portal-CvrlqlGd.d.ts +4 -0
- package/declarations/portal-D1N7TxUb.d.ts +5 -0
- package/declarations/portal-D1N7TxUb.d.ts.map +1 -0
- package/declarations/portal-DPqofNrC.d.ts +4 -0
- package/declarations/portal-DZ1VyHpI.d.ts +4 -0
- package/declarations/portal-Dds2AD_N.d.ts +4 -0
- package/declarations/portal-DfNFs8P9.d.ts +4 -0
- package/declarations/portal-DhTGBiFT.d.ts +4 -0
- package/declarations/portal-QFg0SnAI.d.ts +4 -0
- package/declarations/portal-YA8MAtdD.d.ts +4 -0
- package/declarations/portal-mai9UGcr.d.ts +4 -0
- package/declarations/portal-n11kdm0X.d.ts +4 -0
- package/declarations/portal-qckTp4uC.d.ts +4 -0
- package/dist/_app_/components/portal-target.js +1 -0
- package/dist/_app_/components/portal.js +1 -0
- package/dist/components/backdrop.js +4 -4
- package/dist/components/backdrop.js.map +1 -1
- package/dist/components/drawer.js +3 -3
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/modal.js +3 -3
- package/dist/components/modal.js.map +1 -1
- package/dist/components/overlay.js +17 -85
- package/dist/components/overlay.js.map +1 -1
- package/dist/components/popover.js +7 -7
- package/dist/components/popover.js.map +1 -1
- package/dist/components/portal-target.js +10 -0
- package/dist/components/portal-target.js.map +1 -0
- package/dist/components/portal.js +10 -0
- package/dist/components/portal.js.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/portal-D1N7TxUb.js +167 -0
- package/dist/portal-D1N7TxUb.js.map +1 -0
- package/package.json +13 -10
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export function getDOM(context: any): any;
|
|
6
|
-
export function getElementById(doc: any, id: any): any;
|
|
1
|
+
export declare function getDOM(context: object): Document | null;
|
|
2
|
+
export declare function getElementById(doc: Document | Element, id: string): null | Element;
|
|
3
|
+
export declare function getElementByAttribute(doc: Document | Element, attribute: string, value?: string | undefined): null | Element;
|
|
7
4
|
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/-private/dom.
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/-private/dom.ts"],"names":[],"mappings":"AAEA,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWvD;AAkBD,wBAAgB,cAAc,CAC5B,GAAG,EAAE,QAAQ,GAAG,OAAO,EACvB,EAAE,EAAE,MAAM,GACT,IAAI,GAAG,OAAO,CAEhB;AAED,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,QAAQ,GAAG,OAAO,EACvB,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,MAAM,GAAG,SAAqB,GACpC,IAAI,GAAG,OAAO,CA2BhB"}
|
|
@@ -21,19 +21,19 @@ interface BackdropSignature {
|
|
|
21
21
|
declare class Backdrop extends Component<BackdropSignature> {
|
|
22
22
|
get classNames(): string;
|
|
23
23
|
get transition(): {
|
|
24
|
-
didTransitionIn?: (
|
|
25
|
-
didTransitionOut?: (
|
|
26
|
-
enterClass?: string
|
|
27
|
-
enterActiveClass?: string
|
|
28
|
-
enterToClass?: string
|
|
29
|
-
isEnabled?: boolean
|
|
30
|
-
leaveClass?: string
|
|
31
|
-
leaveActiveClass?: string
|
|
32
|
-
leaveToClass?: string
|
|
33
|
-
name?: string
|
|
34
|
-
parentSelector?: string
|
|
24
|
+
didTransitionIn?: () => void;
|
|
25
|
+
didTransitionOut?: () => void;
|
|
26
|
+
enterClass?: string;
|
|
27
|
+
enterActiveClass?: string;
|
|
28
|
+
enterToClass?: string;
|
|
29
|
+
isEnabled?: boolean;
|
|
30
|
+
leaveClass?: string;
|
|
31
|
+
leaveActiveClass?: string;
|
|
32
|
+
leaveToClass?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
parentSelector?: string;
|
|
35
35
|
};
|
|
36
|
-
get
|
|
36
|
+
get isVisible(): boolean;
|
|
37
37
|
}
|
|
38
38
|
export { Backdrop, type BackdropSignature };
|
|
39
39
|
export default Backdrop;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../src/components/backdrop.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAG7F,UAAU,iBAAiB;IACzB,IAAI,EAAE;QACJ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;QACjD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB,UAAU,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;KACtD,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,cAAM,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACjD,IAAI,UAAU,WAOb;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;IAED,IAAI,
|
|
1
|
+
{"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../src/components/backdrop.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAE3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAG7F,UAAU,iBAAiB;IACzB,IAAI,EAAE;QACJ;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;QACjD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;WAEG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB,UAAU,CAAC,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;KACtD,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,cAAM,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACjD,IAAI,UAAU,WAOb;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;IAED,IAAI,SAAS,YAEZ;CAeF;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,iBAAiB,EAAE,CAAC;AAC5C,eAAe,QAAQ,CAAC"}
|
|
@@ -5,7 +5,7 @@ import DrawerFooter from './drawer/footer';
|
|
|
5
5
|
import DrawerHeader from './drawer/header';
|
|
6
6
|
import { CloseButton } from '@frontile/buttons';
|
|
7
7
|
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface DrawerArgs extends Pick<OverlaySignature['Args'], 'isOpen' | 'onOpen' | 'onClose' | 'didClose' | 'renderInPlace' | '
|
|
8
|
+
export interface DrawerArgs extends Pick<OverlaySignature['Args'], 'isOpen' | 'onOpen' | 'onClose' | 'didClose' | 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'disableFocusTrap' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition'> {
|
|
9
9
|
/**
|
|
10
10
|
* The transition to be used in the Drawer.
|
|
11
11
|
*
|
|
@@ -72,17 +72,17 @@ export default class Drawer extends Component<DrawerSignature> {
|
|
|
72
72
|
footer: string;
|
|
73
73
|
};
|
|
74
74
|
get transition(): {
|
|
75
|
-
didTransitionIn?: (
|
|
76
|
-
didTransitionOut?: (
|
|
77
|
-
enterClass?: string
|
|
78
|
-
enterActiveClass?: string
|
|
79
|
-
enterToClass?: string
|
|
80
|
-
isEnabled?: boolean
|
|
81
|
-
leaveClass?: string
|
|
82
|
-
leaveActiveClass?: string
|
|
83
|
-
leaveToClass?: string
|
|
84
|
-
name?: string
|
|
85
|
-
parentSelector?: string
|
|
75
|
+
didTransitionIn?: () => void;
|
|
76
|
+
didTransitionOut?: () => void;
|
|
77
|
+
enterClass?: string;
|
|
78
|
+
enterActiveClass?: string;
|
|
79
|
+
enterToClass?: string;
|
|
80
|
+
isEnabled?: boolean;
|
|
81
|
+
leaveClass?: string;
|
|
82
|
+
leaveActiveClass?: string;
|
|
83
|
+
leaveToClass?: string;
|
|
84
|
+
name?: string;
|
|
85
|
+
parentSelector?: string;
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,YAAY,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EA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AAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CAClD;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,SAAS,CAAC,GACvD,aAAa,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;gBAC7C,MAAM,EAAE,aAAa,CAAC,OAAO,YAAY,EAAE,cAAc,CAAC,GACxD,aAAa,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC;gBAC9C,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC;gBAChD,MAAM,EAAE,aAAa,CAAC,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC;gBACpD,QAAQ,EAAE,MAAM,CAAC;aAClB;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC5D,QAAQ,SAA6B;IAErC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,eAAe,IAAI,OAAO,CAI7B;IAED,IAAI,SAAS,wCAEZ;IAED,IAAI,OAAO;;;;;;MAeV;IACD,IAAI,UAAU;;;;;;;;;;;;MAUb;CAoCF"}
|
|
@@ -5,7 +5,7 @@ import ModalBody from './modal/body';
|
|
|
5
5
|
import ModalHeader from './modal/header';
|
|
6
6
|
import { CloseButton } from '@frontile/buttons';
|
|
7
7
|
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface ModalArgs extends Pick<OverlaySignature['Args'], 'isOpen' | 'onOpen' | 'onClose' | 'didClose' | 'renderInPlace' | '
|
|
8
|
+
export interface ModalArgs extends Pick<OverlaySignature['Args'], 'isOpen' | 'onOpen' | 'onClose' | 'didClose' | 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'disableFocusTrap' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition'> {
|
|
9
9
|
/**
|
|
10
10
|
* The transition to be used in the Modal.
|
|
11
11
|
*
|
|
@@ -71,17 +71,17 @@ export default class Modal extends Component<ModalSignature> {
|
|
|
71
71
|
footer: string;
|
|
72
72
|
};
|
|
73
73
|
get transition(): {
|
|
74
|
-
didTransitionIn?: (
|
|
75
|
-
didTransitionOut?: (
|
|
76
|
-
enterClass?: string
|
|
77
|
-
enterActiveClass?: string
|
|
78
|
-
enterToClass?: string
|
|
79
|
-
isEnabled?: boolean
|
|
80
|
-
leaveClass?: string
|
|
81
|
-
leaveActiveClass?: string
|
|
82
|
-
leaveToClass?: string
|
|
83
|
-
name?: string
|
|
84
|
-
parentSelector?: string
|
|
74
|
+
didTransitionIn?: () => void;
|
|
75
|
+
didTransitionOut?: () => void;
|
|
76
|
+
enterClass?: string;
|
|
77
|
+
enterActiveClass?: string;
|
|
78
|
+
enterToClass?: string;
|
|
79
|
+
isEnabled?: boolean;
|
|
80
|
+
leaveClass?: string;
|
|
81
|
+
leaveActiveClass?: string;
|
|
82
|
+
leaveToClass?: string;
|
|
83
|
+
name?: string;
|
|
84
|
+
parentSelector?: string;
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/components/modal.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAA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AC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;CAClD;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;gBACpE,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC;gBACpE,IAAI,EAAE,aAAa,CAAC,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;gBAC/C,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;gBACnD,QAAQ,EAAE,MAAM,CAAC;aAClB;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC1D,QAAQ,SAA6B;IAErC,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,eAAe,IAAI,OAAO,CAI7B;IAED,IAAI,IAAI,8CAEP;IAED,IAAI,OAAO;;;;;;MAeV;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;CAoCF"}
|
|
@@ -1,103 +1,92 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
2
|
import { type BackdropSignature } from './backdrop';
|
|
3
|
+
import { type PortalSignature } from './portal';
|
|
3
4
|
import type { ModifierLike } from '@glint/template';
|
|
4
5
|
import type { CssTransitionSignature } from 'ember-css-transitions/modifiers/css-transition';
|
|
6
|
+
interface Args extends Pick<PortalSignature['Args'], 'renderInPlace' | 'target'> {
|
|
7
|
+
/**
|
|
8
|
+
* Duration of the animation
|
|
9
|
+
*
|
|
10
|
+
* @defaultValue 200
|
|
11
|
+
*/
|
|
12
|
+
transitionDuration?: number;
|
|
13
|
+
backdrop?: BackdropSignature['Args']['type'];
|
|
14
|
+
backdropTransition?: BackdropSignature['Args']['transition'];
|
|
15
|
+
/**
|
|
16
|
+
* Disable css transitions
|
|
17
|
+
*
|
|
18
|
+
* @defaultValue false
|
|
19
|
+
*/
|
|
20
|
+
disableTransitions?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the focus trap is disabled or not
|
|
23
|
+
*
|
|
24
|
+
* @defaultValue false
|
|
25
|
+
*/
|
|
26
|
+
disableFocusTrap?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Focus trap options
|
|
29
|
+
*
|
|
30
|
+
* @defaultValue { clickOutsideDeactivates: true, allowOutsideClick: true }
|
|
31
|
+
*/
|
|
32
|
+
focusTrapOptions?: unknown;
|
|
33
|
+
/**
|
|
34
|
+
* Whether it is open or not
|
|
35
|
+
*/
|
|
36
|
+
isOpen: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* A function that will be called when closed
|
|
39
|
+
*/
|
|
40
|
+
onClose?: () => void;
|
|
41
|
+
/**
|
|
42
|
+
* A function that will be called when closing is finished executing, this
|
|
43
|
+
* includes waiting for animations/transitions to finish.
|
|
44
|
+
*/
|
|
45
|
+
didClose?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* A function that will be called when opened
|
|
48
|
+
*/
|
|
49
|
+
onOpen?: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Whether to close when the area outside (the backdrop) is clicked
|
|
52
|
+
*
|
|
53
|
+
* @defaultValue true
|
|
54
|
+
*/
|
|
55
|
+
closeOnOutsideClick?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to close when the overlay element is clicked, used for modal and drawer components.
|
|
58
|
+
*
|
|
59
|
+
* @defaultValue false
|
|
60
|
+
*/
|
|
61
|
+
closeOnOverlayElementClick?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Whether to close when the escape key is pressed
|
|
64
|
+
*
|
|
65
|
+
* @defaultValue true
|
|
66
|
+
*/
|
|
67
|
+
closeOnEscapeKey?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Transition options
|
|
70
|
+
*
|
|
71
|
+
* @defaultValue {name:'overlay-transition--fade'}
|
|
72
|
+
*/
|
|
73
|
+
transition?: CssTransitionSignature['Args']['Named'];
|
|
74
|
+
disableFlexContent?: boolean;
|
|
75
|
+
customContentModifier?: ModifierLike<{
|
|
76
|
+
Element: HTMLElement;
|
|
77
|
+
}>;
|
|
78
|
+
class?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @defaultValue false
|
|
81
|
+
*/
|
|
82
|
+
preventFocusRestore?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* @defaultValue true
|
|
85
|
+
*/
|
|
86
|
+
blockScroll?: boolean;
|
|
87
|
+
}
|
|
5
88
|
interface OverlaySignature {
|
|
6
|
-
Args:
|
|
7
|
-
/**
|
|
8
|
-
* Whether to render in place or in the specified/default destination
|
|
9
|
-
*
|
|
10
|
-
* @defaultValue false
|
|
11
|
-
*/
|
|
12
|
-
renderInPlace?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The destination where the overlay will be inserted, defaults to
|
|
15
|
-
* `document.body`
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue undefined
|
|
18
|
-
*/
|
|
19
|
-
destinationElementId?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Duration of the animation
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue 200
|
|
24
|
-
*/
|
|
25
|
-
transitionDuration?: number;
|
|
26
|
-
backdrop?: BackdropSignature['Args']['type'];
|
|
27
|
-
backdropTransition?: BackdropSignature['Args']['transition'];
|
|
28
|
-
/**
|
|
29
|
-
* Disable css transitions
|
|
30
|
-
*
|
|
31
|
-
* @defaultValue false
|
|
32
|
-
*/
|
|
33
|
-
disableTransitions?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Whether the focus trap is disabled or not
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue false
|
|
38
|
-
*/
|
|
39
|
-
disableFocusTrap?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Focus trap options
|
|
42
|
-
*
|
|
43
|
-
* @defaultValue { clickOutsideDeactivates: true, allowOutsideClick: true }
|
|
44
|
-
*/
|
|
45
|
-
focusTrapOptions?: unknown;
|
|
46
|
-
/**
|
|
47
|
-
* Whether it is open or not
|
|
48
|
-
*/
|
|
49
|
-
isOpen: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* A function that will be called when closed
|
|
52
|
-
*/
|
|
53
|
-
onClose?: () => void;
|
|
54
|
-
/**
|
|
55
|
-
* A function that will be called when closing is finished executing, this
|
|
56
|
-
* includes waiting for animations/transitions to finish.
|
|
57
|
-
*/
|
|
58
|
-
didClose?: () => void;
|
|
59
|
-
/**
|
|
60
|
-
* A function that will be called when opened
|
|
61
|
-
*/
|
|
62
|
-
onOpen?: () => void;
|
|
63
|
-
/**
|
|
64
|
-
* Whether to close when the area outside (the backdrop) is clicked
|
|
65
|
-
*
|
|
66
|
-
* @defaultValue true
|
|
67
|
-
*/
|
|
68
|
-
closeOnOutsideClick?: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Whether to close when the overlay element is clicked, used for modal and drawer components.
|
|
71
|
-
*
|
|
72
|
-
* @defaultValue false
|
|
73
|
-
*/
|
|
74
|
-
closeOnOverlayElementClick?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Whether to close when the escape key is pressed
|
|
77
|
-
*
|
|
78
|
-
* @defaultValue true
|
|
79
|
-
*/
|
|
80
|
-
closeOnEscapeKey?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Transition options
|
|
83
|
-
*
|
|
84
|
-
* @defaultValue {name:'overlay-transition--fade'}
|
|
85
|
-
*/
|
|
86
|
-
transition?: CssTransitionSignature['Args']['Named'];
|
|
87
|
-
disableFlexContent?: boolean;
|
|
88
|
-
customContentModifier?: ModifierLike<{
|
|
89
|
-
Element: HTMLElement;
|
|
90
|
-
}>;
|
|
91
|
-
class?: string;
|
|
92
|
-
/**
|
|
93
|
-
* @defaultValue false
|
|
94
|
-
*/
|
|
95
|
-
preventFocusRestore?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* @defaultValue true
|
|
98
|
-
*/
|
|
99
|
-
blockScroll?: boolean;
|
|
100
|
-
};
|
|
89
|
+
Args: Args;
|
|
101
90
|
Element: HTMLDivElement;
|
|
102
91
|
Blocks: {
|
|
103
92
|
default: [];
|
|
@@ -108,7 +97,6 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
108
97
|
contentElement: HTMLElement | undefined;
|
|
109
98
|
focusedElement: Element | null | undefined;
|
|
110
99
|
mouseDownContentElement: EventTarget | null;
|
|
111
|
-
get destinationElement(): HTMLElement | null;
|
|
112
100
|
handleClose(): void;
|
|
113
101
|
handleContentClick(event: MouseEvent): void;
|
|
114
102
|
handleOutsideClick(e: Event): void;
|
|
@@ -117,7 +105,7 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
117
105
|
setupContent: import("ember-modifier").FunctionBasedModifier<{
|
|
118
106
|
Args: {
|
|
119
107
|
Positional: unknown[];
|
|
120
|
-
Named: import("ember-modifier/-private/signature
|
|
108
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
121
109
|
};
|
|
122
110
|
Element: HTMLDivElement;
|
|
123
111
|
}>;
|
|
@@ -131,35 +119,35 @@ declare class Overlay extends Component<OverlaySignature> {
|
|
|
131
119
|
}> | import("ember-modifier").FunctionBasedModifier<{
|
|
132
120
|
Args: {
|
|
133
121
|
Positional: unknown[];
|
|
134
|
-
Named: import("ember-modifier/-private/signature
|
|
122
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
135
123
|
};
|
|
136
124
|
Element: Element;
|
|
137
125
|
}>;
|
|
138
126
|
get backdropTransition(): {
|
|
139
|
-
didTransitionIn?: (
|
|
140
|
-
didTransitionOut?: (
|
|
141
|
-
enterClass?: string
|
|
142
|
-
enterActiveClass?: string
|
|
143
|
-
enterToClass?: string
|
|
144
|
-
isEnabled?: boolean
|
|
145
|
-
leaveClass?: string
|
|
146
|
-
leaveActiveClass?: string
|
|
147
|
-
leaveToClass?: string
|
|
148
|
-
name?: string
|
|
149
|
-
parentSelector?: string
|
|
127
|
+
didTransitionIn?: () => void;
|
|
128
|
+
didTransitionOut?: () => void;
|
|
129
|
+
enterClass?: string;
|
|
130
|
+
enterActiveClass?: string;
|
|
131
|
+
enterToClass?: string;
|
|
132
|
+
isEnabled?: boolean;
|
|
133
|
+
leaveClass?: string;
|
|
134
|
+
leaveActiveClass?: string;
|
|
135
|
+
leaveToClass?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
parentSelector?: string;
|
|
150
138
|
};
|
|
151
139
|
get transition(): {
|
|
152
|
-
didTransitionIn?: (
|
|
153
|
-
didTransitionOut?: (
|
|
154
|
-
enterClass?: string
|
|
155
|
-
enterActiveClass?: string
|
|
156
|
-
enterToClass?: string
|
|
157
|
-
isEnabled?: boolean
|
|
158
|
-
leaveClass?: string
|
|
159
|
-
leaveActiveClass?: string
|
|
160
|
-
leaveToClass?: string
|
|
161
|
-
name?: string
|
|
162
|
-
parentSelector?: string
|
|
140
|
+
didTransitionIn?: () => void;
|
|
141
|
+
didTransitionOut?: () => void;
|
|
142
|
+
enterClass?: string;
|
|
143
|
+
enterActiveClass?: string;
|
|
144
|
+
enterToClass?: string;
|
|
145
|
+
isEnabled?: boolean;
|
|
146
|
+
leaveClass?: string;
|
|
147
|
+
leaveActiveClass?: string;
|
|
148
|
+
leaveToClass?: string;
|
|
149
|
+
name?: string;
|
|
150
|
+
parentSelector?: string;
|
|
163
151
|
};
|
|
164
152
|
}
|
|
165
153
|
export { Overlay, type OverlaySignature };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.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EAAE,KAAK,gBAAgB,EAAE,CAAC;AAC1C,eAAe,OAAO,CAAC"}
|
|
@@ -61,20 +61,20 @@ declare class Popover extends Component<PopoverSignature> {
|
|
|
61
61
|
trigger: import("ember-modifier").FunctionBasedModifier<{
|
|
62
62
|
Args: {
|
|
63
63
|
Positional: [eventType?: "click" | "hover" | undefined];
|
|
64
|
-
Named: import("ember-modifier/-private/signature
|
|
64
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
65
65
|
};
|
|
66
66
|
Element: HTMLElement;
|
|
67
67
|
}>;
|
|
68
68
|
updateAriaExtanded: import("ember-modifier").FunctionBasedModifier<{
|
|
69
69
|
Args: {
|
|
70
70
|
Positional: unknown[];
|
|
71
|
-
Named: import("ember-modifier/-private/signature
|
|
71
|
+
Named: import("ember-modifier/-private/signature").EmptyObject;
|
|
72
72
|
};
|
|
73
73
|
Element: HTMLElement;
|
|
74
74
|
}>;
|
|
75
75
|
didClose: () => void;
|
|
76
76
|
}
|
|
77
|
-
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | '
|
|
77
|
+
interface ContentArgs extends Pick<OverlaySignature['Args'], 'onOpen' | 'didClose' | 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'blockScroll'> {
|
|
78
78
|
/**
|
|
79
79
|
* @internal
|
|
80
80
|
*/
|
|
@@ -136,17 +136,17 @@ declare class Content extends Component<ContentSignature> {
|
|
|
136
136
|
get classNames(): string;
|
|
137
137
|
get backdrop(): OverlaySignature['Args']['backdrop'];
|
|
138
138
|
get transition(): {
|
|
139
|
-
didTransitionIn?: (
|
|
140
|
-
didTransitionOut?: (
|
|
141
|
-
enterClass?: string
|
|
142
|
-
enterActiveClass?: string
|
|
143
|
-
enterToClass?: string
|
|
144
|
-
isEnabled?: boolean
|
|
145
|
-
leaveClass?: string
|
|
146
|
-
leaveActiveClass?: string
|
|
147
|
-
leaveToClass?: string
|
|
148
|
-
name?: string
|
|
149
|
-
parentSelector?: string
|
|
139
|
+
didTransitionIn?: () => void;
|
|
140
|
+
didTransitionOut?: () => void;
|
|
141
|
+
enterClass?: string;
|
|
142
|
+
enterActiveClass?: string;
|
|
143
|
+
enterToClass?: string;
|
|
144
|
+
isEnabled?: boolean;
|
|
145
|
+
leaveClass?: string;
|
|
146
|
+
leaveActiveClass?: string;
|
|
147
|
+
leaveToClass?: string;
|
|
148
|
+
name?: string;
|
|
149
|
+
parentSelector?: string;
|
|
150
150
|
};
|
|
151
151
|
get blockScroll(): boolean;
|
|
152
152
|
get disableFocusTrap(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAQ3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAElF,UAAU,gBAAgB;IACxB,IAAI,EAAE;QACJ;;;;WAIG;QACH,SAAS,CAAC,EACN,KAAK,GACL,WAAW,GACX,SAAS,GACT,OAAO,GACP,aAAa,GACb,WAAW,GACX,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,CAAC;QAEf,WAAW,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC,CAAC;QAC9D,UAAU,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC;QAC5D,YAAY,CAAC,EA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;;;;;;MAUb;IAED,IAAI,WAAW,YAKd;IAED,IAAI,gBAAgB,YAKnB;IAED,QAAQ,aAQN;CAiBH;AAED,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,CAAC;AACjE,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TOC } from '@ember/component/template-only';
|
|
2
|
+
declare const PortalTarget: TOC<{
|
|
3
|
+
Args: {
|
|
4
|
+
/**
|
|
5
|
+
* Target name
|
|
6
|
+
*/
|
|
7
|
+
for?: string;
|
|
8
|
+
};
|
|
9
|
+
Blocks: {
|
|
10
|
+
default: [];
|
|
11
|
+
};
|
|
12
|
+
Element: HTMLElement;
|
|
13
|
+
}>;
|
|
14
|
+
export { PortalTarget };
|
|
15
|
+
export default PortalTarget;
|
|
16
|
+
//# sourceMappingURL=portal-target.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-target.d.ts","sourceRoot":"","sources":["../../src/components/portal-target.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAC;AAE1D,QAAA,MAAM,YAAY,EAAE,GAAG,CAAC;IACtB,IAAI,EAAE;QACJ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,WAAW,CAAC;CACtB,CAWC,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
interface PortalSignature {
|
|
3
|
+
Args: {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to render in place or in the specified/default destination
|
|
6
|
+
*
|
|
7
|
+
* @defaultValue false
|
|
8
|
+
*/
|
|
9
|
+
renderInPlace?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The target where to render the portal.
|
|
12
|
+
* There are 3 options: 1) `Element` object, 2) element id, 3) portal target name.
|
|
13
|
+
*
|
|
14
|
+
* For element id, string must be prefixed with `#`.
|
|
15
|
+
* If no value is passee in, we will render to the closest unnamed portal target,
|
|
16
|
+
* parent portal or `document.body`.
|
|
17
|
+
*/
|
|
18
|
+
target?: string | Element;
|
|
19
|
+
/**
|
|
20
|
+
* @defaultValue true
|
|
21
|
+
*/
|
|
22
|
+
appendToParentPortal?: boolean;
|
|
23
|
+
};
|
|
24
|
+
Element: HTMLDivElement;
|
|
25
|
+
Blocks: {
|
|
26
|
+
default: [];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
declare function findParentPortal(origin: Element | null): Element | null;
|
|
30
|
+
declare class Portal extends Component<PortalSignature> {
|
|
31
|
+
id: string;
|
|
32
|
+
dom: Document | null;
|
|
33
|
+
get destinationElement(): Element | null;
|
|
34
|
+
get portalMarker(): Element | null;
|
|
35
|
+
needsTarget: (destEl: Element | null) => boolean;
|
|
36
|
+
}
|
|
37
|
+
export { Portal, type PortalSignature, findParentPortal };
|
|
38
|
+
export default Portal;
|
|
39
|
+
//# sourceMappingURL=portal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../src/components/portal.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAiC3C,UAAU,eAAe;IACvB,IAAI,EAAE;QACJ;;;;WAIG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;;;;WAOG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAE1B;;WAEG;QACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,iBAAS,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,OAAO,GAAG,IAAI,CAehE;AA4BD,cAAM,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAC7C,EAAE,SAAiB;IACnB,GAAG,kBAAgB;IAEnB,IAAI,kBAAkB,IAAI,OAAO,GAAG,IAAI,CA8CvC;IAED,IAAI,YAAY,IAAI,OAAO,GAAG,IAAI,CAOjC;IAED,WAAW,WAAY,OAAO,GAAG,IAAI,KAAG,OAAO,CAU7C;CAsDH;AAED,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAE,CAAC;AAC1D,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Renderer = {
|
|
2
|
+
_dom?: Document;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* @hide
|
|
7
|
+
*/
|
|
8
|
+
declare function getDOM(context: {
|
|
9
|
+
renderer?: Renderer;
|
|
10
|
+
}): Document | null;
|
|
11
|
+
declare function getElementById(doc: Element, id: string): null | Element;
|
|
12
|
+
declare function getElementByAttribute(doc: Element, attribute: string, value?: string | undefined): null | Element;
|
|
13
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* @hide
|
|
4
|
+
*/
|
|
5
|
+
declare function getDOM(context: any): any;
|
|
6
|
+
declare function getElementById(doc: any, id: any): any;
|
|
7
|
+
declare function getElementByAttribute(doc: any, attribute: any, value: any): any;
|
|
8
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* @hide
|
|
4
|
+
*/
|
|
5
|
+
declare function getDOM(context: any): any;
|
|
6
|
+
declare function getElementById(doc: any, id: any): any;
|
|
7
|
+
declare function getElementByAttribute(doc: any, attribute: any, value?: undefined): any;
|
|
8
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type Renderer = {
|
|
2
|
+
_dom?: Document;
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* @hide
|
|
7
|
+
*/
|
|
8
|
+
declare function getDOM(context: {
|
|
9
|
+
renderer?: Renderer;
|
|
10
|
+
}): Document | null;
|
|
11
|
+
declare function getElementById(doc: Element, id: string): null | Element;
|
|
12
|
+
declare function getElementByAttribute(doc: Element, attribute: string, value?: string | undefined): null | Element;
|
|
13
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare function getDOM(context: object): Document | null;
|
|
2
|
+
declare function getElementById(doc: Document | Element, id: string): null | Element;
|
|
3
|
+
declare function getElementByAttribute(doc: Document | Element, attribute: string, value?: string | undefined): null | Element;
|
|
4
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare function getDOM(context: object): Document | null;
|
|
2
|
+
declare function getElementById(doc: Element, id: string): null | Element;
|
|
3
|
+
declare function getElementByAttribute(doc: Element, attribute: string, value?: string | undefined): null | Element;
|
|
4
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare function getDOM(context: object): Document | null;
|
|
2
|
+
declare function getElementById(doc: Element, id: string): null | Element;
|
|
3
|
+
declare function getElementByAttribute(doc: Element, attribute: string, value?: string | undefined): null | Element;
|
|
4
|
+
export { getDOM, getElementById, getElementByAttribute };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* @hide
|
|
4
|
+
*/
|
|
5
|
+
declare function getDOM(context: any): any;
|
|
6
|
+
declare function getElementById(doc: any, id: any): any;
|
|
7
|
+
declare function getElementByAttribute(doc: any, attribute: any, value: any): any;
|
|
8
|
+
export { getDOM, getElementById, getElementByAttribute };
|