@xplortech/apollo-core 0.5.2 → 0.5.3
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/apollo-core/apollo-core.css +5468 -9
- package/dist/apollo-core/apollo-core.esm.js +125 -1
- package/dist/apollo-core/app-globals-0f993ce5.js +3 -0
- package/dist/apollo-core/css-shim-bbdf0cc6.js +4 -0
- package/dist/apollo-core/dom-1f98a75f.js +73 -0
- package/dist/apollo-core/index-3c9f25ef.js +2938 -0
- package/dist/apollo-core/index-912d1a21.js +584 -0
- package/dist/apollo-core/index.esm.js +1 -0
- package/dist/{cjs/regular-872f5226.js → apollo-core/regular-133c23b5.js} +12 -3
- package/dist/apollo-core/shadow-css-67b66845.js +389 -0
- package/dist/apollo-core/xpl-application-shell.entry.js +50 -0
- package/dist/apollo-core/xpl-avatar.entry.js +19 -0
- package/dist/apollo-core/xpl-backdrop.entry.js +21 -0
- package/dist/{esm → apollo-core}/xpl-badge.entry.js +1 -1
- package/dist/{collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js → apollo-core/xpl-breadcrumb-item.entry.js} +9 -12
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +14 -0
- package/dist/{esm → apollo-core}/xpl-button-row.entry.js +1 -1
- package/dist/apollo-core/xpl-button.entry.js +34 -0
- package/dist/apollo-core/xpl-checkbox.entry.js +25 -0
- package/dist/{esm → apollo-core}/xpl-choicelist.entry.js +1 -1
- package/dist/apollo-core/xpl-content-area.entry.js +16 -0
- package/dist/{esm → apollo-core}/xpl-divider.entry.js +1 -1
- package/dist/{esm → apollo-core}/xpl-grid-item.entry.js +1 -1
- package/dist/{esm → apollo-core}/xpl-grid.entry.js +1 -1
- package/dist/{esm → apollo-core}/xpl-input.entry.js +20 -3
- package/dist/{esm → apollo-core}/xpl-list.entry.js +2 -2
- package/dist/apollo-core/xpl-main-nav.entry.js +26 -0
- package/dist/apollo-core/xpl-nav-item.entry.js +12 -0
- package/dist/{esm → apollo-core}/xpl-pagination.entry.js +1 -1
- package/dist/apollo-core/xpl-radio.entry.js +25 -0
- package/dist/apollo-core/xpl-secondary-nav.entry.js +12 -0
- package/dist/{esm → apollo-core}/xpl-select.entry.js +43 -3
- package/dist/{esm → apollo-core}/xpl-table.entry.js +1 -1
- package/dist/{esm → apollo-core}/xpl-tag.entry.js +1 -1
- package/dist/{esm → apollo-core}/xpl-toggle.entry.js +2 -2
- package/dist/apollo-core/xpl-utility-bar.entry.js +25 -0
- package/dist/types/components/xpl-choicelist/choice.d.ts +1 -1
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +1 -0
- package/dist/types/components/xpl-dropdown/dropdownchoice.d.ts +5 -5
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +1 -0
- package/dist/types/components/xpl-list/listitem.d.ts +15 -15
- package/dist/types/components/xpl-list/xpl-list.d.ts +1 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -0
- package/dist/types/components.d.ts +3 -0
- package/package.json +1 -1
- package/dist/apollo-core/p-0203d4e8.entry.js +0 -1
- package/dist/apollo-core/p-0b2c612e.entry.js +0 -1
- package/dist/apollo-core/p-128a0240.entry.js +0 -1
- package/dist/apollo-core/p-2f90296c.js +0 -10
- package/dist/apollo-core/p-30003b15.entry.js +0 -1
- package/dist/apollo-core/p-4e56a2ca.entry.js +0 -1
- package/dist/apollo-core/p-5854d1e4.entry.js +0 -1
- package/dist/apollo-core/p-611536d8.entry.js +0 -1
- package/dist/apollo-core/p-7c9fee7e.entry.js +0 -1
- package/dist/apollo-core/p-8b6633c7.js +0 -1
- package/dist/apollo-core/p-97cd1f73.entry.js +0 -1
- package/dist/apollo-core/p-9c5ca308.entry.js +0 -1
- package/dist/apollo-core/p-ad90fe4d.js +0 -1
- package/dist/apollo-core/p-bd4a7e3c.entry.js +0 -1
- package/dist/apollo-core/p-dab8e7a1.entry.js +0 -1
- package/dist/apollo-core/p-eb63b401.entry.js +0 -1
- package/dist/apollo-core/p-ee2f4422.entry.js +0 -1
- package/dist/apollo-core/p-f167aa05.entry.js +0 -1
- package/dist/cjs/apollo-core.cjs.js +0 -19
- package/dist/cjs/index-944adb2e.js +0 -1609
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -21
- package/dist/cjs/v4-14140ff3.js +0 -77
- package/dist/cjs/xpl-application-shell_11.cjs.entry.js +0 -230
- package/dist/cjs/xpl-badge.cjs.entry.js +0 -21
- package/dist/cjs/xpl-button-row.cjs.entry.js +0 -24
- package/dist/cjs/xpl-checkbox_2.cjs.entry.js +0 -51
- package/dist/cjs/xpl-choicelist.cjs.entry.js +0 -36
- package/dist/cjs/xpl-divider.cjs.entry.js +0 -18
- package/dist/cjs/xpl-grid-item.cjs.entry.js +0 -25
- package/dist/cjs/xpl-grid.cjs.entry.js +0 -35
- package/dist/cjs/xpl-input.cjs.entry.js +0 -2527
- package/dist/cjs/xpl-list.cjs.entry.js +0 -63
- package/dist/cjs/xpl-pagination.cjs.entry.js +0 -76
- package/dist/cjs/xpl-select.cjs.entry.js +0 -623
- package/dist/cjs/xpl-table.cjs.entry.js +0 -89
- package/dist/cjs/xpl-tag.cjs.entry.js +0 -21
- package/dist/cjs/xpl-toggle.cjs.entry.js +0 -34
- package/dist/collection/collection-manifest.json +0 -37
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +0 -143
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +0 -158
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +0 -41
- package/dist/collection/components/xpl-badge/xpl-badge.js +0 -50
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +0 -15
- package/dist/collection/components/xpl-button/xpl-button.js +0 -214
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +0 -119
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +0 -185
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +0 -143
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +0 -39
- package/dist/collection/components/xpl-divider/xpl-divider.js +0 -30
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +0 -32
- package/dist/collection/components/xpl-grid/xpl-grid.js +0 -26
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +0 -93
- package/dist/collection/components/xpl-input/xpl-input.js +0 -471
- package/dist/collection/components/xpl-list/xpl-list.js +0 -93
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +0 -72
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +0 -10
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +0 -189
- package/dist/collection/components/xpl-radio/xpl-radio.js +0 -168
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +0 -9
- package/dist/collection/components/xpl-select/xpl-select.js +0 -311
- package/dist/collection/components/xpl-table/xpl-table.js +0 -194
- package/dist/collection/components/xpl-tag/xpl-tag.js +0 -30
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +0 -157
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +0 -70
- package/dist/custom-elements/index.js +0 -19959
- package/dist/esm/apollo-core.js +0 -17
- package/dist/esm/index-899dba3b.js +0 -1580
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -17
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- 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/regular-86225e9d.js +0 -16041
- package/dist/esm/v4-929670b7.js +0 -75
- package/dist/esm/xpl-application-shell_11.entry.js +0 -216
- package/dist/esm/xpl-checkbox_2.entry.js +0 -46
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stories/application-shell.stories.js +0 -766
- package/dist/stories/avatar.stories.js +0 -173
- package/dist/stories/backdrop.stories.js +0 -18
- package/dist/stories/badge.stories.js +0 -48
- package/dist/stories/breadcrumbs.stories.js +0 -115
- package/dist/stories/button-row.stories.js +0 -64
- package/dist/stories/button.stories.js +0 -98
- package/dist/stories/checkbox.stories.js +0 -76
- package/dist/stories/choicelist.stories.js +0 -112
- package/dist/stories/content-area.stories.js +0 -53
- package/dist/stories/divider.stories.js +0 -34
- package/dist/stories/grid.stories.js +0 -100
- package/dist/stories/input.stories.js +0 -252
- package/dist/stories/list.stories.js +0 -134
- package/dist/stories/main-nav.stories.js +0 -308
- package/dist/stories/pagination.stories.js +0 -84
- package/dist/stories/radio.stories.js +0 -66
- package/dist/stories/secondary-nav.stories.js +0 -76
- package/dist/stories/select.stories.js +0 -111
- package/dist/stories/table.stories.js +0 -107
- package/dist/stories/tabs.stories.js +0 -24
- package/dist/stories/toggle.stories.js +0 -80
- package/dist/stories/utility-bar.stories.js +0 -94
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/application-shell.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/button-row.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/button.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/choicelist.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/divider.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/grid.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/input.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/list.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/select.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/table.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/toggle.stories.d.ts +0 -0
- /package/dist/types/Users/{fernandogelin/Projects → roc/Sites}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import './
|
|
3
|
-
import
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
import { v as v4 } from './index-912d1a21.js';
|
|
3
|
+
import './regular-133c23b5.js';
|
|
4
4
|
|
|
5
5
|
const HOOKS = [
|
|
6
6
|
"onChange",
|
|
@@ -433,6 +433,12 @@ function compareDates(date1, date2, timeless = true) {
|
|
|
433
433
|
}
|
|
434
434
|
return date1.getTime() - date2.getTime();
|
|
435
435
|
}
|
|
436
|
+
function compareTimes(date1, date2) {
|
|
437
|
+
return (3600 * (date1.getHours() - date2.getHours()) +
|
|
438
|
+
60 * (date1.getMinutes() - date2.getMinutes()) +
|
|
439
|
+
date1.getSeconds() -
|
|
440
|
+
date2.getSeconds());
|
|
441
|
+
}
|
|
436
442
|
const isBetween = (ts, ts1, ts2) => {
|
|
437
443
|
return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);
|
|
438
444
|
};
|
|
@@ -468,6 +474,7 @@ function getDefaultHours(config) {
|
|
|
468
474
|
return { hours, minutes, seconds };
|
|
469
475
|
}
|
|
470
476
|
|
|
477
|
+
"use strict";
|
|
471
478
|
if (typeof Object.assign !== "function") {
|
|
472
479
|
Object.assign = function (target, ...args) {
|
|
473
480
|
if (!target) {
|
|
@@ -1570,6 +1577,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1570
1577
|
self._input.focus();
|
|
1571
1578
|
}
|
|
1572
1579
|
break;
|
|
1580
|
+
default:
|
|
1581
|
+
break;
|
|
1573
1582
|
}
|
|
1574
1583
|
}
|
|
1575
1584
|
if (self.amPM !== undefined && eventTarget === self.amPM) {
|
|
@@ -1916,6 +1925,12 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
1916
1925
|
let editableSheet = null;
|
|
1917
1926
|
for (let i = 0; i < document.styleSheets.length; i++) {
|
|
1918
1927
|
const sheet = document.styleSheets[i];
|
|
1928
|
+
try {
|
|
1929
|
+
sheet.cssRules;
|
|
1930
|
+
}
|
|
1931
|
+
catch (err) {
|
|
1932
|
+
continue;
|
|
1933
|
+
}
|
|
1919
1934
|
editableSheet = sheet;
|
|
1920
1935
|
break;
|
|
1921
1936
|
}
|
|
@@ -2071,6 +2086,8 @@ function FlatpickrInstance(element, instanceConfig) {
|
|
|
2071
2086
|
.split(self.l10n.rangeSeparator)
|
|
2072
2087
|
.map((date) => self.parseDate(date, format));
|
|
2073
2088
|
break;
|
|
2089
|
+
default:
|
|
2090
|
+
break;
|
|
2074
2091
|
}
|
|
2075
2092
|
}
|
|
2076
2093
|
else
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './regular-
|
|
1
|
+
import { h, F as Fragment, r as registerInstance, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
import './regular-133c23b5.js';
|
|
3
3
|
|
|
4
4
|
const ListItemCpt = ({ avatar, avatars, badges, href, title, subtext, metadata }) => {
|
|
5
5
|
const hasRight = avatars || badges || subtext;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
|
|
3
|
+
const XplMainNav = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.navWidth = createEvent(this, "navWidth", 7);
|
|
7
|
+
/**
|
|
8
|
+
* @property {string} width - The width of the Main Nav.
|
|
9
|
+
*/
|
|
10
|
+
this.width = "default";
|
|
11
|
+
}
|
|
12
|
+
navWidthHandler() {
|
|
13
|
+
this.navWidth.emit(this.width);
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
this.navWidthHandler();
|
|
17
|
+
}
|
|
18
|
+
componentDidUpdate() {
|
|
19
|
+
this.navWidthHandler();
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return (h(Host, { class: `xpl-main-nav xpl-main-nav--${this.width}`, "aria-label": "Sidebar" }, h("nav", null, h("header", { "aria-label": "Sidebar Header" }, h("slot", { name: "logo" }), h("slot", { name: "brand-name" })), h("div", { class: "xpl-main-nav__main_section" }, h("slot", { name: "navigation" })), h("footer", { class: "xpl-main-nav__footer", "aria-label": "Sidebar Footer" }, h("slot", { name: "footer" })))));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { XplMainNav as xpl_main_nav };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
|
|
3
|
+
const XplNavItem = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: "xpl-nav-item", role: "listitem" }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { XplNavItem as xpl_nav_item };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
import { v as v4 } from './index-912d1a21.js';
|
|
3
|
+
|
|
4
|
+
const XplRadio = class {
|
|
5
|
+
constructor(hostRef) {
|
|
6
|
+
registerInstance(this, hostRef);
|
|
7
|
+
this.radioChange = createEvent(this, "radioChange", 7);
|
|
8
|
+
this.id = v4();
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return (h(Host, { class: {
|
|
12
|
+
"xpl-checkbox-radio-container": true,
|
|
13
|
+
"styled": this.styled,
|
|
14
|
+
"disabled": this.disabled,
|
|
15
|
+
} }, h("input", { class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, value: this.value, onChange: () => this.radioChange.emit(true) }), h("label", { class: {
|
|
16
|
+
"xpl-label": true,
|
|
17
|
+
"xpl-label--disabled": this.disabled
|
|
18
|
+
}, htmlFor: this.id }, h("slot", null), this.description && h("small", { class: {
|
|
19
|
+
"xpl-description": true,
|
|
20
|
+
"xpl-description--disabled": this.disabled
|
|
21
|
+
} }, this.description))));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { XplRadio as xpl_radio };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
|
|
3
|
+
const XplSecondaryNav = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { class: "xpl-secondary-nav" }, h("nav", { "aria-label": "Secondary Nav" }, h("slot", null))));
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { XplSecondaryNav as xpl_secondary_nav };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { h, r as registerInstance,
|
|
2
|
-
import { v as v4 } from './
|
|
1
|
+
import { h, r as registerInstance, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
import { v as v4 } from './index-912d1a21.js';
|
|
3
3
|
|
|
4
|
-
/// <reference path="./dropdownchoice.d.ts"></reference>
|
|
5
4
|
const XplDropdown = ({ active, choices, mode, selected, update, }) => {
|
|
6
5
|
return (h("div", { class: {
|
|
7
6
|
"xpl-dropdown": true,
|
|
@@ -35,6 +34,47 @@ const XplDropdown = ({ active, choices, mode, selected, update, }) => {
|
|
|
35
34
|
|
|
36
35
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
37
36
|
|
|
37
|
+
function getDefaultExportFromCjs (x) {
|
|
38
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
42
|
+
return module = {
|
|
43
|
+
path: basedir,
|
|
44
|
+
exports: {},
|
|
45
|
+
require: function (path, base) {
|
|
46
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
47
|
+
}
|
|
48
|
+
}, fn(module, module.exports), module.exports;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
52
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
56
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function getAugmentedNamespace(n) {
|
|
60
|
+
if (n.__esModule) return n;
|
|
61
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
62
|
+
Object.keys(n).forEach(function (k) {
|
|
63
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
64
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return n[k];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
return a;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function commonjsRequire () {
|
|
75
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
76
|
+
}
|
|
77
|
+
|
|
38
78
|
/**
|
|
39
79
|
* lodash (Custom Build) <https://lodash.com/>
|
|
40
80
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { v as v4 } from './
|
|
1
|
+
import { r as registerInstance, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
import { v as v4 } from './index-912d1a21.js';
|
|
3
3
|
|
|
4
4
|
const XplToggle = class {
|
|
5
5
|
constructor(hostRef) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as registerInstance, f as createEvent, h, e as Host } from './index-3c9f25ef.js';
|
|
2
|
+
|
|
3
|
+
const XplUtilityBar = class {
|
|
4
|
+
constructor(hostRef) {
|
|
5
|
+
registerInstance(this, hostRef);
|
|
6
|
+
this.navOpen = createEvent(this, "navOpen", 7);
|
|
7
|
+
this.open = true;
|
|
8
|
+
this.bars = `
|
|
9
|
+
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="bars" class="svg-inline--fa fa-bars fa-w-14 xpl-utility-nav__bars" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"></path></svg>
|
|
10
|
+
`;
|
|
11
|
+
}
|
|
12
|
+
onNavToggle() {
|
|
13
|
+
this.open = !this.open;
|
|
14
|
+
this.navOpen.emit(this.open);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
return (h(Host, null, h("nav", { "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl
|
|
18
|
+
?
|
|
19
|
+
h("div", null, h("button", { onClick: () => this.onNavToggle(), innerHTML: `${this.bars}` }), h("slot", { name: "aside" }))
|
|
20
|
+
:
|
|
21
|
+
h("slot", { name: "aside" }), h("slot", { name: "main" }))));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { XplUtilityBar as xpl_utility_bar };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
interface DropdownChoice {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export interface DropdownChoice {
|
|
2
|
+
label: string;
|
|
3
|
+
href?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
isGroupHeading?: boolean;
|
|
6
6
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
interface ListItem {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
export interface ListItem {
|
|
2
|
+
avatar?: string;
|
|
3
|
+
avatars?: string[];
|
|
4
|
+
badges?: string[] | {
|
|
5
|
+
dot?: boolean;
|
|
6
|
+
text: string;
|
|
7
|
+
variant?: string;
|
|
8
|
+
}[];
|
|
9
|
+
href?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
metadata?: string[] | {
|
|
12
|
+
icon: string;
|
|
13
|
+
text: string;
|
|
14
|
+
}[];
|
|
15
|
+
subtext?: string;
|
|
16
16
|
}
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { Choice } from "./components/xpl-choicelist/choice";
|
|
9
|
+
import { ListItem } from "./components/xpl-list/listitem";
|
|
10
|
+
import { DropdownChoice } from "./components/xpl-dropdown/dropdownchoice";
|
|
8
11
|
export namespace Components {
|
|
9
12
|
interface XplApplicationShell {
|
|
10
13
|
/**
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s,H as a}from"./p-8b6633c7.js";const l=class{constructor(s){i(this,s),this.page=t(this,"page",7),this.current=1,this._goto=i=>{this.page.emit(i),this.waitForCallback||(this.current=i)},this.goPrev=()=>{this.current>1&&this._goto(this.current-1)},this.goNext=()=>{const i=Math.ceil(this.total/this.perPage);this.current<i&&this._goto(this.current+1)}}async goto(i){this.current=i}render(){const i=Math.ceil(this.total/this.perPage);let t=[1];i<7&&(t=[1,2,3,4,5,6]),t=this.current<=3||this.current>=i-2?[1,2,3,"...",i-2,i-1,i]:[1,"...",this.current-1,this.current,this.current+1,"...",i];const l=(this.current-1)*this.perPage+1,n=Math.min(l+this.perPage-1,this.total);return s(a,null,s("div",{class:"xpl-pagination"},s("div",null,s("p",null,"Showing ",s("span",null,l)," to ",s("span",null,n)," ","of ",s("span",null,this.total)," results")),s("div",null,s("nav",{"aria-label":"Pagination"},s("button",{onClick:this.goPrev,class:"xpl-pagination-prev"},s("span",null,"Previous"),s("svg",{viewBox:"0 0 20 20","aria-hidden":"true"},s("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"}))),t.map((i=>"..."===i?s("span",{class:"xpl-pagination-ellipsis"},"..."):s("button",i===this.current?{"aria-current":"page",class:"xpl-pagination-current"}:{onClick:()=>this._goto(i)},i))),s("button",{onClick:this.goNext,class:"xpl-pagination-next"},s("span",null,"Next"),s("svg",{viewBox:"0 0 20 20","aria-hidden":"true"},s("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})))))))}};export{l as xpl_pagination}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as o}from"./p-8b6633c7.js";const r=class{constructor(i){t(this,i),this.clickPrimary=s(this,"clickPrimary",7),this.clickSecondary=s(this,"clickSecondary",7),this.clickTertiary=s(this,"clickTertiary",7),this.onPrimary=()=>this.clickPrimary.emit(),this.onSecondary=()=>this.clickSecondary.emit(),this.onTertiary=()=>this.clickTertiary.emit()}render(){return i(o,{class:"xpl-button-row"},i("div",{class:"xpl-button-row-inner"},i("div",{class:"xpl-button-row__left"},this.secondary&&i("xpl-button",{variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary)),i("div",{class:"xpl-button-row__right"},this.tertiary&&i("xpl-button",{variant:"subtle",type:"button",onClick:this.onTertiary},this.tertiary),this.secondary&&i("xpl-button",{variant:"secondary",type:"button",onClick:this.onSecondary},this.secondary),this.primary&&i("xpl-button",{class:"xpl-button-row__primary",onClick:this.onPrimary},this.primary))))}};export{r as xpl_button_row}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as r,H as l}from"./p-8b6633c7.js";const t=class{constructor(r){s(this,r)}render(){let s="xpl-divider";return s+=` xpl-divider--${this.tier}`,r(l,{class:s},r("span",null,r("slot",null)))}};export{t as xpl_divider}
|