@refinitiv-ui/elements 5.6.0 → 5.7.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 +16 -0
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/autosuggest/custom-elements.json +12 -2
- package/lib/autosuggest/custom-elements.md +47 -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 +4 -4
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/card/custom-elements.md +24 -0
- package/lib/chart/custom-elements.md +16 -0
- package/lib/checkbox/custom-elements.json +4 -4
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/clock/custom-elements.md +28 -0
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/color-dialog/custom-elements.json +8 -8
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/combo-box/custom-elements.json +9 -6
- package/lib/combo-box/custom-elements.md +35 -0
- package/lib/counter/custom-elements.md +11 -0
- package/lib/datetime-picker/custom-elements.json +4 -4
- package/lib/datetime-picker/custom-elements.md +49 -0
- package/lib/dialog/custom-elements.json +4 -4
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/email-field/custom-elements.json +6 -6
- package/lib/email-field/custom-elements.md +35 -0
- package/lib/flag/custom-elements.md +10 -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/interactive-chart/custom-elements.md +32 -0
- package/lib/item/custom-elements.json +6 -8
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/index.d.ts +9 -1
- package/lib/item/index.js +23 -3
- package/lib/label/custom-elements.md +11 -0
- package/lib/layout/custom-elements.md +26 -0
- package/lib/led-gauge/custom-elements.md +17 -0
- package/lib/list/custom-elements.md +30 -0
- package/lib/loader/custom-elements.md +5 -0
- package/lib/multi-input/custom-elements.json +4 -4
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/notification/custom-elements.md +26 -0
- package/lib/number-field/custom-elements.json +6 -6
- package/lib/number-field/custom-elements.md +37 -0
- package/lib/overlay/custom-elements.json +3 -0
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay-menu/custom-elements.json +10 -12
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/pagination/custom-elements.md +27 -0
- package/lib/panel/custom-elements.md +11 -0
- package/lib/password-field/custom-elements.json +6 -6
- package/lib/password-field/custom-elements.md +31 -0
- package/lib/pill/custom-elements.json +4 -4
- package/lib/pill/custom-elements.md +22 -0
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/radio-button/custom-elements.json +8 -8
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/rating/custom-elements.md +17 -0
- package/lib/search-field/custom-elements.json +6 -6
- package/lib/search-field/custom-elements.md +33 -0
- package/lib/select/custom-elements.json +2 -2
- package/lib/select/custom-elements.md +24 -0
- package/lib/sidebar-layout/custom-elements.md +22 -0
- package/lib/slider/custom-elements.json +6 -6
- package/lib/slider/custom-elements.md +28 -0
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/swing-gauge/custom-elements.md +17 -0
- 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 +6 -6
- package/lib/text-field/custom-elements.md +37 -0
- package/lib/time-picker/custom-elements.json +4 -4
- package/lib/time-picker/custom-elements.md +28 -0
- package/lib/toggle/custom-elements.json +4 -4
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/tooltip/custom-elements.md +14 -0
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tree/custom-elements.json +2 -2
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/managers/tree-manager.d.ts +20 -2
- package/lib/tree/managers/tree-manager.js +55 -28
- package/lib/tree-select/custom-elements.json +2 -2
- package/lib/tree-select/custom-elements.md +26 -0
- package/lib/version.js +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ef-combo-box
|
|
2
|
+
|
|
3
|
+
Combines a popup with a filterable selection list
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
8
|
+
|---------------------|-----------------------|-----------|-----------------------------|------------------------------|--------------------------------------------------|
|
|
9
|
+
| `clears` | `clears` | | `boolean` | false | Show clears button |
|
|
10
|
+
| `data` | | | `ComboBoxData<T>` | | Data array to be displayed |
|
|
11
|
+
| `disabled` | `disabled` | | `boolean` | false | Set disabled state |
|
|
12
|
+
| `error` | `error` | | `boolean` | false | Set state to error |
|
|
13
|
+
| `filter` | | | `ComboBoxFilter<T> \| null` | "defaultFilter<T>(this)" | Custom filter for static data<br />Set this to null when data is filtered externally, eg XHR |
|
|
14
|
+
| `freeText` | `free-text` | | `boolean` | | Allow to enter any value |
|
|
15
|
+
| `label` | | readonly | `string` | | Label of selected value |
|
|
16
|
+
| `multiple` | `multiple` | | `boolean` | | Multiple selection mode |
|
|
17
|
+
| `name` | `name` | | `string` | "" | Set name of the element |
|
|
18
|
+
| `opened` | `opened` | | `boolean` | false | Track opened state of popup |
|
|
19
|
+
| `placeholder` | `placeholder` | | `string` | "" | Placeholder for input field |
|
|
20
|
+
| `query` | | | `string \| null` | | Query string applied to combo-box<br />Set via internal text-field input |
|
|
21
|
+
| `queryDebounceRate` | `query-debounce-rate` | | `number` | | Control query rate, defaults to 0 |
|
|
22
|
+
| `readonly` | `readonly` | | `boolean` | false | Set readonly state |
|
|
23
|
+
| `renderer` | | | `ComboBoxRenderer` | "new ComboBoxRenderer(this)" | Renderer used to render list item elements |
|
|
24
|
+
| `value` | `value` | | `string` | | Returns the first selected item value.<br />Use `values` when multiple selection mode is enabled. |
|
|
25
|
+
| `values` | | | `string[]` | | Returns a values collection of the currently<br />selected item values |
|
|
26
|
+
| `warning` | `warning` | | `boolean` | false | Set state to warning |
|
|
27
|
+
|
|
28
|
+
## Events
|
|
29
|
+
|
|
30
|
+
| Event | Description |
|
|
31
|
+
|----------------------|--------------------------------------|
|
|
32
|
+
| `animationiteration` | |
|
|
33
|
+
| `opened-changed` | Dispatched when opened state changes |
|
|
34
|
+
| `query-changed` | Dispatched when query changes |
|
|
35
|
+
| `value-changed` | Dispatched when value changes |
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ef-counter
|
|
2
|
+
|
|
3
|
+
Counter is an item count badge,
|
|
4
|
+
support maximun display number and notation of large numbers.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Description |
|
|
9
|
+
|----------|-----------|----------|--------------------------------------------------|
|
|
10
|
+
| `max` | `max` | `string` | Set maximum counter value.<br />This value will be displayed with suffix `+` if count value is larger than max. |
|
|
11
|
+
| `value` | `value` | `string` | The value of counter as string number |
|
|
@@ -126,13 +126,13 @@
|
|
|
126
126
|
"name": "readonly",
|
|
127
127
|
"description": "Set readonly state",
|
|
128
128
|
"type": "boolean",
|
|
129
|
-
"default": "
|
|
129
|
+
"default": "false"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"name": "disabled",
|
|
133
133
|
"description": "Set disabled state",
|
|
134
134
|
"type": "boolean",
|
|
135
|
-
"default": "
|
|
135
|
+
"default": "false"
|
|
136
136
|
}
|
|
137
137
|
],
|
|
138
138
|
"properties": [
|
|
@@ -293,14 +293,14 @@
|
|
|
293
293
|
"attribute": "readonly",
|
|
294
294
|
"description": "Set readonly state",
|
|
295
295
|
"type": "boolean",
|
|
296
|
-
"default": "
|
|
296
|
+
"default": "false"
|
|
297
297
|
},
|
|
298
298
|
{
|
|
299
299
|
"name": "disabled",
|
|
300
300
|
"attribute": "disabled",
|
|
301
301
|
"description": "Set disabled state",
|
|
302
302
|
"type": "boolean",
|
|
303
|
-
"default": "
|
|
303
|
+
"default": "false"
|
|
304
304
|
}
|
|
305
305
|
],
|
|
306
306
|
"events": [
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# ef-datetime-picker
|
|
2
|
+
|
|
3
|
+
Control to pick date and time
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
8
|
+
|------------------------|--------------------------|-----------|----------------------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `amPm` | `am-pm` | | `boolean` | false | Toggles 12hr time display |
|
|
10
|
+
| `disabled` | `disabled` | | `boolean` | false | Set disabled state |
|
|
11
|
+
| `duplex` | `duplex` | | `"" \| "consecutive" \| "split"` | null | Display two calendar pickers. |
|
|
12
|
+
| `error` | `error` | | `boolean` | false | Set state to error |
|
|
13
|
+
| `filter` | | | `DatetimePickerFilter \| null` | null | Custom filter, used for enabling/disabling certain dates |
|
|
14
|
+
| `firstDayOfWeek` | `first-day-of-week` | | `number \| undefined` | | Set the first day of the week.<br />0 - for Sunday, 6 - for Saturday |
|
|
15
|
+
| `format` | `format` | | `string` | | Set the datetime format<br />Based on dane-fns datetime formats |
|
|
16
|
+
| `inputDisabled` | `input-disabled` | | `boolean` | false | Disable input part of the picker |
|
|
17
|
+
| `inputTriggerDisabled` | `input-trigger-disabled` | | `boolean` | false | Only open picker panel when calendar icon is clicked.<br />Clicking on the input will no longer open the picker. |
|
|
18
|
+
| `max` | `max` | | `string` | | Set maximum date |
|
|
19
|
+
| `min` | `min` | | `string` | | Set minimum date |
|
|
20
|
+
| `multiple` | | readonly | `boolean` | | |
|
|
21
|
+
| `opened` | `opened` | | `boolean` | false | Toggles the opened state of the list |
|
|
22
|
+
| `placeholder` | `placeholder` | | `string` | | Placeholder to display when no value is set |
|
|
23
|
+
| `popupDisabled` | `popup-disabled` | | `boolean` | false | Disable the popup |
|
|
24
|
+
| `range` | `range` | | `boolean` | false | Set to switch to range select mode |
|
|
25
|
+
| `readonly` | `readonly` | | `boolean` | false | Set readonly state |
|
|
26
|
+
| `showSeconds` | `show-seconds` | | `boolean` | false | Flag to show seconds time segment in display.<br />Seconds are automatically shown when `hh:mm:ss` time format is provided as a value. |
|
|
27
|
+
| `timepicker` | `timepicker` | | `boolean` | false | Toggle to display the time picker |
|
|
28
|
+
| `value` | `value` | | `string` | | Current date time value |
|
|
29
|
+
| `values` | `values` | | `string[]` | | Set multiple selected values |
|
|
30
|
+
| `view` | `view` | | `string` | | Set the current calendar view.<br />Accepted format: 'yyyy-MM' |
|
|
31
|
+
| `views` | | | `string[]` | | Set the current calendar views for duplex mode<br />Accepted format: 'yyyy-MM' |
|
|
32
|
+
| `warning` | `warning` | | `boolean` | false | Set state to warning |
|
|
33
|
+
| `weekdaysOnly` | `weekdays-only` | | `boolean` | false | Only enable weekdays |
|
|
34
|
+
| `weekendsOnly` | `weekends-only` | | `boolean` | false | Only enable weekends |
|
|
35
|
+
|
|
36
|
+
## Methods
|
|
37
|
+
|
|
38
|
+
| Method | Type | Description |
|
|
39
|
+
|-----------------|------------|--------------------------------------------------|
|
|
40
|
+
| `validateInput` | `(): void` | Validates the input, marking the element as invalid if its value does not meet the validation criteria. |
|
|
41
|
+
|
|
42
|
+
## Events
|
|
43
|
+
|
|
44
|
+
| Event | Description |
|
|
45
|
+
|------------------|--------------------------------------------------|
|
|
46
|
+
| `error-changed` | Dispatched when error state changes |
|
|
47
|
+
| `opened-changed` | Dispatched when when opened attribute changes internally |
|
|
48
|
+
| `value-changed` | Dispatched when value changes |
|
|
49
|
+
| `view-changed` | Dispatched when internal view changes |
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"name": "opened",
|
|
21
21
|
"description": "Set dialog to open",
|
|
22
22
|
"type": "boolean",
|
|
23
|
-
"default": "
|
|
23
|
+
"default": "false"
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"name": "x",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"name": "no-cancel-on-esc-key",
|
|
37
37
|
"description": "Prevents dialog to close when user presses ESC key",
|
|
38
38
|
"type": "boolean",
|
|
39
|
-
"default": "
|
|
39
|
+
"default": "false"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "full-screen",
|
|
@@ -73,13 +73,13 @@
|
|
|
73
73
|
"attribute": "opened",
|
|
74
74
|
"description": "Set dialog to open",
|
|
75
75
|
"type": "boolean",
|
|
76
|
-
"default": "
|
|
76
|
+
"default": "false"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"name": "noCancelOnEscKey",
|
|
80
80
|
"description": "Prevents dialog to close when user presses ESC key",
|
|
81
81
|
"type": "boolean",
|
|
82
|
-
"default": "
|
|
82
|
+
"default": "false"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"name": "x",
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# ef-dialog
|
|
2
|
+
|
|
3
|
+
Popup window, designed to contain and show any HTML content.
|
|
4
|
+
It provides modal and dragging functionality,
|
|
5
|
+
and also allows custom footers and control buttons to be used.
|
|
6
|
+
|
|
7
|
+
## Attributes
|
|
8
|
+
|
|
9
|
+
| Attribute | Type | Default | Description |
|
|
10
|
+
|------------------------|-----------|---------|--------------------------------------------------|
|
|
11
|
+
| `full-screen` | `boolean` | | Set dialog to full screen |
|
|
12
|
+
| `no-cancel-on-esc-key` | `boolean` | false | Prevents dialog to close when user presses ESC key |
|
|
13
|
+
| `position-target` | `string` | | Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`. |
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Attribute | Type | Default | Description |
|
|
18
|
+
|--------------------------|-------------|------------------|---------|--------------------------------------------------|
|
|
19
|
+
| `draggable` | `draggable` | `boolean` | false | Should the dialog be draggable |
|
|
20
|
+
| `fullScreen` | | `boolean` | | Set dialog to full screen |
|
|
21
|
+
| `header` | `header` | `string \| null` | null | Set Header/Title of the dialog |
|
|
22
|
+
| `noCancelOnEscKey` | | `boolean` | false | Prevents dialog to close when user presses ESC key |
|
|
23
|
+
| `noCancelOnOutsideClick` | | `boolean` | | Prevents dialog to close when user clicks outside the dialog. |
|
|
24
|
+
| `opened` | `opened` | `boolean` | false | Set dialog to open |
|
|
25
|
+
| `positionTarget` | | `string` | | Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`. |
|
|
26
|
+
| `x` | `x` | `string` | | Set a specific x coordinate of dialog |
|
|
27
|
+
| `y` | `y` | `string` | | Set a specific y coordinate of dialog |
|
|
28
|
+
|
|
29
|
+
## Methods
|
|
30
|
+
|
|
31
|
+
| Method | Type | Description |
|
|
32
|
+
|---------|------------|--------------------------------------------------|
|
|
33
|
+
| `refit` | `(): void` | Clear all cached values and fit the popup.<br />Use this function only if maxWidth, maxHeight, minWidth, minHeight, height, width are changed |
|
|
34
|
+
|
|
35
|
+
## Events
|
|
36
|
+
|
|
37
|
+
| Event | Description |
|
|
38
|
+
|------------------|--------------------------------------------------|
|
|
39
|
+
| `cancel` | Fired when dialog is closed by user clicked a default Cancel button, clicked outside to close dialog or press ESC to close the dialog. Prevent default to stop default action |
|
|
40
|
+
| `confirm` | Fired when dialog is closed by user clicked a default OK button. Prevent default to stop default action |
|
|
41
|
+
| `opened-changed` | Fired when value of `opened` property is changed. Prevent default to stop default action |
|
|
42
|
+
|
|
43
|
+
## Slots
|
|
44
|
+
|
|
45
|
+
| Name | Description |
|
|
46
|
+
|----------|--------------------------------------------------|
|
|
47
|
+
| `footer` | Hide default OK and Cancel button and replace dialog's footer with your custom content. |
|
|
@@ -67,19 +67,19 @@
|
|
|
67
67
|
"name": "value",
|
|
68
68
|
"description": "Input's value",
|
|
69
69
|
"type": "string",
|
|
70
|
-
"default": "
|
|
70
|
+
"default": "0"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "readonly",
|
|
74
74
|
"description": "Set readonly state",
|
|
75
75
|
"type": "boolean",
|
|
76
|
-
"default": "
|
|
76
|
+
"default": "false"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"name": "disabled",
|
|
80
80
|
"description": "Set disabled state",
|
|
81
81
|
"type": "boolean",
|
|
82
|
-
"default": "
|
|
82
|
+
"default": "false"
|
|
83
83
|
}
|
|
84
84
|
],
|
|
85
85
|
"properties": [
|
|
@@ -156,21 +156,21 @@
|
|
|
156
156
|
"attribute": "value",
|
|
157
157
|
"description": "Input's value",
|
|
158
158
|
"type": "string",
|
|
159
|
-
"default": "
|
|
159
|
+
"default": "0"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "readonly",
|
|
163
163
|
"attribute": "readonly",
|
|
164
164
|
"description": "Set readonly state",
|
|
165
165
|
"type": "boolean",
|
|
166
|
-
"default": "
|
|
166
|
+
"default": "false"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"name": "disabled",
|
|
170
170
|
"attribute": "disabled",
|
|
171
171
|
"description": "Set disabled state",
|
|
172
172
|
"type": "boolean",
|
|
173
|
-
"default": "
|
|
173
|
+
"default": "false"
|
|
174
174
|
}
|
|
175
175
|
],
|
|
176
176
|
"events": [
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ef-email-field
|
|
2
|
+
|
|
3
|
+
A form control element for email
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-----------------|-------------------|------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
10
|
+
| `error` | `error` | `boolean` | false | Set state to error |
|
|
11
|
+
| `icon` | `icon` | `string` | "" | Specify icon to display in input. Value can be icon name |
|
|
12
|
+
| `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
|
|
13
|
+
| `maxLength` | `maxlength` | `number \| null` | null | Set character max limit |
|
|
14
|
+
| `minLength` | `minlength` | `number \| null` | null | Set character min limit |
|
|
15
|
+
| `multiple` | `multiple` | `boolean` | false | Set to multiple mode, allows multiple emails in a single input |
|
|
16
|
+
| `pattern` | `pattern` | `string` | "" | Set regular expression for input validation |
|
|
17
|
+
| `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
|
|
18
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
19
|
+
| `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles.<br />Use with advanced composite elements requiring e.g. multi selection in<br />combo-box when parent container handles element states. |
|
|
20
|
+
| `value` | `value` | `string` | 0 | Input's value |
|
|
21
|
+
| `warning` | `warning` | `boolean` | false | Set state to warning |
|
|
22
|
+
|
|
23
|
+
## Methods
|
|
24
|
+
|
|
25
|
+
| Method | Type | Description |
|
|
26
|
+
|----------|------------|------------------------------|
|
|
27
|
+
| `select` | `(): void` | Select the contents of input |
|
|
28
|
+
|
|
29
|
+
## Events
|
|
30
|
+
|
|
31
|
+
| Event | Description |
|
|
32
|
+
|-----------------|--------------------------------------------------|
|
|
33
|
+
| `error-changed` | Dispatched when error state changes |
|
|
34
|
+
| `icon-click` | Dispatched only when element has icon-has-action attribute and icon is clicked |
|
|
35
|
+
| `value-changed` | Dispatched when value changes |
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ef-flag
|
|
2
|
+
|
|
3
|
+
Provides a collection of flags.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Description |
|
|
8
|
+
|----------|-----------|------------------|---------------------------------|
|
|
9
|
+
| `flag` | `flag` | `string \| null` | Name of a known flag to render. |
|
|
10
|
+
| `src` | `src` | `string \| null` | Src location of an svg flag. |
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ef-header
|
|
2
|
+
|
|
3
|
+
Use to identify and separate different sections of a page.
|
|
4
|
+
Headers helps to organize the page layout content into
|
|
5
|
+
a sensible hierarchy and improve the user experience.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
|----------|-----------|---------------------|---------|------------------------------|
|
|
11
|
+
| `level` | `level` | `"1" \| "2" \| "3"` | "2" | Use level styling from theme |
|
|
12
|
+
|
|
13
|
+
## Slots
|
|
14
|
+
|
|
15
|
+
| Name | Description |
|
|
16
|
+
|---------|--------------------------------------------------|
|
|
17
|
+
| `left` | Slot to add custom contents to the left side of header e.g. ef-icon, ef-checkbox |
|
|
18
|
+
| `right` | Slot to add custom contents to the right side of header e.g. ef-icon, ef-checkbox |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ef-heatmap
|
|
2
|
+
|
|
3
|
+
A graphical representation of data where the individual
|
|
4
|
+
values contained in a matrix are represented as colors
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-------------------|----------------|--------------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `axisHidden` | `axis-hidden` | `boolean` | false | Hide all axes |
|
|
11
|
+
| `blend` | `blend` | `boolean` | false | Enable cell color blending |
|
|
12
|
+
| `config` | `config` | `HeatmapConfig` | null | Heatmap configuration options. |
|
|
13
|
+
| `labelHidden` | `label-hidden` | `boolean` | false | Hide all labels in the cells |
|
|
14
|
+
| `labelWidth` | `label-width` | `number` | 0 | Number of maximum label width that cell can paint in pixel.<br />e.g. label-width: 30px; cell label hides when text length reaches 30px. |
|
|
15
|
+
| `maxPoint` | `max-point` | `number` | 1 | Maximum point of the cell coloring |
|
|
16
|
+
| `midPoint` | `mid-point` | `number` | 0 | Middle point of the cell coloring |
|
|
17
|
+
| `minPoint` | `min-point` | `number` | -1 | Minimum point of the cell coloring |
|
|
18
|
+
| `renderCallback` | | `HeatmapRenderCallback` | | Render callback function use for custom cell properties.<br />Accepts custom label, foreground and background color |
|
|
19
|
+
| `saturation` | `saturation` | `number` | 0.4 | Cell minimum color saturation, value can be from 0 - 1 |
|
|
20
|
+
| `tooltipCallback` | | `HeatmapTooltipCallback` | | A callback function that allows tooltip rendering on cell hover |
|
|
21
|
+
|
|
22
|
+
## Methods
|
|
23
|
+
|
|
24
|
+
| Method | Type | Description |
|
|
25
|
+
|----------------------|---------------------|--------------------------------------------------|
|
|
26
|
+
| `getCellDataAtEvent` | `(event: any): any` | Returns data of interactive cell<br /><br />**event**: an event that occur while the user interacting with element |
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# ef-icon
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Property | Attribute | Type | Description |
|
|
6
|
+
|----------|-----------|------------------|--------------------------------------------------|
|
|
7
|
+
| `icon` | `icon` | `string \| null` | Name of a known icon to render or URL of SVG icon. |
|
|
8
|
+
| `src` | `src` | `string \| null` | Src location of an svg icon. |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ef-interactive-chart
|
|
2
|
+
|
|
3
|
+
A charting component that allows you to create several use cases of financial chart.
|
|
4
|
+
By lightweight-charts library.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|----------------------|------------------------|------------------------------|---------|--------------------------------------------------|
|
|
10
|
+
| `config` | `config` | `InteractiveChartConfig` | null | Chart configurations for init chart |
|
|
11
|
+
| `disabledJumpButton` | `disabled-jump-button` | `boolean` | false | Hide jump to latest data button |
|
|
12
|
+
| `disabledLegend` | `disabled-legend` | `boolean` | false | Hide legend |
|
|
13
|
+
| `legendStyle` | `legend-style` | `"vertical" \| "horizontal"` | | Set legend style i.e. `horizontal`, `vertical`.<br />Default is `vertical`. |
|
|
14
|
+
| `seriesList` | | `object` | [] | Array of series instances in chart |
|
|
15
|
+
|
|
16
|
+
## Methods
|
|
17
|
+
|
|
18
|
+
| Method | Type | Description |
|
|
19
|
+
|----------|--------------|------------------------------------------------|
|
|
20
|
+
| `colors` | `(): object` | List of available chart colors from the theme. |
|
|
21
|
+
|
|
22
|
+
## Events
|
|
23
|
+
|
|
24
|
+
| Event | Description |
|
|
25
|
+
|---------------|--------------------------------------|
|
|
26
|
+
| `initialized` | Dispatched when chart is initialized |
|
|
27
|
+
|
|
28
|
+
## Slots
|
|
29
|
+
|
|
30
|
+
| Name | Description |
|
|
31
|
+
|----------|---------------------------------------------|
|
|
32
|
+
| `legend` | Slot to use for implementing custom legend. |
|
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
{
|
|
24
24
|
"name": "selected",
|
|
25
25
|
"description": "Indicates that the item is selected",
|
|
26
|
-
"type": "boolean"
|
|
27
|
-
"default": "false"
|
|
26
|
+
"type": "boolean"
|
|
28
27
|
},
|
|
29
28
|
{
|
|
30
29
|
"name": "multiple",
|
|
@@ -52,13 +51,13 @@
|
|
|
52
51
|
"name": "value",
|
|
53
52
|
"description": "The content of this attribute represents the value of the item.",
|
|
54
53
|
"type": "string",
|
|
55
|
-
"default": "
|
|
54
|
+
"default": "0"
|
|
56
55
|
},
|
|
57
56
|
{
|
|
58
57
|
"name": "disabled",
|
|
59
58
|
"description": "Set disabled state.",
|
|
60
59
|
"type": "boolean",
|
|
61
|
-
"default": "
|
|
60
|
+
"default": "false"
|
|
62
61
|
}
|
|
63
62
|
],
|
|
64
63
|
"properties": [
|
|
@@ -84,8 +83,7 @@
|
|
|
84
83
|
"name": "selected",
|
|
85
84
|
"attribute": "selected",
|
|
86
85
|
"description": "Indicates that the item is selected",
|
|
87
|
-
"type": "boolean"
|
|
88
|
-
"default": "false"
|
|
86
|
+
"type": "boolean"
|
|
89
87
|
},
|
|
90
88
|
{
|
|
91
89
|
"name": "multiple",
|
|
@@ -128,14 +126,14 @@
|
|
|
128
126
|
"attribute": "value",
|
|
129
127
|
"description": "The content of this attribute represents the value of the item.",
|
|
130
128
|
"type": "string",
|
|
131
|
-
"default": "
|
|
129
|
+
"default": "0"
|
|
132
130
|
},
|
|
133
131
|
{
|
|
134
132
|
"name": "disabled",
|
|
135
133
|
"attribute": "disabled",
|
|
136
134
|
"description": "Set disabled state.",
|
|
137
135
|
"type": "boolean",
|
|
138
|
-
"default": "
|
|
136
|
+
"default": "false"
|
|
139
137
|
}
|
|
140
138
|
],
|
|
141
139
|
"slots": [
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ef-item
|
|
2
|
+
|
|
3
|
+
Used as a basic building block to compose complex custom elements,
|
|
4
|
+
additionally it can be used by applications
|
|
5
|
+
to create simple menus or navigation panels.
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
10
|
+
|-----------------|---------------|-----------|--------------------|---------|--------------------------------------------------|
|
|
11
|
+
| `disabled` | `disabled` | | `boolean` | false | Set disabled state. |
|
|
12
|
+
| `for` | `for` | | `string \| null` | null | Specifies which element an item is bound to |
|
|
13
|
+
| `highlightable` | | readonly | `boolean` | | Return true if the item can be highlighted. True if not disabled and type is Text |
|
|
14
|
+
| `highlighted` | `highlighted` | | `boolean` | false | Highlight the item |
|
|
15
|
+
| `icon` | `icon` | | `string \| null` | null | Set the icon name from the ef-icon list |
|
|
16
|
+
| `isTruncated` | | readonly | `boolean` | | Getter returning if the label is truncated |
|
|
17
|
+
| `label` | `label` | | `string \| null` | null | The text for the label indicating the meaning of the item.<br />By having both `label` and content, `label` always takes priority |
|
|
18
|
+
| `multiple` | `multiple` | | `boolean` | false | Is the item part of a multiple selection |
|
|
19
|
+
| `selected` | `selected` | | `boolean` | | Indicates that the item is selected |
|
|
20
|
+
| `subLabel` | `sub-label` | | `string \| null` | null | The`subLabel` property represents the text beneath the label. |
|
|
21
|
+
| `type` | `type` | | `ItemType \| null` | null | If defined value can be `text`, `header` or `divider` |
|
|
22
|
+
| `value` | `value` | | `string` | 0 | The content of this attribute represents the value of the item. |
|
|
23
|
+
|
|
24
|
+
## Slots
|
|
25
|
+
|
|
26
|
+
| Name | Description |
|
|
27
|
+
|---------|--------------------------------------------------|
|
|
28
|
+
| `left` | Used to render the content on the left of the label. |
|
|
29
|
+
| `right` | Used to render the content on the right of the label. |
|
package/lib/item/index.d.ts
CHANGED
|
@@ -44,10 +44,18 @@ export declare class Item extends ControlElement {
|
|
|
44
44
|
* Set the icon name from the ef-icon list
|
|
45
45
|
*/
|
|
46
46
|
icon: string | null;
|
|
47
|
+
private _selected;
|
|
47
48
|
/**
|
|
48
49
|
* Indicates that the item is selected
|
|
50
|
+
* @param value selected value
|
|
49
51
|
*/
|
|
50
|
-
selected: boolean;
|
|
52
|
+
set selected(value: boolean);
|
|
53
|
+
get selected(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Aria indicating current select state
|
|
56
|
+
* @ignore
|
|
57
|
+
*/
|
|
58
|
+
ariaSelected: string;
|
|
51
59
|
/**
|
|
52
60
|
* Is the item part of a multiple selection
|
|
53
61
|
*/
|
package/lib/item/index.js
CHANGED
|
@@ -43,10 +43,12 @@ let Item = class Item extends ControlElement {
|
|
|
43
43
|
* Set the icon name from the ef-icon list
|
|
44
44
|
*/
|
|
45
45
|
this.icon = null;
|
|
46
|
+
this._selected = false;
|
|
46
47
|
/**
|
|
47
|
-
*
|
|
48
|
+
* Aria indicating current select state
|
|
49
|
+
* @ignore
|
|
48
50
|
*/
|
|
49
|
-
this.
|
|
51
|
+
this.ariaSelected = 'false';
|
|
50
52
|
/**
|
|
51
53
|
* Is the item part of a multiple selection
|
|
52
54
|
*/
|
|
@@ -112,6 +114,21 @@ let Item = class Item extends ControlElement {
|
|
|
112
114
|
}
|
|
113
115
|
`;
|
|
114
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Indicates that the item is selected
|
|
119
|
+
* @param value selected value
|
|
120
|
+
*/
|
|
121
|
+
set selected(value) {
|
|
122
|
+
const oldValue = this._selected;
|
|
123
|
+
if (oldValue !== value) {
|
|
124
|
+
this._selected = value;
|
|
125
|
+
this.ariaSelected = String(value);
|
|
126
|
+
void this.requestUpdate('selected', oldValue);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
get selected() {
|
|
130
|
+
return this._selected;
|
|
131
|
+
}
|
|
115
132
|
/**
|
|
116
133
|
* @param node that should be checked
|
|
117
134
|
* @returns whether node can be ignored.
|
|
@@ -227,7 +244,10 @@ __decorate([
|
|
|
227
244
|
], Item.prototype, "icon", void 0);
|
|
228
245
|
__decorate([
|
|
229
246
|
property({ type: Boolean, reflect: true })
|
|
230
|
-
], Item.prototype, "selected",
|
|
247
|
+
], Item.prototype, "selected", null);
|
|
248
|
+
__decorate([
|
|
249
|
+
property({ type: String, reflect: true, attribute: 'aria-selected' })
|
|
250
|
+
], Item.prototype, "ariaSelected", void 0);
|
|
231
251
|
__decorate([
|
|
232
252
|
property({ type: Boolean, reflect: true })
|
|
233
253
|
], Item.prototype, "multiple", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# ef-label
|
|
2
|
+
|
|
3
|
+
Displays a text with alternative truncation
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|-------------|--------------|-----------|---------|---------------------------------------------|
|
|
9
|
+
| `error` | `error` | `boolean` | false | Set state to error |
|
|
10
|
+
| `lineClamp` | `line-clamp` | `number` | 0 | Limit the number of lines before truncating |
|
|
11
|
+
| `warning` | `warning` | `boolean` | false | Set state to warning |
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ef-layout
|
|
2
|
+
|
|
3
|
+
Layout component for creating responsive applications and components
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
| Property | Attribute | Type | Default | Description |
|
|
8
|
+
|--------------|--------------|------------------|---------|--------------------------------------------------|
|
|
9
|
+
| `basis` | `basis` | `string \| null` | null | Sets the rough size of the element based on other siblings and content.<br />Value could be pixel, percents or auto. |
|
|
10
|
+
| `container` | `container` | `boolean` | false | Tells the element to display as a container,<br />displaying children in a vertical nowrap layout. |
|
|
11
|
+
| `debug` | `debug` | `boolean` | false | Displays debug lines. |
|
|
12
|
+
| `flex` | `flex` | `boolean` | false | Tells the element to display flex,<br />displaying children in a row wrap layout. |
|
|
13
|
+
| `maxHeight` | `max-height` | `string \| null` | null | Prevents the height from expanding past a certain point.<br />Value could be pixel, percents or _empty_. |
|
|
14
|
+
| `maxWidth` | `max-width` | `string \| null` | null | Prevents the width from expanding past a certain point.<br />Value could be pixel, percents or _empty_. |
|
|
15
|
+
| `minHeight` | `min-height` | `string \| null` | null | Allows the height to shrink below its contents.<br />Also prevents the height from shrinking past a certain point.<br />Value could be pixel, percents or _empty_. |
|
|
16
|
+
| `minWidth` | `min-width` | `string \| null` | null | Allows the width to shrink below its contents.<br />Also prevents the width from shrinking past a certain point.<br />Value could be pixel, percents or _empty_. |
|
|
17
|
+
| `noflex` | `noflex` | `boolean` | false | Prevents the element from being flexible,<br />when inside of another flex layout. |
|
|
18
|
+
| `nowrap` | `nowrap` | `boolean` | false | Prevents wrapping flex items,<br />when the parent isn't a container. |
|
|
19
|
+
| `scrollable` | `scrollable` | `boolean` | false | Makes the element a scrollable viewport. |
|
|
20
|
+
| `size` | `size` | `string \| null` | null | Sets the fixed size of the element.<br />Value could be pixel, percents or auto. |
|
|
21
|
+
|
|
22
|
+
## Events
|
|
23
|
+
|
|
24
|
+
| Event | Description |
|
|
25
|
+
|----------|----------------------------------------|
|
|
26
|
+
| `resize` | Fired when the element's size changes. |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# ef-led-gauge
|
|
2
|
+
|
|
3
|
+
A component used to show data in a LED-like
|
|
4
|
+
horizontal bar visualization.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|----------------|-----------------|------------------|----------|--------------------------------------------------|
|
|
10
|
+
| `bottomLabel` | `bottom-label` | `string` | "" | Label to be displayed in the bottom legend |
|
|
11
|
+
| `bottomValue` | `bottom-value` | `number \| null` | null | Value of bar for bottom legend position<br />Value can be -100 to 100 |
|
|
12
|
+
| `neutralColor` | `neutral-color` | `boolean` | "false" | Turn off background color and use grey |
|
|
13
|
+
| `range` | `range` | `object` | [] | Value of range. eg [-20, 70] |
|
|
14
|
+
| `rangeLabel` | `range-label` | `string` | "" | Label to be displayed in the bottom legend<br />when a range is displayed<br />and no bottom text is already set. |
|
|
15
|
+
| `topLabel` | `top-label` | `string` | "" | Label to be displayed in the top legend |
|
|
16
|
+
| `topValue` | `top-value` | `number \| null` | null | Value of bar for top legend position<br />Value can be -100 to 100 |
|
|
17
|
+
| `zero` | `zero` | `string` | "center" | Sets the zero scale position. [center, left, right] |
|