@ui5/webcomponents 1.10.0 → 1.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +101 -0
- package/LICENSE.txt +201 -0
- package/dist/Avatar.d.ts +2 -2
- package/dist/Badge.d.ts +3 -3
- package/dist/Breadcrumbs.d.ts +5 -5
- package/dist/Breadcrumbs.js +1 -1
- package/dist/BusyIndicator.d.ts +136 -0
- package/dist/BusyIndicator.js +126 -208
- package/dist/BusyIndicator.js.map +1 -0
- package/dist/Button.d.ts +3 -3
- package/dist/Calendar.d.ts +3 -3
- package/dist/Calendar.js +1 -1
- package/dist/CalendarHeader.d.ts +2 -2
- package/dist/Card.d.ts +3 -3
- package/dist/Card.js +1 -1
- package/dist/CardHeader.d.ts +2 -2
- package/dist/Carousel.d.ts +318 -0
- package/dist/Carousel.js +446 -642
- package/dist/Carousel.js.map +1 -0
- package/dist/CheckBox.d.ts +3 -3
- package/dist/ColorPalette.d.ts +5 -5
- package/dist/ColorPalette.js +1 -1
- package/dist/ColorPaletteItem.d.ts +2 -2
- package/dist/ColorPalettePopover.d.ts +2 -2
- package/dist/ColorPicker.d.ts +2 -2
- package/dist/ComboBox.js +2 -2
- package/dist/CustomListItem.d.ts +1 -1
- package/dist/DatePicker.d.ts +2 -2
- package/dist/DateTimePicker.d.ts +1 -1
- package/dist/DayPicker.d.ts +2 -2
- package/dist/Dialog.d.ts +4 -5
- package/dist/FileUploader.d.ts +4 -4
- package/dist/GroupHeaderListItem.d.ts +1 -1
- package/dist/Icon.d.ts +2 -2
- package/dist/Input.d.ts +5 -5
- package/dist/Input.js +1 -1
- package/dist/Label.d.ts +2 -2
- package/dist/Link.d.ts +2 -2
- package/dist/List.d.ts +4 -3
- package/dist/List.js +1 -1
- package/dist/ListItem.d.ts +1 -1
- package/dist/Menu.d.ts +3 -3
- package/dist/Menu.js +1 -1
- package/dist/MessageStrip.d.ts +2 -2
- package/dist/MonthPicker.d.ts +2 -2
- package/dist/MultiComboBox.js +6 -2
- package/dist/MultiInput.js +1 -1
- package/dist/Panel.d.ts +2 -2
- package/dist/Popover.d.ts +1 -1
- package/dist/Popup.d.ts +3 -3
- package/dist/ProgressIndicator.d.ts +2 -2
- package/dist/RangeSlider.d.ts +1 -1
- package/dist/ResponsivePopover.d.ts +1 -1
- package/dist/SegmentedButton.js +1 -1
- package/dist/Select.js +1 -1
- package/dist/Slider.d.ts +1 -1
- package/dist/SplitButton.d.ts +2 -2
- package/dist/StandardListItem.d.ts +2 -2
- package/dist/StepInput.d.ts +2 -2
- package/dist/SuggestionListItem.d.ts +1 -1
- package/dist/Switch.d.ts +2 -2
- package/dist/TabContainer.js +1 -2
- package/dist/Table.d.ts +6 -4
- package/dist/Table.js +1 -1
- package/dist/TableCell.d.ts +2 -2
- package/dist/TableColumn.d.ts +2 -2
- package/dist/TableGroupRow.d.ts +2 -2
- package/dist/TableRow.d.ts +2 -2
- package/dist/TimePickerBase.d.ts +4 -4
- package/dist/TimeSelection.d.ts +2 -2
- package/dist/Title.d.ts +2 -2
- package/dist/Tree.js +1 -1
- package/dist/WheelSlider.d.ts +2 -2
- package/dist/YearPicker.d.ts +2 -2
- package/dist/api.json +1 -1
- package/dist/assets/test/pages/72override.html.dda35518.css +1 -0
- package/dist/assets/test/pages/AnimanitionOff.html.b7566ecc.css +1 -0
- package/dist/assets/test/pages/Avatar.html.62cc0573.css +1 -0
- package/dist/assets/test/pages/AvatarGroup.html.20647fe1.css +1 -0
- package/dist/assets/test/pages/Badge.html.bcc1c9a3.css +1 -0
- package/dist/assets/test/pages/Breadcrumbs.html.5753069f.css +1 -0
- package/dist/assets/test/pages/BusyIndicator.html.ce95c23c.css +1 -0
- package/dist/assets/test/pages/Button.html.957848f0.css +1 -0
- package/dist/assets/test/pages/Calendar.html.9ff42e30.css +1 -0
- package/dist/assets/test/pages/Card.html.8c5e4756.css +1 -0
- package/dist/assets/test/pages/Carousel.html.fcdd32a7.css +1 -0
- package/dist/assets/test/pages/CheckBox.html.08ae630d.css +1 -0
- package/dist/assets/test/pages/ColorPalette.html.8c4c4ca3.css +1 -0
- package/dist/assets/test/pages/ColorPalettePopover.html.727f90e2.css +1 -0
- package/dist/assets/test/pages/ColorPicker.html.cc0c0d29.css +1 -0
- package/dist/assets/test/pages/ComboBox.html.14fbc3aa.css +1 -0
- package/dist/assets/test/pages/ComboBox.html.c091a8e7.js +1 -0
- package/dist/assets/test/pages/Components.html.b41617c5.css +1 -0
- package/dist/assets/test/pages/CoreControls.html.dabd050c.css +1 -0
- package/dist/assets/test/pages/CoreControls_exp.html.46ab2dc9.css +1 -0
- package/dist/assets/test/pages/CustomCSS.html.4d6e9b1f.css +1 -0
- package/dist/assets/test/pages/DatePicker.html.e667d0b8.css +1 -0
- package/dist/assets/test/pages/DatePicker_test_page.html.882ab55e.css +1 -0
- package/dist/assets/test/pages/DateRangePicker.html.1b5072fd.css +1 -0
- package/dist/assets/test/pages/DateTimePicker.html.eff0e2e0.css +1 -0
- package/dist/assets/test/pages/DayPicker.html.5700622a.css +1 -0
- package/dist/assets/test/pages/Dialog.html.329cb1dc.css +1 -0
- package/dist/assets/test/pages/DialogLifecycle.html.e4ac6ba2.css +1 -0
- package/dist/assets/test/pages/DialogSemantic.html.f61ec13d.css +1 -0
- package/dist/assets/test/pages/DurationPicker.html.92ecf486.css +1 -0
- package/dist/assets/test/pages/Eventing.html.cd934528.css +1 -0
- package/dist/assets/test/pages/FileUploader.html.30b8cbbd.css +1 -0
- package/dist/assets/test/pages/FormSupport.html.4e02207b.css +1 -0
- package/dist/assets/test/pages/HCB.html.d458990b.css +1 -0
- package/dist/assets/test/pages/Icon.html.5f0fd46d.js +1 -0
- package/dist/assets/test/pages/Icon.html.be3b1acc.css +1 -0
- package/dist/assets/test/pages/Input.html.85ce57b4.css +1 -0
- package/dist/assets/test/pages/Input_quickview.html.86df3de3.css +1 -0
- package/dist/assets/test/pages/InputsAlignment.html.5c5593c2.css +1 -0
- package/dist/assets/test/pages/ItemNavigation.html.f5758aae.css +1 -0
- package/dist/assets/test/pages/Kitchen.html.d0d90fc6.css +1 -0
- package/dist/assets/test/pages/Kitchen.openui5.html.910e3d52.css +1 -0
- package/dist/assets/test/pages/Label.html.26cf5a3e.js +4 -0
- package/dist/assets/test/pages/Label.html.e994dc8e.css +1 -0
- package/dist/assets/test/pages/Link.html.d4c480d9.css +1 -0
- package/dist/assets/test/pages/List.html.65a3c4b3.css +1 -0
- package/dist/assets/test/pages/ListGrowing_Button.html.49bbaf80.css +1 -0
- package/dist/assets/test/pages/ListGrowing_Scroll.html.841dd1ed.css +1 -0
- package/dist/assets/test/pages/List_keyboard_support.html.a7297baf.css +1 -0
- package/dist/assets/test/pages/List_test_page.html.356d4e16.css +1 -0
- package/dist/assets/test/pages/LitKeyFunction.html.f3f9d649.css +1 -0
- package/dist/assets/test/pages/MemoryLeak.html.35d77e5e.css +1 -0
- package/dist/assets/test/pages/Menu.html.a758a26d.css +1 -0
- package/dist/assets/test/pages/MessagePage.html.30ffc162.css +1 -0
- package/dist/assets/test/pages/MessageStrip.html.8c2c85d5.css +1 -0
- package/dist/assets/test/pages/MultiComboBox.html.9ede2c74.css +1 -0
- package/dist/assets/test/pages/MultiInput.html.1c75cdc2.css +1 -0
- package/dist/assets/test/pages/MultiInput_Suggestions.html.79cd0348.css +1 -0
- package/dist/assets/test/pages/OpenUI5.html.cf1daa05.css +1 -0
- package/dist/assets/test/pages/Panel.html.399730d1.css +1 -0
- package/dist/assets/test/pages/Popover.html.6d4f19ad.css +1 -0
- package/dist/assets/test/pages/PopoverArrowBounds.html.c1e5feb1.css +1 -0
- package/dist/assets/test/pages/Popups.html.0d7c434f.js +1 -0
- package/dist/assets/test/pages/Popups.html.bb021765.css +1 -0
- package/dist/assets/test/pages/ProgressIndicator.html.d61b0c53.css +1 -0
- package/dist/assets/test/pages/RTL.html.dbeca857.css +1 -0
- package/dist/assets/test/pages/RadioButton.html.ccfd1850.css +1 -0
- package/dist/assets/test/pages/RangeSlider.html.437a9174.css +1 -0
- package/dist/assets/test/pages/RatingIndicator.html.737cd73b.css +1 -0
- package/dist/assets/test/pages/ResizeHandler.html.ed7c5d20.css +1 -0
- package/dist/assets/test/pages/ResponsivePopover.html.6f67ae07.css +1 -0
- package/dist/assets/test/pages/SegmentedButton.html.8678479b.css +1 -0
- package/dist/assets/test/pages/Select.html.9c98a470.css +1 -0
- package/dist/assets/test/pages/Simple.html.8f2ddb30.css +1 -0
- package/dist/assets/test/pages/Slider.html.8ea10965.css +1 -0
- package/dist/assets/test/pages/SplitButton.html.5c992973.css +1 -0
- package/dist/assets/test/pages/StepInput.html.f22c112d.css +1 -0
- package/dist/assets/test/pages/Switch.html.a4f3262f.css +1 -0
- package/dist/assets/test/pages/TabContainer.html.7f2ade15.css +1 -0
- package/dist/assets/test/pages/Table-perf-pure.html.fce52e4b.css +1 -0
- package/dist/assets/test/pages/Table-perf.html.88634378.css +1 -0
- package/dist/assets/test/pages/Table.html.c43386f4.css +1 -0
- package/dist/assets/test/pages/Table2.html.aca0c111.css +1 -0
- package/dist/assets/test/pages/TableAllPopin.html.ad586de4.css +1 -0
- package/dist/assets/test/pages/TableCustomStyling.html.a85167d6.css +1 -0
- package/dist/assets/test/pages/TableGrouping.html.602ae2ad.css +1 -0
- package/dist/assets/test/pages/TableGrowingWithButton.html.5a39b2bf.css +1 -0
- package/dist/assets/test/pages/TableGrowingWithScroll.html.8ef93d31.css +1 -0
- package/dist/assets/test/pages/TableSelection.html.dba2d678.css +1 -0
- package/dist/assets/test/pages/TextArea.html.f8e10fd6.css +1 -0
- package/dist/assets/test/pages/TimePicker.html.9a4bb300.css +1 -0
- package/dist/assets/test/pages/TimeSelection.html.8ad57759.css +1 -0
- package/dist/assets/test/pages/Title.html.7bb51811.css +1 -0
- package/dist/assets/test/pages/Toast.html.47a93be2.css +1 -0
- package/dist/assets/test/pages/ToggleButton.html.3b7dbb8c.css +1 -0
- package/dist/assets/test/pages/Tree.html.74fe2a1d.css +1 -0
- package/dist/assets/test/pages/WheelSlider_Test_Page.html.8a9a5e49.css +1 -0
- package/dist/assets/test/pages/form.html.f0f82118.css +1 -0
- package/dist/assets/test/pages/i18n-defaultLang.html.b9d79c6b.css +1 -0
- package/dist/assets/test/pages/i18n-demo.html.c6751b5c.css +1 -0
- package/dist/generated/templates/CarouselTemplate.lit.js +2 -2
- package/dist/test/pages/72override.html +33 -0
- package/dist/test/pages/AnimanitionOff.html +52 -0
- package/dist/test/pages/Avatar.html +265 -0
- package/dist/test/pages/AvatarGroup.html +376 -0
- package/dist/test/pages/Badge.html +75 -0
- package/dist/test/pages/Breadcrumbs.html +239 -0
- package/dist/test/pages/BusyIndicator.html +255 -0
- package/dist/test/pages/Button.html +267 -0
- package/dist/test/pages/Calendar.html +96 -0
- package/dist/test/pages/Card.html +347 -0
- package/dist/test/pages/Carousel.html +584 -0
- package/dist/test/pages/CheckBox.html +76 -0
- package/dist/test/pages/ColorPalette.html +126 -0
- package/dist/test/pages/ColorPalettePopover.html +141 -0
- package/dist/test/pages/ColorPicker.html +66 -0
- package/dist/test/pages/ComboBox.html +279 -0
- package/dist/test/pages/Components.html +106 -0
- package/dist/test/pages/CoreControls.html +203 -0
- package/dist/test/pages/CoreControls_exp.html +203 -0
- package/dist/test/pages/CustomCSS.html +55 -0
- package/dist/test/pages/DatePicker.html +193 -0
- package/dist/test/pages/DatePicker_test_page.html +97 -0
- package/dist/test/pages/DateRangePicker.html +64 -0
- package/dist/test/pages/DateTimePicker.html +190 -0
- package/dist/test/pages/DayPicker.html +37 -0
- package/dist/test/pages/Dialog.html +706 -0
- package/dist/test/pages/DialogLifecycle.html +62 -0
- package/dist/test/pages/DialogSemantic.html +58 -0
- package/dist/test/pages/DurationPicker.html +76 -0
- package/dist/test/pages/Eventing.html +33 -0
- package/dist/test/pages/FileUploader.html +138 -0
- package/dist/test/pages/FormSupport.html +59 -0
- package/dist/test/pages/HCB.html +45 -0
- package/dist/test/pages/Icon.html +269 -0
- package/dist/test/pages/Icon_custom.html +26 -0
- package/dist/test/pages/Input.html +722 -0
- package/dist/test/pages/InputFieldMinWidth.html +158 -0
- package/dist/test/pages/InputIcons.html +80 -0
- package/dist/test/pages/Input_quickview.html +204 -0
- package/dist/test/pages/InputsAlignment.html +131 -0
- package/dist/test/pages/InputsLazyLoading.html +244 -0
- package/dist/test/pages/ItemNavigation.html +94 -0
- package/dist/test/pages/Kitchen.html +638 -0
- package/dist/test/pages/Kitchen.openui5.html +570 -0
- package/dist/test/pages/Label.html +161 -0
- package/dist/test/pages/Link.html +201 -0
- package/dist/test/pages/List.html +465 -0
- package/dist/test/pages/ListGrowing_Button.html +64 -0
- package/dist/test/pages/ListGrowing_Scroll.html +93 -0
- package/dist/test/pages/List_keyboard_support.html +130 -0
- package/dist/test/pages/List_test_page.html +356 -0
- package/dist/test/pages/LitKeyFunction.html +40 -0
- package/dist/test/pages/MemoryLeak.html +78 -0
- package/dist/test/pages/Menu.html +145 -0
- package/dist/test/pages/MessagePage.html +39 -0
- package/dist/test/pages/MessageStrip.html +55 -0
- package/dist/test/pages/MultiComboBox.html +477 -0
- package/dist/test/pages/MultiInput.html +409 -0
- package/dist/test/pages/MultiInput_Suggestions.html +161 -0
- package/dist/test/pages/OpenUI5.html +83 -0
- package/dist/test/pages/Panel.html +226 -0
- package/dist/test/pages/Popover.html +586 -0
- package/dist/test/pages/PopoverArrowBounds.html +52 -0
- package/dist/test/pages/Popups.html +131 -0
- package/dist/test/pages/ProgressIndicator.html +151 -0
- package/dist/test/pages/RTL.html +118 -0
- package/dist/test/pages/RadioButton.html +201 -0
- package/dist/test/pages/RangeSlider.html +85 -0
- package/dist/test/pages/RatingIndicator.html +97 -0
- package/dist/test/pages/ResizeHandler.html +74 -0
- package/dist/test/pages/ResponsivePopover.html +244 -0
- package/dist/test/pages/SegmentedButton.html +116 -0
- package/dist/test/pages/Select.html +240 -0
- package/dist/test/pages/Simple.html +25 -0
- package/dist/test/pages/Slider.html +79 -0
- package/dist/test/pages/SplitButton.html +100 -0
- package/dist/test/pages/StepInput.html +164 -0
- package/dist/test/pages/Switch.html +88 -0
- package/dist/test/pages/TabContainer.html +904 -0
- package/dist/test/pages/Table-perf-pure.html +73 -0
- package/dist/test/pages/Table-perf.html +76 -0
- package/dist/test/pages/Table.html +2808 -0
- package/dist/test/pages/Table2.html +53 -0
- package/dist/test/pages/TableAllPopin.html +228 -0
- package/dist/test/pages/TableCustomStyling.html +89 -0
- package/dist/test/pages/TableGrouping.html +109 -0
- package/dist/test/pages/TableGrowingWithButton.html +805 -0
- package/dist/test/pages/TableGrowingWithScroll.html +801 -0
- package/dist/test/pages/TableSelection.html +445 -0
- package/dist/test/pages/TextArea.html +222 -0
- package/dist/test/pages/TimePicker.html +81 -0
- package/dist/test/pages/TimeSelection.html +31 -0
- package/dist/test/pages/Title.html +37 -0
- package/dist/test/pages/Toast.html +111 -0
- package/dist/test/pages/ToggleButton.html +69 -0
- package/dist/test/pages/Tree.html +294 -0
- package/dist/test/pages/WheelSlider_Test_Page.html +26 -0
- package/dist/test/pages/base/DOMObserver.html +20 -0
- package/dist/test/pages/base/InvisibleMessage.html +44 -0
- package/dist/test/pages/form.html +123 -0
- package/dist/test/pages/i18n-defaultLang.html +31 -0
- package/dist/test/pages/i18n-demo.html +79 -0
- package/global.d.ts +2 -2
- package/package.json +10 -9
- package/src/Badge.ts +1 -1
- package/src/Breadcrumbs.ts +1 -1
- package/src/{BusyIndicator.js → BusyIndicator.ts} +95 -100
- package/src/Calendar.ts +1 -1
- package/src/Card.ts +1 -1
- package/src/Carousel.hbs +3 -3
- package/src/{Carousel.js → Carousel.ts} +242 -234
- package/src/CheckBox.ts +1 -1
- package/src/ColorPalette.ts +1 -1
- package/src/ComboBox.js +2 -2
- package/src/Dialog.ts +2 -2
- package/src/Input.ts +1 -1
- package/src/List.ts +1 -1
- package/src/ListItem.ts +1 -1
- package/src/Menu.ts +1 -1
- package/src/MultiComboBox.js +6 -2
- package/src/MultiInput.js +1 -1
- package/src/SegmentedButton.js +1 -1
- package/src/Select.js +1 -1
- package/src/TabContainer.js +1 -2
- package/src/Table.ts +1 -1
- package/src/Tree.hbs +1 -1
- package/src/Tree.js +1 -1
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
+
<title>ui5-multi-input</title>
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<script type="module" crossorigin src="/assets/bundle.common.33be618c.js"></script>
|
|
17
|
+
<link rel="stylesheet" href="/assets/test/pages/MultiInput.html.1c75cdc2.css">
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body class="multiinput1auto ui5-content-density-compact" >
|
|
21
|
+
|
|
22
|
+
<div class="sample-container">
|
|
23
|
+
|
|
24
|
+
<h1>Basic API</h1>
|
|
25
|
+
|
|
26
|
+
<h1 class="sample-container-title">Empty Multi Input</h1>
|
|
27
|
+
<ui5-multi-input id="empty-mi" placeholder="Placeholder"></ui5-multi-input>
|
|
28
|
+
|
|
29
|
+
<br>
|
|
30
|
+
<br>
|
|
31
|
+
|
|
32
|
+
<h1 class="sample-container-title">Multi Input with Value Help Icon</h1>
|
|
33
|
+
<ui5-multi-input show-value-help-icon id="vh"></ui5-multi-input>
|
|
34
|
+
|
|
35
|
+
<br>
|
|
36
|
+
<br>
|
|
37
|
+
|
|
38
|
+
<h1 class="sample-container-title">Multi Input with Value Help Icon and a custom icon</h1>
|
|
39
|
+
<ui5-multi-input show-value-help-icon>
|
|
40
|
+
<ui5-icon slot="icon" name="decline"></ui5-icon>
|
|
41
|
+
</ui5-multi-input>
|
|
42
|
+
|
|
43
|
+
<br>
|
|
44
|
+
<br>
|
|
45
|
+
|
|
46
|
+
<h1 class="sample-container-title">Multi Input with 1 token</h1>
|
|
47
|
+
<ui5-multi-input id="one-token">
|
|
48
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
49
|
+
</ui5-multi-input>
|
|
50
|
+
|
|
51
|
+
<br>
|
|
52
|
+
<br>
|
|
53
|
+
|
|
54
|
+
<h1 class="sample-container-title">Readonly Multi Input with tokens</h1>
|
|
55
|
+
<ui5-multi-input id="readonly-mi" readonly>
|
|
56
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
57
|
+
<ui5-token slot="tokens" text="Dolor"></ui5-token>
|
|
58
|
+
<ui5-token slot="tokens" text="Lorem"></ui5-token>
|
|
59
|
+
<ui5-token slot="tokens" text="Ipsum"></ui5-token>
|
|
60
|
+
</ui5-multi-input>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
<br>
|
|
64
|
+
<br>
|
|
65
|
+
|
|
66
|
+
<h1 class="sample-container-title">Multi Input with 11 tokens (overflowing)</h1>
|
|
67
|
+
<ui5-multi-input id="basic-overflow">
|
|
68
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
69
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
70
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
71
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
72
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
73
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
74
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
75
|
+
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
76
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
77
|
+
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
78
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
79
|
+
</ui5-multi-input>
|
|
80
|
+
|
|
81
|
+
<br>
|
|
82
|
+
<br>
|
|
83
|
+
|
|
84
|
+
<h1 class="sample-container-title">Multi Input with 11 tokens (overflowing) and value help icon</h1>
|
|
85
|
+
<ui5-multi-input show-value-help-icon id="basic-overflow-and-icon">
|
|
86
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
87
|
+
|
|
88
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
89
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
90
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
91
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
92
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
93
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
94
|
+
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
95
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
96
|
+
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
97
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
98
|
+
</ui5-multi-input>
|
|
99
|
+
|
|
100
|
+
<br>
|
|
101
|
+
<br>
|
|
102
|
+
|
|
103
|
+
<span id="basic-event-listener"></span>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div class="sample-container">
|
|
107
|
+
<h1>Value States</h1>
|
|
108
|
+
|
|
109
|
+
<h1 class="sample-container-title">Multi Input - Success</h1>
|
|
110
|
+
<ui5-multi-input id="multiInput-success"
|
|
111
|
+
value-state="Success">
|
|
112
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
113
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
114
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
115
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
116
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
117
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
118
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
119
|
+
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
120
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
121
|
+
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
122
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
123
|
+
</ui5-multi-input>
|
|
124
|
+
|
|
125
|
+
<br>
|
|
126
|
+
<br>
|
|
127
|
+
<h1 class="sample-container-title">Multi Input - Information</h1>
|
|
128
|
+
<ui5-multi-input id="multiInput-information"
|
|
129
|
+
value-state="Information">
|
|
130
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
131
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
132
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
133
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
134
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
135
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
136
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
137
|
+
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
138
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
139
|
+
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
140
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
141
|
+
<div slot="valueStateMessage">Information message. This is a <a href="#">Link</a>. Extra long text used as an information message. Extra long text used as an information message - 2. Extra long text used as an information message - 3.</div>
|
|
142
|
+
</ui5-multi-input>
|
|
143
|
+
|
|
144
|
+
<br>
|
|
145
|
+
<br>
|
|
146
|
+
|
|
147
|
+
<h1 class="sample-container-title">Multi Input - Warning</h1>
|
|
148
|
+
<ui5-multi-input id="multiInput-warning"
|
|
149
|
+
value-state="Warning">
|
|
150
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
151
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
152
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
153
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
154
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
155
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
156
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
157
|
+
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
158
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
159
|
+
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
160
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
161
|
+
</ui5-multi-input>
|
|
162
|
+
|
|
163
|
+
<br>
|
|
164
|
+
<br>
|
|
165
|
+
|
|
166
|
+
<h1 class="sample-container-title">Multi Input - Error</h1>
|
|
167
|
+
<ui5-multi-input id="multiInput-error"
|
|
168
|
+
value-state="Error">
|
|
169
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
170
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
171
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
172
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
173
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
174
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
175
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
176
|
+
<ui5-token slot="tokens" text="esse"></ui5-token>
|
|
177
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
178
|
+
<ui5-token slot="tokens" text="amet"></ui5-token>
|
|
179
|
+
<ui5-token slot="tokens" text="do"></ui5-token>
|
|
180
|
+
</ui5-multi-input>
|
|
181
|
+
|
|
182
|
+
<br>
|
|
183
|
+
<br>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<div class="sample-container">
|
|
187
|
+
<h1>Tokens</h1>
|
|
188
|
+
|
|
189
|
+
<h1 class="sample-container-title">Multi Input without tokens</h1>
|
|
190
|
+
<ui5-multi-input id="no-tokens"></ui5-multi-input>
|
|
191
|
+
<br>
|
|
192
|
+
<br>
|
|
193
|
+
|
|
194
|
+
<ui5-button id="add-tokens">Add more tokens</ui5-button>
|
|
195
|
+
|
|
196
|
+
<br>
|
|
197
|
+
<br>
|
|
198
|
+
|
|
199
|
+
<h1 class="sample-container-title">Multi Input with 1 token</h1>
|
|
200
|
+
<ui5-multi-input id="single-token">
|
|
201
|
+
<ui5-token slot="tokens" text="Amet"></ui5-token>
|
|
202
|
+
</ui5-multi-input>
|
|
203
|
+
<br>
|
|
204
|
+
<br>
|
|
205
|
+
|
|
206
|
+
<ui5-button id="add-to-single">Add more tokens</ui5-button>
|
|
207
|
+
|
|
208
|
+
<br>
|
|
209
|
+
<br>
|
|
210
|
+
|
|
211
|
+
<h1 class="sample-container-title">Multi Input with 2 tokens</h1>
|
|
212
|
+
<ui5-multi-input id="two-tokens" value="abc">
|
|
213
|
+
<ui5-token slot="tokens" id="firstToken" text="aa"></ui5-token>
|
|
214
|
+
<ui5-token slot="tokens" id="secondToken" text="bb"></ui5-token>
|
|
215
|
+
</ui5-multi-input>
|
|
216
|
+
<br>
|
|
217
|
+
<br>
|
|
218
|
+
|
|
219
|
+
<h1 class="sample-container-title">Multi Input with 5 tokens</h1>
|
|
220
|
+
<ui5-multi-input id="multiple-token">
|
|
221
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
222
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
223
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
224
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
225
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
226
|
+
</ui5-multi-input>
|
|
227
|
+
|
|
228
|
+
<br>
|
|
229
|
+
<br>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<ui5-button id="add-to-multiple">Add more tokens</ui5-button>
|
|
233
|
+
</div>
|
|
234
|
+
|
|
235
|
+
<div class="sample-container">
|
|
236
|
+
<h1>Tokens + Suggestions</h1>
|
|
237
|
+
|
|
238
|
+
<ui5-multi-input show-suggestions show-value-help-icon id="suggestion-token">
|
|
239
|
+
<ui5-suggestion-item text="Aute"></ui5-suggestion-item>
|
|
240
|
+
<ui5-suggestion-item text="ad"></ui5-suggestion-item>
|
|
241
|
+
<ui5-suggestion-item text="exercitation"></ui5-suggestion-item>
|
|
242
|
+
<ui5-suggestion-item text="esse"></ui5-suggestion-item>
|
|
243
|
+
<ui5-suggestion-item text="labore"></ui5-suggestion-item>
|
|
244
|
+
<ui5-suggestion-item text="amet"></ui5-suggestion-item>
|
|
245
|
+
<ui5-suggestion-item text="aute"></ui5-suggestion-item>
|
|
246
|
+
<ui5-suggestion-item text="excepteur"></ui5-suggestion-item>
|
|
247
|
+
</ui5-multi-input>
|
|
248
|
+
|
|
249
|
+
<ui5-dialog id="dialog" header-text="Add Competency">
|
|
250
|
+
|
|
251
|
+
<ui5-list id="tokens-list">
|
|
252
|
+
|
|
253
|
+
</ui5-list>
|
|
254
|
+
|
|
255
|
+
<div slot="footer" class="footer">
|
|
256
|
+
<ui5-button design="Emphasized">Save</ui5-button>
|
|
257
|
+
<ui5-button>Cancel</ui5-button>
|
|
258
|
+
</div>
|
|
259
|
+
</ui5-dialog>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
<div class="sample-container">
|
|
263
|
+
<h1>Test value-help-trigger with F4 and Alt + ArrowUp/Down</h1>
|
|
264
|
+
|
|
265
|
+
<ui5-multi-input id="multi-with-value-help-icon" show-value-help-icon>
|
|
266
|
+
</ui5-multi-input>
|
|
267
|
+
<ui5-input id="value-help-trigger-counter" placeholder="event count.."></ui5-input>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<div>
|
|
271
|
+
<ui5-title>MultiInput with tokens with custom icon</ui5-title>
|
|
272
|
+
<ui5-multi-input id="mi-with-tokens-customicon" placeholder="Placeholder" class="multiinput2auto">
|
|
273
|
+
<ui5-token slot="tokens" text="Menu">
|
|
274
|
+
<ui5-icon name="menu" accessible-name="Menu here" slot="closeIcon"></ui5-icon>
|
|
275
|
+
</ui5-token>
|
|
276
|
+
<ui5-token slot="tokens" text="Not a menu">
|
|
277
|
+
</ui5-token>
|
|
278
|
+
</ui5-multi-input>
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<div class="sample-container">
|
|
282
|
+
|
|
283
|
+
<h1 class="sample-container-title">Eventing</h1>
|
|
284
|
+
|
|
285
|
+
<ui5-multi-input id="mi-event">
|
|
286
|
+
<ui5-token slot="tokens" text="ea"></ui5-token>
|
|
287
|
+
<ui5-token slot="tokens" text="eu"></ui5-token>
|
|
288
|
+
<ui5-token slot="tokens" text="Incididunt"></ui5-token>
|
|
289
|
+
<ui5-token slot="tokens" text="laboris"></ui5-token>
|
|
290
|
+
<ui5-token slot="tokens" text="ipsum"></ui5-token>
|
|
291
|
+
</ui5-multi-input>
|
|
292
|
+
|
|
293
|
+
<br>
|
|
294
|
+
<span>Event:</span>
|
|
295
|
+
<br>
|
|
296
|
+
<input id="event-type">
|
|
297
|
+
<br>
|
|
298
|
+
<span>Count:</span>
|
|
299
|
+
<br>
|
|
300
|
+
<input id="event-count">
|
|
301
|
+
<br>
|
|
302
|
+
<span>Event target text:</span>
|
|
303
|
+
<br>
|
|
304
|
+
<input id="event-target-text">
|
|
305
|
+
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
<script>
|
|
309
|
+
|
|
310
|
+
var createTokenFromText = function (text) {
|
|
311
|
+
var token = document.createElement("ui5-token");
|
|
312
|
+
|
|
313
|
+
token.setAttribute("text", text);
|
|
314
|
+
token.setAttribute("slot", "tokens");
|
|
315
|
+
|
|
316
|
+
return token;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
var createTokenFromLI = function (li) {
|
|
320
|
+
return createTokenFromText(li.text);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
var addTokenToMI = function (token, id) {
|
|
324
|
+
document.getElementById(id).appendChild(token);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
document.getElementById("add-tokens").addEventListener("click", function(event) {
|
|
328
|
+
addTokenToMI(createTokenFromText("test"), "no-tokens");
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
document.getElementById("add-to-single").addEventListener("click", function(event) {
|
|
332
|
+
addTokenToMI(createTokenFromText("test"), "single-token");
|
|
333
|
+
});
|
|
334
|
+
|
|
335
|
+
document.getElementById("add-to-multiple").addEventListener("click", function(event) {
|
|
336
|
+
addTokenToMI(createTokenFromText("test"), "multiple-token");
|
|
337
|
+
});
|
|
338
|
+
|
|
339
|
+
/* ----------------- */
|
|
340
|
+
|
|
341
|
+
document.getElementById("vh").addEventListener("ui5-value-help-trigger", function (event) {
|
|
342
|
+
alert("test");
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
document.getElementById("suggestion-token").addEventListener("ui5-value-help-trigger", function (event) {
|
|
346
|
+
var list = document.getElementById("tokens-list");
|
|
347
|
+
|
|
348
|
+
list.innerHTML = "";
|
|
349
|
+
|
|
350
|
+
event.target.tokens.forEach(function (token) {
|
|
351
|
+
var li = document.createElement("ui5-li");
|
|
352
|
+
li.innerHTML = token.text;
|
|
353
|
+
|
|
354
|
+
list.appendChild(li);
|
|
355
|
+
});
|
|
356
|
+
|
|
357
|
+
document.getElementById("dialog").show();
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
document.getElementById("suggestion-token").addEventListener("ui5-suggestion-item-select", function (event) {
|
|
361
|
+
var item = event.detail.item;
|
|
362
|
+
var mi = event.target
|
|
363
|
+
var token = document.createElement("ui5-token");
|
|
364
|
+
|
|
365
|
+
token.setAttribute("text", item.text);
|
|
366
|
+
token.setAttribute("slot", "tokens");
|
|
367
|
+
event.target.appendChild(token);
|
|
368
|
+
|
|
369
|
+
// discuss ?!
|
|
370
|
+
event.target.value = "";
|
|
371
|
+
});
|
|
372
|
+
|
|
373
|
+
document.getElementById("basic-overflow-and-icon").addEventListener("ui5-value-help-trigger", function (event) {
|
|
374
|
+
document.getElementById("basic-event-listener").innerHTML = "value help icon press";
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
let valueHelpTriggerCounter = 0;
|
|
378
|
+
document.getElementById("multi-with-value-help-icon").addEventListener("ui5-value-help-trigger", function (event) {
|
|
379
|
+
document.getElementById("value-help-trigger-counter").value = ++valueHelpTriggerCounter;
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
const handleTokenDelete = (event) => {
|
|
383
|
+
var mi = event.target;
|
|
384
|
+
mi.removeChild(event.detail.token);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
document.getElementById("suggestion-token").addEventListener("ui5-token-delete", handleTokenDelete);
|
|
388
|
+
document.getElementById("two-tokens").addEventListener("ui5-token-delete", handleTokenDelete);
|
|
389
|
+
document.getElementById("readonly-mi").addEventListener("ui5-token-delete", handleTokenDelete);
|
|
390
|
+
|
|
391
|
+
const handleTokenDelete2 = (event) => {
|
|
392
|
+
const eventType = document.getElementById("event-type");
|
|
393
|
+
const eventCount = document.getElementById("event-count");
|
|
394
|
+
const eventTargetText = document.getElementById("event-target-text");
|
|
395
|
+
|
|
396
|
+
eventType.value = event.type;
|
|
397
|
+
eventTargetText.value = event.detail.token.text;
|
|
398
|
+
|
|
399
|
+
if (!eventCount.value || isNaN(eventCount.value)) {
|
|
400
|
+
eventCount.value = 1;
|
|
401
|
+
} else {
|
|
402
|
+
eventCount.value = parseInt(eventCount.value) + 1;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
document.getElementById("mi-event").addEventListener("ui5-token-delete", handleTokenDelete2);
|
|
406
|
+
</script>
|
|
407
|
+
</body>
|
|
408
|
+
|
|
409
|
+
</html>
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
7
|
+
<title>ui5-multi-input</title>
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<script>// delete Document.prototype.adoptedStyleSheets;</script>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<script type="module" crossorigin src="/assets/bundle.common.33be618c.js"></script>
|
|
17
|
+
<link rel="stylesheet" href="/assets/test/pages/MultiInput_Suggestions.html.79cd0348.css">
|
|
18
|
+
</head>
|
|
19
|
+
|
|
20
|
+
<body class="multiinput_suggestions1auto ui5-content-density-compact" >
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<div class="sample-container">
|
|
24
|
+
<h1>Tokens + Suggestions</h1>
|
|
25
|
+
|
|
26
|
+
<ui5-multi-input show-suggestions show-value-help-icon id="suggestion-token">
|
|
27
|
+
<ui5-suggestion-item text="Aute"></ui5-suggestion-item>
|
|
28
|
+
<ui5-suggestion-item text="ad"></ui5-suggestion-item>
|
|
29
|
+
<ui5-suggestion-item text="exercitation"></ui5-suggestion-item>
|
|
30
|
+
<ui5-suggestion-item text="esse"></ui5-suggestion-item>
|
|
31
|
+
<ui5-suggestion-item text="labore"></ui5-suggestion-item>
|
|
32
|
+
<ui5-suggestion-item text="amet"></ui5-suggestion-item>
|
|
33
|
+
<ui5-suggestion-item text="aute"></ui5-suggestion-item>
|
|
34
|
+
<ui5-suggestion-item text="excepteur"></ui5-suggestion-item>
|
|
35
|
+
</ui5-multi-input>
|
|
36
|
+
|
|
37
|
+
<ui5-dialog id="dialog" header-text="Add Competency">
|
|
38
|
+
|
|
39
|
+
<ui5-list id="tokens-list">
|
|
40
|
+
|
|
41
|
+
</ui5-list>
|
|
42
|
+
|
|
43
|
+
<div slot="footer" class="footer">
|
|
44
|
+
<ui5-button design="Emphasized">Save</ui5-button>
|
|
45
|
+
<ui5-button>Cancel</ui5-button>
|
|
46
|
+
</div>
|
|
47
|
+
</ui5-dialog>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class="sample-container">
|
|
51
|
+
|
|
52
|
+
<h1>Token Creation on enter or focus out</h1>
|
|
53
|
+
|
|
54
|
+
<ui5-multi-input show-suggestions id="token-creation"></ui5-multi-input>
|
|
55
|
+
</div>
|
|
56
|
+
|
|
57
|
+
<div class="sample-container">
|
|
58
|
+
|
|
59
|
+
<h1>Token Creation onChange (unique)</h1>
|
|
60
|
+
|
|
61
|
+
<ui5-multi-input show-suggestions id="token-unique">
|
|
62
|
+
<div slot="valueStateMessage">Token is already in the list</div>
|
|
63
|
+
</ui5-multi-input>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<script>
|
|
67
|
+
|
|
68
|
+
var createTokenFromText = function (text) {
|
|
69
|
+
var token = document.createElement("ui5-token");
|
|
70
|
+
|
|
71
|
+
token.setAttribute("text", text);
|
|
72
|
+
token.setAttribute("slot", "tokens");
|
|
73
|
+
|
|
74
|
+
return token;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var createTokenFromLI = function (li) {
|
|
78
|
+
return createTokenFromText(li.text);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var addTokenToMI = function (token, id) {
|
|
82
|
+
document.getElementById(id).appendChild(token);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/* ----------------- */
|
|
86
|
+
|
|
87
|
+
document.getElementById("suggestion-token").addEventListener("ui5-value-help-trigger", function (event) {
|
|
88
|
+
var list = document.getElementById("tokens-list");
|
|
89
|
+
|
|
90
|
+
list.innerHTML = "";
|
|
91
|
+
|
|
92
|
+
event.target.tokens.forEach(function (token) {
|
|
93
|
+
var li = document.createElement("ui5-li");
|
|
94
|
+
li.innerHTML = token.text;
|
|
95
|
+
|
|
96
|
+
list.appendChild(li);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
document.getElementById("dialog").show();
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
document.getElementById("suggestion-token").addEventListener("ui5-suggestion-item-select", function (event) {
|
|
103
|
+
var item = event.detail.item;
|
|
104
|
+
var mi = event.target
|
|
105
|
+
var token = document.createElement("ui5-token");
|
|
106
|
+
|
|
107
|
+
token.setAttribute("text", item.text);
|
|
108
|
+
token.setAttribute("slot", "tokens");
|
|
109
|
+
event.target.appendChild(token);
|
|
110
|
+
|
|
111
|
+
// discuss ?!
|
|
112
|
+
event.target.value = "";
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
document.getElementById("suggestion-token").addEventListener("ui5-token-delete", function (event) {
|
|
116
|
+
var mi = event.target;
|
|
117
|
+
|
|
118
|
+
mi.removeChild(event.detail.token);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
document.getElementById("token-creation").addEventListener("change", function (event) {
|
|
122
|
+
event.target.appendChild(createTokenFromText(event.target.value));
|
|
123
|
+
|
|
124
|
+
event.target.value = "";
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
document.getElementById("token-creation").addEventListener("ui5-token-delete", function (event) {
|
|
128
|
+
event.target.removeChild(event.detail.token);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
document.getElementById("token-unique").addEventListener("change", function (event) {
|
|
132
|
+
if (!event.target.value) {
|
|
133
|
+
return;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
var isDuplicate = event.target.tokens.some(function(token) {
|
|
137
|
+
return token.text === event.target.value;
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
if (isDuplicate) {
|
|
141
|
+
event.target.valueState = "Error";
|
|
142
|
+
|
|
143
|
+
setTimeout(function () {
|
|
144
|
+
event.target.valueState = "None";
|
|
145
|
+
}, 2000);
|
|
146
|
+
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
event.target.appendChild(createTokenFromText(event.target.value));
|
|
151
|
+
|
|
152
|
+
event.target.value = "";
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
document.getElementById("token-unique").addEventListener("ui5-token-delete", function (event) {
|
|
156
|
+
event.target.removeChild(event.detail.token);
|
|
157
|
+
});
|
|
158
|
+
</script>
|
|
159
|
+
</body>
|
|
160
|
+
|
|
161
|
+
</html>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
|
|
7
|
+
<title>OpenUI5 + UI5 Web Components</title>
|
|
8
|
+
|
|
9
|
+
<script id='sap-ui-bootstrap'
|
|
10
|
+
src='https://sdk.openui5.org/resources/sap-ui-core.js'
|
|
11
|
+
data-sap-ui-theme='sap_belize_hcb'
|
|
12
|
+
data-sap-ui-libs='sap.m, sap.ui.core'
|
|
13
|
+
data-sap-ui-preload="async"
|
|
14
|
+
></script>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
sap.ui.getCore().attachInit(function() {
|
|
18
|
+
const dialog = new sap.m.Dialog({
|
|
19
|
+
content: [
|
|
20
|
+
new sap.ui.core.HTML({
|
|
21
|
+
content: '<ui5-date-picker id="myDatepicker" value="Aug 14, 2018" data-sap-ui-integration-popup-content></ui5-date-picker>'
|
|
22
|
+
}),
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const dialog2 = new sap.m.Dialog({
|
|
27
|
+
content: [
|
|
28
|
+
new sap.ui.core.HTML({
|
|
29
|
+
content: '<ui5-calendar id="myCalendar" value="Aug 14, 2018"></ui5-calendar>'
|
|
30
|
+
}),
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const btn = new sap.m.Button({
|
|
35
|
+
text: "DialogWithDatePicker",
|
|
36
|
+
press: function() {
|
|
37
|
+
dialog.open();
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const btn2 = new sap.m.Button({
|
|
42
|
+
text: "DialogWithCalendar",
|
|
43
|
+
press: function() {
|
|
44
|
+
dialog2.open();
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const page = new sap.m.Page({
|
|
49
|
+
content: [
|
|
50
|
+
dialog, dialog2, btn, btn2
|
|
51
|
+
],
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
page.placeAt('content');
|
|
55
|
+
});
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<script data-ui5-config type="application/json">
|
|
59
|
+
{
|
|
60
|
+
"language": "de",
|
|
61
|
+
"noConflict": {
|
|
62
|
+
"events": ["click"]
|
|
63
|
+
},
|
|
64
|
+
"compactSize": true,
|
|
65
|
+
"calendarType": "Islamic"
|
|
66
|
+
}
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
<script type="module" crossorigin src="/assets/bundle.common.33be618c.js"></script>
|
|
73
|
+
<link rel="stylesheet" href="/assets/test/pages/OpenUI5.html.cf1daa05.css">
|
|
74
|
+
</head>
|
|
75
|
+
|
|
76
|
+
<body class="openui51auto">
|
|
77
|
+
|
|
78
|
+
<ui5-button icon="download">Web Component</ui5-button>
|
|
79
|
+
<ui5-datepicker></ui5-datepicker>
|
|
80
|
+
|
|
81
|
+
<div id='content'></div>
|
|
82
|
+
</body>
|
|
83
|
+
</html>
|