@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,89 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-944adb2e.js');
|
|
6
|
-
|
|
7
|
-
const XplTable = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.tableSelect = index.createEvent(this, "tableSelect", 7);
|
|
11
|
-
this.areAllSelected = false;
|
|
12
|
-
this.hasScrolled = false;
|
|
13
|
-
this.selectAll = (e) => {
|
|
14
|
-
const { target } = e;
|
|
15
|
-
if (!(target instanceof HTMLInputElement))
|
|
16
|
-
return;
|
|
17
|
-
const { checked } = target;
|
|
18
|
-
this.areAllSelected = checked;
|
|
19
|
-
this.selected = this.selected.map(() => checked);
|
|
20
|
-
this.onChange();
|
|
21
|
-
};
|
|
22
|
-
this.selectOne = (e, i) => {
|
|
23
|
-
const { target } = e;
|
|
24
|
-
if (!(target instanceof HTMLInputElement))
|
|
25
|
-
return;
|
|
26
|
-
const { checked } = target;
|
|
27
|
-
this.areAllSelected = false;
|
|
28
|
-
this.selected = this.selected.map((v, _i) => (_i === i ? checked : v));
|
|
29
|
-
this.onChange();
|
|
30
|
-
};
|
|
31
|
-
this.onChange = () => {
|
|
32
|
-
this.tableSelect.emit({
|
|
33
|
-
selected: this.selected,
|
|
34
|
-
areAllSelected: this.areAllSelected,
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
this.onScroll = () => {
|
|
38
|
-
this.hasScrolled = this.container.scrollLeft > 0;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* TODO: Need to figure out how this interplays with data
|
|
42
|
-
* received from an API/server
|
|
43
|
-
*/
|
|
44
|
-
this.sortBy = (col, ascending = true) => {
|
|
45
|
-
this.rowData.sort((a, b) => {
|
|
46
|
-
const A = a[col];
|
|
47
|
-
const B = b[col];
|
|
48
|
-
if (typeof A === "number" && typeof B === "number") {
|
|
49
|
-
const f = ascending ? 1 : -1;
|
|
50
|
-
return A > B ? f : -f;
|
|
51
|
-
}
|
|
52
|
-
return -1;
|
|
53
|
-
});
|
|
54
|
-
this.rowData = Array.from(this.rowData);
|
|
55
|
-
this.render();
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
componentWillLoad() {
|
|
59
|
-
this.areAllSelected = false;
|
|
60
|
-
this.rowData = this.data !== undefined ? Array.from(this.data) : [];
|
|
61
|
-
this.selected = new Array(this.rowData.length).fill(false);
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
let className = "xpl-table";
|
|
65
|
-
if (this.striped)
|
|
66
|
-
className += " xpl-table--striped";
|
|
67
|
-
if (this.freeze)
|
|
68
|
-
className += " xpl-table--freeze";
|
|
69
|
-
if (this.hasScrolled)
|
|
70
|
-
className += " xpl-table--has-scrolled";
|
|
71
|
-
return (index.h(index.Host, null, index.h("div", { class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => (this.container = el) }, index.h("table", { class: className }, this.columns && (index.h("thead", null, this.columns.map((column, i) => {
|
|
72
|
-
return (index.h("th", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: "__xpl-table-th" }, index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th",
|
|
73
|
-
// appear indeterminate when at least one but not all
|
|
74
|
-
// are selected
|
|
75
|
-
indeterminate: !this.areAllSelected &&
|
|
76
|
-
this.selected.some((a) => a), onChange: (e) => {
|
|
77
|
-
this.selectAll(e);
|
|
78
|
-
}, type: "checkbox" }), column)) : (column)));
|
|
79
|
-
}))), index.h("tbody", null, this.rowData.map((row, rowNum) => {
|
|
80
|
-
return (index.h("tr", { class: this.selected && this.selected[rowNum]
|
|
81
|
-
? "xpl-table-row-selected"
|
|
82
|
-
: "" }, row.map((cell, i) => {
|
|
83
|
-
return (index.h("td", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: "__xpl-table-row-" + rowNum }, index.h("input", { id: "__xpl-table-row-" + rowNum, checked: this.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum) }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))));
|
|
84
|
-
})));
|
|
85
|
-
}))))));
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
exports.xpl_table = XplTable;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-944adb2e.js');
|
|
6
|
-
|
|
7
|
-
const XplTag = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.close = index.createEvent(this, "close", 7);
|
|
11
|
-
}
|
|
12
|
-
render() {
|
|
13
|
-
return (index.h(index.Host, { class: "xpl-tag-container" }, index.h("button", { class: "xpl-tag", onClick: () => {
|
|
14
|
-
this.close.emit();
|
|
15
|
-
} }, index.h("slot", null)), index.h("button", { class: "xpl-tag__close", onClick: () => {
|
|
16
|
-
this.close.emit();
|
|
17
|
-
} }, "\u00D7")));
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
exports.xpl_tag = XplTag;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-944adb2e.js');
|
|
6
|
-
const v4 = require('./v4-14140ff3.js');
|
|
7
|
-
|
|
8
|
-
const XplToggle = class {
|
|
9
|
-
constructor(hostRef) {
|
|
10
|
-
index.registerInstance(this, hostRef);
|
|
11
|
-
/**
|
|
12
|
-
* The size of the toggle -- `default` or `small`
|
|
13
|
-
*/
|
|
14
|
-
this.variant = "default";
|
|
15
|
-
this.id = v4.v4();
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
let containerClassName = "xpl-toggle-container";
|
|
19
|
-
if (this.disabled)
|
|
20
|
-
containerClassName += " xpl-toggle-container--disabled";
|
|
21
|
-
let className = "xpl-toggle";
|
|
22
|
-
if (this.variant === "small")
|
|
23
|
-
className += " xpl-toggle--small";
|
|
24
|
-
return (index.h(index.Host, { class: containerClassName }, (this.heading || this.description) && (index.h("label", { class: {
|
|
25
|
-
"xpl-label": true,
|
|
26
|
-
"xpl-label--disabled": this.disabled
|
|
27
|
-
}, htmlFor: this.id }, this.heading, this.description && index.h("small", { class: {
|
|
28
|
-
"xpl-description": true,
|
|
29
|
-
"xpl-description--disabled": this.disabled
|
|
30
|
-
} }, this.description))), index.h("input", { class: className, type: "checkbox", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name }), this.label && index.h("label", { htmlFor: this.id }, this.label)));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
exports.xpl_toggle = XplToggle;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"entries": [
|
|
3
|
-
"./components/xpl-application-shell/xpl-application-shell.js",
|
|
4
|
-
"./components/xpl-avatar/xpl-avatar.js",
|
|
5
|
-
"./components/xpl-backdrop/xpl-backdrop.js",
|
|
6
|
-
"./components/xpl-badge/xpl-badge.js",
|
|
7
|
-
"./components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js",
|
|
8
|
-
"./components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js",
|
|
9
|
-
"./components/xpl-button/xpl-button.js",
|
|
10
|
-
"./components/xpl-button-row/xpl-button-row.js",
|
|
11
|
-
"./components/xpl-checkbox/xpl-checkbox.js",
|
|
12
|
-
"./components/xpl-choicelist/xpl-choicelist.js",
|
|
13
|
-
"./components/xpl-content-area/xpl-content-area.js",
|
|
14
|
-
"./components/xpl-divider/xpl-divider.js",
|
|
15
|
-
"./components/xpl-grid/xpl-grid.js",
|
|
16
|
-
"./components/xpl-grid-item/xpl-grid-item.js",
|
|
17
|
-
"./components/xpl-input/xpl-input.js",
|
|
18
|
-
"./components/xpl-list/xpl-list.js",
|
|
19
|
-
"./components/xpl-main-nav/xpl-main-nav.js",
|
|
20
|
-
"./components/xpl-nav-item/xpl-nav-item.js",
|
|
21
|
-
"./components/xpl-pagination/xpl-pagination.js",
|
|
22
|
-
"./components/xpl-radio/xpl-radio.js",
|
|
23
|
-
"./components/xpl-secondary-nav/xpl-secondary-nav.js",
|
|
24
|
-
"./components/xpl-select/xpl-select.js",
|
|
25
|
-
"./components/xpl-table/xpl-table.js",
|
|
26
|
-
"./components/xpl-tag/xpl-tag.js",
|
|
27
|
-
"./components/xpl-toggle/xpl-toggle.js",
|
|
28
|
-
"./components/xpl-utility-bar/xpl-utility-bar.js"
|
|
29
|
-
],
|
|
30
|
-
"compiler": {
|
|
31
|
-
"name": "@stencil/core",
|
|
32
|
-
"version": "2.8.0",
|
|
33
|
-
"typescriptVersion": "4.2.3"
|
|
34
|
-
},
|
|
35
|
-
"collections": [],
|
|
36
|
-
"bundles": []
|
|
37
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h, Listen, State, Prop } from '@stencil/core';
|
|
2
|
-
export class XplApplicationShell {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* @property {boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar
|
|
6
|
-
*/
|
|
7
|
-
this.withSubnav = false;
|
|
8
|
-
/**
|
|
9
|
-
* @property {boolean} - Whether or not the Grid should have space for a utility bar
|
|
10
|
-
*/
|
|
11
|
-
this.withUtility = true;
|
|
12
|
-
/**
|
|
13
|
-
* @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
|
|
14
|
-
*/
|
|
15
|
-
this.navWidth = 'default';
|
|
16
|
-
/**
|
|
17
|
-
* @state {boolean} - Whether or not the main nav is open, updates when the nav-open envent is emitted.
|
|
18
|
-
*/
|
|
19
|
-
this.navOpen = true;
|
|
20
|
-
}
|
|
21
|
-
closeNavOnMobile() {
|
|
22
|
-
if (window.innerWidth <= 640) {
|
|
23
|
-
this.navOpen = false;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
navToggleHandler() {
|
|
27
|
-
this.navOpen = !this.navOpen;
|
|
28
|
-
}
|
|
29
|
-
navWithHandler(event) {
|
|
30
|
-
this.navWidth = event.detail;
|
|
31
|
-
}
|
|
32
|
-
onWindowResize() {
|
|
33
|
-
this.closeNavOnMobile();
|
|
34
|
-
}
|
|
35
|
-
connectedCallback() {
|
|
36
|
-
this.closeNavOnMobile();
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
let applicationShellClasses = "xpl-application-shell";
|
|
40
|
-
if (this.withUtility)
|
|
41
|
-
applicationShellClasses += " xpl-application-shell--with_utility";
|
|
42
|
-
let navClasses = "xpl-application-shell__nav";
|
|
43
|
-
navClasses += (this.navOpen) ? ` xpl-application-shell__nav--${this.navWidth}--open` : ` xpl-application-shell__nav--${this.navWidth}`;
|
|
44
|
-
return (h(Host, { class: applicationShellClasses },
|
|
45
|
-
h("div", { class: navClasses },
|
|
46
|
-
h("slot", { name: "nav" })),
|
|
47
|
-
h("div", { class: "xpl-application-shell__subnav" },
|
|
48
|
-
h("slot", { name: "subnav" })),
|
|
49
|
-
h("div", { class: "xpl-application-shell__utility" },
|
|
50
|
-
h("slot", { name: "utility" })),
|
|
51
|
-
h("div", { class: "xpl-application-shell__content" },
|
|
52
|
-
h("slot", { name: "content" })),
|
|
53
|
-
h("xpl-backdrop", { onClick: () => this.navToggleHandler(), class: { "xpl-application-shell__backdrop--open": this.navOpen }, relative: true })));
|
|
54
|
-
}
|
|
55
|
-
static get is() { return "xpl-application-shell"; }
|
|
56
|
-
static get properties() { return {
|
|
57
|
-
"withSubnav": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"mutable": false,
|
|
60
|
-
"complexType": {
|
|
61
|
-
"original": "boolean",
|
|
62
|
-
"resolved": "boolean",
|
|
63
|
-
"references": {}
|
|
64
|
-
},
|
|
65
|
-
"required": false,
|
|
66
|
-
"optional": false,
|
|
67
|
-
"docs": {
|
|
68
|
-
"tags": [{
|
|
69
|
-
"text": "{boolean} - Whether or not the Grid should have space for a secondary (sub) navigation bar",
|
|
70
|
-
"name": "property"
|
|
71
|
-
}],
|
|
72
|
-
"text": ""
|
|
73
|
-
},
|
|
74
|
-
"attribute": "with-subnav",
|
|
75
|
-
"reflect": false,
|
|
76
|
-
"defaultValue": "false"
|
|
77
|
-
},
|
|
78
|
-
"withUtility": {
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"mutable": false,
|
|
81
|
-
"complexType": {
|
|
82
|
-
"original": "boolean",
|
|
83
|
-
"resolved": "boolean",
|
|
84
|
-
"references": {}
|
|
85
|
-
},
|
|
86
|
-
"required": false,
|
|
87
|
-
"optional": false,
|
|
88
|
-
"docs": {
|
|
89
|
-
"tags": [{
|
|
90
|
-
"text": "{boolean} - Whether or not the Grid should have space for a utility bar",
|
|
91
|
-
"name": "property"
|
|
92
|
-
}],
|
|
93
|
-
"text": ""
|
|
94
|
-
},
|
|
95
|
-
"attribute": "with-utility",
|
|
96
|
-
"reflect": false,
|
|
97
|
-
"defaultValue": "true"
|
|
98
|
-
},
|
|
99
|
-
"navWidth": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"mutable": false,
|
|
102
|
-
"complexType": {
|
|
103
|
-
"original": "string",
|
|
104
|
-
"resolved": "string",
|
|
105
|
-
"references": {}
|
|
106
|
-
},
|
|
107
|
-
"required": false,
|
|
108
|
-
"optional": false,
|
|
109
|
-
"docs": {
|
|
110
|
-
"tags": [{
|
|
111
|
-
"text": "{string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.",
|
|
112
|
-
"name": "property"
|
|
113
|
-
}],
|
|
114
|
-
"text": ""
|
|
115
|
-
},
|
|
116
|
-
"attribute": "nav-width",
|
|
117
|
-
"reflect": false,
|
|
118
|
-
"defaultValue": "'default'"
|
|
119
|
-
}
|
|
120
|
-
}; }
|
|
121
|
-
static get states() { return {
|
|
122
|
-
"navOpen": {}
|
|
123
|
-
}; }
|
|
124
|
-
static get listeners() { return [{
|
|
125
|
-
"name": "navOpen",
|
|
126
|
-
"method": "navToggleHandler",
|
|
127
|
-
"target": undefined,
|
|
128
|
-
"capture": false,
|
|
129
|
-
"passive": false
|
|
130
|
-
}, {
|
|
131
|
-
"name": "navWidth",
|
|
132
|
-
"method": "navWithHandler",
|
|
133
|
-
"target": undefined,
|
|
134
|
-
"capture": false,
|
|
135
|
-
"passive": false
|
|
136
|
-
}, {
|
|
137
|
-
"name": "resize",
|
|
138
|
-
"method": "onWindowResize",
|
|
139
|
-
"target": "window",
|
|
140
|
-
"capture": false,
|
|
141
|
-
"passive": true
|
|
142
|
-
}]; }
|
|
143
|
-
}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h, Prop } from "@stencil/core";
|
|
2
|
-
export class XplAvatar {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.disabled = false;
|
|
5
|
-
}
|
|
6
|
-
render() {
|
|
7
|
-
let className = "xpl-avatar";
|
|
8
|
-
if (this.size)
|
|
9
|
-
className += ` xpl-avatar--${this.size}`;
|
|
10
|
-
if (this.color)
|
|
11
|
-
className += ` xpl-avatar--${this.color}`;
|
|
12
|
-
const inner = (h("div", null,
|
|
13
|
-
this.src ? (h("img", { alt: this.name, src: this.src })) : (h("div", { class: "xpl-avatar__placeholder" },
|
|
14
|
-
h("slot", null))),
|
|
15
|
-
this.status && h("div", { class: `xpl-avatar__dot--${this.status}` })));
|
|
16
|
-
return (h(Host, null, this.href && !this.disabled ? (h("a", { href: this.href, class: className, target: this.target }, inner)) : this.href && this.disabled ? (h("div", { class: className + " xpl-avatar--disabled" }, inner)) : (h("div", { class: className }, inner))));
|
|
17
|
-
}
|
|
18
|
-
static get is() { return "xpl-avatar"; }
|
|
19
|
-
static get properties() { return {
|
|
20
|
-
"color": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"mutable": false,
|
|
23
|
-
"complexType": {
|
|
24
|
-
"original": "\"green\" | \"yellow\" | \"pink\" | \"primary\" | \"secondary\"",
|
|
25
|
-
"resolved": "\"green\" | \"pink\" | \"primary\" | \"secondary\" | \"yellow\"",
|
|
26
|
-
"references": {}
|
|
27
|
-
},
|
|
28
|
-
"required": false,
|
|
29
|
-
"optional": true,
|
|
30
|
-
"docs": {
|
|
31
|
-
"tags": [],
|
|
32
|
-
"text": ""
|
|
33
|
-
},
|
|
34
|
-
"attribute": "color",
|
|
35
|
-
"reflect": false
|
|
36
|
-
},
|
|
37
|
-
"disabled": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"mutable": false,
|
|
40
|
-
"complexType": {
|
|
41
|
-
"original": "boolean",
|
|
42
|
-
"resolved": "boolean",
|
|
43
|
-
"references": {}
|
|
44
|
-
},
|
|
45
|
-
"required": false,
|
|
46
|
-
"optional": true,
|
|
47
|
-
"docs": {
|
|
48
|
-
"tags": [],
|
|
49
|
-
"text": ""
|
|
50
|
-
},
|
|
51
|
-
"attribute": "disabled",
|
|
52
|
-
"reflect": false,
|
|
53
|
-
"defaultValue": "false"
|
|
54
|
-
},
|
|
55
|
-
"href": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"mutable": false,
|
|
58
|
-
"complexType": {
|
|
59
|
-
"original": "string",
|
|
60
|
-
"resolved": "string",
|
|
61
|
-
"references": {}
|
|
62
|
-
},
|
|
63
|
-
"required": false,
|
|
64
|
-
"optional": true,
|
|
65
|
-
"docs": {
|
|
66
|
-
"tags": [],
|
|
67
|
-
"text": ""
|
|
68
|
-
},
|
|
69
|
-
"attribute": "href",
|
|
70
|
-
"reflect": false
|
|
71
|
-
},
|
|
72
|
-
"name": {
|
|
73
|
-
"type": "string",
|
|
74
|
-
"mutable": false,
|
|
75
|
-
"complexType": {
|
|
76
|
-
"original": "string",
|
|
77
|
-
"resolved": "string",
|
|
78
|
-
"references": {}
|
|
79
|
-
},
|
|
80
|
-
"required": false,
|
|
81
|
-
"optional": true,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": ""
|
|
85
|
-
},
|
|
86
|
-
"attribute": "name",
|
|
87
|
-
"reflect": false
|
|
88
|
-
},
|
|
89
|
-
"size": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"mutable": false,
|
|
92
|
-
"complexType": {
|
|
93
|
-
"original": "\"md\" | \"sm\"",
|
|
94
|
-
"resolved": "\"md\" | \"sm\"",
|
|
95
|
-
"references": {}
|
|
96
|
-
},
|
|
97
|
-
"required": false,
|
|
98
|
-
"optional": true,
|
|
99
|
-
"docs": {
|
|
100
|
-
"tags": [],
|
|
101
|
-
"text": ""
|
|
102
|
-
},
|
|
103
|
-
"attribute": "size",
|
|
104
|
-
"reflect": false
|
|
105
|
-
},
|
|
106
|
-
"src": {
|
|
107
|
-
"type": "string",
|
|
108
|
-
"mutable": false,
|
|
109
|
-
"complexType": {
|
|
110
|
-
"original": "string",
|
|
111
|
-
"resolved": "string",
|
|
112
|
-
"references": {}
|
|
113
|
-
},
|
|
114
|
-
"required": false,
|
|
115
|
-
"optional": true,
|
|
116
|
-
"docs": {
|
|
117
|
-
"tags": [],
|
|
118
|
-
"text": ""
|
|
119
|
-
},
|
|
120
|
-
"attribute": "src",
|
|
121
|
-
"reflect": false
|
|
122
|
-
},
|
|
123
|
-
"status": {
|
|
124
|
-
"type": "string",
|
|
125
|
-
"mutable": false,
|
|
126
|
-
"complexType": {
|
|
127
|
-
"original": "\"active\" | \"warning\" | \"inactive\"",
|
|
128
|
-
"resolved": "\"active\" | \"inactive\" | \"warning\"",
|
|
129
|
-
"references": {}
|
|
130
|
-
},
|
|
131
|
-
"required": false,
|
|
132
|
-
"optional": true,
|
|
133
|
-
"docs": {
|
|
134
|
-
"tags": [],
|
|
135
|
-
"text": ""
|
|
136
|
-
},
|
|
137
|
-
"attribute": "status",
|
|
138
|
-
"reflect": false
|
|
139
|
-
},
|
|
140
|
-
"target": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"mutable": false,
|
|
143
|
-
"complexType": {
|
|
144
|
-
"original": "string",
|
|
145
|
-
"resolved": "string",
|
|
146
|
-
"references": {}
|
|
147
|
-
},
|
|
148
|
-
"required": false,
|
|
149
|
-
"optional": true,
|
|
150
|
-
"docs": {
|
|
151
|
-
"tags": [],
|
|
152
|
-
"text": ""
|
|
153
|
-
},
|
|
154
|
-
"attribute": "target",
|
|
155
|
-
"reflect": false
|
|
156
|
-
}
|
|
157
|
-
}; }
|
|
158
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h, Prop } from '@stencil/core';
|
|
2
|
-
export class XplBackdrop {
|
|
3
|
-
constructor() {
|
|
4
|
-
/**
|
|
5
|
-
* @property {boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.
|
|
6
|
-
* If false, the position will be fixed and cover the whole view area.
|
|
7
|
-
*/
|
|
8
|
-
this.relative = false;
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return (h(Host, { class: {
|
|
12
|
-
'xpl-backdrop': true,
|
|
13
|
-
'xpl-backdrop--fixed': !this.relative,
|
|
14
|
-
'xpl-backdrop--relative': this.relative
|
|
15
|
-
}, "aria-hidden": "true" }));
|
|
16
|
-
}
|
|
17
|
-
static get is() { return "xpl-backdrop"; }
|
|
18
|
-
static get properties() { return {
|
|
19
|
-
"relative": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"mutable": false,
|
|
22
|
-
"complexType": {
|
|
23
|
-
"original": "boolean",
|
|
24
|
-
"resolved": "boolean",
|
|
25
|
-
"references": {}
|
|
26
|
-
},
|
|
27
|
-
"required": false,
|
|
28
|
-
"optional": false,
|
|
29
|
-
"docs": {
|
|
30
|
-
"tags": [{
|
|
31
|
-
"text": "{boolean} - When true, backdrop will have relative position. This is useful when the backdrop doesn't cover the whole view area.\nIf false, the position will be fixed and cover the whole view area.",
|
|
32
|
-
"name": "property"
|
|
33
|
-
}],
|
|
34
|
-
"text": ""
|
|
35
|
-
},
|
|
36
|
-
"attribute": "relative",
|
|
37
|
-
"reflect": false,
|
|
38
|
-
"defaultValue": "false"
|
|
39
|
-
}
|
|
40
|
-
}; }
|
|
41
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h, Prop } from "@stencil/core";
|
|
2
|
-
export class XplBadge {
|
|
3
|
-
render() {
|
|
4
|
-
let className = "xpl-badge";
|
|
5
|
-
if (this.dot)
|
|
6
|
-
className += " xpl-badge--dot";
|
|
7
|
-
if (this.variant)
|
|
8
|
-
className += " xpl-badge--" + this.variant;
|
|
9
|
-
return (h(Host, null,
|
|
10
|
-
h("div", { class: className },
|
|
11
|
-
h("slot", null))));
|
|
12
|
-
}
|
|
13
|
-
static get is() { return "xpl-badge"; }
|
|
14
|
-
static get properties() { return {
|
|
15
|
-
"dot": {
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"mutable": false,
|
|
18
|
-
"complexType": {
|
|
19
|
-
"original": "boolean",
|
|
20
|
-
"resolved": "boolean",
|
|
21
|
-
"references": {}
|
|
22
|
-
},
|
|
23
|
-
"required": false,
|
|
24
|
-
"optional": true,
|
|
25
|
-
"docs": {
|
|
26
|
-
"tags": [],
|
|
27
|
-
"text": ""
|
|
28
|
-
},
|
|
29
|
-
"attribute": "dot",
|
|
30
|
-
"reflect": false
|
|
31
|
-
},
|
|
32
|
-
"variant": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"mutable": false,
|
|
35
|
-
"complexType": {
|
|
36
|
-
"original": "\"success\" | \"warning\" | \"inactive\" | \"error\"",
|
|
37
|
-
"resolved": "\"error\" | \"inactive\" | \"success\" | \"warning\"",
|
|
38
|
-
"references": {}
|
|
39
|
-
},
|
|
40
|
-
"required": false,
|
|
41
|
-
"optional": true,
|
|
42
|
-
"docs": {
|
|
43
|
-
"tags": [],
|
|
44
|
-
"text": ""
|
|
45
|
-
},
|
|
46
|
-
"attribute": "variant",
|
|
47
|
-
"reflect": false
|
|
48
|
-
}
|
|
49
|
-
}; }
|
|
50
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component, Host, h } from '@stencil/core';
|
|
2
|
-
/**
|
|
3
|
-
* @slot unnamed - content rendered <ol>, should be a group of <li> or <xpl-breadcrumb-item>
|
|
4
|
-
*/
|
|
5
|
-
export class XplBreadcrumbs {
|
|
6
|
-
render() {
|
|
7
|
-
return (h(Host, null,
|
|
8
|
-
h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" },
|
|
9
|
-
h("ol", { role: "list" },
|
|
10
|
-
h("slot", null)))));
|
|
11
|
-
}
|
|
12
|
-
;
|
|
13
|
-
static get is() { return "xpl-breadcrumbs"; }
|
|
14
|
-
}
|
|
15
|
-
;
|