@refinitiv-ui/elements 5.12.2 → 6.0.0-next.2
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/README.md +4 -4
- package/lib/accordion/index.d.ts +5 -0
- package/lib/accordion/index.js +2 -2
- package/lib/accordion/themes/halo/dark/index.js +1 -1
- package/lib/accordion/themes/halo/light/index.js +1 -1
- package/lib/accordion/themes/solar/charcoal/index.js +1 -1
- package/lib/accordion/themes/solar/pearl/index.js +1 -1
- package/lib/appstate-bar/index.d.ts +11 -0
- package/lib/appstate-bar/index.js +8 -3
- 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/index.d.ts +5 -0
- package/lib/autosuggest/index.js +22 -12
- package/lib/autosuggest/themes/halo/dark/index.js +3 -3
- package/lib/autosuggest/themes/halo/light/index.js +3 -3
- package/lib/autosuggest/themes/solar/charcoal/index.js +3 -3
- package/lib/autosuggest/themes/solar/pearl/index.js +3 -3
- package/lib/button/index.d.ts +7 -13
- package/lib/button/index.js +8 -43
- package/lib/button/themes/halo/dark/index.js +1 -1
- package/lib/button/themes/halo/light/index.js +1 -1
- package/lib/button/themes/solar/charcoal/index.js +1 -1
- package/lib/button/themes/solar/pearl/index.js +1 -1
- package/lib/button-bar/index.d.ts +5 -0
- package/lib/button-bar/index.js +4 -5
- package/lib/button-bar/themes/halo/dark/index.js +1 -1
- package/lib/button-bar/themes/halo/light/index.js +1 -1
- package/lib/button-bar/themes/solar/charcoal/index.js +1 -1
- package/lib/button-bar/themes/solar/pearl/index.js +1 -1
- package/lib/calendar/constants.js +1 -1
- package/lib/calendar/index.d.ts +6 -1
- package/lib/calendar/index.js +39 -15
- package/lib/calendar/locales.js +5 -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 +1 -1
- package/lib/calendar/utils.js +5 -5
- package/lib/canvas/index.d.ts +5 -0
- package/lib/canvas/index.js +3 -4
- package/lib/card/index.d.ts +21 -0
- package/lib/card/index.js +37 -15
- package/lib/card/themes/halo/dark/index.js +3 -3
- package/lib/card/themes/halo/light/index.js +3 -3
- package/lib/card/themes/solar/charcoal/index.js +3 -3
- package/lib/card/themes/solar/pearl/index.js +3 -3
- package/lib/chart/index.d.ts +5 -0
- package/lib/chart/index.js +18 -22
- package/lib/chart/plugins/doughnut-center-label.js +6 -11
- package/lib/chart/themes/halo/dark/index.js +2 -2
- package/lib/chart/themes/halo/light/index.js +2 -2
- package/lib/chart/themes/solar/charcoal/index.js +2 -2
- package/lib/chart/themes/solar/pearl/index.js +2 -2
- package/lib/checkbox/index.d.ts +5 -0
- package/lib/checkbox/index.js +3 -3
- package/lib/checkbox/themes/halo/dark/index.js +2 -2
- package/lib/checkbox/themes/halo/light/index.js +2 -2
- package/lib/checkbox/themes/solar/charcoal/index.js +2 -2
- package/lib/checkbox/themes/solar/pearl/index.js +2 -2
- package/lib/clock/index.d.ts +5 -0
- package/lib/clock/index.js +6 -6
- package/lib/clock/utils/TickManager.js +2 -2
- package/lib/collapse/index.d.ts +5 -0
- package/lib/collapse/index.js +7 -9
- package/lib/collapse/themes/halo/dark/index.js +3 -3
- package/lib/collapse/themes/halo/light/index.js +3 -3
- package/lib/collapse/themes/solar/charcoal/index.js +3 -3
- package/lib/collapse/themes/solar/pearl/index.js +3 -3
- package/lib/color-dialog/elements/color-palettes.d.ts +5 -0
- package/lib/color-dialog/elements/color-palettes.js +1 -1
- package/lib/color-dialog/elements/grayscale-palettes.d.ts +5 -0
- package/lib/color-dialog/elements/grayscale-palettes.js +2 -2
- package/lib/color-dialog/elements/palettes.js +4 -5
- package/lib/color-dialog/helpers/value-model.js +1 -1
- package/lib/color-dialog/index.d.ts +6 -1
- package/lib/color-dialog/index.js +17 -12
- package/lib/color-dialog/themes/halo/dark/index.js +5 -5
- package/lib/color-dialog/themes/halo/light/index.js +5 -5
- package/lib/color-dialog/themes/solar/charcoal/index.js +5 -5
- package/lib/color-dialog/themes/solar/pearl/index.js +5 -5
- package/lib/combo-box/helpers/filter.d.ts +1 -1
- package/lib/combo-box/helpers/types.d.ts +1 -1
- package/lib/combo-box/index.d.ts +9 -4
- package/lib/combo-box/index.js +31 -14
- package/lib/combo-box/themes/halo/dark/index.js +5 -5
- package/lib/combo-box/themes/halo/light/index.js +5 -5
- package/lib/combo-box/themes/solar/charcoal/index.js +5 -5
- package/lib/combo-box/themes/solar/pearl/index.js +5 -5
- package/lib/counter/index.d.ts +11 -6
- package/lib/counter/index.js +8 -8
- package/lib/counter/themes/halo/dark/index.js +1 -1
- package/lib/counter/themes/halo/light/index.js +1 -1
- package/lib/counter/themes/solar/charcoal/index.js +1 -1
- package/lib/counter/themes/solar/pearl/index.js +1 -1
- package/lib/datetime-field/constants.d.ts +4 -0
- package/lib/datetime-field/constants.js +5 -0
- package/lib/datetime-field/custom-elements.json +345 -0
- package/lib/datetime-field/custom-elements.md +61 -0
- package/lib/datetime-field/index.d.ts +322 -0
- package/lib/datetime-field/index.js +660 -0
- package/lib/datetime-field/themes/halo/dark/index.js +3 -0
- package/lib/datetime-field/themes/halo/light/index.js +3 -0
- package/lib/datetime-field/themes/solar/charcoal/index.js +3 -0
- package/lib/datetime-field/themes/solar/pearl/index.js +3 -0
- package/lib/datetime-field/types.d.ts +10 -0
- package/lib/datetime-field/types.js +1 -0
- package/lib/datetime-field/utils.d.ts +25 -0
- package/lib/datetime-field/utils.js +79 -0
- package/lib/datetime-picker/index.d.ts +5 -0
- package/lib/datetime-picker/index.js +6 -7
- package/lib/datetime-picker/themes/halo/dark/index.js +5 -5
- package/lib/datetime-picker/themes/halo/light/index.js +5 -5
- package/lib/datetime-picker/themes/solar/charcoal/index.js +5 -5
- package/lib/datetime-picker/themes/solar/pearl/index.js +5 -5
- package/lib/datetime-picker/utils.js +1 -1
- package/lib/dialog/draggable-element.js +1 -2
- package/lib/dialog/index.d.ts +6 -1
- package/lib/dialog/index.js +5 -5
- package/lib/dialog/themes/halo/dark/index.js +5 -5
- package/lib/dialog/themes/halo/light/index.js +5 -5
- package/lib/dialog/themes/solar/charcoal/index.js +5 -5
- package/lib/dialog/themes/solar/pearl/index.js +5 -5
- package/lib/email-field/index.d.ts +6 -1
- package/lib/email-field/index.js +8 -3
- package/lib/email-field/themes/halo/dark/index.js +1 -1
- package/lib/email-field/themes/halo/light/index.js +1 -1
- package/lib/email-field/themes/solar/charcoal/index.js +1 -1
- package/lib/email-field/themes/solar/pearl/index.js +1 -1
- package/lib/flag/index.d.ts +5 -0
- package/lib/flag/index.js +3 -3
- package/lib/flag/utils/FlagLoader.d.ts +1 -1
- package/lib/flag/utils/FlagLoader.js +1 -1
- package/lib/header/index.d.ts +5 -0
- package/lib/header/index.js +2 -2
- package/lib/heatmap/helpers/color.d.ts +1 -1
- package/lib/heatmap/helpers/color.js +3 -5
- package/lib/heatmap/helpers/text.d.ts +1 -7
- package/lib/heatmap/helpers/text.js +1 -18
- package/lib/heatmap/index.d.ts +5 -0
- package/lib/heatmap/index.js +22 -30
- package/lib/heatmap/themes/halo/dark/index.js +2 -2
- package/lib/heatmap/themes/halo/light/index.js +2 -2
- package/lib/heatmap/themes/solar/charcoal/index.js +2 -2
- package/lib/heatmap/themes/solar/pearl/index.js +2 -2
- package/lib/icon/index.d.ts +5 -0
- package/lib/icon/index.js +3 -3
- package/lib/icon/utils/IconLoader.d.ts +1 -1
- package/lib/icon/utils/IconLoader.js +1 -1
- package/lib/interactive-chart/helpers/types.d.ts +1 -1
- package/lib/interactive-chart/index.d.ts +5 -12
- package/lib/interactive-chart/index.js +20 -36
- package/lib/interactive-chart/themes/halo/dark/index.js +1 -1
- package/lib/interactive-chart/themes/halo/light/index.js +1 -1
- package/lib/interactive-chart/themes/solar/charcoal/index.js +1 -1
- package/lib/interactive-chart/themes/solar/pearl/index.js +1 -1
- package/lib/item/helpers/types.d.ts +1 -1
- package/lib/item/index.d.ts +24 -17
- package/lib/item/index.js +45 -48
- package/lib/item/themes/halo/dark/index.js +2 -2
- package/lib/item/themes/halo/light/index.js +2 -2
- package/lib/item/themes/solar/charcoal/index.js +2 -2
- package/lib/item/themes/solar/pearl/index.js +2 -2
- package/lib/label/index.d.ts +6 -1
- package/lib/label/index.js +6 -6
- package/lib/label/themes/halo/dark/index.js +1 -1
- package/lib/label/themes/halo/light/index.js +1 -1
- package/lib/label/themes/solar/charcoal/index.js +1 -1
- package/lib/label/themes/solar/pearl/index.js +1 -1
- package/lib/layout/index.d.ts +5 -0
- package/lib/layout/index.js +2 -2
- package/lib/led-gauge/index.d.ts +5 -0
- package/lib/led-gauge/index.js +2 -2
- package/lib/led-gauge/themes/halo/dark/index.js +1 -1
- package/lib/led-gauge/themes/halo/light/index.js +1 -1
- package/lib/led-gauge/themes/solar/charcoal/index.js +1 -1
- package/lib/led-gauge/themes/solar/pearl/index.js +1 -1
- package/lib/list/custom-elements.json +0 -13
- package/lib/list/custom-elements.md +9 -10
- package/lib/list/helpers/item-id.d.ts +8 -0
- package/lib/list/helpers/item-id.js +13 -0
- package/lib/list/helpers/{list-renderer.d.ts → renderer.d.ts} +4 -0
- package/lib/list/helpers/{list-renderer.js → renderer.js} +8 -0
- package/lib/list/helpers/types.d.ts +1 -1
- package/lib/list/index.d.ts +18 -12
- package/lib/list/index.js +30 -29
- package/lib/list/renderer.d.ts +1 -1
- package/lib/list/themes/halo/dark/index.js +2 -2
- package/lib/list/themes/halo/light/index.js +2 -2
- package/lib/list/themes/solar/charcoal/index.js +2 -2
- package/lib/list/themes/solar/pearl/index.js +2 -2
- package/lib/loader/index.d.ts +6 -0
- package/lib/loader/index.js +5 -1
- package/lib/multi-input/helpers/types.d.ts +1 -1
- package/lib/multi-input/index.d.ts +5 -0
- package/lib/multi-input/index.js +6 -7
- package/lib/multi-input/themes/halo/dark/index.js +2 -2
- package/lib/multi-input/themes/halo/light/index.js +2 -2
- package/lib/multi-input/themes/solar/charcoal/index.js +2 -2
- package/lib/multi-input/themes/solar/pearl/index.js +2 -2
- package/lib/notification/elements/notification-tray.d.ts +5 -0
- package/lib/notification/elements/notification-tray.js +4 -4
- package/lib/notification/elements/notification.d.ts +15 -0
- package/lib/notification/elements/notification.js +12 -3
- package/lib/notification/themes/halo/dark/index.js +1 -1
- package/lib/notification/themes/halo/light/index.js +1 -1
- package/lib/notification/themes/solar/charcoal/index.js +1 -1
- package/lib/notification/themes/solar/pearl/index.js +1 -1
- package/lib/number-field/index.d.ts +8 -3
- package/lib/number-field/index.js +14 -4
- package/lib/number-field/themes/halo/dark/index.js +1 -1
- package/lib/number-field/themes/halo/light/index.js +1 -1
- 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/elements/overlay-backdrop.d.ts +5 -0
- package/lib/overlay/elements/overlay-backdrop.js +2 -2
- package/lib/overlay/elements/overlay-viewport.d.ts +5 -0
- package/lib/overlay/elements/overlay-viewport.js +1 -1
- package/lib/overlay/elements/overlay.d.ts +5 -0
- package/lib/overlay/elements/overlay.js +7 -5
- package/lib/overlay/managers/focus-manager.js +11 -6
- package/lib/overlay/managers/interaction-lock-manager.js +1 -1
- package/lib/overlay/managers/viewport-manager.js +4 -5
- package/lib/overlay/managers/zindex-manager.js +1 -1
- package/lib/overlay-menu/helpers/types.d.ts +7 -1
- package/lib/overlay-menu/helpers/types.js +7 -1
- package/lib/overlay-menu/index.d.ts +14 -4
- package/lib/overlay-menu/index.js +57 -29
- package/lib/overlay-menu/managers/menu-manager.js +2 -1
- package/lib/overlay-menu/themes/halo/dark/index.js +3 -3
- package/lib/overlay-menu/themes/halo/light/index.js +3 -3
- package/lib/overlay-menu/themes/solar/charcoal/index.js +3 -3
- package/lib/overlay-menu/themes/solar/pearl/index.js +3 -3
- package/lib/pagination/index.d.ts +79 -91
- package/lib/pagination/index.js +205 -239
- package/lib/pagination/themes/halo/dark/index.js +4 -5
- package/lib/pagination/themes/halo/light/index.js +4 -5
- package/lib/pagination/themes/solar/charcoal/index.js +4 -5
- package/lib/pagination/themes/solar/pearl/index.js +4 -5
- package/lib/panel/index.d.ts +5 -0
- package/lib/panel/index.js +2 -2
- package/lib/password-field/index.d.ts +7 -2
- package/lib/password-field/index.js +7 -4
- package/lib/password-field/themes/halo/dark/index.js +1 -1
- package/lib/password-field/themes/halo/light/index.js +1 -1
- 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/index.d.ts +21 -0
- package/lib/pill/index.js +36 -5
- package/lib/pill/themes/halo/dark/index.js +2 -2
- package/lib/pill/themes/halo/light/index.js +2 -2
- package/lib/pill/themes/solar/charcoal/index.js +2 -2
- package/lib/pill/themes/solar/pearl/index.js +2 -2
- package/lib/progress-bar/index.d.ts +5 -0
- package/lib/progress-bar/index.js +3 -3
- package/lib/radio-button/index.d.ts +5 -0
- package/lib/radio-button/index.js +3 -3
- package/lib/radio-button/radio-button-registry.d.ts +1 -1
- package/lib/radio-button/radio-button-registry.js +4 -2
- package/lib/radio-button/themes/halo/dark/index.js +1 -1
- package/lib/radio-button/themes/halo/light/index.js +1 -1
- package/lib/radio-button/themes/solar/charcoal/index.js +1 -1
- package/lib/radio-button/themes/solar/pearl/index.js +1 -1
- package/lib/rating/index.d.ts +5 -0
- package/lib/rating/index.js +4 -4
- package/lib/search-field/index.d.ts +7 -2
- package/lib/search-field/index.js +8 -4
- package/lib/search-field/themes/halo/dark/index.js +1 -1
- package/lib/search-field/themes/halo/light/index.js +1 -1
- 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/index.d.ts +5 -0
- package/lib/select/index.js +11 -14
- package/lib/select/themes/halo/dark/index.js +3 -3
- package/lib/select/themes/halo/light/index.js +3 -3
- package/lib/select/themes/solar/charcoal/index.js +3 -3
- package/lib/select/themes/solar/pearl/index.js +3 -3
- package/lib/sidebar-layout/index.d.ts +5 -0
- package/lib/sidebar-layout/index.js +4 -4
- package/lib/sidebar-layout/themes/halo/dark/index.js +1 -1
- package/lib/sidebar-layout/themes/halo/light/index.js +1 -1
- package/lib/sidebar-layout/themes/solar/charcoal/index.js +1 -1
- package/lib/sidebar-layout/themes/solar/pearl/index.js +1 -1
- package/lib/slider/constants.d.ts +15 -0
- package/lib/slider/constants.js +18 -0
- package/lib/slider/index.d.ts +55 -80
- package/lib/slider/index.js +365 -460
- package/lib/slider/themes/halo/dark/index.js +1 -1
- package/lib/slider/themes/halo/light/index.js +1 -1
- package/lib/slider/themes/solar/charcoal/index.js +1 -1
- package/lib/slider/themes/solar/pearl/index.js +1 -1
- package/lib/slider/utils.d.ts +35 -0
- package/lib/slider/utils.js +54 -0
- package/lib/sparkline/index.d.ts +5 -0
- package/lib/sparkline/index.js +9 -10
- package/lib/swing-gauge/index.d.ts +5 -0
- package/lib/swing-gauge/index.js +14 -8
- package/lib/swing-gauge/themes/halo/dark/index.js +1 -1
- package/lib/swing-gauge/themes/halo/light/index.js +1 -1
- package/lib/swing-gauge/themes/solar/charcoal/index.js +1 -1
- package/lib/swing-gauge/themes/solar/pearl/index.js +1 -1
- package/lib/tab/index.d.ts +5 -0
- package/lib/tab/index.js +4 -4
- package/lib/tab/themes/halo/dark/index.js +2 -2
- package/lib/tab/themes/halo/light/index.js +2 -2
- package/lib/tab/themes/solar/charcoal/index.js +2 -2
- package/lib/tab/themes/solar/pearl/index.js +2 -2
- package/lib/tab-bar/index.d.ts +5 -0
- package/lib/tab-bar/index.js +6 -6
- package/lib/tab-bar/themes/halo/dark/index.js +2 -2
- package/lib/tab-bar/themes/halo/light/index.js +2 -2
- package/lib/tab-bar/themes/solar/charcoal/index.js +2 -2
- package/lib/tab-bar/themes/solar/pearl/index.js +2 -2
- package/lib/text-field/index.d.ts +19 -1
- package/lib/text-field/index.js +35 -11
- package/lib/text-field/themes/halo/dark/index.js +1 -1
- package/lib/text-field/themes/halo/light/index.js +1 -1
- 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/index.d.ts +6 -1
- package/lib/time-picker/index.js +11 -11
- package/lib/time-picker/themes/halo/dark/index.js +2 -2
- package/lib/time-picker/themes/halo/light/index.js +2 -2
- package/lib/time-picker/themes/solar/charcoal/index.js +2 -2
- package/lib/time-picker/themes/solar/pearl/index.js +2 -2
- package/lib/toggle/index.d.ts +5 -0
- package/lib/toggle/index.js +2 -2
- package/lib/tooltip/elements/tooltip-element.d.ts +1 -2
- package/lib/tooltip/index.d.ts +6 -0
- package/lib/tooltip/index.js +7 -8
- package/lib/tooltip/managers/tooltip-manager.js +2 -2
- package/lib/tooltip/themes/halo/dark/index.js +1 -1
- package/lib/tooltip/themes/halo/light/index.js +1 -1
- package/lib/tooltip/themes/solar/charcoal/index.js +1 -1
- package/lib/tooltip/themes/solar/pearl/index.js +1 -1
- package/lib/tornado-chart/elements/tornado-chart.d.ts +5 -0
- package/lib/tornado-chart/elements/tornado-chart.js +2 -2
- package/lib/tornado-chart/elements/tornado-item.d.ts +5 -0
- package/lib/tornado-chart/elements/tornado-item.js +3 -3
- package/lib/tornado-chart/themes/halo/dark/index.js +2 -2
- package/lib/tornado-chart/themes/halo/light/index.js +2 -2
- package/lib/tornado-chart/themes/solar/charcoal/index.js +2 -2
- package/lib/tornado-chart/themes/solar/pearl/index.js +2 -2
- package/lib/tree/elements/tree-item.d.ts +8 -3
- package/lib/tree/elements/tree-item.js +5 -6
- package/lib/tree/elements/tree.d.ts +7 -3
- package/lib/tree/elements/tree.js +6 -7
- package/lib/tree/helpers/renderer.d.ts +4 -0
- package/lib/tree/helpers/renderer.js +20 -13
- package/lib/tree/helpers/types.d.ts +1 -1
- package/lib/tree/managers/tree-manager.d.ts +1 -1
- package/lib/tree/themes/halo/dark/index.js +4 -4
- package/lib/tree/themes/halo/light/index.js +4 -4
- package/lib/tree/themes/solar/charcoal/index.js +4 -4
- package/lib/tree/themes/solar/pearl/index.js +4 -4
- package/lib/tree-select/index.d.ts +8 -7
- package/lib/tree-select/index.js +39 -38
- package/lib/tree-select/themes/halo/dark/index.js +9 -9
- package/lib/tree-select/themes/halo/light/index.js +9 -9
- package/lib/tree-select/themes/solar/charcoal/index.js +9 -9
- package/lib/tree-select/themes/solar/pearl/index.js +9 -9
- package/lib/version.js +1 -1
- package/package.json +35 -295
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "experimental",
|
|
3
|
+
"tags": [
|
|
4
|
+
{
|
|
5
|
+
"name": "ef-datetime-field",
|
|
6
|
+
"description": "A form control element for datetime input.",
|
|
7
|
+
"attributes": [
|
|
8
|
+
{
|
|
9
|
+
"name": "min",
|
|
10
|
+
"description": "Set minimum date.\nThis value must follow the `format` and be less\nthan or equal to the value of the `max` attribute",
|
|
11
|
+
"type": "string | null"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "max",
|
|
15
|
+
"description": "Set maximum date.\nThis value must follow the `format` and be greater\nthan or equal to the value of the `min` attribute",
|
|
16
|
+
"type": "string | null"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "timepicker",
|
|
20
|
+
"description": "Toggle to display the time picker",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"default": "false"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "show-seconds",
|
|
26
|
+
"description": "Toggle to display the seconds",
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": "false"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "am-pm",
|
|
32
|
+
"description": "Overrides 12hr time display format",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": "false"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "value",
|
|
38
|
+
"description": "Current date time value",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"default": "\"\""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "disabled",
|
|
44
|
+
"description": "Set disabled state",
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": "false"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "error",
|
|
50
|
+
"description": "Set error state",
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": "false"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "icon",
|
|
56
|
+
"description": "Specify icon to display in input. Value can be icon name",
|
|
57
|
+
"type": "string | null"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "icon-has-action",
|
|
61
|
+
"description": "Specify when icon need to be clickable",
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"default": "false"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "placeholder",
|
|
67
|
+
"description": "Set placeholder text",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"default": "\"\""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "readonly",
|
|
73
|
+
"description": "Set readonly state",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": "false"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "transparent",
|
|
79
|
+
"description": "Disables all other states and border/background styles.",
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"default": "false"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "warning",
|
|
85
|
+
"description": "Set warning state",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": "false"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "icon-has-action",
|
|
91
|
+
"description": "Specify when icon need to be clickable",
|
|
92
|
+
"type": "boolean"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "maxlength",
|
|
96
|
+
"description": "Set character max limit",
|
|
97
|
+
"type": "number"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "minlength",
|
|
101
|
+
"description": "Set character min limit",
|
|
102
|
+
"type": "number"
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"properties": [
|
|
106
|
+
{
|
|
107
|
+
"name": "min",
|
|
108
|
+
"attribute": "min",
|
|
109
|
+
"description": "Set minimum date.\nThis value must follow the `format` and be less\nthan or equal to the value of the `max` attribute",
|
|
110
|
+
"type": "string | null"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "max",
|
|
114
|
+
"attribute": "max",
|
|
115
|
+
"description": "Set maximum date.\nThis value must follow the `format` and be greater\nthan or equal to the value of the `min` attribute",
|
|
116
|
+
"type": "string | null"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "timepicker",
|
|
120
|
+
"attribute": "timepicker",
|
|
121
|
+
"description": "Toggle to display the time picker",
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"default": "false"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "showSeconds",
|
|
127
|
+
"attribute": "show-seconds",
|
|
128
|
+
"description": "Toggle to display the seconds",
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"default": "false"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "amPm",
|
|
134
|
+
"attribute": "am-pm",
|
|
135
|
+
"description": "Overrides 12hr time display format",
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"default": "false"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "formatOptions",
|
|
141
|
+
"description": "Set the datetime format options based on\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat\n`formatOptions` overrides `timepicker` and `showSeconds` properties.\nNote: time-zone is not supported"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "value",
|
|
145
|
+
"attribute": "value",
|
|
146
|
+
"description": "Current date time value",
|
|
147
|
+
"type": "string",
|
|
148
|
+
"default": "\"\""
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "valueAsNumber",
|
|
152
|
+
"description": "Returns the value of the element, interpreted as double number",
|
|
153
|
+
"type": "number"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "valueAsDate",
|
|
157
|
+
"description": "Returns the value of the element, interpreted as Date"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "decorateInputMap (readonly)"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "disabled",
|
|
164
|
+
"attribute": "disabled",
|
|
165
|
+
"description": "Set disabled state",
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"default": "false"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "error",
|
|
171
|
+
"attribute": "error",
|
|
172
|
+
"description": "Set error state",
|
|
173
|
+
"type": "boolean",
|
|
174
|
+
"default": "false"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "icon",
|
|
178
|
+
"attribute": "icon",
|
|
179
|
+
"description": "Specify icon to display in input. Value can be icon name",
|
|
180
|
+
"type": "string | null"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "iconHasAction",
|
|
184
|
+
"attribute": "icon-has-action",
|
|
185
|
+
"description": "Specify when icon need to be clickable",
|
|
186
|
+
"type": "boolean",
|
|
187
|
+
"default": "false"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "maxLength",
|
|
191
|
+
"description": "Set character max limit",
|
|
192
|
+
"type": "number | null"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "minLength",
|
|
196
|
+
"description": "Set character min limit",
|
|
197
|
+
"type": "number | null"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "pattern",
|
|
201
|
+
"description": "Set regular expression for input validation",
|
|
202
|
+
"type": "string",
|
|
203
|
+
"default": "\"\""
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "placeholder",
|
|
207
|
+
"attribute": "placeholder",
|
|
208
|
+
"description": "Set placeholder text",
|
|
209
|
+
"type": "string",
|
|
210
|
+
"default": "\"\""
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "readonly",
|
|
214
|
+
"attribute": "readonly",
|
|
215
|
+
"description": "Set readonly state",
|
|
216
|
+
"type": "boolean",
|
|
217
|
+
"default": "false"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "transparent",
|
|
221
|
+
"attribute": "transparent",
|
|
222
|
+
"description": "Disables all other states and border/background styles.",
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"default": "false"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"name": "warning",
|
|
228
|
+
"attribute": "warning",
|
|
229
|
+
"description": "Set warning state",
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"default": "false"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"events": [
|
|
235
|
+
{
|
|
236
|
+
"name": "value-changed",
|
|
237
|
+
"description": "Dispatched when value changes"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "error-changed",
|
|
241
|
+
"description": "Dispatched when error state changes"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "icon-click",
|
|
245
|
+
"description": "Dispatched when icon is clicked"
|
|
246
|
+
}
|
|
247
|
+
],
|
|
248
|
+
"methods": [
|
|
249
|
+
{
|
|
250
|
+
"name": "willUpdate",
|
|
251
|
+
"description": "Updates the element",
|
|
252
|
+
"params": [
|
|
253
|
+
{
|
|
254
|
+
"name": "changedProperties",
|
|
255
|
+
"description": "Properties that has changed",
|
|
256
|
+
"type": "PropertyValues"
|
|
257
|
+
}
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "shouldSyncInputValue",
|
|
262
|
+
"description": "",
|
|
263
|
+
"params": [
|
|
264
|
+
{
|
|
265
|
+
"name": "changedProperties",
|
|
266
|
+
"type": "PropertyValues"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "syncInputValue",
|
|
272
|
+
"description": "",
|
|
273
|
+
"params": [
|
|
274
|
+
{
|
|
275
|
+
"name": "changedProperties",
|
|
276
|
+
"type": "PropertyValues"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "shouldValidateInput",
|
|
282
|
+
"description": "",
|
|
283
|
+
"params": [
|
|
284
|
+
{
|
|
285
|
+
"name": "changedProperties",
|
|
286
|
+
"type": "PropertyValues"
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "validateInput",
|
|
292
|
+
"description": "",
|
|
293
|
+
"params": []
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "isValidValue",
|
|
297
|
+
"description": "",
|
|
298
|
+
"params": [
|
|
299
|
+
{
|
|
300
|
+
"name": "value"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "warnInvalidValue",
|
|
306
|
+
"description": "",
|
|
307
|
+
"params": [
|
|
308
|
+
{
|
|
309
|
+
"name": "value"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "setValueAndNotify",
|
|
315
|
+
"description": "",
|
|
316
|
+
"params": [
|
|
317
|
+
{
|
|
318
|
+
"name": "value"
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "checkValidity",
|
|
324
|
+
"description": "Returns true if an input element contains valid data.",
|
|
325
|
+
"params": []
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"name": "reportValidity",
|
|
329
|
+
"description": "Validate input. Mark as error if input is invalid",
|
|
330
|
+
"params": []
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "onPossibleValueChange",
|
|
334
|
+
"description": "",
|
|
335
|
+
"params": [
|
|
336
|
+
{
|
|
337
|
+
"name": "event",
|
|
338
|
+
"type": "InputEvent"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
]
|
|
345
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# ef-datetime-field
|
|
2
|
+
|
|
3
|
+
A form control element for datetime input.
|
|
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
|
+
| `amPm` | `am-pm` | `boolean` | false | Overrides 12hr time display format |
|
|
18
|
+
| `decorateInputMap (readonly)` | | | | |
|
|
19
|
+
| `disabled` | `disabled` | `boolean` | false | Set disabled state |
|
|
20
|
+
| `error` | `error` | `boolean` | false | Set error state |
|
|
21
|
+
| `formatOptions` | | | null | Set the datetime format options based on<br />https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat<br />`formatOptions` overrides `timepicker` and `showSeconds` properties.<br />Note: time-zone is not supported |
|
|
22
|
+
| `icon` | `icon` | `string \| null` | null | Specify icon to display in input. Value can be icon name |
|
|
23
|
+
| `iconHasAction` | `icon-has-action` | `boolean` | false | Specify when icon need to be clickable |
|
|
24
|
+
| `max` | `max` | `string \| null` | null | Set maximum date.<br />This value must follow the `format` and be greater<br />than or equal to the value of the `min` attribute |
|
|
25
|
+
| `maxLength` | | `number \| null` | null | Set character max limit |
|
|
26
|
+
| `min` | `min` | `string \| null` | null | Set minimum date.<br />This value must follow the `format` and be less<br />than or equal to the value of the `max` attribute |
|
|
27
|
+
| `minLength` | | `number \| null` | null | Set character min limit |
|
|
28
|
+
| `pattern` | | `string` | "" | Set regular expression for input validation |
|
|
29
|
+
| `placeholder` | `placeholder` | `string` | "" | Set placeholder text |
|
|
30
|
+
| `readonly` | `readonly` | `boolean` | false | Set readonly state |
|
|
31
|
+
| `showSeconds` | `show-seconds` | `boolean` | false | Toggle to display the seconds |
|
|
32
|
+
| `timepicker` | `timepicker` | `boolean` | false | Toggle to display the time picker |
|
|
33
|
+
| `transparent` | `transparent` | `boolean` | false | Disables all other states and border/background styles. |
|
|
34
|
+
| `value` | `value` | `string` | "" | Current date time value |
|
|
35
|
+
| `valueAsDate` | | | | Returns the value of the element, interpreted as Date |
|
|
36
|
+
| `valueAsNumber` | | `number` | | Returns the value of the element, interpreted as double number |
|
|
37
|
+
| `warning` | `warning` | `boolean` | false | Set warning state |
|
|
38
|
+
|
|
39
|
+
## Methods
|
|
40
|
+
|
|
41
|
+
| Method | Type | Description |
|
|
42
|
+
|-------------------------|-------------------------------------------------|--------------------------------------------------|
|
|
43
|
+
| `checkValidity` | `(): boolean` | Returns true if an input element contains valid data. |
|
|
44
|
+
| `isValidValue` | `(value: string): boolean` | |
|
|
45
|
+
| `onPossibleValueChange` | `(event: any): void` | |
|
|
46
|
+
| `reportValidity` | `(): boolean` | Validate input. Mark as error if input is invalid |
|
|
47
|
+
| `setValueAndNotify` | `(value: string): void` | |
|
|
48
|
+
| `shouldSyncInputValue` | `(changedProperties: any): boolean` | |
|
|
49
|
+
| `shouldValidateInput` | `(changedProperties: any): boolean` | |
|
|
50
|
+
| `syncInputValue` | `{ (changedProperties: any): void; (): void; }` | |
|
|
51
|
+
| `validateInput` | `(): void` | |
|
|
52
|
+
| `warnInvalidValue` | `(value: string): void` | |
|
|
53
|
+
| `willUpdate` | `(changedProperties: any): void` | Updates the element<br /><br />**changedProperties**: Properties that has changed |
|
|
54
|
+
|
|
55
|
+
## Events
|
|
56
|
+
|
|
57
|
+
| Event | Description |
|
|
58
|
+
|-----------------|-------------------------------------|
|
|
59
|
+
| `error-changed` | Dispatched when error state changes |
|
|
60
|
+
| `icon-click` | Dispatched when icon is clicked |
|
|
61
|
+
| `value-changed` | Dispatched when value changes |
|