@uoguelph/web-components 1.0.18 → 1.1.1
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/dist/cjs/{index-4cc5bac2.js → index-00f6c6f1.js} +1 -1
- package/dist/cjs/{index-79a6e12b.js → index-d71963b7.js} +177 -30
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/uofg-alert.cjs.entry.js +2 -2
- package/dist/cjs/{uofg-back-to-top_5.cjs.entry.js → uofg-back-to-top_4.cjs.entry.js} +23 -22
- package/dist/cjs/uofg-card.cjs.entry.js +21 -0
- package/dist/cjs/uofg-modal.cjs.entry.js +2 -2
- package/dist/cjs/uofg-web-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/uofg-footer/uofg-footer.css +52 -1
- package/dist/collection/components/uofg-footer/uofg-footer.js +24 -1
- package/dist/collection/components/uofg-header/uofg-header.css +14 -7
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/uofg-footer.js +23 -5
- package/dist/components/uofg-header.js +1 -1
- package/dist/components/uofg-menu2.js +2 -0
- package/dist/components/uofg-modal.js +2 -0
- package/dist/esm/{index-a1f4c438.js → index-284464b7.js} +177 -30
- package/dist/esm/{index-1fc4b1ff.js → index-a0a2924b.js} +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/uofg-alert.entry.js +2 -2
- package/dist/esm/{uofg-back-to-top_5.entry.js → uofg-back-to-top_4.entry.js} +24 -22
- package/dist/esm/uofg-card.entry.js +17 -0
- package/dist/esm/uofg-modal.entry.js +2 -2
- package/dist/esm/uofg-web-components.js +4 -4
- package/dist/types/components/uofg-footer/uofg-footer.d.ts +5 -0
- package/dist/types/stencil-public-runtime.d.ts +17 -5
- package/dist/uofg-web-components/p-204e5cf7.entry.js +1 -0
- package/dist/uofg-web-components/{p-bbcc4d40.entry.js → p-3d5269a9.entry.js} +1 -1
- package/dist/uofg-web-components/{p-e5ddc271.js → p-8bb65209.js} +1 -1
- package/dist/uofg-web-components/p-b15e89f2.entry.js +1 -0
- package/dist/uofg-web-components/p-ba36e942.js +2 -0
- package/dist/uofg-web-components/{p-57518c30.entry.js → p-e063f0e4.entry.js} +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/uofg-web-components/p-a80dfdee.entry.js +0 -1
- package/dist/uofg-web-components/p-ea5548ab.js +0 -2
|
@@ -129,10 +129,10 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
129
129
|
};
|
|
130
130
|
walk(children);
|
|
131
131
|
if (vnodeData) {
|
|
132
|
-
// normalize class / classname attributes
|
|
133
132
|
if (vnodeData.key) {
|
|
134
133
|
key = vnodeData.key;
|
|
135
134
|
}
|
|
135
|
+
// normalize class / className attributes
|
|
136
136
|
{
|
|
137
137
|
const classData = vnodeData.className || vnodeData.class;
|
|
138
138
|
if (classData) {
|
|
@@ -399,6 +399,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
399
399
|
*
|
|
400
400
|
* Modified for Stencil's compiler and vdom
|
|
401
401
|
*/
|
|
402
|
+
/**
|
|
403
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
404
|
+
* corresponding HTML element.
|
|
405
|
+
*
|
|
406
|
+
* Note that this function has special functionality for the `class`,
|
|
407
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
408
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
409
|
+
*
|
|
410
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
411
|
+
* @param memberName the name of the attribute to set
|
|
412
|
+
* @param oldValue the old value for the attribute
|
|
413
|
+
* @param newValue the new value for the attribute
|
|
414
|
+
* @param isSvg whether we're in an svg context or not
|
|
415
|
+
* @param flags bitflags for Vdom variables
|
|
416
|
+
*/
|
|
402
417
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
403
418
|
if (oldValue !== newValue) {
|
|
404
419
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -1000,12 +1015,39 @@ const nullifyVNodeRefs = (vNode) => {
|
|
|
1000
1015
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
1001
1016
|
* the DOM node into which it should be rendered.
|
|
1002
1017
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
1018
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
1003
1019
|
*/
|
|
1004
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
1020
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1005
1021
|
const hostElm = hostRef.$hostElement$;
|
|
1006
1022
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1023
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
1024
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
1025
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
1026
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
1027
|
+
// contains attrs that need to be set on the host element.
|
|
1007
1028
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1008
1029
|
hostTagName = hostElm.tagName;
|
|
1030
|
+
// On the first render and *only* on the first render we want to check for
|
|
1031
|
+
// any attributes set on the host element which are also set on the vdom
|
|
1032
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
1033
|
+
// the value from the host element, which allows developers building apps
|
|
1034
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
1035
|
+
// component even if it's already set on the `Host`.
|
|
1036
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
1037
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
1038
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
1039
|
+
// `class` which reconciles values coming from the VDom with values
|
|
1040
|
+
// already present on the DOM element, so we don't want to override those
|
|
1041
|
+
// attributes on the VDom tree with values from the host element if they
|
|
1042
|
+
// are present.
|
|
1043
|
+
//
|
|
1044
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
1045
|
+
// runtime and we don't want to override those either.
|
|
1046
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
1047
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1009
1051
|
rootVnode.$tag$ = null;
|
|
1010
1052
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
1011
1053
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -1103,6 +1145,16 @@ const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.th
|
|
|
1103
1145
|
*/
|
|
1104
1146
|
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
1105
1147
|
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
1148
|
+
/**
|
|
1149
|
+
* Update a component given reference to its host elements and so on.
|
|
1150
|
+
*
|
|
1151
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1152
|
+
* VDom nodes, and other metadata
|
|
1153
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1154
|
+
* rendered
|
|
1155
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1156
|
+
* the first render cycle
|
|
1157
|
+
*/
|
|
1106
1158
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
1107
1159
|
var _a;
|
|
1108
1160
|
const elm = hostRef.$hostElement$;
|
|
@@ -1114,7 +1166,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1114
1166
|
}
|
|
1115
1167
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
1116
1168
|
{
|
|
1117
|
-
callRender(hostRef, instance);
|
|
1169
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
1118
1170
|
}
|
|
1119
1171
|
if (rc) {
|
|
1120
1172
|
// ok, so turns out there are some child host elements
|
|
@@ -1138,8 +1190,24 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1138
1190
|
}
|
|
1139
1191
|
}
|
|
1140
1192
|
};
|
|
1141
|
-
|
|
1193
|
+
/**
|
|
1194
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
1195
|
+
* various build variables
|
|
1196
|
+
*
|
|
1197
|
+
* @param hostRef an object containing references to the element's host node,
|
|
1198
|
+
* VDom nodes, and other metadata
|
|
1199
|
+
* @param instance a reference to the underlying host element where it will be
|
|
1200
|
+
* rendered
|
|
1201
|
+
* @param elm the Host element for the component
|
|
1202
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
1203
|
+
* @returns an empty promise
|
|
1204
|
+
*/
|
|
1205
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1142
1206
|
try {
|
|
1207
|
+
/**
|
|
1208
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
1209
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
1210
|
+
*/
|
|
1143
1211
|
instance = instance.render() ;
|
|
1144
1212
|
{
|
|
1145
1213
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1153,7 +1221,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
1153
1221
|
// or we need to update the css class/attrs on the host element
|
|
1154
1222
|
// DOM WRITE!
|
|
1155
1223
|
{
|
|
1156
|
-
renderVdom(hostRef, instance);
|
|
1224
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
1157
1225
|
}
|
|
1158
1226
|
}
|
|
1159
1227
|
}
|
|
@@ -1222,6 +1290,16 @@ const appDidLoad = (who) => {
|
|
|
1222
1290
|
}
|
|
1223
1291
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
1224
1292
|
};
|
|
1293
|
+
/**
|
|
1294
|
+
* Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
|
|
1295
|
+
* e.g. custom element node. If a build figures out that e.g. no component
|
|
1296
|
+
* has a `componentDidLoad` method, the instance method gets removed from the
|
|
1297
|
+
* output bundle and this function returns `undefined`.
|
|
1298
|
+
* @param instance any object that may or may not contain methods
|
|
1299
|
+
* @param method method name
|
|
1300
|
+
* @param arg single arbitrary argument
|
|
1301
|
+
* @returns result of method call if it exists, otherwise `undefined`
|
|
1302
|
+
*/
|
|
1225
1303
|
const safeCall = (instance, method, arg) => {
|
|
1226
1304
|
if (instance && instance[method]) {
|
|
1227
1305
|
try {
|
|
@@ -1289,6 +1367,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1289
1367
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1290
1368
|
*/
|
|
1291
1369
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1370
|
+
var _a;
|
|
1292
1371
|
if (cmpMeta.$members$) {
|
|
1293
1372
|
if (Cstr.watchers) {
|
|
1294
1373
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
@@ -1326,7 +1405,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1326
1405
|
});
|
|
1327
1406
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1328
1407
|
const attrNameToPropName = new Map();
|
|
1329
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1408
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1330
1409
|
plt.jmp(() => {
|
|
1331
1410
|
const propName = attrNameToPropName.get(attrName);
|
|
1332
1411
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -1349,12 +1428,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1349
1428
|
// customElements.define('my-component', MyComponent);
|
|
1350
1429
|
// </script>
|
|
1351
1430
|
// ```
|
|
1352
|
-
// In this case if we do not
|
|
1431
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1353
1432
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1354
1433
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1355
|
-
// the connectedCallback attempts to
|
|
1434
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
1356
1435
|
//
|
|
1357
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1436
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
1358
1437
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1359
1438
|
//
|
|
1360
1439
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -1374,18 +1453,46 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1374
1453
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1375
1454
|
return;
|
|
1376
1455
|
}
|
|
1456
|
+
else if (propName == null) {
|
|
1457
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1458
|
+
// on a vanilla web component
|
|
1459
|
+
const hostRef = getHostRef(this);
|
|
1460
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1461
|
+
// We only want to trigger the callback(s) if:
|
|
1462
|
+
// 1. The instance is ready
|
|
1463
|
+
// 2. The watchers are ready
|
|
1464
|
+
// 3. The value has changed
|
|
1465
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1466
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1467
|
+
newValue !== oldValue) {
|
|
1468
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1469
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1470
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1471
|
+
if (instance[callbackName] != null) {
|
|
1472
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1473
|
+
}
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1377
1478
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1378
1479
|
});
|
|
1379
1480
|
};
|
|
1380
|
-
//
|
|
1381
|
-
//
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1481
|
+
// Create an array of attributes to observe
|
|
1482
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1483
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1484
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1485
|
+
// an invalid attribute.
|
|
1486
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1487
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1488
|
+
...members
|
|
1489
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1490
|
+
.map(([propName, m]) => {
|
|
1491
|
+
const attrName = m[1] || propName;
|
|
1492
|
+
attrNameToPropName.set(attrName, propName);
|
|
1493
|
+
return attrName;
|
|
1494
|
+
}),
|
|
1495
|
+
]));
|
|
1389
1496
|
}
|
|
1390
1497
|
}
|
|
1391
1498
|
return Cstr;
|
|
@@ -1518,23 +1625,35 @@ const connectedCallback = (elm) => {
|
|
|
1518
1625
|
// since they would have been removed when disconnected
|
|
1519
1626
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1520
1627
|
// fire off connectedCallback() on component instance
|
|
1521
|
-
|
|
1628
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1629
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1630
|
+
}
|
|
1631
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1632
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1633
|
+
}
|
|
1522
1634
|
}
|
|
1523
1635
|
endConnected();
|
|
1524
1636
|
}
|
|
1525
1637
|
};
|
|
1526
|
-
const
|
|
1638
|
+
const disconnectInstance = (instance) => {
|
|
1639
|
+
{
|
|
1640
|
+
safeCall(instance, 'disconnectedCallback');
|
|
1641
|
+
}
|
|
1642
|
+
};
|
|
1643
|
+
const disconnectedCallback = async (elm) => {
|
|
1527
1644
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1528
1645
|
const hostRef = getHostRef(elm);
|
|
1529
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1530
1646
|
{
|
|
1531
1647
|
if (hostRef.$rmListeners$) {
|
|
1532
1648
|
hostRef.$rmListeners$.map((rmListener) => rmListener());
|
|
1533
1649
|
hostRef.$rmListeners$ = undefined;
|
|
1534
1650
|
}
|
|
1535
1651
|
}
|
|
1536
|
-
{
|
|
1537
|
-
|
|
1652
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
|
|
1653
|
+
disconnectInstance(hostRef.$lazyInstance$);
|
|
1654
|
+
}
|
|
1655
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1656
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
|
|
1538
1657
|
}
|
|
1539
1658
|
}
|
|
1540
1659
|
};
|
|
@@ -1559,6 +1678,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1559
1678
|
}
|
|
1560
1679
|
lazyBundles.map((lazyBundle) => {
|
|
1561
1680
|
lazyBundle[1].map((compactMeta) => {
|
|
1681
|
+
var _a;
|
|
1562
1682
|
const cmpMeta = {
|
|
1563
1683
|
$flags$: compactMeta[0],
|
|
1564
1684
|
$tagName$: compactMeta[1],
|
|
@@ -1572,7 +1692,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1572
1692
|
cmpMeta.$listeners$ = compactMeta[3];
|
|
1573
1693
|
}
|
|
1574
1694
|
{
|
|
1575
|
-
cmpMeta.$watchers$ = {};
|
|
1695
|
+
cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
|
|
1576
1696
|
}
|
|
1577
1697
|
const tagName = cmpMeta.$tagName$;
|
|
1578
1698
|
const HostElement = class extends HTMLElement {
|
|
@@ -1686,13 +1806,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
|
|
|
1686
1806
|
* @returns void
|
|
1687
1807
|
*/
|
|
1688
1808
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
1809
|
+
/**
|
|
1810
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
1811
|
+
* instances.
|
|
1812
|
+
*/
|
|
1689
1813
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
1814
|
+
/**
|
|
1815
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
1816
|
+
*
|
|
1817
|
+
* @param ref the runtime ref of interest
|
|
1818
|
+
* @returns the Host reference (if found) or undefined
|
|
1819
|
+
*/
|
|
1690
1820
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
1821
|
+
/**
|
|
1822
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
1823
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
1824
|
+
*
|
|
1825
|
+
* @param lazyInstance the lazy instance of interest
|
|
1826
|
+
* @param hostRef that instances `HostRef` object
|
|
1827
|
+
* @returns a reference to the host ref WeakMap
|
|
1828
|
+
*/
|
|
1691
1829
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
1692
|
-
|
|
1830
|
+
/**
|
|
1831
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
1832
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
1833
|
+
* metadata.
|
|
1834
|
+
*
|
|
1835
|
+
* @param hostElement the host element to register
|
|
1836
|
+
* @param cmpMeta runtime metadata for that component
|
|
1837
|
+
* @returns a reference to the host ref WeakMap
|
|
1838
|
+
*/
|
|
1839
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
1693
1840
|
const hostRef = {
|
|
1694
1841
|
$flags$: 0,
|
|
1695
|
-
$hostElement$:
|
|
1842
|
+
$hostElement$: hostElement,
|
|
1696
1843
|
$cmpMeta$: cmpMeta,
|
|
1697
1844
|
$instanceValues$: new Map(),
|
|
1698
1845
|
};
|
|
@@ -1701,11 +1848,11 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
1701
1848
|
}
|
|
1702
1849
|
{
|
|
1703
1850
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
1704
|
-
|
|
1705
|
-
|
|
1851
|
+
hostElement['s-p'] = [];
|
|
1852
|
+
hostElement['s-rc'] = [];
|
|
1706
1853
|
}
|
|
1707
|
-
addHostEventListeners(
|
|
1708
|
-
return hostRefs.set(
|
|
1854
|
+
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
1855
|
+
return hostRefs.set(hostElement, hostRef);
|
|
1709
1856
|
};
|
|
1710
1857
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
1711
1858
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d71963b7.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
|
-
if (typeof window === 'undefined') return
|
|
9
|
-
return index.bootstrapLazy([["uofg-alert.cjs",[[1,"uofg-alert"]]],["uofg-modal.cjs",[[1,"uofg-modal",{"label":[1],"alertDialog":[4,"alert-dialog"],"centered":[4],"staticBackdrop":[4,"static-backdrop"],"autoOpen":[4,"auto-open"],"isOpen":[32],"getState":[64],"setState":[64],"toggle":[64],"close":[64],"open":[64]}]]],["uofg-back-to-
|
|
8
|
+
if (typeof window === 'undefined') return undefined;
|
|
9
|
+
return index.bootstrapLazy([["uofg-alert.cjs",[[1,"uofg-alert"]]],["uofg-card.cjs",[[1,"uofg-card",{"href":[1]}]]],["uofg-modal.cjs",[[1,"uofg-modal",{"label":[1],"alertDialog":[4,"alert-dialog"],"centered":[4],"staticBackdrop":[4,"static-backdrop"],"autoOpen":[4,"auto-open"],"isOpen":[32],"getState":[64],"setState":[64],"toggle":[64],"close":[64],"open":[64]},null,{"isOpen":["handleIsOpenChange"]}]]],["uofg-back-to-top_4.cjs",[[1,"uofg-header",{"pageTitle":[1,"page-title"],"pageUrl":[1,"page-url"],"isFullSize":[32],"pageSpecificContent":[32],"isSubContainerOverflowing":[32]},[[9,"resize","updateFullSize"]]],[1,"uofg-back-to-top",{"threshold":[2],"isVisible":[32]},[[9,"scroll","onScroll"]]],[1,"uofg-footer",{"extraLinks":[32]}],[0,"uofg-menu",{"autoCollapse":[4,"auto-collapse"],"isExpanded":[32],"getExpanded":[64],"setExpanded":[64],"toggle":[64],"collapse":[64],"expand":[64]},null,{"isExpanded":["handleIsExpandedChange"]}]]]], options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-d71963b7.js');
|
|
6
|
+
const index$1 = require('./index-00f6c6f1.js');
|
|
7
7
|
|
|
8
8
|
const uofgAlertCss = "*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}:host{display:block;max-width:100rem}#uofg-alert{display:flex;flex-direction:column;font-size:2rem}#uofg-alert-title{display:flex;align-items:center;font-size:2.25rem;padding:2rem;color:white;background-color:#c20430}#uofg-alert-title>svg{margin-right:1rem;fill:currentColor;height:1.5em}#uofg-alert-body{display:flex;flex-direction:column;padding:1.5rem 2rem;background-color:white}#uofg-alert-body slot[name=subtitle]::slotted(*){font-size:2rem;margin-bottom:2rem;font-weight:bold}#uofg-alert-body slot[name=message]::slotted(*){font-size:1.6rem}#uofg-alert-footer{display:flex;padding:1rem 2rem;background-color:#dddddd;font-size:1.4rem}";
|
|
9
9
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const index$1 = require('./index-
|
|
5
|
+
const index = require('./index-d71963b7.js');
|
|
6
|
+
const index$1 = require('./index-00f6c6f1.js');
|
|
7
7
|
const utils = require('./utils-582c8cb9.js');
|
|
8
8
|
|
|
9
9
|
const uofgBackToTopCss = ":host{display:block}:focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}#uofg-back-to-top{position:fixed;margin:10px;height:35px;width:35px;right:0;bottom:0;z-index:1000;cursor:pointer;background-color:black;color:white;transition-duration:0.3s;transition-timing-function:ease-in-out;transition-property:opacity, visibility, background-color;opacity:0;visibility:hidden;border-radius:50%;border:1px solid #fff}#uofg-back-to-top:hover{background-color:#d50029}#uofg-back-to-top>svg{width:1em;height:1em;fill:currentColor}#uofg-back-to-top.visible{opacity:1;visibility:visible}";
|
|
@@ -28,20 +28,6 @@ const UofgBackToTop = class {
|
|
|
28
28
|
};
|
|
29
29
|
UofgBackToTop.style = uofgBackToTopCss;
|
|
30
30
|
|
|
31
|
-
const uofgCardCss = "*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}:host{display:block;width:300px;margin:1rem}#uofg-card{display:flex;flex-direction:column;background-color:#f1f8fa;font-size:1.6rem;border-radius:5px;overflow:hidden}a#uofg-card{border:1px solid transparent;transition-property:border-color;transition-duration:0.2s;transition-timing-function:ease-in-out}a#uofg-card:hover,a#uofg-card:focus,a#uofg-card:focus-within{border-color:#69a3b9}#uofg-card-img{display:flex;justify-content:center;align-items:center;overflow:hidden}#uofg-card-img>slot::slotted(img){width:100%;object-fit:cover;transition-property:transform;transition-duration:0.2s;transition-timing-function:ease-in-out}a#uofg-card:hover #uofg-card-img>slot::slotted(img),a#uofg-card:focus #uofg-card-img>slot::slotted(img),a#uofg-card:focus-within #uofg-card-img>slot::slotted(img){transform:scale(1.1)}#uofg-card-content{padding:1rem}#uofg-card-content>slot[name=title]::slotted(*){font-size:2.25rem;font-weight:normal;margin:0;padding:1rem 0}#uofg-card-content>slot[name=subtitle]::slotted(*){font-size:1.8rem;font-weight:normal;margin:0;padding:1rem 0}#uofg-card-content>slot[name=body]::slotted(*){font-size:1.6rem;font-weight:normal;margin:0}#uofg-card-footer{background-color:#bedae3}";
|
|
32
|
-
|
|
33
|
-
const UofgCard = class {
|
|
34
|
-
constructor(hostRef) {
|
|
35
|
-
index.registerInstance(this, hostRef);
|
|
36
|
-
this.href = undefined;
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
const Body = () => (index.h(index.Fragment, null, index.h("div", { id: "uofg-card-img" }, index.h("slot", { name: "img" })), index.h("div", { id: "uofg-card-content" }, index.h("slot", { name: "title" }), index.h("slot", { name: "subtitle" }), index.h("slot", { name: "body" })), index.h("div", { id: "uofg-card-footer" }, index.h("slot", { name: "footer" }))));
|
|
40
|
-
return this.href ? (index.h("a", { href: this.href, id: "uofg-card" }, index.h(Body, null))) : (index.h("div", { id: "uofg-card" }, index.h(Body, null)));
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
UofgCard.style = uofgCardCss;
|
|
44
|
-
|
|
45
31
|
const improveLifeLogo = `<svg xmlns="http://www.w3.org/2000/svg" fill="#fff" viewBox="0 0 107.4 12">
|
|
46
32
|
<path
|
|
47
33
|
d="M0 0h5.3v.5C4 .5 3.6.8 3.6 2.1v7.3c0 1.4.3 1.8 1.6 1.8v.5H0v-.5c1.5 0 1.5-.5 1.5-1.6V1.9C1.5.9 1.3.5 0 .5ZM6.1 11.4c.9 0 1.1-.2 1.2-1.4l.3-5.1c.1-1.2-.1-1.4-.9-1.4v-.4h2.6l3 6.5 2.8-6.5h2.6v.4c-.8 0-.9.2-.9.8l.5 6.3c.1.7.3.8 1.1.8v.4h-4v-.4c1.1 0 1.3-.3 1.2-1.8l-.4-5.1-3.2 7.3h-.5L8.4 4.7l-.3 5.1c-.1 1.5.2 1.5 1.1 1.6v.4H6.1ZM19.2 11.4c1 0 1.2-.2 1.2-1.5v-5c0-1.4-.2-1.5-1.3-1.5v-.3h1.4a14.4 14.4 0 0 1 1.8-.1c2.6 0 4.1.6 4.1 2.5 0 1.6-1.4 2.8-3.3 2.8a3.8 3.8 0 0 1-1.1-.1v1.9c0 1.1.3 1.3 1.6 1.3v.4h-4.3v-.4Zm2.7-3.7.6.1a2.2 2.2 0 0 0 2.2-2.3 2 2 0 0 0-2.1-2.1h-.7ZM29.7 10c0 1.2.2 1.4 1.4 1.4v.4h-4.3v-.4c1.2 0 1.3-.3 1.3-1.2V4.6c0-.9-.2-1.1-1.3-1.1v-.4l2-.1h1.7c2.8 0 3.8 1.2 3.8 2.5a2.5 2.5 0 0 1-1.8 2.3 9.4 9.4 0 0 1 1 1l.9.9a5.4 5.4 0 0 0 3.3 1.9v.4c-2.7.1-3.4-.4-4.7-1.7l-.7-.7a8 8 0 0 0-1.5-1.3h-1.2V10Zm0-2.2h.4c1.9-.1 2.5-.8 2.5-2.2a2 2 0 0 0-2.3-2.2 1.7 1.7 0 0 0-.7.1v4.3ZM42.4 2.9c3 0 5.1 1.8 5.1 4.4a4.8 4.8 0 0 1-5.1 4.7c-2.9 0-5-1.8-5-4.3-.1-2.8 2.1-4.8 5-4.8Zm.2 8.6c1.9 0 3.2-1.6 3.2-3.9 0-2.5-1.5-4.3-3.5-4.3S39 4.8 39 7.3c0 2.8 1.8 4.2 3.6 4.2ZM49 4.5c-.4-1-.5-1.1-1.4-1.1v-.3h4.3v.4c-1.1 0-1.3.3-1.3.6a3 3 0 0 0 .2.8l2.1 5.2 2-4.9a4.5 4.5 0 0 0 .3-1.1c0-.5-.4-.6-1.3-.6v-.4h3.4v.4c-1 0-1.2.5-1.6 1.6L52.8 12H52ZM57.7 11.8v-.4c1.1 0 1.4-.2 1.4-1v-6c0-.9-.5-.9-1.4-.9v-.4h7.1l.1 2.1h-.4l-.1-.3c-.3-1.1-.5-1.2-1.4-1.2h-2.5V7h2.2c.8 0 1-.1 1-1.1h.4v2.8h-.4c-.1-1-.3-1.1-1-1.1h-2.2v2.5c0 .9.1 1 .8 1H63c1.4 0 1.7-.2 2.1-1.6h.4l-.2 2.2h-7.6ZM72.2 11.8v-.5c1.5 0 1.8-.1 1.8-1.6V2.1C74 .8 73.9.4 72.2.5V0h6.2v.5c-2 0-2.3.1-2.3 1.5v8c0 .8.2.9 1 .9H79c1.6 0 1.7-.1 3.1-2h.6l-1.5 2.9ZM83.2 3.1h3.9v.4c-.9 0-1.2.2-1.2 1.2v5.4c0 1 .2 1.3 1.2 1.3v.4h-3.9v-.4c1.1 0 1.1-.4 1.1-1.2V4.5c0-.8-.2-1.1-1.1-1ZM90.7 10c0 1.1.2 1.3 1.2 1.3v.4H88v-.4c.9 0 1.1-.3 1.1-1.1V4.5c0-.8-.3-1-1.1-1v-.4h6.6v1.7h-.4c-.1-.9-.3-1.1-1.4-1.1h-2.2v3.1h2.2c.9 0 1-.1 1.1-.9h.4v2.6H94c-.1-.9-.3-1-1.2-1h-2.1ZM95.3 11.8v-.4c1.1 0 1.4-.2 1.4-1v-6c0-.9-.5-.9-1.4-.9v-.4h7.1l.1 2.1h-.4l-.1-.3c-.3-1.1-.5-1.2-1.4-1.2h-2.5V7h2.2c.8 0 1-.1 1-1.1h.4v2.8h-.4c-.1-1-.3-1.1-1-1.1h-2.2v2.5c0 .9.1 1 .8 1h1.5c1.4 0 1.7-.2 2.1-1.6h.4l-.2 2.2h-7.4ZM107.4 10.9c0 .7-.5 1.1-1.3 1.1s-1.3-.4-1.3-1.1a1.2 1.2 0 0 1 1.3-1.2 1.2 1.2 0 0 1 1.3 1.2Z"/>
|
|
@@ -166,7 +152,7 @@ var width = 576;
|
|
|
166
152
|
var height = 512;
|
|
167
153
|
var aliases = [];
|
|
168
154
|
var unicode = 'f4be';
|
|
169
|
-
var svgPathData = '
|
|
155
|
+
var svgPathData = 'M163.9 136.9c-29.4-29.8-29.4-78.2 0-108s77-29.8 106.4 0l17.7 18 17.7-18c29.4-29.8 77-29.8 106.4 0s29.4 78.2 0 108L310.5 240.1c-6.2 6.3-14.3 9.4-22.5 9.4s-16.3-3.1-22.5-9.4L163.9 136.9zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5H192 32c-17.7 0-32-14.3-32-32V416c0-17.7 14.3-32 32-32H68.8l44.9-36c22.7-18.2 50.9-28 80-28H272h16 64c17.7 0 32 14.3 32 32s-14.3 32-32 32H288 272c-8.8 0-16 7.2-16 16s7.2 16 16 16H392.6l119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384l0 0-.9 0c.3 0 .6 0 .9 0z';
|
|
170
156
|
|
|
171
157
|
exports.definition = {
|
|
172
158
|
prefix: prefix,
|
|
@@ -543,7 +529,7 @@ var width = 448;
|
|
|
543
529
|
var height = 512;
|
|
544
530
|
var aliases = ["twitter-square"];
|
|
545
531
|
var unicode = 'f081';
|
|
546
|
-
var svgPathData = '
|
|
532
|
+
var svgPathData = 'M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM351.3 199.3v0c0 86.7-66 186.6-186.6 186.6c-37.2 0-71.7-10.8-100.7-29.4c5.3 .6 10.4 .8 15.8 .8c30.7 0 58.9-10.4 81.4-28c-28.8-.6-53-19.5-61.3-45.5c10.1 1.5 19.2 1.5 29.6-1.2c-30-6.1-52.5-32.5-52.5-64.4v-.8c8.7 4.9 18.9 7.9 29.6 8.3c-9-6-16.4-14.1-21.5-23.6s-7.8-20.2-7.7-31c0-12.2 3.2-23.4 8.9-33.1c32.3 39.8 80.8 65.8 135.2 68.6c-9.3-44.5 24-80.6 64-80.6c18.9 0 35.9 7.9 47.9 20.7c14.8-2.8 29-8.3 41.6-15.8c-4.9 15.2-15.2 28-28.8 36.1c13.2-1.4 26-5.1 37.8-10.2c-8.9 13.1-20.1 24.7-32.9 34c.2 2.8 .2 5.7 .2 8.5z';
|
|
547
533
|
|
|
548
534
|
exports.definition = {
|
|
549
535
|
prefix: prefix,
|
|
@@ -624,17 +610,33 @@ exports.svgPathData = svgPathData;
|
|
|
624
610
|
exports.aliases = aliases;
|
|
625
611
|
});
|
|
626
612
|
|
|
627
|
-
const uofgFooterCss = ":focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:host{display:block;width:100%;font-size:1.6rem;font-family:sans-serif}a{display:flex;align-items:center;gap:0.5rem;border-bottom:2px dotted transparent;width:fit-content;width:-moz-max-content;color:inherit;white-space:nowrap;padding-bottom:0.2rem;transition-property:border-color;transition-duration:0.2s;transition-timing-function:ease-in-out}a:hover,a:focus{border-color:currentColor}svg{fill:currentColor;height:1.6rem}li{display:contents}#uofg-footer{display:flex;justify-content:center;align-items:center;background-color:#000;color:#fff;
|
|
613
|
+
const uofgFooterCss = ":focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:host{display:block;width:100%;font-size:1.6rem;font-family:sans-serif}a{display:flex;align-items:center;gap:0.5rem;border-bottom:2px dotted transparent;width:fit-content;width:-moz-max-content;color:inherit;white-space:nowrap;padding-bottom:0.2rem;transition-property:border-color;transition-duration:0.2s;transition-timing-function:ease-in-out}a:hover,a:focus{border-color:currentColor}svg{fill:currentColor;height:1.6rem}li{display:contents}#uofg-footer{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#000;color:#fff;line-height:1.2}#uofg-footer-extra-links-container{display:flex;justify-content:center;align-items:center;width:100%;background-color:#f5f7fa}#uofg-footer-extra-links{display:flex;flex-direction:column;width:85%;align-items:center;justify-content:center;padding:1.25rem 1rem;color:#0074c1}#uofg-footer-extra-links>li>a{display:flex;justify-content:center;padding:1rem 0;width:100%;transition-property:color;transition-duration:0.2s;transition-timing-function:ease-in-out;border-bottom:2px solid transparent}#uofg-footer-extra-links>li>a:hover,#uofg-footer-extra-links>li>a:focus{color:black}#uofg-footer-extra-links>li:not(:last-child)>a{border-bottom:2px solid #bdc8ca}#uofg-footer-content{display:grid;grid-template-columns:1fr;gap:2rem;width:100%;padding:2rem;max-width:1320px}.uofg-footer-content-separator{display:flex;flex-direction:column;gap:0.75rem;justify-content:space-between}#uofg-footer-improve-life{transition-property:opacity;transition-duration:0.2s;transition-timing-function:ease-in-out;border:0}#uofg-footer-improve-life>svg{height:2.5rem}#uofg-footer-improve-life:hover,#uofg-footer-improve-life:focus{opacity:0.8}#uofg-footer-social-links{display:flex;align-items:center;list-style:none;padding:0;margin-left:0;gap:0 0.75rem}#uofg-footer-social-links a{transition-property:color;transition-duration:0.2s;transition-timing-function:ease-in-out;border:0}#uofg-footer-social-links a:hover,#uofg-footer-social-links a:focus{color:#ffc72a}#uofg-footer-social-links a:hover[aria-label=Twitter],#uofg-footer-social-links a:focus[aria-label=Twitter]{color:#1da1f2}#uofg-footer-social-links a:hover[aria-label=Facebook],#uofg-footer-social-links a:focus[aria-label=Facebook]{color:#4267b2}#uofg-footer-social-links a:hover[aria-label=Instagram],#uofg-footer-social-links a:focus[aria-label=Instagram]{color:#e1306c}#uofg-footer-social-links a:hover[aria-label=Youtube],#uofg-footer-social-links a:focus[aria-label=Youtube]{color:#f00}#uofg-footer-social-links a:hover[aria-label=LinkedIn],#uofg-footer-social-links a:focus[aria-label=LinkedIn]{color:#0077b5}#uofg-footer-social-links a:hover[aria-label=TikTok],#uofg-footer-social-links a:focus[aria-label=TikTok]{color:#f00}#uofg-footer-social-links svg{height:2rem}#uofg-footer-links-container{display:flex}#uofg-footer-links{display:grid;height:100%;grid-template-columns:1fr}#uofg-footer-links svg{color:#ffc72a}#uofg-footer-address{font-style:normal;white-space:nowrap}#uofg-footer-address a{color:#69a3b9}@media (min-width: 570px){#uofg-footer-extra-links{flex-direction:row;flex-wrap:wrap;width:100%;max-width:1320px;padding:2rem 1rem;gap:1rem}#uofg-footer-extra-links>li>a{width:auto;padding:0 1rem 0 0;border-bottom:none !important}#uofg-footer-extra-links>li:not(:last-child)>a{border-right:2px solid rgba(0, 0, 0, 0.15)}#uofg-footer-content{grid-template-columns:1fr 1fr}#uofg-footer-links-container{grid-column-start:1;grid-column-end:3}#uofg-footer-links{grid-template-columns:1fr 1fr;width:100%}#uofg-footer-address{grid-row:1;grid-column:2}}@media (min-width: 962px){#uofg-footer-content{grid-template-columns:0.5fr 1fr 0.5fr;justify-items:center;gap:2rem 2rem}#uofg-footer-links-container{grid-row:unset;grid-column:unset;justify-content:center;gap:0}#uofg-footer-links{gap:0 8rem;width:auto}#uofg-footer-address{grid-row:unset;grid-column:unset}}";
|
|
628
614
|
|
|
629
615
|
const SocialLink = props => (index.h("li", null, index.h("a", { href: props.url, "aria-label": props.name }, index.h(index$1.FontAwesomeIcon, { icon: props.icon }))));
|
|
630
616
|
const FooterLink = props => (index.h("li", null, index.h("a", { href: props.url, title: props.title }, index.h(index$1.FontAwesomeIcon, { icon: props.icon }), index.h("span", null, props.text))));
|
|
631
617
|
const UofgFooter = class {
|
|
632
618
|
constructor(hostRef) {
|
|
633
619
|
index.registerInstance(this, hostRef);
|
|
620
|
+
this.extraLinks = [];
|
|
621
|
+
}
|
|
622
|
+
connectedCallback() {
|
|
623
|
+
var _a;
|
|
624
|
+
this.updateExtraLinks();
|
|
625
|
+
(_a = this.observer) !== null && _a !== void 0 ? _a : (this.observer = new MutationObserver(() => {
|
|
626
|
+
this.updateExtraLinks();
|
|
627
|
+
}));
|
|
628
|
+
this.observer.observe(this.el, { childList: true, subtree: true });
|
|
629
|
+
}
|
|
630
|
+
updateExtraLinks() {
|
|
631
|
+
var _a;
|
|
632
|
+
this.extraLinks = Array.from((_a = this.el) === null || _a === void 0 ? void 0 : _a.children)
|
|
633
|
+
.filter(child => child.tagName === 'A')
|
|
634
|
+
.map(child => ({ text: child.textContent, href: child.getAttribute('href') }));
|
|
634
635
|
}
|
|
635
636
|
render() {
|
|
636
|
-
return (index.h("footer", { id: "uofg-footer" }, index.h("div", { id: "uofg-footer-content" }, index.h("div", { id: "uofg-footer-social", class: "uofg-footer-content-separator" }, index.h("a", { id: "uofg-footer-improve-life", href: "//www.uoguelph.ca/improve-life", "aria-label": "Improve Life", innerHTML: improveLifeLogo }), index.h("ul", { id: "uofg-footer-social-links" }, index.h(SocialLink, { name: "Twitter", url: "https://twitter.com/uofg", icon: faTwitterSquare.faTwitterSquare }), index.h(SocialLink, { name: "Facebook", url: "https://www.facebook.com/uofguelph", icon: faFacebookSquare.faFacebookSquare }), index.h(SocialLink, { name: "Instagram", url: "https://www.instagram.com/uofguelph/", icon: faInstagram.faInstagram }), index.h(SocialLink, { name: "Youtube", url: "https://www.youtube.com/user/uofguelph", icon: faYoutube.faYoutube }), index.h(SocialLink, { name: "LinkedIn", url: "https://www.linkedin.com/school/university-of-guelph/", icon: faLinkedin.faLinkedin }), index.h(SocialLink, { name: "TikTok", url: "https://www.tiktok.com/@uofguelph", icon: faTiktok.faTiktok })), index.h("a", { href: "https://www.uoguelph.ca/web/socialmedia/" }, "Social Media Directory"), index.h("a", { href: "//www.uoguelph.ca/web/" }, "\u00A9 ", new Date().getFullYear(), " University of Guelph")), index.h("div", { id: "uofg-footer-links-container" }, index.h("ul", { id: "uofg-footer-links", class: "uofg-footer-content-separator" }, index.h(FooterLink, { text: "Accessibility", url: "https://www.uoguelph.ca/diversity-human-rights/accessibility-u-g", icon: faUniversalAccess.faUniversalAccess }), index.h(FooterLink, { text: "Privacy", url: "https://www.uoguelph.ca/web/privacy/", icon: faKey.faKey }), index.h(FooterLink, { text: "Site Map", url: "https://www.uoguelph.ca/sitemap", icon: faSitemap.faSitemap }), index.h(FooterLink, { text: "Status Page", url: "https://uoguelph.statuspage.io/", icon: faCircleCheck.faCircleCheck }), index.h(FooterLink, { text: "Land Acknowledgement", url: "https://www.uoguelph.ca/land-acknowledgement/", icon: faTree.faTree, title: "The University of Guelph resides on the treaty lands and territory of the Mississaugas of the Credit. We recognize that today this gathering place is home to many First Nations, Inuit and M\u00E9tis peoples and acknowledging them reminds us of our collective responsibility to the land where we learn and work." }), index.h(FooterLink, { text: "Careers", url: "https://www.uoguelph.ca/hr/careers-guelph/current-opportunities", icon: faBriefcase.faBriefcase }), index.h(FooterLink, { text: "Undergraduate Calendar", url: "https://www.uoguelph.ca/registrar/calendars/undergraduate/current/", icon: faCalendar.faCalendar }), index.h(FooterLink, { text: "Graduate Calendar", url: "https://www.uoguelph.ca/registrar/calendars/graduate/current/", icon: faCalendar.faCalendar }), index.h(FooterLink, { text: "Program Plans", url: "https://admission.uoguelph.ca/programs", icon: faList.faList }), index.h(FooterLink, { text: "Give to U of G", url: "https://www.alumni.uoguelph.ca/give-to-guelph/how-to-give", icon: faHandHoldingHeart.faHandHoldingHeart }))), index.h("address", { id: "uofg-footer-address", class: "uofg-footer-content-separator" }, index.h("strong", null, "University of Guelph"), index.h("span", null, "50 Stone Road East,"), index.h("span", null, "Guelph, Ontario, Canada"), index.h("span", null, "N1G 2W1"), index.h("a", { href: "tel:1-519-824-4120" }, index.h(index$1.FontAwesomeIcon, { icon: faPhoneFlip.faPhoneFlip }), index.h("span", null, "519-824-4120"))))));
|
|
637
|
+
return (index.h("footer", { id: "uofg-footer" }, index.h("div", { id: "uofg-footer-extra-links-container" }, this.extraLinks.length > 0 && (index.h("ul", { id: "uofg-footer-extra-links" }, this.extraLinks.map(link => (index.h("li", null, index.h("a", { href: link.href }, link.text))))))), index.h("div", { id: "uofg-footer-content" }, index.h("div", { id: "uofg-footer-social", class: "uofg-footer-content-separator" }, index.h("a", { id: "uofg-footer-improve-life", href: "//www.uoguelph.ca/improve-life", "aria-label": "Improve Life", innerHTML: improveLifeLogo }), index.h("ul", { id: "uofg-footer-social-links" }, index.h(SocialLink, { name: "Twitter", url: "https://twitter.com/uofg", icon: faTwitterSquare.faTwitterSquare }), index.h(SocialLink, { name: "Facebook", url: "https://www.facebook.com/uofguelph", icon: faFacebookSquare.faFacebookSquare }), index.h(SocialLink, { name: "Instagram", url: "https://www.instagram.com/uofguelph/", icon: faInstagram.faInstagram }), index.h(SocialLink, { name: "Youtube", url: "https://www.youtube.com/user/uofguelph", icon: faYoutube.faYoutube }), index.h(SocialLink, { name: "LinkedIn", url: "https://www.linkedin.com/school/university-of-guelph/", icon: faLinkedin.faLinkedin }), index.h(SocialLink, { name: "TikTok", url: "https://www.tiktok.com/@uofguelph", icon: faTiktok.faTiktok })), index.h("a", { href: "https://www.uoguelph.ca/web/socialmedia/" }, "Social Media Directory"), index.h("a", { href: "//www.uoguelph.ca/web/" }, "\u00A9 ", new Date().getFullYear(), " University of Guelph")), index.h("div", { id: "uofg-footer-links-container" }, index.h("ul", { id: "uofg-footer-links", class: "uofg-footer-content-separator" }, index.h(FooterLink, { text: "Accessibility", url: "https://www.uoguelph.ca/diversity-human-rights/accessibility-u-g", icon: faUniversalAccess.faUniversalAccess }), index.h(FooterLink, { text: "Privacy", url: "https://www.uoguelph.ca/web/privacy/", icon: faKey.faKey }), index.h(FooterLink, { text: "Site Map", url: "https://www.uoguelph.ca/sitemap", icon: faSitemap.faSitemap }), index.h(FooterLink, { text: "Status Page", url: "https://uoguelph.statuspage.io/", icon: faCircleCheck.faCircleCheck }), index.h(FooterLink, { text: "Land Acknowledgement", url: "https://www.uoguelph.ca/land-acknowledgement/", icon: faTree.faTree, title: "The University of Guelph resides on the treaty lands and territory of the Mississaugas of the Credit. We recognize that today this gathering place is home to many First Nations, Inuit and M\u00E9tis peoples and acknowledging them reminds us of our collective responsibility to the land where we learn and work." }), index.h(FooterLink, { text: "Careers", url: "https://www.uoguelph.ca/hr/careers-guelph/current-opportunities", icon: faBriefcase.faBriefcase }), index.h(FooterLink, { text: "Undergraduate Calendar", url: "https://www.uoguelph.ca/registrar/calendars/undergraduate/current/", icon: faCalendar.faCalendar }), index.h(FooterLink, { text: "Graduate Calendar", url: "https://www.uoguelph.ca/registrar/calendars/graduate/current/", icon: faCalendar.faCalendar }), index.h(FooterLink, { text: "Program Plans", url: "https://admission.uoguelph.ca/programs", icon: faList.faList }), index.h(FooterLink, { text: "Give to U of G", url: "https://www.alumni.uoguelph.ca/give-to-guelph/how-to-give", icon: faHandHoldingHeart.faHandHoldingHeart }))), index.h("address", { id: "uofg-footer-address", class: "uofg-footer-content-separator" }, index.h("strong", null, "University of Guelph"), index.h("span", null, "50 Stone Road East,"), index.h("span", null, "Guelph, Ontario, Canada"), index.h("span", null, "N1G 2W1"), index.h("a", { href: "tel:1-519-824-4120" }, index.h(index$1.FontAwesomeIcon, { icon: faPhoneFlip.faPhoneFlip }), index.h("span", null, "519-824-4120"))))));
|
|
637
638
|
}
|
|
639
|
+
get el() { return index.getElement(this); }
|
|
638
640
|
};
|
|
639
641
|
UofgFooter.style = uofgFooterCss;
|
|
640
642
|
|
|
@@ -797,7 +799,7 @@ exports.svgPathData = svgPathData;
|
|
|
797
799
|
exports.aliases = aliases;
|
|
798
800
|
});
|
|
799
801
|
|
|
800
|
-
const uofgHeaderCss = ":focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:host{height:auto !important}a{display:flex;align-items:center;transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}li{display:contents}button{border:none;background:none;cursor:pointer;font-size:inherit;font-family:inherit;color:inherit;line-height:inherit;word-spacing:inherit;letter-spacing:inherit;transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}uofg-menu{--uofg-menu-animation-type:slide;--uofg-menu-animation-duration:0.2s;--uofg-menu-animation-easing:ease-in-out;display:block;position:relative}uofg-menu>[slot=button]{display:flex;align-items:center;gap:0.5rem;height:100%;padding:0 1rem}uofg-menu>[slot=button]>svg{height:1em;fill:currentColor;transition-property:transform;transition-duration:0.2s;transition-timing-function:ease-in-out}uofg-menu>[slot=content]{display:flex;flex-direction:column;position:absolute;z-index:1;min-width:20rem;right:0;background-color:white;color:black;box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0px 1px 5px 0px rgba(0, 0, 0, 0.2)}#uofg-header{position:relative;width:100%;z-index:1000;font-size:1.6rem;font-family:\"Roboto Condensed\", Arial, sans-serif}#uofg-header-top-content-container,#uofg-header-main-content-container,#uofg-header-sub-content-container{display:flex;position:relative;align-items:center;justify-content:flex-end;width:100%;padding:0 calc((100vw - 1320px) / 2)}#uofg-header-top-content-container{height:4rem;background-color:white;color:black;z-index:3;font-size:1.9rem}#uofg-header-top-content-container>ul{display:flex;align-items:center;height:100%}#uofg-header-top-content-container>ul>li>a{height:100%;padding:0 1rem}#uofg-header-top-content-container>ul>li>a:hover,#uofg-header-top-content-container>ul>li>a:focus-visible,#uofg-header-top-content-container>ul>li>a[aria-expanded=true]{background-color:#dddddd}#uofg-header-top-content-container>uofg-menu{height:100%}#uofg-header-top-content-container>uofg-menu>[slot=button]{padding:0 1rem;background-color:#ffc72a;color:black;font-weight:bold}#uofg-header-top-content-container>uofg-menu>[slot=button]:hover,#uofg-header-top-content-container>uofg-menu>[slot=button]:focus-visible,#uofg-header-top-content-container>uofg-menu>[slot=button][aria-expanded=true]{background-color:#ccc;color:black}#uofg-header-top-content-container>uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-top-content-container>uofg-menu>[slot=content]{background-color:#dddddd;color:black}#uofg-header-top-content-container>uofg-menu>[slot=content] a{height:100%;padding:0.75rem;border-bottom:1px solid rgba(0, 0, 0, 0.4)}#uofg-header-top-content-container>uofg-menu>[slot=content] a:hover,#uofg-header-top-content-container>uofg-menu>[slot=content] a:focus-visible{background-color:#ffc72a}#uofg-header-main-content-container{height:5rem;background-color:black;color:white;z-index:2}#uofg-header-main-content-container>*{height:100%}#uofg-header-main-content-container.full-height{height:10rem}#uofg-header-logo-container{display:flex;height:100%;margin-right:auto;overflow:hidden}#uofg-header-logo-container>*{height:100%}#uofg-header-logo-container svg{width:auto}#uofg-header-decorative-img{position:absolute;left:0}#uofg-header-decorative-img>svg{height:100%}#uofg-header-logo{height:100%;position:relative;margin-left:1rem;transition:opacity 0.2s ease-in-out}#uofg-header-logo>svg{height:100%}#uofg-header-logo:hover,#uofg-header-logo:focus-visible{opacity:0.8}#uofg-header-full-main-content,#uofg-header-reduced-main-content{display:flex}#uofg-header-full-main-content svg,#uofg-header-reduced-main-content svg{height:1em;fill:currentColor}#uofg-header-full-main-content>ul{display:flex;align-items:center}#uofg-header-full-main-content>ul>li>a,#uofg-header-full-main-content>a,#uofg-header-full-main-content>uofg-menu>[slot=button]{display:flex;align-items:center;justify-content:center;height:100%;padding:0 1.5rem;font-size:2.2rem;border-bottom:7px solid transparent;padding-top:7px;transition-property:color, border-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-full-main-content>ul>li>a>svg,#uofg-header-full-main-content>a>svg,#uofg-header-full-main-content>uofg-menu>[slot=button]>svg{transition-property:color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-full-main-content>ul>li>a:hover,#uofg-header-full-main-content>ul>li>a:focus-visible,#uofg-header-full-main-content>a:hover,#uofg-header-full-main-content>a:focus-visible,#uofg-header-full-main-content>uofg-menu>[slot=button]:hover,#uofg-header-full-main-content>uofg-menu>[slot=button]:focus-visible{color:#ffc72a;border-color:#ffc72a}#uofg-header-full-main-content>ul>li>a:hover>svg,#uofg-header-full-main-content>ul>li>a:focus-visible>svg,#uofg-header-full-main-content>a:hover>svg,#uofg-header-full-main-content>a:focus-visible>svg,#uofg-header-full-main-content>uofg-menu>[slot=button]:hover>svg,#uofg-header-full-main-content>uofg-menu>[slot=button]:focus-visible>svg{color:white}#uofg-header-full-main-content>uofg-menu>[slot=button]{color:#ffc72a}#uofg-header-full-main-content>uofg-menu>[slot=content]{color:black;background-color:white;padding:2rem;width:35rem}#uofg-header-full-main-content>uofg-menu>[slot=content]>span{display:block;font-size:2.4rem;font-weight:bold;padding:1rem 0}#uofg-header-full-main-content>a{color:#ffc72a}#uofg-header-reduced-main-content>uofg-menu>[slot=button],#uofg-header-reduced-main-content>a{justify-content:center;padding:0 1.5rem;font-size:2rem;border-left:1px solid rgba(255, 255, 255, 0.15)}#uofg-header-reduced-main-content>uofg-menu>[slot=button]:hover,#uofg-header-reduced-main-content>uofg-menu>[slot=button]:focus-visible,#uofg-header-reduced-main-content>uofg-menu>[slot=button][aria-expanded=true],#uofg-header-reduced-main-content>a:hover,#uofg-header-reduced-main-content>a:focus-visible,#uofg-header-reduced-main-content>a[aria-expanded=true]{background-color:white;color:black}#uofg-header-reduced-main-content>uofg-menu{position:static;height:100%}#uofg-header-reduced-main-content>uofg-menu>[slot=content]{background-color:white;color:black;width:100%;padding:1rem 2rem 2rem}#uofg-header-reduced-main-content>uofg-menu>[slot=content]>span{display:block;font-size:2.4rem;font-weight:bold;padding:1rem 0}#uofg-header-main-menu>[slot=content]{overflow-y:auto;max-height:calc(100vh - 5rem)}#uofg-header-main-menu uofg-menu{position:relative}#uofg-header-main-menu uofg-menu>[slot=button]{display:flex;padding:0.75rem;height:auto;width:100%;color:inherit;border-bottom:1px solid rgba(0, 0, 0, 0.1)}#uofg-header-main-menu uofg-menu>[slot=button]>svg{margin-left:auto}#uofg-header-main-menu uofg-menu>[slot=button]:hover,#uofg-header-main-menu uofg-menu>[slot=button]:focus-visible,#uofg-header-main-menu uofg-menu>[slot=button][aria-expanded=true]{background-color:rgba(0, 0, 0, 0.1)}#uofg-header-main-menu uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-main-menu uofg-menu>[slot=content]{position:relative;box-shadow:none;padding:0}#uofg-header-main-menu uofg-menu>[slot=content]>li>a{padding:0.75rem;border-bottom:1px solid rgba(0, 0, 0, 0.1);transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-main-menu uofg-menu>[slot=content]>li>a:hover,#uofg-header-main-menu uofg-menu>[slot=content]>li>a:focus-visible{background-color:rgba(0, 0, 0, 0.1)}#uofg-header-main-menu uofg-menu.uofg-header-hello-you-menu>[slot=button]{background-color:#ffc72a;color:black;font-weight:bold}#uofg-header-main-menu uofg-menu.uofg-header-hello-you-menu>[slot=content]{background-color:rgba(0, 0, 0, 0.1);color:black}#uofg-header-main-menu ul>li>a{padding:0.75rem;width:100%;color:inherit;border-bottom:1px solid rgba(0, 0, 0, 0.1);transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-main-menu ul>li>a:hover,#uofg-header-main-menu ul>li>a:focus-visible,#uofg-header-main-menu ul>li>a[aria-expanded=true]{background-color:rgba(0, 0, 0, 0.1)}#uofg-header-sub-content-container{height:4rem;background-color:#dddddd;color:black;z-index:1;font-size:2rem;white-space:nowrap;justify-content:flex-start}#uofg-header-sub-content-container #uofg-header-page-title{display:flex;align-items:center;margin-right:auto;padding:0 1rem;height:100%;font-weight:bold}#uofg-header-sub-content-container uofg-menu{position:relative;height:100%}#uofg-header-sub-content-container uofg-menu>[slot=button]{color:inherit}#uofg-header-sub-content-container uofg-menu>[slot=button]:hover,#uofg-header-sub-content-container uofg-menu>[slot=button]:focus-visible,#uofg-header-sub-content-container uofg-menu>[slot=button][aria-expanded=true]{background-color:#ffc72a;color:black}#uofg-header-sub-content-container uofg-menu>[slot=content]{position:absolute;background-color:#dddddd;color:black;white-space:normal}#uofg-header-sub-content-container uofg-menu>[slot=content]>li:not(:last-child)>a{border-bottom:1px solid rgba(0, 0, 0, 0.1)}#uofg-header-sub-content-container uofg-menu>[slot=content]>li>a{padding:0.75rem;justify-content:flex-start}#uofg-header-sub-content-container a{display:flex;align-items:center;justify-content:center;height:100%;transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-sub-content-container a:hover,#uofg-header-sub-content-container a:focus-visible{background-color:#ffc72a;color:black}.uofg-header-sub-content{display:flex;margin-left:auto}#uofg-header-full-sub-content,#uofg-header-reduced-sub-content{height:100%}#uofg-header-full-sub-content a,#uofg-header-full-sub-content uofg-menu>[slot=button],#uofg-header-reduced-sub-content a,#uofg-header-reduced-sub-content uofg-menu>[slot=button]{padding:0 1.25rem}#uofg-header-full-sub-content{height:100%}#uofg-header-full-sub-content>ul{display:flex;align-items:center}#uofg-header-full-sub-content uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-full-sub-content .uofg-header-page-specific{display:flex;height:100%;align-items:center;margin-left:auto}#uofg-header-reduced-sub-content>uofg-menu{position:static;margin-left:auto}#uofg-header-reduced-sub-content>uofg-menu.overflowed{position:relative}#uofg-header-reduced-sub-content>uofg-menu.overflowed>[slot=content]{width:40rem}#uofg-header-reduced-sub-content>uofg-menu>[slot=button]{font-size:2rem;padding:0 1.5rem;text-align:left}#uofg-header-reduced-sub-content>uofg-menu>[slot=content]{background-color:white;color:black;padding:2rem;overflow-y:auto;max-height:calc(100vh - 5rem - 4rem);width:100%;white-space:normal}#uofg-header-reduced-sub-content>uofg-menu>[slot=content]>span{display:block;font-size:2.4rem;font-weight:bold;padding:1rem 0}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] a{height:auto;padding:1rem;width:100%;align-items:flex-start;justify-content:flex-start;border-bottom:1px solid rgba(0, 0, 0, 0.1)}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] a:hover,#uofg-header-reduced-sub-content>uofg-menu>[slot=content] a:focus-visible{background-color:rgba(0, 0, 0, 0.1);color:black}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu{height:auto}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]{width:100%;padding:1rem;border-bottom:1px solid rgba(0, 0, 0, 0.1);text-align:left}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]>svg{margin-left:auto}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]:hover,#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]:focus-visible,#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button][aria-expanded=true]{background-color:rgba(0, 0, 0, 0.2);color:black}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=content]{position:static;background-color:rgba(0, 0, 0, 0.1);box-shadow:none}@media screen and (max-width: 1320px){#uofg-header-decorative-img{position:static}}@media screen and (min-width: 1320px) and (max-width: calc(1320px + 8.5rem)){#uofg-header-logo{position:absolute;left:0;margin-left:8.5rem}}";
|
|
802
|
+
const uofgHeaderCss = ":focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:host{height:auto !important}a{display:flex;align-items:center;transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}li{display:contents}button{border:none;background:none;cursor:pointer;font-size:inherit;font-family:inherit;color:inherit;line-height:inherit;word-spacing:inherit;letter-spacing:inherit;transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}uofg-menu{--uofg-menu-animation-type:slide;--uofg-menu-animation-duration:0.2s;--uofg-menu-animation-easing:ease-in-out;display:block;position:relative}uofg-menu>[slot=button]{display:flex;align-items:center;gap:0.5rem;height:100%;padding:0 1rem}uofg-menu>[slot=button]>svg{height:1em;fill:currentColor;transition-property:transform;transition-duration:0.2s;transition-timing-function:ease-in-out}uofg-menu>[slot=content]{display:flex;flex-direction:column;position:absolute;z-index:1;min-width:20rem;right:0;background-color:white;color:black;box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0px 1px 5px 0px rgba(0, 0, 0, 0.2)}#uofg-header{position:relative;width:100%;z-index:1000;font-size:1.6rem;font-family:\"Roboto Condensed\", Arial, sans-serif}#uofg-header-top-content-container,#uofg-header-main-content-container,#uofg-header-sub-content-container{display:flex;position:relative;align-items:center;justify-content:flex-end;width:100%;padding:0 calc((100vw - 1320px) / 2)}#uofg-header-top-content-container{height:4rem;background-color:white;color:black;z-index:3;font-size:1.9rem}#uofg-header-top-content-container>ul{display:flex;align-items:center;height:100%}#uofg-header-top-content-container>ul>li>a{height:100%;padding:0 1rem}#uofg-header-top-content-container>ul>li>a:hover,#uofg-header-top-content-container>ul>li>a:focus-visible,#uofg-header-top-content-container>ul>li>a[aria-expanded=true]{background-color:#dddddd}#uofg-header-top-content-container>uofg-menu{height:100%}#uofg-header-top-content-container>uofg-menu>[slot=button]{padding:0 1rem;background-color:#ffc72a;color:black;font-weight:bold}#uofg-header-top-content-container>uofg-menu>[slot=button]:hover,#uofg-header-top-content-container>uofg-menu>[slot=button]:focus-visible,#uofg-header-top-content-container>uofg-menu>[slot=button][aria-expanded=true]{background-color:#ccc;color:black}#uofg-header-top-content-container>uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-top-content-container>uofg-menu>[slot=content]{background-color:#dddddd;color:black}#uofg-header-top-content-container>uofg-menu>[slot=content] a{height:100%;padding:0.75rem;border-bottom:1px solid rgba(0, 0, 0, 0.4)}#uofg-header-top-content-container>uofg-menu>[slot=content] a:hover,#uofg-header-top-content-container>uofg-menu>[slot=content] a:focus-visible{background-color:#ffc72a}#uofg-header-main-content-container{height:5rem;background-color:black;color:white;z-index:2}#uofg-header-main-content-container>*{height:100%}#uofg-header-main-content-container.full-height{height:10rem}#uofg-header-logo-container{display:flex;height:100%;margin-right:auto;overflow:hidden}#uofg-header-logo-container>*{height:100%}#uofg-header-logo-container svg{width:auto}#uofg-header-decorative-img{position:absolute;left:0}#uofg-header-decorative-img>svg{height:100%}#uofg-header-logo{height:100%;position:relative;margin-left:1rem;transition:opacity 0.2s ease-in-out}#uofg-header-logo>svg{height:100%}#uofg-header-logo:hover,#uofg-header-logo:focus-visible{opacity:0.8}#uofg-header-full-main-content,#uofg-header-reduced-main-content{display:flex}#uofg-header-full-main-content svg,#uofg-header-reduced-main-content svg{height:1em;fill:currentColor}#uofg-header-full-main-content>ul{display:flex;align-items:center}#uofg-header-full-main-content>ul>li>a,#uofg-header-full-main-content>a,#uofg-header-full-main-content>uofg-menu>[slot=button]{display:flex;align-items:center;justify-content:center;height:100%;font-size:2.2rem;border-bottom:7px solid transparent;padding:7px 1.5rem 0;transition-property:color, border-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-full-main-content>ul>li>a>svg,#uofg-header-full-main-content>a>svg,#uofg-header-full-main-content>uofg-menu>[slot=button]>svg{transition-property:color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-full-main-content>ul>li>a:hover,#uofg-header-full-main-content>ul>li>a:focus-visible,#uofg-header-full-main-content>a:hover,#uofg-header-full-main-content>a:focus-visible,#uofg-header-full-main-content>uofg-menu>[slot=button]:hover,#uofg-header-full-main-content>uofg-menu>[slot=button]:focus-visible{color:#ffc72a;border-color:#ffc72a}#uofg-header-full-main-content>ul>li>a:hover>svg,#uofg-header-full-main-content>ul>li>a:focus-visible>svg,#uofg-header-full-main-content>a:hover>svg,#uofg-header-full-main-content>a:focus-visible>svg,#uofg-header-full-main-content>uofg-menu>[slot=button]:hover>svg,#uofg-header-full-main-content>uofg-menu>[slot=button]:focus-visible>svg{color:white}#uofg-header-full-main-content>uofg-menu>[slot=button]{color:#ffc72a}#uofg-header-full-main-content>uofg-menu>[slot=content]{color:black;background-color:white;padding:2rem;width:35rem}#uofg-header-full-main-content>uofg-menu>[slot=content]>span{display:block;font-size:2.4rem;font-weight:bold;padding:1rem 0}#uofg-header-full-main-content>a{color:#ffc72a}#uofg-header-reduced-main-content{font-size:2rem}#uofg-header-reduced-main-content>uofg-menu>[slot=button],#uofg-header-reduced-main-content>a{justify-content:center;padding:0 1.5rem;font-size:2rem;border-left:1px solid rgba(255, 255, 255, 0.15)}#uofg-header-reduced-main-content>uofg-menu>[slot=button]:hover,#uofg-header-reduced-main-content>uofg-menu>[slot=button]:focus-visible,#uofg-header-reduced-main-content>uofg-menu>[slot=button][aria-expanded=true],#uofg-header-reduced-main-content>a:hover,#uofg-header-reduced-main-content>a:focus-visible,#uofg-header-reduced-main-content>a[aria-expanded=true]{background-color:white;color:black}#uofg-header-reduced-main-content>uofg-menu{position:static;height:100%}#uofg-header-reduced-main-content>uofg-menu>[slot=content]{background-color:white;color:black;width:100%;padding:1rem 2rem 2rem}#uofg-header-reduced-main-content>uofg-menu>[slot=content] a{padding:1rem}#uofg-header-reduced-main-content>uofg-menu>[slot=content]>span{display:block;font-size:2.4rem;font-weight:bold;padding:1rem 0}#uofg-header-main-menu>[slot=content]{overflow-y:auto;max-height:calc(100vh - 5rem)}#uofg-header-main-menu uofg-menu{position:relative}#uofg-header-main-menu uofg-menu>[slot=button]{display:flex;padding:1rem;height:auto;width:100%;color:inherit;border-bottom:1px solid rgba(0, 0, 0, 0.1)}#uofg-header-main-menu uofg-menu>[slot=button]>svg{margin-left:auto}#uofg-header-main-menu uofg-menu>[slot=button]:hover,#uofg-header-main-menu uofg-menu>[slot=button]:focus-visible,#uofg-header-main-menu uofg-menu>[slot=button][aria-expanded=true]{background-color:rgba(0, 0, 0, 0.1)}#uofg-header-main-menu uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-main-menu uofg-menu>[slot=content]{position:relative;box-shadow:none;padding:0}#uofg-header-main-menu uofg-menu>[slot=content]>li>a{padding:1rem;border-bottom:1px solid rgba(0, 0, 0, 0.1);transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-main-menu uofg-menu>[slot=content]>li>a:hover,#uofg-header-main-menu uofg-menu>[slot=content]>li>a:focus-visible{background-color:rgba(0, 0, 0, 0.1)}#uofg-header-main-menu uofg-menu.uofg-header-hello-you-menu>[slot=button]{background-color:#ffc72a;color:black;font-weight:bold}#uofg-header-main-menu uofg-menu.uofg-header-hello-you-menu>[slot=content]{background-color:rgba(0, 0, 0, 0.1);color:black}#uofg-header-main-menu ul>li>a{padding:1rem;width:100%;color:inherit;border-bottom:1px solid rgba(0, 0, 0, 0.1);transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-main-menu ul>li>a:hover,#uofg-header-main-menu ul>li>a:focus-visible,#uofg-header-main-menu ul>li>a[aria-expanded=true]{background-color:rgba(0, 0, 0, 0.1)}#uofg-header-sub-content-container{height:4rem;background-color:#dddddd;color:black;z-index:1;font-size:2rem;white-space:nowrap;justify-content:flex-start}#uofg-header-sub-content-container #uofg-header-page-title{display:flex;align-items:center;margin-right:auto;padding:0 1rem;height:100%;font-weight:bold}#uofg-header-sub-content-container uofg-menu{position:relative;height:100%}#uofg-header-sub-content-container uofg-menu>[slot=button]{color:inherit}#uofg-header-sub-content-container uofg-menu>[slot=button]:hover,#uofg-header-sub-content-container uofg-menu>[slot=button]:focus-visible,#uofg-header-sub-content-container uofg-menu>[slot=button][aria-expanded=true]{background-color:#ffc72a;color:black}#uofg-header-sub-content-container uofg-menu>[slot=content]{position:absolute;background-color:#dddddd;color:black;white-space:normal}#uofg-header-sub-content-container uofg-menu>[slot=content]>li:not(:last-child)>a{border-bottom:1px solid rgba(0, 0, 0, 0.1)}#uofg-header-sub-content-container uofg-menu>[slot=content]>li>a{padding:0.75rem;justify-content:flex-start}#uofg-header-sub-content-container a{display:flex;align-items:center;justify-content:center;height:100%;transition-property:color, background-color;transition-duration:0.2s;transition-timing-function:ease-in-out}#uofg-header-sub-content-container a:hover,#uofg-header-sub-content-container a:focus-visible{background-color:#ffc72a;color:black}.uofg-header-sub-content{display:flex;margin-left:auto}#uofg-header-full-sub-content,#uofg-header-reduced-sub-content{height:100%}#uofg-header-full-sub-content a,#uofg-header-full-sub-content uofg-menu>[slot=button],#uofg-header-reduced-sub-content a,#uofg-header-reduced-sub-content uofg-menu>[slot=button]{padding:0 1.25rem}#uofg-header-full-sub-content{height:100%}#uofg-header-full-sub-content>ul{display:flex;align-items:center}#uofg-header-full-sub-content uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-full-sub-content .uofg-header-page-specific{display:flex;height:100%;align-items:center;margin-left:auto}#uofg-header-reduced-sub-content>uofg-menu{position:static;margin-left:auto}#uofg-header-reduced-sub-content>uofg-menu.overflowed{position:relative}#uofg-header-reduced-sub-content>uofg-menu.overflowed>[slot=content]{width:40rem}#uofg-header-reduced-sub-content>uofg-menu>[slot=button]{font-size:2rem;padding:0 1.5rem;text-align:left}#uofg-header-reduced-sub-content>uofg-menu>[slot=content]{background-color:white;color:black;padding:2rem;overflow-y:auto;max-height:calc(\n 100vh - 1rem\n );width:100%;white-space:normal}#uofg-header-reduced-sub-content>uofg-menu>[slot=content]>span{display:block;font-size:2.4rem;font-weight:bold;padding:1rem 0}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] a{height:auto;padding:1rem;width:100%;align-items:flex-start;justify-content:flex-start;border-bottom:1px solid rgba(0, 0, 0, 0.1)}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] a:hover,#uofg-header-reduced-sub-content>uofg-menu>[slot=content] a:focus-visible{background-color:rgba(0, 0, 0, 0.1);color:black}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu{height:auto}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]{width:100%;padding:1rem;border-bottom:1px solid rgba(0, 0, 0, 0.1);text-align:left}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]>svg{margin-left:auto}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]:hover,#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button]:focus-visible,#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button][aria-expanded=true]{background-color:rgba(0, 0, 0, 0.2);color:black}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=button][aria-expanded=true]>svg{transform:rotate(180deg)}#uofg-header-reduced-sub-content>uofg-menu>[slot=content] uofg-menu>[slot=content]{position:static;background-color:rgba(0, 0, 0, 0.1);box-shadow:none}@media screen and (max-width: 1320px){#uofg-header-decorative-img{position:static}}@media screen and (min-width: 1320px) and (max-width: calc(1320px + $decorative-img-width)){#uofg-header-logo{position:absolute;left:0;margin-left:8.5rem}}";
|
|
801
803
|
|
|
802
804
|
const TopLinks = () => (index.h("ul", null, index.h("li", null, index.h("a", { href: "https://uoguelph.ca/apply/" }, "APPLY")), index.h("li", null, index.h("a", { href: "https://bbis.alumni.uoguelph.ca/BBIS_Cannon/give/uofg" }, "GIVE")), index.h("li", null, index.h("a", { href: "https://news.uoguelph.ca/" }, "NEWS"))));
|
|
803
805
|
const HelloMenu = props => (index.h("uofg-menu", { class: "uofg-header-hello-you-menu", "auto-collapse": props.autoCollapse }, index.h("button", { slot: "button" }, index.h("span", null, "HELLO!"), index.h(index$1.FontAwesomeIcon, { icon: faCaretDown.faCaretDown })), index.h("ul", { slot: "content" }, index.h("li", null, index.h("a", { href: "https://uoguelph.ca/future-students" }, "Future Students")), index.h("li", null, index.h("a", { href: "https://www.uoguelph.ca/students" }, "Current Students")), index.h("li", null, index.h("a", { href: "https://alumni.uoguelph.ca/" }, "Alumni & Donors")), index.h("li", null, index.h("a", { href: "https://www.uoguelph.ca/faculty" }, "Faculty & Staff")), index.h("li", null, index.h("a", { href: "https://cecs.uoguelph.ca/employers-institutions" }, "Employers & Partners")))));
|
|
@@ -1132,7 +1134,6 @@ const UofgMenu = class {
|
|
|
1132
1134
|
};
|
|
1133
1135
|
|
|
1134
1136
|
exports.uofg_back_to_top = UofgBackToTop;
|
|
1135
|
-
exports.uofg_card = UofgCard;
|
|
1136
1137
|
exports.uofg_footer = UofgFooter;
|
|
1137
1138
|
exports.uofg_header = UofgHeader;
|
|
1138
1139
|
exports.uofg_menu = UofgMenu;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-d71963b7.js');
|
|
6
|
+
|
|
7
|
+
const uofgCardCss = "*{box-sizing:border-box}button{border:none;background-color:transparent;cursor:pointer}a{color:inherit;text-decoration:none}ul{list-style:none;padding:0;margin:unset}ul>li{display:contents}:focus-visible{outline:2px solid #ffc72a;outline-offset:0.5rem}:host{display:block;width:300px;margin:1rem}#uofg-card{display:flex;flex-direction:column;background-color:#f1f8fa;font-size:1.6rem;border-radius:5px;overflow:hidden}a#uofg-card{border:1px solid transparent;transition-property:border-color;transition-duration:0.2s;transition-timing-function:ease-in-out}a#uofg-card:hover,a#uofg-card:focus,a#uofg-card:focus-within{border-color:#69a3b9}#uofg-card-img{display:flex;justify-content:center;align-items:center;overflow:hidden}#uofg-card-img>slot::slotted(img){width:100%;object-fit:cover;transition-property:transform;transition-duration:0.2s;transition-timing-function:ease-in-out}a#uofg-card:hover #uofg-card-img>slot::slotted(img),a#uofg-card:focus #uofg-card-img>slot::slotted(img),a#uofg-card:focus-within #uofg-card-img>slot::slotted(img){transform:scale(1.1)}#uofg-card-content{padding:1rem}#uofg-card-content>slot[name=title]::slotted(*){font-size:2.25rem;font-weight:normal;margin:0;padding:1rem 0}#uofg-card-content>slot[name=subtitle]::slotted(*){font-size:1.8rem;font-weight:normal;margin:0;padding:1rem 0}#uofg-card-content>slot[name=body]::slotted(*){font-size:1.6rem;font-weight:normal;margin:0}#uofg-card-footer{background-color:#bedae3}";
|
|
8
|
+
|
|
9
|
+
const UofgCard = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.href = undefined;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const Body = () => (index.h(index.Fragment, null, index.h("div", { id: "uofg-card-img" }, index.h("slot", { name: "img" })), index.h("div", { id: "uofg-card-content" }, index.h("slot", { name: "title" }), index.h("slot", { name: "subtitle" }), index.h("slot", { name: "body" })), index.h("div", { id: "uofg-card-footer" }, index.h("slot", { name: "footer" }))));
|
|
16
|
+
return this.href ? (index.h("a", { href: this.href, id: "uofg-card" }, index.h(Body, null))) : (index.h("div", { id: "uofg-card" }, index.h(Body, null)));
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
UofgCard.style = uofgCardCss;
|
|
20
|
+
|
|
21
|
+
exports.uofg_card = UofgCard;
|