@frontile/overlays 0.15.0 → 0.16.0
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/addon-main.js +4 -0
- package/declarations/components/drawer/body.d.ts +15 -0
- package/declarations/components/drawer/body.d.ts.map +1 -0
- package/declarations/components/drawer/footer.d.ts +15 -0
- package/declarations/components/drawer/footer.d.ts.map +1 -0
- package/{components → declarations/components}/drawer/header.d.ts +7 -2
- package/declarations/components/drawer/header.d.ts.map +1 -0
- package/{components → declarations/components}/drawer/index.d.ts +10 -8
- package/declarations/components/drawer/index.d.ts.map +1 -0
- package/{components → declarations/components}/modal/body.d.ts +5 -1
- package/declarations/components/modal/body.d.ts.map +1 -0
- package/{components → declarations/components}/modal/footer.d.ts +5 -1
- package/declarations/components/modal/footer.d.ts.map +1 -0
- package/{components → declarations/components}/modal/header.d.ts +5 -1
- package/declarations/components/modal/header.d.ts.map +1 -0
- package/{components → declarations/components}/modal/index.d.ts +10 -8
- package/declarations/components/modal/index.d.ts.map +1 -0
- package/{components → declarations/components}/overlay.d.ts +5 -1
- package/declarations/components/overlay.d.ts.map +1 -0
- package/declarations/template-registry.d.ts +9 -0
- package/declarations/template-registry.d.ts.map +1 -0
- package/dist/_app_/components/drawer/body.js +1 -0
- package/dist/_app_/components/drawer/footer.js +1 -0
- package/dist/_app_/components/drawer/header.js +1 -0
- package/dist/_app_/components/drawer/index.js +1 -0
- package/dist/_app_/components/modal/body.js +1 -0
- package/dist/_app_/components/modal/footer.js +1 -0
- package/dist/_app_/components/modal/header.js +1 -0
- package/dist/_app_/components/modal/index.js +1 -0
- package/dist/_app_/components/overlay.js +1 -0
- package/dist/components/drawer/body.js +17 -0
- package/dist/components/drawer/body.js.map +1 -0
- package/dist/components/drawer/footer.js +17 -0
- package/dist/components/drawer/footer.js.map +1 -0
- package/dist/components/drawer/header.js +17 -0
- package/dist/components/drawer/header.js.map +1 -0
- package/dist/components/drawer/index.js +50 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/modal/body.js +17 -0
- package/dist/components/modal/body.js.map +1 -0
- package/dist/components/modal/footer.js +17 -0
- package/dist/components/modal/footer.js.map +1 -0
- package/dist/components/modal/header.js +17 -0
- package/dist/components/modal/header.js.map +1 -0
- package/dist/components/modal/index.js +45 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/overlay.js +182 -0
- package/dist/components/overlay.js.map +1 -0
- package/dist/template-registry.js +2 -0
- package/dist/template-registry.js.map +1 -0
- package/package.json +85 -52
- package/-private/dom.d.ts +0 -5
- package/addon/-private/dom.d.ts +0 -5
- package/addon/-private/dom.js +0 -61
- package/addon/components/drawer/body.hbs +0 -6
- package/addon/components/drawer/body.ts +0 -12
- package/addon/components/drawer/demo/composition.md +0 -94
- package/addon/components/drawer/demo/placements.md +0 -60
- package/addon/components/drawer/demo/sizes.md +0 -60
- package/addon/components/drawer/demo/usage.md +0 -73
- package/addon/components/drawer/footer.hbs +0 -6
- package/addon/components/drawer/footer.ts +0 -12
- package/addon/components/drawer/header.hbs +0 -7
- package/addon/components/drawer/header.ts +0 -16
- package/addon/components/drawer/index.hbs +0 -43
- package/addon/components/drawer/index.md +0 -9
- package/addon/components/drawer/index.ts +0 -94
- package/addon/components/modal/body.hbs +0 -6
- package/addon/components/modal/body.ts +0 -11
- package/addon/components/modal/demo/sizes.md +0 -61
- package/addon/components/modal/demo/usage.md +0 -73
- package/addon/components/modal/footer.hbs +0 -6
- package/addon/components/modal/footer.ts +0 -11
- package/addon/components/modal/header.hbs +0 -7
- package/addon/components/modal/header.ts +0 -16
- package/addon/components/modal/index.hbs +0 -43
- package/addon/components/modal/index.md +0 -9
- package/addon/components/modal/index.ts +0 -84
- package/addon/components/overlay-demo/usage.md +0 -42
- package/addon/components/overlay.hbs +0 -68
- package/addon/components/overlay.md +0 -24
- package/addon/components/overlay.ts +0 -217
- package/app/components/drawer/body.js +0 -1
- package/app/components/drawer/footer.js +0 -1
- package/app/components/drawer/header.js +0 -1
- package/app/components/drawer.js +0 -1
- package/app/components/modal/body.js +0 -1
- package/app/components/modal/footer.js +0 -1
- package/app/components/modal/header.js +0 -1
- package/app/components/modal.js +0 -1
- package/app/components/overlay.js +0 -1
- package/components/drawer/body.d.ts +0 -10
- package/components/drawer/footer.d.ts +0 -10
- package/config/environment.js +0 -5
- package/index.js +0 -5
- package/tsconfig.json +0 -23
- package/types/dummy/index.d.ts +0 -0
- package/types/global.d.ts +0 -6
- package/types/index.d.ts +0 -1
package/addon-main.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { DrawerArgs } from '.';
|
|
3
|
+
export interface DrawerBodyArgs extends Pick<DrawerArgs, 'placement'> {
|
|
4
|
+
size: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DrawerBodySignature {
|
|
7
|
+
Args: DrawerBodyArgs;
|
|
8
|
+
Element: HTMLDivElement;
|
|
9
|
+
Blocks: {
|
|
10
|
+
default: [];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export default class DrawerBody extends Component<DrawerBodySignature> {
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/body.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAGpC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,SAAS,CAAC,mBAAmB,CAAC;CAYrE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { DrawerArgs } from '.';
|
|
3
|
+
export interface DrawerFooterArgs extends Pick<DrawerArgs, 'placement'> {
|
|
4
|
+
size: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DrawerFooterSignature {
|
|
7
|
+
Args: DrawerFooterArgs;
|
|
8
|
+
Element: HTMLDivElement;
|
|
9
|
+
Blocks: {
|
|
10
|
+
default: [];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export default class DrawerFooter extends Component<DrawerFooterSignature> {
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/footer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAGpC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAS,CAAC,qBAAqB,CAAC;CAYzE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { DrawerArgs } from '.';
|
|
3
|
-
export interface DrawerHeaderArgs extends Pick<DrawerArgs, '
|
|
2
|
+
import type { DrawerArgs } from '.';
|
|
3
|
+
export interface DrawerHeaderArgs extends Pick<DrawerArgs, 'placement'> {
|
|
4
|
+
size: string;
|
|
4
5
|
/**
|
|
5
6
|
* The id used to reference labelledById in Drawer component
|
|
6
7
|
*/
|
|
@@ -9,6 +10,10 @@ export interface DrawerHeaderArgs extends Pick<DrawerArgs, 'size' | 'placement'>
|
|
|
9
10
|
export interface DrawerHeaderSignature {
|
|
10
11
|
Args: DrawerHeaderArgs;
|
|
11
12
|
Element: HTMLDivElement;
|
|
13
|
+
Blocks: {
|
|
14
|
+
default: [];
|
|
15
|
+
};
|
|
12
16
|
}
|
|
13
17
|
export default class DrawerHeader extends Component<DrawerHeaderSignature> {
|
|
14
18
|
}
|
|
19
|
+
//# sourceMappingURL=header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/header.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAGpC,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC;IACrE,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AACD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,SAAS,CAAC,qBAAqB,CAAC;CAazE"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { OverlayArgs } from '../overlay';
|
|
2
|
+
import { type OverlayArgs } from '../overlay';
|
|
3
3
|
import DrawerBody from './body';
|
|
4
4
|
import DrawerFooter from './footer';
|
|
5
5
|
import DrawerHeader from './header';
|
|
6
|
-
import CloseButton from '@frontile/core/
|
|
6
|
+
import CloseButton from '@frontile/core/components/close-button';
|
|
7
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
7
8
|
export interface DrawerArgs extends Omit<OverlayArgs, 'contentTransitionName'> {
|
|
8
9
|
/**
|
|
9
10
|
* The name of the transition to be used in the Drawer.
|
|
@@ -48,20 +49,21 @@ export interface DrawerSignature {
|
|
|
48
49
|
Blocks: {
|
|
49
50
|
default: [
|
|
50
51
|
{
|
|
51
|
-
CloseButton: CloseButton
|
|
52
|
-
Header: DrawerHeader
|
|
53
|
-
Body: DrawerBody
|
|
54
|
-
Footer: DrawerFooter
|
|
52
|
+
CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> & WithBoundArgs<typeof CloseButton, 'class'>;
|
|
53
|
+
Header: WithBoundArgs<typeof DrawerHeader, 'labelledById'> & WithBoundArgs<typeof DrawerHeader, 'size'>;
|
|
54
|
+
Body: WithBoundArgs<typeof DrawerBody, 'size'>;
|
|
55
|
+
Footer: WithBoundArgs<typeof DrawerFooter, 'size'>;
|
|
55
56
|
headerId: string;
|
|
56
57
|
}
|
|
57
58
|
];
|
|
58
59
|
};
|
|
59
|
-
Element: HTMLDivElement
|
|
60
|
+
Element: HTMLDivElement;
|
|
60
61
|
}
|
|
61
62
|
export default class Drawer extends Component<DrawerSignature> {
|
|
62
63
|
headerId: string;
|
|
63
64
|
get preventClosing(): boolean;
|
|
64
65
|
get showCloseButton(): boolean;
|
|
65
|
-
get placement():
|
|
66
|
+
get placement(): "left" | "top" | "bottom" | "right";
|
|
66
67
|
get size(): string;
|
|
67
68
|
}
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,UAAU,MAAM,QAAQ,CAAC;AAChC,OAAO,YAAY,MAAM,UAAU,CAAC;AACpC,OAAO,YAAY,MAAM,UAAU,CAAC;AAEpC,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC5E;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAEnD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAEhD;;;;OAIG;IACH,IAAI,CAAC,EAAE,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,MAAM,CAAC,CAAC;gBAC7C,IAAI,EAAE,aAAa,CAAC,OAAO,UAAU,EAAE,MAAM,CAAC,CAAC;gBAC/C,MAAM,EAAE,aAAa,CAAC,OAAO,YAAY,EAAE,MAAM,CAAC,CAAC;gBACnD,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,IAAI,IAAI,MAAM,CAMjB;CA6CF"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { ModalArgs } from '.';
|
|
2
|
+
import type { ModalArgs } from '.';
|
|
3
3
|
export interface ModalBodyArgs extends Pick<ModalArgs, 'size'> {
|
|
4
4
|
}
|
|
5
5
|
export interface ModalBodySignature {
|
|
6
6
|
Args: ModalBodyArgs;
|
|
7
7
|
Element: HTMLDivElement;
|
|
8
|
+
Blocks: {
|
|
9
|
+
default: [];
|
|
10
|
+
};
|
|
8
11
|
}
|
|
9
12
|
export default class ModalBody extends Component<ModalBodySignature> {
|
|
10
13
|
}
|
|
14
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/components/modal/body.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAGnC,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;CAAG;AAEjE,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;CAYnE"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { ModalArgs } from '.';
|
|
2
|
+
import type { ModalArgs } from '.';
|
|
3
3
|
export interface ModalFooterArgs extends Pick<ModalArgs, 'size'> {
|
|
4
4
|
}
|
|
5
5
|
export interface ModalFooterSignature {
|
|
6
6
|
Args: ModalFooterArgs;
|
|
7
7
|
Element: HTMLDivElement;
|
|
8
|
+
Blocks: {
|
|
9
|
+
default: [];
|
|
10
|
+
};
|
|
8
11
|
}
|
|
9
12
|
export default class ModalFooter extends Component<ModalFooterSignature> {
|
|
10
13
|
}
|
|
14
|
+
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","sourceRoot":"","sources":["../../../src/components/modal/footer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAGnC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;CAAG;AAEnE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;CAYvE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { ModalArgs } from '.';
|
|
2
|
+
import type { ModalArgs } from '.';
|
|
3
3
|
export interface ModalHeaderArgs extends Pick<ModalArgs, 'size'> {
|
|
4
4
|
/**
|
|
5
5
|
* The id used to reference labelledById in Modal component
|
|
@@ -9,6 +9,10 @@ export interface ModalHeaderArgs extends Pick<ModalArgs, 'size'> {
|
|
|
9
9
|
export interface ModalHeaderSignature {
|
|
10
10
|
Args: ModalHeaderArgs;
|
|
11
11
|
Element: HTMLDivElement;
|
|
12
|
+
Blocks: {
|
|
13
|
+
default: [];
|
|
14
|
+
};
|
|
12
15
|
}
|
|
13
16
|
export default class ModalHeader extends Component<ModalHeaderSignature> {
|
|
14
17
|
}
|
|
18
|
+
//# sourceMappingURL=header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../src/components/modal/header.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC;AAGnC,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;IAC9D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,SAAS,CAAC,oBAAoB,CAAC;CAavE"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import Component from '@glimmer/component';
|
|
2
|
-
import { OverlayArgs } from '../overlay';
|
|
2
|
+
import { type OverlayArgs } from '../overlay';
|
|
3
3
|
import ModalFooter from './footer';
|
|
4
4
|
import ModalBody from './body';
|
|
5
5
|
import ModalHeader from './header';
|
|
6
|
-
import CloseButton from '@frontile/core/
|
|
6
|
+
import CloseButton from '@frontile/core/components/close-button';
|
|
7
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
7
8
|
export interface ModalArgs extends Omit<OverlayArgs, 'contentTransitionName'> {
|
|
8
9
|
/**
|
|
9
10
|
* The name of the transition to be used in the modal.
|
|
@@ -46,19 +47,20 @@ export interface ModalSignature {
|
|
|
46
47
|
Blocks: {
|
|
47
48
|
default: [
|
|
48
49
|
{
|
|
49
|
-
CloseButton: CloseButton
|
|
50
|
-
Header: ModalHeader
|
|
51
|
-
Body: ModalBody
|
|
52
|
-
Footer: ModalFooter
|
|
50
|
+
CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> & WithBoundArgs<typeof CloseButton, 'class'>;
|
|
51
|
+
Header: WithBoundArgs<typeof ModalHeader, 'labelledById'> & WithBoundArgs<typeof ModalHeader, 'size'>;
|
|
52
|
+
Body: WithBoundArgs<typeof ModalBody, 'size'>;
|
|
53
|
+
Footer: WithBoundArgs<typeof ModalFooter, 'size'>;
|
|
53
54
|
headerId: string;
|
|
54
55
|
}
|
|
55
56
|
];
|
|
56
57
|
};
|
|
57
|
-
Element: HTMLDivElement
|
|
58
|
+
Element: HTMLDivElement;
|
|
58
59
|
}
|
|
59
60
|
export default class Modal extends Component<ModalSignature> {
|
|
60
61
|
headerId: string;
|
|
61
62
|
get preventClosing(): boolean;
|
|
62
63
|
get showCloseButton(): boolean;
|
|
63
|
-
get size():
|
|
64
|
+
get size(): "full" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
64
65
|
}
|
|
66
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,WAAW,MAAM,UAAU,CAAC;AACnC,OAAO,SAAS,MAAM,QAAQ,CAAC;AAC/B,OAAO,WAAW,MAAM,UAAU,CAAC;AAEnC,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,WAAW,EAAE,uBAAuB,CAAC;IAC3E;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAEnD;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,IAAI,CAAC,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,CAAC,GACvD,aAAa,CAAC,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;gBAC7C,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,cAAc,CAAC,GACvD,aAAa,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC;gBAC5C,IAAI,EAAE,aAAa,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,CAAC;gBAC9C,MAAM,EAAE,aAAa,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAAC;gBAClD,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;CA6CF"}
|
|
@@ -87,7 +87,10 @@ export interface OverlayArgs {
|
|
|
87
87
|
}
|
|
88
88
|
export interface OverlaySignature {
|
|
89
89
|
Args: OverlayArgs;
|
|
90
|
-
Element: HTMLDivElement
|
|
90
|
+
Element: HTMLDivElement;
|
|
91
|
+
Blocks: {
|
|
92
|
+
default: [];
|
|
93
|
+
};
|
|
91
94
|
}
|
|
92
95
|
export default class Overlay extends Component<OverlaySignature> {
|
|
93
96
|
keepOpen: boolean;
|
|
@@ -106,3 +109,4 @@ export default class Overlay extends Component<OverlaySignature> {
|
|
|
106
109
|
setup(element: HTMLElement): void;
|
|
107
110
|
teardown(): void;
|
|
108
111
|
}
|
|
112
|
+
//# sourceMappingURL=overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../src/components/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAwC3C,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAEpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACrD,QAAQ,UAAS;IAC1B,cAAc,EAAE,WAAW,GAAG,SAAS,CAAC;IACxC,uBAAuB,EAAE,WAAW,GAAG,IAAI,CAAQ;IAEnD,IAAI,kBAAkB,IAAI,WAAW,GAAG,IAAI,CAY3C;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,iBAAiB,IAAI,OAAO,CAE/B;IAED,IAAI,kBAAkB,IAAI,OAAO,CAEhC;IAED,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAEO,kBAAkB,IAAI,IAAI;IAM1B,kBAAkB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAW3C,WAAW,IAAI,IAAI;IAO3B,sBAAsB,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAK/C,aAAa,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAMjC,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAajC,QAAQ,IAAI,IAAI;CA0EzB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type Overlay from './components/overlay';
|
|
2
|
+
import type Drawer from './components/drawer';
|
|
3
|
+
import type Modal from './components/modal';
|
|
4
|
+
export default interface Registry {
|
|
5
|
+
Overlay: typeof Overlay;
|
|
6
|
+
Drawer: typeof Drawer;
|
|
7
|
+
Modal: typeof Modal;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=template-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../src/template-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAE5C,MAAM,CAAC,OAAO,WAAW,QAAQ;IAC/B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,MAAM,EAAE,OAAO,MAAM,CAAC;IACtB,KAAK,EAAE,OAAO,KAAK,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/drawer/body";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/drawer/footer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/drawer/header";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/drawer/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/modal/body";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/modal/footer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/modal/header";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/modal/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "@frontile/overlays/components/overlay";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
var _class;
|
|
7
|
+
class DrawerBody extends Component {}
|
|
8
|
+
_class = DrawerBody;
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div class={{useFrontileClass \"drawer\" @placement @size part=\"body\"}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
scope: () => ({
|
|
11
|
+
useFrontileClass
|
|
12
|
+
}),
|
|
13
|
+
strictMode: true
|
|
14
|
+
}), _class);
|
|
15
|
+
|
|
16
|
+
export { DrawerBody as default };
|
|
17
|
+
//# sourceMappingURL=body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.js","sources":["../../../src/components/drawer/body.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport type { DrawerArgs } from '.';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nexport interface DrawerBodyArgs extends Pick<DrawerArgs, 'placement'> {\n size: string;\n}\nexport interface DrawerBodySignature {\n Args: DrawerBodyArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\nexport default class DrawerBody extends Component<DrawerBodySignature> {\n static{\n template(`\n <div\n class={{useFrontileClass \"drawer\" @placement @size part=\"body\"}}\n ...attributes\n >\n {{yield}}\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["DrawerBody","Component","_class","setComponentTemplate","precompileTemplate","scope","useFrontileClass","strictMode"],"mappings":";;;;;;AAce,MAAMA,UAAU,SAASC,SAAS,CAAsB,EAAA;AAgBtEC,MAAA,GAhBoBF,UAAU,CAAA;AAEvBG,oBAAA,CAAAC,kBAAA,CAOH,iIAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,gBAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAL,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
var _class;
|
|
7
|
+
class DrawerFooter extends Component {}
|
|
8
|
+
_class = DrawerFooter;
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div class={{useFrontileClass \"drawer\" @placement @size part=\"footer\"}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
scope: () => ({
|
|
11
|
+
useFrontileClass
|
|
12
|
+
}),
|
|
13
|
+
strictMode: true
|
|
14
|
+
}), _class);
|
|
15
|
+
|
|
16
|
+
export { DrawerFooter as default };
|
|
17
|
+
//# sourceMappingURL=footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.js","sources":["../../../src/components/drawer/footer.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport type { DrawerArgs } from '.';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nexport interface DrawerFooterArgs extends Pick<DrawerArgs, 'placement'> {\n size: string;\n}\nexport interface DrawerFooterSignature {\n Args: DrawerFooterArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\nexport default class DrawerFooter extends Component<DrawerFooterSignature> {\n static{\n template(`\n <div\n class={{useFrontileClass \"drawer\" @placement @size part=\"footer\"}}\n ...attributes\n >\n {{yield}}\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["DrawerFooter","Component","_class","setComponentTemplate","precompileTemplate","scope","useFrontileClass","strictMode"],"mappings":";;;;;;AAce,MAAMA,YAAY,SAASC,SAAS,CAAwB,EAAA;AAgB1EC,MAAA,GAhBoBF,YAAY,CAAA;AAEzBG,oBAAA,CAAAC,kBAAA,CAOH,mIAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,gBAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAL,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
var _class;
|
|
7
|
+
class DrawerHeader extends Component {}
|
|
8
|
+
_class = DrawerHeader;
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div id={{@labelledById}} class={{useFrontileClass \"drawer\" @placement @size part=\"header\"}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
scope: () => ({
|
|
11
|
+
useFrontileClass
|
|
12
|
+
}),
|
|
13
|
+
strictMode: true
|
|
14
|
+
}), _class);
|
|
15
|
+
|
|
16
|
+
export { DrawerHeader as default };
|
|
17
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../src/components/drawer/header.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport type { DrawerArgs } from '.';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nexport interface DrawerHeaderArgs extends Pick<DrawerArgs, 'placement'> {\n size: string;\n /**\n * The id used to reference labelledById in Drawer component\n */ labelledById: string;\n}\nexport interface DrawerHeaderSignature {\n Args: DrawerHeaderArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\nexport default class DrawerHeader extends Component<DrawerHeaderSignature> {\n static{\n template(`\n <div\n id={{@labelledById}}\n class={{useFrontileClass \"drawer\" @placement @size part=\"header\"}}\n ...attributes\n >\n {{yield}}\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["DrawerHeader","Component","_class","setComponentTemplate","precompileTemplate","scope","useFrontileClass","strictMode"],"mappings":";;;;;;AAiBe,MAAMA,YAAY,SAASC,SAAS,CAAwB,EAAA;AAiB1EC,MAAA,GAjBoBF,YAAY,CAAA;AAEzBG,oBAAA,CAAAC,kBAAA,CAQH,wJAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,gBAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAL,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { guidFor } from '@ember/object/internals';
|
|
4
|
+
import { concat, hash } from '@ember/helper';
|
|
5
|
+
import Overlay from '../overlay.js';
|
|
6
|
+
import DrawerBody from './body.js';
|
|
7
|
+
import DrawerFooter from './footer.js';
|
|
8
|
+
import DrawerHeader from './header.js';
|
|
9
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
10
|
+
import CloseButton from '@frontile/core/components/close-button';
|
|
11
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
12
|
+
import { setComponentTemplate } from '@ember/component';
|
|
13
|
+
|
|
14
|
+
var _class;
|
|
15
|
+
class Drawer extends Component {
|
|
16
|
+
constructor(...args) {
|
|
17
|
+
super(...args);
|
|
18
|
+
_defineProperty(this, "headerId", `${guidFor(this)}-header`);
|
|
19
|
+
}
|
|
20
|
+
get preventClosing() {
|
|
21
|
+
return this.args.allowClosing === false;
|
|
22
|
+
}
|
|
23
|
+
get showCloseButton() {
|
|
24
|
+
return this.args.allowClosing !== false && this.args.allowCloseButton !== false;
|
|
25
|
+
}
|
|
26
|
+
get placement() {
|
|
27
|
+
return this.args.placement || 'right';
|
|
28
|
+
}
|
|
29
|
+
get size() {
|
|
30
|
+
const dir1 = ['top', 'bottom'].includes(this.placement) ? 'vertical' : 'horizontal';
|
|
31
|
+
return `${this.args.size || 'md'}-${dir1}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
_class = Drawer;
|
|
35
|
+
setComponentTemplate(precompileTemplate("\n <Overlay @isOpen={{@isOpen}} @onClose={{@onClose}} @onOpen={{@onOpen}} @didClose={{@didClose}} @renderInPlace={{@renderInPlace}} @destinationElementId={{@destinationElementId}} @transitionDuration={{@transitionDuration}} @disableBackdrop={{@disableBackdrop}} @disableTransitions={{@disableTransitions}} @disableFocusTrap={{@disableFocusTrap}} @focusTrapOptions={{@focusTrapOptions}} @closeOnOutsideClick={{if this.preventClosing false @closeOnOutsideClick}} @closeOnEscapeKey={{if this.preventClosing false @closeOnEscapeKey}} @backdropTransitionName={{@backdropTransitionName}} @contentTransitionName={{if @transitionName @transitionName (concat \"overlay-transition--slide-from-\" this.placement)}}>\n {{#let (useFrontileClass \"drawer\" this.placement this.size part=\"close-btn\") as |closeBtnClass|}}\n <div class={{useFrontileClass \"drawer\" this.placement this.size}} tabindex=\"0\" role=\"dialog\" aria-labelledby={{this.headerId}} ...attributes>\n {{#if this.showCloseButton}}\n <CloseButton @onClick={{@onClose}} @size={{@closeButtonSize}} class={{closeBtnClass}} />\n {{/if}}\n\n {{yield (hash CloseButton=(component CloseButton onClick=@onClose class=closeBtnClass) Header=(component DrawerHeader labelledById=this.headerId placement=this.placement size=this.size) Body=(component DrawerBody placement=this.placement size=this.size) Footer=(component DrawerFooter placement=this.placement size=this.size) headerId=this.headerId)}}\n </div>\n {{/let}}\n </Overlay>\n ", {
|
|
36
|
+
scope: () => ({
|
|
37
|
+
Overlay,
|
|
38
|
+
concat,
|
|
39
|
+
useFrontileClass,
|
|
40
|
+
CloseButton,
|
|
41
|
+
hash,
|
|
42
|
+
DrawerHeader,
|
|
43
|
+
DrawerBody,
|
|
44
|
+
DrawerFooter
|
|
45
|
+
}),
|
|
46
|
+
strictMode: true
|
|
47
|
+
}), _class);
|
|
48
|
+
|
|
49
|
+
export { Drawer as default };
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/drawer/index.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport { guidFor } from '@ember/object/internals';\nimport { concat, hash } from '@ember/helper';\nimport Overlay, { type OverlayArgs } from '../overlay';\nimport DrawerBody from './body';\nimport DrawerFooter from './footer';\nimport DrawerHeader from './header';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nimport CloseButton from '@frontile/core/components/close-button';\nimport type { WithBoundArgs } from '@glint/template';\nexport interface DrawerArgs extends Omit<OverlayArgs, 'contentTransitionName'> {\n /**\n * The name of the transition to be used in the Drawer.\n *\n * @defaultValue 'overlay-transition--slide-from-[placement]'\n */ transitionName?: string;\n /**\n * If set to false, the close button will not be displayed,\n * closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set\n * to false.\n *\n * @defaultValue true\n */ allowClosing?: boolean;\n /**\n * If set to false, the close button will not be displayed.\n *\n * @defaultValue true\n */ allowCloseButton?: boolean;\n /**\n * The Close Button size.\n */ closeButtonSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n /**\n * The Drawer can appear from any side of the screen. The 'placement'\n * option allows to choose where it appears from.\n *\n * @defaultValue 'right'\n */ placement?: 'top' | 'bottom' | 'left' | 'right';\n /**\n * The Drawer size.\n *\n * @defaultValue 'md'\n */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\n}\nexport interface DrawerSignature {\n Args: DrawerArgs;\n Blocks: {\n default: [{\n CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> & WithBoundArgs<typeof CloseButton, 'class'>;\n Header: WithBoundArgs<typeof DrawerHeader, 'labelledById'> & WithBoundArgs<typeof DrawerHeader, 'size'>;\n Body: WithBoundArgs<typeof DrawerBody, 'size'>;\n Footer: WithBoundArgs<typeof DrawerFooter, 'size'>;\n headerId: string;\n }];\n };\n Element: HTMLDivElement;\n}\nexport default class Drawer extends Component<DrawerSignature> {\n headerId = `${guidFor(this)}-header`;\n get preventClosing(): boolean {\n return this.args.allowClosing === false;\n }\n get showCloseButton(): boolean {\n return (this.args.allowClosing !== false && this.args.allowCloseButton !== false);\n }\n get placement() {\n return this.args.placement || 'right';\n }\n get size(): string {\n const dir1 = [\n 'top',\n 'bottom'\n ].includes(this.placement) ? 'vertical' : 'horizontal';\n return `${this.args.size || 'md'}-${dir1}`;\n }\n static{\n template(`\n <Overlay\n @isOpen={{@isOpen}}\n @onClose={{@onClose}}\n @onOpen={{@onOpen}}\n @didClose={{@didClose}}\n @renderInPlace={{@renderInPlace}}\n @destinationElementId={{@destinationElementId}}\n @transitionDuration={{@transitionDuration}}\n @disableBackdrop={{@disableBackdrop}}\n @disableTransitions={{@disableTransitions}}\n @disableFocusTrap={{@disableFocusTrap}}\n @focusTrapOptions={{@focusTrapOptions}}\n @closeOnOutsideClick={{if this.preventClosing false @closeOnOutsideClick}}\n @closeOnEscapeKey={{if this.preventClosing false @closeOnEscapeKey}}\n @backdropTransitionName={{@backdropTransitionName}}\n @contentTransitionName={{if\n @transitionName\n @transitionName\n (concat \"overlay-transition--slide-from-\" this.placement)\n }}\n >\n {{#let\n (useFrontileClass \"drawer\" this.placement this.size part=\"close-btn\")\n as |closeBtnClass|\n }}\n <div\n class={{useFrontileClass \"drawer\" this.placement this.size}}\n tabindex=\"0\"\n role=\"dialog\"\n aria-labelledby={{this.headerId}}\n ...attributes\n >\n {{#if this.showCloseButton}}\n <CloseButton\n @onClick={{@onClose}}\n @size={{@closeButtonSize}}\n class={{closeBtnClass}}\n />\n {{/if}}\n\n {{yield\n (hash\n CloseButton=(component\n CloseButton onClick=@onClose class=closeBtnClass\n )\n Header=(component\n DrawerHeader\n labelledById=this.headerId\n placement=this.placement\n size=this.size\n )\n Body=(component\n DrawerBody placement=this.placement size=this.size\n )\n Footer=(component\n DrawerFooter placement=this.placement size=this.size\n )\n headerId=this.headerId\n )\n }}\n </div>\n {{/let}}\n </Overlay>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["Drawer","Component","constructor","args","_defineProperty","guidFor","preventClosing","allowClosing","showCloseButton","allowCloseButton","placement","size","dir1","includes","_class","setComponentTemplate","precompileTemplate","scope","Overlay","concat","useFrontileClass","CloseButton","hash","DrawerHeader","DrawerBody","DrawerFooter","strictMode"],"mappings":";;;;;;;;;;;;;;AAyDe,MAAMA,MAAM,SAASC,SAAS,CAAkB;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;AAAAC,IAAAA,eAAA,mBAC/C,CAAEC,EAAAA,OAAO,CAAC,IAAI,CAAE,CAAQ,OAAA,CAAA,CAAA,CAAA;AAAA,GAAA;EACpC,IAAIC,cAAcA,GAAY;AAC1B,IAAA,OAAO,IAAI,CAACH,IAAI,CAACI,YAAY,KAAK,KAAK,CAAA;AAC3C,GAAA;EACA,IAAIC,eAAeA,GAAY;AAC3B,IAAA,OAAQ,IAAI,CAACL,IAAI,CAACI,YAAY,KAAK,KAAK,IAAI,IAAI,CAACJ,IAAI,CAACM,gBAAgB,KAAK,KAAK,CAAA;AACpF,GAAA;EACA,IAAIC,SAASA,GAAG;AACZ,IAAA,OAAO,IAAI,CAACP,IAAI,CAACO,SAAS,IAAI,OAAO,CAAA;AACzC,GAAA;EACA,IAAIC,IAAIA,GAAW;AACf,IAAA,MAAMC,IAAI,GAAG,CACT,KAAK,EACL,QAAQ,CACX,CAACC,QAAQ,CAAC,IAAI,CAACH,SAAS,CAAC,GAAG,UAAU,GAAG,YAAY,CAAA;IACtD,OAAQ,CAAA,EAAE,IAAI,CAACP,IAAI,CAACQ,IAAI,IAAI,IAAK,CAAGC,CAAAA,EAAAA,IAAK,CAAC,CAAA,CAAA;AAC9C,GAAA;AAyEJ,CAAA;AAACE,MAAA,GA1FoBd,MAAM,CAAA;AAmBnBe,oBAAA,CAAAC,kBAAA,CAgEH,ihDAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,OAAA;IAAAC,MAAA;IAAAC,gBAAA;IAAAC,WAAA;IAAAC,IAAA;IAAAC,YAAA;IAAAC,UAAA;AAAAC,IAAAA,YAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAZ,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
var _class;
|
|
7
|
+
class ModalBody extends Component {}
|
|
8
|
+
_class = ModalBody;
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div class={{useFrontileClass \"modal\" @size part=\"body\"}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
scope: () => ({
|
|
11
|
+
useFrontileClass
|
|
12
|
+
}),
|
|
13
|
+
strictMode: true
|
|
14
|
+
}), _class);
|
|
15
|
+
|
|
16
|
+
export { ModalBody as default };
|
|
17
|
+
//# sourceMappingURL=body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.js","sources":["../../../src/components/modal/body.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport type { ModalArgs } from '.';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nexport interface ModalBodyArgs extends Pick<ModalArgs, 'size'> {\n}\nexport interface ModalBodySignature {\n Args: ModalBodyArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\nexport default class ModalBody extends Component<ModalBodySignature> {\n static{\n template(`\n <div class={{useFrontileClass \"modal\" @size part=\"body\"}} ...attributes>\n {{yield}}\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["ModalBody","Component","_class","setComponentTemplate","precompileTemplate","scope","useFrontileClass","strictMode"],"mappings":";;;;;;AAae,MAAMA,SAAS,SAASC,SAAS,CAAqB,EAAA;AAapEC,MAAA,GAboBF,SAAS,CAAA;AAEtBG,oBAAA,CAAAC,kBAAA,CAIH,qHAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,gBAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAL,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
var _class;
|
|
7
|
+
class ModalFooter extends Component {}
|
|
8
|
+
_class = ModalFooter;
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div class={{useFrontileClass \"modal\" @size part=\"footer\"}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
scope: () => ({
|
|
11
|
+
useFrontileClass
|
|
12
|
+
}),
|
|
13
|
+
strictMode: true
|
|
14
|
+
}), _class);
|
|
15
|
+
|
|
16
|
+
export { ModalFooter as default };
|
|
17
|
+
//# sourceMappingURL=footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.js","sources":["../../../src/components/modal/footer.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport type { ModalArgs } from '.';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nexport interface ModalFooterArgs extends Pick<ModalArgs, 'size'> {\n}\nexport interface ModalFooterSignature {\n Args: ModalFooterArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\nexport default class ModalFooter extends Component<ModalFooterSignature> {\n static{\n template(`\n <div class={{useFrontileClass \"modal\" @size part=\"footer\"}} ...attributes>\n {{yield}}\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["ModalFooter","Component","_class","setComponentTemplate","precompileTemplate","scope","useFrontileClass","strictMode"],"mappings":";;;;;;AAae,MAAMA,WAAW,SAASC,SAAS,CAAuB,EAAA;AAaxEC,MAAA,GAboBF,WAAW,CAAA;AAExBG,oBAAA,CAAAC,kBAAA,CAIH,uHAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,gBAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAL,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
3
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
4
|
+
import { setComponentTemplate } from '@ember/component';
|
|
5
|
+
|
|
6
|
+
var _class;
|
|
7
|
+
class ModalHeader extends Component {}
|
|
8
|
+
_class = ModalHeader;
|
|
9
|
+
setComponentTemplate(precompileTemplate("\n <div id={{@labelledById}} class={{useFrontileClass \"modal\" @size part=\"header\"}} ...attributes>\n {{yield}}\n </div>\n ", {
|
|
10
|
+
scope: () => ({
|
|
11
|
+
useFrontileClass
|
|
12
|
+
}),
|
|
13
|
+
strictMode: true
|
|
14
|
+
}), _class);
|
|
15
|
+
|
|
16
|
+
export { ModalHeader as default };
|
|
17
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../src/components/modal/header.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport type { ModalArgs } from '.';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nexport interface ModalHeaderArgs extends Pick<ModalArgs, 'size'> {\n /**\n * The id used to reference labelledById in Modal component\n */ labelledById: string;\n}\nexport interface ModalHeaderSignature {\n Args: ModalHeaderArgs;\n Element: HTMLDivElement;\n Blocks: {\n default: [];\n };\n}\nexport default class ModalHeader extends Component<ModalHeaderSignature> {\n static{\n template(`\n <div\n id={{@labelledById}}\n class={{useFrontileClass \"modal\" @size part=\"header\"}}\n ...attributes\n >\n {{yield}}\n </div>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["ModalHeader","Component","_class","setComponentTemplate","precompileTemplate","scope","useFrontileClass","strictMode"],"mappings":";;;;;;AAgBe,MAAMA,WAAW,SAASC,SAAS,CAAuB,EAAA;AAiBxEC,MAAA,GAjBoBF,WAAW,CAAA;AAExBG,oBAAA,CAAAC,kBAAA,CAQH,4IAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA,gBAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAL,MAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { guidFor } from '@ember/object/internals';
|
|
4
|
+
import { hash } from '@ember/helper';
|
|
5
|
+
import Overlay from '../overlay.js';
|
|
6
|
+
import ModalFooter from './footer.js';
|
|
7
|
+
import ModalBody from './body.js';
|
|
8
|
+
import ModalHeader from './header.js';
|
|
9
|
+
import useFrontileClass from '@frontile/core/helpers/use-frontile-class';
|
|
10
|
+
import CloseButton from '@frontile/core/components/close-button';
|
|
11
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
12
|
+
import { setComponentTemplate } from '@ember/component';
|
|
13
|
+
|
|
14
|
+
var _class;
|
|
15
|
+
class Modal extends Component {
|
|
16
|
+
constructor(...args) {
|
|
17
|
+
super(...args);
|
|
18
|
+
_defineProperty(this, "headerId", `${guidFor(this)}-header`);
|
|
19
|
+
}
|
|
20
|
+
get preventClosing() {
|
|
21
|
+
return this.args.allowClosing === false;
|
|
22
|
+
}
|
|
23
|
+
get showCloseButton() {
|
|
24
|
+
return this.args.allowClosing !== false && this.args.allowCloseButton !== false;
|
|
25
|
+
}
|
|
26
|
+
get size() {
|
|
27
|
+
return this.args.size || 'lg';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_class = Modal;
|
|
31
|
+
setComponentTemplate(precompileTemplate("\n <Overlay @isOpen={{@isOpen}} @onClose={{@onClose}} @onOpen={{@onOpen}} @didClose={{@didClose}} @renderInPlace={{@renderInPlace}} @destinationElementId={{@destinationElementId}} @transitionDuration={{@transitionDuration}} @disableBackdrop={{@disableBackdrop}} @disableTransitions={{@disableTransitions}} @disableFocusTrap={{@disableFocusTrap}} @focusTrapOptions={{@focusTrapOptions}} @closeOnOutsideClick={{if this.preventClosing false @closeOnOutsideClick}} @closeOnEscapeKey={{if this.preventClosing false @closeOnEscapeKey}} @backdropTransitionName={{@backdropTransitionName}} @contentTransitionName={{if @transitionName @transitionName \"overlay-transition--zoom\"}}>\n {{#let (useFrontileClass \"modal\" this.size part=\"close-btn\") as |closeBtnClass|}}\n <div class={{useFrontileClass \"modal\" (if @isCentered \"centered\") this.size}} tabindex=\"0\" role=\"dialog\" aria-labelledby={{this.headerId}} ...attributes>\n {{#if this.showCloseButton}}\n <CloseButton @onClick={{@onClose}} @size={{@closeButtonSize}} class={{closeBtnClass}} />\n {{/if}}\n\n {{yield (hash CloseButton=(component CloseButton onClick=@onClose class=closeBtnClass) Header=(component ModalHeader labelledById=this.headerId size=this.size) Body=(component ModalBody size=this.size) Footer=(component ModalFooter size=this.size) headerId=this.headerId)}}\n </div>\n {{/let}}\n </Overlay>\n ", {
|
|
32
|
+
scope: () => ({
|
|
33
|
+
Overlay,
|
|
34
|
+
useFrontileClass,
|
|
35
|
+
CloseButton,
|
|
36
|
+
hash,
|
|
37
|
+
ModalHeader,
|
|
38
|
+
ModalBody,
|
|
39
|
+
ModalFooter
|
|
40
|
+
}),
|
|
41
|
+
strictMode: true
|
|
42
|
+
}), _class);
|
|
43
|
+
|
|
44
|
+
export { Modal as default };
|
|
45
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/modal/index.gts"],"sourcesContent":["import { template } from \"@ember/template-compiler\";\nimport Component from '@glimmer/component';\nimport { guidFor } from '@ember/object/internals';\nimport { hash } from '@ember/helper';\nimport Overlay, { type OverlayArgs } from '../overlay';\nimport ModalFooter from './footer';\nimport ModalBody from './body';\nimport ModalHeader from './header';\nimport useFrontileClass from '@frontile/core/helpers/use-frontile-class';\nimport CloseButton from '@frontile/core/components/close-button';\nimport type { WithBoundArgs } from '@glint/template';\nexport interface ModalArgs extends Omit<OverlayArgs, 'contentTransitionName'> {\n /**\n * The name of the transition to be used in the modal.\n * @defaultValue 'overlay-transition--zoom'\n */ transitionName?: string;\n /**\n * If set to false, the close button will not be displayed,\n * closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set\n * to false.\n *\n * @defaultValue true\n */ allowClosing?: boolean;\n /**\n * If set to false, the close button will not be displayed.\n *\n * @defaultValue true\n */ allowCloseButton?: boolean;\n /**\n * The Close Button size.\n */ closeButtonSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n /**\n * If set to true, the modal will be vertically centered\n *\n * @defaultValue false\n */ isCentered?: boolean;\n /**\n * The Modal size.\n *\n * @defaultValue 'lg'\n */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';\n}\nexport interface ModalSignature {\n Args: ModalArgs;\n Blocks: {\n default: [{\n CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> & WithBoundArgs<typeof CloseButton, 'class'>;\n Header: WithBoundArgs<typeof ModalHeader, 'labelledById'> & WithBoundArgs<typeof ModalHeader, 'size'>;\n Body: WithBoundArgs<typeof ModalBody, 'size'>;\n Footer: WithBoundArgs<typeof ModalFooter, 'size'>;\n headerId: string;\n }];\n };\n Element: HTMLDivElement;\n}\nexport default class Modal extends Component<ModalSignature> {\n headerId = `${guidFor(this)}-header`;\n get preventClosing(): boolean {\n return this.args.allowClosing === false;\n }\n get showCloseButton(): boolean {\n return (this.args.allowClosing !== false && this.args.allowCloseButton !== false);\n }\n get size() {\n return this.args.size || 'lg';\n }\n static{\n template(`\n <Overlay\n @isOpen={{@isOpen}}\n @onClose={{@onClose}}\n @onOpen={{@onOpen}}\n @didClose={{@didClose}}\n @renderInPlace={{@renderInPlace}}\n @destinationElementId={{@destinationElementId}}\n @transitionDuration={{@transitionDuration}}\n @disableBackdrop={{@disableBackdrop}}\n @disableTransitions={{@disableTransitions}}\n @disableFocusTrap={{@disableFocusTrap}}\n @focusTrapOptions={{@focusTrapOptions}}\n @closeOnOutsideClick={{if this.preventClosing false @closeOnOutsideClick}}\n @closeOnEscapeKey={{if this.preventClosing false @closeOnEscapeKey}}\n @backdropTransitionName={{@backdropTransitionName}}\n @contentTransitionName={{if\n @transitionName\n @transitionName\n \"overlay-transition--zoom\"\n }}\n >\n {{#let\n (useFrontileClass \"modal\" this.size part=\"close-btn\")\n as |closeBtnClass|\n }}\n <div\n class={{useFrontileClass\n \"modal\"\n (if @isCentered \"centered\")\n this.size\n }}\n tabindex=\"0\"\n role=\"dialog\"\n aria-labelledby={{this.headerId}}\n ...attributes\n >\n {{#if this.showCloseButton}}\n <CloseButton\n @onClick={{@onClose}}\n @size={{@closeButtonSize}}\n class={{closeBtnClass}}\n />\n {{/if}}\n\n {{yield\n (hash\n CloseButton=(component\n CloseButton onClick=@onClose class=closeBtnClass\n )\n Header=(component\n ModalHeader labelledById=this.headerId size=this.size\n )\n Body=(component ModalBody size=this.size)\n Footer=(component ModalFooter size=this.size)\n headerId=this.headerId\n )\n }}\n </div>\n {{/let}}\n </Overlay>\n `, {\n component: this,\n eval () {\n return eval(arguments[0]);\n }\n });\n }\n}\n"],"names":["Modal","Component","constructor","args","_defineProperty","guidFor","preventClosing","allowClosing","showCloseButton","allowCloseButton","size","_class","setComponentTemplate","precompileTemplate","scope","Overlay","useFrontileClass","CloseButton","hash","ModalHeader","ModalBody","ModalFooter","strictMode"],"mappings":";;;;;;;;;;;;;;AAuDe,MAAMA,KAAK,SAASC,SAAS,CAAiB;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA,CAAA;AAAAC,IAAAA,eAAA,mBAC7C,CAAEC,EAAAA,OAAO,CAAC,IAAI,CAAE,CAAQ,OAAA,CAAA,CAAA,CAAA;AAAA,GAAA;EACpC,IAAIC,cAAcA,GAAY;AAC1B,IAAA,OAAO,IAAI,CAACH,IAAI,CAACI,YAAY,KAAK,KAAK,CAAA;AAC3C,GAAA;EACA,IAAIC,eAAeA,GAAY;AAC3B,IAAA,OAAQ,IAAI,CAACL,IAAI,CAACI,YAAY,KAAK,KAAK,IAAI,IAAI,CAACJ,IAAI,CAACM,gBAAgB,KAAK,KAAK,CAAA;AACpF,GAAA;EACA,IAAIC,IAAIA,GAAG;AACP,IAAA,OAAO,IAAI,CAACP,IAAI,CAACO,IAAI,IAAI,IAAI,CAAA;AACjC,GAAA;AAsEJ,CAAA;AAACC,MAAA,GAhFoBX,KAAK,CAAA;AAYlBY,oBAAA,CAAAC,kBAAA,CA6DH,k6CAAA,EAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,OAAA;IAAAC,gBAAA;IAAAC,WAAA;IAAAC,IAAA;IAAAC,WAAA;IAAAC,SAAA;AAAAC,IAAAA,WAAAA;AAAA,GAAA,CAAA;EAAAC,UAAA,EAAA,IAAA;AAKG,CAAC,CAAC,EAAAX,MAAA,CAAA;;;;"}
|