@ui5/webcomponents 1.9.3 → 1.10.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 +0 -8
- package/dist/Avatar.d.ts +251 -0
- package/dist/Avatar.js +203 -406
- package/dist/Avatar.js.map +1 -0
- package/dist/AvatarGroup.js +8 -8
- package/dist/Badge.d.ts +82 -0
- package/dist/Badge.js +65 -117
- package/dist/Badge.js.map +1 -0
- package/dist/Breadcrumbs.d.ts +200 -0
- package/dist/Breadcrumbs.js +438 -584
- package/dist/Breadcrumbs.js.map +1 -0
- package/dist/BreadcrumbsItem.d.ts +73 -0
- package/dist/BreadcrumbsItem.js +33 -87
- package/dist/BreadcrumbsItem.js.map +1 -0
- package/dist/BusyIndicator.js +6 -7
- package/dist/Button.d.ts +257 -0
- package/dist/Button.js +236 -456
- package/dist/Button.js.map +1 -0
- package/dist/Calendar.d.ts +251 -0
- package/dist/Calendar.js +266 -350
- package/dist/Calendar.js.map +1 -0
- package/dist/CalendarDate.d.ts +28 -0
- package/dist/CalendarDate.js +20 -30
- package/dist/CalendarDate.js.map +1 -0
- package/dist/CalendarHeader.d.ts +87 -0
- package/dist/CalendarHeader.js +144 -198
- package/dist/CalendarHeader.js.map +1 -0
- package/dist/CalendarPart.d.ts +53 -0
- package/dist/CalendarPart.js +71 -92
- package/dist/CalendarPart.js.map +1 -0
- package/dist/Card.d.ts +91 -0
- package/dist/Card.js +68 -123
- package/dist/Card.js.map +1 -0
- package/dist/CardHeader.d.ts +123 -0
- package/dist/CardHeader.js +152 -240
- package/dist/CardHeader.js.map +1 -0
- package/dist/Carousel.js +33 -11
- package/dist/CheckBox.d.ts +256 -0
- package/dist/CheckBox.js +219 -410
- package/dist/CheckBox.js.map +1 -0
- package/dist/ColorPalette.d.ts +140 -0
- package/dist/ColorPalette.js +362 -455
- package/dist/ColorPalette.js.map +1 -0
- package/dist/ColorPaletteItem.d.ts +68 -0
- package/dist/ColorPaletteItem.js +66 -114
- package/dist/ColorPaletteItem.js.map +1 -0
- package/dist/ColorPalettePopover.d.ts +127 -0
- package/dist/ColorPalettePopover.js +144 -203
- package/dist/ColorPalettePopover.js.map +1 -0
- package/dist/ColorPicker.d.ts +147 -0
- package/dist/ColorPicker.js +371 -556
- package/dist/ColorPicker.js.map +1 -0
- package/dist/ComboBox.js +9 -9
- package/dist/ComboBoxGroupItem.js +6 -6
- package/dist/ComboBoxItem.js +4 -4
- package/dist/CustomListItem.d.ts +44 -0
- package/dist/CustomListItem.js +52 -79
- package/dist/CustomListItem.js.map +1 -0
- package/dist/DateComponentBase.d.ts +83 -0
- package/dist/DateComponentBase.js +101 -143
- package/dist/DateComponentBase.js.map +1 -0
- package/dist/DatePicker.d.ts +452 -0
- package/dist/DatePicker.js +540 -737
- package/dist/DatePicker.js.map +1 -0
- package/dist/DateRangePicker.d.ts +169 -0
- package/dist/DateRangePicker.js +269 -315
- package/dist/DateRangePicker.js.map +1 -0
- package/dist/DateTimePicker.d.ts +207 -0
- package/dist/DateTimePicker.js +254 -339
- package/dist/DateTimePicker.js.map +1 -0
- package/dist/DayPicker.d.ts +243 -0
- package/dist/DayPicker.js +605 -730
- package/dist/DayPicker.js.map +1 -0
- package/dist/Dialog.d.ts +238 -0
- package/dist/Dialog.js +380 -606
- package/dist/Dialog.js.map +1 -0
- package/dist/DurationPicker.js +5 -5
- package/dist/FileUploader.d.ts +238 -0
- package/dist/FileUploader.js +305 -489
- package/dist/FileUploader.js.map +1 -0
- package/dist/Filters.d.ts +5 -0
- package/dist/Filters.js +10 -21
- package/dist/Filters.js.map +1 -0
- package/dist/GroupHeaderListItem.d.ts +45 -0
- package/dist/GroupHeaderListItem.js +42 -76
- package/dist/GroupHeaderListItem.js.map +1 -0
- package/dist/Icon.d.ts +252 -0
- package/dist/Icon.js +179 -306
- package/dist/Icon.js.map +1 -0
- package/dist/Input.d.ts +607 -0
- package/dist/Input.js +1095 -1627
- package/dist/Input.js.map +1 -0
- package/dist/Interfaces.d.ts +161 -0
- package/dist/Interfaces.js +45 -85
- package/dist/Interfaces.js.map +1 -0
- package/dist/Label.d.ts +98 -0
- package/dist/Label.js +63 -124
- package/dist/Label.js.map +1 -0
- package/dist/Link.d.ts +222 -0
- package/dist/Link.js +177 -358
- package/dist/Link.js.map +1 -0
- package/dist/List.d.ts +383 -0
- package/dist/List.js +706 -1029
- package/dist/List.js.map +1 -0
- package/dist/ListItem.d.ts +201 -0
- package/dist/ListItem.js +298 -407
- package/dist/ListItem.js.map +1 -0
- package/dist/ListItemBase.d.ts +61 -0
- package/dist/ListItemBase.js +114 -167
- package/dist/ListItemBase.js.map +1 -0
- package/dist/Menu.d.ts +187 -0
- package/dist/Menu.js +428 -453
- package/dist/Menu.js.map +1 -0
- package/dist/MenuItem.d.ts +124 -0
- package/dist/MenuItem.js +66 -166
- package/dist/MenuItem.js.map +1 -0
- package/dist/MessageStrip.d.ts +135 -0
- package/dist/MessageStrip.js +119 -207
- package/dist/MessageStrip.js.map +1 -0
- package/dist/MonthPicker.d.ts +109 -0
- package/dist/MonthPicker.js +260 -285
- package/dist/MonthPicker.js.map +1 -0
- package/dist/MultiComboBox.js +13 -11
- package/dist/MultiComboBoxGroupItem.js +6 -6
- package/dist/MultiComboBoxItem.js +4 -4
- package/dist/MultiInput.js +13 -10
- package/dist/Option.js +6 -6
- package/dist/Panel.d.ts +238 -0
- package/dist/Panel.js +230 -405
- package/dist/Panel.js.map +1 -0
- package/dist/Popover.d.ts +332 -0
- package/dist/Popover.js +520 -766
- package/dist/Popover.js.map +1 -0
- package/dist/Popup.d.ts +293 -0
- package/dist/Popup.js +404 -576
- package/dist/Popup.js.map +1 -0
- package/dist/ProgressIndicator.d.ts +121 -0
- package/dist/ProgressIndicator.js +121 -207
- package/dist/ProgressIndicator.js.map +1 -0
- package/dist/RadioButton.js +7 -8
- package/dist/RadioButtonGroup.js +1 -1
- package/dist/RangeSlider.d.ts +363 -0
- package/dist/RangeSlider.js +682 -757
- package/dist/RangeSlider.js.map +1 -0
- package/dist/RatingIndicator.js +7 -7
- package/dist/ResponsivePopover.d.ts +108 -0
- package/dist/ResponsivePopover.js +148 -174
- package/dist/ResponsivePopover.js.map +1 -0
- package/dist/SegmentedButton.js +24 -11
- package/dist/SegmentedButtonItem.js +5 -5
- package/dist/Select.js +8 -8
- package/dist/Slider.d.ts +163 -0
- package/dist/Slider.js +241 -261
- package/dist/Slider.js.map +1 -0
- package/dist/SliderBase.d.ts +357 -0
- package/dist/SliderBase.js +588 -794
- package/dist/SliderBase.js.map +1 -0
- package/dist/SplitButton.d.ts +220 -0
- package/dist/SplitButton.js +211 -382
- package/dist/SplitButton.js.map +1 -0
- package/dist/StandardListItem.d.ts +158 -0
- package/dist/StandardListItem.js +79 -174
- package/dist/StandardListItem.js.map +1 -0
- package/dist/StepInput.d.ts +301 -0
- package/dist/StepInput.js +378 -615
- package/dist/StepInput.js.map +1 -0
- package/dist/SuggestionGroupItem.d.ts +35 -0
- package/dist/SuggestionGroupItem.js +35 -51
- package/dist/SuggestionGroupItem.js.map +1 -0
- package/dist/SuggestionItem.d.ts +104 -0
- package/dist/SuggestionItem.js +49 -131
- package/dist/SuggestionItem.js.map +1 -0
- package/dist/SuggestionListItem.d.ts +47 -0
- package/dist/SuggestionListItem.js +38 -52
- package/dist/SuggestionListItem.js.map +1 -0
- package/dist/Switch.d.ts +167 -0
- package/dist/Switch.js +136 -251
- package/dist/Switch.js.map +1 -0
- package/dist/Tab.js +13 -8
- package/dist/TabContainer.js +21 -20
- package/dist/TabSeparator.js +3 -3
- package/dist/Table.d.ts +426 -0
- package/dist/Table.js +792 -1107
- package/dist/Table.js.map +1 -0
- package/dist/TableCell.d.ts +51 -0
- package/dist/TableCell.js +43 -60
- package/dist/TableCell.js.map +1 -0
- package/dist/TableColumn.d.ts +101 -0
- package/dist/TableColumn.js +53 -99
- package/dist/TableColumn.js.map +1 -0
- package/dist/TableGroupRow.d.ts +79 -0
- package/dist/TableGroupRow.js +97 -134
- package/dist/TableGroupRow.js.map +1 -0
- package/dist/TableRow.d.ts +160 -0
- package/dist/TableRow.js +315 -429
- package/dist/TableRow.js.map +1 -0
- package/dist/TextArea.js +11 -11
- package/dist/TimePicker.d.ts +116 -0
- package/dist/TimePicker.js +61 -96
- package/dist/TimePicker.js.map +1 -0
- package/dist/TimePickerBase.d.ts +188 -0
- package/dist/TimePickerBase.js +350 -453
- package/dist/TimePickerBase.js.map +1 -0
- package/dist/TimeSelection.d.ts +162 -0
- package/dist/TimeSelection.js +358 -468
- package/dist/TimeSelection.js.map +1 -0
- package/dist/Title.d.ts +69 -0
- package/dist/Title.js +62 -105
- package/dist/Title.js.map +1 -0
- package/dist/Toast.js +6 -6
- package/dist/ToggleButton.js +3 -4
- package/dist/Token.js +24 -7
- package/dist/Tokenizer.js +12 -8
- package/dist/Tree.js +28 -14
- package/dist/TreeItem.js +5 -5
- package/dist/TreeItemBase.js +12 -13
- package/dist/TreeItemCustom.js +5 -5
- package/dist/TreeList.js +9 -4
- package/dist/WheelSlider.d.ts +122 -0
- package/dist/WheelSlider.js +302 -410
- package/dist/WheelSlider.js.map +1 -0
- package/dist/YearPicker.d.ts +105 -0
- package/dist/YearPicker.js +298 -328
- package/dist/YearPicker.js.map +1 -0
- package/dist/api.json +1 -1
- package/dist/assets/HT-1000.59a0ea5a.jpg +0 -0
- package/dist/assets/HT-1010.7b05e4f5.jpg +0 -0
- package/dist/assets/HT-1022.6fa171f0.jpg +0 -0
- package/dist/assets/ar.76457d6b.js +1 -0
- package/dist/assets/ar_EG.facab575.js +1 -0
- package/dist/assets/ar_SA.037c760a.js +1 -0
- package/dist/assets/bg.eb54e36a.js +1 -0
- package/dist/assets/ca.1047c043.js +1 -0
- package/dist/assets/cs.47109072.js +1 -0
- package/dist/assets/da.1562c279.js +1 -0
- package/dist/assets/de.3397b9d2.js +1 -0
- package/dist/assets/de_AT.fb777626.js +1 -0
- package/dist/assets/de_CH.c4011bf2.js +1 -0
- package/dist/assets/el.52a181c7.js +1 -0
- package/dist/assets/el_CY.065e8a48.js +1 -0
- package/dist/assets/en.8b571af2.js +1 -0
- package/dist/assets/en_AU.29f5e0e2.js +1 -0
- package/dist/assets/en_GB.b0afb274.js +1 -0
- package/dist/assets/en_HK.188c8a39.js +1 -0
- package/dist/assets/en_IE.b52bdf4f.js +1 -0
- package/dist/assets/en_IN.5925f501.js +1 -0
- package/dist/assets/en_NZ.adc1b6af.js +1 -0
- package/dist/assets/en_PG.2e475ab9.js +1 -0
- package/dist/assets/en_SG.400dc7e5.js +1 -0
- package/dist/assets/en_ZA.06de0b73.js +1 -0
- package/dist/assets/es.d137c08c.js +1 -0
- package/dist/assets/es_AR.a719c078.js +1 -0
- package/dist/assets/es_BO.ba051d49.js +1 -0
- package/dist/assets/es_CL.876855d2.js +1 -0
- package/dist/assets/es_CO.51c37c4d.js +1 -0
- package/dist/assets/es_MX.c11d012e.js +1 -0
- package/dist/assets/es_PE.1a5de4db.js +1 -0
- package/dist/assets/es_UY.29036823.js +1 -0
- package/dist/assets/es_VE.22e2164a.js +1 -0
- package/dist/assets/et.d802827f.js +1 -0
- package/dist/assets/fa.59b6aa5f.js +1 -0
- package/dist/assets/fi.2cc79303.js +1 -0
- package/dist/assets/fr.055c2d0d.js +1 -0
- package/dist/assets/fr_BE.79a4448b.js +1 -0
- package/dist/assets/fr_CA.0c4a98e4.js +1 -0
- package/dist/assets/fr_CH.ba0db8bd.js +1 -0
- package/dist/assets/fr_LU.21a6bcea.js +1 -0
- package/dist/assets/he.e187c6df.js +1 -0
- package/dist/assets/hi.cb35adb1.js +1 -0
- package/dist/assets/hr.24bc905c.js +1 -0
- package/dist/assets/hu.aadbd74c.js +1 -0
- package/dist/assets/id.b9bd26e5.js +1 -0
- package/dist/assets/it.36ffae4a.js +1 -0
- package/dist/assets/{it.bcf089f4.js → it_CH.7ef1e2bf.js} +1 -1
- package/dist/assets/ja.a08af783.js +1 -0
- package/dist/assets/kk.5d3dddbe.js +1 -0
- package/dist/assets/ko.264fdf35.js +1 -0
- package/dist/assets/lt.b967d42b.js +1 -0
- package/dist/assets/lv.9c0f8206.js +1 -0
- package/dist/assets/{messagebundle_ar.dec7510d.js → messagebundle_ar.7f1e385c.js} +1 -1
- package/dist/assets/{messagebundle_bg.39183011.js → messagebundle_bg.67505cb7.js} +1 -1
- package/dist/assets/messagebundle_ca.64fb370c.js +1 -0
- package/dist/assets/messagebundle_cs.ce8b8a69.js +1 -0
- package/dist/assets/messagebundle_cy.3dad0e1d.js +1 -0
- package/dist/assets/messagebundle_da.ff79429b.js +1 -0
- package/dist/assets/messagebundle_de.e9f4d979.js +1 -0
- package/dist/assets/{messagebundle_el.d41a6312.js → messagebundle_el.50666070.js} +1 -1
- package/dist/assets/messagebundle_en.edda053c.js +1 -0
- package/dist/assets/messagebundle_en_GB.9eb5f8cf.js +1 -0
- package/dist/assets/{messagebundle_en_US_sappsd.86cc73b7.js → messagebundle_en_US_sappsd.c97ca89f.js} +1 -1
- package/dist/assets/{messagebundle_en_US_saprigi.a7b06ef5.js → messagebundle_en_US_saprigi.d0b577b7.js} +1 -1
- package/dist/assets/messagebundle_en_US_saptrc.7da9b71b.js +1 -0
- package/dist/assets/messagebundle_es.3b0d6da4.js +1 -0
- package/dist/assets/messagebundle_es_MX.da0228db.js +1 -0
- package/dist/assets/messagebundle_et.2cfc3295.js +1 -0
- package/dist/assets/messagebundle_fi.f62f59fc.js +1 -0
- package/dist/assets/messagebundle_fr.7d7c418f.js +1 -0
- package/dist/assets/messagebundle_fr_CA.a4592fb9.js +1 -0
- package/dist/assets/{messagebundle_hi.b968aad6.js → messagebundle_hi.2f3db639.js} +1 -1
- package/dist/assets/messagebundle_hr.f8282341.js +1 -0
- package/dist/assets/messagebundle_hu.2589bdb3.js +1 -0
- package/dist/assets/messagebundle_it.146c4b3c.js +1 -0
- package/dist/assets/messagebundle_iw.2766f5a1.js +1 -0
- package/dist/assets/messagebundle_ja.b0b6d3d0.js +1 -0
- package/dist/assets/{messagebundle_kk.24effffd.js → messagebundle_kk.f9132ede.js} +1 -1
- package/dist/assets/messagebundle_ko.d23a9de8.js +1 -0
- package/dist/assets/messagebundle_lt.e2f6f5b0.js +1 -0
- package/dist/assets/messagebundle_lv.6b0ad93c.js +1 -0
- package/dist/assets/messagebundle_ms.8d8ac7f1.js +1 -0
- package/dist/assets/messagebundle_nl.1bb5da42.js +1 -0
- package/dist/assets/messagebundle_no.c7ee6784.js +1 -0
- package/dist/assets/messagebundle_pl.0d1b3dd1.js +1 -0
- package/dist/assets/messagebundle_pt.33ff9d42.js +1 -0
- package/dist/assets/messagebundle_pt_PT.a91f6468.js +1 -0
- package/dist/assets/messagebundle_ro.bd2e01e0.js +1 -0
- package/dist/assets/{messagebundle_ru.e7ffdb7d.js → messagebundle_ru.388e4272.js} +1 -1
- package/dist/assets/messagebundle_sh.122ca47b.js +1 -0
- package/dist/assets/messagebundle_sk.66d70983.js +1 -0
- package/dist/assets/messagebundle_sl.3f1a077f.js +1 -0
- package/dist/assets/messagebundle_sv.71f16a40.js +1 -0
- package/dist/assets/{messagebundle_th.4f145df6.js → messagebundle_th.700d6a4a.js} +1 -1
- package/dist/assets/messagebundle_tr.6f267da9.js +1 -0
- package/dist/assets/{messagebundle_uk.fc20aaae.js → messagebundle_uk.52e9f0c8.js} +1 -1
- package/dist/assets/messagebundle_vi.e9fe4caa.js +1 -0
- package/dist/assets/messagebundle_zh_CN.8ff0766b.js +1 -0
- package/dist/assets/messagebundle_zh_TW.25b49650.js +1 -0
- package/dist/assets/ms.5a523fbe.js +1 -0
- package/dist/assets/nb.6e98bbca.js +1 -0
- package/dist/assets/nl.84e9e6df.js +1 -0
- package/dist/assets/nl_BE.0f374ea5.js +1 -0
- package/dist/assets/parameters-bundle.css.09fdcedf.js +1 -0
- package/dist/assets/parameters-bundle.css.0c16556f.js +1 -0
- package/dist/assets/parameters-bundle.css.1d5159c7.js +1 -0
- package/dist/assets/parameters-bundle.css.3d586108.js +1 -0
- package/dist/assets/parameters-bundle.css.3fe96be2.js +1 -0
- package/dist/assets/parameters-bundle.css.44ff7825.js +1 -0
- package/dist/assets/parameters-bundle.css.58325286.js +1 -0
- package/dist/assets/parameters-bundle.css.5c29069a.js +1 -0
- package/dist/assets/parameters-bundle.css.759ff23e.js +1 -0
- package/dist/assets/parameters-bundle.css.7ad77620.js +1 -0
- package/dist/assets/parameters-bundle.css.ab7cc9c4.js +1 -0
- package/dist/assets/parameters-bundle.css.e7002fc1.js +1 -0
- package/dist/assets/pl.c8acba9e.js +1 -0
- package/dist/assets/pt.676d5650.js +1 -0
- package/dist/assets/pt_PT.0bbc2da6.js +1 -0
- package/dist/assets/ro.10993af2.js +1 -0
- package/dist/assets/ru.4aba168e.js +1 -0
- package/dist/assets/ru_UA.334d6613.js +1 -0
- package/dist/assets/sk.3183c85e.js +1 -0
- package/dist/assets/sl.edad6042.js +1 -0
- package/dist/assets/sr.3e293379.js +1 -0
- package/dist/assets/sr_Latn.0f4a03c3.js +1 -0
- package/dist/assets/sv.e76e14e4.js +1 -0
- package/dist/assets/th.f5491ec1.js +1 -0
- package/dist/assets/tr.3b838818.js +1 -0
- package/dist/assets/uk.ebbd81a0.js +1 -0
- package/dist/assets/vi.87616fa0.js +1 -0
- package/dist/assets/zh_CN.de478ef9.js +1 -0
- package/dist/assets/zh_HK.834c3161.js +1 -0
- package/dist/assets/zh_SG.13241ee3.js +1 -0
- package/dist/assets/zh_TW.8f4a16b5.js +1 -0
- package/dist/css/themes/Avatar.css +1 -1
- package/dist/css/themes/BusyIndicator.css +1 -1
- package/dist/css/themes/Button.css +1 -1
- package/dist/css/themes/CardHeader.css +1 -1
- package/dist/css/themes/Carousel.css +1 -1
- package/dist/css/themes/ComboBox.css +1 -1
- package/dist/css/themes/DatePicker.css +1 -1
- package/dist/css/themes/Dialog.css +1 -1
- package/dist/css/themes/Icon.css +1 -1
- package/dist/css/themes/Input.css +1 -1
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/MultiComboBox.css +1 -1
- package/dist/css/themes/MultiInput.css +1 -1
- package/dist/css/themes/RadioButton.css +1 -1
- package/dist/css/themes/Select.css +1 -1
- package/dist/css/themes/TabInStrip.css +1 -1
- package/dist/css/themes/Table.css +1 -1
- package/dist/css/themes/TableCell.css +1 -1
- package/dist/css/themes/TableRow.css +1 -1
- package/dist/css/themes/TextArea.css +1 -1
- package/dist/css/themes/Tokenizer.css +1 -1
- package/dist/css/themes/ValueStateMessage.css +1 -1
- package/dist/css/themes/sap_belize/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_belize_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_belize_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_exp/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
- package/dist/features/ColorPaletteMoreColors.d.ts +13 -0
- package/dist/features/ColorPaletteMoreColors.js +23 -33
- package/dist/features/ColorPaletteMoreColors.js.map +1 -0
- package/dist/features/InputElementsFormSupport.d.ts +31 -0
- package/dist/features/InputElementsFormSupport.js +95 -101
- package/dist/features/InputElementsFormSupport.js.map +1 -0
- package/dist/features/InputSuggestions.d.ts +130 -0
- package/dist/features/InputSuggestions.js +457 -590
- package/dist/features/InputSuggestions.js.map +1 -0
- package/dist/generated/assets/i18n/messagebundle_ar.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_bg.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ca.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cs.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_cy.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_da.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_el.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_GB.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_es_MX.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_et.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_fr_CA.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_hu.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_it.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_iw.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ja.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_kk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ko.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_lv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ms.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_nl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_no.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_pt_PT.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ro.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sh.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sl.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_sv.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_th.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_tr.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_uk.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_vi.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_CN.json +1 -1
- package/dist/generated/assets/i18n/messagebundle_zh_TW.json +1 -1
- package/dist/generated/assets/themes/sap_belize/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_belize_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_belize_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_exp/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
- package/dist/generated/i18n/i18n-defaults.js +2 -2
- package/dist/generated/templates/CardHeaderTemplate.lit.js +1 -1
- package/dist/generated/templates/CardTemplate.lit.js +1 -1
- package/dist/generated/templates/CheckBoxTemplate.lit.js +1 -1
- package/dist/generated/templates/ComboBoxPopoverTemplate.lit.js +19 -17
- package/dist/generated/templates/CustomListItemTemplate.lit.js +9 -7
- package/dist/generated/templates/DialogTemplate.lit.js +1 -1
- package/dist/generated/templates/IconTemplate.lit.js +1 -1
- package/dist/generated/templates/InputTemplate.lit.js +1 -1
- package/dist/generated/templates/LinkTemplate.lit.js +1 -1
- package/dist/generated/templates/ListItemTemplate.lit.js +9 -7
- package/dist/generated/templates/ListTemplate.lit.js +3 -3
- package/dist/generated/templates/MenuTemplate.lit.js +1 -1
- package/dist/generated/templates/MonthPickerTemplate.lit.js +1 -1
- package/dist/generated/templates/MultiInputTemplate.lit.js +1 -1
- package/dist/generated/templates/PopoverTemplate.lit.js +1 -1
- package/dist/generated/templates/RangeSliderTemplate.lit.js +1 -1
- package/dist/generated/templates/ResponsivePopoverTemplate.lit.js +1 -1
- package/dist/generated/templates/SegmentedButtonTemplate.lit.js +1 -1
- package/dist/generated/templates/SliderTemplate.lit.js +1 -1
- package/dist/generated/templates/StandardListItemTemplate.lit.js +20 -16
- package/dist/generated/templates/SuggestionListItemTemplate.lit.js +23 -19
- package/dist/generated/templates/SwitchTemplate.lit.js +1 -1
- package/dist/generated/templates/TabInStripTemplate.lit.js +1 -1
- package/dist/generated/templates/TableRowTemplate.lit.js +5 -2
- package/dist/generated/templates/TableTemplate.lit.js +1 -1
- package/dist/generated/templates/TokenTemplate.lit.js +1 -1
- package/dist/generated/templates/TreeItemBaseTemplate.lit.js +10 -8
- package/dist/generated/templates/TreeItemCustomTemplate.lit.js +10 -8
- package/dist/generated/templates/TreeItemTemplate.lit.js +10 -8
- package/dist/generated/templates/TreeTemplate.lit.js +1 -1
- package/dist/generated/templates/YearPickerTemplate.lit.js +1 -1
- package/dist/generated/themes/Avatar.css.js +1 -1
- package/dist/generated/themes/BusyIndicator.css.js +1 -1
- package/dist/generated/themes/Button.css.js +1 -1
- package/dist/generated/themes/CardHeader.css.js +1 -1
- package/dist/generated/themes/Carousel.css.js +1 -1
- package/dist/generated/themes/ComboBox.css.js +1 -1
- package/dist/generated/themes/DatePicker.css.js +1 -1
- package/dist/generated/themes/Dialog.css.js +1 -1
- package/dist/generated/themes/Icon.css.js +1 -1
- package/dist/generated/themes/Input.css.js +1 -1
- package/dist/generated/themes/ListItem.css.js +1 -1
- package/dist/generated/themes/MultiComboBox.css.js +1 -1
- package/dist/generated/themes/MultiInput.css.js +1 -1
- package/dist/generated/themes/RadioButton.css.js +1 -1
- package/dist/generated/themes/Select.css.js +1 -1
- package/dist/generated/themes/TabInStrip.css.js +1 -1
- package/dist/generated/themes/Table.css.js +1 -1
- package/dist/generated/themes/TableCell.css.js +1 -1
- package/dist/generated/themes/TableRow.css.js +1 -1
- package/dist/generated/themes/TextArea.css.js +1 -1
- package/dist/generated/themes/Tokenizer.css.js +1 -1
- package/dist/generated/themes/ValueStateMessage.css.js +1 -1
- package/dist/generated/themes/sap_belize/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_belize_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_exp/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
- package/dist/i18n/messagebundle.properties +6 -0
- package/dist/i18n/messagebundle_ar.properties +4 -0
- package/dist/i18n/messagebundle_bg.properties +4 -0
- package/dist/i18n/messagebundle_ca.properties +4 -0
- package/dist/i18n/messagebundle_cs.properties +4 -0
- package/dist/i18n/messagebundle_cy.properties +4 -0
- package/dist/i18n/messagebundle_da.properties +4 -0
- package/dist/i18n/messagebundle_de.properties +4 -0
- package/dist/i18n/messagebundle_el.properties +4 -0
- package/dist/i18n/messagebundle_en.properties +4 -0
- package/dist/i18n/messagebundle_en_GB.properties +4 -0
- package/dist/i18n/messagebundle_en_US_sappsd.properties +4 -0
- package/dist/i18n/messagebundle_en_US_saprigi.properties +4 -0
- package/dist/i18n/messagebundle_en_US_saptrc.properties +4 -0
- package/dist/i18n/messagebundle_es.properties +4 -0
- package/dist/i18n/messagebundle_es_MX.properties +4 -0
- package/dist/i18n/messagebundle_et.properties +4 -0
- package/dist/i18n/messagebundle_fi.properties +4 -0
- package/dist/i18n/messagebundle_fr.properties +4 -0
- package/dist/i18n/messagebundle_fr_CA.properties +4 -0
- package/dist/i18n/messagebundle_hi.properties +4 -0
- package/dist/i18n/messagebundle_hr.properties +4 -0
- package/dist/i18n/messagebundle_hu.properties +4 -0
- package/dist/i18n/messagebundle_id.properties +4 -0
- package/dist/i18n/messagebundle_it.properties +4 -0
- package/dist/i18n/messagebundle_iw.properties +4 -0
- package/dist/i18n/messagebundle_ja.properties +4 -0
- package/dist/i18n/messagebundle_kk.properties +4 -0
- package/dist/i18n/messagebundle_ko.properties +4 -0
- package/dist/i18n/messagebundle_lt.properties +4 -0
- package/dist/i18n/messagebundle_lv.properties +4 -0
- package/dist/i18n/messagebundle_ms.properties +4 -0
- package/dist/i18n/messagebundle_nl.properties +4 -0
- package/dist/i18n/messagebundle_no.properties +5 -1
- package/dist/i18n/messagebundle_pl.properties +4 -0
- package/dist/i18n/messagebundle_pt.properties +4 -0
- package/dist/i18n/messagebundle_pt_PT.properties +4 -0
- package/dist/i18n/messagebundle_ro.properties +4 -0
- package/dist/i18n/messagebundle_ru.properties +4 -0
- package/dist/i18n/messagebundle_sh.properties +4 -0
- package/dist/i18n/messagebundle_sk.properties +4 -0
- package/dist/i18n/messagebundle_sl.properties +4 -0
- package/dist/i18n/messagebundle_sv.properties +4 -0
- package/dist/i18n/messagebundle_th.properties +4 -0
- package/dist/i18n/messagebundle_tr.properties +4 -0
- package/dist/i18n/messagebundle_uk.properties +4 -0
- package/dist/i18n/messagebundle_vi.properties +4 -0
- package/dist/i18n/messagebundle_zh_CN.properties +4 -0
- package/dist/i18n/messagebundle_zh_TW.properties +4 -0
- package/dist/popup-utils/OpenedPopupsRegistry.d.ts +9 -0
- package/dist/popup-utils/OpenedPopupsRegistry.js +43 -37
- package/dist/popup-utils/OpenedPopupsRegistry.js.map +1 -0
- package/dist/popup-utils/PopoverRegistry.d.ts +9 -0
- package/dist/popup-utils/PopoverRegistry.js +103 -123
- package/dist/popup-utils/PopoverRegistry.js.map +1 -0
- package/dist/timepicker-utils/TimeSlider.d.ts +15 -0
- package/dist/timepicker-utils/TimeSlider.js +80 -92
- package/dist/timepicker-utils/TimeSlider.js.map +1 -0
- package/dist/types/AvatarColorScheme.d.ts +78 -0
- package/dist/types/AvatarColorScheme.js +75 -99
- package/dist/types/AvatarColorScheme.js.map +1 -0
- package/dist/types/AvatarGroupType.d.ts +26 -0
- package/dist/types/AvatarGroupType.js +22 -37
- package/dist/types/AvatarGroupType.js.map +1 -0
- package/dist/types/AvatarShape.d.ts +24 -0
- package/dist/types/AvatarShape.js +20 -35
- package/dist/types/AvatarShape.js.map +1 -0
- package/dist/types/AvatarSize.d.ts +47 -0
- package/dist/types/AvatarSize.js +43 -61
- package/dist/types/AvatarSize.js.map +1 -0
- package/dist/types/BreadcrumbsDesign.d.ts +26 -0
- package/dist/types/BreadcrumbsDesign.js +23 -37
- package/dist/types/BreadcrumbsDesign.js.map +1 -0
- package/dist/types/BreadcrumbsSeparatorStyle.d.ts +48 -0
- package/dist/types/BreadcrumbsSeparatorStyle.js +45 -64
- package/dist/types/BreadcrumbsSeparatorStyle.js.map +1 -0
- package/dist/types/BusyIndicatorSize.d.ts +30 -0
- package/dist/types/BusyIndicatorSize.js +27 -42
- package/dist/types/BusyIndicatorSize.js.map +1 -0
- package/dist/types/ButtonDesign.d.ts +48 -0
- package/dist/types/ButtonDesign.js +45 -63
- package/dist/types/ButtonDesign.js.map +1 -0
- package/dist/types/CalendarSelectionMode.d.ts +30 -0
- package/dist/types/CalendarSelectionMode.js +27 -42
- package/dist/types/CalendarSelectionMode.js.map +1 -0
- package/dist/types/CarouselArrowsPlacement.d.ts +24 -0
- package/dist/types/CarouselArrowsPlacement.js +21 -35
- package/dist/types/CarouselArrowsPlacement.js.map +1 -0
- package/dist/types/CarouselPageIndicatorStyle.d.ts +25 -0
- package/dist/types/CarouselPageIndicatorStyle.js +27 -0
- package/dist/types/CarouselPageIndicatorStyle.js.map +1 -0
- package/dist/types/HasPopup.d.ts +42 -0
- package/dist/types/HasPopup.js +38 -56
- package/dist/types/HasPopup.js.map +1 -0
- package/dist/types/IconDesign.d.ts +60 -0
- package/dist/types/IconDesign.js +62 -0
- package/dist/types/IconDesign.js.map +1 -0
- package/dist/types/InputType.d.ts +48 -0
- package/dist/types/InputType.js +45 -63
- package/dist/types/InputType.js.map +1 -0
- package/dist/types/LinkDesign.d.ts +30 -0
- package/dist/types/LinkDesign.js +27 -42
- package/dist/types/LinkDesign.js.map +1 -0
- package/dist/types/ListGrowingMode.d.ts +31 -0
- package/dist/types/ListGrowingMode.js +28 -43
- package/dist/types/ListGrowingMode.js.map +1 -0
- package/dist/types/ListItemType.d.ts +36 -0
- package/dist/types/ListItemType.js +33 -42
- package/dist/types/ListItemType.js.map +1 -0
- package/dist/types/ListMode.d.ts +56 -0
- package/dist/types/ListMode.js +53 -72
- package/dist/types/ListMode.js.map +1 -0
- package/dist/types/ListSeparators.d.ts +31 -0
- package/dist/types/ListSeparators.js +28 -41
- package/dist/types/ListSeparators.js.map +1 -0
- package/dist/types/MessageStripDesign.d.ts +36 -0
- package/dist/types/MessageStripDesign.js +33 -49
- package/dist/types/MessageStripDesign.js.map +1 -0
- package/dist/types/PanelAccessibleRole.d.ts +33 -0
- package/dist/types/PanelAccessibleRole.js +30 -43
- package/dist/types/PanelAccessibleRole.js.map +1 -0
- package/dist/types/PopoverHorizontalAlign.d.ts +36 -0
- package/dist/types/PopoverHorizontalAlign.js +33 -49
- package/dist/types/PopoverHorizontalAlign.js.map +1 -0
- package/dist/types/PopoverPlacementType.d.ts +36 -0
- package/dist/types/PopoverPlacementType.js +33 -49
- package/dist/types/PopoverPlacementType.js.map +1 -0
- package/dist/types/PopoverVerticalAlign.d.ts +36 -0
- package/dist/types/PopoverVerticalAlign.js +33 -49
- package/dist/types/PopoverVerticalAlign.js.map +1 -0
- package/dist/types/Priority.d.ts +36 -0
- package/dist/types/Priority.js +32 -49
- package/dist/types/Priority.js.map +1 -0
- package/dist/types/SemanticColor.d.ts +42 -0
- package/dist/types/SemanticColor.js +39 -56
- package/dist/types/SemanticColor.js.map +1 -0
- package/dist/types/SwitchDesign.d.ts +24 -0
- package/dist/types/SwitchDesign.js +21 -35
- package/dist/types/SwitchDesign.js.map +1 -0
- package/dist/types/TabContainerBackgroundDesign.d.ts +30 -0
- package/dist/types/TabContainerBackgroundDesign.js +27 -43
- package/dist/types/TabContainerBackgroundDesign.js.map +1 -0
- package/dist/types/TabContainerTabsPlacement.d.ts +24 -0
- package/dist/types/TabContainerTabsPlacement.js +21 -35
- package/dist/types/TabContainerTabsPlacement.js.map +1 -0
- package/dist/types/TabLayout.d.ts +24 -0
- package/dist/types/TabLayout.js +21 -35
- package/dist/types/TabLayout.js.map +1 -0
- package/dist/types/TableColumnPopinDisplay.d.ts +24 -0
- package/dist/types/TableColumnPopinDisplay.js +26 -0
- package/dist/types/TableColumnPopinDisplay.js.map +1 -0
- package/dist/types/TableGrowingMode.d.ts +31 -0
- package/dist/types/TableGrowingMode.js +28 -43
- package/dist/types/TableGrowingMode.js.map +1 -0
- package/dist/types/TableMode.d.ts +30 -0
- package/dist/types/TableMode.js +27 -42
- package/dist/types/TableMode.js.map +1 -0
- package/dist/types/TableRowType.d.ts +24 -0
- package/dist/types/TableRowType.js +21 -35
- package/dist/types/TableRowType.js.map +1 -0
- package/dist/types/TabsOverflowMode.d.ts +24 -0
- package/dist/types/TabsOverflowMode.js +21 -35
- package/dist/types/TabsOverflowMode.js.map +1 -0
- package/dist/types/TitleLevel.d.ts +48 -0
- package/dist/types/TitleLevel.js +45 -63
- package/dist/types/TitleLevel.js.map +1 -0
- package/dist/types/ToastPlacement.d.ts +67 -0
- package/dist/types/ToastPlacement.js +64 -86
- package/dist/types/ToastPlacement.js.map +1 -0
- package/dist/types/WrappingType.d.ts +24 -0
- package/dist/types/WrappingType.js +20 -35
- package/dist/types/WrappingType.js.map +1 -0
- package/global.d.ts +12 -0
- package/package-scripts.js +1 -0
- package/package.json +7 -7
- package/src/Avatar.ts +435 -0
- package/src/AvatarGroup.js +8 -8
- package/src/Badge.ts +143 -0
- package/src/Breadcrumbs.hbs +41 -38
- package/src/{Breadcrumbs.js → Breadcrumbs.ts} +228 -187
- package/src/BreadcrumbsItem.ts +92 -0
- package/src/BusyIndicator.js +6 -7
- package/src/Button.ts +503 -0
- package/src/{Calendar.js → Calendar.ts} +152 -142
- package/src/CalendarDate.ts +36 -0
- package/src/CalendarHeader.ts +218 -0
- package/src/{CalendarPart.js → CalendarPart.ts} +15 -26
- package/src/Card.hbs +1 -1
- package/src/{Card.js → Card.ts} +67 -75
- package/src/CardHeader.hbs +1 -1
- package/src/CardHeader.ts +275 -0
- package/src/Carousel.hbs +72 -72
- package/src/Carousel.js +33 -11
- package/src/CheckBox.hbs +3 -3
- package/src/CheckBox.ts +466 -0
- package/src/{ColorPalette.js → ColorPalette.ts} +184 -165
- package/src/ColorPaletteItem.ts +124 -0
- package/src/{ColorPalettePopover.js → ColorPalettePopover.ts} +99 -97
- package/src/ColorPicker.ts +536 -0
- package/src/ComboBox.js +9 -9
- package/src/ComboBoxGroupItem.js +6 -6
- package/src/ComboBoxItem.js +4 -4
- package/src/ComboBoxPopover.hbs +45 -42
- package/src/CustomListItem.ts +89 -0
- package/src/DateComponentBase.ts +174 -0
- package/src/{DatePicker.js → DatePicker.ts} +355 -330
- package/src/{DateRangePicker.js → DateRangePicker.ts} +65 -61
- package/src/{DateTimePicker.js → DateTimePicker.ts} +82 -80
- package/src/{DayPicker.js → DayPicker.ts} +274 -218
- package/src/Dialog.hbs +1 -1
- package/src/{Dialog.js → Dialog.ts} +208 -195
- package/src/DurationPicker.js +5 -5
- package/src/FileUploader.ts +526 -0
- package/src/Filters.ts +28 -0
- package/src/GroupHeaderListItem.ts +86 -0
- package/src/Icon.hbs +1 -1
- package/src/{Icon.js → Icon.ts} +204 -182
- package/src/Input.hbs +3 -1
- package/src/{Input.js → Input.ts} +738 -706
- package/src/{Interfaces.js → Interfaces.ts} +40 -40
- package/src/Label.ts +143 -0
- package/src/Link.hbs +1 -1
- package/src/Link.ts +406 -0
- package/src/List.hbs +11 -2
- package/src/List.ts +1143 -0
- package/src/ListItem.hbs +12 -2
- package/src/ListItem.ts +497 -0
- package/src/ListItemBase.ts +168 -0
- package/src/Menu.hbs +4 -1
- package/src/Menu.ts +609 -0
- package/src/MenuItem.ts +168 -0
- package/src/MessageStrip.ts +245 -0
- package/src/MonthPicker.hbs +1 -0
- package/src/{MonthPicker.js → MonthPicker.ts} +147 -104
- package/src/MultiComboBox.js +13 -11
- package/src/MultiComboBoxGroupItem.js +6 -6
- package/src/MultiComboBoxItem.js +4 -4
- package/src/MultiInput.js +13 -10
- package/src/Option.js +6 -6
- package/src/{Panel.js → Panel.ts} +179 -219
- package/src/Popover.hbs +1 -1
- package/src/{Popover.js → Popover.ts} +293 -268
- package/src/{Popup.js → Popup.ts} +227 -210
- package/src/{ProgressIndicator.js → ProgressIndicator.ts} +91 -95
- package/src/RadioButton.js +7 -8
- package/src/RadioButtonGroup.js +1 -1
- package/src/RangeSlider.hbs +11 -5
- package/src/{RangeSlider.js → RangeSlider.ts} +248 -173
- package/src/RatingIndicator.js +7 -7
- package/src/{ResponsivePopover.js → ResponsivePopover.ts} +84 -62
- package/src/SegmentedButton.hbs +1 -0
- package/src/SegmentedButton.js +24 -11
- package/src/SegmentedButtonItem.js +5 -5
- package/src/Select.js +8 -8
- package/src/Slider.hbs +2 -2
- package/src/{Slider.js → Slider.ts} +94 -62
- package/src/{SliderBase.js → SliderBase.ts} +238 -270
- package/src/{SplitButton.js → SplitButton.ts} +217 -235
- package/src/StandardListItem.hbs +10 -4
- package/src/StandardListItem.ts +217 -0
- package/src/StepInput.hbs +1 -1
- package/src/{StepInput.js → StepInput.ts} +275 -314
- package/src/SuggestionGroupItem.ts +51 -0
- package/src/SuggestionItem.ts +134 -0
- package/src/{SuggestionListItem.js → SuggestionListItem.ts} +30 -32
- package/src/Switch.hbs +2 -2
- package/src/Switch.ts +299 -0
- package/src/Tab.js +13 -8
- package/src/TabContainer.js +21 -20
- package/src/TabInStrip.hbs +2 -1
- package/src/TabSeparator.js +3 -3
- package/src/Table.hbs +7 -1
- package/src/Table.ts +1303 -0
- package/src/{TableCell.js → TableCell.ts} +32 -42
- package/src/TableColumn.ts +135 -0
- package/src/TableGroupRow.ts +159 -0
- package/src/TableRow.hbs +17 -5
- package/src/TableRow.ts +505 -0
- package/src/TextArea.js +11 -11
- package/src/{TimePicker.js → TimePicker.ts} +43 -50
- package/src/{TimePickerBase.js → TimePickerBase.ts} +154 -145
- package/src/{TimeSelection.js → TimeSelection.ts} +198 -170
- package/src/Title.ts +117 -0
- package/src/Toast.js +6 -6
- package/src/ToggleButton.js +3 -4
- package/src/Token.hbs +1 -0
- package/src/Token.js +24 -7
- package/src/Tokenizer.js +12 -8
- package/src/Tree.hbs +2 -1
- package/src/Tree.js +28 -14
- package/src/TreeItem.js +5 -5
- package/src/TreeItemBase.js +12 -13
- package/src/TreeItemCustom.js +5 -5
- package/src/TreeList.js +9 -4
- package/src/{WheelSlider.js → WheelSlider.ts} +120 -126
- package/src/YearPicker.hbs +1 -0
- package/src/{YearPicker.js → YearPicker.ts} +146 -101
- package/src/features/{ColorPaletteMoreColors.js → ColorPaletteMoreColors.ts} +8 -3
- package/src/features/{InputElementsFormSupport.js → InputElementsFormSupport.ts} +49 -17
- package/src/features/{InputSuggestions.js → InputSuggestions.ts} +154 -99
- package/src/i18n/messagebundle.properties +6 -0
- package/src/i18n/messagebundle_ar.properties +4 -0
- package/src/i18n/messagebundle_bg.properties +4 -0
- package/src/i18n/messagebundle_ca.properties +4 -0
- package/src/i18n/messagebundle_cs.properties +4 -0
- package/src/i18n/messagebundle_cy.properties +4 -0
- package/src/i18n/messagebundle_da.properties +4 -0
- package/src/i18n/messagebundle_de.properties +4 -0
- package/src/i18n/messagebundle_el.properties +4 -0
- package/src/i18n/messagebundle_en.properties +4 -0
- package/src/i18n/messagebundle_en_GB.properties +4 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +4 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +4 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +4 -0
- package/src/i18n/messagebundle_es.properties +4 -0
- package/src/i18n/messagebundle_es_MX.properties +4 -0
- package/src/i18n/messagebundle_et.properties +4 -0
- package/src/i18n/messagebundle_fi.properties +4 -0
- package/src/i18n/messagebundle_fr.properties +4 -0
- package/src/i18n/messagebundle_fr_CA.properties +4 -0
- package/src/i18n/messagebundle_hi.properties +4 -0
- package/src/i18n/messagebundle_hr.properties +4 -0
- package/src/i18n/messagebundle_hu.properties +4 -0
- package/src/i18n/messagebundle_id.properties +4 -0
- package/src/i18n/messagebundle_it.properties +4 -0
- package/src/i18n/messagebundle_iw.properties +4 -0
- package/src/i18n/messagebundle_ja.properties +4 -0
- package/src/i18n/messagebundle_kk.properties +4 -0
- package/src/i18n/messagebundle_ko.properties +4 -0
- package/src/i18n/messagebundle_lt.properties +4 -0
- package/src/i18n/messagebundle_lv.properties +4 -0
- package/src/i18n/messagebundle_ms.properties +4 -0
- package/src/i18n/messagebundle_nl.properties +4 -0
- package/src/i18n/messagebundle_no.properties +5 -1
- package/src/i18n/messagebundle_pl.properties +4 -0
- package/src/i18n/messagebundle_pt.properties +4 -0
- package/src/i18n/messagebundle_pt_PT.properties +4 -0
- package/src/i18n/messagebundle_ro.properties +4 -0
- package/src/i18n/messagebundle_ru.properties +4 -0
- package/src/i18n/messagebundle_sh.properties +4 -0
- package/src/i18n/messagebundle_sk.properties +4 -0
- package/src/i18n/messagebundle_sl.properties +4 -0
- package/src/i18n/messagebundle_sv.properties +4 -0
- package/src/i18n/messagebundle_th.properties +4 -0
- package/src/i18n/messagebundle_tr.properties +4 -0
- package/src/i18n/messagebundle_uk.properties +4 -0
- package/src/i18n/messagebundle_vi.properties +4 -0
- package/src/i18n/messagebundle_zh_CN.properties +4 -0
- package/src/i18n/messagebundle_zh_TW.properties +4 -0
- package/src/popup-utils/{OpenedPopupsRegistry.js → OpenedPopupsRegistry.ts} +31 -5
- package/src/popup-utils/{PopoverRegistry.js → PopoverRegistry.ts} +50 -29
- package/src/themes/Avatar.css +5 -2
- package/src/themes/BusyIndicator.css +1 -1
- package/src/themes/Button.css +14 -13
- package/src/themes/CardHeader.css +19 -2
- package/src/themes/Carousel.css +4 -4
- package/src/themes/DatePicker.css +7 -1
- package/src/themes/Dialog.css +2 -2
- package/src/themes/Icon.css +37 -0
- package/src/themes/Input.css +26 -2
- package/src/themes/ListItem.css +20 -2
- package/src/themes/MultiComboBox.css +0 -4
- package/src/themes/MultiInput.css +1 -5
- package/src/themes/RadioButton.css +6 -6
- package/src/themes/Select.css +1 -1
- package/src/themes/TabInStrip.css +10 -10
- package/src/themes/Table.css +1 -1
- package/src/themes/TableCell.css +4 -0
- package/src/themes/TableRow.css +9 -0
- package/src/themes/TextArea.css +16 -23
- package/src/themes/Tokenizer.css +1 -1
- package/src/themes/ValueStateMessage.css +9 -1
- package/src/themes/base/Avatar-parameters.css +1 -0
- package/src/themes/base/Input-parameters.css +11 -1
- package/src/themes/base/Select-parameters.css +1 -1
- package/src/themes/base/TextArea-parameters.css +18 -0
- package/src/themes/base/Tokenizer-parameters.css +1 -0
- package/src/themes/base/sizes-parameters.css +1 -9
- package/src/themes/sap_belize/TextArea-parameters.css +8 -0
- package/src/themes/sap_belize_hcb/TextArea-parameters.css +8 -0
- package/src/themes/sap_belize_hcw/TextArea-parameters.css +8 -0
- package/src/themes/sap_fiori_3_hcb/TextArea-parameters.css +13 -3
- package/src/themes/sap_fiori_3_hcw/TextArea-parameters.css +13 -3
- package/src/themes/sap_horizon/CheckBox-parameters.css +1 -0
- package/src/themes/sap_horizon/Input-parameters.css +3 -0
- package/src/themes/sap_horizon/TextArea-parameters.css +14 -0
- package/src/themes/sap_horizon/Tokenizer-parameters.css +5 -0
- package/src/themes/sap_horizon/parameters-bundle.css +1 -1
- package/src/themes/sap_horizon_dark/Input-parameters.css +3 -0
- package/src/themes/sap_horizon_dark/ListItemBase-parameters.css +0 -1
- package/src/themes/sap_horizon_dark/TextArea-parameters.css +14 -0
- package/src/themes/sap_horizon_dark/Tokenizer-parameters.css +5 -0
- package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/src/themes/sap_horizon_exp/Select-parameters.css +1 -1
- package/src/themes/sap_horizon_hcb/Input-parameters.css +1 -0
- package/src/themes/sap_horizon_hcb/TextArea-parameters.css +15 -6
- package/src/themes/sap_horizon_hcw/Input-parameters.css +1 -0
- package/src/themes/sap_horizon_hcw/TextArea-parameters.css +15 -6
- package/src/timepicker-utils/{TimeSlider.js → TimeSlider.ts} +26 -9
- package/src/types/AvatarColorScheme.ts +89 -0
- package/src/types/AvatarGroupType.ts +28 -0
- package/src/types/AvatarShape.ts +26 -0
- package/src/types/AvatarSize.ts +52 -0
- package/src/types/BreadcrumbsDesign.ts +28 -0
- package/src/types/BreadcrumbsSeparatorStyle.ts +55 -0
- package/src/types/BusyIndicatorSize.ts +33 -0
- package/src/types/ButtonDesign.ts +54 -0
- package/src/types/CalendarSelectionMode.ts +33 -0
- package/src/types/CarouselArrowsPlacement.ts +26 -0
- package/src/types/CarouselPageIndicatorStyle.ts +27 -0
- package/src/types/HasPopup.ts +47 -0
- package/src/types/IconDesign.ts +68 -0
- package/src/types/{InputType.js → InputType.ts} +13 -27
- package/src/types/LinkDesign.ts +33 -0
- package/src/types/ListGrowingMode.ts +34 -0
- package/src/types/ListItemType.ts +40 -0
- package/src/types/{ListMode.js → ListMode.ts} +14 -28
- package/src/types/ListSeparators.ts +32 -0
- package/src/types/MessageStripDesign.ts +40 -0
- package/src/types/PanelAccessibleRole.ts +37 -0
- package/src/types/PopoverHorizontalAlign.ts +40 -0
- package/src/types/PopoverPlacementType.ts +40 -0
- package/src/types/PopoverVerticalAlign.ts +40 -0
- package/src/types/Priority.ts +40 -0
- package/src/types/SemanticColor.ts +47 -0
- package/src/types/SwitchDesign.ts +26 -0
- package/src/types/TabContainerBackgroundDesign.ts +33 -0
- package/src/types/TabContainerTabsPlacement.ts +26 -0
- package/src/types/TabLayout.ts +26 -0
- package/src/types/TableColumnPopinDisplay.ts +26 -0
- package/src/types/TableGrowingMode.ts +34 -0
- package/src/types/TableMode.ts +33 -0
- package/src/types/TableRowType.ts +26 -0
- package/src/types/TabsOverflowMode.ts +26 -0
- package/src/types/{TitleLevel.js → TitleLevel.ts} +13 -27
- package/src/types/ToastPlacement.ts +77 -0
- package/src/types/WrappingType.ts +26 -0
- package/tsconfig.json +14 -0
- package/dist/assets/ar.7fd1011b.js +0 -1
- package/dist/assets/ar_EG.4dd5f305.js +0 -1
- package/dist/assets/ar_SA.8c5a937a.js +0 -1
- package/dist/assets/bg.a4d82c03.js +0 -1
- package/dist/assets/ca.0021f734.js +0 -1
- package/dist/assets/cs.0e585b65.js +0 -1
- package/dist/assets/da.521611de.js +0 -1
- package/dist/assets/de.63fdffdf.js +0 -1
- package/dist/assets/de_AT.ea95f993.js +0 -1
- package/dist/assets/de_CH.90d5e701.js +0 -1
- package/dist/assets/el.3e1beb01.js +0 -1
- package/dist/assets/el_CY.209073e0.js +0 -1
- package/dist/assets/en.1af5f31c.js +0 -1
- package/dist/assets/en_AU.25e8cf38.js +0 -1
- package/dist/assets/en_GB.43297e37.js +0 -1
- package/dist/assets/en_HK.0da1e0b5.js +0 -1
- package/dist/assets/en_IE.c4988873.js +0 -1
- package/dist/assets/en_IN.96d721e2.js +0 -1
- package/dist/assets/en_NZ.1091e526.js +0 -1
- package/dist/assets/en_PG.f028e345.js +0 -1
- package/dist/assets/en_SG.8d370bdb.js +0 -1
- package/dist/assets/en_ZA.0cbf9d6e.js +0 -1
- package/dist/assets/es.37dda275.js +0 -1
- package/dist/assets/es_AR.da796f99.js +0 -1
- package/dist/assets/es_BO.2b15333c.js +0 -1
- package/dist/assets/es_CL.048ca1f2.js +0 -1
- package/dist/assets/es_CO.257ed3d6.js +0 -1
- package/dist/assets/es_MX.061e6bbb.js +0 -1
- package/dist/assets/es_PE.f7c17b7a.js +0 -1
- package/dist/assets/es_UY.73781c0c.js +0 -1
- package/dist/assets/es_VE.fe0f3310.js +0 -1
- package/dist/assets/et.fbe81c9d.js +0 -1
- package/dist/assets/fa.acfcfa4d.js +0 -1
- package/dist/assets/fi.0379b5fc.js +0 -1
- package/dist/assets/fr.f6c58c06.js +0 -1
- package/dist/assets/fr_BE.c6e52c3f.js +0 -1
- package/dist/assets/fr_CA.e3c92112.js +0 -1
- package/dist/assets/fr_CH.fc89bdfc.js +0 -1
- package/dist/assets/fr_LU.4fffec47.js +0 -1
- package/dist/assets/he.ca2cb3e0.js +0 -1
- package/dist/assets/hi.82a0ad5b.js +0 -1
- package/dist/assets/hr.ab15877f.js +0 -1
- package/dist/assets/hu.c3d72d24.js +0 -1
- package/dist/assets/id.163ccc8d.js +0 -1
- package/dist/assets/it_CH.69227571.js +0 -1
- package/dist/assets/ja.18f39a5b.js +0 -1
- package/dist/assets/kk.a697e741.js +0 -1
- package/dist/assets/ko.ebe1e5db.js +0 -1
- package/dist/assets/lt.775927de.js +0 -1
- package/dist/assets/lv.d7e9d5e6.js +0 -1
- package/dist/assets/messagebundle_ca.0d94d392.js +0 -1
- package/dist/assets/messagebundle_cs.fd5eaccc.js +0 -1
- package/dist/assets/messagebundle_cy.ff1e6c97.js +0 -1
- package/dist/assets/messagebundle_da.5ff8a1f1.js +0 -1
- package/dist/assets/messagebundle_de.bff2fc47.js +0 -1
- package/dist/assets/messagebundle_en.fdb7abce.js +0 -1
- package/dist/assets/messagebundle_en_GB.4a95abfb.js +0 -1
- package/dist/assets/messagebundle_en_US_saptrc.71435964.js +0 -1
- package/dist/assets/messagebundle_es.04498029.js +0 -1
- package/dist/assets/messagebundle_es_MX.a39214a3.js +0 -1
- package/dist/assets/messagebundle_et.d2e7cd16.js +0 -1
- package/dist/assets/messagebundle_fi.1aa86ded.js +0 -1
- package/dist/assets/messagebundle_fr.d651062e.js +0 -1
- package/dist/assets/messagebundle_fr_CA.5a066480.js +0 -1
- package/dist/assets/messagebundle_hr.51d15b46.js +0 -1
- package/dist/assets/messagebundle_hu.f66f6bd4.js +0 -1
- package/dist/assets/messagebundle_it.fc18db7c.js +0 -1
- package/dist/assets/messagebundle_iw.61cc9591.js +0 -1
- package/dist/assets/messagebundle_ja.9d222bf0.js +0 -1
- package/dist/assets/messagebundle_ko.c1f9bbe4.js +0 -1
- package/dist/assets/messagebundle_lt.68cc1270.js +0 -1
- package/dist/assets/messagebundle_lv.45ee5e9b.js +0 -1
- package/dist/assets/messagebundle_ms.5c238d83.js +0 -1
- package/dist/assets/messagebundle_nl.42d4c6f9.js +0 -1
- package/dist/assets/messagebundle_no.040efcc2.js +0 -1
- package/dist/assets/messagebundle_pl.180e5190.js +0 -1
- package/dist/assets/messagebundle_pt.8c0b8aa8.js +0 -1
- package/dist/assets/messagebundle_pt_PT.08badb3a.js +0 -1
- package/dist/assets/messagebundle_ro.dc736139.js +0 -1
- package/dist/assets/messagebundle_sh.06513aad.js +0 -1
- package/dist/assets/messagebundle_sk.f8c93117.js +0 -1
- package/dist/assets/messagebundle_sl.e321cf3f.js +0 -1
- package/dist/assets/messagebundle_sv.7c70049d.js +0 -1
- package/dist/assets/messagebundle_tr.b1de509f.js +0 -1
- package/dist/assets/messagebundle_vi.39c09ada.js +0 -1
- package/dist/assets/messagebundle_zh_CN.cb6c2fc4.js +0 -1
- package/dist/assets/messagebundle_zh_TW.38b9d6a7.js +0 -1
- package/dist/assets/ms.d6569411.js +0 -1
- package/dist/assets/nb.e08266d5.js +0 -1
- package/dist/assets/nl.9999541e.js +0 -1
- package/dist/assets/nl_BE.10b9e463.js +0 -1
- package/dist/assets/parameters-bundle.css.1f15a001.js +0 -1
- package/dist/assets/parameters-bundle.css.2c92b83f.js +0 -1
- package/dist/assets/parameters-bundle.css.37d45e6a.js +0 -1
- package/dist/assets/parameters-bundle.css.43cfec9f.js +0 -1
- package/dist/assets/parameters-bundle.css.6ac2a3ec.js +0 -1
- package/dist/assets/parameters-bundle.css.8156fdfe.js +0 -1
- package/dist/assets/parameters-bundle.css.9ff9d4cd.js +0 -1
- package/dist/assets/parameters-bundle.css.abcd1057.js +0 -1
- package/dist/assets/parameters-bundle.css.b58e1801.js +0 -1
- package/dist/assets/parameters-bundle.css.d4817fb4.js +0 -1
- package/dist/assets/parameters-bundle.css.dd8f8072.js +0 -1
- package/dist/assets/parameters-bundle.css.feee54fa.js +0 -1
- package/dist/assets/pl.896f748a.js +0 -1
- package/dist/assets/pt.9282da43.js +0 -1
- package/dist/assets/pt_PT.8de6f4a2.js +0 -1
- package/dist/assets/ro.f27aab0d.js +0 -1
- package/dist/assets/ru.925a56df.js +0 -1
- package/dist/assets/ru_UA.066d9903.js +0 -1
- package/dist/assets/sk.cea36c4c.js +0 -1
- package/dist/assets/sl.00e904c8.js +0 -1
- package/dist/assets/sr.5ffa8a72.js +0 -1
- package/dist/assets/sr_Latn.37760dd7.js +0 -1
- package/dist/assets/sv.e8d71660.js +0 -1
- package/dist/assets/th.9c7b50b0.js +0 -1
- package/dist/assets/tr.0a0fb3ee.js +0 -1
- package/dist/assets/uk.7ee1da23.js +0 -1
- package/dist/assets/vi.b1f74e9c.js +0 -1
- package/dist/assets/zh_CN.a1d71c11.js +0 -1
- package/dist/assets/zh_HK.a47dd921.js +0 -1
- package/dist/assets/zh_SG.1cd17a31.js +0 -1
- package/dist/assets/zh_TW.b03069d7.js +0 -1
- package/dist/types/GrowingMode.js +0 -48
- package/src/Avatar.js +0 -451
- package/src/Badge.js +0 -151
- package/src/BreadcrumbsItem.js +0 -103
- package/src/Button.js +0 -513
- package/src/CalendarDate.js +0 -45
- package/src/CalendarHeader.js +0 -213
- package/src/CardHeader.js +0 -283
- package/src/CheckBox.js +0 -471
- package/src/ColorPaletteItem.js +0 -137
- package/src/ColorPicker.js +0 -600
- package/src/CustomListItem.js +0 -99
- package/src/DateComponentBase.js +0 -168
- package/src/FileUploader.js +0 -533
- package/src/Filters.js +0 -28
- package/src/GroupHeaderListItem.js +0 -94
- package/src/Label.js +0 -158
- package/src/Link.js +0 -410
- package/src/List.js +0 -1120
- package/src/ListItem.js +0 -428
- package/src/ListItemBase.js +0 -181
- package/src/Menu.js +0 -502
- package/src/MenuItem.js +0 -193
- package/src/MessageStrip.js +0 -256
- package/src/StandardListItem.js +0 -207
- package/src/SuggestionGroupItem.js +0 -64
- package/src/SuggestionItem.js +0 -146
- package/src/Switch.js +0 -306
- package/src/Table.js +0 -1200
- package/src/TableColumn.js +0 -129
- package/src/TableGroupRow.js +0 -167
- package/src/TableRow.js +0 -464
- package/src/Title.js +0 -132
- package/src/types/AvatarColorScheme.js +0 -104
- package/src/types/AvatarGroupType.js +0 -43
- package/src/types/AvatarShape.js +0 -41
- package/src/types/AvatarSize.js +0 -67
- package/src/types/BreadcrumbsDesign.js +0 -42
- package/src/types/BreadcrumbsSeparatorStyle.js +0 -69
- package/src/types/BusyIndicatorSize.js +0 -47
- package/src/types/ButtonDesign.js +0 -68
- package/src/types/CalendarSelectionMode.js +0 -47
- package/src/types/CarouselArrowsPlacement.js +0 -40
- package/src/types/GrowingMode.js +0 -48
- package/src/types/HasPopup.js +0 -62
- package/src/types/LinkDesign.js +0 -47
- package/src/types/ListGrowingMode.js +0 -48
- package/src/types/ListItemType.js +0 -47
- package/src/types/ListSeparators.js +0 -46
- package/src/types/MessageStripDesign.js +0 -54
- package/src/types/PanelAccessibleRole.js +0 -48
- package/src/types/PopoverHorizontalAlign.js +0 -54
- package/src/types/PopoverPlacementType.js +0 -54
- package/src/types/PopoverVerticalAlign.js +0 -54
- package/src/types/Priority.js +0 -55
- package/src/types/SemanticColor.js +0 -61
- package/src/types/SwitchDesign.js +0 -40
- package/src/types/TabContainerBackgroundDesign.js +0 -48
- package/src/types/TabContainerTabsPlacement.js +0 -40
- package/src/types/TabLayout.js +0 -40
- package/src/types/TableGrowingMode.js +0 -48
- package/src/types/TableMode.js +0 -47
- package/src/types/TableRowType.js +0 -40
- package/src/types/TabsOverflowMode.js +0 -40
- package/src/types/ToastPlacement.js +0 -91
- package/src/types/WrappingType.js +0 -41
package/dist/Input.js
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var Input_1;
|
|
1
8
|
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js";
|
|
9
|
+
import property from "@ui5/webcomponents-base/dist/decorators/property.js";
|
|
10
|
+
import slot from "@ui5/webcomponents-base/dist/decorators/slot.js";
|
|
11
|
+
import event from "@ui5/webcomponents-base/dist/decorators/event.js";
|
|
12
|
+
import customElement from "@ui5/webcomponents-base/dist/decorators/customElement.js";
|
|
13
|
+
import languageAware from "@ui5/webcomponents-base/dist/decorators/languageAware.js";
|
|
2
14
|
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js";
|
|
3
15
|
import ResizeHandler from "@ui5/webcomponents-base/dist/delegate/ResizeHandler.js";
|
|
4
|
-
import {
|
|
5
|
-
isPhone,
|
|
6
|
-
isAndroid,
|
|
7
|
-
} from "@ui5/webcomponents-base/dist/Device.js";
|
|
16
|
+
import { isPhone, isAndroid, } from "@ui5/webcomponents-base/dist/Device.js";
|
|
8
17
|
import ValueState from "@ui5/webcomponents-base/dist/types/ValueState.js";
|
|
9
18
|
import { getFeature } from "@ui5/webcomponents-base/dist/FeaturesRegistry.js";
|
|
10
|
-
import {
|
|
11
|
-
isUp,
|
|
12
|
-
isDown,
|
|
13
|
-
isSpace,
|
|
14
|
-
isEnter,
|
|
15
|
-
isBackSpace,
|
|
16
|
-
isDelete,
|
|
17
|
-
isEscape,
|
|
18
|
-
isTabNext,
|
|
19
|
-
isPageUp,
|
|
20
|
-
isPageDown,
|
|
21
|
-
isHome,
|
|
22
|
-
isEnd,
|
|
23
|
-
} from "@ui5/webcomponents-base/dist/Keys.js";
|
|
19
|
+
import { isUp, isDown, isSpace, isEnter, isBackSpace, isDelete, isEscape, isTabNext, isPageUp, isPageDown, isHome, isEnd, } from "@ui5/webcomponents-base/dist/Keys.js";
|
|
24
20
|
import Integer from "@ui5/webcomponents-base/dist/types/Integer.js";
|
|
25
21
|
import { getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js";
|
|
26
22
|
import { getEffectiveAriaLabelText, getAssociatedLabelForTexts } from "@ui5/webcomponents-base/dist/util/AriaLabelHelper.js";
|
|
@@ -38,490 +34,28 @@ import Icon from "./Icon.js";
|
|
|
38
34
|
// Templates
|
|
39
35
|
import InputTemplate from "./generated/templates/InputTemplate.lit.js";
|
|
40
36
|
import InputPopoverTemplate from "./generated/templates/InputPopoverTemplate.lit.js";
|
|
41
|
-
import
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
VALUE_STATE_INFORMATION,
|
|
46
|
-
VALUE_STATE_ERROR,
|
|
47
|
-
VALUE_STATE_WARNING,
|
|
48
|
-
VALUE_STATE_TYPE_SUCCESS,
|
|
49
|
-
VALUE_STATE_TYPE_INFORMATION,
|
|
50
|
-
VALUE_STATE_TYPE_ERROR,
|
|
51
|
-
VALUE_STATE_TYPE_WARNING,
|
|
52
|
-
INPUT_SUGGESTIONS,
|
|
53
|
-
INPUT_SUGGESTIONS_TITLE,
|
|
54
|
-
INPUT_SUGGESTIONS_ONE_HIT,
|
|
55
|
-
INPUT_SUGGESTIONS_MORE_HITS,
|
|
56
|
-
INPUT_SUGGESTIONS_NO_HIT,
|
|
57
|
-
} from "./generated/i18n/i18n-defaults.js";
|
|
58
|
-
|
|
37
|
+
import { StartsWith } from "./Filters.js";
|
|
38
|
+
import { VALUE_STATE_SUCCESS, VALUE_STATE_INFORMATION, VALUE_STATE_ERROR, VALUE_STATE_WARNING, VALUE_STATE_TYPE_SUCCESS, VALUE_STATE_TYPE_INFORMATION, VALUE_STATE_TYPE_ERROR, VALUE_STATE_TYPE_WARNING, INPUT_SUGGESTIONS, INPUT_SUGGESTIONS_TITLE, INPUT_SUGGESTIONS_ONE_HIT, INPUT_SUGGESTIONS_MORE_HITS, INPUT_SUGGESTIONS_NO_HIT,
|
|
39
|
+
// @ts-ignore
|
|
40
|
+
} from "./generated/i18n/i18n-defaults.js";
|
|
59
41
|
// Styles
|
|
60
42
|
import styles from "./generated/themes/Input.css.js";
|
|
61
43
|
import ResponsivePopoverCommonCss from "./generated/themes/ResponsivePopoverCommon.css.js";
|
|
62
44
|
import ValueStateMessageCss from "./generated/themes/ValueStateMessage.css.js";
|
|
63
45
|
import SuggestionsCss from "./generated/themes/Suggestions.css.js";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* @type {sap.ui.webcomponents.main.IIcon[]}
|
|
78
|
-
* @slot
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
icon: {
|
|
82
|
-
type: HTMLElement,
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Defines the suggestion items.
|
|
87
|
-
* <br><br>
|
|
88
|
-
* Example:
|
|
89
|
-
* <br><br>
|
|
90
|
-
* <ui5-input show-suggestions><br>
|
|
91
|
-
* <ui5-suggestion-item text="Item #1"></ui5-suggestion-item><br>
|
|
92
|
-
* <ui5-suggestion-item text="Item #2"></ui5-suggestion-item><br>
|
|
93
|
-
* </ui5-input>
|
|
94
|
-
* <br>
|
|
95
|
-
* <ui5-input show-suggestions>
|
|
96
|
-
* <ui5-suggestion-group-item text="Group #1"></ui5-suggestion-group-item>
|
|
97
|
-
* <ui5-suggestion-item text="Item #1"></ui5-suggestion-item>
|
|
98
|
-
* <ui5-suggestion-item text="Item #2"></ui5-suggestion-item>
|
|
99
|
-
* <ui5-suggestion-group-item text="Group #2"></ui5-suggestion-group-item>
|
|
100
|
-
* <ui5-suggestion-item text="Item #3"></ui5-suggestion-item>
|
|
101
|
-
* <ui5-suggestion-item text="Item #4"></ui5-suggestion-item>
|
|
102
|
-
* </ui5-input>
|
|
103
|
-
* <br><br>
|
|
104
|
-
* <b>Note:</b> The suggestions would be displayed only if the <code>showSuggestions</code>
|
|
105
|
-
* property is set to <code>true</code>.
|
|
106
|
-
* <br><br>
|
|
107
|
-
* <b>Note:</b> The <code><ui5-suggestion-item></code> and <code><ui5-suggestion-group-item></code> are recommended to be used as suggestion items.
|
|
108
|
-
* <br><br>
|
|
109
|
-
* <b>Note:</b> Importing the Input Suggestions Support feature:
|
|
110
|
-
* <br>
|
|
111
|
-
* <code>import "@ui5/webcomponents/dist/features/InputSuggestions.js";</code>
|
|
112
|
-
* <br>
|
|
113
|
-
* automatically imports the <code><ui5-suggestion-item></code> and <code><ui5-suggestion-group-item></code> for your convenience.
|
|
114
|
-
*
|
|
115
|
-
* @type {sap.ui.webcomponents.main.IInputSuggestionItem[]}
|
|
116
|
-
* @slot suggestionItems
|
|
117
|
-
* @public
|
|
118
|
-
*/
|
|
119
|
-
"default": {
|
|
120
|
-
propertyName: "suggestionItems",
|
|
121
|
-
type: HTMLElement,
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* The slot is used for native <code>input</code> HTML element to enable form submit,
|
|
126
|
-
* when <code>name</code> property is set.
|
|
127
|
-
* @type {HTMLElement[]}
|
|
128
|
-
* @private
|
|
129
|
-
*/
|
|
130
|
-
formSupport: {
|
|
131
|
-
type: HTMLElement,
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Defines the value state message that will be displayed as pop up under the component.
|
|
136
|
-
* <br><br>
|
|
137
|
-
*
|
|
138
|
-
* <b>Note:</b> If not specified, a default text (in the respective language) will be displayed.
|
|
139
|
-
* <br><br>
|
|
140
|
-
* <b>Note:</b> The <code>valueStateMessage</code> would be displayed,
|
|
141
|
-
* when the component is in <code>Information</code>, <code>Warning</code> or <code>Error</code> value state.
|
|
142
|
-
* <br><br>
|
|
143
|
-
* <b>Note:</b> If the component has <code>suggestionItems</code>,
|
|
144
|
-
* the <code>valueStateMessage</code> would be displayed as part of the same popover, if used on desktop, or dialog - on phone.
|
|
145
|
-
* @type {HTMLElement[]}
|
|
146
|
-
* @since 1.0.0-rc.6
|
|
147
|
-
* @slot
|
|
148
|
-
* @public
|
|
149
|
-
*/
|
|
150
|
-
valueStateMessage: {
|
|
151
|
-
type: HTMLElement,
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
properties: /** @lends sap.ui.webcomponents.main.Input.prototype */ {
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Defines whether the component is in disabled state.
|
|
158
|
-
* <br><br>
|
|
159
|
-
* <b>Note:</b> A disabled component is completely noninteractive.
|
|
160
|
-
*
|
|
161
|
-
* @type {boolean}
|
|
162
|
-
* @defaultvalue false
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
|
-
disabled: {
|
|
166
|
-
type: Boolean,
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Defines if characters within the suggestions are to be highlighted
|
|
171
|
-
* in case the input value matches parts of the suggestions text.
|
|
172
|
-
* <br><br>
|
|
173
|
-
* <b>Note:</b> takes effect when <code>showSuggestions</code> is set to <code>true</code>
|
|
174
|
-
*
|
|
175
|
-
* @type {boolean}
|
|
176
|
-
* @defaultvalue false
|
|
177
|
-
* @private
|
|
178
|
-
* @sicne 1.0.0-rc.8
|
|
179
|
-
*/
|
|
180
|
-
highlight: {
|
|
181
|
-
type: Boolean,
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Defines a short hint intended to aid the user with data entry when the
|
|
186
|
-
* component has no value.
|
|
187
|
-
* @type {string}
|
|
188
|
-
* @defaultvalue ""
|
|
189
|
-
* @public
|
|
190
|
-
*/
|
|
191
|
-
placeholder: {
|
|
192
|
-
type: String,
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* Defines whether the component is read-only.
|
|
197
|
-
* <br><br>
|
|
198
|
-
* <b>Note:</b> A read-only component is not editable,
|
|
199
|
-
* but still provides visual feedback upon user interaction.
|
|
200
|
-
*
|
|
201
|
-
* @type {boolean}
|
|
202
|
-
* @defaultvalue false
|
|
203
|
-
* @public
|
|
204
|
-
*/
|
|
205
|
-
readonly: {
|
|
206
|
-
type: Boolean,
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Defines whether the component is required.
|
|
211
|
-
*
|
|
212
|
-
* @type {boolean}
|
|
213
|
-
* @defaultvalue false
|
|
214
|
-
* @public
|
|
215
|
-
* @since 1.0.0-rc.3
|
|
216
|
-
*/
|
|
217
|
-
required: {
|
|
218
|
-
type: Boolean,
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Defines whether the value will be autcompleted to match an item
|
|
223
|
-
*
|
|
224
|
-
* @type {boolean}
|
|
225
|
-
* @defaultvalue false
|
|
226
|
-
* @public
|
|
227
|
-
* @since 1.4.0
|
|
228
|
-
*/
|
|
229
|
-
noTypeahead: {
|
|
230
|
-
type: Boolean,
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Defines the HTML type of the component.
|
|
235
|
-
* Available options are: <code>Text</code>, <code>Email</code>,
|
|
236
|
-
* <code>Number</code>, <code>Password</code>, <code>Tel</code>, and <code>URL</code>.
|
|
237
|
-
* <br><br>
|
|
238
|
-
* <b>Notes:</b>
|
|
239
|
-
* <ul>
|
|
240
|
-
* <li>The particular effect of this property differs depending on the browser
|
|
241
|
-
* and the current language settings, especially for type <code>Number</code>.</li>
|
|
242
|
-
* <li>The property is mostly intended to be used with touch devices
|
|
243
|
-
* that use different soft keyboard layouts depending on the given input type.</li>
|
|
244
|
-
* </ul>
|
|
245
|
-
*
|
|
246
|
-
* @type {sap.ui.webcomponents.main.types.InputType}
|
|
247
|
-
* @defaultvalue "Text"
|
|
248
|
-
* @public
|
|
249
|
-
*/
|
|
250
|
-
type: {
|
|
251
|
-
type: InputType,
|
|
252
|
-
defaultValue: InputType.Text,
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Defines the value of the component.
|
|
257
|
-
* <br><br>
|
|
258
|
-
* <b>Note:</b> The property is updated upon typing.
|
|
259
|
-
*
|
|
260
|
-
* @type {string}
|
|
261
|
-
* @defaultvalue ""
|
|
262
|
-
* @formEvents change input
|
|
263
|
-
* @formProperty
|
|
264
|
-
* @public
|
|
265
|
-
*/
|
|
266
|
-
value: {
|
|
267
|
-
type: String,
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Defines the inner stored value of the component.
|
|
272
|
-
* <br><br>
|
|
273
|
-
* <b>Note:</b> The property is updated upon typing. In some special cases the old value is kept (e.g. deleting the value after the dot in a float)
|
|
274
|
-
*
|
|
275
|
-
* @type {string}
|
|
276
|
-
* @defaultvalue ""
|
|
277
|
-
* @private
|
|
278
|
-
*/
|
|
279
|
-
_innerValue: {
|
|
280
|
-
type: String,
|
|
281
|
-
noAttribute: true,
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Defines the value state of the component.
|
|
286
|
-
* <br><br>
|
|
287
|
-
* Available options are:
|
|
288
|
-
* <ul>
|
|
289
|
-
* <li><code>None</code></li>
|
|
290
|
-
* <li><code>Error</code></li>
|
|
291
|
-
* <li><code>Warning</code></li>
|
|
292
|
-
* <li><code>Success</code></li>
|
|
293
|
-
* <li><code>Information</code></li>
|
|
294
|
-
* </ul>
|
|
295
|
-
*
|
|
296
|
-
* @type {sap.ui.webcomponents.base.types.ValueState}
|
|
297
|
-
* @defaultvalue "None"
|
|
298
|
-
* @public
|
|
299
|
-
*/
|
|
300
|
-
valueState: {
|
|
301
|
-
type: ValueState,
|
|
302
|
-
defaultValue: ValueState.None,
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
/**
|
|
306
|
-
* Determines the name with which the component will be submitted in an HTML form.
|
|
307
|
-
*
|
|
308
|
-
* <br><br>
|
|
309
|
-
* <b>Important:</b> For the <code>name</code> property to have effect, you must add the following import to your project:
|
|
310
|
-
* <code>import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";</code>
|
|
311
|
-
*
|
|
312
|
-
* <br><br>
|
|
313
|
-
* <b>Note:</b> When set, a native <code>input</code> HTML element
|
|
314
|
-
* will be created inside the component so that it can be submitted as
|
|
315
|
-
* part of an HTML form. Do not use this property unless you need to submit a form.
|
|
316
|
-
*
|
|
317
|
-
* @type {string}
|
|
318
|
-
* @defaultvalue ""
|
|
319
|
-
* @public
|
|
320
|
-
*/
|
|
321
|
-
name: {
|
|
322
|
-
type: String,
|
|
323
|
-
},
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Defines whether the component should show suggestions, if such are present.
|
|
327
|
-
* <br><br>
|
|
328
|
-
* <b>Note:</b> You need to import the <code>InputSuggestions</code> module
|
|
329
|
-
* from <code>"@ui5/webcomponents/dist/features/InputSuggestions.js"</code> to enable this functionality.
|
|
330
|
-
* @type {boolean}
|
|
331
|
-
* @defaultvalue false
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
334
|
-
showSuggestions: {
|
|
335
|
-
type: Boolean,
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* Sets the maximum number of characters available in the input field.
|
|
340
|
-
* <br><br>
|
|
341
|
-
* <b>Note:</b> This property is not compatible with the ui5-input type InputType.Number. If the ui5-input type is set to Number, the maxlength value is ignored.
|
|
342
|
-
* @type {sap.ui.webcomponents.base.types.Integer}
|
|
343
|
-
* @since 1.0.0-rc.5
|
|
344
|
-
* @public
|
|
345
|
-
*/
|
|
346
|
-
maxlength: {
|
|
347
|
-
type: Integer,
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Defines the accessible ARIA name of the component.
|
|
352
|
-
*
|
|
353
|
-
* @type {string}
|
|
354
|
-
* @public
|
|
355
|
-
* @since 1.0.0-rc.15
|
|
356
|
-
*/
|
|
357
|
-
accessibleName: {
|
|
358
|
-
type: String,
|
|
359
|
-
},
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Receives id(or many ids) of the elements that label the input.
|
|
363
|
-
*
|
|
364
|
-
* @type {string}
|
|
365
|
-
* @defaultvalue ""
|
|
366
|
-
* @public
|
|
367
|
-
* @since 1.0.0-rc.15
|
|
368
|
-
*/
|
|
369
|
-
accessibleNameRef: {
|
|
370
|
-
type: String,
|
|
371
|
-
defaultValue: "",
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* Defines whether the clear icon of the input will be shown.
|
|
376
|
-
*
|
|
377
|
-
* @type {boolean}
|
|
378
|
-
* @defaultvalue false
|
|
379
|
-
* @public
|
|
380
|
-
* @since 1.2.0
|
|
381
|
-
*/
|
|
382
|
-
showClearIcon: {
|
|
383
|
-
type: Boolean,
|
|
384
|
-
},
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Defines whether the clear icon is visible.
|
|
388
|
-
*
|
|
389
|
-
* @type {boolean}
|
|
390
|
-
* @defaultvalue false
|
|
391
|
-
* @private
|
|
392
|
-
* @since 1.2.0
|
|
393
|
-
*/
|
|
394
|
-
effectiveShowClearIcon: {
|
|
395
|
-
type: Boolean,
|
|
396
|
-
},
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* @private
|
|
400
|
-
*/
|
|
401
|
-
focused: {
|
|
402
|
-
type: Boolean,
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
openOnMobile: {
|
|
406
|
-
type: Boolean,
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
open: {
|
|
410
|
-
type: Boolean,
|
|
411
|
-
},
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Determines whether to manually show the suggestions popover
|
|
415
|
-
* @private
|
|
416
|
-
*/
|
|
417
|
-
_forceOpen: {
|
|
418
|
-
type: Boolean,
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Indicates whether the visual focus is on the value state header
|
|
423
|
-
* @private
|
|
424
|
-
*/
|
|
425
|
-
_isValueStateFocused: {
|
|
426
|
-
type: Boolean,
|
|
427
|
-
},
|
|
428
|
-
|
|
429
|
-
_input: {
|
|
430
|
-
type: Object,
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
_inputAccInfo: {
|
|
434
|
-
type: Object,
|
|
435
|
-
},
|
|
436
|
-
|
|
437
|
-
_nativeInputAttributes: {
|
|
438
|
-
type: Object,
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
_inputWidth: {
|
|
442
|
-
type: Integer,
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
_listWidth: {
|
|
446
|
-
type: Integer,
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
_isPopoverOpen: {
|
|
450
|
-
type: Boolean,
|
|
451
|
-
noAttribute: true,
|
|
452
|
-
},
|
|
453
|
-
|
|
454
|
-
_inputIconFocused: {
|
|
455
|
-
type: Boolean,
|
|
456
|
-
noAttribute: true,
|
|
457
|
-
},
|
|
458
|
-
},
|
|
459
|
-
events: /** @lends sap.ui.webcomponents.main.Input.prototype */ {
|
|
460
|
-
/**
|
|
461
|
-
* Fired when the input operation has finished by pressing Enter or on focusout.
|
|
462
|
-
*
|
|
463
|
-
* @event
|
|
464
|
-
* @public
|
|
465
|
-
*/
|
|
466
|
-
change: {},
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* Fired when the value of the component changes at each keystroke,
|
|
470
|
-
* and when a suggestion item has been selected.
|
|
471
|
-
*
|
|
472
|
-
* @event
|
|
473
|
-
* @public
|
|
474
|
-
*/
|
|
475
|
-
input: {},
|
|
476
|
-
|
|
477
|
-
/**
|
|
478
|
-
* Fired when a suggestion item, that is displayed in the suggestion popup, is selected.
|
|
479
|
-
*
|
|
480
|
-
* @event sap.ui.webcomponents.main.Input#suggestion-item-select
|
|
481
|
-
* @param {HTMLElement} item The selected item.
|
|
482
|
-
* @public
|
|
483
|
-
*/
|
|
484
|
-
"suggestion-item-select": {
|
|
485
|
-
detail: {
|
|
486
|
-
item: { type: HTMLElement },
|
|
487
|
-
},
|
|
488
|
-
},
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Fired when the user navigates to a suggestion item via the ARROW keys,
|
|
492
|
-
* as a preview, before the final selection.
|
|
493
|
-
*
|
|
494
|
-
* @event sap.ui.webcomponents.main.Input#suggestion-item-preview
|
|
495
|
-
* @param {HTMLElement} item The previewed suggestion item.
|
|
496
|
-
* @param {HTMLElement} targetRef The DOM ref of the suggestion item.
|
|
497
|
-
* @public
|
|
498
|
-
* @since 1.0.0-rc.8
|
|
499
|
-
*/
|
|
500
|
-
"suggestion-item-preview": {
|
|
501
|
-
detail: {
|
|
502
|
-
item: { type: HTMLElement },
|
|
503
|
-
targetRef: { type: HTMLElement },
|
|
504
|
-
},
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Fired when the user scrolls the suggestion popover.
|
|
509
|
-
*
|
|
510
|
-
* @event sap.ui.webcomponents.main.Input#suggestion-scroll
|
|
511
|
-
* @param {Integer} scrollTop The current scroll position.
|
|
512
|
-
* @param {HTMLElement} scrollContainer The scroll container.
|
|
513
|
-
* @protected
|
|
514
|
-
* @since 1.0.0-rc.8
|
|
515
|
-
*/
|
|
516
|
-
"suggestion-scroll": {
|
|
517
|
-
detail: {
|
|
518
|
-
scrollTop: { type: Integer },
|
|
519
|
-
scrollContainer: { type: HTMLElement },
|
|
520
|
-
},
|
|
521
|
-
},
|
|
522
|
-
},
|
|
523
|
-
};
|
|
524
|
-
|
|
46
|
+
// all sementic events
|
|
47
|
+
var INPUT_EVENTS;
|
|
48
|
+
(function (INPUT_EVENTS) {
|
|
49
|
+
INPUT_EVENTS["CHANGE"] = "change";
|
|
50
|
+
INPUT_EVENTS["INPUT"] = "input";
|
|
51
|
+
INPUT_EVENTS["SUGGESTION_ITEM_SELECT"] = "suggestion-item-select";
|
|
52
|
+
})(INPUT_EVENTS || (INPUT_EVENTS = {}));
|
|
53
|
+
// all user interactions
|
|
54
|
+
var INPUT_ACTIONS;
|
|
55
|
+
(function (INPUT_ACTIONS) {
|
|
56
|
+
INPUT_ACTIONS["ACTION_ENTER"] = "enter";
|
|
57
|
+
INPUT_ACTIONS["ACTION_USER_INPUT"] = "input";
|
|
58
|
+
})(INPUT_ACTIONS || (INPUT_ACTIONS = {}));
|
|
525
59
|
/**
|
|
526
60
|
* @class
|
|
527
61
|
* <h3 class="comment-api-title">Overview</h3>
|
|
@@ -565,1139 +99,1073 @@ const metadata = {
|
|
|
565
99
|
*
|
|
566
100
|
* @constructor
|
|
567
101
|
* @author SAP SE
|
|
568
|
-
* @alias sap.ui.
|
|
569
|
-
* @extends sap.ui.
|
|
102
|
+
* @alias sap.ui.webc.main.Input
|
|
103
|
+
* @extends sap.ui.webc.base.UI5Element
|
|
570
104
|
* @tagname ui5-input
|
|
571
105
|
* @appenddocs SuggestionItem SuggestionGroupItem
|
|
572
|
-
* @implements sap.ui.
|
|
106
|
+
* @implements sap.ui.webc.main.IInput
|
|
573
107
|
* @public
|
|
574
108
|
*/
|
|
575
|
-
class Input extends UI5Element {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
"
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
get _valueStatePopoverHorizontalAlign() {
|
|
1636
|
-
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
/**
|
|
1640
|
-
* This method is relevant for sap_horizon theme only
|
|
1641
|
-
*/
|
|
1642
|
-
get _valueStateMessageInputIcon() {
|
|
1643
|
-
const iconPerValueState = {
|
|
1644
|
-
Error: "error",
|
|
1645
|
-
Warning: "alert",
|
|
1646
|
-
Success: "sys-enter-2",
|
|
1647
|
-
Information: "information",
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
return this.valueState !== ValueState.None ? iconPerValueState[this.valueState] : "";
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
/**
|
|
1654
|
-
* Returns the caret position inside the native input
|
|
1655
|
-
* @protected
|
|
1656
|
-
*/
|
|
1657
|
-
getCaretPosition() {
|
|
1658
|
-
return getCaretPosition(this.nativeInput);
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
/**
|
|
1662
|
-
* Sets the caret to a certain position inside the native input
|
|
1663
|
-
* @protected
|
|
1664
|
-
* @param pos
|
|
1665
|
-
*/
|
|
1666
|
-
setCaretPosition(pos) {
|
|
1667
|
-
setCaretPosition(this.nativeInput, pos);
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
/**
|
|
1671
|
-
* Removes the fractional part of floating-point number.
|
|
1672
|
-
* @param {string} value the numeric value of Input of type "Number"
|
|
1673
|
-
*/
|
|
1674
|
-
removeFractionalPart(value) {
|
|
1675
|
-
if (value.includes(".")) {
|
|
1676
|
-
return value.slice(0, value.indexOf("."));
|
|
1677
|
-
}
|
|
1678
|
-
if (value.includes(",")) {
|
|
1679
|
-
return value.slice(0, value.indexOf(","));
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
return value;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
static get dependencies() {
|
|
1686
|
-
const Suggestions = getFeature("InputSuggestions");
|
|
1687
|
-
|
|
1688
|
-
return [Popover, Icon].concat(Suggestions ? Suggestions.dependencies : []);
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
static async onDefine() {
|
|
1692
|
-
const Suggestions = getFeature("InputSuggestions");
|
|
1693
|
-
|
|
1694
|
-
[Input.i18nBundle] = await Promise.all([
|
|
1695
|
-
getI18nBundle("@ui5/webcomponents"),
|
|
1696
|
-
Suggestions ? Suggestions.init() : Promise.resolve(),
|
|
1697
|
-
]);
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
|
|
109
|
+
let Input = Input_1 = class Input extends UI5Element {
|
|
110
|
+
static get render() {
|
|
111
|
+
return litRender;
|
|
112
|
+
}
|
|
113
|
+
static get template() {
|
|
114
|
+
return InputTemplate;
|
|
115
|
+
}
|
|
116
|
+
static get staticAreaTemplate() {
|
|
117
|
+
return InputPopoverTemplate;
|
|
118
|
+
}
|
|
119
|
+
static get styles() {
|
|
120
|
+
return styles;
|
|
121
|
+
}
|
|
122
|
+
static get staticAreaStyles() {
|
|
123
|
+
return [ResponsivePopoverCommonCss, ValueStateMessageCss, SuggestionsCss];
|
|
124
|
+
}
|
|
125
|
+
constructor() {
|
|
126
|
+
super();
|
|
127
|
+
// Indicates if there is selected suggestionItem.
|
|
128
|
+
this.hasSuggestionItemSelected = false;
|
|
129
|
+
// Represents the value before user moves selection from suggestion item to another
|
|
130
|
+
// and its value is updated after each move.
|
|
131
|
+
// Note: Used to register and fire "input" event upon [SPACE] or [ENTER].
|
|
132
|
+
// Note: The property "value" is updated upon selection move and can`t be used.
|
|
133
|
+
this.valueBeforeItemSelection = "";
|
|
134
|
+
// Represents the value before user moves selection between the suggestion items
|
|
135
|
+
// and its value remains the same when the user navigates up or down the list.
|
|
136
|
+
// Note: Used to cancel selection upon [ESC].
|
|
137
|
+
this.valueBeforeItemPreview = "";
|
|
138
|
+
// Indicates if the user selection has been canceled with [ESC].
|
|
139
|
+
this.suggestionSelectionCanceled = false;
|
|
140
|
+
// tracks the value between focus in and focus out to detect that change event should be fired.
|
|
141
|
+
this.previousValue = "";
|
|
142
|
+
// Indicates, if the component is rendering for first time.
|
|
143
|
+
this.firstRendering = true;
|
|
144
|
+
// The typed in value.
|
|
145
|
+
this.typedInValue = "";
|
|
146
|
+
// The last value confirmed by the user with "ENTER"
|
|
147
|
+
this.lastConfirmedValue = "";
|
|
148
|
+
// Indicates, if the user is typing. Gets reset once popup is closed
|
|
149
|
+
this.isTyping = false;
|
|
150
|
+
// Suggestions array initialization
|
|
151
|
+
this.suggestionsTexts = [];
|
|
152
|
+
this._handleResizeBound = this._handleResize.bind(this);
|
|
153
|
+
this._keepInnerValue = false;
|
|
154
|
+
}
|
|
155
|
+
onEnterDOM() {
|
|
156
|
+
ResizeHandler.register(this, this._handleResizeBound);
|
|
157
|
+
}
|
|
158
|
+
onExitDOM() {
|
|
159
|
+
ResizeHandler.deregister(this, this._handleResizeBound);
|
|
160
|
+
}
|
|
161
|
+
onBeforeRendering() {
|
|
162
|
+
if (!this._keepInnerValue) {
|
|
163
|
+
this._innerValue = this.value;
|
|
164
|
+
}
|
|
165
|
+
if (this.showSuggestions) {
|
|
166
|
+
this.enableSuggestions();
|
|
167
|
+
this.suggestionsTexts = this.Suggestions.defaultSlotProperties(this.typedInValue);
|
|
168
|
+
}
|
|
169
|
+
this.effectiveShowClearIcon = (this.showClearIcon && !!this.value && !this.readonly && !this.disabled);
|
|
170
|
+
this.FormSupport = getFeature("FormSupport");
|
|
171
|
+
const hasItems = !!this.suggestionItems.length;
|
|
172
|
+
const hasValue = !!this.value;
|
|
173
|
+
const isFocused = this.shadowRoot.querySelector("input") === getActiveElement();
|
|
174
|
+
if (this._isPhone) {
|
|
175
|
+
this.open = this.openOnMobile;
|
|
176
|
+
}
|
|
177
|
+
else if (this._forceOpen) {
|
|
178
|
+
this.open = true;
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
this.open = hasValue && hasItems && isFocused && this.isTyping;
|
|
182
|
+
}
|
|
183
|
+
if (this.FormSupport) {
|
|
184
|
+
this.FormSupport.syncNativeHiddenInput(this);
|
|
185
|
+
}
|
|
186
|
+
else if (this.name) {
|
|
187
|
+
console.warn(`In order for the "name" property to have effect, you should also: import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";`); // eslint-disable-line
|
|
188
|
+
}
|
|
189
|
+
const value = this.value;
|
|
190
|
+
const innerInput = this.getInputDOMRefSync();
|
|
191
|
+
if (!innerInput || !value) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
const autoCompletedChars = innerInput.selectionEnd - innerInput.selectionStart;
|
|
195
|
+
// Typehead causes issues on Android devices, so we disable it for now
|
|
196
|
+
// If there is already a selection the autocomplete has already been performed
|
|
197
|
+
if (this._shouldAutocomplete && !isAndroid() && !autoCompletedChars && !this._isKeyNavigation) {
|
|
198
|
+
const item = this._getFirstMatchingItem(value);
|
|
199
|
+
if (item) {
|
|
200
|
+
this._handleTypeAhead(item, value);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async onAfterRendering() {
|
|
205
|
+
if (this.Suggestions && this.showSuggestions) {
|
|
206
|
+
this.Suggestions.toggle(this.open, {
|
|
207
|
+
preventFocusRestore: true,
|
|
208
|
+
});
|
|
209
|
+
this._listWidth = await this.Suggestions._getListWidth();
|
|
210
|
+
}
|
|
211
|
+
if (this.shouldDisplayOnlyValueStateMessage) {
|
|
212
|
+
this.openPopover();
|
|
213
|
+
}
|
|
214
|
+
else {
|
|
215
|
+
this.closePopover();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
_onkeydown(e) {
|
|
219
|
+
this._isKeyNavigation = true;
|
|
220
|
+
this._shouldAutocomplete = !this.noTypeahead && !(isBackSpace(e) || isDelete(e) || isEscape(e));
|
|
221
|
+
if (isUp(e)) {
|
|
222
|
+
return this._handleUp(e);
|
|
223
|
+
}
|
|
224
|
+
if (isDown(e)) {
|
|
225
|
+
return this._handleDown(e);
|
|
226
|
+
}
|
|
227
|
+
if (isSpace(e)) {
|
|
228
|
+
return this._handleSpace(e);
|
|
229
|
+
}
|
|
230
|
+
if (isTabNext(e)) {
|
|
231
|
+
return this._handleTab();
|
|
232
|
+
}
|
|
233
|
+
if (isEnter(e)) {
|
|
234
|
+
return this._handleEnter(e);
|
|
235
|
+
}
|
|
236
|
+
if (isPageUp(e)) {
|
|
237
|
+
return this._handlePageUp(e);
|
|
238
|
+
}
|
|
239
|
+
if (isPageDown(e)) {
|
|
240
|
+
return this._handlePageDown(e);
|
|
241
|
+
}
|
|
242
|
+
if (isHome(e)) {
|
|
243
|
+
return this._handleHome(e);
|
|
244
|
+
}
|
|
245
|
+
if (isEnd(e)) {
|
|
246
|
+
return this._handleEnd(e);
|
|
247
|
+
}
|
|
248
|
+
if (isEscape(e)) {
|
|
249
|
+
return this._handleEscape();
|
|
250
|
+
}
|
|
251
|
+
if (this.showSuggestions) {
|
|
252
|
+
this._clearPopoverFocusAndSelection();
|
|
253
|
+
}
|
|
254
|
+
this._keyDown = true;
|
|
255
|
+
this._isKeyNavigation = false;
|
|
256
|
+
}
|
|
257
|
+
_onkeyup(e) {
|
|
258
|
+
// The native Delete event does not update the value property "on time".
|
|
259
|
+
// So, the (native) change event is always fired with the old value
|
|
260
|
+
if (isDelete(e)) {
|
|
261
|
+
this.value = e.target.value;
|
|
262
|
+
}
|
|
263
|
+
this._keyDown = false;
|
|
264
|
+
}
|
|
265
|
+
_handleUp(e) {
|
|
266
|
+
if (this.Suggestions && this.Suggestions.isOpened()) {
|
|
267
|
+
this.Suggestions.onUp(e);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
_handleDown(e) {
|
|
271
|
+
if (this.Suggestions && this.Suggestions.isOpened()) {
|
|
272
|
+
this.Suggestions.onDown(e);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
_handleSpace(e) {
|
|
276
|
+
if (this.Suggestions) {
|
|
277
|
+
this.Suggestions.onSpace(e);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
_handleTab() {
|
|
281
|
+
if (this.Suggestions && (this.previousValue !== this.value)) {
|
|
282
|
+
this.Suggestions.onTab();
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
_handleEnter(e) {
|
|
286
|
+
const itemPressed = !!(this.Suggestions && this.Suggestions.onEnter(e));
|
|
287
|
+
const innerInput = this.getInputDOMRefSync();
|
|
288
|
+
// Check for autocompleted item
|
|
289
|
+
const matchingItem = this.suggestionItems.find(item => {
|
|
290
|
+
return (item.text && item.text === this.value) || (item.textContent === this.value);
|
|
291
|
+
});
|
|
292
|
+
if (matchingItem) {
|
|
293
|
+
const itemText = matchingItem.text ? matchingItem.text : (matchingItem.textContent || "");
|
|
294
|
+
innerInput.setSelectionRange(itemText.length, itemText.length);
|
|
295
|
+
if (!itemPressed) {
|
|
296
|
+
this.selectSuggestion(matchingItem, true);
|
|
297
|
+
this.open = false;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
if (this._isPhone && !this.suggestionItems.length) {
|
|
301
|
+
innerInput.setSelectionRange(this.value.length, this.value.length);
|
|
302
|
+
}
|
|
303
|
+
if (!itemPressed) {
|
|
304
|
+
this.lastConfirmedValue = this.value;
|
|
305
|
+
if (this.FormSupport) {
|
|
306
|
+
this.FormSupport.triggerFormSubmit(this);
|
|
307
|
+
}
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
this.focused = true;
|
|
311
|
+
}
|
|
312
|
+
_handlePageUp(e) {
|
|
313
|
+
if (this._isSuggestionsFocused) {
|
|
314
|
+
this.Suggestions.onPageUp(e);
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
e.preventDefault();
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
_handlePageDown(e) {
|
|
321
|
+
if (this._isSuggestionsFocused) {
|
|
322
|
+
this.Suggestions.onPageDown(e);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
e.preventDefault();
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
_handleHome(e) {
|
|
329
|
+
if (this._isSuggestionsFocused) {
|
|
330
|
+
this.Suggestions.onHome(e);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
_handleEnd(e) {
|
|
334
|
+
if (this._isSuggestionsFocused) {
|
|
335
|
+
this.Suggestions.onEnd(e);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
_handleEscape() {
|
|
339
|
+
const hasSuggestions = this.showSuggestions && !!this.Suggestions;
|
|
340
|
+
const isOpen = hasSuggestions && this.open;
|
|
341
|
+
const innerInput = this.getInputDOMRefSync();
|
|
342
|
+
const isAutoCompleted = innerInput.selectionEnd - innerInput.selectionStart > 0;
|
|
343
|
+
this.isTyping = false;
|
|
344
|
+
if (!isOpen) {
|
|
345
|
+
this.value = this.lastConfirmedValue ? this.lastConfirmedValue : this.previousValue;
|
|
346
|
+
return;
|
|
347
|
+
}
|
|
348
|
+
if (isOpen && this.Suggestions._isItemOnTarget()) {
|
|
349
|
+
// Restore the value.
|
|
350
|
+
this.value = this.typedInValue || this.valueBeforeItemPreview;
|
|
351
|
+
// Mark that the selection has been canceled, so the popover can close
|
|
352
|
+
// and not reopen, due to receiving focus.
|
|
353
|
+
this.suggestionSelectionCanceled = true;
|
|
354
|
+
this.focused = true;
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (isAutoCompleted) {
|
|
358
|
+
this.value = this.typedInValue;
|
|
359
|
+
}
|
|
360
|
+
if (this._isValueStateFocused) {
|
|
361
|
+
this._isValueStateFocused = false;
|
|
362
|
+
this.focused = true;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
async _onfocusin(e) {
|
|
366
|
+
await this.getInputDOMRef();
|
|
367
|
+
this.focused = true; // invalidating property
|
|
368
|
+
this.previousValue = this.value;
|
|
369
|
+
this.valueBeforeItemPreview = this.value;
|
|
370
|
+
this._inputIconFocused = !!e.target && e.target === this.querySelector("[ui5-icon]");
|
|
371
|
+
}
|
|
372
|
+
_onfocusout(e) {
|
|
373
|
+
const toBeFocused = e.relatedTarget;
|
|
374
|
+
const focusedOutToSuggestions = this.Suggestions && toBeFocused && toBeFocused.shadowRoot && toBeFocused.shadowRoot.contains(this.Suggestions.responsivePopover);
|
|
375
|
+
const focusedOutToValueStateMessage = toBeFocused && toBeFocused.shadowRoot && toBeFocused.shadowRoot.querySelector(".ui5-valuestatemessage-root");
|
|
376
|
+
this._keepInnerValue = false;
|
|
377
|
+
if (this.showClearIcon && !this.effectiveShowClearIcon) {
|
|
378
|
+
this._clearIconClicked = false;
|
|
379
|
+
this._handleChange();
|
|
380
|
+
}
|
|
381
|
+
// if focusout is triggered by pressing on suggestion item or value state message popover, skip invalidation, because re-rendering
|
|
382
|
+
// will happen before "itemPress" event, which will make item "active" state not visualized
|
|
383
|
+
if (focusedOutToSuggestions || focusedOutToValueStateMessage) {
|
|
384
|
+
e.stopImmediatePropagation();
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
if (toBeFocused && (toBeFocused).classList.contains(this._id)) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
this.open = false;
|
|
391
|
+
this._clearPopoverFocusAndSelection();
|
|
392
|
+
this.previousValue = "";
|
|
393
|
+
this.lastConfirmedValue = "";
|
|
394
|
+
this.focused = false; // invalidating property
|
|
395
|
+
this.isTyping = false;
|
|
396
|
+
this._forceOpen = false;
|
|
397
|
+
}
|
|
398
|
+
_clearPopoverFocusAndSelection() {
|
|
399
|
+
if (!this.showSuggestions || !this.Suggestions) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
this._isValueStateFocused = false;
|
|
403
|
+
this.hasSuggestionItemSelected = false;
|
|
404
|
+
this.Suggestions._deselectItems();
|
|
405
|
+
this.Suggestions._clearItemFocus();
|
|
406
|
+
}
|
|
407
|
+
_click() {
|
|
408
|
+
if (isPhone() && !this.readonly && this.Suggestions) {
|
|
409
|
+
this.blur();
|
|
410
|
+
this.openOnMobile = true;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
_handleChange() {
|
|
414
|
+
if (this._clearIconClicked) {
|
|
415
|
+
this._clearIconClicked = false;
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
if (this.previousValue !== this.getInputDOMRefSync().value) {
|
|
419
|
+
this.previousValue = this.getInputDOMRefSync().value;
|
|
420
|
+
this.fireEvent(INPUT_EVENTS.CHANGE);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
_clear() {
|
|
424
|
+
this.value = "";
|
|
425
|
+
this.fireEvent(INPUT_EVENTS.INPUT);
|
|
426
|
+
if (!this._isPhone) {
|
|
427
|
+
this.focus();
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
_iconMouseDown() {
|
|
431
|
+
this._clearIconClicked = true;
|
|
432
|
+
}
|
|
433
|
+
_scroll(e) {
|
|
434
|
+
this.fireEvent("suggestion-scroll", {
|
|
435
|
+
scrollTop: e.detail.scrollTop,
|
|
436
|
+
scrollContainer: e.detail.targetRef,
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
_handleInput(e) {
|
|
440
|
+
const inputDomRef = this.getInputDOMRefSync();
|
|
441
|
+
const emptyValueFiredOnNumberInput = this.value && this.isTypeNumber && !inputDomRef.value;
|
|
442
|
+
const eventType = e.inputType
|
|
443
|
+
|| (e.detail && e.detail.inputType)
|
|
444
|
+
|| "";
|
|
445
|
+
this._keepInnerValue = false;
|
|
446
|
+
const allowedEventTypes = [
|
|
447
|
+
"deleteWordBackward",
|
|
448
|
+
"deleteWordForward",
|
|
449
|
+
"deleteSoftLineBackward",
|
|
450
|
+
"deleteSoftLineForward",
|
|
451
|
+
"deleteEntireSoftLine",
|
|
452
|
+
"deleteHardLineBackward",
|
|
453
|
+
"deleteHardLineForward",
|
|
454
|
+
"deleteByDrag",
|
|
455
|
+
"deleteByCut",
|
|
456
|
+
"deleteContent",
|
|
457
|
+
"deleteContentBackward",
|
|
458
|
+
"deleteContentForward",
|
|
459
|
+
"historyUndo",
|
|
460
|
+
];
|
|
461
|
+
this._shouldAutocomplete = !allowedEventTypes.includes(eventType) && !this.noTypeahead;
|
|
462
|
+
this.suggestionSelectionCanceled = false;
|
|
463
|
+
if (e instanceof InputEvent) {
|
|
464
|
+
// ---- Special cases of numeric Input ----
|
|
465
|
+
// ---------------- Start -----------------
|
|
466
|
+
// When the last character after the delimiter is removed.
|
|
467
|
+
// In such cases, we want to skip the re-rendering of the
|
|
468
|
+
// component as this leads to cursor repositioning and causes user experience issues.
|
|
469
|
+
// There are few scenarios:
|
|
470
|
+
// Example: type "123.4" and press BACKSPACE - the native input is firing event with the whole part as value (123).
|
|
471
|
+
// Pressing BACKSPACE again will remove the delimiter and the native input will fire event with the whole part as value again (123).
|
|
472
|
+
// Example: type "123.456", select/mark "456" and press BACKSPACE - the native input is firing event with the whole part as value (123).
|
|
473
|
+
// Example: type "123.456", select/mark "123.456" and press BACKSPACE - the native input is firing event with empty value.
|
|
474
|
+
const delimiterCase = this.isTypeNumber
|
|
475
|
+
&& (e.inputType === "deleteContentForward" || e.inputType === "deleteContentBackward")
|
|
476
|
+
&& !e.target.value.includes(".")
|
|
477
|
+
&& this.value.includes(".");
|
|
478
|
+
// Handle special numeric notation with "e", example "12.5e12"
|
|
479
|
+
const eNotationCase = emptyValueFiredOnNumberInput && e.data === "e";
|
|
480
|
+
// Handle special numeric notation with "-", example "-3"
|
|
481
|
+
// When pressing BACKSPACE, the native input fires event with empty value
|
|
482
|
+
const minusRemovalCase = emptyValueFiredOnNumberInput
|
|
483
|
+
&& this.value.startsWith("-")
|
|
484
|
+
&& this.value.length === 2
|
|
485
|
+
&& (e.inputType === "deleteContentForward" || e.inputType === "deleteContentBackward");
|
|
486
|
+
if (delimiterCase || eNotationCase || minusRemovalCase) {
|
|
487
|
+
this.value = e.target.value;
|
|
488
|
+
this._keepInnerValue = true;
|
|
489
|
+
}
|
|
490
|
+
// ----------------- End ------------------
|
|
491
|
+
}
|
|
492
|
+
if (e.target === inputDomRef) {
|
|
493
|
+
this.focused = true;
|
|
494
|
+
// stop the native event, as the semantic "input" would be fired.
|
|
495
|
+
e.stopImmediatePropagation();
|
|
496
|
+
}
|
|
497
|
+
this.fireEventByAction(INPUT_ACTIONS.ACTION_ENTER, e);
|
|
498
|
+
this.hasSuggestionItemSelected = false;
|
|
499
|
+
this._isValueStateFocused = false;
|
|
500
|
+
if (this.Suggestions) {
|
|
501
|
+
this.Suggestions.updateSelectedItemPosition(-1);
|
|
502
|
+
}
|
|
503
|
+
this.isTyping = true;
|
|
504
|
+
}
|
|
505
|
+
_startsWithMatchingItems(str) {
|
|
506
|
+
const textProp = this.suggestionItems[0].text ? "text" : "textContent";
|
|
507
|
+
return StartsWith(str, this.suggestionItems, textProp);
|
|
508
|
+
}
|
|
509
|
+
_getFirstMatchingItem(current) {
|
|
510
|
+
if (!this.suggestionItems.length) {
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
const matchingItems = this._startsWithMatchingItems(current).filter(item => !item.groupItem);
|
|
514
|
+
if (matchingItems.length) {
|
|
515
|
+
return matchingItems[0];
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
_handleTypeAhead(item, filterValue) {
|
|
519
|
+
const value = item.text ? item.text : item.textContent || "";
|
|
520
|
+
const innerInput = this.getInputDOMRefSync();
|
|
521
|
+
filterValue = filterValue || "";
|
|
522
|
+
this._innerValue = value;
|
|
523
|
+
this.value = value;
|
|
524
|
+
innerInput.value = value;
|
|
525
|
+
setTimeout(() => {
|
|
526
|
+
innerInput.setSelectionRange(filterValue.length, value.length);
|
|
527
|
+
}, 0);
|
|
528
|
+
this._shouldAutocomplete = false;
|
|
529
|
+
}
|
|
530
|
+
_handleResize() {
|
|
531
|
+
this._inputWidth = this.offsetWidth;
|
|
532
|
+
}
|
|
533
|
+
_closeRespPopover() {
|
|
534
|
+
this.Suggestions.close(true);
|
|
535
|
+
}
|
|
536
|
+
async _afterOpenPopover() {
|
|
537
|
+
// Set initial focus to the native input
|
|
538
|
+
if (isPhone()) {
|
|
539
|
+
(await this.getInputDOMRef()).focus();
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
_afterClosePopover() {
|
|
543
|
+
this.announceSelectedItem();
|
|
544
|
+
// close device's keyboard and prevent further typing
|
|
545
|
+
if (isPhone()) {
|
|
546
|
+
this.blur();
|
|
547
|
+
this.focused = false;
|
|
548
|
+
}
|
|
549
|
+
this.openOnMobile = false;
|
|
550
|
+
this.open = false;
|
|
551
|
+
this._forceOpen = false;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Checks if the value state popover is open.
|
|
555
|
+
* @returns {boolean} true if the value state popover is open, false otherwise
|
|
556
|
+
*/
|
|
557
|
+
isValueStateOpened() {
|
|
558
|
+
return !!this._isPopoverOpen;
|
|
559
|
+
}
|
|
560
|
+
async openPopover() {
|
|
561
|
+
const popover = await this._getPopover();
|
|
562
|
+
if (popover) {
|
|
563
|
+
this._isPopoverOpen = true;
|
|
564
|
+
popover.showAt(this);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
async closePopover() {
|
|
568
|
+
const popover = await this._getPopover();
|
|
569
|
+
popover && popover.close();
|
|
570
|
+
}
|
|
571
|
+
async _getPopover() {
|
|
572
|
+
const staticAreaItem = await this.getStaticAreaItemDomRef();
|
|
573
|
+
return staticAreaItem.querySelector("[ui5-popover]");
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Manually opens the suggestions popover, assuming suggestions are enabled. Items must be preloaded for it to open.
|
|
577
|
+
* @public
|
|
578
|
+
* @method
|
|
579
|
+
* @name sap.ui.webc.main.Input#openPicker
|
|
580
|
+
* @return {void}
|
|
581
|
+
* @since 1.3.0
|
|
582
|
+
*/
|
|
583
|
+
openPicker() {
|
|
584
|
+
if (!this.suggestionItems.length || this.disabled || this.readonly) {
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
this._forceOpen = true;
|
|
588
|
+
}
|
|
589
|
+
enableSuggestions() {
|
|
590
|
+
if (this.Suggestions) {
|
|
591
|
+
return;
|
|
592
|
+
}
|
|
593
|
+
const Suggestions = getFeature("InputSuggestions");
|
|
594
|
+
if (Suggestions) {
|
|
595
|
+
this.Suggestions = new Suggestions(this, "suggestionItems", true, false);
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
throw new Error(`You have to import "@ui5/webcomponents/dist/features/InputSuggestions.js" module to use ui5-input suggestions`);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
selectSuggestion(item, keyboardUsed) {
|
|
602
|
+
if (item.groupItem) {
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
const innerInput = this.getInputDOMRefSync();
|
|
606
|
+
const value = this.typedInValue || this.value;
|
|
607
|
+
const itemText = item.text || item.textContent || ""; // keep textContent for compatibility
|
|
608
|
+
const fireInput = keyboardUsed
|
|
609
|
+
? this.valueBeforeItemSelection !== itemText : value !== itemText;
|
|
610
|
+
this.hasSuggestionItemSelected = true;
|
|
611
|
+
if (fireInput) {
|
|
612
|
+
this.value = itemText;
|
|
613
|
+
this.valueBeforeItemSelection = itemText;
|
|
614
|
+
this.lastConfirmedValue = itemText;
|
|
615
|
+
innerInput.value = itemText;
|
|
616
|
+
this.fireEvent(INPUT_EVENTS.INPUT);
|
|
617
|
+
this._handleChange();
|
|
618
|
+
innerInput.setSelectionRange(this.value.length, this.value.length);
|
|
619
|
+
}
|
|
620
|
+
this.valueBeforeItemPreview = "";
|
|
621
|
+
this.suggestionSelectionCanceled = false;
|
|
622
|
+
this.fireEvent(INPUT_EVENTS.SUGGESTION_ITEM_SELECT, { item });
|
|
623
|
+
this.isTyping = false;
|
|
624
|
+
this.openOnMobile = false;
|
|
625
|
+
this._forceOpen = false;
|
|
626
|
+
}
|
|
627
|
+
previewSuggestion(item) {
|
|
628
|
+
this.valueBeforeItemSelection = this.value;
|
|
629
|
+
this.updateValueOnPreview(item);
|
|
630
|
+
this.announceSelectedItem();
|
|
631
|
+
this._previewItem = item;
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Updates the input value on item preview.
|
|
635
|
+
* @param {Object} item The item that is on preview
|
|
636
|
+
*/
|
|
637
|
+
updateValueOnPreview(item) {
|
|
638
|
+
const noPreview = item.type === "Inactive" || item.groupItem;
|
|
639
|
+
const innerInput = this.getInputDOMRefSync();
|
|
640
|
+
const itemValue = noPreview ? this.valueBeforeItemPreview : (item.effectiveTitle || item.textContent || "");
|
|
641
|
+
this.value = itemValue;
|
|
642
|
+
innerInput.value = itemValue;
|
|
643
|
+
innerInput.setSelectionRange(this.typedInValue.length, this.value.length);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* The suggestion item on preview.
|
|
647
|
+
* @type {sap.ui.webc.main.IInputSuggestionItem | null}
|
|
648
|
+
* @name sap.ui.webc.main.Input.prototype.previewItem
|
|
649
|
+
* @readonly
|
|
650
|
+
* @public
|
|
651
|
+
*/
|
|
652
|
+
get previewItem() {
|
|
653
|
+
if (!this._previewItem) {
|
|
654
|
+
return null;
|
|
655
|
+
}
|
|
656
|
+
return this.getSuggestionByListItem(this._previewItem);
|
|
657
|
+
}
|
|
658
|
+
async fireEventByAction(action, e) {
|
|
659
|
+
if (this.disabled || this.readonly) {
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
const inputValue = await this.getInputValue();
|
|
663
|
+
const isUserInput = action === INPUT_ACTIONS.ACTION_ENTER;
|
|
664
|
+
this.value = inputValue;
|
|
665
|
+
this.typedInValue = inputValue;
|
|
666
|
+
this.valueBeforeItemPreview = inputValue;
|
|
667
|
+
if (isUserInput) { // input
|
|
668
|
+
this.fireEvent(INPUT_EVENTS.INPUT, { inputType: e.inputType });
|
|
669
|
+
// Angular two way data binding
|
|
670
|
+
this.fireEvent("value-changed");
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
async getInputValue() {
|
|
674
|
+
const domRef = this.getDomRef();
|
|
675
|
+
if (domRef) {
|
|
676
|
+
return (await this.getInputDOMRef()).value;
|
|
677
|
+
}
|
|
678
|
+
return "";
|
|
679
|
+
}
|
|
680
|
+
async getInputDOMRef() {
|
|
681
|
+
if (isPhone() && this.Suggestions) {
|
|
682
|
+
await this.Suggestions._getSuggestionPopover();
|
|
683
|
+
return this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone");
|
|
684
|
+
}
|
|
685
|
+
return this.nativeInput;
|
|
686
|
+
}
|
|
687
|
+
getInputDOMRefSync() {
|
|
688
|
+
if (isPhone() && this.Suggestions && this.Suggestions.responsivePopover) {
|
|
689
|
+
return this.Suggestions.responsivePopover.querySelector(".ui5-input-inner-phone").shadowRoot.querySelector("input");
|
|
690
|
+
}
|
|
691
|
+
return this.nativeInput;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Returns a reference to the native input element
|
|
695
|
+
* @protected
|
|
696
|
+
*/
|
|
697
|
+
get nativeInput() {
|
|
698
|
+
const domRef = this.getDomRef();
|
|
699
|
+
return domRef ? domRef.querySelector(`input`) : null;
|
|
700
|
+
}
|
|
701
|
+
get nativeInputWidth() {
|
|
702
|
+
return this.nativeInput ? this.nativeInput.offsetWidth : 0;
|
|
703
|
+
}
|
|
704
|
+
getLabelableElementId() {
|
|
705
|
+
return this.getInputId();
|
|
706
|
+
}
|
|
707
|
+
getSuggestionByListItem(item) {
|
|
708
|
+
const key = parseInt(item.getAttribute("data-ui5-key"));
|
|
709
|
+
return this.suggestionItems[key];
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Returns if the suggestions popover is scrollable.
|
|
713
|
+
* The method returns <code>Promise</code> that resolves to true,
|
|
714
|
+
* if the popup is scrollable and false otherwise.
|
|
715
|
+
* @returns {Promise}
|
|
716
|
+
*/
|
|
717
|
+
isSuggestionsScrollable() {
|
|
718
|
+
if (!this.Suggestions) {
|
|
719
|
+
return Promise.resolve(false);
|
|
720
|
+
}
|
|
721
|
+
return this.Suggestions._isScrollable();
|
|
722
|
+
}
|
|
723
|
+
getInputId() {
|
|
724
|
+
return `${this._id}-inner`;
|
|
725
|
+
}
|
|
726
|
+
/* Suggestions interface */
|
|
727
|
+
onItemMouseOver(e) {
|
|
728
|
+
const item = e.target;
|
|
729
|
+
const suggestion = this.getSuggestionByListItem(item);
|
|
730
|
+
suggestion && suggestion.fireEvent("mouseover", {
|
|
731
|
+
item: suggestion,
|
|
732
|
+
targetRef: item,
|
|
733
|
+
});
|
|
734
|
+
}
|
|
735
|
+
onItemMouseOut(e) {
|
|
736
|
+
const item = e.target;
|
|
737
|
+
const suggestion = this.getSuggestionByListItem(item);
|
|
738
|
+
suggestion && suggestion.fireEvent("mouseout", {
|
|
739
|
+
item: suggestion,
|
|
740
|
+
targetRef: item,
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
onItemMouseDown(e) {
|
|
744
|
+
e.preventDefault();
|
|
745
|
+
}
|
|
746
|
+
onItemSelected(item, keyboardUsed) {
|
|
747
|
+
this.selectSuggestion(item, keyboardUsed);
|
|
748
|
+
}
|
|
749
|
+
onItemPreviewed(item) {
|
|
750
|
+
this.previewSuggestion(item);
|
|
751
|
+
this.fireEvent("suggestion-item-preview", {
|
|
752
|
+
item: this.getSuggestionByListItem(item),
|
|
753
|
+
targetRef: item,
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
get valueStateTypeMappings() {
|
|
757
|
+
return {
|
|
758
|
+
"Success": Input_1.i18nBundle.getText(VALUE_STATE_TYPE_SUCCESS),
|
|
759
|
+
"Information": Input_1.i18nBundle.getText(VALUE_STATE_TYPE_INFORMATION),
|
|
760
|
+
"Error": Input_1.i18nBundle.getText(VALUE_STATE_TYPE_ERROR),
|
|
761
|
+
"Warning": Input_1.i18nBundle.getText(VALUE_STATE_TYPE_WARNING),
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
valueStateTextMappings() {
|
|
765
|
+
return {
|
|
766
|
+
"Success": Input_1.i18nBundle.getText(VALUE_STATE_SUCCESS),
|
|
767
|
+
"Information": Input_1.i18nBundle.getText(VALUE_STATE_INFORMATION),
|
|
768
|
+
"Error": Input_1.i18nBundle.getText(VALUE_STATE_ERROR),
|
|
769
|
+
"Warning": Input_1.i18nBundle.getText(VALUE_STATE_WARNING),
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
announceSelectedItem() {
|
|
773
|
+
const invisibleText = this.shadowRoot.querySelector(`#${this._id}-selectionText`);
|
|
774
|
+
if (this.Suggestions && this.Suggestions._isItemOnTarget()) {
|
|
775
|
+
invisibleText.textContent = this.itemSelectionAnnounce;
|
|
776
|
+
}
|
|
777
|
+
else {
|
|
778
|
+
invisibleText.textContent = "";
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
get _readonly() {
|
|
782
|
+
return this.readonly && !this.disabled;
|
|
783
|
+
}
|
|
784
|
+
get _headerTitleText() {
|
|
785
|
+
return Input_1.i18nBundle.getText(INPUT_SUGGESTIONS_TITLE);
|
|
786
|
+
}
|
|
787
|
+
get inputType() {
|
|
788
|
+
return this.type.toLowerCase();
|
|
789
|
+
}
|
|
790
|
+
get isTypeNumber() {
|
|
791
|
+
return this.type === InputType.Number;
|
|
792
|
+
}
|
|
793
|
+
get suggestionsTextId() {
|
|
794
|
+
return this.showSuggestions ? `${this._id}-suggestionsText` : "";
|
|
795
|
+
}
|
|
796
|
+
get valueStateTextId() {
|
|
797
|
+
return this.hasValueState ? `${this._id}-valueStateDesc` : "";
|
|
798
|
+
}
|
|
799
|
+
get accInfo() {
|
|
800
|
+
const ariaHasPopupDefault = this.showSuggestions ? "true" : undefined;
|
|
801
|
+
const ariaAutoCompleteDefault = this.showSuggestions ? "list" : undefined;
|
|
802
|
+
const ariaDescribedBy = this._inputAccInfo.ariaDescribedBy ? `${this.suggestionsTextId} ${this.valueStateTextId} ${this._inputAccInfo.ariaDescribedBy}`.trim() : `${this.suggestionsTextId} ${this.valueStateTextId}`.trim();
|
|
803
|
+
return {
|
|
804
|
+
"input": {
|
|
805
|
+
"ariaRoledescription": this._inputAccInfo && (this._inputAccInfo.ariaRoledescription || undefined),
|
|
806
|
+
"ariaDescribedBy": ariaDescribedBy || undefined,
|
|
807
|
+
"ariaInvalid": this.valueState === ValueState.Error ? "true" : undefined,
|
|
808
|
+
"ariaHasPopup": this._inputAccInfo.ariaHasPopup ? this._inputAccInfo.ariaHasPopup : ariaHasPopupDefault,
|
|
809
|
+
"ariaAutoComplete": this._inputAccInfo.ariaAutoComplete ? this._inputAccInfo.ariaAutoComplete : ariaAutoCompleteDefault,
|
|
810
|
+
"role": this._inputAccInfo && this._inputAccInfo.role,
|
|
811
|
+
"ariaControls": this._inputAccInfo && this._inputAccInfo.ariaControls,
|
|
812
|
+
"ariaExpanded": this._inputAccInfo && this._inputAccInfo.ariaExpanded,
|
|
813
|
+
"ariaDescription": this._inputAccInfo && this._inputAccInfo.ariaDescription,
|
|
814
|
+
"ariaLabel": (this._inputAccInfo && this._inputAccInfo.ariaLabel) || getEffectiveAriaLabelText(this) || getAssociatedLabelForTexts(this),
|
|
815
|
+
},
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
get nativeInputAttributes() {
|
|
819
|
+
return {
|
|
820
|
+
"min": this.isTypeNumber ? this._nativeInputAttributes.min : undefined,
|
|
821
|
+
"max": this.isTypeNumber ? this._nativeInputAttributes.max : undefined,
|
|
822
|
+
"step": this.isTypeNumber ? (this._nativeInputAttributes.step || "any") : undefined,
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
get ariaValueStateHiddenText() {
|
|
826
|
+
if (!this.hasValueState) {
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
const valueState = this.valueState !== ValueState.None ? this.valueStateTypeMappings[this.valueState] : "";
|
|
830
|
+
if (this.shouldDisplayDefaultValueStateMessage) {
|
|
831
|
+
return this.valueStateText ? `${valueState} ${this.valueStateText}` : valueState;
|
|
832
|
+
}
|
|
833
|
+
return `${valueState}`.concat(" ", this.valueStateMessageText.map(el => el.textContent).join(" "));
|
|
834
|
+
}
|
|
835
|
+
get itemSelectionAnnounce() {
|
|
836
|
+
return this.Suggestions ? this.Suggestions.itemSelectionAnnounce : "";
|
|
837
|
+
}
|
|
838
|
+
get classes() {
|
|
839
|
+
return {
|
|
840
|
+
popover: {
|
|
841
|
+
"ui5-suggestions-popover": !this._isPhone && this.showSuggestions,
|
|
842
|
+
"ui5-suggestions-popover-with-value-state-header": !this._isPhone && this.showSuggestions && this.hasValueStateMessage,
|
|
843
|
+
},
|
|
844
|
+
popoverValueState: {
|
|
845
|
+
"ui5-valuestatemessage-root": true,
|
|
846
|
+
"ui5-valuestatemessage-header": true,
|
|
847
|
+
"ui5-valuestatemessage--success": this.valueState === ValueState.Success,
|
|
848
|
+
"ui5-valuestatemessage--error": this.valueState === ValueState.Error,
|
|
849
|
+
"ui5-valuestatemessage--warning": this.valueState === ValueState.Warning,
|
|
850
|
+
"ui5-valuestatemessage--information": this.valueState === ValueState.Information,
|
|
851
|
+
},
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
get styles() {
|
|
855
|
+
const remSizeIxPx = parseInt(getComputedStyle(document.documentElement).fontSize);
|
|
856
|
+
const stylesObject = {
|
|
857
|
+
popoverHeader: {
|
|
858
|
+
"max-width": this._inputWidth ? `${this._inputWidth}px` : "",
|
|
859
|
+
},
|
|
860
|
+
suggestionPopoverHeader: {
|
|
861
|
+
"display": this._listWidth === 0 ? "none" : "inline-block",
|
|
862
|
+
"width": this._listWidth ? `${this._listWidth}px` : "",
|
|
863
|
+
},
|
|
864
|
+
suggestionsPopover: {
|
|
865
|
+
"min-width": this._inputWidth ? `${this._inputWidth}px` : "",
|
|
866
|
+
"max-width": this._inputWidth && (this._inputWidth / remSizeIxPx) > 40 ? `${this._inputWidth}px` : "40rem",
|
|
867
|
+
},
|
|
868
|
+
innerInput: {
|
|
869
|
+
"padding": "",
|
|
870
|
+
},
|
|
871
|
+
};
|
|
872
|
+
if (this.nativeInputWidth < 48) {
|
|
873
|
+
stylesObject.innerInput.padding = "0";
|
|
874
|
+
}
|
|
875
|
+
return stylesObject;
|
|
876
|
+
}
|
|
877
|
+
get suggestionSeparators() {
|
|
878
|
+
return "None";
|
|
879
|
+
}
|
|
880
|
+
get valueStateMessageText() {
|
|
881
|
+
return this.getSlottedNodes("valueStateMessage").map(el => el.cloneNode(true));
|
|
882
|
+
}
|
|
883
|
+
get shouldDisplayOnlyValueStateMessage() {
|
|
884
|
+
return this.hasValueStateMessage && !this.readonly && !this.open && this.focused;
|
|
885
|
+
}
|
|
886
|
+
get shouldDisplayDefaultValueStateMessage() {
|
|
887
|
+
return !this.valueStateMessage.length && this.hasValueStateMessage;
|
|
888
|
+
}
|
|
889
|
+
get hasValueState() {
|
|
890
|
+
return this.valueState !== ValueState.None;
|
|
891
|
+
}
|
|
892
|
+
get hasValueStateMessage() {
|
|
893
|
+
return this.hasValueState && this.valueState !== ValueState.Success
|
|
894
|
+
&& (!this._inputIconFocused // Handles the cases when valueStateMessage is forwarded (from datepicker e.g.)
|
|
895
|
+
|| !!(this._isPhone && this.Suggestions)); // Handles Input with suggestions on mobile
|
|
896
|
+
}
|
|
897
|
+
get valueStateText() {
|
|
898
|
+
return this.valueState !== ValueState.None ? this.valueStateTextMappings()[this.valueState] : undefined;
|
|
899
|
+
}
|
|
900
|
+
get suggestionsText() {
|
|
901
|
+
return Input_1.i18nBundle.getText(INPUT_SUGGESTIONS);
|
|
902
|
+
}
|
|
903
|
+
get availableSuggestionsCount() {
|
|
904
|
+
if (this.showSuggestions && (this.value || this.Suggestions.isOpened())) {
|
|
905
|
+
switch (this.suggestionsTexts.length) {
|
|
906
|
+
case 0:
|
|
907
|
+
return Input_1.i18nBundle.getText(INPUT_SUGGESTIONS_NO_HIT);
|
|
908
|
+
case 1:
|
|
909
|
+
return Input_1.i18nBundle.getText(INPUT_SUGGESTIONS_ONE_HIT);
|
|
910
|
+
default:
|
|
911
|
+
return Input_1.i18nBundle.getText(INPUT_SUGGESTIONS_MORE_HITS, this.suggestionsTexts.length);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
return undefined;
|
|
915
|
+
}
|
|
916
|
+
get step() {
|
|
917
|
+
return this.isTypeNumber ? "any" : undefined;
|
|
918
|
+
}
|
|
919
|
+
get _isPhone() {
|
|
920
|
+
return isPhone();
|
|
921
|
+
}
|
|
922
|
+
get _isSuggestionsFocused() {
|
|
923
|
+
return !this.focused && this.Suggestions && this.Suggestions.isOpened();
|
|
924
|
+
}
|
|
925
|
+
/**
|
|
926
|
+
* Returns the placeholder value.
|
|
927
|
+
* @protected
|
|
928
|
+
*/
|
|
929
|
+
get _placeholder() {
|
|
930
|
+
return this.placeholder;
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* This method is relevant for sap_horizon theme only
|
|
934
|
+
*/
|
|
935
|
+
get _valueStateInputIcon() {
|
|
936
|
+
const iconPerValueState = {
|
|
937
|
+
Error: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20ZM7.70711 13.7071C7.31658 14.0976 6.68342 14.0976 6.29289 13.7071C5.90237 13.3166 5.90237 12.6834 6.29289 12.2929L8.58579 10L6.29289 7.70711C5.90237 7.31658 5.90237 6.68342 6.29289 6.29289C6.68342 5.90237 7.31658 5.90237 7.70711 6.29289L10 8.58579L12.2929 6.29289C12.6834 5.90237 13.3166 5.90237 13.7071 6.29289C14.0976 6.68342 14.0976 7.31658 13.7071 7.70711L11.4142 10L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L10 11.4142L7.70711 13.7071Z" fill="#EE3939"/>`,
|
|
938
|
+
Warning: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M11.8619 0.49298C11.6823 0.187541 11.3544 0 11 0C10.6456 0 10.3177 0.187541 10.1381 0.49298L0.138066 17.493C-0.0438112 17.8022 -0.0461447 18.1851 0.13195 18.4965C0.310046 18.8079 0.641283 19 1 19H21C21.3587 19 21.69 18.8079 21.868 18.4965C22.0461 18.1851 22.0438 17.8022 21.8619 17.493L11.8619 0.49298ZM11 6C11.5523 6 12 6.44772 12 7V10C12 10.5523 11.5523 11 11 11C10.4477 11 10 10.5523 10 10V7C10 6.44772 10.4477 6 11 6ZM11 16C11.8284 16 12.5 15.3284 12.5 14.5C12.5 13.6716 11.8284 13 11 13C10.1716 13 9.5 13.6716 9.5 14.5C9.5 15.3284 10.1716 16 11 16Z" fill="#F58B00"/>`,
|
|
939
|
+
Success: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M0 10C0 15.5228 4.47715 20 10 20C15.5228 20 20 15.5228 20 10C20 4.47715 15.5228 0 10 0C4.47715 0 0 4.47715 0 10ZM14.7071 6.29289C14.3166 5.90237 13.6834 5.90237 13.2929 6.29289L8 11.5858L6.70711 10.2929C6.31658 9.90237 5.68342 9.90237 5.29289 10.2929C4.90237 10.6834 4.90237 11.3166 5.29289 11.7071L7.29289 13.7071C7.68342 14.0976 8.31658 14.0976 8.70711 13.7071L14.7071 7.70711C15.0976 7.31658 15.0976 6.68342 14.7071 6.29289Z" fill="#36A41D"/>`,
|
|
940
|
+
Information: `<path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M3 0C1.34315 0 0 1.34315 0 3V15C0 16.6569 1.34315 18 3 18H15C16.6569 18 18 16.6569 18 15V3C18 1.34315 16.6569 0 15 0H3ZM9 6.5C9.82843 6.5 10.5 5.82843 10.5 5C10.5 4.17157 9.82843 3.5 9 3.5C8.17157 3.5 7.5 4.17157 7.5 5C7.5 5.82843 8.17157 6.5 9 6.5ZM9 8.5C9.55228 8.5 10 8.94772 10 9.5V13.5C10 14.0523 9.55228 14.5 9 14.5C8.44771 14.5 8 14.0523 8 13.5V9.5C8 8.94772 8.44771 8.5 9 8.5Z" fill="#1B90FF"/>`,
|
|
941
|
+
};
|
|
942
|
+
if (this.valueState !== ValueState.None) {
|
|
943
|
+
return `
|
|
944
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="20" viewBox="0 0 20 20" fill="none">
|
|
945
|
+
${iconPerValueState[this.valueState]};
|
|
946
|
+
</svg>
|
|
947
|
+
`;
|
|
948
|
+
}
|
|
949
|
+
return "";
|
|
950
|
+
}
|
|
951
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
952
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* This method is relevant for sap_horizon theme only
|
|
956
|
+
*/
|
|
957
|
+
get _valueStateMessageInputIcon() {
|
|
958
|
+
const iconPerValueState = {
|
|
959
|
+
Error: "error",
|
|
960
|
+
Warning: "alert",
|
|
961
|
+
Success: "sys-enter-2",
|
|
962
|
+
Information: "information",
|
|
963
|
+
};
|
|
964
|
+
return this.valueState !== ValueState.None ? iconPerValueState[this.valueState] : "";
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Returns the caret position inside the native input
|
|
968
|
+
* @protected
|
|
969
|
+
*/
|
|
970
|
+
getCaretPosition() {
|
|
971
|
+
return getCaretPosition(this.nativeInput);
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* Sets the caret to a certain position inside the native input
|
|
975
|
+
* @protected
|
|
976
|
+
* @param pos
|
|
977
|
+
*/
|
|
978
|
+
setCaretPosition(pos) {
|
|
979
|
+
setCaretPosition(this.nativeInput, pos);
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Removes the fractional part of floating-point number.
|
|
983
|
+
* @param {string} value the numeric value of Input of type "Number"
|
|
984
|
+
*/
|
|
985
|
+
removeFractionalPart(value) {
|
|
986
|
+
if (value.includes(".")) {
|
|
987
|
+
return value.slice(0, value.indexOf("."));
|
|
988
|
+
}
|
|
989
|
+
if (value.includes(",")) {
|
|
990
|
+
return value.slice(0, value.indexOf(","));
|
|
991
|
+
}
|
|
992
|
+
return value;
|
|
993
|
+
}
|
|
994
|
+
static get dependencies() {
|
|
995
|
+
const Suggestions = getFeature("InputSuggestions");
|
|
996
|
+
return [Popover, Icon].concat(Suggestions ? Suggestions.dependencies : []);
|
|
997
|
+
}
|
|
998
|
+
static async onDefine() {
|
|
999
|
+
const Suggestions = getFeature("InputSuggestions");
|
|
1000
|
+
[Input_1.i18nBundle] = await Promise.all([
|
|
1001
|
+
getI18nBundle("@ui5/webcomponents"),
|
|
1002
|
+
Suggestions ? Suggestions.init() : Promise.resolve(),
|
|
1003
|
+
]);
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
1006
|
+
__decorate([
|
|
1007
|
+
property({ type: Boolean })
|
|
1008
|
+
], Input.prototype, "disabled", void 0);
|
|
1009
|
+
__decorate([
|
|
1010
|
+
property({ type: Boolean })
|
|
1011
|
+
], Input.prototype, "highlight", void 0);
|
|
1012
|
+
__decorate([
|
|
1013
|
+
property()
|
|
1014
|
+
], Input.prototype, "placeholder", void 0);
|
|
1015
|
+
__decorate([
|
|
1016
|
+
property({ type: Boolean })
|
|
1017
|
+
], Input.prototype, "readonly", void 0);
|
|
1018
|
+
__decorate([
|
|
1019
|
+
property({ type: Boolean })
|
|
1020
|
+
], Input.prototype, "required", void 0);
|
|
1021
|
+
__decorate([
|
|
1022
|
+
property({ type: Boolean })
|
|
1023
|
+
], Input.prototype, "noTypeahead", void 0);
|
|
1024
|
+
__decorate([
|
|
1025
|
+
property({ type: InputType, defaultValue: InputType.Text })
|
|
1026
|
+
], Input.prototype, "type", void 0);
|
|
1027
|
+
__decorate([
|
|
1028
|
+
property()
|
|
1029
|
+
], Input.prototype, "value", void 0);
|
|
1030
|
+
__decorate([
|
|
1031
|
+
property({ noAttribute: true })
|
|
1032
|
+
], Input.prototype, "_innerValue", void 0);
|
|
1033
|
+
__decorate([
|
|
1034
|
+
property({ type: ValueState, defaultValue: ValueState.None })
|
|
1035
|
+
], Input.prototype, "valueState", void 0);
|
|
1036
|
+
__decorate([
|
|
1037
|
+
property()
|
|
1038
|
+
], Input.prototype, "name", void 0);
|
|
1039
|
+
__decorate([
|
|
1040
|
+
property({ type: Boolean })
|
|
1041
|
+
], Input.prototype, "showSuggestions", void 0);
|
|
1042
|
+
__decorate([
|
|
1043
|
+
property({ validator: Integer })
|
|
1044
|
+
], Input.prototype, "maxlength", void 0);
|
|
1045
|
+
__decorate([
|
|
1046
|
+
property()
|
|
1047
|
+
], Input.prototype, "accessibleName", void 0);
|
|
1048
|
+
__decorate([
|
|
1049
|
+
property({ defaultValue: "" })
|
|
1050
|
+
], Input.prototype, "accessibleNameRef", void 0);
|
|
1051
|
+
__decorate([
|
|
1052
|
+
property({ type: Boolean })
|
|
1053
|
+
], Input.prototype, "showClearIcon", void 0);
|
|
1054
|
+
__decorate([
|
|
1055
|
+
property({ type: Boolean })
|
|
1056
|
+
], Input.prototype, "effectiveShowClearIcon", void 0);
|
|
1057
|
+
__decorate([
|
|
1058
|
+
property({ type: Boolean })
|
|
1059
|
+
], Input.prototype, "focused", void 0);
|
|
1060
|
+
__decorate([
|
|
1061
|
+
property({ type: Boolean })
|
|
1062
|
+
], Input.prototype, "openOnMobile", void 0);
|
|
1063
|
+
__decorate([
|
|
1064
|
+
property({ type: Boolean })
|
|
1065
|
+
], Input.prototype, "open", void 0);
|
|
1066
|
+
__decorate([
|
|
1067
|
+
property({ type: Boolean })
|
|
1068
|
+
], Input.prototype, "_forceOpen", void 0);
|
|
1069
|
+
__decorate([
|
|
1070
|
+
property({ type: Boolean })
|
|
1071
|
+
], Input.prototype, "_isValueStateFocused", void 0);
|
|
1072
|
+
__decorate([
|
|
1073
|
+
property({ type: Object, noAttribute: true })
|
|
1074
|
+
], Input.prototype, "_inputAccInfo", void 0);
|
|
1075
|
+
__decorate([
|
|
1076
|
+
property({ type: Object, noAttribute: true })
|
|
1077
|
+
], Input.prototype, "_nativeInputAttributes", void 0);
|
|
1078
|
+
__decorate([
|
|
1079
|
+
property({ validator: Integer })
|
|
1080
|
+
], Input.prototype, "_inputWidth", void 0);
|
|
1081
|
+
__decorate([
|
|
1082
|
+
property({ validator: Integer })
|
|
1083
|
+
], Input.prototype, "_listWidth", void 0);
|
|
1084
|
+
__decorate([
|
|
1085
|
+
property({ type: Boolean, noAttribute: true })
|
|
1086
|
+
], Input.prototype, "_isPopoverOpen", void 0);
|
|
1087
|
+
__decorate([
|
|
1088
|
+
property({ type: Boolean, noAttribute: true })
|
|
1089
|
+
], Input.prototype, "_inputIconFocused", void 0);
|
|
1090
|
+
__decorate([
|
|
1091
|
+
slot({ type: HTMLElement, "default": true })
|
|
1092
|
+
], Input.prototype, "suggestionItems", void 0);
|
|
1093
|
+
__decorate([
|
|
1094
|
+
slot()
|
|
1095
|
+
], Input.prototype, "icon", void 0);
|
|
1096
|
+
__decorate([
|
|
1097
|
+
slot()
|
|
1098
|
+
], Input.prototype, "formSupport", void 0);
|
|
1099
|
+
__decorate([
|
|
1100
|
+
slot()
|
|
1101
|
+
], Input.prototype, "valueStateMessage", void 0);
|
|
1102
|
+
Input = Input_1 = __decorate([
|
|
1103
|
+
customElement("ui5-input"),
|
|
1104
|
+
languageAware
|
|
1105
|
+
/**
|
|
1106
|
+
* Fired when the input operation has finished by pressing Enter or on focusout.
|
|
1107
|
+
*
|
|
1108
|
+
* @event sap.ui.webc.main.Input#change
|
|
1109
|
+
* @public
|
|
1110
|
+
*/
|
|
1111
|
+
,
|
|
1112
|
+
event("change")
|
|
1113
|
+
/**
|
|
1114
|
+
* Fired when the value of the component changes at each keystroke,
|
|
1115
|
+
* and when a suggestion item has been selected.
|
|
1116
|
+
*
|
|
1117
|
+
* @event sap.ui.webc.main.Input#input
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
,
|
|
1121
|
+
event("input")
|
|
1122
|
+
/**
|
|
1123
|
+
* Fired when a suggestion item, that is displayed in the suggestion popup, is selected.
|
|
1124
|
+
*
|
|
1125
|
+
* @event sap.ui.webc.main.Input#suggestion-item-select
|
|
1126
|
+
* @param {HTMLElement} item The selected item.
|
|
1127
|
+
* @public
|
|
1128
|
+
*/
|
|
1129
|
+
,
|
|
1130
|
+
event("suggestion-item-select", {
|
|
1131
|
+
detail: {
|
|
1132
|
+
item: { type: HTMLElement },
|
|
1133
|
+
},
|
|
1134
|
+
})
|
|
1135
|
+
/**
|
|
1136
|
+
* Fired when the user navigates to a suggestion item via the ARROW keys,
|
|
1137
|
+
* as a preview, before the final selection.
|
|
1138
|
+
*
|
|
1139
|
+
* @event sap.ui.webc.main.Input#suggestion-item-preview
|
|
1140
|
+
* @param {HTMLElement} item The previewed suggestion item.
|
|
1141
|
+
* @param {HTMLElement} targetRef The DOM ref of the suggestion item.
|
|
1142
|
+
* @public
|
|
1143
|
+
* @since 1.0.0-rc.8
|
|
1144
|
+
*/
|
|
1145
|
+
,
|
|
1146
|
+
event("suggestion-item-preview", {
|
|
1147
|
+
detail: {
|
|
1148
|
+
item: { type: HTMLElement },
|
|
1149
|
+
targetRef: { type: HTMLElement },
|
|
1150
|
+
},
|
|
1151
|
+
})
|
|
1152
|
+
/**
|
|
1153
|
+
* Fired when the user scrolls the suggestion popover.
|
|
1154
|
+
*
|
|
1155
|
+
* @event sap.ui.webc.main.Input#suggestion-scroll
|
|
1156
|
+
* @param {Integer} scrollTop The current scroll position.
|
|
1157
|
+
* @param {HTMLElement} scrollContainer The scroll container.
|
|
1158
|
+
* @protected
|
|
1159
|
+
* @since 1.0.0-rc.8
|
|
1160
|
+
*/
|
|
1161
|
+
,
|
|
1162
|
+
event("suggestion-scroll", {
|
|
1163
|
+
detail: {
|
|
1164
|
+
scrollTop: { type: Integer },
|
|
1165
|
+
scrollContainer: { type: HTMLElement },
|
|
1166
|
+
},
|
|
1167
|
+
})
|
|
1168
|
+
], Input);
|
|
1701
1169
|
Input.define();
|
|
1702
|
-
|
|
1703
1170
|
export default Input;
|
|
1171
|
+
//# sourceMappingURL=Input.js.map
|