@refinitiv-ui/elements 6.5.3 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/lib/accordion/index.js +1 -3
- package/lib/appstate-bar/custom-elements.json +2 -2
- package/lib/appstate-bar/custom-elements.md +4 -4
- package/lib/appstate-bar/index.d.ts +2 -2
- package/lib/appstate-bar/index.js +3 -11
- package/lib/appstate-bar/themes/halo/dark/index.js +1 -1
- package/lib/appstate-bar/themes/halo/light/index.js +1 -1
- package/lib/appstate-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/appstate-bar/themes/solar/pearl/index.js +1 -1
- package/lib/autosuggest/custom-elements.json +8 -8
- package/lib/autosuggest/custom-elements.md +8 -8
- package/lib/autosuggest/helpers/types.d.ts +18 -18
- package/lib/autosuggest/index.d.ts +8 -8
- package/lib/autosuggest/index.js +79 -81
- package/lib/button/custom-elements.json +1 -1
- package/lib/button/custom-elements.md +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/button/index.js +2 -4
- package/lib/button/themes/halo/dark/index.js +2 -1
- package/lib/button/themes/halo/light/index.js +2 -1
- package/lib/button/themes/solar/charcoal/index.js +2 -1
- package/lib/button/themes/solar/pearl/index.js +2 -1
- package/lib/button-bar/index.js +1 -3
- package/lib/calendar/custom-elements.json +2 -2
- package/lib/calendar/custom-elements.md +4 -4
- package/lib/calendar/index.d.ts +2 -2
- package/lib/calendar/index.js +3 -5
- package/lib/calendar/themes/halo/dark/index.js +1 -1
- package/lib/calendar/themes/halo/light/index.js +1 -1
- package/lib/calendar/themes/solar/charcoal/index.js +1 -1
- package/lib/calendar/themes/solar/pearl/index.js +1 -1
- package/lib/calendar/types.d.ts +5 -5
- package/lib/calendar/utils.d.ts +1 -1
- package/lib/canvas/custom-elements.json +1 -1
- package/lib/canvas/custom-elements.md +1 -1
- package/lib/canvas/index.d.ts +1 -1
- package/lib/canvas/index.js +9 -11
- package/lib/card/custom-elements.json +1 -1
- package/lib/card/custom-elements.md +3 -3
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/card/index.js +2 -4
- package/lib/chart/custom-elements.json +4 -0
- package/lib/chart/custom-elements.md +1 -0
- package/lib/chart/helpers/merge.d.ts +2 -2
- package/lib/chart/helpers/types.d.ts +4 -4
- package/lib/chart/index.d.ts +1 -1
- package/lib/chart/index.js +1 -3
- package/lib/chart/themes/halo/dark/index.js +1 -1
- package/lib/chart/themes/halo/light/index.js +1 -1
- package/lib/chart/themes/solar/charcoal/index.js +1 -1
- package/lib/chart/themes/solar/pearl/index.js +1 -1
- package/lib/checkbox/custom-elements.json +1 -1
- package/lib/checkbox/custom-elements.md +3 -3
- package/lib/checkbox/index.d.ts +1 -1
- package/lib/checkbox/index.js +2 -4
- package/lib/clock/custom-elements.json +2 -2
- package/lib/clock/custom-elements.md +2 -2
- package/lib/clock/index.d.ts +2 -2
- package/lib/clock/index.js +3 -5
- package/lib/clock/utils/TickManager.d.ts +1 -1
- package/lib/collapse/custom-elements.json +1 -1
- package/lib/collapse/custom-elements.md +3 -3
- package/lib/collapse/index.d.ts +1 -1
- package/lib/collapse/index.js +2 -4
- package/lib/color-dialog/custom-elements.json +2 -2
- package/lib/color-dialog/custom-elements.md +4 -4
- package/lib/color-dialog/helpers/value-model.js +3 -1
- package/lib/color-dialog/index.d.ts +2 -2
- package/lib/color-dialog/index.js +3 -5
- package/lib/color-picker/custom-elements.json +1 -1
- package/lib/color-picker/custom-elements.md +3 -3
- package/lib/color-picker/index.d.ts +1 -1
- package/lib/color-picker/index.js +2 -4
- package/lib/combo-box/custom-elements.json +3 -6
- package/lib/combo-box/custom-elements.md +5 -6
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/index.d.ts +3 -12
- package/lib/combo-box/index.js +7 -20
- package/lib/combo-box/themes/halo/dark/index.js +2 -1
- package/lib/combo-box/themes/halo/light/index.js +2 -1
- package/lib/combo-box/themes/solar/charcoal/index.js +2 -1
- package/lib/combo-box/themes/solar/pearl/index.js +2 -1
- package/lib/counter/index.js +1 -3
- package/lib/counter/themes/halo/dark/index.js +2 -1
- package/lib/counter/themes/halo/light/index.js +2 -1
- package/lib/counter/themes/solar/charcoal/index.js +2 -1
- package/lib/counter/themes/solar/pearl/index.js +2 -1
- package/lib/datetime-field/types.d.ts +3 -3
- package/lib/datetime-picker/custom-elements.json +4 -4
- package/lib/datetime-picker/custom-elements.md +4 -4
- package/lib/datetime-picker/index.d.ts +4 -4
- package/lib/datetime-picker/index.js +5 -7
- package/lib/datetime-picker/themes/halo/dark/index.js +2 -1
- package/lib/datetime-picker/themes/halo/light/index.js +2 -1
- package/lib/datetime-picker/themes/solar/charcoal/index.js +2 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +2 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/dialog/custom-elements.json +1 -1
- package/lib/dialog/custom-elements.md +1 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +2 -4
- package/lib/email-field/custom-elements.json +3 -3
- package/lib/email-field/custom-elements.md +5 -5
- package/lib/email-field/index.d.ts +3 -3
- package/lib/email-field/index.js +4 -6
- package/lib/email-field/themes/halo/dark/index.js +2 -1
- package/lib/email-field/themes/halo/light/index.js +2 -1
- package/lib/email-field/themes/solar/charcoal/index.js +2 -1
- package/lib/email-field/themes/solar/pearl/index.js +2 -1
- package/lib/events.d.ts +13 -13
- package/lib/flag/index.js +1 -3
- package/lib/header/index.js +1 -3
- package/lib/header/themes/halo/dark/index.js +1 -1
- package/lib/header/themes/halo/light/index.js +1 -1
- package/lib/header/themes/solar/charcoal/index.js +1 -1
- package/lib/header/themes/solar/pearl/index.js +1 -1
- package/lib/heatmap/helpers/types.d.ts +7 -7
- package/lib/heatmap/index.js +118 -120
- package/lib/icon/index.js +1 -3
- package/lib/interactive-chart/custom-elements.json +1 -1
- package/lib/interactive-chart/custom-elements.md +3 -3
- package/lib/interactive-chart/helpers/merge.d.ts +2 -2
- package/lib/interactive-chart/helpers/types.d.ts +7 -7
- package/lib/interactive-chart/index.d.ts +1 -1
- package/lib/interactive-chart/index.js +2 -4
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +2 -2
- package/lib/item/helpers/types.d.ts +2 -2
- package/lib/item/index.d.ts +2 -1
- package/lib/item/index.js +3 -4
- package/lib/label/index.js +1 -3
- package/lib/layout/index.js +1 -3
- package/lib/led-gauge/index.js +8 -10
- package/lib/list/custom-elements.json +1 -1
- package/lib/list/custom-elements.md +3 -3
- package/lib/list/elements/list.d.ts +1 -1
- package/lib/list/elements/list.js +5 -8
- package/lib/list/helpers/renderer.d.ts +0 -4
- package/lib/list/helpers/renderer.js +5 -5
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/loader/index.js +1 -3
- package/lib/multi-input/custom-elements.json +5 -5
- package/lib/multi-input/custom-elements.md +5 -5
- package/lib/multi-input/helpers/types.d.ts +3 -3
- package/lib/multi-input/index.d.ts +5 -17
- package/lib/multi-input/index.js +6 -20
- package/lib/multi-input/themes/halo/dark/index.js +1 -1
- package/lib/multi-input/themes/halo/light/index.js +1 -1
- package/lib/multi-input/themes/solar/charcoal/index.js +1 -1
- package/lib/multi-input/themes/solar/pearl/index.js +1 -1
- package/lib/notification/custom-elements.json +2 -2
- package/lib/notification/custom-elements.md +4 -4
- package/lib/notification/elements/notification-tray.js +1 -3
- package/lib/notification/elements/notification.d.ts +2 -2
- package/lib/notification/elements/notification.js +3 -5
- package/lib/notification/helpers/types.d.ts +2 -2
- package/lib/number-field/custom-elements.json +2 -2
- package/lib/number-field/custom-elements.md +4 -4
- package/lib/number-field/index.d.ts +3 -3
- package/lib/number-field/index.js +3 -5
- package/lib/number-field/themes/halo/dark/index.js +2 -1
- package/lib/number-field/themes/halo/light/index.js +2 -1
- package/lib/number-field/themes/solar/charcoal/index.js +2 -1
- package/lib/number-field/themes/solar/pearl/index.js +2 -1
- package/lib/overlay/custom-elements.json +6 -9
- package/lib/overlay/custom-elements.md +7 -8
- package/lib/overlay/elements/overlay.d.ts +7 -7
- package/lib/overlay/elements/overlay.js +10 -19
- package/lib/overlay/helpers/types.d.ts +13 -13
- package/lib/overlay/managers/close-manager.d.ts +1 -1
- package/lib/overlay/managers/zindex-manager.d.ts +1 -1
- package/lib/overlay-menu/custom-elements.json +2 -2
- package/lib/overlay-menu/custom-elements.md +2 -2
- package/lib/overlay-menu/helpers/types.d.ts +2 -2
- package/lib/overlay-menu/index.d.ts +2 -2
- package/lib/overlay-menu/index.js +30 -32
- package/lib/pagination/custom-elements.json +1 -1
- package/lib/pagination/custom-elements.md +3 -3
- package/lib/pagination/index.d.ts +1 -2
- package/lib/pagination/index.js +2 -5
- package/lib/pagination/themes/halo/dark/index.js +1 -1
- package/lib/pagination/themes/halo/light/index.js +1 -1
- package/lib/pagination/themes/solar/charcoal/index.js +1 -1
- package/lib/pagination/themes/solar/pearl/index.js +1 -1
- package/lib/panel/index.js +1 -3
- package/lib/password-field/custom-elements.json +2 -6
- package/lib/password-field/custom-elements.md +4 -5
- package/lib/password-field/index.d.ts +2 -3
- package/lib/password-field/index.js +3 -6
- package/lib/password-field/themes/halo/dark/index.js +2 -1
- package/lib/password-field/themes/halo/light/index.js +2 -1
- package/lib/password-field/themes/solar/charcoal/index.js +2 -1
- package/lib/password-field/themes/solar/pearl/index.js +2 -1
- package/lib/pill/custom-elements.json +1 -1
- package/lib/pill/custom-elements.md +3 -3
- package/lib/pill/index.d.ts +1 -1
- package/lib/pill/index.js +2 -4
- package/lib/pill/themes/halo/dark/index.js +2 -1
- package/lib/pill/themes/halo/light/index.js +2 -1
- package/lib/pill/themes/solar/charcoal/index.js +2 -1
- package/lib/pill/themes/solar/pearl/index.js +2 -1
- package/lib/progress-bar/index.js +1 -3
- package/lib/radio-button/custom-elements.json +1 -1
- package/lib/radio-button/custom-elements.md +3 -3
- package/lib/radio-button/index.d.ts +1 -1
- package/lib/radio-button/index.js +2 -4
- package/lib/rating/custom-elements.json +1 -1
- package/lib/rating/custom-elements.md +3 -3
- package/lib/rating/index.d.ts +1 -1
- package/lib/rating/index.js +2 -4
- package/lib/search-field/custom-elements.json +3 -3
- package/lib/search-field/custom-elements.md +5 -5
- package/lib/search-field/index.d.ts +3 -3
- package/lib/search-field/index.js +4 -6
- package/lib/search-field/themes/halo/dark/index.js +2 -1
- package/lib/search-field/themes/halo/light/index.js +2 -1
- package/lib/search-field/themes/solar/charcoal/index.js +2 -1
- package/lib/search-field/themes/solar/pearl/index.js +2 -1
- package/lib/select/custom-elements.json +2 -2
- package/lib/select/custom-elements.md +4 -4
- package/lib/select/helpers/types.d.ts +2 -2
- package/lib/select/index.d.ts +2 -2
- package/lib/select/index.js +4 -5
- package/lib/select/themes/halo/dark/index.js +2 -1
- package/lib/select/themes/halo/light/index.js +2 -1
- package/lib/select/themes/solar/charcoal/index.js +2 -1
- package/lib/select/themes/solar/pearl/index.js +2 -1
- package/lib/sidebar-layout/index.js +1 -3
- package/lib/slider/custom-elements.json +3 -3
- package/lib/slider/custom-elements.md +5 -5
- package/lib/slider/index.d.ts +3 -3
- package/lib/slider/index.js +100 -102
- package/lib/sparkline/index.js +1 -3
- package/lib/swing-gauge/index.js +1 -3
- package/lib/swing-gauge/types.d.ts +1 -1
- package/lib/tab/custom-elements.json +1 -1
- package/lib/tab/custom-elements.md +3 -3
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/index.js +2 -4
- package/lib/tab/themes/halo/dark/index.js +1 -1
- package/lib/tab/themes/halo/light/index.js +1 -1
- package/lib/tab/themes/solar/charcoal/index.js +1 -1
- package/lib/tab/themes/solar/pearl/index.js +1 -1
- package/lib/tab-bar/custom-elements.json +1 -1
- package/lib/tab-bar/custom-elements.md +3 -3
- package/lib/tab-bar/index.d.ts +1 -1
- package/lib/tab-bar/index.js +2 -4
- package/lib/text-field/custom-elements.json +3 -3
- package/lib/text-field/custom-elements.md +5 -5
- package/lib/text-field/index.d.ts +3 -3
- package/lib/text-field/index.js +4 -6
- package/lib/text-field/themes/halo/dark/index.js +2 -1
- package/lib/text-field/themes/halo/light/index.js +2 -1
- package/lib/text-field/themes/solar/charcoal/index.js +2 -1
- package/lib/text-field/themes/solar/pearl/index.js +2 -1
- package/lib/time-picker/custom-elements.json +1 -1
- package/lib/time-picker/custom-elements.md +3 -3
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/time-picker/index.js +2 -4
- package/lib/time-picker/themes/halo/dark/index.js +2 -1
- package/lib/time-picker/themes/halo/light/index.js +2 -1
- package/lib/time-picker/themes/solar/charcoal/index.js +2 -1
- package/lib/time-picker/themes/solar/pearl/index.js +2 -1
- package/lib/toggle/custom-elements.json +1 -1
- package/lib/toggle/custom-elements.md +3 -3
- package/lib/toggle/index.d.ts +1 -1
- package/lib/toggle/index.js +2 -4
- package/lib/toggle/themes/halo/dark/index.js +1 -1
- package/lib/toggle/themes/halo/light/index.js +1 -1
- package/lib/toggle/themes/solar/charcoal/index.js +1 -1
- package/lib/toggle/themes/solar/pearl/index.js +1 -1
- package/lib/tooltip/helpers/types.d.ts +10 -10
- package/lib/tooltip/index.js +1 -3
- package/lib/tornado-chart/elements/tornado-chart.js +1 -3
- package/lib/tornado-chart/themes/halo/dark/index.js +1 -1
- package/lib/tornado-chart/themes/halo/light/index.js +1 -1
- package/lib/tornado-chart/themes/solar/charcoal/index.js +1 -1
- package/lib/tornado-chart/themes/solar/pearl/index.js +1 -1
- package/lib/tree/custom-elements.json +2 -2
- package/lib/tree/custom-elements.md +2 -2
- package/lib/tree/elements/tree-item.js +1 -3
- package/lib/tree/elements/tree.d.ts +2 -2
- package/lib/tree/elements/tree.js +2 -2
- package/lib/tree/helpers/renderer.d.ts +0 -4
- package/lib/tree/helpers/renderer.js +5 -5
- package/lib/tree/helpers/types.d.ts +2 -2
- package/lib/tree-select/custom-elements.json +7 -7
- package/lib/tree-select/custom-elements.md +7 -7
- package/lib/tree-select/helpers/types.d.ts +2 -2
- package/lib/tree-select/index.d.ts +5 -6
- package/lib/tree-select/index.js +15 -18
- package/lib/tree-select/themes/halo/dark/index.js +2 -1
- package/lib/tree-select/themes/halo/light/index.js +2 -1
- package/lib/tree-select/themes/solar/charcoal/index.js +2 -1
- package/lib/tree-select/themes/solar/pearl/index.js +2 -1
- package/lib/version.js +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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
|
+
## [6.6.1](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.6.0...@refinitiv-ui/elements@6.6.1) (2023-01-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **list:** renderer key property typescript issue ([#575](https://github.com/Refinitiv/refinitiv-ui/issues/575)) ([1a960c9](https://github.com/Refinitiv/refinitiv-ui/commit/1a960c9234fb4a370b60d3901e65b437b1444823))
|
|
12
|
+
* **pagination, tree-select:** remove unused element imports ([#572](https://github.com/Refinitiv/refinitiv-ui/issues/572)) ([0bfc2f5](https://github.com/Refinitiv/refinitiv-ui/commit/0bfc2f5eccd0a6ea50c3927d71d545df20c79d90))
|
|
13
|
+
* **select:** unset cursor of header items ([#571](https://github.com/Refinitiv/refinitiv-ui/issues/571)) ([eff8a75](https://github.com/Refinitiv/refinitiv-ui/commit/eff8a75a68f23348178f05c716db673c97acf2f1))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [6.6.0](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.3...@refinitiv-ui/elements@6.6.0) (2023-01-06)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* **chart:** change chart property access modifier from private to public ([#565](https://github.com/Refinitiv/refinitiv-ui/issues/565)) ([a25a506](https://github.com/Refinitiv/refinitiv-ui/commit/a25a506e334dead2004ebaca4a815bbf284e9990))
|
|
25
|
+
* **color-dialog:** can not change between default and black color ([#557](https://github.com/Refinitiv/refinitiv-ui/issues/557)) ([27d9f2c](https://github.com/Refinitiv/refinitiv-ui/commit/27d9f2c81336c5cc4ba5bde1b7e5b3918f8c78c8))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* remove alias ([#553](https://github.com/Refinitiv/refinitiv-ui/issues/553)) ([32ce300](https://github.com/Refinitiv/refinitiv-ui/commit/32ce300e6ea0f730abd95f305b15cce406dab1c7))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
## [6.5.3](https://github.com/Refinitiv/refinitiv-ui/compare/@refinitiv-ui/elements@6.5.2...@refinitiv-ui/elements@6.5.3) (2022-12-19)
|
|
7
37
|
|
|
8
38
|
|
package/lib/accordion/index.js
CHANGED
|
@@ -129,8 +129,6 @@ __decorate([
|
|
|
129
129
|
property({ type: Boolean, reflect: true })
|
|
130
130
|
], Accordion.prototype, "spacing", void 0);
|
|
131
131
|
Accordion = __decorate([
|
|
132
|
-
customElement('ef-accordion'
|
|
133
|
-
alias: 'coral-accordion'
|
|
134
|
-
})
|
|
132
|
+
customElement('ef-accordion')
|
|
135
133
|
], Accordion);
|
|
136
134
|
export { Accordion };
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"events": [
|
|
36
36
|
{
|
|
37
37
|
"name": "clear",
|
|
38
|
-
"description": "
|
|
38
|
+
"description": "Fired when the user taps clear button."
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
41
|
"slots": [
|
|
42
42
|
{
|
|
43
43
|
"name": "right",
|
|
44
|
-
"description": "
|
|
44
|
+
"description": "Place custom content on the right of bar."
|
|
45
45
|
}
|
|
46
46
|
]
|
|
47
47
|
}
|
|
@@ -11,12 +11,12 @@ Used to display at the top of application to provide a status or information.
|
|
|
11
11
|
|
|
12
12
|
## Events
|
|
13
13
|
|
|
14
|
-
| Event | Description
|
|
15
|
-
|
|
16
|
-
| `clear` |
|
|
14
|
+
| Event | Description |
|
|
15
|
+
|---------|----------------------------------------|
|
|
16
|
+
| `clear` | Fired when the user taps clear button. |
|
|
17
17
|
|
|
18
18
|
## Slots
|
|
19
19
|
|
|
20
20
|
| Name | Description |
|
|
21
21
|
|---------|-------------------------------------------|
|
|
22
|
-
| `right` |
|
|
22
|
+
| `right` | Place custom content on the right of bar. |
|
|
@@ -5,9 +5,9 @@ import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
|
|
|
5
5
|
import '../icon/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Used to display at the top of application to provide a status or information.
|
|
8
|
-
* @slot right -
|
|
8
|
+
* @slot right - Place custom content on the right of bar.
|
|
9
9
|
*
|
|
10
|
-
* @fires clear -
|
|
10
|
+
* @fires clear - Fired when the user taps clear button.
|
|
11
11
|
*/
|
|
12
12
|
export declare class AppstateBar extends BasicElement {
|
|
13
13
|
/**
|
|
@@ -8,9 +8,9 @@ import '@refinitiv-ui/phrasebook/locale/en/appstate-bar.js';
|
|
|
8
8
|
import '../icon/index.js';
|
|
9
9
|
/**
|
|
10
10
|
* Used to display at the top of application to provide a status or information.
|
|
11
|
-
* @slot right -
|
|
11
|
+
* @slot right - Place custom content on the right of bar.
|
|
12
12
|
*
|
|
13
|
-
* @fires clear -
|
|
13
|
+
* @fires clear - Fired when the user taps clear button.
|
|
14
14
|
*/
|
|
15
15
|
let AppstateBar = class AppstateBar extends BasicElement {
|
|
16
16
|
constructor() {
|
|
@@ -32,12 +32,6 @@ let AppstateBar = class AppstateBar extends BasicElement {
|
|
|
32
32
|
this.clear = (event) => {
|
|
33
33
|
event.stopPropagation();
|
|
34
34
|
this.style.display = 'none';
|
|
35
|
-
/**
|
|
36
|
-
* Clear Event
|
|
37
|
-
* Fired when clear button is clicked
|
|
38
|
-
*
|
|
39
|
-
* @event clear
|
|
40
|
-
*/
|
|
41
35
|
this.dispatchEvent(new CustomEvent('clear'));
|
|
42
36
|
};
|
|
43
37
|
}
|
|
@@ -98,8 +92,6 @@ __decorate([
|
|
|
98
92
|
translate()
|
|
99
93
|
], AppstateBar.prototype, "t", void 0);
|
|
100
94
|
AppstateBar = __decorate([
|
|
101
|
-
customElement('ef-appstate-bar'
|
|
102
|
-
alias: 'amber-appstate-bar'
|
|
103
|
-
})
|
|
95
|
+
customElement('ef-appstate-bar')
|
|
104
96
|
], AppstateBar);
|
|
105
97
|
export { AppstateBar };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/dark';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#CCCCCC;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#404040;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#CCCCCC;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#404040;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12px;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#CCCCCC;--background-color:#262626}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/halo/light';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#0D0D0D;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#595959;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#0D0D0D;--heading-background-color:#334BFF;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#595959;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:12px;height:28px;--heading-text-color:#FFFFFF;--heading-background-color:#0F1E8A;--text-color:#0D0D0D;--background-color:#F2F2F2;--border-color:#CCCCCC}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-background-color:#334BFF}:host([state=info]){--heading-background-color:#6678FF;--heading-background-color:#007678}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 8px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;width:16px;height:16px;margin-right:10px;stroke-width:.11em;cursor:pointer}' }}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/charcoal';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#E2E2E2;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#4A4A52;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#E2E2E2;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#4A4A52;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14px;--heading-text-color:#46A0F0;--heading-background-color:#142E45;--text-color:#C2C2C2;--background-color:#0F2233;--border-color:#000000;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#000000;--heading-background-color:#FF9933}:host([state=info]){--heading-background-color:#b35900;--heading-text-color:#C2C2C2;--heading-background-color:#282E33}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@refinitiv-ui/elements/icon/themes/solar/pearl';
|
|
2
2
|
|
|
3
|
-
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#484848;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#A9AFBA;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:
|
|
3
|
+
dispatchEvent(new CustomEvent('ef.customStyles.define', { detail: { name: 'ef-appstate-bar', styles: ':host{--heading-text-color:#484848;--heading-background-color:#FF9933;--text-color:#000000;--background-color:hsl(236, 77%, 92%);--border-color:#A9AFBA;display:flex;align-items:center;background:var(--background-color);color:var(--text-color);outline:solid 1px var(--border-color);font-size:14px;--heading-text-color:#FFFFFF;--heading-background-color:#2A6090;--text-color:#484848;--background-color:#C1E3FE;--border-color:#FFFFFF;height:24px}:host([state=highlight]){--heading-background-color:hsl(337, 80%, 49%);--heading-text-color:#FFFFFF;--heading-background-color:#CC7F33}:host([state=info]){--heading-background-color:#EE7600;--heading-text-color:#FFFFFF;--heading-background-color:#666570}:host ::slotted(*){padding-right:10px}:host [part=heading]{display:flex;flex:0 0 auto;align-items:center;height:100%;text-transform:uppercase;font-weight:600;background:var(--heading-background-color);color:var(--heading-text-color);padding:0 10px}:host [part=message]{flex:1 1000000 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:10px;text-align:inherit}:host [part=right]{flex:0 1 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [part=close]{touch-action:manipulation;flex:0 0 auto;margin-right:10px;stroke-width:.11em;cursor:pointer;width:15px;height:15px;stroke-width:.12em}' }}));
|
|
@@ -136,35 +136,35 @@
|
|
|
136
136
|
"events": [
|
|
137
137
|
{
|
|
138
138
|
"name": "item-highlight",
|
|
139
|
-
"description": "Fired when an item
|
|
139
|
+
"description": "Fired when the user highlights an item or removes highlight from the item."
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"name": "add-attach-target-events",
|
|
143
|
-
"description": "Fired when attach has been set"
|
|
143
|
+
"description": "Fired when `attach` has been set to bind the control with any custom inputs."
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"name": "remove-attach-target-events",
|
|
147
|
-
"description": "Fired when attach has been removed"
|
|
147
|
+
"description": "Fired when `attach` has been removed to unbind the control with the inputs."
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"name": "item-select",
|
|
151
|
-
"description": "Fired when an item
|
|
151
|
+
"description": "Fired when the user selects an item on autosuggest."
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
"name": "suggestions-fetch-requested",
|
|
155
|
-
"description": "Fired when
|
|
155
|
+
"description": "Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed."
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"name": "suggestions-clear-requested",
|
|
159
|
-
"description": "Fired when
|
|
159
|
+
"description": "Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []."
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"name": "suggestions-query",
|
|
163
|
-
"description": "Fired when
|
|
163
|
+
"description": "Fired when the user changes value in input control and you might need to update suggestion items accordingly."
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
"name": "suggestions-changed",
|
|
167
|
-
"description": "Fired when
|
|
167
|
+
"description": "Fired when suggestion items changed."
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
"slots": [
|
|
@@ -37,14 +37,14 @@ custom rendering, pagination, asynchronous data request, etc.
|
|
|
37
37
|
|
|
38
38
|
| Event | Description |
|
|
39
39
|
|-------------------------------|--------------------------------------------------|
|
|
40
|
-
| `add-attach-target-events` | Fired when attach has been set
|
|
41
|
-
| `item-highlight` | Fired when an item
|
|
42
|
-
| `item-select` | Fired when an item
|
|
43
|
-
| `remove-attach-target-events` | Fired when attach has been removed
|
|
44
|
-
| `suggestions-changed` | Fired when
|
|
45
|
-
| `suggestions-clear-requested` | Fired when
|
|
46
|
-
| `suggestions-fetch-requested` | Fired when
|
|
47
|
-
| `suggestions-query` | Fired when
|
|
40
|
+
| `add-attach-target-events` | Fired when `attach` has been set to bind the control with any custom inputs. |
|
|
41
|
+
| `item-highlight` | Fired when the user highlights an item or removes highlight from the item. |
|
|
42
|
+
| `item-select` | Fired when the user selects an item on autosuggest. |
|
|
43
|
+
| `remove-attach-target-events` | Fired when `attach` has been removed to unbind the control with the inputs. |
|
|
44
|
+
| `suggestions-changed` | Fired when suggestion items changed. |
|
|
45
|
+
| `suggestions-clear-requested` | Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to []. |
|
|
46
|
+
| `suggestions-fetch-requested` | Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed. |
|
|
47
|
+
| `suggestions-query` | Fired when the user changes value in input control and you might need to update suggestion items accordingly. |
|
|
48
48
|
|
|
49
49
|
## Slots
|
|
50
50
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { ItemType } from '../../item';
|
|
2
|
-
export
|
|
2
|
+
export type AutosuggestSelectItemEvent = CustomEvent<{
|
|
3
3
|
query: string;
|
|
4
4
|
suggestion: Suggestion;
|
|
5
5
|
}>;
|
|
6
|
-
export
|
|
6
|
+
export type AutosuggestHighlightItem = HTMLElement & {
|
|
7
7
|
highlighted: boolean;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type AutosuggestHighlightItemEvent = CustomEvent<{
|
|
10
10
|
target: AutosuggestHighlightItem;
|
|
11
11
|
oldTarget: AutosuggestHighlightItem;
|
|
12
12
|
}>;
|
|
13
|
-
export
|
|
14
|
-
export
|
|
13
|
+
export type AutosuggestQueryAction = (event: CustomEvent) => void;
|
|
14
|
+
export type AutosuggestReason = 'value-changed' | 'input-focus' | 'suggestions-revealed' | 'escape-pressed' | 'enter-pressed' | 'more-results';
|
|
15
15
|
export interface Suggestion {
|
|
16
16
|
/**
|
|
17
17
|
* Type of item. Value can be `text`, `header`, `divider`
|
|
@@ -46,21 +46,21 @@ export interface Suggestion {
|
|
|
46
46
|
*/
|
|
47
47
|
id?: string;
|
|
48
48
|
}
|
|
49
|
-
export
|
|
49
|
+
export type AutosuggestItem = Suggestion | string | unknown;
|
|
50
50
|
export interface AutosuggestQuery {
|
|
51
51
|
toString(): string;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type AutosuggestTargetElement = HTMLElement & {
|
|
54
54
|
value: string;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
56
|
+
export type AutosuggestMethodType = 'click' | 'enter' | 'clear' | 'reset' | 'navigation';
|
|
57
|
+
export type AutosuggestRenderer = (suggestion: AutosuggestItem, query: AutosuggestQuery | null) => HTMLElement;
|
|
58
|
+
export type AutosuggestHighlightable = (suggestion: AutosuggestItem, target: HTMLElement) => boolean;
|
|
59
59
|
/**
|
|
60
60
|
* @event item-highlight
|
|
61
61
|
* Fired when an item gets highlighted or highlight is removed
|
|
62
62
|
*/
|
|
63
|
-
export
|
|
63
|
+
export type ItemHighlightEvent = CustomEvent<{
|
|
64
64
|
/**
|
|
65
65
|
* New highlight target
|
|
66
66
|
*/
|
|
@@ -83,18 +83,18 @@ export declare type ItemHighlightEvent = CustomEvent<{
|
|
|
83
83
|
* Fired when attach has been set.
|
|
84
84
|
* Add attach target listeners
|
|
85
85
|
*/
|
|
86
|
-
export
|
|
86
|
+
export type AddAttachTargetEventsEvent = CustomEvent;
|
|
87
87
|
/**
|
|
88
88
|
* @event remove-attach-target-events
|
|
89
89
|
* Fired when attach has been removed.
|
|
90
90
|
* Remove attach target listeners
|
|
91
91
|
*/
|
|
92
|
-
export
|
|
92
|
+
export type RemoveAttachTargetEventsEvent = CustomEvent;
|
|
93
93
|
/**
|
|
94
94
|
* @event item-select
|
|
95
95
|
* Fired when an item gets selected
|
|
96
96
|
*/
|
|
97
|
-
export
|
|
97
|
+
export type ItemSelectEvent = CustomEvent<{
|
|
98
98
|
/**
|
|
99
99
|
* Select method
|
|
100
100
|
*/
|
|
@@ -116,7 +116,7 @@ export declare type ItemSelectEvent = CustomEvent<{
|
|
|
116
116
|
* @event suggestions-fetch-requested
|
|
117
117
|
* Fired when auto suggest requests the data
|
|
118
118
|
*/
|
|
119
|
-
export
|
|
119
|
+
export type SuggestionsFetchRequestedEvent = CustomEvent<{
|
|
120
120
|
/**
|
|
121
121
|
* Input query
|
|
122
122
|
*/
|
|
@@ -131,12 +131,12 @@ export declare type SuggestionsFetchRequestedEvent = CustomEvent<{
|
|
|
131
131
|
* Fired when auto suggest requests to clear the data.
|
|
132
132
|
* If used in reactive application, prevent default and set suggestions to []
|
|
133
133
|
*/
|
|
134
|
-
export
|
|
134
|
+
export type SuggestionsClearRequestedEvent = CustomEvent;
|
|
135
135
|
/**
|
|
136
136
|
* @event suggestions-query
|
|
137
137
|
* Fired when input value has changed and the query must be set.
|
|
138
138
|
*/
|
|
139
|
-
export
|
|
139
|
+
export type SuggestionsQueryEvent = CustomEvent<{
|
|
140
140
|
/**
|
|
141
141
|
* The reason to request query
|
|
142
142
|
*/
|
|
@@ -146,7 +146,7 @@ export declare type SuggestionsQueryEvent = CustomEvent<{
|
|
|
146
146
|
* @event suggestions-changed
|
|
147
147
|
* Fired when suggestions changed
|
|
148
148
|
*/
|
|
149
|
-
export
|
|
149
|
+
export type SuggestionsChangedEvent = CustomEvent<{
|
|
150
150
|
/**
|
|
151
151
|
* Suggestion Items
|
|
152
152
|
*/
|
|
@@ -19,14 +19,14 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
|
|
|
19
19
|
* Autosuggest supports various use cases such as
|
|
20
20
|
* custom rendering, pagination, asynchronous data request, etc.
|
|
21
21
|
*
|
|
22
|
-
* @fires item-highlight Fired when an item
|
|
23
|
-
* @fires add-attach-target-events Fired when attach has been set
|
|
24
|
-
* @fires remove-attach-target-events Fired when attach has been removed
|
|
25
|
-
* @fires item-select Fired when an item
|
|
26
|
-
* @fires suggestions-fetch-requested Fired when
|
|
27
|
-
* @fires suggestions-clear-requested Fired when
|
|
28
|
-
* @fires suggestions-query Fired when
|
|
29
|
-
* @fires suggestions-changed Fired when
|
|
22
|
+
* @fires item-highlight - Fired when the user highlights an item or removes highlight from the item.
|
|
23
|
+
* @fires add-attach-target-events - Fired when `attach` has been set to bind the control with any custom inputs.
|
|
24
|
+
* @fires remove-attach-target-events - Fired when `attach` has been removed to unbind the control with the inputs.
|
|
25
|
+
* @fires item-select - Fired when the user selects an item on autosuggest.
|
|
26
|
+
* @fires suggestions-fetch-requested - Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed.
|
|
27
|
+
* @fires suggestions-clear-requested - Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [].
|
|
28
|
+
* @fires suggestions-query - Fired when the user changes value in input control and you might need to update suggestion items accordingly.
|
|
29
|
+
* @fires suggestions-changed - Fired when suggestion items changed.
|
|
30
30
|
*
|
|
31
31
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
32
32
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
package/lib/autosuggest/index.js
CHANGED
|
@@ -26,14 +26,14 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
|
|
|
26
26
|
* Autosuggest supports various use cases such as
|
|
27
27
|
* custom rendering, pagination, asynchronous data request, etc.
|
|
28
28
|
*
|
|
29
|
-
* @fires item-highlight Fired when an item
|
|
30
|
-
* @fires add-attach-target-events Fired when attach has been set
|
|
31
|
-
* @fires remove-attach-target-events Fired when attach has been removed
|
|
32
|
-
* @fires item-select Fired when an item
|
|
33
|
-
* @fires suggestions-fetch-requested Fired when
|
|
34
|
-
* @fires suggestions-clear-requested Fired when
|
|
35
|
-
* @fires suggestions-query Fired when
|
|
36
|
-
* @fires suggestions-changed Fired when
|
|
29
|
+
* @fires item-highlight - Fired when the user highlights an item or removes highlight from the item.
|
|
30
|
+
* @fires add-attach-target-events - Fired when `attach` has been set to bind the control with any custom inputs.
|
|
31
|
+
* @fires remove-attach-target-events - Fired when `attach` has been removed to unbind the control with the inputs.
|
|
32
|
+
* @fires item-select - Fired when the user selects an item on autosuggest.
|
|
33
|
+
* @fires suggestions-fetch-requested - Fired when autosuggest requests the data. The event will be triggered when the value of the attached control has changed or when keyboard navigation is performed.
|
|
34
|
+
* @fires suggestions-clear-requested - Fired when autosuggest requests to clear the data. If used in reactive application, prevent default and set suggestions to [].
|
|
35
|
+
* @fires suggestions-query - Fired when the user changes value in input control and you might need to update suggestion items accordingly.
|
|
36
|
+
* @fires suggestions-changed - Fired when suggestion items changed.
|
|
37
37
|
*
|
|
38
38
|
* @attr {boolean} opened - Set to open auto suggest popup
|
|
39
39
|
* @prop {boolean} [opened=false] - Auto suggest popup's open state
|
|
@@ -42,6 +42,76 @@ export { itemHighlightable, escapeRegExp, queryWordSelect, renderer, renderer as
|
|
|
42
42
|
* @slot footer - Slot to add custom contents at the bottom of autosuggest popup
|
|
43
43
|
*/
|
|
44
44
|
let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
45
|
+
/**
|
|
46
|
+
* Element version number
|
|
47
|
+
* @returns version number
|
|
48
|
+
*/
|
|
49
|
+
static get version() {
|
|
50
|
+
return VERSION;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A `CSSResultGroup` that will be used
|
|
54
|
+
* to style the host, slotted children
|
|
55
|
+
* and the internal template of the element.
|
|
56
|
+
* @return CSS template
|
|
57
|
+
*/
|
|
58
|
+
static get styles() {
|
|
59
|
+
return [
|
|
60
|
+
super.styles,
|
|
61
|
+
css `
|
|
62
|
+
:host {
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
[part=content] {
|
|
68
|
+
flex: 1 1 auto;
|
|
69
|
+
overflow-x: hidden;
|
|
70
|
+
overflow-y: auto;
|
|
71
|
+
-webkit-overflow-scrolling: touch;
|
|
72
|
+
}
|
|
73
|
+
[part=header], [part=footer] {
|
|
74
|
+
flex: none;
|
|
75
|
+
}
|
|
76
|
+
`
|
|
77
|
+
];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A basic regexp matching pattern to replace text based on string input.
|
|
81
|
+
* @param text Value to test against
|
|
82
|
+
* @param query The query
|
|
83
|
+
* @param [pattern=<mark>$1</mark>] Provide a pattern to replace string
|
|
84
|
+
* @returns innerHTML The text that can be used as innerHTML
|
|
85
|
+
*/
|
|
86
|
+
static QueryWordSelect(text, query = '', pattern = '<mark>$1</mark>') {
|
|
87
|
+
return queryWordSelect(text, query, pattern);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Build item element from data object
|
|
91
|
+
* @param suggestion Suggestion data
|
|
92
|
+
* @param query A query data (usually string, but could be any entity )
|
|
93
|
+
* @returns item
|
|
94
|
+
*/
|
|
95
|
+
static ItemRenderer(suggestion, query) {
|
|
96
|
+
return renderer(suggestion, query);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Replace forbidden characters in regular expressions
|
|
100
|
+
* @param string A string to process
|
|
101
|
+
* @returns clean string
|
|
102
|
+
*/
|
|
103
|
+
static EscapeRegExp(string = '') {
|
|
104
|
+
return escapeRegExp(string);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Check whether item can be highlighted
|
|
108
|
+
* @param suggestion Suggestion object
|
|
109
|
+
* @param target item element
|
|
110
|
+
* @returns highlightable
|
|
111
|
+
*/
|
|
112
|
+
static ItemHighlightable(suggestion, target) {
|
|
113
|
+
return itemHighlightable(suggestion, target);
|
|
114
|
+
}
|
|
45
115
|
/**
|
|
46
116
|
* creates auto-suggest
|
|
47
117
|
*/
|
|
@@ -200,76 +270,6 @@ let Autosuggest = Autosuggest_1 = class Autosuggest extends Overlay {
|
|
|
200
270
|
*/
|
|
201
271
|
this.onOutsideClick = this.onOutsideClick.bind(this);
|
|
202
272
|
}
|
|
203
|
-
/**
|
|
204
|
-
* Element version number
|
|
205
|
-
* @returns version number
|
|
206
|
-
*/
|
|
207
|
-
static get version() {
|
|
208
|
-
return VERSION;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* A `CSSResultGroup` that will be used
|
|
212
|
-
* to style the host, slotted children
|
|
213
|
-
* and the internal template of the element.
|
|
214
|
-
* @return CSS template
|
|
215
|
-
*/
|
|
216
|
-
static get styles() {
|
|
217
|
-
return [
|
|
218
|
-
super.styles,
|
|
219
|
-
css `
|
|
220
|
-
:host {
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
display: flex;
|
|
223
|
-
flex-direction: column;
|
|
224
|
-
}
|
|
225
|
-
[part=content] {
|
|
226
|
-
flex: 1 1 auto;
|
|
227
|
-
overflow-x: hidden;
|
|
228
|
-
overflow-y: auto;
|
|
229
|
-
-webkit-overflow-scrolling: touch;
|
|
230
|
-
}
|
|
231
|
-
[part=header], [part=footer] {
|
|
232
|
-
flex: none;
|
|
233
|
-
}
|
|
234
|
-
`
|
|
235
|
-
];
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* A basic regexp matching pattern to replace text based on string input.
|
|
239
|
-
* @param text Value to test against
|
|
240
|
-
* @param query The query
|
|
241
|
-
* @param [pattern=<mark>$1</mark>] Provide a pattern to replace string
|
|
242
|
-
* @returns innerHTML The text that can be used as innerHTML
|
|
243
|
-
*/
|
|
244
|
-
static QueryWordSelect(text, query = '', pattern = '<mark>$1</mark>') {
|
|
245
|
-
return queryWordSelect(text, query, pattern);
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Build item element from data object
|
|
249
|
-
* @param suggestion Suggestion data
|
|
250
|
-
* @param query A query data (usually string, but could be any entity )
|
|
251
|
-
* @returns item
|
|
252
|
-
*/
|
|
253
|
-
static ItemRenderer(suggestion, query) {
|
|
254
|
-
return renderer(suggestion, query);
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Replace forbidden characters in regular expressions
|
|
258
|
-
* @param string A string to process
|
|
259
|
-
* @returns clean string
|
|
260
|
-
*/
|
|
261
|
-
static EscapeRegExp(string = '') {
|
|
262
|
-
return escapeRegExp(string);
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Check whether item can be highlighted
|
|
266
|
-
* @param suggestion Suggestion object
|
|
267
|
-
* @param target item element
|
|
268
|
-
* @returns highlightable
|
|
269
|
-
*/
|
|
270
|
-
static ItemHighlightable(suggestion, target) {
|
|
271
|
-
return itemHighlightable(suggestion, target);
|
|
272
|
-
}
|
|
273
273
|
disconnectedCallback() {
|
|
274
274
|
this.dispatchAttachEventsRemoveAction();
|
|
275
275
|
super.disconnectedCallback();
|
|
@@ -1302,8 +1302,6 @@ __decorate([
|
|
|
1302
1302
|
query('#moreResults')
|
|
1303
1303
|
], Autosuggest.prototype, "moreResultsItem", void 0);
|
|
1304
1304
|
Autosuggest = Autosuggest_1 = __decorate([
|
|
1305
|
-
customElement('ef-autosuggest'
|
|
1306
|
-
alias: 'emerald-autosuggest'
|
|
1307
|
-
})
|
|
1305
|
+
customElement('ef-autosuggest')
|
|
1308
1306
|
], Autosuggest);
|
|
1309
1307
|
export { Autosuggest };
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"events": [
|
|
112
112
|
{
|
|
113
113
|
"name": "active-changed",
|
|
114
|
-
"description": "
|
|
114
|
+
"description": "Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically."
|
|
115
115
|
}
|
|
116
116
|
]
|
|
117
117
|
}
|
|
@@ -20,4 +20,4 @@ and more with support for different states and styles.
|
|
|
20
20
|
|
|
21
21
|
| Event | Description |
|
|
22
22
|
|------------------|--------------------------------------------------|
|
|
23
|
-
| `active-changed` |
|
|
23
|
+
| `active-changed` | Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically. |
|
package/lib/button/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import '../icon/index.js';
|
|
|
6
6
|
* and more with support for different states and styles.
|
|
7
7
|
* @attr {boolean} disabled - Set state to disabled
|
|
8
8
|
* @prop {boolean} [disabled=false] - Set state to disabled
|
|
9
|
-
* @fires active-changed -
|
|
9
|
+
* @fires active-changed - Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically.
|
|
10
10
|
*/
|
|
11
11
|
export declare class Button extends ControlElement {
|
|
12
12
|
/**
|
package/lib/button/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import '../icon/index.js';
|
|
|
12
12
|
* and more with support for different states and styles.
|
|
13
13
|
* @attr {boolean} disabled - Set state to disabled
|
|
14
14
|
* @prop {boolean} [disabled=false] - Set state to disabled
|
|
15
|
-
* @fires active-changed -
|
|
15
|
+
* @fires active-changed - Fired when `active` property changed by user taps on toggled button. It will not be triggered if `active` state is changed programmatically.
|
|
16
16
|
*/
|
|
17
17
|
let Button = class Button extends ControlElement {
|
|
18
18
|
constructor() {
|
|
@@ -200,8 +200,6 @@ __decorate([
|
|
|
200
200
|
query('[part="label"]')
|
|
201
201
|
], Button.prototype, "labelElement", void 0);
|
|
202
202
|
Button = __decorate([
|
|
203
|
-
customElement('ef-button'
|
|
204
|
-
alias: 'coral-button'
|
|
205
|
-
})
|
|
203
|
+
customElement('ef-button')
|
|
206
204
|
], Button);
|
|
207
205
|
export { Button };
|