@uoguelph/web-components 1.2.0-rc.0 → 1.2.0-rc.10
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/README.md +0 -63
- package/dist/uofg-web-components/index-ClyJk2_i.js +977 -0
- package/dist/uofg-web-components/uofg-alert.esm.js +154 -0
- package/dist/uofg-web-components/uofg-footer.esm.js +429 -0
- package/dist/uofg-web-components/uofg-header.esm.js +2404 -0
- package/dist/uofg-web-components/uofg-modal.esm.js +329 -0
- package/dist/uofg-web-components/uofg-web-components.css +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +8 -1
- package/package.json +21 -35
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-06b58d35.js +0 -32
- package/dist/cjs/index-cdb046b4.js +0 -2092
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/uofg-alert.cjs.entry.js +0 -21
- package/dist/cjs/uofg-back-to-top_5.cjs.entry.js +0 -1374
- package/dist/cjs/uofg-modal.cjs.entry.js +0 -172
- package/dist/cjs/uofg-web-components.cjs.js +0 -25
- package/dist/cjs/utils-3d4b7e2e.js +0 -16
- package/dist/collection/collection-manifest.json +0 -18
- package/dist/collection/components/uofg-alert/uofg-alert.css +0 -1
- package/dist/collection/components/uofg-alert/uofg-alert.js +0 -20
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.css +0 -1
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.js +0 -71
- package/dist/collection/components/uofg-card/uofg-card.css +0 -1
- package/dist/collection/components/uofg-card/uofg-card.js +0 -45
- package/dist/collection/components/uofg-footer/improve-life.svg +0 -4
- package/dist/collection/components/uofg-footer/uofg-footer.css +0 -1
- package/dist/collection/components/uofg-footer/uofg-footer.js +0 -153
- package/dist/collection/components/uofg-header/decoration.svg +0 -1
- package/dist/collection/components/uofg-header/logo-full.svg +0 -1
- package/dist/collection/components/uofg-header/logo-reduced.svg +0 -1
- package/dist/collection/components/uofg-header/uofg-header.css +0 -1
- package/dist/collection/components/uofg-header/uofg-header.js +0 -253
- package/dist/collection/components/uofg-menu/uofg-menu.js +0 -438
- package/dist/collection/components/uofg-modal/uofg-modal.css +0 -1
- package/dist/collection/components/uofg-modal/uofg-modal.js +0 -417
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/font-awesome-icon.js +0 -7
- package/dist/collection/utils/utils.js +0 -13
- package/dist/components/font-awesome-icon.js +0 -10
- package/dist/components/index.d.ts +0 -50
- package/dist/components/index.js +0 -8
- package/dist/components/index2.js +0 -18
- package/dist/components/uofg-alert.d.ts +0 -11
- package/dist/components/uofg-alert.js +0 -36
- package/dist/components/uofg-back-to-top.d.ts +0 -11
- package/dist/components/uofg-back-to-top.js +0 -52
- package/dist/components/uofg-card.d.ts +0 -11
- package/dist/components/uofg-card.js +0 -40
- package/dist/components/uofg-footer.d.ts +0 -11
- package/dist/components/uofg-footer.js +0 -751
- package/dist/components/uofg-header.d.ts +0 -11
- package/dist/components/uofg-header.js +0 -385
- package/dist/components/uofg-menu.d.ts +0 -11
- package/dist/components/uofg-menu.js +0 -6
- package/dist/components/uofg-menu2.js +0 -268
- package/dist/components/uofg-modal.d.ts +0 -11
- package/dist/components/uofg-modal.js +0 -201
- package/dist/components/utils.js +0 -12
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/index-0b0002d2.js +0 -2062
- package/dist/esm/index-e685921a.js +0 -27
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/uofg-alert.entry.js +0 -17
- package/dist/esm/uofg-back-to-top_5.entry.js +0 -1366
- package/dist/esm/uofg-modal.entry.js +0 -168
- package/dist/esm/uofg-web-components.js +0 -20
- package/dist/esm/utils-379bb71a.js +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/uofg-alert/uofg-alert.d.ts +0 -3
- package/dist/types/components/uofg-back-to-top/uofg-back-to-top.d.ts +0 -10
- package/dist/types/components/uofg-card/uofg-card.d.ts +0 -7
- package/dist/types/components/uofg-footer/uofg-footer.d.ts +0 -8
- package/dist/types/components/uofg-header/uofg-header.d.ts +0 -37
- package/dist/types/components/uofg-menu/uofg-menu.d.ts +0 -68
- package/dist/types/components/uofg-modal/uofg-modal.d.ts +0 -77
- package/dist/types/components.d.ts +0 -303
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1681
- package/dist/types/utils/font-awesome-icon.d.ts +0 -5
- package/dist/types/utils/utils.d.ts +0 -4
- package/dist/uofg-web-components/index.esm.js +0 -0
- package/dist/uofg-web-components/p-6fa0f8f6.js +0 -1
- package/dist/uofg-web-components/p-7569d8f2.entry.js +0 -1
- package/dist/uofg-web-components/p-bce5df9d.entry.js +0 -1
- package/dist/uofg-web-components/p-e1255160.js +0 -1
- package/dist/uofg-web-components/p-ee27db22.js +0 -2
- package/dist/uofg-web-components/p-fde6370b.entry.js +0 -1
- package/dist/uofg-web-components/p-fec87f9d.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { FontAwesomeIcon } from "../../utils/font-awesome-icon";
|
|
3
|
-
import { faTimes } from "@fortawesome/free-solid-svg-icons";
|
|
4
|
-
import { getAllFocusableElements } from "../../utils/utils";
|
|
5
|
-
/**
|
|
6
|
-
* @part content - The modal content container.
|
|
7
|
-
* @part dismiss-button - The button that closes the modal.
|
|
8
|
-
*/
|
|
9
|
-
export class UofgModal {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.inertElements = [];
|
|
12
|
-
this.label = undefined;
|
|
13
|
-
this.alertDialog = false;
|
|
14
|
-
this.centered = false;
|
|
15
|
-
this.staticBackdrop = false;
|
|
16
|
-
this.autoOpen = false;
|
|
17
|
-
this.isOpen = false;
|
|
18
|
-
}
|
|
19
|
-
connectedCallback() {
|
|
20
|
-
// Bind event handlers so that 'this' is always the component instance.
|
|
21
|
-
this.handleClick = this.handleClick.bind(this);
|
|
22
|
-
this.handleKeyUp = this.handleKeyUp.bind(this);
|
|
23
|
-
this.handleFocusOut = this.handleFocusOut.bind(this);
|
|
24
|
-
if (this.autoOpen) {
|
|
25
|
-
this.isOpen = true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
disconnectedCallback() {
|
|
29
|
-
// Just in case the modal is removed from the DOM before it is closed, make sure to remove the inert attribute from all elements that we marked as inert when the modal was opened.
|
|
30
|
-
for (const element of this.inertElements) {
|
|
31
|
-
element.removeAttribute('inert');
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
handleClick(e) {
|
|
35
|
-
if (!this.staticBackdrop && e.target === e.currentTarget) {
|
|
36
|
-
this.isOpen = false;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
handleKeyUp(e) {
|
|
40
|
-
if (e.key === 'Escape') {
|
|
41
|
-
this.isOpen = false;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
handleFocusOut(e) {
|
|
45
|
-
var _a;
|
|
46
|
-
if (!this.isOpen)
|
|
47
|
-
return; // Don't do anything if the modal is closed.
|
|
48
|
-
const relatedTarget = e.relatedTarget;
|
|
49
|
-
// If the focus is moving outside the modal
|
|
50
|
-
if (!this.container.contains(relatedTarget) && !this.el.contains(relatedTarget)) {
|
|
51
|
-
e.preventDefault();
|
|
52
|
-
// If the focus is moving away from the dismiss button, focus the last focusable element in the modal.
|
|
53
|
-
if (e.target === this.dismissButton) {
|
|
54
|
-
const focusableElements = getAllFocusableElements(this.el);
|
|
55
|
-
(_a = focusableElements[focusableElements.length - 1]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
// Otherwise, focus the dismiss button.
|
|
59
|
-
this.dismissButton.focus();
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
handleIsOpenChange(newValue) {
|
|
64
|
-
if (newValue) {
|
|
65
|
-
window.requestAnimationFrame(() => {
|
|
66
|
-
window.requestAnimationFrame(() => {
|
|
67
|
-
window.requestAnimationFrame(() => {
|
|
68
|
-
// Focus the container element when the modal is opened, so that the screen reader's will announce the modal when it opens.
|
|
69
|
-
this.container.focus();
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
// Mark outer elements as inert when the modal is open.
|
|
74
|
-
let current = this.el;
|
|
75
|
-
// We want to mark all elements outside the modal as inert, so we need to traverse up the DOM tree until we reach the body element.
|
|
76
|
-
while (current !== null && current !== document.body) {
|
|
77
|
-
const parent = current.parentElement;
|
|
78
|
-
// If parent is null, then we may be inside a shadow root. If so, we get the host element and continue traversing up the DOM tree.
|
|
79
|
-
if (parent === null) {
|
|
80
|
-
const root = current.getRootNode();
|
|
81
|
-
if (root instanceof ShadowRoot) {
|
|
82
|
-
current = root.host;
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (parent !== null) {
|
|
87
|
-
for (const child of parent.children) {
|
|
88
|
-
if (child !== current && !child.inert) {
|
|
89
|
-
// Mark the element as inert and store it in an array so that we can remove the inert attribute when the modal closes.
|
|
90
|
-
child.inert = true;
|
|
91
|
-
this.inertElements.push(child);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
current = parent;
|
|
96
|
-
this.opened.emit();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
else {
|
|
100
|
-
// Remove the inert attribute from all elements that we marked as inert when the modal was opened.
|
|
101
|
-
for (const element of this.inertElements) {
|
|
102
|
-
element.removeAttribute('inert');
|
|
103
|
-
}
|
|
104
|
-
// Clear the array of inert elements. This is important because we don't want to keep a reference to elements as they may be removed from the DOM and we could cause a memory leak.
|
|
105
|
-
this.inertElements = [];
|
|
106
|
-
this.closed.emit();
|
|
107
|
-
}
|
|
108
|
-
// Prevent scrolling of the body when the modal is open.
|
|
109
|
-
document.body.style.overflow = newValue ? 'hidden' : '';
|
|
110
|
-
}
|
|
111
|
-
render() {
|
|
112
|
-
return (h("div", { key: 'c66f0986068658cc29b9c12715381a0fd40678c9', class: {
|
|
113
|
-
'tw-visible tw-opacity-100': this.isOpen,
|
|
114
|
-
'tw-invisible tw-opacity-0': !this.isOpen,
|
|
115
|
-
'tw-fixed tw-left-0 tw-top-0 tw-z-[1000] tw-flex tw-h-screen tw-w-screen tw-bg-black tw-bg-opacity-50 tw-transition-[opacity,visibility]': true,
|
|
116
|
-
}, role: this.alertDialog ? 'alertdialog' : 'dialog', "aria-modal": this.isOpen ? 'true' : '', "aria-label": this.label, tabIndex: -1, onClick: this.handleClick, onKeyUp: this.handleKeyUp, onFocusout: this.handleFocusOut, ref: (el) => (this.container = el) }, h("div", { key: 'f6d05f9834e3d5398aa5cd0897605d5b16014c2e', part: "content", class: {
|
|
117
|
-
'tw-visible tw-opacity-100': this.isOpen,
|
|
118
|
-
'tw-translate-y-[calc(-50%_-_50px)]': !this.isOpen && this.centered,
|
|
119
|
-
'tw-translate-y-[-50px]': (!this.isOpen && !this.centered) || (this.isOpen && this.centered),
|
|
120
|
-
'tw-z-1 tw-absolute tw-left-1/2 tw-h-fit tw-max-h-full tw-w-fit tw-max-w-full -tw-translate-x-1/2 tw-overflow-auto tw-p-8 tw-transition-transform motion-reduce:tw-transition-none': true,
|
|
121
|
-
} }, h("button", { key: 'eecbcc13c724410cb085bec5e26f6a2a4c55c32a', class: "[&>svg]:h-[1em] tw-absolute tw-right-8 tw-top-8 tw-z-[2] tw-flex tw-h-12 tw-w-12 tw-items-center tw-justify-center tw-border-0 tw-bg-transparent tw-text-3xl tw-p-2 tw-text-[var(--uofg-modal-dismiss-color,white)] [&>svg]:tw-h-[1em] [&>svg]:tw-fill-current", part: "dismiss-button", "aria-label": "Close modal", ref: (el) => (this.dismissButton = el), onClick: () => (this.isOpen = false) }, h(FontAwesomeIcon, { key: '735ceec0b5bbace91a40db729d7b530767b8593a', icon: faTimes })), h("slot", { key: 'b3b156aa4d3859a1d827a9d826a8d91b8f379f18' }))));
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Get the current state of the modal.
|
|
125
|
-
* @returns A promise which will resolve to true when the modal is open, or false when the modal is closed.
|
|
126
|
-
*/
|
|
127
|
-
async getState() {
|
|
128
|
-
return this.isOpen;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Set the state of the modal.
|
|
132
|
-
* @param value The new state, set it to true to open the modal, or false to close the modal.
|
|
133
|
-
*/
|
|
134
|
-
async setState(value) {
|
|
135
|
-
this.isOpen = value;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Toggle the state of the modal.
|
|
139
|
-
* @returns A promise which will resolve to true (if the modal opened) or false (if the modal closed).
|
|
140
|
-
*/
|
|
141
|
-
async toggle() {
|
|
142
|
-
this.isOpen = !this.isOpen;
|
|
143
|
-
return this.isOpen;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Closes the modal.
|
|
147
|
-
* @returns empty Promise.
|
|
148
|
-
*/
|
|
149
|
-
async close() {
|
|
150
|
-
this.isOpen = false;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Opens the modal.
|
|
154
|
-
* @returns empty Promise.
|
|
155
|
-
*/
|
|
156
|
-
async open() {
|
|
157
|
-
this.isOpen = true;
|
|
158
|
-
}
|
|
159
|
-
static get is() { return "uofg-modal"; }
|
|
160
|
-
static get encapsulation() { return "shadow"; }
|
|
161
|
-
static get originalStyleUrls() {
|
|
162
|
-
return {
|
|
163
|
-
"$": ["uofg-modal.css"]
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
static get styleUrls() {
|
|
167
|
-
return {
|
|
168
|
-
"$": ["uofg-modal.css"]
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
static get properties() {
|
|
172
|
-
return {
|
|
173
|
-
"label": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"mutable": false,
|
|
176
|
-
"complexType": {
|
|
177
|
-
"original": "string",
|
|
178
|
-
"resolved": "string",
|
|
179
|
-
"references": {}
|
|
180
|
-
},
|
|
181
|
-
"required": false,
|
|
182
|
-
"optional": false,
|
|
183
|
-
"docs": {
|
|
184
|
-
"tags": [],
|
|
185
|
-
"text": "The label for the modal. It is recommended that you set this to describe the modal's content.\nThis is required for accessibility."
|
|
186
|
-
},
|
|
187
|
-
"attribute": "label",
|
|
188
|
-
"reflect": false
|
|
189
|
-
},
|
|
190
|
-
"alertDialog": {
|
|
191
|
-
"type": "boolean",
|
|
192
|
-
"mutable": false,
|
|
193
|
-
"complexType": {
|
|
194
|
-
"original": "boolean",
|
|
195
|
-
"resolved": "boolean",
|
|
196
|
-
"references": {}
|
|
197
|
-
},
|
|
198
|
-
"required": false,
|
|
199
|
-
"optional": false,
|
|
200
|
-
"docs": {
|
|
201
|
-
"tags": [],
|
|
202
|
-
"text": "Used to determine whether the modal should be rendered as an alert dialog.\nThis is useful for when you want to use the modal to alert the user of something, rather than to ask the user to make a decision.\nIf this is set to true, the modal will be rendered with a role of \"alertdialog\" instead of \"dialog\"."
|
|
203
|
-
},
|
|
204
|
-
"attribute": "alert-dialog",
|
|
205
|
-
"reflect": false,
|
|
206
|
-
"defaultValue": "false"
|
|
207
|
-
},
|
|
208
|
-
"centered": {
|
|
209
|
-
"type": "boolean",
|
|
210
|
-
"mutable": false,
|
|
211
|
-
"complexType": {
|
|
212
|
-
"original": "boolean",
|
|
213
|
-
"resolved": "boolean",
|
|
214
|
-
"references": {}
|
|
215
|
-
},
|
|
216
|
-
"required": false,
|
|
217
|
-
"optional": false,
|
|
218
|
-
"docs": {
|
|
219
|
-
"tags": [],
|
|
220
|
-
"text": "Used to determine whether the modal content is centered vertically."
|
|
221
|
-
},
|
|
222
|
-
"attribute": "centered",
|
|
223
|
-
"reflect": false,
|
|
224
|
-
"defaultValue": "false"
|
|
225
|
-
},
|
|
226
|
-
"staticBackdrop": {
|
|
227
|
-
"type": "boolean",
|
|
228
|
-
"mutable": false,
|
|
229
|
-
"complexType": {
|
|
230
|
-
"original": "boolean",
|
|
231
|
-
"resolved": "boolean",
|
|
232
|
-
"references": {}
|
|
233
|
-
},
|
|
234
|
-
"required": false,
|
|
235
|
-
"optional": false,
|
|
236
|
-
"docs": {
|
|
237
|
-
"tags": [],
|
|
238
|
-
"text": "Used to determine whether clicking on the backdrop of the modal will close the modal.\nIf this is set to true, clicking on the backdrop will NOT close the modal."
|
|
239
|
-
},
|
|
240
|
-
"attribute": "static-backdrop",
|
|
241
|
-
"reflect": false,
|
|
242
|
-
"defaultValue": "false"
|
|
243
|
-
},
|
|
244
|
-
"autoOpen": {
|
|
245
|
-
"type": "boolean",
|
|
246
|
-
"mutable": false,
|
|
247
|
-
"complexType": {
|
|
248
|
-
"original": "boolean",
|
|
249
|
-
"resolved": "boolean",
|
|
250
|
-
"references": {}
|
|
251
|
-
},
|
|
252
|
-
"required": false,
|
|
253
|
-
"optional": false,
|
|
254
|
-
"docs": {
|
|
255
|
-
"tags": [],
|
|
256
|
-
"text": "Used to determine whether the modal should open automatically when the component is first rendered.\nIt is important to ensure this is only set to true for ONE modal on the page."
|
|
257
|
-
},
|
|
258
|
-
"attribute": "auto-open",
|
|
259
|
-
"reflect": false,
|
|
260
|
-
"defaultValue": "false"
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
static get states() {
|
|
265
|
-
return {
|
|
266
|
-
"isOpen": {}
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
static get events() {
|
|
270
|
-
return [{
|
|
271
|
-
"method": "opened",
|
|
272
|
-
"name": "opened",
|
|
273
|
-
"bubbles": false,
|
|
274
|
-
"cancelable": false,
|
|
275
|
-
"composed": true,
|
|
276
|
-
"docs": {
|
|
277
|
-
"tags": [],
|
|
278
|
-
"text": "Dispatched whenever the modal is opened whether by user interaction or programmatically (e.g. open())."
|
|
279
|
-
},
|
|
280
|
-
"complexType": {
|
|
281
|
-
"original": "void",
|
|
282
|
-
"resolved": "void",
|
|
283
|
-
"references": {}
|
|
284
|
-
}
|
|
285
|
-
}, {
|
|
286
|
-
"method": "closed",
|
|
287
|
-
"name": "closed",
|
|
288
|
-
"bubbles": false,
|
|
289
|
-
"cancelable": false,
|
|
290
|
-
"composed": true,
|
|
291
|
-
"docs": {
|
|
292
|
-
"tags": [],
|
|
293
|
-
"text": "Dispatched whenever the modal is closed whether by user interaction or programmatically (e.g. close())."
|
|
294
|
-
},
|
|
295
|
-
"complexType": {
|
|
296
|
-
"original": "void",
|
|
297
|
-
"resolved": "void",
|
|
298
|
-
"references": {}
|
|
299
|
-
}
|
|
300
|
-
}];
|
|
301
|
-
}
|
|
302
|
-
static get methods() {
|
|
303
|
-
return {
|
|
304
|
-
"getState": {
|
|
305
|
-
"complexType": {
|
|
306
|
-
"signature": "() => Promise<boolean>",
|
|
307
|
-
"parameters": [],
|
|
308
|
-
"references": {
|
|
309
|
-
"Promise": {
|
|
310
|
-
"location": "global",
|
|
311
|
-
"id": "global::Promise"
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
"return": "Promise<boolean>"
|
|
315
|
-
},
|
|
316
|
-
"docs": {
|
|
317
|
-
"text": "Get the current state of the modal.",
|
|
318
|
-
"tags": [{
|
|
319
|
-
"name": "returns",
|
|
320
|
-
"text": "A promise which will resolve to true when the modal is open, or false when the modal is closed."
|
|
321
|
-
}]
|
|
322
|
-
}
|
|
323
|
-
},
|
|
324
|
-
"setState": {
|
|
325
|
-
"complexType": {
|
|
326
|
-
"signature": "(value: boolean) => Promise<void>",
|
|
327
|
-
"parameters": [{
|
|
328
|
-
"name": "value",
|
|
329
|
-
"type": "boolean",
|
|
330
|
-
"docs": "The new state, set it to true to open the modal, or false to close the modal."
|
|
331
|
-
}],
|
|
332
|
-
"references": {
|
|
333
|
-
"Promise": {
|
|
334
|
-
"location": "global",
|
|
335
|
-
"id": "global::Promise"
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
"return": "Promise<void>"
|
|
339
|
-
},
|
|
340
|
-
"docs": {
|
|
341
|
-
"text": "Set the state of the modal.",
|
|
342
|
-
"tags": [{
|
|
343
|
-
"name": "param",
|
|
344
|
-
"text": "value The new state, set it to true to open the modal, or false to close the modal."
|
|
345
|
-
}]
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
"toggle": {
|
|
349
|
-
"complexType": {
|
|
350
|
-
"signature": "() => Promise<boolean>",
|
|
351
|
-
"parameters": [],
|
|
352
|
-
"references": {
|
|
353
|
-
"Promise": {
|
|
354
|
-
"location": "global",
|
|
355
|
-
"id": "global::Promise"
|
|
356
|
-
}
|
|
357
|
-
},
|
|
358
|
-
"return": "Promise<boolean>"
|
|
359
|
-
},
|
|
360
|
-
"docs": {
|
|
361
|
-
"text": "Toggle the state of the modal.",
|
|
362
|
-
"tags": [{
|
|
363
|
-
"name": "returns",
|
|
364
|
-
"text": "A promise which will resolve to true (if the modal opened) or false (if the modal closed)."
|
|
365
|
-
}]
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
"close": {
|
|
369
|
-
"complexType": {
|
|
370
|
-
"signature": "() => Promise<void>",
|
|
371
|
-
"parameters": [],
|
|
372
|
-
"references": {
|
|
373
|
-
"Promise": {
|
|
374
|
-
"location": "global",
|
|
375
|
-
"id": "global::Promise"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
"return": "Promise<void>"
|
|
379
|
-
},
|
|
380
|
-
"docs": {
|
|
381
|
-
"text": "Closes the modal.",
|
|
382
|
-
"tags": [{
|
|
383
|
-
"name": "returns",
|
|
384
|
-
"text": "empty Promise."
|
|
385
|
-
}]
|
|
386
|
-
}
|
|
387
|
-
},
|
|
388
|
-
"open": {
|
|
389
|
-
"complexType": {
|
|
390
|
-
"signature": "() => Promise<void>",
|
|
391
|
-
"parameters": [],
|
|
392
|
-
"references": {
|
|
393
|
-
"Promise": {
|
|
394
|
-
"location": "global",
|
|
395
|
-
"id": "global::Promise"
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
"return": "Promise<void>"
|
|
399
|
-
},
|
|
400
|
-
"docs": {
|
|
401
|
-
"text": "Opens the modal.",
|
|
402
|
-
"tags": [{
|
|
403
|
-
"name": "returns",
|
|
404
|
-
"text": "empty Promise."
|
|
405
|
-
}]
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
static get elementRef() { return "el"; }
|
|
411
|
-
static get watchers() {
|
|
412
|
-
return [{
|
|
413
|
-
"propName": "isOpen",
|
|
414
|
-
"methodName": "handleIsOpenChange"
|
|
415
|
-
}];
|
|
416
|
-
}
|
|
417
|
-
}
|
package/dist/collection/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
export const FontAwesomeIcon = props => {
|
|
3
|
-
const width = props.icon.icon[0];
|
|
4
|
-
const height = props.icon.icon[1];
|
|
5
|
-
const iconPathData = props.icon.icon[4];
|
|
6
|
-
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}` }, Array.isArray(iconPathData) ? (iconPathData.map(path => h("path", { d: path }))) : (h("path", { d: iconPathData }))));
|
|
7
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const WEB_ANIMATIONS_SUPPORTED = () => {
|
|
2
|
-
return typeof window !== 'undefined' && 'animate' in HTMLElement.prototype;
|
|
3
|
-
};
|
|
4
|
-
export const PREFERS_REDUCED_MOTION = () => {
|
|
5
|
-
return typeof window !== 'undefined' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
6
|
-
};
|
|
7
|
-
export const IS_INERT_SUPPORTED = () => {
|
|
8
|
-
return typeof window !== 'undefined' && 'inert' in HTMLElement.prototype;
|
|
9
|
-
};
|
|
10
|
-
export const getAllFocusableElements = (container) => {
|
|
11
|
-
const query = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [contenteditable], audio[controls], video[controls], details, summary, [tabindex]:not([tabindex="-1"])';
|
|
12
|
-
return Array.from(container.querySelectorAll(query));
|
|
13
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const FontAwesomeIcon = props => {
|
|
4
|
-
const width = props.icon.icon[0];
|
|
5
|
-
const height = props.icon.icon[1];
|
|
6
|
-
const iconPathData = props.icon.icon[4];
|
|
7
|
-
return (h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}` }, Array.isArray(iconPathData) ? (iconPathData.map(path => h("path", { d: path }))) : (h("path", { d: iconPathData }))));
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export { FontAwesomeIcon as F };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/* UofgWebComponents custom elements */
|
|
2
|
-
export { UofgAlert as UofgAlert } from '../types/components/uofg-alert/uofg-alert';
|
|
3
|
-
export { defineCustomElement as defineCustomElementUofgAlert } from './uofg-alert';
|
|
4
|
-
export { UofgBackToTop as UofgBackToTop } from '../types/components/uofg-back-to-top/uofg-back-to-top';
|
|
5
|
-
export { defineCustomElement as defineCustomElementUofgBackToTop } from './uofg-back-to-top';
|
|
6
|
-
export { UofgCard as UofgCard } from '../types/components/uofg-card/uofg-card';
|
|
7
|
-
export { defineCustomElement as defineCustomElementUofgCard } from './uofg-card';
|
|
8
|
-
export { UofgFooter as UofgFooter } from '../types/components/uofg-footer/uofg-footer';
|
|
9
|
-
export { defineCustomElement as defineCustomElementUofgFooter } from './uofg-footer';
|
|
10
|
-
export { UofgHeader as UofgHeader } from '../types/components/uofg-header/uofg-header';
|
|
11
|
-
export { defineCustomElement as defineCustomElementUofgHeader } from './uofg-header';
|
|
12
|
-
export { UofgMenu as UofgMenu } from '../types/components/uofg-menu/uofg-menu';
|
|
13
|
-
export { defineCustomElement as defineCustomElementUofgMenu } from './uofg-menu';
|
|
14
|
-
export { UofgModal as UofgModal } from '../types/components/uofg-modal/uofg-modal';
|
|
15
|
-
export { defineCustomElement as defineCustomElementUofgModal } from './uofg-modal';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
19
|
-
* if the path needs to be customized.
|
|
20
|
-
*/
|
|
21
|
-
export declare const getAssetPath: (path: string) => string;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Used to manually set the base path where assets can be found.
|
|
25
|
-
* If the script is used as "module", it's recommended to use "import.meta.url",
|
|
26
|
-
* such as "setAssetPath(import.meta.url)". Other options include
|
|
27
|
-
* "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
|
|
28
|
-
* dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
|
|
29
|
-
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
30
|
-
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
31
|
-
* will have to ensure the static assets are copied to its build directory.
|
|
32
|
-
*/
|
|
33
|
-
export declare const setAssetPath: (path: string) => void;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
37
|
-
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
38
|
-
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
39
|
-
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
40
|
-
* will result in the same behavior.
|
|
41
|
-
*/
|
|
42
|
-
export declare const setNonce: (nonce: string) => void
|
|
43
|
-
|
|
44
|
-
export interface SetPlatformOptions {
|
|
45
|
-
raf?: (c: FrameRequestCallback) => number;
|
|
46
|
-
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
47
|
-
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
48
|
-
}
|
|
49
|
-
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
50
|
-
export * from '../types';
|
package/dist/components/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
2
|
-
export { UofgAlert, defineCustomElement as defineCustomElementUofgAlert } from './uofg-alert.js';
|
|
3
|
-
export { UofgBackToTop, defineCustomElement as defineCustomElementUofgBackToTop } from './uofg-back-to-top.js';
|
|
4
|
-
export { UofgCard, defineCustomElement as defineCustomElementUofgCard } from './uofg-card.js';
|
|
5
|
-
export { UofgFooter, defineCustomElement as defineCustomElementUofgFooter } from './uofg-footer.js';
|
|
6
|
-
export { UofgHeader, defineCustomElement as defineCustomElementUofgHeader } from './uofg-header.js';
|
|
7
|
-
export { UofgMenu, defineCustomElement as defineCustomElementUofgMenu } from './uofg-menu.js';
|
|
8
|
-
export { UofgModal, defineCustomElement as defineCustomElementUofgModal } from './uofg-modal.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var faCircleExclamation = {
|
|
2
|
-
prefix: 'fas',
|
|
3
|
-
iconName: 'circle-exclamation',
|
|
4
|
-
icon: [512, 512, ["exclamation-circle"], "f06a", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]
|
|
5
|
-
};
|
|
6
|
-
var faChevronUp = {
|
|
7
|
-
prefix: 'fas',
|
|
8
|
-
iconName: 'chevron-up',
|
|
9
|
-
icon: [512, 512, [], "f077", "M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]
|
|
10
|
-
};
|
|
11
|
-
var faXmark = {
|
|
12
|
-
prefix: 'fas',
|
|
13
|
-
iconName: 'xmark',
|
|
14
|
-
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]
|
|
15
|
-
};
|
|
16
|
-
var faTimes = faXmark;
|
|
17
|
-
|
|
18
|
-
export { faChevronUp as a, faTimes as b, faCircleExclamation as f };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface UofgAlert extends Components.UofgAlert, HTMLElement {}
|
|
4
|
-
export const UofgAlert: {
|
|
5
|
-
prototype: UofgAlert;
|
|
6
|
-
new (): UofgAlert;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { F as FontAwesomeIcon } from './font-awesome-icon.js';
|
|
3
|
-
import { f as faCircleExclamation } from './index2.js';
|
|
4
|
-
|
|
5
|
-
const uofgAlertCss = ":host{display:block;max-width:100rem}*{box-sizing:border-box}a{text-decoration:none;color:inherit}button{border:none;background:none;cursor:pointer;font-size:inherit;font-family:inherit;color:inherit;line-height:inherit;word-spacing:inherit;letter-spacing:inherit}ul{list-style:none;padding:0;margin:0}@defaults border-spacing{--tw-border-spacing-x:0;--tw-border-spacing-y:0}@defaults transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1}@defaults touch-action{}@defaults scroll-snap-type{--tw-scroll-snap-strictness:proximity}@defaults gradient-color-stops{}@defaults font-variant-numeric{}@defaults box-shadow{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}@defaults ring-width{--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}@defaults filter{}@defaults backdrop-filter{}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}.tw-flex{display:flex!important}.tw-flex-col{flex-direction:column!important}.tw-items-center{align-items:center!important}.tw-bg-uofg-grey{--tw-bg-opacity:1!important;background-color:rgb(221 221 221/var(--tw-bg-opacity))!important}.tw-bg-uofg-red{--tw-bg-opacity:1!important;background-color:rgb(194 4 48/var(--tw-bg-opacity))!important}.tw-bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity))!important}.tw-p-8{padding:2rem!important}.tw-px-8{padding-left:2rem!important;padding-right:2rem!important}.tw-py-4{padding-bottom:1rem!important;padding-top:1rem!important}.tw-py-6{padding-bottom:1.5rem!important;padding-top:1.5rem!important}.tw-text-2xl{font-size:1.5rem!important;line-height:2rem!important}.tw-text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.tw-text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.tw-text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity))!important}.\\[\\&\\>slot\\[name\\=\\\"message\\\"\\]\\:\\:slotted\\(\\*\\)\\]\\:tw-text-2xl>slot[name=message]::slotted(*){font-size:1.5rem!important;line-height:2rem!important}.\\[\\&\\>slot\\[name\\=\\\"subtitle\\\"\\]\\:\\:slotted\\(\\*\\)\\]\\:tw-mb-8>slot[name=subtitle]::slotted(*){margin-bottom:2rem!important}.\\[\\&\\>slot\\[name\\=\\\"subtitle\\\"\\]\\:\\:slotted\\(\\*\\)\\]\\:tw-text-4xl>slot[name=subtitle]::slotted(*){font-size:2.25rem!important;line-height:2.5rem!important}.\\[\\&\\>slot\\[name\\=\\\"subtitle\\\"\\]\\:\\:slotted\\(\\*\\)\\]\\:tw-font-bold>slot[name=subtitle]::slotted(*){font-weight:700!important}.\\[\\&\\>svg\\]\\:tw-mr-4>svg{margin-right:1rem!important}.\\[\\&\\>svg\\]\\:tw-h-\\[1\\.5em\\]>svg{height:1.5em!important}.\\[\\&\\>svg\\]\\:tw-fill-current>svg{fill:currentColor!important}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scroll-snap-strictness:proximity;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;}";
|
|
6
|
-
const UofgAlertStyle0 = uofgAlertCss;
|
|
7
|
-
|
|
8
|
-
const UofgAlert$1 = /*@__PURE__*/ proxyCustomElement(class UofgAlert extends HTMLElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super();
|
|
11
|
-
this.__registerHost();
|
|
12
|
-
this.__attachShadow();
|
|
13
|
-
}
|
|
14
|
-
render() {
|
|
15
|
-
return (h("div", { key: '43637578cd80a54999db4a08bf6a5fa09c76c402', class: "tw-flex tw-flex-col tw-text-3xl" }, h("div", { key: '22313ab033d01b2271fd7dfe7d7747b5fd59e776', class: "tw-flex tw-items-center tw-bg-uofg-red tw-p-8 tw-text-4xl tw-text-white [&>svg]:tw-mr-4 [&>svg]:tw-h-[1.5em] [&>svg]:tw-fill-current" }, h(FontAwesomeIcon, { key: 'a742d78bcb8a8215d55a6270eabba0a53b165f26', icon: faCircleExclamation }), h("slot", { key: '5afc5e3a18c0fb3ab5662af2fa912752fda379c8', name: "title" })), h("div", { key: 'd2ff3754074ce3b5e7e254cdf72711b1174222a7', class: 'tw-flex tw-flex-col tw-bg-white tw-px-8 tw-py-6 [&>slot[name="message"]::slotted(*)]:tw-text-2xl [&>slot[name="subtitle"]::slotted(*)]:tw-mb-8 [&>slot[name="subtitle"]::slotted(*)]:tw-text-4xl [&>slot[name="subtitle"]::slotted(*)]:tw-font-bold' }, h("slot", { key: '261b7f2434eecdc63cd0746bdb11539be6e3edf9', name: "subtitle" }), h("slot", { key: '438ef72be3746c53ee8f628e553163a7af93fe3e', name: "message" })), h("div", { key: '6b3a020c4a6d98e7f7fe90b922a0be997a6f341a', class: "tw-flex tw-bg-uofg-grey tw-py-4 tw-px-8 tw-text-2xl" }, h("slot", { key: '588ae6afce9d76c96768b807c3135cb1714f2889', name: "footer" }))));
|
|
16
|
-
}
|
|
17
|
-
static get style() { return UofgAlertStyle0; }
|
|
18
|
-
}, [1, "uofg-alert"]);
|
|
19
|
-
function defineCustomElement$1() {
|
|
20
|
-
if (typeof customElements === "undefined") {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const components = ["uofg-alert"];
|
|
24
|
-
components.forEach(tagName => { switch (tagName) {
|
|
25
|
-
case "uofg-alert":
|
|
26
|
-
if (!customElements.get(tagName)) {
|
|
27
|
-
customElements.define(tagName, UofgAlert$1);
|
|
28
|
-
}
|
|
29
|
-
break;
|
|
30
|
-
} });
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const UofgAlert = UofgAlert$1;
|
|
34
|
-
const defineCustomElement = defineCustomElement$1;
|
|
35
|
-
|
|
36
|
-
export { UofgAlert, defineCustomElement };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
|
2
|
-
|
|
3
|
-
interface UofgBackToTop extends Components.UofgBackToTop, HTMLElement {}
|
|
4
|
-
export const UofgBackToTop: {
|
|
5
|
-
prototype: UofgBackToTop;
|
|
6
|
-
new (): UofgBackToTop;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Used to define this component and all nested components recursively.
|
|
10
|
-
*/
|
|
11
|
-
export const defineCustomElement: () => void;
|