@xplortech/apollo-core 2.4.3 → 2.5.0
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/.typings/apollo-components.html-data.json +1011 -3481
- package/build/style.css +7 -7
- package/dist/apollo-core/apollo-core.css +1 -1
- package/dist/apollo-core/apollo-core.esm.js +1 -1
- package/dist/apollo-core/{p-8c1f73ea.entry.js → p-0e1877a2.entry.js} +1 -1
- package/dist/apollo-core/{p-94209785.entry.js → p-1c2e4034.entry.js} +1 -1
- package/dist/apollo-core/p-77f0fd4a.entry.js +1 -0
- package/dist/apollo-core/p-7c22b842.entry.js +1 -0
- package/dist/apollo-core/p-7d245bf0.entry.js +1 -0
- package/dist/apollo-core/{p-b1f4604d.entry.js → p-f4c2626d.entry.js} +1 -1
- package/dist/cjs/xpl-avatar_41.cjs.entry.js +11724 -1158
- package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
- package/dist/cjs/xpl-dynamic-table.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/xpl-data-card/xpl-data-card.js +11 -25
- package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
- package/dist/collection/components/xpl-dropdown/dropdown.stories.js +4 -0
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
- package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
- package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +2 -2
- package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +4 -0
- package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
- package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
- package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
- package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
- package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
- package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +4 -0
- package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
- package/dist/collection/components/xpl-icon/icon-types.js +1 -0
- package/dist/collection/components/xpl-icon/icons.stories.js +47 -12
- package/dist/collection/components/xpl-icon/xpl-icon.js +13 -15
- package/dist/collection/components/xpl-input/input.stories.js +4 -0
- package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +3 -3
- package/dist/collection/components/xpl-list/list.stories.js +4 -0
- package/dist/collection/components/xpl-progress/progress.stories.js +4 -0
- package/dist/collection/components/xpl-radio/radio.stories.js +4 -0
- package/dist/collection/components/xpl-select/select.stories.js +4 -0
- package/dist/collection/components/xpl-select/xpl-select.js +10 -16
- package/dist/collection/components/xpl-skeleton/skeleton.stories.js +4 -0
- package/dist/collection/components/xpl-slideout/slideout.stories.js +6 -0
- package/dist/collection/components/xpl-table/table.stories.js +4 -0
- package/dist/collection/components/xpl-table-header/table-header.stories.js +4 -0
- package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +4 -0
- package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +5 -15
- package/dist/collection/components/xpl-tabs/tabs.stories.js +4 -0
- package/dist/collection/components/xpl-toast/toast.stories.js +4 -0
- package/dist/collection/components/xpl-toggle/toggle.stories.js +4 -0
- package/dist/collection/components/xpl-tooltip/tooltip.stories.js +4 -0
- package/dist/components/xpl-data-card.js +1 -1
- package/dist/components/xpl-divider2.js +1 -1
- package/dist/components/xpl-dropdown-group2.js +1 -1
- package/dist/components/xpl-dropdown-heading2.js +1 -1
- package/dist/components/xpl-dropdown-option2.js +1 -1
- package/dist/components/xpl-dropdown2.js +1 -1
- package/dist/components/xpl-dynamic-table-cell.js +1 -1
- package/dist/components/xpl-dynamic-table-row.js +1 -1
- package/dist/components/xpl-dynamic-table.js +1 -1
- package/dist/components/xpl-grid-item.js +1 -1
- package/dist/components/xpl-grid.js +1 -1
- package/dist/components/xpl-header-accordion.js +1 -1
- package/dist/components/xpl-icon2.js +1 -6
- package/dist/components/xpl-input2.js +1 -1
- package/dist/components/xpl-select2.js +1 -1
- package/dist/docs/xpl-accordion/readme.md +62 -0
- package/dist/docs/xpl-application-shell/readme.md +33 -0
- package/dist/docs/xpl-avatar/readme.md +35 -0
- package/dist/docs/xpl-backdrop/readme.md +34 -0
- package/dist/docs/xpl-badge/readme.md +29 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +19 -0
- package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +22 -0
- package/dist/docs/xpl-button/readme.md +44 -0
- package/dist/docs/xpl-button-row/readme.md +41 -0
- package/dist/docs/xpl-calendar/readme.md +48 -0
- package/dist/docs/xpl-checkbox/readme.md +47 -0
- package/dist/docs/xpl-choicelist/readme.md +43 -0
- package/dist/docs/xpl-content-area/readme.md +17 -0
- package/dist/docs/xpl-dashboard/readme.md +10 -0
- package/dist/docs/xpl-data-card/readme.md +54 -0
- package/dist/docs/xpl-divider/readme.md +30 -0
- package/dist/docs/xpl-dropdown/readme.md +80 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +39 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +30 -0
- package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +36 -0
- package/dist/docs/xpl-dynamic-table/readme.md +19 -0
- package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -0
- package/dist/docs/xpl-dynamic-table-row/readme.md +19 -0
- package/dist/docs/xpl-grid/readme.md +10 -0
- package/dist/docs/xpl-grid-item/readme.md +20 -0
- package/dist/docs/xpl-header-accordion/readme.md +39 -0
- package/dist/docs/xpl-icon/readme.md +80 -0
- package/dist/docs/xpl-input/readme.md +90 -0
- package/dist/docs/xpl-input/xpl-input-color/readme.md +61 -0
- package/dist/docs/xpl-input/xpl-input-date/readme.md +56 -0
- package/dist/docs/xpl-input/xpl-input-file/readme.md +79 -0
- package/dist/docs/xpl-input/xpl-input-time/readme.md +69 -0
- package/dist/docs/xpl-large-card/readme.md +40 -0
- package/dist/docs/xpl-list/readme.md +34 -0
- package/dist/docs/xpl-main-nav/readme.md +28 -0
- package/dist/docs/xpl-modal/readme.md +55 -0
- package/dist/docs/xpl-nav-item/readme.md +24 -0
- package/dist/docs/xpl-pagination/readme.md +52 -0
- package/dist/docs/xpl-popover/readme.md +48 -0
- package/dist/docs/xpl-progress/readme.md +22 -0
- package/dist/docs/xpl-radio/readme.md +43 -0
- package/dist/docs/xpl-secondary-nav/readme.md +10 -0
- package/dist/docs/xpl-select/readme.md +88 -0
- package/dist/docs/xpl-skeleton/readme.md +31 -0
- package/dist/docs/xpl-slideout/readme.md +46 -0
- package/dist/docs/xpl-tab/readme.md +25 -0
- package/dist/docs/xpl-tab-panel/readme.md +18 -0
- package/dist/docs/xpl-table/readme.md +46 -0
- package/dist/docs/xpl-table-header/readme.md +13 -0
- package/dist/docs/xpl-table-header-cell/readme.md +47 -0
- package/dist/docs/xpl-tabs/readme.md +54 -0
- package/dist/docs/xpl-tag/readme.md +30 -0
- package/dist/docs/xpl-toast/readme.md +42 -0
- package/dist/docs/xpl-toggle/readme.md +23 -0
- package/dist/docs/xpl-toolbar/readme.md +18 -0
- package/dist/docs/xpl-tooltip/readme.md +35 -0
- package/dist/docs/xpl-utility-bar/readme.md +55 -0
- package/dist/esm/xpl-avatar_41.entry.js +11724 -1158
- package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
- package/dist/esm/xpl-dynamic-table.entry.js +1 -1
- package/dist/esm/xpl-grid-item.entry.js +1 -1
- package/dist/esm/xpl-grid.entry.js +1 -1
- package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +2 -3
- package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +4 -0
- package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +4 -0
- package/dist/types/components/xpl-icon/icon-types.d.ts +2 -0
- package/dist/types/components/xpl-icon/xpl-icon.d.ts +1 -3
- package/dist/types/components/xpl-input/input.stories.d.ts +4 -0
- package/dist/types/components/xpl-list/list.stories.d.ts +4 -0
- package/dist/types/components/xpl-progress/progress.stories.d.ts +4 -0
- package/dist/types/components/xpl-radio/radio.stories.d.ts +4 -0
- package/dist/types/components/xpl-select/select.stories.d.ts +4 -0
- package/dist/types/components/xpl-select/xpl-select.d.ts +1 -3
- package/dist/types/components/xpl-slideout/slideout.stories.d.ts +6 -0
- package/dist/types/components/xpl-table/table.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header/table-header.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +4 -0
- package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +1 -2
- package/dist/types/components/xpl-tabs/tabs.stories.d.ts +4 -0
- package/dist/types/components/xpl-toast/toast.stories.d.ts +4 -0
- package/dist/types/components/xpl-toggle/toggle.stories.d.ts +4 -0
- package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +4 -0
- package/dist/types/components.d.ts +24 -28
- package/package.json +7 -4
- package/dist/apollo-core/p-31461db7.entry.js +0 -1
- package/dist/apollo-core/p-5c0236db.entry.js +0 -6
- package/dist/apollo-core/p-7f8e5cd0.entry.js +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# xpl-choicelist
|
|
2
|
+
|
|
3
|
+
<!-- Auto Generated Below -->
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Description | Type | Default |
|
|
9
|
+
| ------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ----------- |
|
|
10
|
+
| `choices` | -- | An array of choices to be displayed in the list. Each choice should be an object with keys: - `checked` [boolean] - whether to pre-check or not - `children` [Choice[]] - an array of child choices (recursive) - `description` [string] - `label` [string] | `Choice[]` | `undefined` |
|
|
11
|
+
| `description` | `description` | Descriptive text to be displayed above the choice-list. | `string` | `undefined` |
|
|
12
|
+
| `heading` | `heading` | The title text to be displayed above the choice-list. | `string` | `undefined` |
|
|
13
|
+
| `multi` | `multi` | Whether the user can select more than one choice (true) or only a single choice (false). Corresponds to checkboxes vs. radio buttons. | `boolean` | `undefined` |
|
|
14
|
+
| `name` | `name` | The `name` to be associated with form data. | `string` | `uuid()` |
|
|
15
|
+
| `styled` | `styled` | If `true`, will include borders around the list and between individual choices. | `boolean` | `undefined` |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Events
|
|
19
|
+
|
|
20
|
+
| Event | Description | Type |
|
|
21
|
+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
|
|
22
|
+
| `choicelistChange` | An event that is emitted when the selected value changes. The event detail will be an array of booleans, where each boolean corresponds to the checked state of the choices. | `CustomEvent<boolean[]>` |
|
|
23
|
+
| `choicelistValueChange` | An event that is emitted when the selected value changes. The event detail will be an array if the multi prop is true, otherwise it will be a single value. The value will be string if value is provided for choices, otherwise it will be a boolean. NOTE: This will only be emitted if choices have a value property. | `CustomEvent<(string \| boolean)[] \| boolean \| string>` |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Dependencies
|
|
27
|
+
|
|
28
|
+
### Depends on
|
|
29
|
+
|
|
30
|
+
- [xpl-checkbox](../xpl-checkbox)
|
|
31
|
+
- [xpl-radio](../xpl-radio)
|
|
32
|
+
|
|
33
|
+
### Graph
|
|
34
|
+
```mermaid
|
|
35
|
+
graph TD;
|
|
36
|
+
xpl-choicelist --> xpl-checkbox
|
|
37
|
+
xpl-choicelist --> xpl-radio
|
|
38
|
+
style xpl-choicelist fill:#f9f,stroke:#333,stroke-width:4px
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
----------------------------------------------
|
|
42
|
+
|
|
43
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# xpl-content-area
|
|
2
|
+
|
|
3
|
+
The `<xpl-content-area>` sets up the area for the main content of the page. This component renders a `<main>` element with an unnamed `<slot>`, and should not be combined with another `<main>` in the same page.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------- | --------- | ----------- | ------------------------------ | -------- |
|
|
12
|
+
| `size` | `size` | | `"full" \| "narrow" \| "wide"` | `'wide'` |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
----------------------------------------------
|
|
16
|
+
|
|
17
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# xpl-dashboard
|
|
2
|
+
|
|
3
|
+
The XPL-Dashboard component is a code-only utility component for responsive layouts using the XPL-Data Card component.
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
----------------------------------------------
|
|
9
|
+
|
|
10
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# xpl-data-card
|
|
2
|
+
|
|
3
|
+
The `icon` and `smallStatIcon` properties accept icon names as strings. See [xpl-icon available icons](../xpl-icon/ICONS.md) for the complete list.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<!-- Auto Generated Below -->
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Properties
|
|
11
|
+
|
|
12
|
+
| Property | Attribute | Description | Type | Default |
|
|
13
|
+
| ---------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------- | ----------- |
|
|
14
|
+
| `detail` | `detail` | An optional field that typically describes or modifies the small stat | `string` | `undefined` |
|
|
15
|
+
| `icon` | `icon` | An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names. | `string` | `undefined` |
|
|
16
|
+
| `leadingIcon` | `leading-icon` | Whether to display the icon or not. | `boolean` | `true` |
|
|
17
|
+
| `link` | `link` | Whether the card is a link | `boolean` | `undefined` |
|
|
18
|
+
| `name` | `name` | Name Term | `string` | `undefined` |
|
|
19
|
+
| `shortStat` | `short-stat` | Detail, stat, or value to be displayed in short format. Will be rendered when card is smaller than 441px. | `string` | `undefined` |
|
|
20
|
+
| `smallStat` | `small-stat` | An Optional stat further enhancing the main metric of the card. | `string` | `undefined` |
|
|
21
|
+
| `smallStatIcon` | `small-stat-icon` | An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names. | `string` | `undefined` |
|
|
22
|
+
| `smallStatVariant` | `small-stat-variant` | set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used | `"negative" \| "neutral" \| "positive"` | `undefined` |
|
|
23
|
+
| `stat` | `stat` | Detail, stat, or value to be displayed. Will be rendered when card is larger than 441px. Will also appear in the tooltip when shortStat is shown. | `string` | `undefined` |
|
|
24
|
+
| `tooltipTextSmallStat` | `tooltip-text-small-stat` | An optional field for tooltip text of small stat | `string` | `''` |
|
|
25
|
+
| `tooltipTextStat` | `tooltip-text-stat` | An optional field for tooltip text of stat | `string` | `''` |
|
|
26
|
+
| `variant` | `variant` | Color variant. Used to set the icon color and background. | `"primary" \| "secondary"` | `undefined` |
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Slots
|
|
30
|
+
|
|
31
|
+
| Slot | Description |
|
|
32
|
+
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
33
|
+
| `"graph-content"` | Content that is shown on the right-side of the card. Generally used for supplemental data visualizations for the data-card |
|
|
34
|
+
| `"title"` | The title for the card. This slot should be used as a replacement for the name field. Used to define a title and tooltip for the data-card |
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## Dependencies
|
|
38
|
+
|
|
39
|
+
### Depends on
|
|
40
|
+
|
|
41
|
+
- [xpl-icon](../xpl-icon)
|
|
42
|
+
- [xpl-tooltip](../xpl-tooltip)
|
|
43
|
+
|
|
44
|
+
### Graph
|
|
45
|
+
```mermaid
|
|
46
|
+
graph TD;
|
|
47
|
+
xpl-data-card --> xpl-icon
|
|
48
|
+
xpl-data-card --> xpl-tooltip
|
|
49
|
+
style xpl-data-card fill:#f9f,stroke:#333,stroke-width:4px
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
----------------------------------------------
|
|
53
|
+
|
|
54
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# xpl-divider
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------- |
|
|
12
|
+
| `tier` | `tier` | The tier should be an integer between 0 and 3. Tier 0 dividers do not display text, and 1-3 increase in size with each increasing tier. | `number` | `undefined` |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Dependencies
|
|
16
|
+
|
|
17
|
+
### Used by
|
|
18
|
+
|
|
19
|
+
- [xpl-slideout](../xpl-slideout)
|
|
20
|
+
|
|
21
|
+
### Graph
|
|
22
|
+
```mermaid
|
|
23
|
+
graph TD;
|
|
24
|
+
xpl-slideout --> xpl-divider
|
|
25
|
+
style xpl-divider fill:#f9f,stroke:#333,stroke-width:4px
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
----------------------------------------------
|
|
29
|
+
|
|
30
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# xpl-dropdown
|
|
2
|
+
|
|
3
|
+
A Dropdown is a menu with a list of actions a user can take. Use a dropdown when you want to present a list of actions in a limited space. Dropdowns are single-select ***actions***, can be presented in groups, and can be triggered by other elements such as a button, icon, text etc.
|
|
4
|
+
A selection within a dropdown does not change the parent trigger.
|
|
5
|
+
|
|
6
|
+
***If you want to present a list of **options** a user can select, or multi-select options, please use [XPL-Select](https://xplor-apollo.herokuapp.com/?path=/story/components-select--select).***
|
|
7
|
+
|
|
8
|
+
<!-- Auto Generated Below -->
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
| Property | Attribute | Description | Type | Default |
|
|
14
|
+
| ----------------- | ------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------- | ----------- |
|
|
15
|
+
| `anchorToTrigger` | `anchor-to-trigger` | whether to anchor the dropdown to the trigger element, requires triggerId to be set | `boolean` | `false` |
|
|
16
|
+
| `closeOnSelect` | `close-on-select` | options that are listed | `boolean` | `true` |
|
|
17
|
+
| `isOpen` | `open` | text to display as heading | `boolean` | `false` |
|
|
18
|
+
| `mode` | `mode` | constant representing number of options that can be selected | `"multi" \| "single"` | `'single'` |
|
|
19
|
+
| `options` | -- | options that are listed | `Partial<DropdownOption & DropdownOptionGroup>[]` | `undefined` |
|
|
20
|
+
| `selectOnFocus` | `select-on-focus` | whether selection should be made when focusing on interactive element | `boolean` | `false` |
|
|
21
|
+
| `selectedValues` | `selected-values` | The currently selected value(s) in the dropdown. | `string \| string[]` | `undefined` |
|
|
22
|
+
| `triggerId` | `trigger-id` | the id for the element that triggers the open state | `string` | `undefined` |
|
|
23
|
+
| `update` | -- | call back function invoked when a selection is made | `(e: any, { component }: { component: XplDropdown; }) => void` | `undefined` |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Events
|
|
27
|
+
|
|
28
|
+
| Event | Description | Type |
|
|
29
|
+
| -------------- | ---------------------------------------------------- | ---------------------- |
|
|
30
|
+
| `isOpenChange` | Emitted when the open state of the dropdown changes. | `CustomEvent<boolean>` |
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Methods
|
|
34
|
+
|
|
35
|
+
### `handleSelect(e: any, { component }: { component: XplDropdownOption; }) => Promise<void>`
|
|
36
|
+
|
|
37
|
+
called on dropdown option click and keydown events to update isSelected states
|
|
38
|
+
|
|
39
|
+
#### Parameters
|
|
40
|
+
|
|
41
|
+
| Name | Type | Description |
|
|
42
|
+
| ----- | ----------------------------------- | ----------- |
|
|
43
|
+
| `e` | `any` | |
|
|
44
|
+
| `__1` | `{ component: XplDropdownOption; }` | |
|
|
45
|
+
|
|
46
|
+
#### Returns
|
|
47
|
+
|
|
48
|
+
Type: `Promise<void>`
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Dependencies
|
|
54
|
+
|
|
55
|
+
### Used by
|
|
56
|
+
|
|
57
|
+
- [xpl-input-time](../xpl-input/xpl-input-time)
|
|
58
|
+
- [xpl-select](../xpl-select)
|
|
59
|
+
|
|
60
|
+
### Depends on
|
|
61
|
+
|
|
62
|
+
- [xpl-dropdown-group](xpl-dropdown-group)
|
|
63
|
+
- [xpl-dropdown-option](xpl-dropdown-option)
|
|
64
|
+
|
|
65
|
+
### Graph
|
|
66
|
+
```mermaid
|
|
67
|
+
graph TD;
|
|
68
|
+
xpl-dropdown --> xpl-dropdown-group
|
|
69
|
+
xpl-dropdown --> xpl-dropdown-option
|
|
70
|
+
xpl-dropdown-group --> xpl-dropdown-group
|
|
71
|
+
xpl-dropdown-group --> xpl-dropdown-option
|
|
72
|
+
xpl-dropdown-group --> xpl-dropdown-heading
|
|
73
|
+
xpl-input-time --> xpl-dropdown
|
|
74
|
+
xpl-select --> xpl-dropdown
|
|
75
|
+
style xpl-dropdown fill:#f9f,stroke:#333,stroke-width:4px
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
----------------------------------------------
|
|
79
|
+
|
|
80
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# xpl-dropdown-group
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ----------- | --------- | -------------------------- | ------------------------------------------------- | ----------- |
|
|
12
|
+
| `groupName` | `label` | text to display as heading | `string` | `undefined` |
|
|
13
|
+
| `options` | -- | options that are listed | `Partial<DropdownOption & DropdownOptionGroup>[]` | `undefined` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Dependencies
|
|
17
|
+
|
|
18
|
+
### Used by
|
|
19
|
+
|
|
20
|
+
- [xpl-dropdown](..)
|
|
21
|
+
- [xpl-dropdown-group](.)
|
|
22
|
+
|
|
23
|
+
### Depends on
|
|
24
|
+
|
|
25
|
+
- [xpl-dropdown-group](.)
|
|
26
|
+
- [xpl-dropdown-option](../xpl-dropdown-option)
|
|
27
|
+
- [xpl-dropdown-heading](../xpl-dropdown-heading)
|
|
28
|
+
|
|
29
|
+
### Graph
|
|
30
|
+
```mermaid
|
|
31
|
+
graph TD;
|
|
32
|
+
xpl-dropdown-group --> xpl-dropdown-group
|
|
33
|
+
xpl-dropdown --> xpl-dropdown-group
|
|
34
|
+
style xpl-dropdown-group fill:#f9f,stroke:#333,stroke-width:4px
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
----------------------------------------------
|
|
38
|
+
|
|
39
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# xpl-dropdown-heading
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------- | --------- | -------------------------- | -------- | ----------- |
|
|
12
|
+
| `label` | `label` | text to display as heading | `string` | `undefined` |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## Dependencies
|
|
16
|
+
|
|
17
|
+
### Used by
|
|
18
|
+
|
|
19
|
+
- [xpl-dropdown-group](../xpl-dropdown-group)
|
|
20
|
+
|
|
21
|
+
### Graph
|
|
22
|
+
```mermaid
|
|
23
|
+
graph TD;
|
|
24
|
+
xpl-dropdown-group --> xpl-dropdown-heading
|
|
25
|
+
style xpl-dropdown-heading fill:#f9f,stroke:#333,stroke-width:4px
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
----------------------------------------------
|
|
29
|
+
|
|
30
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# xpl-dropdown-option
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| ------------ | ---------- | ----------------------------------------------------------------------------------------- | --------- | ----------- |
|
|
12
|
+
| `isDisabled` | `disabled` | whether option is disabled | `boolean` | `undefined` |
|
|
13
|
+
| `isSelected` | `selected` | whether option is selected | `boolean` | `undefined` |
|
|
14
|
+
| `label` | `label` | text to display for option | `string` | `undefined` |
|
|
15
|
+
| `subtitle` | `subtitle` | optional subtitle text to display below label | `string` | `undefined` |
|
|
16
|
+
| `value` | `value` | The selected options value to be submitted with the form, should this option be selected. | `string` | `undefined` |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Dependencies
|
|
20
|
+
|
|
21
|
+
### Used by
|
|
22
|
+
|
|
23
|
+
- [xpl-dropdown](..)
|
|
24
|
+
- [xpl-dropdown-group](../xpl-dropdown-group)
|
|
25
|
+
|
|
26
|
+
### Graph
|
|
27
|
+
```mermaid
|
|
28
|
+
graph TD;
|
|
29
|
+
xpl-dropdown --> xpl-dropdown-option
|
|
30
|
+
xpl-dropdown-group --> xpl-dropdown-option
|
|
31
|
+
style xpl-dropdown-option fill:#f9f,stroke:#333,stroke-width:4px
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
----------------------------------------------
|
|
35
|
+
|
|
36
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# xpl-dynamic-table
|
|
2
|
+
|
|
3
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
4
|
+
|
|
5
|
+
The Dynamic Table is a rich content table that can accommodate multiple types of data.
|
|
6
|
+
|
|
7
|
+
<!-- Auto Generated Below -->
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Events
|
|
11
|
+
|
|
12
|
+
| Event | Description | Type |
|
|
13
|
+
| ------------------------- | -------------------------------------------------- | ----------------------- |
|
|
14
|
+
| `selectedItemCountChange` | Emitted when the number of selected items changes. | `CustomEvent<string[]>` |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
----------------------------------------------
|
|
18
|
+
|
|
19
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# xpl-dynamic-table-cell
|
|
2
|
+
|
|
3
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!-- Auto Generated Below -->
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
| Property | Attribute | Description | Type | Default |
|
|
12
|
+
| ---------- | ---------- | ----------------------------------------------- | --------- | ------- |
|
|
13
|
+
| `disabled` | `disabled` | Whether the cell and its contents are disabled. | `boolean` | `false` |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
----------------------------------------------
|
|
17
|
+
|
|
18
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# xpl-dynamic-table-row
|
|
2
|
+
|
|
3
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<!-- Auto Generated Below -->
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
| Property | Attribute | Description | Type | Default |
|
|
12
|
+
| ---------- | ---------- | ------------------------------------------- | --------- | ------- |
|
|
13
|
+
| `disabled` | `disabled` | Whether the row and its cells are disabled. | `boolean` | `false` |
|
|
14
|
+
| `selected` | `selected` | Whether the row is selected. | `boolean` | `false` |
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
----------------------------------------------
|
|
18
|
+
|
|
19
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# xpl-grid-item
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
<!-- Auto Generated Below -->
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Properties
|
|
9
|
+
|
|
10
|
+
| Property | Attribute | Description | Type | Default |
|
|
11
|
+
| -------- | --------- | ------------------------------------------------------------------------------------------ | -------- | ------- |
|
|
12
|
+
| `lg` | `lg` | The number of columns the element should span out of a 6 column grid on a lg size screen | `number` | `6` |
|
|
13
|
+
| `md` | `md` | The number of columns the element should span out of a 6 column grid on a md size screen | `number` | `6` |
|
|
14
|
+
| `sm` | `sm` | The number of columns the element should span out of a 6 column grid on a sm size screen | `number` | `6` |
|
|
15
|
+
| `xs` | `xs` | The number of columns the element should span out of a 6 column grid on a xs size screen | `number` | `6` |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
----------------------------------------------
|
|
19
|
+
|
|
20
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# xpl-header-accordion
|
|
2
|
+
|
|
3
|
+
The toolbar component allows users to manipulate selections within the Dynamic Table. It is only visible when a row or cell is in the selected state and bulk actions can be taken on that row or cell.
|
|
4
|
+
|
|
5
|
+
> **Note:** This component is currently in beta. Use with caution as it may have breaking changes in future releases.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<!-- Auto Generated Below -->
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
| Property | Attribute | Description | Type | Default |
|
|
14
|
+
| ----------------- | ------------------ | ------------------------------------------------------------- | --------- | ----------- |
|
|
15
|
+
| `contentId` | `content-id` | The id of the content region controlled by the accordion. | `string` | `undefined` |
|
|
16
|
+
| `disabled` | `disabled` | Whether the accordion is disabled. | `boolean` | `false` |
|
|
17
|
+
| `hasCheckbox` | `has-checkbox` | Whether to display a parent checkbox in the accordion header. | `boolean` | `true` |
|
|
18
|
+
| `initialExpanded` | `initial-expanded` | Whether the accordion is expanded initially. | `boolean` | `false` |
|
|
19
|
+
| `selectedCount` | `selected-count` | The number of selected child items, or -1 to auto-calculate. | `number` | `-1` |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Dependencies
|
|
23
|
+
|
|
24
|
+
### Depends on
|
|
25
|
+
|
|
26
|
+
- [xpl-checkbox](../xpl-checkbox)
|
|
27
|
+
- [xpl-icon](../xpl-icon)
|
|
28
|
+
|
|
29
|
+
### Graph
|
|
30
|
+
```mermaid
|
|
31
|
+
graph TD;
|
|
32
|
+
xpl-header-accordion --> xpl-checkbox
|
|
33
|
+
xpl-header-accordion --> xpl-icon
|
|
34
|
+
style xpl-header-accordion fill:#f9f,stroke:#333,stroke-width:4px
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
----------------------------------------------
|
|
38
|
+
|
|
39
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# xpl-icon
|
|
2
|
+
|
|
3
|
+
## Available Icons
|
|
4
|
+
|
|
5
|
+
For a complete list of available icon names, see [ICONS.md](./ICONS.md) (164 icons).
|
|
6
|
+
|
|
7
|
+
You can also browse icons visually in [Storybook](?path=/story/components-icons--icons) with search functionality.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<xpl-icon icon="rocket" size="24"></xpl-icon>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The `icon` property accepts any icon name as a string. See the links above for the full list of available icons.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
<!-- Auto Generated Below -->
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Properties
|
|
23
|
+
|
|
24
|
+
| Property | Attribute | Description | Type | Default |
|
|
25
|
+
| ------------------- | ------------------ | ------------------------ | -------- | ----------- |
|
|
26
|
+
| `backgroundColor` | `background-color` | Icon's background color. | `string` | `undefined` |
|
|
27
|
+
| `icon` _(required)_ | `icon` | Name of icon. | `string` | `undefined` |
|
|
28
|
+
| `size` | `size` | Size of icon | `number` | `undefined` |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## Dependencies
|
|
32
|
+
|
|
33
|
+
### Used by
|
|
34
|
+
|
|
35
|
+
- [xpl-accordion](../xpl-accordion)
|
|
36
|
+
- [xpl-data-card](../xpl-data-card)
|
|
37
|
+
- [xpl-header-accordion](../xpl-header-accordion)
|
|
38
|
+
- [xpl-input](../xpl-input)
|
|
39
|
+
- [xpl-input-color](../xpl-input/xpl-input-color)
|
|
40
|
+
- [xpl-input-date](../xpl-input/xpl-input-date)
|
|
41
|
+
- [xpl-input-file](../xpl-input/xpl-input-file)
|
|
42
|
+
- [xpl-input-time](../xpl-input/xpl-input-time)
|
|
43
|
+
- [xpl-large-card](../xpl-large-card)
|
|
44
|
+
- [xpl-list](../xpl-list)
|
|
45
|
+
- [xpl-modal](../xpl-modal)
|
|
46
|
+
- [xpl-pagination](../xpl-pagination)
|
|
47
|
+
- [xpl-select](../xpl-select)
|
|
48
|
+
- [xpl-slideout](../xpl-slideout)
|
|
49
|
+
- [xpl-table](../xpl-table)
|
|
50
|
+
- [xpl-table-header-cell](../xpl-table-header-cell)
|
|
51
|
+
- [xpl-toast](../xpl-toast)
|
|
52
|
+
- [xpl-utility-bar](../xpl-utility-bar)
|
|
53
|
+
|
|
54
|
+
### Graph
|
|
55
|
+
```mermaid
|
|
56
|
+
graph TD;
|
|
57
|
+
xpl-accordion --> xpl-icon
|
|
58
|
+
xpl-data-card --> xpl-icon
|
|
59
|
+
xpl-header-accordion --> xpl-icon
|
|
60
|
+
xpl-input --> xpl-icon
|
|
61
|
+
xpl-input-color --> xpl-icon
|
|
62
|
+
xpl-input-date --> xpl-icon
|
|
63
|
+
xpl-input-file --> xpl-icon
|
|
64
|
+
xpl-input-time --> xpl-icon
|
|
65
|
+
xpl-large-card --> xpl-icon
|
|
66
|
+
xpl-list --> xpl-icon
|
|
67
|
+
xpl-modal --> xpl-icon
|
|
68
|
+
xpl-pagination --> xpl-icon
|
|
69
|
+
xpl-select --> xpl-icon
|
|
70
|
+
xpl-slideout --> xpl-icon
|
|
71
|
+
xpl-table --> xpl-icon
|
|
72
|
+
xpl-table-header-cell --> xpl-icon
|
|
73
|
+
xpl-toast --> xpl-icon
|
|
74
|
+
xpl-utility-bar --> xpl-icon
|
|
75
|
+
style xpl-icon fill:#f9f,stroke:#333,stroke-width:4px
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
----------------------------------------------
|
|
79
|
+
|
|
80
|
+
*Built with [StencilJS](https://stenciljs.com/)*
|