@frontile/overlays 0.17.0-alpha.9 → 0.17.0-beta.2
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/body.d.ts +4 -0
- package/declarations/components/drawer/body.d.ts.map +1 -1
- package/declarations/components/drawer/footer.d.ts +4 -0
- package/declarations/components/drawer/footer.d.ts.map +1 -1
- package/declarations/components/drawer/header.d.ts +4 -0
- package/declarations/components/drawer/header.d.ts.map +1 -1
- package/declarations/components/drawer.d.ts +61 -23
- package/declarations/components/drawer.d.ts.map +1 -1
- package/declarations/components/modal/body.d.ts +4 -0
- package/declarations/components/modal/body.d.ts.map +1 -1
- package/declarations/components/modal/footer.d.ts +4 -0
- package/declarations/components/modal/footer.d.ts.map +1 -1
- package/declarations/components/modal/header.d.ts +4 -0
- package/declarations/components/modal/header.d.ts.map +1 -1
- package/declarations/components/modal.d.ts +60 -22
- package/declarations/components/modal.d.ts.map +1 -1
- package/declarations/components/overlay.d.ts +108 -116
- package/declarations/components/overlay.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +28 -16
- 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/index.d.ts +2 -0
- package/declarations/index.d.ts.map +1 -1
- package/declarations/portal-Es7o21X5.d.ts +5 -0
- package/declarations/portal-Es7o21X5.d.ts.map +1 -0
- package/dist/_app_/components/portal-target.js +1 -0
- package/dist/_app_/components/portal.js +1 -0
- package/dist/components/backdrop.js +13 -11
- package/dist/components/backdrop.js.map +1 -1
- package/dist/components/drawer/body.js +6 -2
- package/dist/components/drawer/body.js.map +1 -1
- package/dist/components/drawer/footer.js +6 -2
- package/dist/components/drawer/footer.js.map +1 -1
- package/dist/components/drawer/header.js +6 -2
- package/dist/components/drawer/header.js.map +1 -1
- package/dist/components/drawer.js +8 -21
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/modal/body.js +6 -2
- package/dist/components/modal/body.js.map +1 -1
- package/dist/components/modal/footer.js +6 -2
- package/dist/components/modal/footer.js.map +1 -1
- package/dist/components/modal/header.js +6 -2
- package/dist/components/modal/header.js.map +1 -1
- package/dist/components/modal.js +8 -21
- package/dist/components/modal.js.map +1 -1
- package/dist/components/overlay.js +53 -117
- package/dist/components/overlay.js.map +1 -1
- package/dist/components/popover.js +83 -31
- 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/dist/portal-Es7o21X5.js +169 -0
- package/dist/portal-Es7o21X5.js.map +1 -0
- package/package.json +24 -21
- package/declarations/components/drawer/index.d.ts +0 -71
- package/declarations/components/drawer/index.d.ts.map +0 -1
- package/declarations/components/modal/index.d.ts +0 -68
- package/declarations/components/modal/index.d.ts.map +0 -1
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
2
|
+
import Component from '@glimmer/component';
|
|
3
|
+
import { getOwner } from '@ember/owner';
|
|
4
|
+
import { guidFor } from '@ember/object/internals';
|
|
5
|
+
import { macroCondition, isTesting } from '@embroider/macros';
|
|
6
|
+
import { PortalTarget } from './components/portal-target.js';
|
|
7
|
+
import { precompileTemplate } from '@ember/template-compilation';
|
|
8
|
+
import { setComponentTemplate } from '@ember/component';
|
|
9
|
+
import templateOnly from '@ember/component/template-only';
|
|
10
|
+
|
|
11
|
+
function getDOM(context) {
|
|
12
|
+
const container = getOwner(context);
|
|
13
|
+
if (!container) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
const documentService = container.lookup('service:-document');
|
|
17
|
+
if (documentService) {
|
|
18
|
+
return documentService;
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
function childNodesOfElement(element) {
|
|
23
|
+
if (!element) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
const children = [];
|
|
27
|
+
let child = element.firstChild;
|
|
28
|
+
while (child) {
|
|
29
|
+
children.push(child);
|
|
30
|
+
child = child.nextSibling;
|
|
31
|
+
}
|
|
32
|
+
return children;
|
|
33
|
+
}
|
|
34
|
+
function getElementById(doc, id) {
|
|
35
|
+
return getElementByAttribute(doc, 'id', id);
|
|
36
|
+
}
|
|
37
|
+
function getElementByAttribute(doc, attribute, value = undefined) {
|
|
38
|
+
if (doc.querySelector) {
|
|
39
|
+
if (value) {
|
|
40
|
+
return doc.querySelector(`[${attribute}=${value}]`);
|
|
41
|
+
} else {
|
|
42
|
+
return doc.querySelector(`[${attribute}]`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
let nodes = childNodesOfElement(doc);
|
|
46
|
+
let node;
|
|
47
|
+
while (nodes.length) {
|
|
48
|
+
node = nodes.shift();
|
|
49
|
+
if (node && isElement(node)) {
|
|
50
|
+
if (value && node.getAttribute(attribute) === value) {
|
|
51
|
+
return node;
|
|
52
|
+
} else if (node.getAttribute(attribute)) {
|
|
53
|
+
return node;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
nodes = childNodesOfElement(node).concat(nodes);
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
function isElement(el) {
|
|
61
|
+
// @ts-expect-error checking if is an element
|
|
62
|
+
return typeof el.getAttribute == 'function';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var _Portal;
|
|
66
|
+
const MaybeInElement = setComponentTemplate(precompileTemplate("\n {{#if @renderInPlace}}\n {{yield}}\n {{else if @destinationElement}}\n {{#in-element @destinationElement insertBefore=null}}\n {{yield}}\n {{/in-element}}\n {{/if}}\n", {
|
|
67
|
+
strictMode: true
|
|
68
|
+
}), templateOnly());
|
|
69
|
+
function findParentPortal(origin) {
|
|
70
|
+
if (!origin) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
let parent = origin.parentElement;
|
|
74
|
+
while (parent) {
|
|
75
|
+
if (parent.getAttribute('data-portal') === 'true') {
|
|
76
|
+
return parent;
|
|
77
|
+
}
|
|
78
|
+
parent = parent.parentElement;
|
|
79
|
+
}
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
function findClosestPortalTarget(element, name) {
|
|
83
|
+
if (!element) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
let parent = element.parentElement;
|
|
87
|
+
while (parent) {
|
|
88
|
+
if (name) {
|
|
89
|
+
const target = getElementByAttribute(parent, 'data-portal-for', name);
|
|
90
|
+
if (target) {
|
|
91
|
+
return target;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const target = getElementByAttribute(parent, 'data-portal-target', 'true');
|
|
95
|
+
if (target && target.getAttribute('data-portal-for') === null) {
|
|
96
|
+
return target;
|
|
97
|
+
}
|
|
98
|
+
parent = parent.parentElement;
|
|
99
|
+
}
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
class Portal extends Component {
|
|
103
|
+
constructor(...args) {
|
|
104
|
+
super(...args);
|
|
105
|
+
_defineProperty(this, "id", guidFor(this));
|
|
106
|
+
_defineProperty(this, "dom", getDOM(this));
|
|
107
|
+
_defineProperty(this, "needsTarget", destEl => {
|
|
108
|
+
if (this.args.renderInPlace || this.args.target) {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
return !!destEl && destEl.getAttribute('data-portal-target') !== 'true' && destEl.getAttribute('data-portal') !== 'true';
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
get destinationElement() {
|
|
115
|
+
const doc = this.dom;
|
|
116
|
+
if (!doc) {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
if (this.args.target) {
|
|
120
|
+
if (typeof this.args.target === 'string') {
|
|
121
|
+
if (this.args.target[0] === '#') {
|
|
122
|
+
return getElementById(doc, this.args.target.replace('#', ''));
|
|
123
|
+
}
|
|
124
|
+
const namedTarget = findClosestPortalTarget(this.portalMarker, this.args.target);
|
|
125
|
+
if (namedTarget) {
|
|
126
|
+
return namedTarget;
|
|
127
|
+
}
|
|
128
|
+
} else if (typeof this.args.target === 'object') {
|
|
129
|
+
return this.args.target;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
let containerEl = doc.body;
|
|
133
|
+
if (macroCondition(isTesting())) {
|
|
134
|
+
const testingContainer = getElementById(doc, 'ember-testing');
|
|
135
|
+
if (testingContainer) {
|
|
136
|
+
containerEl = testingContainer;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if (this.args.appendToParentPortal !== false) {
|
|
140
|
+
const parentPortal = findParentPortal(this.portalMarker);
|
|
141
|
+
if (parentPortal) {
|
|
142
|
+
return parentPortal;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
const portalTarget = findClosestPortalTarget(this.portalMarker);
|
|
146
|
+
if (portalTarget) {
|
|
147
|
+
return portalTarget;
|
|
148
|
+
}
|
|
149
|
+
return containerEl;
|
|
150
|
+
}
|
|
151
|
+
get portalMarker() {
|
|
152
|
+
const doc = this.dom;
|
|
153
|
+
if (!doc) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
return getElementById(doc, this.id);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
_Portal = Portal;
|
|
160
|
+
setComponentTemplate(precompileTemplate("\n <script type=\"x/portal-marker\" id={{this.id}}></script>\n\n {{#let this.destinationElement as |destinationElement|}}\n <MaybeInElement @renderInPlace={{@renderInPlace}} @destinationElement={{destinationElement}}>\n {{#if (this.needsTarget destinationElement)}}\n <PortalTarget>\n <div data-portal=\"true\" ...attributes>\n {{yield}}\n </div>\n </PortalTarget>\n {{else}}\n <div data-portal=\"true\" ...attributes>\n {{yield}}\n </div>\n {{/if}}\n </MaybeInElement>\n {{/let}}\n ", {
|
|
161
|
+
strictMode: true,
|
|
162
|
+
scope: () => ({
|
|
163
|
+
MaybeInElement,
|
|
164
|
+
PortalTarget
|
|
165
|
+
})
|
|
166
|
+
}), _Portal);
|
|
167
|
+
|
|
168
|
+
export { Portal as P, findParentPortal as f, getElementByAttribute as g };
|
|
169
|
+
//# sourceMappingURL=portal-Es7o21X5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"portal-Es7o21X5.js","sources":["../src/-private/dom.ts","../src/components/portal.gts"],"sourcesContent":["import { getOwner } from '@ember/owner';\n\nexport function getDOM(context: object): Document | null {\n const container = getOwner(context);\n if (!container) {\n return null;\n }\n const documentService = container.lookup('service:-document');\n\n if (documentService) {\n return documentService as Document;\n }\n return null;\n}\n\nfunction childNodesOfElement(\n element: Node | Element | null | undefined\n): (Node | Element)[] {\n if (!element) {\n return [];\n }\n\n const children = [];\n let child = element.firstChild;\n while (child) {\n children.push(child);\n child = child.nextSibling;\n }\n return children;\n}\n\nexport function getElementById(\n doc: Document | Element,\n id: string\n): null | Element {\n return getElementByAttribute(doc, 'id', id);\n}\n\nexport function getElementByAttribute(\n doc: Document | Element,\n attribute: string,\n value: string | undefined = undefined\n): null | Element {\n if (doc.querySelector) {\n if (value) {\n return doc.querySelector(`[${attribute}=${value}]`);\n } else {\n return doc.querySelector(`[${attribute}]`);\n }\n }\n\n let nodes = childNodesOfElement(doc);\n let node;\n\n while (nodes.length) {\n node = nodes.shift();\n\n if (node && isElement(node)) {\n if (value && node.getAttribute(attribute) === value) {\n return node as Element;\n } else if (node.getAttribute(attribute)) {\n return node as Element;\n }\n }\n\n nodes = childNodesOfElement(node).concat(nodes);\n }\n\n return null;\n}\n\nfunction isElement(el: Node | Element): el is Element {\n // @ts-expect-error checking if is an element\n return typeof el.getAttribute == 'function';\n}\n","import Component from '@glimmer/component';\nimport { getDOM, getElementById, getElementByAttribute } from '../-private/dom';\nimport type { TOC } from '@ember/component/template-only';\nimport { guidFor } from '@ember/object/internals';\nimport { isTesting, macroCondition } from '@embroider/macros';\nimport { PortalTarget } from './portal-target';\n\nconst MaybeInElement: TOC<{\n Args: {\n destinationElement?: Element | null;\n renderInPlace?: boolean;\n };\n Blocks: {\n default: [];\n };\n}> = <template>\n {{#if @renderInPlace}}\n {{yield}}\n {{else if @destinationElement}}\n {{#in-element @destinationElement insertBefore=null}}\n {{yield}}\n {{/in-element}}\n {{/if}}\n</template>;\n\ninterface PortalSignature {\n Args: {\n /**\n * Whether to render in place or in the specified/default destination\n *\n * @defaultValue false\n */\n renderInPlace?: boolean;\n\n /**\n * The target where to render the portal.\n * There are 3 options: 1) `Element` object, 2) element id, 3) portal target name.\n *\n * For element id, string must be prefixed with `#`.\n * If no value is passee in, we will render to the closest unnamed portal target,\n * parent portal or `document.body`.\n */\n target?: string | Element;\n\n /**\n * @defaultValue true\n */\n appendToParentPortal?: boolean;\n };\n Element: HTMLDivElement;\n Blocks: { default: [] };\n}\n\nfunction findParentPortal(origin: Element | null): Element | null {\n if (!origin) {\n return null;\n }\n\n let parent = origin.parentElement;\n while (parent) {\n if (parent.getAttribute('data-portal') === 'true') {\n return parent;\n }\n\n parent = parent.parentElement;\n }\n\n return null;\n}\n\nfunction findClosestPortalTarget(\n element: Element | null,\n name?: string\n): Element | null {\n if (!element) {\n return null;\n }\n\n let parent = element.parentElement;\n while (parent) {\n if (name) {\n const target = getElementByAttribute(parent, 'data-portal-for', name);\n if (target) {\n return target;\n }\n }\n const target = getElementByAttribute(parent, 'data-portal-target', 'true');\n if (target && target.getAttribute('data-portal-for') === null) {\n return target;\n }\n parent = parent.parentElement;\n }\n\n return null;\n}\n\nclass Portal extends Component<PortalSignature> {\n id = guidFor(this);\n dom = getDOM(this);\n\n get destinationElement(): Element | null {\n const doc = this.dom;\n if (!doc) {\n return null;\n }\n\n if (this.args.target) {\n if (typeof this.args.target === 'string') {\n if (this.args.target[0] === '#') {\n return getElementById(doc, this.args.target.replace('#', ''));\n }\n\n const namedTarget = findClosestPortalTarget(\n this.portalMarker,\n this.args.target\n );\n if (namedTarget) {\n return namedTarget;\n }\n } else if (typeof this.args.target === 'object') {\n return this.args.target;\n }\n }\n\n let containerEl: Element = doc.body;\n\n if (macroCondition(isTesting())) {\n const testingContainer = getElementById(doc, 'ember-testing');\n if (testingContainer) {\n containerEl = testingContainer;\n }\n }\n\n if (this.args.appendToParentPortal !== false) {\n const parentPortal = findParentPortal(this.portalMarker);\n if (parentPortal) {\n return parentPortal;\n }\n }\n\n const portalTarget = findClosestPortalTarget(this.portalMarker);\n if (portalTarget) {\n return portalTarget;\n }\n\n return containerEl;\n }\n\n get portalMarker(): Element | null {\n const doc = this.dom;\n if (!doc) {\n return null;\n }\n\n return getElementById(doc, this.id);\n }\n\n needsTarget = (destEl: Element | null): boolean => {\n if (this.args.renderInPlace || this.args.target) {\n return false;\n }\n\n return (\n !!destEl &&\n destEl.getAttribute('data-portal-target') !== 'true' &&\n destEl.getAttribute('data-portal') !== 'true'\n );\n };\n\n <template>\n <script type=\"x/portal-marker\" id={{this.id}}></script>\n\n {{#let this.destinationElement as |destinationElement|}}\n <MaybeInElement\n @renderInPlace={{@renderInPlace}}\n @destinationElement={{destinationElement}}\n >\n {{#if (this.needsTarget destinationElement)}}\n <PortalTarget>\n <div data-portal=\"true\" ...attributes>\n {{yield}}\n </div>\n </PortalTarget>\n {{else}}\n <div data-portal=\"true\" ...attributes>\n {{yield}}\n </div>\n {{/if}}\n </MaybeInElement>\n {{/let}}\n </template>\n}\n\nexport { Portal, type PortalSignature, findParentPortal };\nexport default Portal;\n"],"names":["getDOM","context","container","getOwner","documentService","lookup","childNodesOfElement","element","children","child","firstChild","push","nextSibling","getElementById","doc","id","getElementByAttribute","attribute","value","undefined","querySelector","nodes","node","length","shift","isElement","getAttribute","concat","el","MaybeInElement","setComponentTemplate","precompileTemplate","strictMode","templateOnly","findParentPortal","origin","parent","parentElement","findClosestPortalTarget","name","target","Portal","Component","constructor","args","_defineProperty","guidFor","destEl","renderInPlace","destinationElement","dom","replace","namedTarget","portalMarker","containerEl","body","macroCondition","isTesting","testingContainer","appendToParentPortal","parentPortal","portalTarget","_Portal","scope","PortalTarget"],"mappings":";;;;;;;;;;AAEO,SAASA,MAAMA,CAACC,OAAe,EAAmB;AACvD,EAAA,MAAMC,SAAS,GAAGC,QAAQ,CAACF,OAAO,CAAC;EACnC,IAAI,CAACC,SAAS,EAAE;AACd,IAAA,OAAO,IAAI;AACb;AACA,EAAA,MAAME,eAAe,GAAGF,SAAS,CAACG,MAAM,CAAC,mBAAmB,CAAC;AAE7D,EAAA,IAAID,eAAe,EAAE;AACnB,IAAA,OAAOA,eAAe;AACxB;AACA,EAAA,OAAO,IAAI;AACb;AAEA,SAASE,mBAAmBA,CAC1BC,OAA0C,EACtB;EACpB,IAAI,CAACA,OAAO,EAAE;AACZ,IAAA,OAAO,EAAE;AACX;EAEA,MAAMC,QAAQ,GAAG,EAAE;AACnB,EAAA,IAAIC,KAAK,GAAGF,OAAO,CAACG,UAAU;AAC9B,EAAA,OAAOD,KAAK,EAAE;AACZD,IAAAA,QAAQ,CAACG,IAAI,CAACF,KAAK,CAAC;IACpBA,KAAK,GAAGA,KAAK,CAACG,WAAW;AAC3B;AACA,EAAA,OAAOJ,QAAQ;AACjB;AAEO,SAASK,cAAcA,CAC5BC,GAAuB,EACvBC,EAAU,EACM;AAChB,EAAA,OAAOC,qBAAqB,CAACF,GAAG,EAAE,IAAI,EAAEC,EAAE,CAAC;AAC7C;AAEO,SAASC,qBAAqBA,CACnCF,GAAuB,EACvBG,SAAiB,EACjBC,KAAyB,GAAGC,SAAS,EACrB;EAChB,IAAIL,GAAG,CAACM,aAAa,EAAE;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I,IAAI,CAACd,IAAI,CAACe,oBAAoB,KAAK,KAAO,EAAA;AAC5C,MAAA,MAAMC,YAAe,GAAA1B,gBAAA,CAAiB,IAAI,CAACmB,YAAY,CAAA;AACvD,MAAA,IAAIO,YAAc,EAAA;AAChB,QAAA,OAAOA,YAAA;AACT;AACF;AAEA,IAAA,MAAMC,YAAe,GAAAvB,uBAAA,CAAwB,IAAI,CAACe,YAAY,CAAA;AAC9D,IAAA,IAAIQ,YAAc,EAAA;AAChB,MAAA,OAAOA,YAAA;AACT;AAEA,IAAA,OAAOP,WAAA;AACT;EAEA,IAAID,YAAAA,GAA+B;AACjC,IAAA,MAAMvC,GAAA,GAAM,IAAI,CAACoC,GAAG;IACpB,IAAI,CAACpC,GAAK,EAAA;AACR,MAAA,OAAO,IAAA;AACT;AAEA,IAAA,OAAOD,cAAe,CAAAC,GAAA,EAAK,IAAI,CAACC,EAAE,CAAA;AACpC;AAoCF;AAAA+C,OAAA,GA/FMrB;AAyEJX,oBAAA,CAAAC,kBAAA,CAqBA,gmBAAA,EAAA;EAAAC,UAAA,EAAA,IAAA;AAAA+B,EAAAA,KAAA,EAAAA,OAAA;IAAAlC,cAAA;AAAAmC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAF,OAAA,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontile/overlays",
|
|
3
|
-
"version": "0.17.0-
|
|
3
|
+
"version": "0.17.0-beta.2",
|
|
4
4
|
"description": "Component Library for Ember Octane apps: overlays",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -37,40 +37,41 @@
|
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@babel/runtime": ">= 7",
|
|
40
|
-
"ember-source": "
|
|
40
|
+
"ember-source": ">= 4.12.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@embroider/addon-shim": "^1.
|
|
44
|
-
"@
|
|
45
|
-
"@frontile/
|
|
46
|
-
"@
|
|
43
|
+
"@embroider/addon-shim": "^1.9.0",
|
|
44
|
+
"@embroider/macros": "^1.15.1",
|
|
45
|
+
"@frontile/buttons": "0.17.0-beta.2",
|
|
46
|
+
"@frontile/theme": "0.17.0-beta.2",
|
|
47
|
+
"@glint/template": "1.5.0",
|
|
47
48
|
"ember-click-outside": "^6.1.0",
|
|
48
49
|
"ember-css-transitions": "^4.4.0",
|
|
49
|
-
"ember-focus-trap": "^1.1.
|
|
50
|
+
"ember-focus-trap": "^1.1.1",
|
|
50
51
|
"ember-modifier": "^4.1.0",
|
|
51
52
|
"ember-velcro": "^2.1.3"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@babel/core": "7.
|
|
55
|
+
"@babel/core": "7.26.0",
|
|
55
56
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
56
|
-
"@babel/plugin-proposal-decorators": "7.
|
|
57
|
+
"@babel/plugin-proposal-decorators": "7.25.9",
|
|
57
58
|
"@babel/plugin-transform-class-static-block": "^7.23.4",
|
|
58
|
-
"@babel/preset-typescript": "7.
|
|
59
|
-
"@embroider/addon-dev": "
|
|
59
|
+
"@babel/preset-typescript": "7.26.0",
|
|
60
|
+
"@embroider/addon-dev": "7.0.0",
|
|
60
61
|
"@glimmer/component": "^1.1.2",
|
|
61
62
|
"@glimmer/tracking": "^1.1.2",
|
|
62
|
-
"@glint/core": "1.
|
|
63
|
-
"@glint/environment-ember-loose": "1.
|
|
64
|
-
"@glint/environment-ember-template-imports": "1.
|
|
63
|
+
"@glint/core": "1.5.0",
|
|
64
|
+
"@glint/environment-ember-loose": "1.5.0",
|
|
65
|
+
"@glint/environment-ember-template-imports": "1.5.0",
|
|
65
66
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
66
|
-
"@tsconfig/ember": "^3.0.
|
|
67
|
+
"@tsconfig/ember": "^3.0.5",
|
|
67
68
|
"babel-plugin-ember-template-compilation": "^2.2.1",
|
|
68
|
-
"concurrently": "^
|
|
69
|
-
"ember-source": "^5.
|
|
70
|
-
"rollup": "^4.
|
|
69
|
+
"concurrently": "^9.1.0",
|
|
70
|
+
"ember-source": "^5.12.0",
|
|
71
|
+
"rollup": "^4.25.0",
|
|
71
72
|
"rollup-plugin-ts": "^3.4.5",
|
|
72
73
|
"tailwindcss": "^3.4.1",
|
|
73
|
-
"typescript": "^5.
|
|
74
|
+
"typescript": "^5.4.2"
|
|
74
75
|
},
|
|
75
76
|
"engines": {
|
|
76
77
|
"node": ">= 10.*"
|
|
@@ -96,7 +97,9 @@
|
|
|
96
97
|
"./components/modal/footer.js": "./dist/_app_/components/modal/footer.js",
|
|
97
98
|
"./components/modal/header.js": "./dist/_app_/components/modal/header.js",
|
|
98
99
|
"./components/overlay.js": "./dist/_app_/components/overlay.js",
|
|
99
|
-
"./components/popover.js": "./dist/_app_/components/popover.js"
|
|
100
|
+
"./components/popover.js": "./dist/_app_/components/popover.js",
|
|
101
|
+
"./components/portal-target.js": "./dist/_app_/components/portal-target.js",
|
|
102
|
+
"./components/portal.js": "./dist/_app_/components/portal.js"
|
|
100
103
|
}
|
|
101
104
|
},
|
|
102
105
|
"exports": {
|
|
@@ -117,5 +120,5 @@
|
|
|
117
120
|
]
|
|
118
121
|
}
|
|
119
122
|
},
|
|
120
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "0755b1e3d6734ba228180026cc5dc65621bed57d"
|
|
121
124
|
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { type OverlayArgs } from '../overlay';
|
|
3
|
-
import DrawerBody from './body';
|
|
4
|
-
import DrawerFooter from './footer';
|
|
5
|
-
import DrawerHeader from './header';
|
|
6
|
-
import CloseButton from '@frontile/core/components/close-button';
|
|
7
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface DrawerArgs extends Omit<OverlayArgs, 'contentTransitionName'> {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the transition to be used in the Drawer.
|
|
11
|
-
*
|
|
12
|
-
* @defaultValue 'overlay-transition--slide-from-[placement]'
|
|
13
|
-
*/
|
|
14
|
-
transitionName?: string;
|
|
15
|
-
/**
|
|
16
|
-
* If set to false, the close button will not be displayed,
|
|
17
|
-
* closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set
|
|
18
|
-
* to false.
|
|
19
|
-
*
|
|
20
|
-
* @defaultValue true
|
|
21
|
-
*/
|
|
22
|
-
allowClosing?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* If set to false, the close button will not be displayed.
|
|
25
|
-
*
|
|
26
|
-
* @defaultValue true
|
|
27
|
-
*/
|
|
28
|
-
allowCloseButton?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* The Close Button size.
|
|
31
|
-
*/
|
|
32
|
-
closeButtonSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
33
|
-
/**
|
|
34
|
-
* The Drawer can appear from any side of the screen. The 'placement'
|
|
35
|
-
* option allows to choose where it appears from.
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue 'right'
|
|
38
|
-
*/
|
|
39
|
-
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
40
|
-
/**
|
|
41
|
-
* The Drawer size.
|
|
42
|
-
*
|
|
43
|
-
* @defaultValue 'md'
|
|
44
|
-
*/
|
|
45
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
46
|
-
}
|
|
47
|
-
export interface DrawerSignature {
|
|
48
|
-
Args: DrawerArgs;
|
|
49
|
-
Blocks: {
|
|
50
|
-
default: [
|
|
51
|
-
{
|
|
52
|
-
CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> &
|
|
53
|
-
WithBoundArgs<typeof CloseButton, 'class'>;
|
|
54
|
-
Header: WithBoundArgs<typeof DrawerHeader, 'labelledById'> &
|
|
55
|
-
WithBoundArgs<typeof DrawerHeader, 'size'>;
|
|
56
|
-
Body: WithBoundArgs<typeof DrawerBody, 'size'>;
|
|
57
|
-
Footer: WithBoundArgs<typeof DrawerFooter, 'size'>;
|
|
58
|
-
headerId: string;
|
|
59
|
-
}
|
|
60
|
-
];
|
|
61
|
-
};
|
|
62
|
-
Element: HTMLDivElement;
|
|
63
|
-
}
|
|
64
|
-
export default class Drawer extends Component<DrawerSignature> {
|
|
65
|
-
headerId: string;
|
|
66
|
-
get preventClosing(): boolean;
|
|
67
|
-
get showCloseButton(): boolean;
|
|
68
|
-
get placement(): 'left' | 'top' | 'bottom' | 'right';
|
|
69
|
-
get size(): string;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,68 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { type OverlayArgs } from '../overlay';
|
|
3
|
-
import ModalFooter from './footer';
|
|
4
|
-
import ModalBody from './body';
|
|
5
|
-
import ModalHeader from './header';
|
|
6
|
-
import CloseButton from '@frontile/core/components/close-button';
|
|
7
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
8
|
-
export interface ModalArgs extends Omit<OverlayArgs, 'contentTransitionName'> {
|
|
9
|
-
/**
|
|
10
|
-
* The name of the transition to be used in the modal.
|
|
11
|
-
* @defaultValue 'overlay-transition--zoom'
|
|
12
|
-
*/
|
|
13
|
-
transitionName?: string;
|
|
14
|
-
/**
|
|
15
|
-
* If set to false, the close button will not be displayed,
|
|
16
|
-
* closeOnOutsideClick will be set to false, and closeOnEscapeKey will also be set
|
|
17
|
-
* to false.
|
|
18
|
-
*
|
|
19
|
-
* @defaultValue true
|
|
20
|
-
*/
|
|
21
|
-
allowClosing?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* If set to false, the close button will not be displayed.
|
|
24
|
-
*
|
|
25
|
-
* @defaultValue true
|
|
26
|
-
*/
|
|
27
|
-
allowCloseButton?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* The Close Button size.
|
|
30
|
-
*/
|
|
31
|
-
closeButtonSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
32
|
-
/**
|
|
33
|
-
* If set to true, the modal will be vertically centered
|
|
34
|
-
*
|
|
35
|
-
* @defaultValue false
|
|
36
|
-
*/
|
|
37
|
-
isCentered?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* The Modal size.
|
|
40
|
-
*
|
|
41
|
-
* @defaultValue 'lg'
|
|
42
|
-
*/
|
|
43
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
44
|
-
}
|
|
45
|
-
export interface ModalSignature {
|
|
46
|
-
Args: ModalArgs;
|
|
47
|
-
Blocks: {
|
|
48
|
-
default: [
|
|
49
|
-
{
|
|
50
|
-
CloseButton: WithBoundArgs<typeof CloseButton, 'onClick'> &
|
|
51
|
-
WithBoundArgs<typeof CloseButton, 'class'>;
|
|
52
|
-
Header: WithBoundArgs<typeof ModalHeader, 'labelledById'> &
|
|
53
|
-
WithBoundArgs<typeof ModalHeader, 'size'>;
|
|
54
|
-
Body: WithBoundArgs<typeof ModalBody, 'size'>;
|
|
55
|
-
Footer: WithBoundArgs<typeof ModalFooter, 'size'>;
|
|
56
|
-
headerId: string;
|
|
57
|
-
}
|
|
58
|
-
];
|
|
59
|
-
};
|
|
60
|
-
Element: HTMLDivElement;
|
|
61
|
-
}
|
|
62
|
-
export default class Modal extends Component<ModalSignature> {
|
|
63
|
-
headerId: string;
|
|
64
|
-
get preventClosing(): boolean;
|
|
65
|
-
get showCloseButton(): boolean;
|
|
66
|
-
get size(): 'full' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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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