@xplortech/apollo-core 0.5.3 → 1.0.0-beta.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/build/style.css +770 -412
- package/dist/apollo-core/apollo-core.css +9 -5468
- package/dist/apollo-core/apollo-core.esm.js +1 -125
- package/dist/apollo-core/index.esm.js +0 -1
- package/dist/apollo-core/p-09b2f746.entry.js +1 -0
- package/dist/apollo-core/p-1b1e7207.entry.js +1 -0
- package/dist/apollo-core/p-20389bb6.entry.js +1 -0
- package/dist/apollo-core/p-25983fde.entry.js +1 -0
- package/dist/apollo-core/p-2f90296c.js +10 -0
- package/dist/apollo-core/p-4a348764.entry.js +1 -0
- package/dist/apollo-core/p-4e2b69e8.entry.js +1 -0
- package/dist/apollo-core/p-84bf6b2d.entry.js +1 -0
- package/dist/apollo-core/p-880c0359.entry.js +1 -0
- package/dist/apollo-core/p-8e47a5be.entry.js +1 -0
- package/dist/apollo-core/p-93958292.entry.js +1 -0
- package/dist/apollo-core/p-93c27db5.entry.js +1 -0
- package/dist/apollo-core/p-ad90fe4d.js +1 -0
- package/dist/apollo-core/p-b2327e2c.entry.js +1 -0
- package/dist/apollo-core/p-c3a12469.entry.js +1 -0
- package/dist/apollo-core/p-c55b5d9c.entry.js +1 -0
- package/dist/apollo-core/p-e369d7af.entry.js +1 -0
- package/dist/apollo-core/p-e60ecaef.entry.js +1 -0
- package/dist/apollo-core/p-f929c958.js +1 -0
- package/dist/cjs/apollo-core.cjs.js +19 -0
- package/dist/cjs/index-54ba5804.js +1623 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/{apollo-core/regular-133c23b5.js → cjs/regular-872f5226.js} +3 -12
- package/dist/cjs/v4-14140ff3.js +77 -0
- package/dist/cjs/xpl-application-shell.cjs.entry.js +58 -0
- package/dist/cjs/xpl-avatar_12.cjs.entry.js +299 -0
- package/dist/cjs/xpl-backdrop.cjs.entry.js +25 -0
- package/dist/cjs/xpl-button-row.cjs.entry.js +22 -0
- package/dist/cjs/xpl-choicelist.cjs.entry.js +43 -0
- package/dist/cjs/xpl-divider.cjs.entry.js +18 -0
- package/dist/cjs/xpl-dropdown-group_3.cjs.entry.js +104 -0
- package/dist/cjs/xpl-dropdown_2.cjs.entry.js +123 -0
- package/dist/cjs/xpl-grid-item.cjs.entry.js +25 -0
- package/dist/cjs/xpl-grid.cjs.entry.js +35 -0
- package/dist/cjs/xpl-input.cjs.entry.js +2534 -0
- package/dist/cjs/xpl-list.cjs.entry.js +61 -0
- package/dist/cjs/xpl-main-nav.cjs.entry.js +30 -0
- package/dist/cjs/xpl-pagination.cjs.entry.js +76 -0
- package/dist/cjs/xpl-select.cjs.entry.js +625 -0
- package/dist/cjs/xpl-toggle.cjs.entry.js +34 -0
- package/dist/collection/collection-manifest.json +41 -0
- package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +147 -0
- package/dist/collection/components/xpl-avatar/xpl-avatar.js +158 -0
- package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +41 -0
- package/dist/collection/components/xpl-badge/xpl-badge.js +50 -0
- package/dist/{apollo-core/xpl-breadcrumb-item.entry.js → collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js} +12 -11
- package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +13 -0
- package/dist/collection/components/xpl-button/xpl-button.js +211 -0
- package/dist/collection/components/xpl-button-row/xpl-button-row.js +117 -0
- package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +185 -0
- package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +150 -0
- package/dist/collection/components/xpl-content-area/xpl-content-area.js +39 -0
- package/dist/collection/components/xpl-divider/xpl-divider.js +30 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +66 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +27 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +110 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +260 -0
- package/dist/collection/components/xpl-grid/xpl-grid.js +26 -0
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +93 -0
- package/dist/collection/components/xpl-input/xpl-input.js +478 -0
- package/dist/collection/components/xpl-list/xpl-list.js +91 -0
- package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +72 -0
- package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +67 -0
- package/dist/collection/components/xpl-pagination/xpl-pagination.js +190 -0
- package/dist/collection/components/xpl-radio/xpl-radio.js +168 -0
- package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +9 -0
- package/dist/collection/components/xpl-select/xpl-select.js +344 -0
- package/dist/collection/components/xpl-table/xpl-table.js +200 -0
- package/dist/collection/components/xpl-tag/xpl-tag.js +30 -0
- package/dist/collection/components/xpl-toggle/xpl-toggle.js +157 -0
- package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +66 -0
- package/dist/custom-elements/index.d.ts +24 -0
- package/dist/custom-elements/index.js +20202 -0
- package/dist/esm/apollo-core.js +17 -0
- package/dist/esm/index-3df6db84.js +1594 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/regular-86225e9d.js +16041 -0
- package/dist/esm/v4-929670b7.js +75 -0
- package/dist/{apollo-core → esm}/xpl-application-shell.entry.js +12 -8
- package/dist/esm/xpl-avatar_12.entry.js +284 -0
- package/dist/{apollo-core → esm}/xpl-backdrop.entry.js +2 -2
- package/dist/{apollo-core → esm}/xpl-button-row.entry.js +2 -4
- package/dist/esm/xpl-choicelist.entry.js +39 -0
- package/dist/{apollo-core → esm}/xpl-divider.entry.js +2 -2
- package/dist/esm/xpl-dropdown-group_3.entry.js +98 -0
- package/dist/esm/xpl-dropdown_2.entry.js +118 -0
- package/dist/{apollo-core → esm}/xpl-grid-item.entry.js +2 -2
- package/dist/esm/xpl-grid.entry.js +31 -0
- package/dist/{apollo-core → esm}/xpl-input.entry.js +35 -45
- package/dist/{apollo-core → esm}/xpl-list.entry.js +18 -20
- package/dist/{apollo-core → esm}/xpl-main-nav.entry.js +2 -2
- package/dist/{apollo-core → esm}/xpl-pagination.entry.js +8 -8
- package/dist/{apollo-core → esm}/xpl-select.entry.js +88 -126
- package/dist/esm/xpl-toggle.entry.js +30 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stories/application-shell.stories.js +767 -0
- package/dist/stories/avatar.stories.js +173 -0
- package/dist/stories/backdrop.stories.js +18 -0
- package/dist/stories/badge.stories.js +48 -0
- package/dist/stories/breadcrumbs.stories.js +117 -0
- package/dist/stories/button-row.stories.js +68 -0
- package/dist/stories/button.stories.js +110 -0
- package/dist/stories/checkbox.stories.js +78 -0
- package/dist/stories/choicelist.stories.js +112 -0
- package/dist/stories/content-area.stories.js +53 -0
- package/dist/stories/divider.stories.js +34 -0
- package/dist/stories/dropdown.stories.js +377 -0
- package/dist/stories/grid.stories.js +100 -0
- package/dist/stories/input.stories.js +268 -0
- package/dist/stories/list.stories.js +154 -0
- package/dist/stories/main-nav.stories.js +308 -0
- package/dist/stories/pagination.stories.js +84 -0
- package/dist/stories/radio.stories.js +68 -0
- package/dist/stories/secondary-nav.stories.js +76 -0
- package/dist/stories/select.stories.js +119 -0
- package/dist/stories/table.stories.js +107 -0
- package/dist/stories/tabs.stories.js +24 -0
- package/dist/stories/toggle.stories.js +84 -0
- package/dist/stories/utility-bar.stories.js +94 -0
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/application-shell.stories.d.ts +4 -4
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/avatar.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/backdrop.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/badge.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button-row.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button.stories.d.ts +19 -10
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/checkbox.stories.d.ts +2 -2
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/choicelist.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/content-area.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/divider.stories.d.ts +1 -1
- package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/dropdown.stories.d.ts +135 -0
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/grid.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/input.stories.d.ts +5 -5
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/list.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/main-nav.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/radio.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/secondary-nav.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/select.stories.d.ts +2 -2
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/table.stories.d.ts +1 -1
- package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/toggle.stories.d.ts +2 -2
- package/dist/types/components/xpl-application-shell/xpl-application-shell.d.ts +2 -2
- package/dist/types/components/xpl-avatar/xpl-avatar.d.ts +3 -3
- package/dist/types/components/xpl-badge/xpl-badge.d.ts +1 -1
- package/dist/types/components/xpl-button/xpl-button.d.ts +32 -8
- package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +3 -3
- package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +1 -1
- package/dist/types/components/xpl-choicelist/choice.d.ts +5 -5
- package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +0 -1
- package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +3 -3
- package/dist/types/components/xpl-dropdown/dropdownoption.d.ts +12 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.d.ts +7 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.d.ts +5 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.d.ts +16 -0
- package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +34 -10
- package/dist/types/components/xpl-input/xpl-input.d.ts +4 -4
- package/dist/types/components/xpl-list/listitem.d.ts +19 -15
- package/dist/types/components/xpl-list/xpl-list.d.ts +2 -3
- package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +1 -1
- package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +10 -0
- package/dist/types/components/xpl-pagination/xpl-pagination.d.ts +1 -1
- package/dist/types/components/xpl-radio/xpl-radio.d.ts +1 -1
- package/dist/types/components/xpl-select/selectchoice.d.ts +3 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +6 -3
- package/dist/types/components/xpl-table/xpl-table.d.ts +1 -1
- package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +1 -1
- package/dist/types/components.d.ts +264 -43
- package/package.json +10 -4
- package/dist/apollo-core/app-globals-0f993ce5.js +0 -3
- package/dist/apollo-core/css-shim-bbdf0cc6.js +0 -4
- package/dist/apollo-core/dom-1f98a75f.js +0 -73
- package/dist/apollo-core/index-3c9f25ef.js +0 -2938
- package/dist/apollo-core/index-912d1a21.js +0 -584
- package/dist/apollo-core/shadow-css-67b66845.js +0 -389
- package/dist/apollo-core/xpl-avatar.entry.js +0 -19
- package/dist/apollo-core/xpl-badge.entry.js +0 -17
- package/dist/apollo-core/xpl-breadcrumbs.entry.js +0 -14
- package/dist/apollo-core/xpl-button.entry.js +0 -34
- package/dist/apollo-core/xpl-checkbox.entry.js +0 -25
- package/dist/apollo-core/xpl-choicelist.entry.js +0 -32
- package/dist/apollo-core/xpl-content-area.entry.js +0 -16
- package/dist/apollo-core/xpl-grid.entry.js +0 -31
- package/dist/apollo-core/xpl-nav-item.entry.js +0 -12
- package/dist/apollo-core/xpl-radio.entry.js +0 -25
- package/dist/apollo-core/xpl-secondary-nav.entry.js +0 -12
- package/dist/apollo-core/xpl-table.entry.js +0 -85
- package/dist/apollo-core/xpl-tag.entry.js +0 -17
- package/dist/apollo-core/xpl-toggle.entry.js +0 -30
- package/dist/apollo-core/xpl-utility-bar.entry.js +0 -25
- package/dist/types/components/xpl-dropdown/dropdownchoice.d.ts +0 -6
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
- /package/dist/types/Users/{roc/Sites → fernandogelin/Projects}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
|
@@ -44,7 +44,7 @@ declare const _default: {
|
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
46
46
|
export declare const Select: {
|
|
47
|
-
({ label, description, disabled, error, errorMessage, mode, truncate }: {
|
|
47
|
+
({ label, description, disabled, error, errorMessage, mode, truncate, }: {
|
|
48
48
|
label: any;
|
|
49
49
|
description: any;
|
|
50
50
|
disabled: any;
|
|
@@ -55,7 +55,7 @@ export declare const Select: {
|
|
|
55
55
|
}): string;
|
|
56
56
|
parameters: {
|
|
57
57
|
layout: string;
|
|
58
|
-
|
|
58
|
+
'web-component': {
|
|
59
59
|
render: any;
|
|
60
60
|
};
|
|
61
61
|
html: {
|
|
@@ -39,7 +39,7 @@ declare const _default: {
|
|
|
39
39
|
};
|
|
40
40
|
export default _default;
|
|
41
41
|
export declare const Toggle: {
|
|
42
|
-
({ checked, description, disabled, label, heading, variant }: {
|
|
42
|
+
({ checked, description, disabled, label, heading, variant, }: {
|
|
43
43
|
checked: any;
|
|
44
44
|
description: any;
|
|
45
45
|
disabled: any;
|
|
@@ -49,7 +49,7 @@ export declare const Toggle: {
|
|
|
49
49
|
}): string;
|
|
50
50
|
parameters: {
|
|
51
51
|
layout: string;
|
|
52
|
-
|
|
52
|
+
'web-component': {
|
|
53
53
|
render: any;
|
|
54
54
|
};
|
|
55
55
|
html: {
|
|
@@ -5,8 +5,8 @@ export declare class XplApplicationShell {
|
|
|
5
5
|
*/
|
|
6
6
|
withSubnav: boolean;
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* @property {boolean} - Whether or not the Grid should have space for a utility bar
|
|
9
|
+
*/
|
|
10
10
|
withUtility: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* @property {string} - The width of the main navigation bar, can be passed or updated when nav-width event is emitted.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare class XplAvatar {
|
|
2
|
-
color?:
|
|
2
|
+
color?: 'green' | 'yellow' | 'pink' | 'primary' | 'secondary';
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
href?: string;
|
|
5
5
|
name?: string;
|
|
6
|
-
size?:
|
|
6
|
+
size?: 'md' | 'sm';
|
|
7
7
|
src?: string;
|
|
8
|
-
status?:
|
|
8
|
+
status?: 'active' | 'warning' | 'inactive';
|
|
9
9
|
target?: string;
|
|
10
10
|
render(): any;
|
|
11
11
|
}
|
|
@@ -1,15 +1,39 @@
|
|
|
1
|
-
import "../../../font-awesome/fontawesome";
|
|
2
|
-
import "../../../font-awesome/regular";
|
|
3
1
|
export declare class XplButton {
|
|
2
|
+
/**
|
|
3
|
+
* whether button should be disabled
|
|
4
|
+
*/
|
|
4
5
|
disabled?: boolean;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* whether button should yield a slot for a link tag
|
|
8
|
+
*/
|
|
9
|
+
link?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* whether button should render icon only
|
|
12
|
+
*/
|
|
7
13
|
iconOnly?: boolean;
|
|
8
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @property {string} - button name attribute
|
|
16
|
+
*/
|
|
9
17
|
name?: string;
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
/**
|
|
19
|
+
* @property {"default" | "sm" | "xs"} - button size
|
|
20
|
+
*/
|
|
21
|
+
size: 'default' | 'sm' | 'xs';
|
|
22
|
+
/**
|
|
23
|
+
* @property {"submit" | "reset" | "button"} - button type attribute
|
|
24
|
+
*/
|
|
25
|
+
type?: 'submit' | 'reset' | 'button';
|
|
26
|
+
/**
|
|
27
|
+
* @property {string} - button value attribute
|
|
28
|
+
*/
|
|
12
29
|
value?: string;
|
|
13
|
-
|
|
30
|
+
/**
|
|
31
|
+
* @property {"primary" | "secondary" | "subtle"} - button variant
|
|
32
|
+
*/
|
|
33
|
+
variant: 'primary' | 'secondary' | 'subtle';
|
|
34
|
+
/**
|
|
35
|
+
* @property {"neutral" | "warning" | "success"} - button state (color) neutral=purple, success=green, warning=red
|
|
36
|
+
*/
|
|
37
|
+
state: 'neutral' | 'warning' | 'success';
|
|
14
38
|
render(): any;
|
|
15
39
|
}
|
|
@@ -3,17 +3,17 @@ export declare class XplButtonRow {
|
|
|
3
3
|
/**
|
|
4
4
|
* The text for the primary button.
|
|
5
5
|
*/
|
|
6
|
-
primary:
|
|
6
|
+
primary: 'string';
|
|
7
7
|
/**
|
|
8
8
|
* The text for the secondary button. If left
|
|
9
9
|
* empty, will not render a secondary button.
|
|
10
10
|
*/
|
|
11
|
-
secondary:
|
|
11
|
+
secondary: 'string';
|
|
12
12
|
/**
|
|
13
13
|
* The text for the tertiary button. If left
|
|
14
14
|
* empty, will not render a secondary button.
|
|
15
15
|
*/
|
|
16
|
-
tertiary:
|
|
16
|
+
tertiary: 'string';
|
|
17
17
|
/**
|
|
18
18
|
* Fires on the primary button.
|
|
19
19
|
* If not set, the button can act as a standard
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
interface Choice {
|
|
2
|
+
checked?: boolean;
|
|
3
|
+
children?: Choice[];
|
|
4
|
+
description?: string;
|
|
5
|
+
label?: string;
|
|
6
6
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface DropdownOption {
|
|
2
|
+
label: string;
|
|
3
|
+
isSelected?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type DropdownItem = Partial<DropdownOption & DropdownOptionGroup>;
|
|
8
|
+
|
|
9
|
+
interface DropdownOptionGroup {
|
|
10
|
+
groupName: string;
|
|
11
|
+
options: DropdownItem[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class XplDropdownOption {
|
|
2
|
+
/** whether option is disabled */
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
/** text to display for option */
|
|
5
|
+
label: string;
|
|
6
|
+
/** whether option is selected */
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
hostElement: HTMLXplDropdownOptionElement;
|
|
9
|
+
private dropdown;
|
|
10
|
+
componentWillLoad(): void;
|
|
11
|
+
private handleClick;
|
|
12
|
+
private handleKeyup;
|
|
13
|
+
connectedCallback(): void;
|
|
14
|
+
disconnectedCallback(): void;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
export declare class XplDropdown {
|
|
2
|
+
/** text to display as heading */
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
/** options that are listed */
|
|
5
|
+
closeOnSelect: boolean;
|
|
6
|
+
/** constant representing number of options that can be selected */
|
|
7
|
+
mode: 'single' | 'multi';
|
|
8
|
+
/** options that are listed */
|
|
9
|
+
options?: DropdownItem[];
|
|
10
|
+
/** whether selection should be made when focusing on interactable element */
|
|
11
|
+
selectOnFocus: boolean;
|
|
12
|
+
/** the id for the element that triggers the open state */
|
|
13
|
+
triggerId: string;
|
|
14
|
+
/**
|
|
15
|
+
* @callback update
|
|
16
|
+
* @param {Object} e - event object
|
|
17
|
+
* @param {Object} options - component
|
|
18
|
+
*/
|
|
19
|
+
/** call back function invoked when a selection is made */
|
|
20
|
+
update?: (e: Event, { component: XplDropdown }: {
|
|
21
|
+
component: any;
|
|
22
|
+
}) => void;
|
|
23
|
+
hostElement: HTMLXplDropdownElement;
|
|
24
|
+
/**
|
|
25
|
+
* called on dropdown option click and keydown events to update isSelected states
|
|
26
|
+
*/
|
|
27
|
+
handleSelect(e: Event, { component }: {
|
|
28
|
+
component: any;
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
private handleClickOutside;
|
|
31
|
+
componentWillLoad(): void;
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
render(): any;
|
|
9
35
|
}
|
|
10
|
-
export declare const XplDropdown: FunctionalComponent<XplDropdownProps>;
|
|
11
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../font-awesome/fontawesome';
|
|
2
|
+
import '../../../font-awesome/regular';
|
|
3
3
|
export declare class XplInput {
|
|
4
4
|
/**
|
|
5
5
|
* Because `id` is a reserved HTMLElement attribute,
|
|
@@ -45,7 +45,7 @@ export declare class XplInput {
|
|
|
45
45
|
* date or a range of dates. (Multiple non-consecutive
|
|
46
46
|
* dates planned to be supported in the future.)
|
|
47
47
|
*/
|
|
48
|
-
mode?:
|
|
48
|
+
mode?: 'single' | /* "multiple" | */ 'range';
|
|
49
49
|
/**
|
|
50
50
|
* Whether to render as a singleline text input or
|
|
51
51
|
* as a multiline textarea. (If `true`, `pre` and `post`
|
|
@@ -71,7 +71,7 @@ export declare class XplInput {
|
|
|
71
71
|
readonly?: boolean;
|
|
72
72
|
required?: boolean;
|
|
73
73
|
step?: number;
|
|
74
|
-
type?:
|
|
74
|
+
type?: 'date' | 'text' | 'number' | 'password';
|
|
75
75
|
/**
|
|
76
76
|
* Including a `value` will prepopulate the input
|
|
77
77
|
* with the given string.
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
interface ListItem {
|
|
2
|
+
avatar?: string;
|
|
3
|
+
avatars?: string[];
|
|
4
|
+
badges?:
|
|
5
|
+
| string[]
|
|
6
|
+
| {
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
text: string;
|
|
9
|
+
variant?: string;
|
|
10
|
+
}[];
|
|
11
|
+
href?: string;
|
|
12
|
+
title: string;
|
|
13
|
+
metadata?:
|
|
14
|
+
| string[]
|
|
15
|
+
| {
|
|
16
|
+
icon: string;
|
|
17
|
+
text: string;
|
|
18
|
+
}[];
|
|
19
|
+
subtext?: string;
|
|
16
20
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ListItem } from "./listitem";
|
|
1
|
+
import '../../../font-awesome/fontawesome';
|
|
2
|
+
import '../../../font-awesome/regular';
|
|
4
3
|
export declare class XplList {
|
|
5
4
|
/**
|
|
6
5
|
* `items` should be an array of objects with the following signature:
|
|
@@ -3,7 +3,7 @@ export declare class XplMainNav {
|
|
|
3
3
|
/**
|
|
4
4
|
* @property {string} width - The width of the Main Nav.
|
|
5
5
|
*/
|
|
6
|
-
width:
|
|
6
|
+
width: 'default' | 'md' | 'sm';
|
|
7
7
|
/**
|
|
8
8
|
* @event {string} navWidth - Emits the `nav-width` prop set by the user
|
|
9
9
|
* when the component is attached to the DOM and when the component is updated.
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
export declare class XplNavItem {
|
|
3
|
+
/**
|
|
4
|
+
* @property {boolean} - Whether or not the item should control the main nav state on click
|
|
5
|
+
*/
|
|
6
|
+
navControl?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @event {boolean} - Emits the desired state of the navigation bar (open: true/false)
|
|
9
|
+
*/
|
|
10
|
+
navOpen: EventEmitter<boolean>;
|
|
11
|
+
private onNavToggle;
|
|
2
12
|
render(): any;
|
|
3
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DropdownChoice } from "../xpl-dropdown/dropdownchoice";
|
|
2
1
|
export declare class XplSelect {
|
|
3
2
|
/**
|
|
4
3
|
* An array of choices for the user to choose from.
|
|
@@ -10,7 +9,7 @@ export declare class XplSelect {
|
|
|
10
9
|
* isGroupHeading?: boolean;
|
|
11
10
|
* }
|
|
12
11
|
*/
|
|
13
|
-
choices?:
|
|
12
|
+
choices?: SelectChoice[];
|
|
14
13
|
/**
|
|
15
14
|
* Optional text that appears below the input label.
|
|
16
15
|
*/
|
|
@@ -27,7 +26,7 @@ export declare class XplSelect {
|
|
|
27
26
|
/**
|
|
28
27
|
* Whether to allow a single choice or multiple choices.
|
|
29
28
|
*/
|
|
30
|
-
mode?:
|
|
29
|
+
mode?: 'single' | 'multi';
|
|
31
30
|
placeholder: string;
|
|
32
31
|
/**
|
|
33
32
|
* Only used in multi-choice selects. If `true`,
|
|
@@ -42,10 +41,14 @@ export declare class XplSelect {
|
|
|
42
41
|
keepFocus: boolean;
|
|
43
42
|
selected: boolean[];
|
|
44
43
|
value: string;
|
|
44
|
+
displayValue: string;
|
|
45
45
|
visibleChoices: number;
|
|
46
46
|
private container;
|
|
47
|
+
private dropdown;
|
|
47
48
|
componentWillLoad(): void;
|
|
49
|
+
componentDidLoad(): void;
|
|
48
50
|
private maybeTruncateChoices;
|
|
51
|
+
private flattenChoices;
|
|
49
52
|
private getDisplayValue;
|
|
50
53
|
private getActualValue;
|
|
51
54
|
private update;
|