@refinitiv-ui/elements 5.3.4 → 5.8.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 +89 -0
- package/lib/accordion/custom-elements.md +18 -0
- package/lib/accordion/index.d.ts +5 -5
- package/lib/accordion/index.js +8 -11
- package/lib/appstate-bar/custom-elements.md +22 -0
- package/lib/appstate-bar/index.d.ts +5 -5
- package/lib/appstate-bar/index.js +8 -11
- package/lib/autosuggest/custom-elements.json +24 -4
- package/lib/autosuggest/custom-elements.md +54 -0
- package/lib/autosuggest/helpers/types.d.ts +1 -1
- package/lib/autosuggest/helpers/utils.d.ts +2 -2
- package/lib/autosuggest/helpers/utils.js +1 -2
- package/lib/autosuggest/index.d.ts +13 -8
- package/lib/autosuggest/index.js +38 -31
- package/lib/button/custom-elements.json +2 -2
- package/lib/button/custom-elements.md +23 -0
- package/lib/button/index.d.ts +13 -13
- package/lib/button/index.js +41 -31
- package/lib/button-bar/custom-elements.md +9 -0
- package/lib/button-bar/index.d.ts +3 -3
- package/lib/button-bar/index.js +8 -10
- package/lib/calendar/constants.d.ts +22 -0
- package/lib/calendar/constants.js +23 -0
- package/lib/calendar/custom-elements.json +8 -6
- package/lib/calendar/custom-elements.md +35 -0
- package/lib/calendar/index.d.ts +9 -7
- package/lib/calendar/index.js +20 -38
- package/lib/calendar/locales.d.ts +1 -31
- package/lib/calendar/locales.js +0 -104
- package/lib/calendar/types.d.ts +1 -5
- package/lib/calendar/types.js +1 -6
- package/lib/calendar/utils.d.ts +31 -1
- package/lib/calendar/utils.js +104 -2
- package/lib/canvas/custom-elements.json +7 -5
- package/lib/canvas/custom-elements.md +27 -0
- package/lib/canvas/index.d.ts +4 -3
- package/lib/canvas/index.js +8 -10
- package/lib/card/custom-elements.json +3 -1
- package/lib/card/custom-elements.md +24 -0
- package/lib/card/helpers/types.d.ts +1 -1
- package/lib/card/index.d.ts +10 -8
- package/lib/card/index.js +14 -13
- package/lib/chart/custom-elements.json +1 -1
- package/lib/chart/custom-elements.md +16 -0
- package/lib/chart/helpers/index.d.ts +2 -2
- package/lib/chart/helpers/index.js +2 -2
- package/lib/chart/index.d.ts +6 -6
- package/lib/chart/index.js +12 -14
- package/lib/checkbox/custom-elements.json +4 -4
- package/lib/checkbox/custom-elements.md +18 -0
- package/lib/checkbox/index.d.ts +21 -13
- package/lib/checkbox/index.js +56 -31
- package/lib/clock/custom-elements.json +21 -4
- package/lib/clock/custom-elements.md +28 -0
- package/lib/clock/index.d.ts +17 -5
- package/lib/clock/index.js +37 -18
- 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/clock/utils/TickManager.js +2 -2
- package/lib/collapse/custom-elements.md +27 -0
- package/lib/collapse/index.d.ts +7 -7
- package/lib/collapse/index.js +11 -13
- package/lib/color-dialog/custom-elements.json +29 -16
- package/lib/color-dialog/custom-elements.md +39 -0
- package/lib/color-dialog/elements/color-palettes.d.ts +5 -5
- package/lib/color-dialog/elements/color-palettes.js +9 -13
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +5 -5
- package/lib/color-dialog/elements/grayscale-palettes.js +10 -13
- package/lib/color-dialog/elements/palettes.d.ts +10 -3
- package/lib/color-dialog/elements/palettes.js +58 -45
- package/lib/color-dialog/helpers/color-helpers.d.ts +7 -53
- package/lib/color-dialog/helpers/color-helpers.js +12 -109
- package/lib/color-dialog/helpers/value-model.d.ts +1 -1
- package/lib/color-dialog/helpers/value-model.js +18 -16
- package/lib/color-dialog/index.d.ts +19 -19
- package/lib/color-dialog/index.js +47 -45
- package/lib/combo-box/custom-elements.json +28 -16
- package/lib/combo-box/custom-elements.md +35 -0
- package/lib/combo-box/helpers/filter.d.ts +4 -4
- package/lib/combo-box/helpers/types.d.ts +2 -2
- package/lib/combo-box/index.d.ts +26 -18
- package/lib/combo-box/index.js +36 -27
- 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 +5 -3
- package/lib/counter/index.js +11 -12
- 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 +25 -14
- package/lib/datetime-picker/index.js +46 -35
- package/lib/datetime-picker/locales.d.ts +1 -1
- package/lib/datetime-picker/locales.js +12 -1
- package/lib/datetime-picker/themes/solar/charcoal/index.js +1 -1
- package/lib/datetime-picker/themes/solar/pearl/index.js +1 -1
- package/lib/datetime-picker/types.d.ts +1 -1
- package/lib/datetime-picker/utils.js +1 -1
- package/lib/dialog/custom-elements.json +34 -12
- package/lib/dialog/custom-elements.md +47 -0
- package/lib/dialog/index.d.ts +17 -20
- package/lib/dialog/index.js +28 -31
- 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 +44 -116
- package/lib/email-field/index.js +48 -249
- package/lib/email-field/themes/solar/charcoal/index.js +1 -1
- package/lib/email-field/themes/solar/pearl/index.js +1 -1
- package/lib/events.d.ts +2 -2
- package/lib/events.js +1 -2
- package/lib/flag/custom-elements.md +10 -0
- package/lib/flag/index.d.ts +6 -4
- package/lib/flag/index.js +12 -12
- package/lib/flag/utils/FlagLoader.d.ts +1 -1
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/custom-elements.md +18 -0
- package/lib/header/index.d.ts +2 -2
- package/lib/header/index.js +5 -8
- package/lib/heatmap/custom-elements.md +26 -0
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +1 -1
- package/lib/heatmap/helpers/text.d.ts +1 -1
- package/lib/heatmap/index.d.ts +7 -7
- package/lib/heatmap/index.js +15 -16
- package/lib/icon/custom-elements.json +6 -4
- package/lib/icon/custom-elements.md +8 -0
- package/lib/icon/index.d.ts +9 -6
- package/lib/icon/index.js +28 -18
- package/lib/icon/utils/IconLoader.d.ts +6 -1
- package/lib/icon/utils/IconLoader.js +24 -17
- package/lib/index.d.ts +2 -1
- package/lib/index.js +2 -1
- package/lib/interactive-chart/custom-elements.json +6 -10
- package/lib/interactive-chart/custom-elements.md +31 -0
- package/lib/interactive-chart/helpers/types.d.ts +2 -2
- package/lib/interactive-chart/index.d.ts +11 -8
- package/lib/interactive-chart/index.js +17 -17
- package/lib/item/custom-elements.json +4 -4
- package/lib/item/custom-elements.md +29 -0
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +18 -8
- package/lib/item/index.js +36 -16
- package/lib/label/custom-elements.md +11 -0
- package/lib/label/index.d.ts +3 -3
- package/lib/label/index.js +12 -20
- package/lib/layout/custom-elements.md +26 -0
- package/lib/layout/index.d.ts +3 -3
- package/lib/layout/index.js +6 -9
- 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 +5 -4
- package/lib/led-gauge/index.js +9 -11
- package/lib/list/custom-elements.json +18 -5
- package/lib/list/custom-elements.md +32 -0
- package/lib/list/helpers/list-renderer.d.ts +2 -2
- package/lib/list/helpers/list-renderer.js +4 -2
- package/lib/list/helpers/types.d.ts +2 -2
- package/lib/list/index.d.ts +27 -10
- package/lib/list/index.js +54 -25
- package/lib/list/renderer.d.ts +2 -2
- package/lib/list/renderer.js +1 -1
- package/lib/loader/custom-elements.md +5 -0
- package/lib/loader/index.js +4 -8
- package/lib/multi-input/custom-elements.json +7 -6
- package/lib/multi-input/custom-elements.md +43 -0
- package/lib/multi-input/helpers/types.d.ts +1 -1
- package/lib/multi-input/index.d.ts +11 -7
- package/lib/multi-input/index.js +20 -17
- 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.md +26 -0
- package/lib/notification/elements/notification-tray.d.ts +2 -2
- package/lib/notification/elements/notification-tray.js +6 -9
- package/lib/notification/elements/notification.d.ts +5 -5
- package/lib/notification/elements/notification.js +8 -11
- package/lib/notification/helpers/status.d.ts +1 -1
- package/lib/notification/helpers/status.js +1 -1
- package/lib/notification/helpers/types.d.ts +1 -1
- package/lib/notification/index.d.ts +2 -2
- package/lib/notification/index.js +2 -2
- 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 +96 -51
- package/lib/number-field/index.js +121 -89
- package/lib/number-field/themes/solar/charcoal/index.js +1 -1
- package/lib/number-field/themes/solar/pearl/index.js +1 -1
- package/lib/overlay/custom-elements.json +26 -13
- package/lib/overlay/custom-elements.md +54 -0
- package/lib/overlay/elements/overlay-backdrop.d.ts +4 -4
- package/lib/overlay/elements/overlay-backdrop.js +6 -9
- package/lib/overlay/elements/overlay-viewport.d.ts +3 -3
- package/lib/overlay/elements/overlay-viewport.js +5 -9
- package/lib/overlay/elements/overlay.d.ts +10 -5
- package/lib/overlay/elements/overlay.js +27 -28
- package/lib/overlay/index.d.ts +2 -2
- package/lib/overlay/index.js +1 -1
- package/lib/overlay/managers/backdrop-manager.d.ts +1 -1
- package/lib/overlay/managers/backdrop-manager.js +2 -2
- package/lib/overlay/managers/close-manager.js +1 -1
- package/lib/overlay/managers/focus-manager.js +2 -2
- package/lib/overlay/managers/interaction-lock-manager.js +2 -2
- package/lib/overlay/managers/viewport-manager.d.ts +2 -2
- package/lib/overlay/managers/viewport-manager.js +6 -2
- package/lib/overlay/managers/zindex-manager.js +1 -1
- package/lib/overlay-menu/custom-elements.json +70 -20
- package/lib/overlay-menu/custom-elements.md +44 -0
- package/lib/overlay-menu/helpers/types.d.ts +3 -3
- package/lib/overlay-menu/index.d.ts +26 -19
- package/lib/overlay-menu/index.js +47 -33
- package/lib/overlay-menu/managers/menu-manager.d.ts +2 -2
- package/lib/overlay-menu/managers/menu-manager.js +3 -3
- package/lib/pagination/custom-elements.md +27 -0
- package/lib/pagination/index.d.ts +8 -8
- package/lib/pagination/index.js +13 -15
- package/lib/panel/custom-elements.md +11 -0
- package/lib/panel/index.d.ts +3 -3
- package/lib/panel/index.js +6 -9
- 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 +43 -94
- package/lib/password-field/index.js +52 -198
- package/lib/password-field/themes/solar/charcoal/index.js +1 -1
- package/lib/password-field/themes/solar/pearl/index.js +1 -1
- package/lib/pill/custom-elements.json +8 -6
- package/lib/pill/custom-elements.md +22 -0
- package/lib/pill/index.d.ts +5 -5
- package/lib/pill/index.js +9 -11
- package/lib/progress-bar/custom-elements.md +18 -0
- package/lib/progress-bar/index.d.ts +3 -3
- package/lib/progress-bar/index.js +7 -9
- package/lib/radio-button/custom-elements.json +4 -4
- package/lib/radio-button/custom-elements.md +19 -0
- package/lib/radio-button/index.d.ts +25 -8
- package/lib/radio-button/index.js +84 -21
- package/lib/radio-button/radio-button-registry.d.ts +3 -2
- package/lib/radio-button/radio-button-registry.js +57 -4
- package/lib/rating/custom-elements.md +17 -0
- package/lib/rating/index.d.ts +3 -3
- package/lib/rating/index.js +9 -10
- 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 +44 -101
- package/lib/search-field/index.js +50 -220
- package/lib/search-field/themes/solar/charcoal/index.js +1 -1
- package/lib/search-field/themes/solar/pearl/index.js +1 -1
- package/lib/select/custom-elements.json +5 -4
- package/lib/select/custom-elements.md +24 -0
- package/lib/select/helpers/types.d.ts +1 -1
- package/lib/select/index.d.ts +18 -10
- package/lib/select/index.js +84 -45
- 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 +7 -6
- package/lib/sidebar-layout/index.js +9 -10
- package/lib/slider/custom-elements.json +4 -4
- package/lib/slider/custom-elements.md +28 -0
- package/lib/slider/index.d.ts +4 -4
- package/lib/slider/index.js +9 -10
- package/lib/sparkline/custom-elements.json +4 -4
- package/lib/sparkline/custom-elements.md +16 -0
- package/lib/sparkline/index.d.ts +6 -4
- package/lib/sparkline/index.js +10 -10
- package/lib/swing-gauge/custom-elements.json +5 -3
- package/lib/swing-gauge/custom-elements.md +17 -0
- package/lib/swing-gauge/helpers.d.ts +1 -1
- package/lib/swing-gauge/helpers.js +1 -1
- package/lib/swing-gauge/index.d.ts +9 -7
- package/lib/swing-gauge/index.js +17 -15
- package/lib/tab/custom-elements.json +2 -2
- package/lib/tab/custom-elements.md +22 -0
- package/lib/tab/index.d.ts +5 -5
- package/lib/tab/index.js +9 -12
- 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.md +11 -0
- package/lib/tab-bar/index.d.ts +4 -4
- package/lib/tab-bar/index.js +9 -11
- package/lib/tab-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/tab-bar/themes/solar/pearl/index.js +1 -1
- 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 +59 -79
- package/lib/text-field/index.js +99 -158
- package/lib/text-field/themes/solar/charcoal/index.js +1 -1
- package/lib/text-field/themes/solar/pearl/index.js +1 -1
- 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 +7 -4
- package/lib/time-picker/index.js +15 -14
- package/lib/time-picker/themes/solar/charcoal/index.js +1 -1
- package/lib/time-picker/themes/solar/pearl/index.js +1 -1
- package/lib/toggle/custom-elements.json +4 -4
- package/lib/toggle/custom-elements.md +19 -0
- package/lib/toggle/index.d.ts +14 -4
- package/lib/toggle/index.js +31 -12
- package/lib/tooltip/custom-elements.md +14 -0
- package/lib/tooltip/elements/title-tooltip.js +2 -2
- package/lib/tooltip/elements/tooltip-element.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.d.ts +1 -1
- package/lib/tooltip/helpers/overflow-tooltip.js +1 -1
- package/lib/tooltip/helpers/renderer.d.ts +1 -1
- package/lib/tooltip/helpers/types.d.ts +1 -1
- package/lib/tooltip/index.d.ts +9 -9
- package/lib/tooltip/index.js +18 -20
- package/lib/tooltip/managers/tooltip-manager.d.ts +2 -2
- package/lib/tooltip/managers/tooltip-manager.js +3 -7
- package/lib/tornado-chart/custom-elements.md +18 -0
- package/lib/tornado-chart/elements/tornado-chart.d.ts +4 -4
- package/lib/tornado-chart/elements/tornado-chart.js +8 -11
- package/lib/tornado-chart/elements/tornado-item.d.ts +5 -5
- package/lib/tornado-chart/elements/tornado-item.js +10 -12
- package/lib/tornado-chart/index.d.ts +2 -2
- package/lib/tornado-chart/index.js +2 -2
- package/lib/tree/custom-elements.json +17 -3
- package/lib/tree/custom-elements.md +32 -0
- package/lib/tree/elements/tree-item.d.ts +4 -4
- package/lib/tree/elements/tree-item.js +10 -13
- package/lib/tree/elements/tree.d.ts +51 -5
- package/lib/tree/elements/tree.js +138 -11
- package/lib/tree/helpers/filter.d.ts +8 -0
- package/lib/tree/helpers/filter.js +33 -0
- package/lib/tree/helpers/renderer.d.ts +2 -2
- package/lib/tree/helpers/renderer.js +3 -3
- package/lib/tree/helpers/types.d.ts +9 -1
- package/lib/tree/index.d.ts +4 -4
- package/lib/tree/index.js +3 -3
- package/lib/tree/managers/tree-manager.d.ts +22 -10
- package/lib/tree/managers/tree-manager.js +56 -40
- 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/helpers/types.d.ts +2 -2
- package/lib/tree-select/index.d.ts +32 -28
- package/lib/tree-select/index.js +54 -44
- 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.d.ts +1 -0
- package/lib/version.js +1 -0
- package/package.json +298 -15
- package/lib/autosuggest/helpers/const.d.ts +0 -2
- package/lib/autosuggest/helpers/const.js +0 -3
- package/lib/overlay-menu/helpers/uuid.d.ts +0 -7
- package/lib/overlay-menu/helpers/uuid.js +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { format, DateFormat, parse, TimeFormat, toTimeSegment } from '@refinitiv-ui/utils';
|
|
1
|
+
import { format, DateFormat, parse, TimeFormat, toTimeSegment } from '@refinitiv-ui/utils/lib/date.js';
|
|
2
2
|
/**
|
|
3
3
|
* A helper class to split date time string into date and time segments
|
|
4
4
|
*/
|
|
@@ -20,23 +20,40 @@
|
|
|
20
20
|
"name": "opened",
|
|
21
21
|
"description": "Set dialog to open",
|
|
22
22
|
"type": "boolean",
|
|
23
|
-
"default": "
|
|
23
|
+
"default": "false"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "no-cancel-on-esc-key",
|
|
27
|
+
"description": "Prevents dialog to close when user presses ESC key",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": "false"
|
|
24
30
|
},
|
|
25
31
|
{
|
|
26
32
|
"name": "x",
|
|
27
33
|
"description": "Set a specific x coordinate of dialog",
|
|
28
|
-
"type": "string"
|
|
34
|
+
"type": "string | undefined"
|
|
29
35
|
},
|
|
30
36
|
{
|
|
31
37
|
"name": "y",
|
|
32
38
|
"description": "Set a specific y coordinate of dialog",
|
|
33
|
-
"type": "string"
|
|
39
|
+
"type": "string | undefined"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "full-screen",
|
|
43
|
+
"description": "Set dialog to full screen",
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": "false"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "position-target",
|
|
49
|
+
"description": "Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.",
|
|
50
|
+
"type": "string | undefined"
|
|
34
51
|
},
|
|
35
52
|
{
|
|
36
53
|
"name": "no-cancel-on-esc-key",
|
|
37
54
|
"description": "Prevents dialog to close when user presses ESC key",
|
|
38
55
|
"type": "boolean",
|
|
39
|
-
"default": "
|
|
56
|
+
"default": "false"
|
|
40
57
|
},
|
|
41
58
|
{
|
|
42
59
|
"name": "full-screen",
|
|
@@ -46,7 +63,7 @@
|
|
|
46
63
|
{
|
|
47
64
|
"name": "position-target",
|
|
48
65
|
"description": "Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.",
|
|
49
|
-
"type": "string"
|
|
66
|
+
"type": "string | undefined"
|
|
50
67
|
}
|
|
51
68
|
],
|
|
52
69
|
"properties": [
|
|
@@ -66,42 +83,47 @@
|
|
|
66
83
|
{
|
|
67
84
|
"name": "noCancelOnOutsideClick",
|
|
68
85
|
"description": "Prevents dialog to close when user clicks outside the dialog.",
|
|
69
|
-
"type": "boolean"
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": "true"
|
|
70
88
|
},
|
|
71
89
|
{
|
|
72
90
|
"name": "opened",
|
|
73
91
|
"attribute": "opened",
|
|
74
92
|
"description": "Set dialog to open",
|
|
75
93
|
"type": "boolean",
|
|
76
|
-
"default": "
|
|
94
|
+
"default": "false"
|
|
77
95
|
},
|
|
78
96
|
{
|
|
79
97
|
"name": "noCancelOnEscKey",
|
|
98
|
+
"attribute": "no-cancel-on-esc-key",
|
|
80
99
|
"description": "Prevents dialog to close when user presses ESC key",
|
|
81
100
|
"type": "boolean",
|
|
82
|
-
"default": "
|
|
101
|
+
"default": "false"
|
|
83
102
|
},
|
|
84
103
|
{
|
|
85
104
|
"name": "x",
|
|
86
105
|
"attribute": "x",
|
|
87
106
|
"description": "Set a specific x coordinate of dialog",
|
|
88
|
-
"type": "string"
|
|
107
|
+
"type": "string | undefined"
|
|
89
108
|
},
|
|
90
109
|
{
|
|
91
110
|
"name": "y",
|
|
92
111
|
"attribute": "y",
|
|
93
112
|
"description": "Set a specific y coordinate of dialog",
|
|
94
|
-
"type": "string"
|
|
113
|
+
"type": "string | undefined"
|
|
95
114
|
},
|
|
96
115
|
{
|
|
97
116
|
"name": "fullScreen",
|
|
117
|
+
"attribute": "full-screen",
|
|
98
118
|
"description": "Set dialog to full screen",
|
|
99
|
-
"type": "boolean"
|
|
119
|
+
"type": "boolean",
|
|
120
|
+
"default": "false"
|
|
100
121
|
},
|
|
101
122
|
{
|
|
102
123
|
"name": "positionTarget",
|
|
124
|
+
"attribute": "position-target",
|
|
103
125
|
"description": "Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.",
|
|
104
|
-
"type": "string"
|
|
126
|
+
"type": "string | undefined"
|
|
105
127
|
}
|
|
106
128
|
],
|
|
107
129
|
"events": [
|
|
@@ -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 \| undefined` | | 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` | `full-screen` | `boolean` | false | Set dialog to full screen |
|
|
21
|
+
| `header` | `header` | `string \| null` | null | Set Header/Title of the dialog |
|
|
22
|
+
| `noCancelOnEscKey` | `no-cancel-on-esc-key` | `boolean` | false | Prevents dialog to close when user presses ESC key |
|
|
23
|
+
| `noCancelOnOutsideClick` | | `boolean` | true | Prevents dialog to close when user clicks outside the dialog. |
|
|
24
|
+
| `opened` | `opened` | `boolean` | false | Set dialog to open |
|
|
25
|
+
| `positionTarget` | `position-target` | `string \| undefined` | | Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`. |
|
|
26
|
+
| `x` | `x` | `string \| undefined` | | Set a specific x coordinate of dialog |
|
|
27
|
+
| `y` | `y` | `string \| undefined` | | 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. |
|
package/lib/dialog/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { JSXInterface } from '../jsx';
|
|
2
|
-
import {
|
|
3
|
-
import { Overlay } from '../overlay';
|
|
4
|
-
import '../icon';
|
|
5
|
-
import '../panel';
|
|
6
|
-
import '../header';
|
|
7
|
-
import '../button';
|
|
2
|
+
import { CSSResultGroup, TemplateResult, ElementSize, PropertyValues } from '@refinitiv-ui/core';
|
|
3
|
+
import { Overlay } from '../overlay/index.js';
|
|
4
|
+
import '../icon/index.js';
|
|
5
|
+
import '../panel/index.js';
|
|
6
|
+
import '../header/index.js';
|
|
7
|
+
import '../button/index.js';
|
|
8
8
|
import { Translate } from '@refinitiv-ui/translate';
|
|
9
|
-
import '@refinitiv-ui/phrasebook/lib/locale/en/dialog';
|
|
9
|
+
import '@refinitiv-ui/phrasebook/lib/locale/en/dialog.js';
|
|
10
10
|
/**
|
|
11
11
|
* Popup window, designed to contain and show any HTML content.
|
|
12
12
|
* It provides modal and dragging functionality,
|
|
@@ -20,17 +20,17 @@ import '@refinitiv-ui/phrasebook/lib/locale/en/dialog';
|
|
|
20
20
|
* @attr {boolean} [no-cancel-on-esc-key=false] - Prevents dialog to close when user presses ESC key
|
|
21
21
|
* @prop {boolean} [noCancelOnEscKey=false] - Prevents dialog to close when user presses ESC key
|
|
22
22
|
*
|
|
23
|
-
* @attr {string} x - Set a specific x coordinate of dialog
|
|
24
|
-
* @prop {string} x - Set a specific x coordinate of dialog
|
|
23
|
+
* @attr {string | undefined} x - Set a specific x coordinate of dialog
|
|
24
|
+
* @prop {string | undefined} x - Set a specific x coordinate of dialog
|
|
25
25
|
*
|
|
26
|
-
* @attr {string} y - Set a specific y coordinate of dialog
|
|
27
|
-
* @prop {string} y - Set a specific y coordinate of dialog
|
|
26
|
+
* @attr {string | undefined} y - Set a specific y coordinate of dialog
|
|
27
|
+
* @prop {string | undefined} y - Set a specific y coordinate of dialog
|
|
28
28
|
*
|
|
29
29
|
* @attr {boolean} full-screen - Set dialog to full screen
|
|
30
|
-
* @prop {boolean} fullScreen - Set dialog to full screen
|
|
30
|
+
* @prop {boolean} [fullScreen=false] - Set dialog to full screen
|
|
31
31
|
*
|
|
32
|
-
* @attr {string} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
33
|
-
* @prop {string} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
32
|
+
* @attr {string | undefined} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
33
|
+
* @prop {string | undefined} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
34
34
|
*
|
|
35
35
|
* @fires opened-changed - Fired when value of `opened` property is changed. Prevent default to stop default action
|
|
36
36
|
* @fires confirm - Fired when dialog is closed by user clicked a default OK button. Prevent default to stop default action
|
|
@@ -45,12 +45,12 @@ export declare class Dialog extends Overlay {
|
|
|
45
45
|
*/
|
|
46
46
|
static get version(): string;
|
|
47
47
|
/**
|
|
48
|
-
* A `
|
|
48
|
+
* A `CSSResultGroup` that will be used
|
|
49
49
|
* to style the host, slotted children
|
|
50
50
|
* and the internal template of the element.
|
|
51
|
-
* @
|
|
51
|
+
* @returns CSS template
|
|
52
52
|
*/
|
|
53
|
-
static get styles():
|
|
53
|
+
static get styles(): CSSResultGroup;
|
|
54
54
|
/**
|
|
55
55
|
* Set Header/Title of the dialog
|
|
56
56
|
*/
|
|
@@ -79,9 +79,6 @@ export declare class Dialog extends Overlay {
|
|
|
79
79
|
* Footer Element
|
|
80
80
|
*/
|
|
81
81
|
private footerElement;
|
|
82
|
-
/**
|
|
83
|
-
* @ignore
|
|
84
|
-
*/
|
|
85
82
|
noCancelOnOutsideClick: boolean;
|
|
86
83
|
/**
|
|
87
84
|
* @ignore
|
package/lib/dialog/index.js
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import '../
|
|
10
|
-
import '../
|
|
11
|
-
import '../
|
|
12
|
-
import '../
|
|
13
|
-
import
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { css, html } from '@refinitiv-ui/core';
|
|
3
|
+
import { customElement } from '@refinitiv-ui/core/lib/decorators/custom-element.js';
|
|
4
|
+
import { property } from '@refinitiv-ui/core/lib/decorators/property.js';
|
|
5
|
+
import { query } from '@refinitiv-ui/core/lib/decorators/query.js';
|
|
6
|
+
import { VERSION } from '../version.js';
|
|
7
|
+
import { isIE } from '@refinitiv-ui/utils/lib/browser.js';
|
|
8
|
+
import { deregister as draggableDeregister, register as draggableRegister } from './draggable-element.js';
|
|
9
|
+
import { Overlay } from '../overlay/index.js';
|
|
10
|
+
import '../icon/index.js';
|
|
11
|
+
import '../panel/index.js';
|
|
12
|
+
import '../header/index.js';
|
|
13
|
+
import '../button/index.js';
|
|
14
14
|
import { translate, TranslatePropertyKey } from '@refinitiv-ui/translate';
|
|
15
|
-
import '@refinitiv-ui/phrasebook/lib/locale/en/dialog';
|
|
16
|
-
import { VERSION } from '../';
|
|
17
|
-
// TODO: use metrics once available
|
|
18
|
-
const isIE = (/Trident/g).test(navigator.userAgent) || (/MSIE/g).test(navigator.userAgent);
|
|
15
|
+
import '@refinitiv-ui/phrasebook/lib/locale/en/dialog.js';
|
|
19
16
|
/**
|
|
20
17
|
* Popup window, designed to contain and show any HTML content.
|
|
21
18
|
* It provides modal and dragging functionality,
|
|
@@ -29,17 +26,17 @@ const isIE = (/Trident/g).test(navigator.userAgent) || (/MSIE/g).test(navigator.
|
|
|
29
26
|
* @attr {boolean} [no-cancel-on-esc-key=false] - Prevents dialog to close when user presses ESC key
|
|
30
27
|
* @prop {boolean} [noCancelOnEscKey=false] - Prevents dialog to close when user presses ESC key
|
|
31
28
|
*
|
|
32
|
-
* @attr {string} x - Set a specific x coordinate of dialog
|
|
33
|
-
* @prop {string} x - Set a specific x coordinate of dialog
|
|
29
|
+
* @attr {string | undefined} x - Set a specific x coordinate of dialog
|
|
30
|
+
* @prop {string | undefined} x - Set a specific x coordinate of dialog
|
|
34
31
|
*
|
|
35
|
-
* @attr {string} y - Set a specific y coordinate of dialog
|
|
36
|
-
* @prop {string} y - Set a specific y coordinate of dialog
|
|
32
|
+
* @attr {string | undefined} y - Set a specific y coordinate of dialog
|
|
33
|
+
* @prop {string | undefined} y - Set a specific y coordinate of dialog
|
|
37
34
|
*
|
|
38
35
|
* @attr {boolean} full-screen - Set dialog to full screen
|
|
39
|
-
* @prop {boolean} fullScreen - Set dialog to full screen
|
|
36
|
+
* @prop {boolean} [fullScreen=false] - Set dialog to full screen
|
|
40
37
|
*
|
|
41
|
-
* @attr {string} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
42
|
-
* @prop {string} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
38
|
+
* @attr {string | undefined} position-target - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
39
|
+
* @prop {string | undefined} positionTarget - Set position of dialog i.e. `top`, `right`, `left`, `bottom`, `center` or combination of theme e.g. `top right`.
|
|
43
40
|
*
|
|
44
41
|
* @fires opened-changed - Fired when value of `opened` property is changed. Prevent default to stop default action
|
|
45
42
|
* @fires confirm - Fired when dialog is closed by user clicked a default OK button. Prevent default to stop default action
|
|
@@ -58,9 +55,6 @@ let Dialog = class Dialog extends Overlay {
|
|
|
58
55
|
* Should the dialog be draggable
|
|
59
56
|
*/
|
|
60
57
|
this.draggable = false;
|
|
61
|
-
/**
|
|
62
|
-
* @ignore
|
|
63
|
-
*/
|
|
64
58
|
this.noCancelOnOutsideClick = true;
|
|
65
59
|
/**
|
|
66
60
|
* @ignore
|
|
@@ -79,13 +73,15 @@ let Dialog = class Dialog extends Overlay {
|
|
|
79
73
|
return VERSION;
|
|
80
74
|
}
|
|
81
75
|
/**
|
|
82
|
-
* A `
|
|
76
|
+
* A `CSSResultGroup` that will be used
|
|
83
77
|
* to style the host, slotted children
|
|
84
78
|
* and the internal template of the element.
|
|
85
|
-
* @
|
|
79
|
+
* @returns CSS template
|
|
86
80
|
*/
|
|
87
81
|
static get styles() {
|
|
88
|
-
return [
|
|
82
|
+
return [
|
|
83
|
+
super.styles,
|
|
84
|
+
css `
|
|
89
85
|
:host {
|
|
90
86
|
width: 400px;
|
|
91
87
|
display: flex;
|
|
@@ -117,7 +113,8 @@ let Dialog = class Dialog extends Overlay {
|
|
|
117
113
|
flex: none;
|
|
118
114
|
cursor: pointer;
|
|
119
115
|
}
|
|
120
|
-
`
|
|
116
|
+
`
|
|
117
|
+
];
|
|
121
118
|
}
|
|
122
119
|
disconnectedCallback() {
|
|
123
120
|
super.disconnectedCallback();
|
|
@@ -3,63 +3,58 @@
|
|
|
3
3
|
"tags": [
|
|
4
4
|
{
|
|
5
5
|
"name": "ef-email-field",
|
|
6
|
-
"description": "A form control element for email",
|
|
6
|
+
"description": "A form control element for email.",
|
|
7
7
|
"attributes": [
|
|
8
8
|
{
|
|
9
|
-
"name": "
|
|
10
|
-
"description": "Set
|
|
11
|
-
"type": "
|
|
12
|
-
"default": "
|
|
9
|
+
"name": "multiple",
|
|
10
|
+
"description": "Set to multiple mode, allows multiple emails in a single input",
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": "false"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"name": "
|
|
16
|
-
"description": "Set
|
|
17
|
-
"type": "
|
|
18
|
-
"default": "
|
|
15
|
+
"name": "disabled",
|
|
16
|
+
"description": "Set disabled state",
|
|
17
|
+
"type": "boolean",
|
|
18
|
+
"default": "false"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "error",
|
|
22
|
-
"description": "Set state
|
|
22
|
+
"description": "Set error state",
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": "false"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"description": "
|
|
29
|
-
"type": "
|
|
30
|
-
"default": "false"
|
|
27
|
+
"name": "icon",
|
|
28
|
+
"description": "Specify icon to display in input. Value can be icon name",
|
|
29
|
+
"type": "string | null"
|
|
31
30
|
},
|
|
32
31
|
{
|
|
33
|
-
"name": "
|
|
34
|
-
"description": "
|
|
32
|
+
"name": "icon-has-action",
|
|
33
|
+
"description": "Specify when icon need to be clickable",
|
|
35
34
|
"type": "boolean",
|
|
36
35
|
"default": "false"
|
|
37
36
|
},
|
|
38
37
|
{
|
|
39
|
-
"name": "
|
|
40
|
-
"description": "Set
|
|
41
|
-
"type": "
|
|
42
|
-
|
|
43
|
-
{
|
|
44
|
-
"name": "minlength",
|
|
45
|
-
"description": "Set character min limit",
|
|
46
|
-
"type": "number | null"
|
|
38
|
+
"name": "placeholder",
|
|
39
|
+
"description": "Set placeholder text",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"default": "\"\""
|
|
47
42
|
},
|
|
48
43
|
{
|
|
49
|
-
"name": "
|
|
50
|
-
"description": "Set
|
|
44
|
+
"name": "readonly",
|
|
45
|
+
"description": "Set readonly state",
|
|
51
46
|
"type": "boolean",
|
|
52
47
|
"default": "false"
|
|
53
48
|
},
|
|
54
49
|
{
|
|
55
|
-
"name": "
|
|
56
|
-
"description": "
|
|
57
|
-
"type": "
|
|
58
|
-
"default": "
|
|
50
|
+
"name": "transparent",
|
|
51
|
+
"description": "Disables all other states and border/background styles.",
|
|
52
|
+
"type": "boolean",
|
|
53
|
+
"default": "false"
|
|
59
54
|
},
|
|
60
55
|
{
|
|
61
|
-
"name": "
|
|
62
|
-
"description": "
|
|
56
|
+
"name": "warning",
|
|
57
|
+
"description": "Set warning state",
|
|
63
58
|
"type": "boolean",
|
|
64
59
|
"default": "false"
|
|
65
60
|
},
|
|
@@ -70,91 +65,76 @@
|
|
|
70
65
|
"default": "\"\""
|
|
71
66
|
},
|
|
72
67
|
{
|
|
73
|
-
"name": "
|
|
74
|
-
"description": "
|
|
75
|
-
"type": "boolean"
|
|
76
|
-
"default": "\"false\""
|
|
68
|
+
"name": "icon-has-action",
|
|
69
|
+
"description": "Specify when icon need to be clickable",
|
|
70
|
+
"type": "boolean"
|
|
77
71
|
},
|
|
78
72
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"description": "Set
|
|
81
|
-
"type": "
|
|
82
|
-
|
|
73
|
+
"name": "maxlength",
|
|
74
|
+
"description": "Set character max limit",
|
|
75
|
+
"type": "number"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "minlength",
|
|
79
|
+
"description": "Set character min limit",
|
|
80
|
+
"type": "number"
|
|
83
81
|
}
|
|
84
82
|
],
|
|
85
83
|
"properties": [
|
|
86
84
|
{
|
|
87
|
-
"name": "
|
|
88
|
-
"attribute": "
|
|
89
|
-
"description": "Set
|
|
90
|
-
"type": "
|
|
91
|
-
"default": "
|
|
85
|
+
"name": "multiple",
|
|
86
|
+
"attribute": "multiple",
|
|
87
|
+
"description": "Set to multiple mode, allows multiple emails in a single input",
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"default": "false"
|
|
92
90
|
},
|
|
93
91
|
{
|
|
94
|
-
"name": "
|
|
95
|
-
"attribute": "
|
|
96
|
-
"description": "Set
|
|
97
|
-
"type": "
|
|
98
|
-
"default": "
|
|
92
|
+
"name": "disabled",
|
|
93
|
+
"attribute": "disabled",
|
|
94
|
+
"description": "Set disabled state",
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"default": "false"
|
|
99
97
|
},
|
|
100
98
|
{
|
|
101
99
|
"name": "error",
|
|
102
100
|
"attribute": "error",
|
|
103
|
-
"description": "Set state
|
|
101
|
+
"description": "Set error state",
|
|
104
102
|
"type": "boolean",
|
|
105
103
|
"default": "false"
|
|
106
104
|
},
|
|
107
105
|
{
|
|
108
|
-
"name": "
|
|
109
|
-
"attribute": "
|
|
110
|
-
"description": "
|
|
111
|
-
"type": "
|
|
112
|
-
"default": "false"
|
|
106
|
+
"name": "icon",
|
|
107
|
+
"attribute": "icon",
|
|
108
|
+
"description": "Specify icon to display in input. Value can be icon name",
|
|
109
|
+
"type": "string | null"
|
|
113
110
|
},
|
|
114
111
|
{
|
|
115
|
-
"name": "
|
|
116
|
-
"attribute": "
|
|
117
|
-
"description": "
|
|
112
|
+
"name": "iconHasAction",
|
|
113
|
+
"attribute": "icon-has-action",
|
|
114
|
+
"description": "Specify when icon need to be clickable",
|
|
118
115
|
"type": "boolean",
|
|
119
116
|
"default": "false"
|
|
120
117
|
},
|
|
121
118
|
{
|
|
122
119
|
"name": "maxLength",
|
|
123
|
-
"attribute": "maxlength",
|
|
124
120
|
"description": "Set character max limit",
|
|
125
121
|
"type": "number | null"
|
|
126
122
|
},
|
|
127
123
|
{
|
|
128
124
|
"name": "minLength",
|
|
129
|
-
"attribute": "minlength",
|
|
130
125
|
"description": "Set character min limit",
|
|
131
126
|
"type": "number | null"
|
|
132
127
|
},
|
|
133
128
|
{
|
|
134
|
-
"name": "
|
|
135
|
-
"
|
|
136
|
-
"description": "Set to multiple mode, allows multiple emails in a single input",
|
|
137
|
-
"type": "boolean",
|
|
138
|
-
"default": "false"
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"name": "icon",
|
|
142
|
-
"attribute": "icon",
|
|
143
|
-
"description": "Specify icon to display in input. Value can be icon name",
|
|
129
|
+
"name": "pattern",
|
|
130
|
+
"description": "Set regular expression for input validation",
|
|
144
131
|
"type": "string",
|
|
145
132
|
"default": "\"\""
|
|
146
133
|
},
|
|
147
134
|
{
|
|
148
|
-
"name": "
|
|
149
|
-
"attribute": "
|
|
150
|
-
"description": "
|
|
151
|
-
"type": "boolean",
|
|
152
|
-
"default": "false"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "value",
|
|
156
|
-
"attribute": "value",
|
|
157
|
-
"description": "Input's value",
|
|
135
|
+
"name": "placeholder",
|
|
136
|
+
"attribute": "placeholder",
|
|
137
|
+
"description": "Set placeholder text",
|
|
158
138
|
"type": "string",
|
|
159
139
|
"default": "\"\""
|
|
160
140
|
},
|
|
@@ -163,14 +143,28 @@
|
|
|
163
143
|
"attribute": "readonly",
|
|
164
144
|
"description": "Set readonly state",
|
|
165
145
|
"type": "boolean",
|
|
166
|
-
"default": "
|
|
146
|
+
"default": "false"
|
|
167
147
|
},
|
|
168
148
|
{
|
|
169
|
-
"name": "
|
|
170
|
-
"attribute": "
|
|
171
|
-
"description": "
|
|
149
|
+
"name": "transparent",
|
|
150
|
+
"attribute": "transparent",
|
|
151
|
+
"description": "Disables all other states and border/background styles.",
|
|
172
152
|
"type": "boolean",
|
|
173
|
-
"default": "
|
|
153
|
+
"default": "false"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "warning",
|
|
157
|
+
"attribute": "warning",
|
|
158
|
+
"description": "Set warning state",
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"default": "false"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "value",
|
|
164
|
+
"attribute": "value",
|
|
165
|
+
"description": "Input's value",
|
|
166
|
+
"type": "string",
|
|
167
|
+
"default": "\"\""
|
|
174
168
|
}
|
|
175
169
|
],
|
|
176
170
|
"events": [
|
|
@@ -184,14 +178,7 @@
|
|
|
184
178
|
},
|
|
185
179
|
{
|
|
186
180
|
"name": "icon-click",
|
|
187
|
-
"description": "Dispatched
|
|
188
|
-
}
|
|
189
|
-
],
|
|
190
|
-
"methods": [
|
|
191
|
-
{
|
|
192
|
-
"name": "select",
|
|
193
|
-
"description": "Select the contents of input",
|
|
194
|
-
"params": []
|
|
181
|
+
"description": "Dispatched when icon is clicked"
|
|
195
182
|
}
|
|
196
183
|
]
|
|
197
184
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ef-email-field
|
|
2
|
+
|
|
3
|
+
A form control element for email.
|
|
4
|
+
|
|
5
|
+
## Attributes
|
|
6
|
+
|
|
7
|
+
| Attribute | Type | Description |
|
|
8
|
+
|-------------------|-----------|----------------------------------------|
|
|
9
|
+
| `icon-has-action` | `boolean` | Specify when icon need to be clickable |
|
|
10
|
+
| `maxlength` | `number` | Set character max limit |
|
|
11
|
+
| `minlength` | `number` | Set character min limit |
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
| Property | Attribute | Type | Default | Description |
|
|
16
|
+
|-----------------|-------------------|------------------|---------|--------------------------------------------------|
|
|
17
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
18
|
+
| `error` | `error` | `boolean` | false | Set error state |
|
|
19
|
+
| `icon` | `icon` | `string \| null` | null | Specify icon to display in input. Value can be icon name |
|
|
20
|
+
| `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
|
|
21
|
+
| `maxLength` | | `number \| null` | null | Set character max limit |
|
|
22
|
+
| `minLength` | | `number \| null` | null | Set character min limit |
|
|
23
|
+
| `multiple` | `multiple` | `boolean` | false | Set to multiple mode, allows multiple emails in a single input |
|
|
24
|
+
| `pattern` | | `string` | "" | Set regular expression for input validation |
|
|
25
|
+
| `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
|
|
26
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
27
|
+
| `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles. |
|
|
28
|
+
| `value` | `value` | `string` | "" | Input's value |
|
|
29
|
+
| `warning` | `warning` | `boolean` | false | Set warning state |
|
|
30
|
+
|
|
31
|
+
## Events
|
|
32
|
+
|
|
33
|
+
| Event | Description |
|
|
34
|
+
|-----------------|-------------------------------------|
|
|
35
|
+
| `error-changed` | Dispatched when error state changes |
|
|
36
|
+
| `icon-click` | Dispatched when icon is clicked |
|
|
37
|
+
| `value-changed` | Dispatched when value changes |
|