@refinitiv-ui/elements 5.6.0 → 5.8.2-alpha.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/CHANGELOG.md +51 -0
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/autosuggest/custom-elements.json +24 -4
- package/lib/autosuggest/custom-elements.md +54 -0
- package/lib/autosuggest/index.d.ts +4 -0
- package/lib/autosuggest/index.js +4 -0
- package/lib/button/custom-elements.json +2 -2
- package/lib/button/custom-elements.md +23 -0
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/calendar/custom-elements.json +8 -6
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar/index.js +2 -0
- package/lib/canvas/custom-elements.json +7 -5
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +1 -0
- package/lib/canvas/index.js +1 -0
- package/lib/card/custom-elements.json +3 -1
- package/lib/card/custom-elements.md +24 -0
- package/lib/card/index.d.ts +2 -0
- package/lib/card/index.js +2 -0
- package/lib/chart/custom-elements.json +1 -1
- package/lib/chart/custom-elements.md +16 -0
- package/lib/checkbox/custom-elements.json +12 -8
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +3 -1
- package/lib/checkbox/index.js +2 -0
- package/lib/clock/custom-elements.json +8 -4
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +2 -0
- package/lib/clock/index.js +2 -0
- package/lib/clock/themes/halo/dark/index.js +1 -1
- package/lib/clock/themes/halo/light/index.js +1 -1
- package/lib/clock/themes/solar/charcoal/index.js +1 -1
- package/lib/clock/themes/solar/pearl/index.js +1 -1
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/color-dialog/custom-elements.json +29 -16
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/color-dialog/index.d.ts +8 -8
- package/lib/color-dialog/index.js +8 -8
- package/lib/combo-box/custom-elements.json +28 -16
- package/lib/combo-box/custom-elements.md +35 -0
- package/lib/combo-box/index.d.ts +10 -2
- package/lib/combo-box/index.js +10 -1
- package/lib/combo-box/themes/halo/dark/index.js +1 -1
- package/lib/combo-box/themes/halo/light/index.js +1 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +1 -1
- package/lib/combo-box/themes/solar/pearl/index.js +1 -1
- package/lib/counter/custom-elements.json +8 -4
- package/lib/counter/custom-elements.md +11 -0
- package/lib/counter/index.d.ts +2 -0
- package/lib/counter/index.js +2 -0
- package/lib/datetime-picker/custom-elements.json +52 -23
- package/lib/datetime-picker/custom-elements.md +57 -0
- package/lib/datetime-picker/index.d.ts +15 -4
- package/lib/datetime-picker/index.js +15 -4
- package/lib/dialog/custom-elements.json +34 -12
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/dialog/index.d.ts +7 -10
- package/lib/dialog/index.js +7 -10
- package/lib/email-field/custom-elements.json +81 -94
- package/lib/email-field/custom-elements.md +37 -0
- package/lib/email-field/index.d.ts +43 -115
- package/lib/email-field/index.js +44 -244
- package/lib/flag/custom-elements.md +10 -0
- package/lib/flag/index.d.ts +2 -0
- package/lib/flag/index.js +2 -0
- package/lib/header/custom-elements.md +18 -0
- package/lib/heatmap/custom-elements.md +26 -0
- package/lib/icon/custom-elements.md +8 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +2 -0
- package/lib/interactive-chart/custom-elements.json +6 -10
- package/lib/interactive-chart/custom-elements.md +31 -0
- package/lib/interactive-chart/index.d.ts +5 -2
- package/lib/interactive-chart/index.js +5 -2
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/index.d.ts +11 -2
- package/lib/item/index.js +25 -4
- package/lib/label/custom-elements.md +11 -0
- package/lib/layout/custom-elements.md +26 -0
- package/lib/led-gauge/custom-elements.json +4 -4
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/led-gauge/index.d.ts +1 -0
- package/lib/led-gauge/index.js +1 -0
- package/lib/list/custom-elements.json +18 -5
- package/lib/list/custom-elements.md +32 -0
- package/lib/list/helpers/list-renderer.js +2 -0
- package/lib/list/index.d.ts +19 -2
- package/lib/list/index.js +34 -1
- package/lib/loader/custom-elements.md +5 -0
- package/lib/multi-input/custom-elements.json +7 -6
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/multi-input/index.d.ts +4 -0
- package/lib/multi-input/index.js +4 -0
- package/lib/notification/custom-elements.md +26 -0
- package/lib/number-field/custom-elements.json +99 -54
- package/lib/number-field/custom-elements.md +42 -0
- package/lib/number-field/index.d.ts +92 -47
- package/lib/number-field/index.js +113 -80
- package/lib/overlay/custom-elements.json +26 -13
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay/elements/overlay.d.ts +5 -0
- package/lib/overlay-menu/custom-elements.json +70 -20
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/overlay-menu/index.d.ts +13 -11
- package/lib/overlay-menu/index.js +13 -11
- package/lib/pagination/custom-elements.md +27 -0
- package/lib/panel/custom-elements.md +11 -0
- package/lib/password-field/custom-elements.json +62 -67
- package/lib/password-field/custom-elements.md +39 -0
- package/lib/password-field/index.d.ts +42 -94
- package/lib/password-field/index.js +48 -194
- package/lib/pill/custom-elements.json +8 -6
- package/lib/pill/custom-elements.md +22 -0
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +1 -1
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/radio-button/custom-elements.json +8 -6
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +6 -5
- package/lib/radio-button/index.js +5 -4
- package/lib/rating/custom-elements.md +17 -0
- package/lib/search-field/custom-elements.json +70 -74
- package/lib/search-field/custom-elements.md +41 -0
- package/lib/search-field/index.d.ts +43 -100
- package/lib/search-field/index.js +46 -215
- package/lib/select/custom-elements.json +5 -4
- package/lib/select/custom-elements.md +24 -0
- package/lib/select/index.d.ts +11 -3
- package/lib/select/index.js +65 -26
- package/lib/sidebar-layout/custom-elements.json +2 -6
- package/lib/sidebar-layout/custom-elements.md +21 -0
- package/lib/sidebar-layout/index.d.ts +2 -1
- package/lib/slider/custom-elements.json +4 -4
- package/lib/slider/custom-elements.md +28 -0
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/sparkline/custom-elements.json +4 -4
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/sparkline/index.d.ts +3 -1
- package/lib/sparkline/index.js +2 -0
- package/lib/swing-gauge/custom-elements.json +5 -3
- package/lib/swing-gauge/custom-elements.md +17 -0
- package/lib/swing-gauge/index.d.ts +3 -1
- package/lib/swing-gauge/index.js +3 -1
- package/lib/tab/custom-elements.json +2 -2
- package/lib/tab/custom-elements.md +22 -0
- package/lib/tab-bar/custom-elements.md +11 -0
- package/lib/text-field/custom-elements.json +78 -89
- package/lib/text-field/custom-elements.md +35 -0
- package/lib/text-field/index.d.ts +50 -92
- package/lib/text-field/index.js +81 -230
- package/lib/time-picker/custom-elements.json +4 -4
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +3 -0
- package/lib/toggle/custom-elements.json +8 -6
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +2 -1
- package/lib/toggle/index.js +1 -0
- package/lib/tooltip/custom-elements.md +14 -0
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tree/custom-elements.json +4 -3
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree.d.ts +1 -0
- package/lib/tree/elements/tree.js +1 -0
- package/lib/tree/managers/tree-manager.d.ts +20 -2
- package/lib/tree/managers/tree-manager.js +55 -28
- package/lib/tree/themes/halo/dark/index.js +1 -1
- package/lib/tree/themes/halo/light/index.js +1 -1
- package/lib/tree/themes/solar/charcoal/index.js +1 -1
- package/lib/tree/themes/solar/pearl/index.js +1 -1
- package/lib/tree-select/custom-elements.json +10 -6
- package/lib/tree-select/custom-elements.md +26 -0
- package/lib/tree-select/index.d.ts +5 -3
- package/lib/tree-select/index.js +3 -2
- package/lib/tree-select/themes/halo/dark/index.js +1 -1
- package/lib/tree-select/themes/halo/light/index.js +1 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +1 -1
- package/lib/tree-select/themes/solar/pearl/index.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +293 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,57 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.8.2-alpha.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.8.1...@refinitiv-ui/elements@5.8.2-alpha.0) (2021-12-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @refinitiv-ui/elements
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [5.8.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.8.0...@refinitiv-ui/elements@5.8.1) (2021-12-07)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @refinitiv-ui/elements
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [5.8.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.7.0...@refinitiv-ui/elements@5.8.0) (2021-12-03)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* change default role to more generic type for better extendibility ([#100](https://github.com/Refinitiv/refinitiv-ui/issues/100)) ([fe999dc](https://github.com/Refinitiv/refinitiv-ui/commit/fe999dc66b5f42581a37329ced697ae6ac2dc929))
|
|
28
|
+
* **combo-box:** fix arrow icon not show in Solar when disabled ([55c1008](https://github.com/Refinitiv/refinitiv-ui/commit/55c1008b7b63f915a7575059c6539e63a757e389))
|
|
29
|
+
* **combo-box:** import counter instead of pill ([6410c03](https://github.com/Refinitiv/refinitiv-ui/commit/6410c03dd12077f25347dddb249b6a6700186abc))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **list:** improve screen reader ([0bc3a8c](https://github.com/Refinitiv/refinitiv-ui/commit/0bc3a8c9c4051200cd1a5c8ed655d1d3ebbd9021))
|
|
35
|
+
* **select:** improve screen reader support ([#80](https://github.com/Refinitiv/refinitiv-ui/issues/80)) ([a43fbcd](https://github.com/Refinitiv/refinitiv-ui/commit/a43fbcd4b23b2f508ddc94b8007913f66da1ae89))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [5.7.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.6.0...@refinitiv-ui/elements@5.7.0) (2021-11-22)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Bug Fixes
|
|
45
|
+
|
|
46
|
+
* **tree:** correctly update dependant checked states ([#82](https://github.com/Refinitiv/refinitiv-ui/issues/82)) ([fdb7018](https://github.com/Refinitiv/refinitiv-ui/commit/fdb7018f9446f933f428448ada60f4a8cacc1acf))
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Features
|
|
50
|
+
|
|
51
|
+
* **item:** improve screen reader support ([#74](https://github.com/Refinitiv/refinitiv-ui/issues/74)) ([b14b950](https://github.com/Refinitiv/refinitiv-ui/commit/b14b950897cb96cdc957e12d93b510cc4361c4f3))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
6
57
|
# [5.6.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@5.5.0...@refinitiv-ui/elements@5.6.0) (2021-11-08)
|
|
7
58
|
|
|
8
59
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ef-accordion
|
|
2
|
+
|
|
3
|
+
Used to display a group of `Collapse` control.
|
|
4
|
+
Only one item will be able to expand by default but you can customize its behavior.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|------------------------|--------------------------|-----------|---------|--------------------------------------------------|
|
|
10
|
+
| `autoCollapseDisabled` | `auto-collapse-disabled` | `boolean` | false | Allow multiple sections expand at the same time |
|
|
11
|
+
| `spacing` | `spacing` | `boolean` | false | Add spacing to content section in all collapse items |
|
|
12
|
+
|
|
13
|
+
## Slots
|
|
14
|
+
|
|
15
|
+
| Name | Description |
|
|
16
|
+
|----------------|--------------------------------------------------|
|
|
17
|
+
| `header-left` | Slot to add custom contents to the left side of header e.g. ef-icon, ef-checkbox |
|
|
18
|
+
| `header-right` | Slot to add custom contents to the right side of header e.g. ef-icon, ef-checkbox |
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ef-appstate-bar
|
|
2
|
+
|
|
3
|
+
Used to display at the top of application to provide a status or information.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-----------|-----------|---------------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `heading` | `heading` | `string` | "" | Text to display in heading section. |
|
|
10
|
+
| `state` | `state` | `"info" \| "highlight" \| null` | null | (optional) Type of state bar. Supported value are `info`, `highlight`. |
|
|
11
|
+
|
|
12
|
+
## Events
|
|
13
|
+
|
|
14
|
+
| Event | Description |
|
|
15
|
+
|---------|------------------------------------|
|
|
16
|
+
| `clear` | fired when clear button is clicked |
|
|
17
|
+
|
|
18
|
+
## Slots
|
|
19
|
+
|
|
20
|
+
| Name | Description |
|
|
21
|
+
|---------|-------------------------------------------|
|
|
22
|
+
| `right` | place custom content on the right of bar. |
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"name": "more-search-text",
|
|
27
27
|
"description": "Custom text for More Search",
|
|
28
28
|
"type": "string",
|
|
29
|
-
"default": "\"
|
|
29
|
+
"default": "\"More results for {0}\""
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "loading",
|
|
@@ -50,10 +50,20 @@
|
|
|
50
50
|
"name": "opened",
|
|
51
51
|
"description": "Auto suggest popup's open state",
|
|
52
52
|
"type": "boolean",
|
|
53
|
-
"default": "
|
|
53
|
+
"default": "false"
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
56
|
"properties": [
|
|
57
|
+
{
|
|
58
|
+
"name": "defaultDebounceRate (readonly)",
|
|
59
|
+
"type": "100",
|
|
60
|
+
"default": "100"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "defaultMoreSearchText (readonly)",
|
|
64
|
+
"type": "\"More results for {0}\"",
|
|
65
|
+
"default": "\"More results for {0}\""
|
|
66
|
+
},
|
|
57
67
|
{
|
|
58
68
|
"name": "attach",
|
|
59
69
|
"attribute": "attach",
|
|
@@ -79,7 +89,7 @@
|
|
|
79
89
|
"attribute": "more-search-text",
|
|
80
90
|
"description": "Custom text for More Search",
|
|
81
91
|
"type": "string",
|
|
82
|
-
"default": "\"
|
|
92
|
+
"default": "\"More results for {0}\""
|
|
83
93
|
},
|
|
84
94
|
{
|
|
85
95
|
"name": "loading",
|
|
@@ -130,7 +140,7 @@
|
|
|
130
140
|
"attribute": "opened",
|
|
131
141
|
"description": "Auto suggest popup's open state",
|
|
132
142
|
"type": "boolean",
|
|
133
|
-
"default": "
|
|
143
|
+
"default": "false"
|
|
134
144
|
}
|
|
135
145
|
],
|
|
136
146
|
"events": [
|
|
@@ -167,6 +177,16 @@
|
|
|
167
177
|
"description": "Fired when suggestions changed"
|
|
168
178
|
}
|
|
169
179
|
],
|
|
180
|
+
"slots": [
|
|
181
|
+
{
|
|
182
|
+
"name": "header",
|
|
183
|
+
"description": "Slot to add custom contents at the top of autosuggest popup"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "footer",
|
|
187
|
+
"description": "Slot to add custom contents at the bottom of autosuggest popup"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
170
190
|
"methods": [
|
|
171
191
|
{
|
|
172
192
|
"name": "onInputValueChange",
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# ef-autosuggest
|
|
2
|
+
|
|
3
|
+
Shows suggestions based on users' query.
|
|
4
|
+
It can be used by attaching to text form control
|
|
5
|
+
such as TextField, Multi Input, etc.
|
|
6
|
+
Autosuggest supports various use cases such as
|
|
7
|
+
custom rendering, pagination, asynchronous data request, etc.
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
| Property | Attribute | Type | Default | Description |
|
|
12
|
+
|------------------|--------------------|----------------------------------------------|------------------------|--------------------------------------------------|
|
|
13
|
+
| `attach` | `attach` | `AutosuggestTargetElement \| string \| null` | null | An HTML Element or CSS selector |
|
|
14
|
+
| `debounceRate` | `debounce-rate` | `number` | "100" | Debounce rate in ms of the filter as a number.<br />Used to throttle the filter rate so as not to trigger unneeded filtering |
|
|
15
|
+
| `highlightable` | | `AutosuggestHighlightable` | "itemHighlightable" | A function that is applied to every suggestion during the render process<br />to say whether the item can be highlighted and selected. Only items that return true are considered.<br />By default the function checks for `item` `highlightable` property. |
|
|
16
|
+
| `htmlRenderer` | `html-renderer` | `boolean` | false | If set to true, the render function is not called. Instead the wrapper element<br />should populate and destroy suggestion elements. Rendering items manually<br />may have performance benefits in frameworks that use virtual DOM (such as `Vue`, `React`, `hyperHTML` and others) |
|
|
17
|
+
| `loading` | `loading` | `boolean` | false | If set to true show loading mask |
|
|
18
|
+
| `moreResults` | `more-results` | `boolean` | false | If set to true display 'Has more results' item |
|
|
19
|
+
| `moreSearchText` | `more-search-text` | `string` | "More results for {0}" | Custom text for More Search |
|
|
20
|
+
| `opened` | `opened` | `boolean` | false | Auto suggest popup's open state |
|
|
21
|
+
| `query` | | `AutosuggestQuery \| null` | null | An object that represents a query from attach target |
|
|
22
|
+
| `renderer` | | `AutosuggestRenderer` | "itemRenderer" | A renderer applied to suggestion.<br />By default a render maps data to item attributes |
|
|
23
|
+
| `requestOnFocus` | `request-on-focus` | `boolean` | false | Request suggestions when attach target is focused |
|
|
24
|
+
| `suggestions` | | `AutosuggestItem[]` | [] | A list of suggestion items |
|
|
25
|
+
|
|
26
|
+
## Methods
|
|
27
|
+
|
|
28
|
+
| Method | Type | Description |
|
|
29
|
+
|----------------------|----------------------|--------------------------------------------------|
|
|
30
|
+
| `onInputBlur` | `(event: any): void` | Run when input has lost focus<br /><br />**event**: by default `blur` event is listened |
|
|
31
|
+
| `onInputFocus` | `(event: any): void` | Run when input received focus<br /><br />**event**: by default `focus` event is listened |
|
|
32
|
+
| `onInputKeyDown` | `(event: any): void` | Run when input key down event has happened<br /><br />**event**: by default `keydown` event is listened |
|
|
33
|
+
| `onInputValueChange` | `(event: any): void` | Run when attach target value changes.<br /><br />**event**: by default `value-changed` event is listened |
|
|
34
|
+
| `refit` | `(): void` | Set the width |
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
| Event | Description |
|
|
39
|
+
|-------------------------------|--------------------------------------------------|
|
|
40
|
+
| `add-attach-target-events` | Fired when attach has been set |
|
|
41
|
+
| `item-highlight` | Fired when an item gets highlighted or highlight is removed |
|
|
42
|
+
| `item-select` | Fired when an item gets selected |
|
|
43
|
+
| `remove-attach-target-events` | Fired when attach has been removed |
|
|
44
|
+
| `suggestions-changed` | Fired when suggestions changed |
|
|
45
|
+
| `suggestions-clear-requested` | Fired when auto suggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [] |
|
|
46
|
+
| `suggestions-fetch-requested` | Fired when auto suggest requests the data |
|
|
47
|
+
| `suggestions-query` | Fired when input value has changed and the query must be set |
|
|
48
|
+
|
|
49
|
+
## Slots
|
|
50
|
+
|
|
51
|
+
| Name | Description |
|
|
52
|
+
|----------|--------------------------------------------------|
|
|
53
|
+
| `footer` | Slot to add custom contents at the bottom of autosuggest popup |
|
|
54
|
+
| `header` | Slot to add custom contents at the top of autosuggest popup |
|
|
@@ -24,6 +24,9 @@ export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateE
|
|
|
24
24
|
*
|
|
25
25
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
26
26
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
|
27
|
+
*
|
|
28
|
+
* @slot header - Slot to add custom contents at the top of autosuggest popup
|
|
29
|
+
* @slot footer - Slot to add custom contents at the bottom of autosuggest popup
|
|
27
30
|
*/
|
|
28
31
|
export declare class Autosuggest extends Overlay {
|
|
29
32
|
/**
|
|
@@ -83,6 +86,7 @@ export declare class Autosuggest extends Overlay {
|
|
|
83
86
|
moreResults: boolean;
|
|
84
87
|
/**
|
|
85
88
|
* Custom text for More Search
|
|
89
|
+
* @default More results for {0}
|
|
86
90
|
*/
|
|
87
91
|
moreSearchText: string;
|
|
88
92
|
/**
|
package/lib/autosuggest/index.js
CHANGED
|
@@ -31,6 +31,9 @@ export { queryWordSelect, itemRenderer, escapeRegExp, itemHighlightable, updateE
|
|
|
31
31
|
*
|
|
32
32
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
33
33
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
|
34
|
+
*
|
|
35
|
+
* @slot header - Slot to add custom contents at the top of autosuggest popup
|
|
36
|
+
* @slot footer - Slot to add custom contents at the bottom of autosuggest popup
|
|
34
37
|
*/
|
|
35
38
|
let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
36
39
|
/**
|
|
@@ -53,6 +56,7 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
|
53
56
|
this.moreResults = false;
|
|
54
57
|
/**
|
|
55
58
|
* Custom text for More Search
|
|
59
|
+
* @default More results for {0}
|
|
56
60
|
*/
|
|
57
61
|
this.moreSearchText = Autosuggest_1.defaultMoreSearchText;
|
|
58
62
|
/**
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"name": "disabled",
|
|
50
50
|
"description": "Set state to disabled",
|
|
51
51
|
"type": "boolean",
|
|
52
|
-
"default": "
|
|
52
|
+
"default": "false"
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
55
|
"properties": [
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"attribute": "disabled",
|
|
106
106
|
"description": "Set state to disabled",
|
|
107
107
|
"type": "boolean",
|
|
108
|
-
"default": "
|
|
108
|
+
"default": "false"
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
111
|
"events": [
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ef-button
|
|
2
|
+
|
|
3
|
+
Use button for actions in forms, dialogs,
|
|
4
|
+
and more with support for different states and styles.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|---------------|---------------|-----------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `active` | `active` | `boolean` | false | An active or inactive state, can only be used with toggles property/attribute |
|
|
11
|
+
| `cta` | `cta` | `boolean` | false | Set state to call-to-action |
|
|
12
|
+
| `disabled` | `disabled` | `boolean` | false | Set state to disabled |
|
|
13
|
+
| `hoverIcon` | `hover-icon` | `string \| null` | null | Specify icon to display when hovering. Value can be icon name |
|
|
14
|
+
| `icon` | `icon` | `string \| null` | null | Specify icon to display in button. Value can be icon name |
|
|
15
|
+
| `textpos` | `textpos` | `"before" \| "after"` | "after" | Customises text alignment when specified alongside `icon` property<br />Value can be `before` or `after` |
|
|
16
|
+
| `toggles` | `toggles` | `boolean` | false | Enable or disable ability to be toggled |
|
|
17
|
+
| `transparent` | `transparent` | `boolean` | false | Removes background when specified alongside `icon` property |
|
|
18
|
+
|
|
19
|
+
## Events
|
|
20
|
+
|
|
21
|
+
| Event | Description |
|
|
22
|
+
|------------------|--------------------------------------------------|
|
|
23
|
+
| `active-changed` | Dispatched on changing `active` property state by taping on button when property `toggles` is true. |
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# ef-button-bar
|
|
2
|
+
|
|
3
|
+
Used to display multiple buttons to create a list of commands bar.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-----------|-----------|-----------|---------|--------------------------------------------------|
|
|
9
|
+
| `managed` | `managed` | `boolean` | false | Manages user interaction, only allowing one toggle button to be active at any one time. |
|
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
{
|
|
62
62
|
"name": "values",
|
|
63
63
|
"description": "Set multiple selected values",
|
|
64
|
-
"type": "string[]"
|
|
64
|
+
"type": "string[]",
|
|
65
|
+
"default": "[]"
|
|
65
66
|
},
|
|
66
67
|
{
|
|
67
68
|
"name": "fill-cells",
|
|
@@ -73,13 +74,13 @@
|
|
|
73
74
|
"name": "readonly",
|
|
74
75
|
"description": "Set readonly state",
|
|
75
76
|
"type": "boolean",
|
|
76
|
-
"default": "
|
|
77
|
+
"default": "false"
|
|
77
78
|
},
|
|
78
79
|
{
|
|
79
80
|
"name": "disabled",
|
|
80
81
|
"description": "Set disabled state",
|
|
81
82
|
"type": "boolean",
|
|
82
|
-
"default": "
|
|
83
|
+
"default": "false"
|
|
83
84
|
}
|
|
84
85
|
],
|
|
85
86
|
"properties": [
|
|
@@ -154,7 +155,8 @@
|
|
|
154
155
|
"name": "values",
|
|
155
156
|
"attribute": "values",
|
|
156
157
|
"description": "Set multiple selected values",
|
|
157
|
-
"type": "string[]"
|
|
158
|
+
"type": "string[]",
|
|
159
|
+
"default": "[]"
|
|
158
160
|
},
|
|
159
161
|
{
|
|
160
162
|
"name": "fillCells",
|
|
@@ -168,14 +170,14 @@
|
|
|
168
170
|
"attribute": "readonly",
|
|
169
171
|
"description": "Set readonly state",
|
|
170
172
|
"type": "boolean",
|
|
171
|
-
"default": "
|
|
173
|
+
"default": "false"
|
|
172
174
|
},
|
|
173
175
|
{
|
|
174
176
|
"name": "disabled",
|
|
175
177
|
"attribute": "disabled",
|
|
176
178
|
"description": "Set disabled state",
|
|
177
179
|
"type": "boolean",
|
|
178
|
-
"default": "
|
|
180
|
+
"default": "false"
|
|
179
181
|
}
|
|
180
182
|
],
|
|
181
183
|
"events": [
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ef-calendar
|
|
2
|
+
|
|
3
|
+
Standard calendar element
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|------------------|---------------------|--------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
10
|
+
| `fillCells` | `fill-cells` | `boolean` | false | Fill head and tail cell dates |
|
|
11
|
+
| `filter` | | `CalendarFilter \| null` | null | Custom filter, used for enabling/disabling certain dates |
|
|
12
|
+
| `firstDayOfWeek` | `first-day-of-week` | `number \| null` | null | Set the first day of the week.<br />0 - for Sunday, 6 - for Saturday |
|
|
13
|
+
| `max` | `max` | `string` | "" | Set maximum date |
|
|
14
|
+
| `min` | `min` | `string` | "" | Set minimum date |
|
|
15
|
+
| `multiple` | `multiple` | `boolean` | false | Set to switch to multiple select mode |
|
|
16
|
+
| `range` | `range` | `boolean` | false | Set to switch to range select mode |
|
|
17
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
18
|
+
| `value` | `value` | `string` | "" | Current date time value |
|
|
19
|
+
| `values` | `values` | `string[]` | [] | Set multiple selected values |
|
|
20
|
+
| `view` | `view` | `string` | "" | Current calendar view date |
|
|
21
|
+
| `weekdaysOnly` | `weekdays-only` | `boolean` | false | Only enable weekdays |
|
|
22
|
+
| `weekendsOnly` | `weekends-only` | `boolean` | false | Only enable weekends |
|
|
23
|
+
|
|
24
|
+
## Events
|
|
25
|
+
|
|
26
|
+
| Event | Description |
|
|
27
|
+
|-----------------|---------------------------------|
|
|
28
|
+
| `value-changed` | Fired when the `value` changes. |
|
|
29
|
+
| `view-changed` | Fired when the `view` changes. |
|
|
30
|
+
|
|
31
|
+
## Slots
|
|
32
|
+
|
|
33
|
+
| Name | Description |
|
|
34
|
+
|----------|--------------------------------------------------|
|
|
35
|
+
| `footer` | Adds slotted content into the footer of the calendar control |
|
package/lib/calendar/index.d.ts
CHANGED
|
@@ -78,6 +78,7 @@ export declare class Calendar extends ControlElement implements MultiValue {
|
|
|
78
78
|
* 0 - for Sunday, 6 - for Saturday
|
|
79
79
|
* @param firstDayOfWeek The first day of the week
|
|
80
80
|
* @type {number | null}
|
|
81
|
+
* @default null
|
|
81
82
|
*/
|
|
82
83
|
set firstDayOfWeek(firstDayOfWeek: number);
|
|
83
84
|
get firstDayOfWeek(): number;
|
|
@@ -101,6 +102,7 @@ export declare class Calendar extends ControlElement implements MultiValue {
|
|
|
101
102
|
* Set multiple selected values
|
|
102
103
|
* @param values Values to set
|
|
103
104
|
* @type {string[]}
|
|
105
|
+
* @default []
|
|
104
106
|
*/
|
|
105
107
|
set values(values: string[]);
|
|
106
108
|
get values(): string[];
|
package/lib/calendar/index.js
CHANGED
|
@@ -199,6 +199,7 @@ let Calendar = class Calendar extends ControlElement {
|
|
|
199
199
|
* 0 - for Sunday, 6 - for Saturday
|
|
200
200
|
* @param firstDayOfWeek The first day of the week
|
|
201
201
|
* @type {number | null}
|
|
202
|
+
* @default null
|
|
202
203
|
*/
|
|
203
204
|
set firstDayOfWeek(firstDayOfWeek) {
|
|
204
205
|
firstDayOfWeek %= 7;
|
|
@@ -226,6 +227,7 @@ let Calendar = class Calendar extends ControlElement {
|
|
|
226
227
|
* Set multiple selected values
|
|
227
228
|
* @param values Values to set
|
|
228
229
|
* @type {string[]}
|
|
230
|
+
* @default []
|
|
229
231
|
*/
|
|
230
232
|
set values(values) {
|
|
231
233
|
const oldValues = this._values;
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
{
|
|
9
9
|
"name": "autoloop",
|
|
10
10
|
"description": "Starts an automatic animation loop.\nEnabling the frame event.",
|
|
11
|
-
"type": "boolean"
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": "false"
|
|
12
13
|
}
|
|
13
14
|
],
|
|
14
15
|
"properties": [
|
|
@@ -16,20 +17,21 @@
|
|
|
16
17
|
"name": "autoloop",
|
|
17
18
|
"attribute": "autoloop",
|
|
18
19
|
"description": "Starts an automatic animation loop.\nEnabling the frame event.",
|
|
19
|
-
"type": "boolean"
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": "false"
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
|
-
"name": "canvas",
|
|
24
|
+
"name": "canvas (readonly)",
|
|
23
25
|
"description": "Html canvas element",
|
|
24
26
|
"type": "HTMLCanvasElement"
|
|
25
27
|
},
|
|
26
28
|
{
|
|
27
|
-
"name": "ctx",
|
|
29
|
+
"name": "ctx (readonly)",
|
|
28
30
|
"description": "Alias of context",
|
|
29
31
|
"type": "CanvasRenderingContext2D | null"
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
|
-
"name": "context",
|
|
34
|
+
"name": "context (readonly)",
|
|
33
35
|
"description": "The 2 dimensional context of the canvas, used for drawing",
|
|
34
36
|
"type": "CanvasRenderingContext2D | null"
|
|
35
37
|
},
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ef-canvas
|
|
2
|
+
|
|
3
|
+
A Component uses to draw graphics on a web page,
|
|
4
|
+
it works similarly to the normal HTML5 Canvas element.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|----------------------|------------|------------------------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `autoloop` | `autoloop` | `boolean` | false | Starts an automatic animation loop.<br />Enabling the frame event. |
|
|
11
|
+
| `canvas (readonly)` | | `HTMLCanvasElement` | | Html canvas element |
|
|
12
|
+
| `context (readonly)` | | `CanvasRenderingContext2D \| null` | | The 2 dimensional context of the canvas, used for drawing |
|
|
13
|
+
| `ctx (readonly)` | | `CanvasRenderingContext2D \| null` | | Alias of context |
|
|
14
|
+
| `height` | | `number` | 0 | Height of canvas |
|
|
15
|
+
| `width` | | `number` | 0 | Width of canvas |
|
|
16
|
+
|
|
17
|
+
## Methods
|
|
18
|
+
|
|
19
|
+
| Method | Type | Description |
|
|
20
|
+
|--------------|--------------------------|--------------------------------------------------|
|
|
21
|
+
| `getContext` | `(mode: string): string` | Return context of canvas,<br />support only 2D mode<br /><br />**mode**: mode of canvas's context |
|
|
22
|
+
|
|
23
|
+
## Events
|
|
24
|
+
|
|
25
|
+
| Event | Description |
|
|
26
|
+
|---------|--------------------------------------------------|
|
|
27
|
+
| `frame` | dispatched when next Frame event occurs when autoloop is set to true |
|
package/lib/canvas/index.d.ts
CHANGED
package/lib/canvas/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ef-card
|
|
2
|
+
|
|
3
|
+
A card frame component.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|----------|-----------|--------------|---------|-------------------------|
|
|
9
|
+
| `config` | | `CardConfig` | {} | Set card configurations |
|
|
10
|
+
| `footer` | `footer` | `string` | "" | Set text on the footer |
|
|
11
|
+
| `header` | `header` | `string` | "" | Set text on the header |
|
|
12
|
+
|
|
13
|
+
## Events
|
|
14
|
+
|
|
15
|
+
| Event | Description |
|
|
16
|
+
|----------------|-----------------------------------|
|
|
17
|
+
| `item-trigger` | Fired when card menu is selected. |
|
|
18
|
+
|
|
19
|
+
## Slots
|
|
20
|
+
|
|
21
|
+
| Name | Description |
|
|
22
|
+
|----------|--------------------------------------------------|
|
|
23
|
+
| `footer` | Adds slotted content into the footer of the card. |
|
|
24
|
+
| `header` | Adds slotted content into the header of the card. |
|
package/lib/card/index.d.ts
CHANGED
package/lib/card/index.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# ef-chart
|
|
2
|
+
|
|
3
|
+
Charting component that use ChartJS library
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|---------------------|-----------|---------------|---------|--------------------------------------------------|
|
|
9
|
+
| `colors (readonly)` | | `string[]` | | List of available chart colors |
|
|
10
|
+
| `config` | `config` | `ChartConfig` | null | Chart configurations. Same configuration as ChartJS |
|
|
11
|
+
|
|
12
|
+
## Methods
|
|
13
|
+
|
|
14
|
+
| Method | Type | Description |
|
|
15
|
+
|---------------|--------------------------------------|--------------------------------------------------|
|
|
16
|
+
| `updateChart` | `(config?: ChartUpdateProps=): void` | Update all data, title, scales, legends and re-render the chart based on its config<br /><br />**config**: Additional configuration for control an animation in the update process. |
|