@ui5/webcomponents 2.22.0-rc.1 → 2.22.0-rc.3
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 +45 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/AvatarBadge.d.ts +15 -1
- package/dist/AvatarBadge.js +40 -3
- package/dist/AvatarBadge.js.map +1 -1
- package/dist/AvatarBadgeTemplate.js +1 -1
- package/dist/AvatarBadgeTemplate.js.map +1 -1
- package/dist/ColorPalette.d.ts +8 -8
- package/dist/ColorPalette.js +7 -5
- package/dist/ColorPalette.js.map +1 -1
- package/dist/ColorPaletteItem.d.ts +9 -0
- package/dist/ColorPaletteItem.js +33 -0
- package/dist/ColorPaletteItem.js.map +1 -1
- package/dist/ColorPaletteItemTemplate.js +1 -1
- package/dist/ColorPaletteItemTemplate.js.map +1 -1
- package/dist/ColorPalettePopover.js +1 -1
- package/dist/ColorPalettePopover.js.map +1 -1
- package/dist/ComboBox.js +7 -2
- package/dist/ComboBox.js.map +1 -1
- package/dist/ComboBoxPopoverTemplate.js +2 -1
- package/dist/ComboBoxPopoverTemplate.js.map +1 -1
- package/dist/DateRangePicker.d.ts +12 -1
- package/dist/DateRangePicker.js +31 -1
- package/dist/DateRangePicker.js.map +1 -1
- package/dist/Input.d.ts +5 -2
- package/dist/Input.js +11 -8
- package/dist/Input.js.map +1 -1
- package/dist/MultiComboBox.js +4 -1
- package/dist/MultiComboBox.js.map +1 -1
- package/dist/MultiInputTemplate.js +1 -1
- package/dist/MultiInputTemplate.js.map +1 -1
- package/dist/SegmentedButton.js +6 -4
- package/dist/SegmentedButton.js.map +1 -1
- package/dist/SegmentedButtonItem.d.ts +8 -0
- package/dist/SegmentedButtonItem.js +26 -1
- package/dist/SegmentedButtonItem.js.map +1 -1
- package/dist/StepInput.d.ts +2 -2
- package/dist/StepInput.js +17 -7
- package/dist/StepInput.js.map +1 -1
- package/dist/Switch.d.ts +2 -0
- package/dist/Switch.js +7 -1
- package/dist/Switch.js.map +1 -1
- package/dist/SwitchTemplate.js +2 -2
- package/dist/SwitchTemplate.js.map +1 -1
- package/dist/TextArea.d.ts +10 -0
- package/dist/TextArea.js +37 -0
- package/dist/TextArea.js.map +1 -1
- package/dist/Tokenizer.d.ts +6 -0
- package/dist/Tokenizer.js +4 -1
- package/dist/Tokenizer.js.map +1 -1
- package/dist/css/themes/CardHeader.css +1 -1
- package/dist/css/themes/Select.css +1 -1
- package/dist/css/themes/StepInput.css +1 -1
- package/dist/css/themes/Switch.css +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_auto/parameters-bundle.css +2 -2
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/dist/custom-elements-internal.json +126 -14
- package/dist/custom-elements.json +62 -11
- package/dist/features/InputComposition.d.ts +1 -1
- package/dist/features/InputComposition.js.map +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_auto/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +3 -1
- package/dist/generated/i18n/i18n-defaults.js +3 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/themes/CardHeader.css.d.ts +1 -1
- package/dist/generated/themes/CardHeader.css.js +1 -1
- package/dist/generated/themes/CardHeader.css.js.map +1 -1
- package/dist/generated/themes/Select.css.d.ts +1 -1
- package/dist/generated/themes/Select.css.js +1 -1
- package/dist/generated/themes/Select.css.js.map +1 -1
- package/dist/generated/themes/StepInput.css.d.ts +1 -1
- package/dist/generated/themes/StepInput.css.js +1 -1
- package/dist/generated/themes/StepInput.css.js.map +1 -1
- package/dist/generated/themes/Switch.css.d.ts +1 -1
- package/dist/generated/themes/Switch.css.js +1 -1
- package/dist/generated/themes/Switch.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js +2 -2
- package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +14 -9
- package/dist/web-types.json +50 -20
- package/package.json +9 -9
- package/src/AvatarBadgeTemplate.tsx +3 -1
- package/src/ColorPaletteItemTemplate.tsx +1 -0
- package/src/ComboBoxPopoverTemplate.tsx +8 -1
- package/src/MultiInputTemplate.tsx +1 -0
- package/src/SwitchTemplate.tsx +3 -0
- package/src/i18n/messagebundle.properties +6 -0
- package/src/themes/CardHeader.css +0 -1
- package/src/themes/Select.css +25 -0
- package/src/themes/StepInput.css +2 -1
- package/src/themes/Switch.css +4 -2
- package/src/themes/sap_horizon/Select-parameters.css +2 -0
- package/src/themes/sap_horizon_dark/Select-parameters.css +2 -0
|
@@ -362,6 +362,17 @@
|
|
|
362
362
|
"description": "### Overview\n\nThe `ui5-avatar-badge` component is used to display a badge on top of `ui5-avatar` component.\nThe badge can display an icon and supports different states for visual affordance.\n\n### Usage\n\nThe badge should be used as a child element of `ui5-avatar` in the `badge` slot.\n\n```html\n<ui5-avatar>\n <ui5-avatar-badge icon=\"edit\" slot=\"badge\"></ui5-avatar-badge>\n</ui5-avatar>\n```\n\n### Keyboard Handling\n\nThe badge does not receive keyboard focus.\n\n### ES6 Module Import\n`import \"@ui5/webcomponents/dist/AvatarBadge.js\";`",
|
|
363
363
|
"name": "AvatarBadge",
|
|
364
364
|
"members": [
|
|
365
|
+
{
|
|
366
|
+
"kind": "field",
|
|
367
|
+
"name": "accessibleName",
|
|
368
|
+
"type": {
|
|
369
|
+
"text": "string | undefined"
|
|
370
|
+
},
|
|
371
|
+
"description": "Defines the custom text alternative of the badge icon.\n\n**Note:** If not provided, the badge uses the icon accessible name.\nIf no icon accessible name is available, a generic fallback text is used.",
|
|
372
|
+
"default": "undefined",
|
|
373
|
+
"privacy": "public",
|
|
374
|
+
"_ui5since": "2.22.0"
|
|
375
|
+
},
|
|
365
376
|
{
|
|
366
377
|
"kind": "field",
|
|
367
378
|
"name": "icon",
|
|
@@ -391,6 +402,15 @@
|
|
|
391
402
|
}
|
|
392
403
|
],
|
|
393
404
|
"attributes": [
|
|
405
|
+
{
|
|
406
|
+
"description": "Defines the custom text alternative of the badge icon.\n\n**Note:** If not provided, the badge uses the icon accessible name.\nIf no icon accessible name is available, a generic fallback text is used.",
|
|
407
|
+
"name": "accessible-name",
|
|
408
|
+
"default": "undefined",
|
|
409
|
+
"fieldName": "accessibleName",
|
|
410
|
+
"type": {
|
|
411
|
+
"text": "string | undefined"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
394
414
|
{
|
|
395
415
|
"description": "Defines the icon name to be displayed inside the badge.\n\n**Note:** You should import the desired icon first, then use its name as \"icon\".\n\n`import \"@ui5/webcomponents-icons/dist/{icon_name}.js\"`",
|
|
396
416
|
"name": "icon",
|
|
@@ -4081,12 +4101,12 @@
|
|
|
4081
4101
|
"description": "Defines the `ui5-color-palette-item` elements.",
|
|
4082
4102
|
"_ui5propertyName": "colors",
|
|
4083
4103
|
"_ui5type": {
|
|
4084
|
-
"text": "Array<
|
|
4104
|
+
"text": "Array<ColorPaletteItem>",
|
|
4085
4105
|
"references": [
|
|
4086
4106
|
{
|
|
4087
|
-
"name": "
|
|
4107
|
+
"name": "ColorPaletteItem",
|
|
4088
4108
|
"package": "@ui5/webcomponents",
|
|
4089
|
-
"module": "dist/
|
|
4109
|
+
"module": "dist/ColorPaletteItem.js"
|
|
4090
4110
|
}
|
|
4091
4111
|
]
|
|
4092
4112
|
},
|
|
@@ -4246,6 +4266,52 @@
|
|
|
4246
4266
|
"privacy": "public"
|
|
4247
4267
|
}
|
|
4248
4268
|
],
|
|
4269
|
+
"events": [
|
|
4270
|
+
{
|
|
4271
|
+
"name": "click",
|
|
4272
|
+
"_ui5privacy": "public",
|
|
4273
|
+
"type": {
|
|
4274
|
+
"text": "CustomEvent<ColorPaletteItemNativeClickEventDetail>",
|
|
4275
|
+
"references": [
|
|
4276
|
+
{
|
|
4277
|
+
"name": "ColorPaletteItemNativeClickEventDetail",
|
|
4278
|
+
"package": "@ui5/webcomponents",
|
|
4279
|
+
"module": "dist/ColorPaletteItem.js"
|
|
4280
|
+
}
|
|
4281
|
+
]
|
|
4282
|
+
},
|
|
4283
|
+
"description": "Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event will not be fired if the `disabled` property is set to `true`.",
|
|
4284
|
+
"_ui5Cancelable": true,
|
|
4285
|
+
"_ui5allowPreventDefault": true,
|
|
4286
|
+
"_ui5Bubbles": true,
|
|
4287
|
+
"_ui5since": "2.22.0",
|
|
4288
|
+
"_ui5parameters": [
|
|
4289
|
+
{
|
|
4290
|
+
"type": {
|
|
4291
|
+
"text": "ColorPaletteItem",
|
|
4292
|
+
"references": [
|
|
4293
|
+
{
|
|
4294
|
+
"name": "ColorPaletteItem",
|
|
4295
|
+
"package": "@ui5/webcomponents",
|
|
4296
|
+
"module": "dist/ColorPaletteItem.js"
|
|
4297
|
+
}
|
|
4298
|
+
]
|
|
4299
|
+
},
|
|
4300
|
+
"name": "item",
|
|
4301
|
+
"_ui5privacy": "public",
|
|
4302
|
+
"description": "The color palette item that was clicked."
|
|
4303
|
+
},
|
|
4304
|
+
{
|
|
4305
|
+
"type": {
|
|
4306
|
+
"text": "Event"
|
|
4307
|
+
},
|
|
4308
|
+
"name": "originalEvent",
|
|
4309
|
+
"_ui5privacy": "public",
|
|
4310
|
+
"description": "The original DOM event that triggered the click. Use this to access modifier keys (altKey, ctrlKey, metaKey, shiftKey) and other native event properties."
|
|
4311
|
+
}
|
|
4312
|
+
]
|
|
4313
|
+
}
|
|
4314
|
+
],
|
|
4249
4315
|
"attributes": [
|
|
4250
4316
|
{
|
|
4251
4317
|
"description": "Defines if the component is selected.\n\n**Note:** Only one item must be selected per <code>ui5-color-palette</code>.\nIf more than one item is defined as selected, the last one would be considered as the selected one.",
|
|
@@ -6605,7 +6671,7 @@
|
|
|
6605
6671
|
"declarations": [
|
|
6606
6672
|
{
|
|
6607
6673
|
"kind": "class",
|
|
6608
|
-
"description": "### Overview\nThe DateRangePicker enables the users to enter a localized date range using touch, mouse, keyboard input, or by selecting a date range in the calendar.\n\n### Usage\nThe user can enter a date by:\nUsing the calendar that opens in a popup or typing it in directly in the input field (not available for mobile devices).\nFor the `ui5-daterange-picker
|
|
6674
|
+
"description": "### Overview\nThe DateRangePicker enables the users to enter a localized date range using touch, mouse, keyboard input, or by selecting a date range in the calendar.\n\n### Usage\nThe user can enter a date by:\nUsing the calendar that opens in a popup or typing it in directly in the input field (not available for mobile devices).\nFor the `ui5-daterange-picker`:\n\n**Note:** Relative date values such as \"today\", \"yesterday\", or \"tomorrow\" are not supported.\nEntering a relative date sets the component to an error state.\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/DateRangePicker.js\";`\n\n### Keyboard Handling\nThe `ui5-daterange-picker` provides advanced keyboard handling.\n\nWhen the `ui5-daterange-picker` input field is focused the user can\nincrement or decrement respectively the range start or end date, depending on where the cursor is.\nThe following shortcuts are available:\n\n- [Page Down] - Decrements the corresponding day of the month by one\n- [Shift] + [Page Down] - Decrements the corresponding month by one\n- [Shift] + [Ctrl] + [Page Down] - Decrements the corresponding year by one\n- [Page Up] - Increments the corresponding day of the month by one\n- [Shift] + [Page Up] - Increments the corresponding month by one\n- [Shift] + [Ctrl] + [Page Up] - Increments the corresponding year by one",
|
|
6609
6675
|
"name": "DateRangePicker",
|
|
6610
6676
|
"members": [
|
|
6611
6677
|
{
|
|
@@ -7693,7 +7759,7 @@
|
|
|
7693
7759
|
]
|
|
7694
7760
|
},
|
|
7695
7761
|
"default": "\"Text\"",
|
|
7696
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
7762
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
7697
7763
|
"privacy": "public"
|
|
7698
7764
|
},
|
|
7699
7765
|
{
|
|
@@ -7737,7 +7803,7 @@
|
|
|
7737
7803
|
"slots": [
|
|
7738
7804
|
{
|
|
7739
7805
|
"name": "default",
|
|
7740
|
-
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.",
|
|
7806
|
+
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions.",
|
|
7741
7807
|
"_ui5propertyName": "suggestionItems",
|
|
7742
7808
|
"_ui5type": {
|
|
7743
7809
|
"text": "Array<IInputSuggestionItem>",
|
|
@@ -7927,7 +7993,7 @@
|
|
|
7927
7993
|
}
|
|
7928
7994
|
},
|
|
7929
7995
|
{
|
|
7930
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
7996
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
7931
7997
|
"name": "type",
|
|
7932
7998
|
"default": "\"Text\"",
|
|
7933
7999
|
"fieldName": "type",
|
|
@@ -11146,7 +11212,7 @@
|
|
|
11146
11212
|
},
|
|
11147
11213
|
{
|
|
11148
11214
|
"kind": "class",
|
|
11149
|
-
"description": "### Overview\n\nThe `ui5-input` component allows the user to enter and edit text or numeric values in one line.\n\nAdditionally, you can provide `suggestionItems
|
|
11215
|
+
"description": "### Overview\n\nThe `ui5-input` component allows the user to enter and edit text or numeric values in one line.\n\nAdditionally, you can provide `suggestionItems`\nthat are displayed in a popover right under the input. Keep in mind that `ui5-input` with type `Number` does not support suggestions.\n\nThe text field can be editable or read-only (`readonly` property),\nand it can be enabled or disabled (`disabled` property).\nTo visualize semantic states, such as \"Negative\" or \"Critical\", the `valueState` property is provided.\nWhen the user makes changes to the text, the change event is fired,\nwhich enables you to react on any text change.\n\n### Keyboard Handling\nThe `ui5-input` provides the following keyboard shortcuts:\n\n- [Escape] - Closes the suggestion list, if open. If closed or not enabled, cancels changes and reverts to the value which the Input field had when it got the focus.\n- [Enter] or [Return] - If suggestion list is open takes over the current matching item and closes it. If value state or group header is focused, does nothing.\n- [Down] - Focuses the next matching item in the suggestion list. Selection-change event is fired.\n- [Up] - Focuses the previous matching item in the suggestion list. Selection-change event is fired.\n- [Home] - If focus is in the text input, moves caret before the first character. If focus is in the list, highlights the first item and updates the input accordingly.\n- [End] - If focus is in the text input, moves caret after the last character. If focus is in the list, highlights the last item and updates the input accordingly.\n- [Page Up] - If focus is in the list, moves highlight up by page size (10 items by default). If focus is in the input, does nothing.\n- [Page Down] - If focus is in the list, moves highlight down by page size (10 items by default). If focus is in the input, does nothing.\n- [Ctrl]+[Alt]+[F8] or [Command]+[Option]+[F8] - Focuses the first link in the value state message, if available. Pressing [Tab] moves the focus to the next link in the value state message, or closes the value state message if there are no more links.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/Input.js\";`",
|
|
11150
11216
|
"name": "Input",
|
|
11151
11217
|
"cssParts": [
|
|
11152
11218
|
{
|
|
@@ -11165,7 +11231,7 @@
|
|
|
11165
11231
|
"slots": [
|
|
11166
11232
|
{
|
|
11167
11233
|
"name": "default",
|
|
11168
|
-
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.",
|
|
11234
|
+
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions.",
|
|
11169
11235
|
"_ui5propertyName": "suggestionItems",
|
|
11170
11236
|
"_ui5type": {
|
|
11171
11237
|
"text": "Array<IInputSuggestionItem>",
|
|
@@ -11386,7 +11452,7 @@
|
|
|
11386
11452
|
]
|
|
11387
11453
|
},
|
|
11388
11454
|
"default": "\"Text\"",
|
|
11389
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
11455
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
11390
11456
|
"privacy": "public"
|
|
11391
11457
|
},
|
|
11392
11458
|
{
|
|
@@ -11645,7 +11711,7 @@
|
|
|
11645
11711
|
}
|
|
11646
11712
|
},
|
|
11647
11713
|
{
|
|
11648
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
11714
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
11649
11715
|
"name": "type",
|
|
11650
11716
|
"default": "\"Text\"",
|
|
11651
11717
|
"fieldName": "type",
|
|
@@ -16566,7 +16632,7 @@
|
|
|
16566
16632
|
"slots": [
|
|
16567
16633
|
{
|
|
16568
16634
|
"name": "default",
|
|
16569
|
-
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.",
|
|
16635
|
+
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions.",
|
|
16570
16636
|
"_ui5propertyName": "suggestionItems",
|
|
16571
16637
|
"_ui5type": {
|
|
16572
16638
|
"text": "Array<IInputSuggestionItem>",
|
|
@@ -16812,7 +16878,7 @@
|
|
|
16812
16878
|
]
|
|
16813
16879
|
},
|
|
16814
16880
|
"default": "\"Text\"",
|
|
16815
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
16881
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
16816
16882
|
"privacy": "public"
|
|
16817
16883
|
},
|
|
16818
16884
|
{
|
|
@@ -17119,7 +17185,7 @@
|
|
|
17119
17185
|
}
|
|
17120
17186
|
},
|
|
17121
17187
|
{
|
|
17122
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
17188
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
17123
17189
|
"name": "type",
|
|
17124
17190
|
"default": "\"Text\"",
|
|
17125
17191
|
"fieldName": "type",
|
|
@@ -20553,6 +20619,52 @@
|
|
|
20553
20619
|
"_ui5since": "1.2.0"
|
|
20554
20620
|
}
|
|
20555
20621
|
],
|
|
20622
|
+
"events": [
|
|
20623
|
+
{
|
|
20624
|
+
"name": "click",
|
|
20625
|
+
"_ui5privacy": "public",
|
|
20626
|
+
"type": {
|
|
20627
|
+
"text": "CustomEvent<SegmentedButtonItemClickEventDetail>",
|
|
20628
|
+
"references": [
|
|
20629
|
+
{
|
|
20630
|
+
"name": "SegmentedButtonItemClickEventDetail",
|
|
20631
|
+
"package": "@ui5/webcomponents",
|
|
20632
|
+
"module": "dist/SegmentedButtonItem.js"
|
|
20633
|
+
}
|
|
20634
|
+
]
|
|
20635
|
+
},
|
|
20636
|
+
"description": "Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event will not be fired if the `disabled` property is set to `true`.",
|
|
20637
|
+
"_ui5Cancelable": true,
|
|
20638
|
+
"_ui5allowPreventDefault": true,
|
|
20639
|
+
"_ui5Bubbles": true,
|
|
20640
|
+
"_ui5since": "2.22.0",
|
|
20641
|
+
"_ui5parameters": [
|
|
20642
|
+
{
|
|
20643
|
+
"type": {
|
|
20644
|
+
"text": "SegmentedButtonItem",
|
|
20645
|
+
"references": [
|
|
20646
|
+
{
|
|
20647
|
+
"name": "SegmentedButtonItem",
|
|
20648
|
+
"package": "@ui5/webcomponents",
|
|
20649
|
+
"module": "dist/SegmentedButtonItem.js"
|
|
20650
|
+
}
|
|
20651
|
+
]
|
|
20652
|
+
},
|
|
20653
|
+
"name": "item",
|
|
20654
|
+
"_ui5privacy": "public",
|
|
20655
|
+
"description": "The segmented button item that was clicked."
|
|
20656
|
+
},
|
|
20657
|
+
{
|
|
20658
|
+
"type": {
|
|
20659
|
+
"text": "Event"
|
|
20660
|
+
},
|
|
20661
|
+
"name": "originalEvent",
|
|
20662
|
+
"_ui5privacy": "public",
|
|
20663
|
+
"description": "The original DOM event that triggered the click. Use this to access modifier keys (altKey, ctrlKey, metaKey, shiftKey) and other native event properties."
|
|
20664
|
+
}
|
|
20665
|
+
]
|
|
20666
|
+
}
|
|
20667
|
+
],
|
|
20556
20668
|
"attributes": [
|
|
20557
20669
|
{
|
|
20558
20670
|
"description": "Defines the accessible description of the component.",
|
|
@@ -334,6 +334,16 @@
|
|
|
334
334
|
"description": "### Overview\n\nThe `ui5-avatar-badge` component is used to display a badge on top of `ui5-avatar` component.\nThe badge can display an icon and supports different states for visual affordance.\n\n### Usage\n\nThe badge should be used as a child element of `ui5-avatar` in the `badge` slot.\n\n```html\n<ui5-avatar>\n <ui5-avatar-badge icon=\"edit\" slot=\"badge\"></ui5-avatar-badge>\n</ui5-avatar>\n```\n\n### Keyboard Handling\n\nThe badge does not receive keyboard focus.\n\n### ES6 Module Import\n`import \"@ui5/webcomponents/dist/AvatarBadge.js\";`",
|
|
335
335
|
"name": "AvatarBadge",
|
|
336
336
|
"members": [
|
|
337
|
+
{
|
|
338
|
+
"kind": "field",
|
|
339
|
+
"name": "accessibleName",
|
|
340
|
+
"type": {
|
|
341
|
+
"text": "string | undefined"
|
|
342
|
+
},
|
|
343
|
+
"description": "Defines the custom text alternative of the badge icon.\n\n**Note:** If not provided, the badge uses the icon accessible name.\nIf no icon accessible name is available, a generic fallback text is used.",
|
|
344
|
+
"default": "undefined",
|
|
345
|
+
"privacy": "public"
|
|
346
|
+
},
|
|
337
347
|
{
|
|
338
348
|
"kind": "field",
|
|
339
349
|
"name": "icon",
|
|
@@ -363,6 +373,15 @@
|
|
|
363
373
|
}
|
|
364
374
|
],
|
|
365
375
|
"attributes": [
|
|
376
|
+
{
|
|
377
|
+
"description": "Defines the custom text alternative of the badge icon.\n\n**Note:** If not provided, the badge uses the icon accessible name.\nIf no icon accessible name is available, a generic fallback text is used.",
|
|
378
|
+
"name": "accessible-name",
|
|
379
|
+
"default": "undefined",
|
|
380
|
+
"fieldName": "accessibleName",
|
|
381
|
+
"type": {
|
|
382
|
+
"text": "string | undefined"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
366
385
|
{
|
|
367
386
|
"description": "Defines the icon name to be displayed inside the badge.\n\n**Note:** You should import the desired icon first, then use its name as \"icon\".\n\n`import \"@ui5/webcomponents-icons/dist/{icon_name}.js\"`",
|
|
368
387
|
"name": "icon",
|
|
@@ -3676,6 +3695,22 @@
|
|
|
3676
3695
|
"privacy": "public"
|
|
3677
3696
|
}
|
|
3678
3697
|
],
|
|
3698
|
+
"events": [
|
|
3699
|
+
{
|
|
3700
|
+
"name": "click",
|
|
3701
|
+
"type": {
|
|
3702
|
+
"text": "CustomEvent<ColorPaletteItemNativeClickEventDetail>",
|
|
3703
|
+
"references": [
|
|
3704
|
+
{
|
|
3705
|
+
"name": "ColorPaletteItemNativeClickEventDetail",
|
|
3706
|
+
"package": "@ui5/webcomponents",
|
|
3707
|
+
"module": "dist/ColorPaletteItem.js"
|
|
3708
|
+
}
|
|
3709
|
+
]
|
|
3710
|
+
},
|
|
3711
|
+
"description": "Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event will not be fired if the `disabled` property is set to `true`."
|
|
3712
|
+
}
|
|
3713
|
+
],
|
|
3679
3714
|
"attributes": [
|
|
3680
3715
|
{
|
|
3681
3716
|
"description": "Defines if the component is selected.\n\n**Note:** Only one item must be selected per <code>ui5-color-palette</code>.\nIf more than one item is defined as selected, the last one would be considered as the selected one.",
|
|
@@ -5692,7 +5727,7 @@
|
|
|
5692
5727
|
"declarations": [
|
|
5693
5728
|
{
|
|
5694
5729
|
"kind": "class",
|
|
5695
|
-
"description": "### Overview\nThe DateRangePicker enables the users to enter a localized date range using touch, mouse, keyboard input, or by selecting a date range in the calendar.\n\n### Usage\nThe user can enter a date by:\nUsing the calendar that opens in a popup or typing it in directly in the input field (not available for mobile devices).\nFor the `ui5-daterange-picker
|
|
5730
|
+
"description": "### Overview\nThe DateRangePicker enables the users to enter a localized date range using touch, mouse, keyboard input, or by selecting a date range in the calendar.\n\n### Usage\nThe user can enter a date by:\nUsing the calendar that opens in a popup or typing it in directly in the input field (not available for mobile devices).\nFor the `ui5-daterange-picker`:\n\n**Note:** Relative date values such as \"today\", \"yesterday\", or \"tomorrow\" are not supported.\nEntering a relative date sets the component to an error state.\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/DateRangePicker.js\";`\n\n### Keyboard Handling\nThe `ui5-daterange-picker` provides advanced keyboard handling.\n\nWhen the `ui5-daterange-picker` input field is focused the user can\nincrement or decrement respectively the range start or end date, depending on where the cursor is.\nThe following shortcuts are available:\n\n- [Page Down] - Decrements the corresponding day of the month by one\n- [Shift] + [Page Down] - Decrements the corresponding month by one\n- [Shift] + [Ctrl] + [Page Down] - Decrements the corresponding year by one\n- [Page Up] - Increments the corresponding day of the month by one\n- [Shift] + [Page Up] - Increments the corresponding month by one\n- [Shift] + [Ctrl] + [Page Up] - Increments the corresponding year by one",
|
|
5696
5731
|
"name": "DateRangePicker",
|
|
5697
5732
|
"members": [
|
|
5698
5733
|
{
|
|
@@ -6665,7 +6700,7 @@
|
|
|
6665
6700
|
]
|
|
6666
6701
|
},
|
|
6667
6702
|
"default": "\"Text\"",
|
|
6668
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
6703
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
6669
6704
|
"privacy": "public"
|
|
6670
6705
|
},
|
|
6671
6706
|
{
|
|
@@ -6706,7 +6741,7 @@
|
|
|
6706
6741
|
"slots": [
|
|
6707
6742
|
{
|
|
6708
6743
|
"name": "default",
|
|
6709
|
-
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items."
|
|
6744
|
+
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions."
|
|
6710
6745
|
},
|
|
6711
6746
|
{
|
|
6712
6747
|
"name": "icon",
|
|
@@ -6868,7 +6903,7 @@
|
|
|
6868
6903
|
}
|
|
6869
6904
|
},
|
|
6870
6905
|
{
|
|
6871
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
6906
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
6872
6907
|
"name": "type",
|
|
6873
6908
|
"default": "\"Text\"",
|
|
6874
6909
|
"fieldName": "type",
|
|
@@ -9714,7 +9749,7 @@
|
|
|
9714
9749
|
"declarations": [
|
|
9715
9750
|
{
|
|
9716
9751
|
"kind": "class",
|
|
9717
|
-
"description": "### Overview\n\nThe `ui5-input` component allows the user to enter and edit text or numeric values in one line.\n\nAdditionally, you can provide `suggestionItems
|
|
9752
|
+
"description": "### Overview\n\nThe `ui5-input` component allows the user to enter and edit text or numeric values in one line.\n\nAdditionally, you can provide `suggestionItems`\nthat are displayed in a popover right under the input. Keep in mind that `ui5-input` with type `Number` does not support suggestions.\n\nThe text field can be editable or read-only (`readonly` property),\nand it can be enabled or disabled (`disabled` property).\nTo visualize semantic states, such as \"Negative\" or \"Critical\", the `valueState` property is provided.\nWhen the user makes changes to the text, the change event is fired,\nwhich enables you to react on any text change.\n\n### Keyboard Handling\nThe `ui5-input` provides the following keyboard shortcuts:\n\n- [Escape] - Closes the suggestion list, if open. If closed or not enabled, cancels changes and reverts to the value which the Input field had when it got the focus.\n- [Enter] or [Return] - If suggestion list is open takes over the current matching item and closes it. If value state or group header is focused, does nothing.\n- [Down] - Focuses the next matching item in the suggestion list. Selection-change event is fired.\n- [Up] - Focuses the previous matching item in the suggestion list. Selection-change event is fired.\n- [Home] - If focus is in the text input, moves caret before the first character. If focus is in the list, highlights the first item and updates the input accordingly.\n- [End] - If focus is in the text input, moves caret after the last character. If focus is in the list, highlights the last item and updates the input accordingly.\n- [Page Up] - If focus is in the list, moves highlight up by page size (10 items by default). If focus is in the input, does nothing.\n- [Page Down] - If focus is in the list, moves highlight down by page size (10 items by default). If focus is in the input, does nothing.\n- [Ctrl]+[Alt]+[F8] or [Command]+[Option]+[F8] - Focuses the first link in the value state message, if available. Pressing [Tab] moves the focus to the next link in the value state message, or closes the value state message if there are no more links.\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/dist/Input.js\";`",
|
|
9718
9753
|
"name": "Input",
|
|
9719
9754
|
"cssParts": [
|
|
9720
9755
|
{
|
|
@@ -9733,7 +9768,7 @@
|
|
|
9733
9768
|
"slots": [
|
|
9734
9769
|
{
|
|
9735
9770
|
"name": "default",
|
|
9736
|
-
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items."
|
|
9771
|
+
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions."
|
|
9737
9772
|
},
|
|
9738
9773
|
{
|
|
9739
9774
|
"name": "icon",
|
|
@@ -9916,7 +9951,7 @@
|
|
|
9916
9951
|
]
|
|
9917
9952
|
},
|
|
9918
9953
|
"default": "\"Text\"",
|
|
9919
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
9954
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
9920
9955
|
"privacy": "public"
|
|
9921
9956
|
},
|
|
9922
9957
|
{
|
|
@@ -10135,7 +10170,7 @@
|
|
|
10135
10170
|
}
|
|
10136
10171
|
},
|
|
10137
10172
|
{
|
|
10138
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
10173
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
10139
10174
|
"name": "type",
|
|
10140
10175
|
"default": "\"Text\"",
|
|
10141
10176
|
"fieldName": "type",
|
|
@@ -14233,7 +14268,7 @@
|
|
|
14233
14268
|
"slots": [
|
|
14234
14269
|
{
|
|
14235
14270
|
"name": "default",
|
|
14236
|
-
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items."
|
|
14271
|
+
"description": "Defines the suggestion items.\n\n**Note:** The suggestions would be displayed only if the `showSuggestions`\nproperty is set to `true`.\n\n**Note:** The `<ui5-suggestion-item>`, `<ui5-suggestion-item-group>` and `ui5-suggestion-item-custom` are recommended to be used as suggestion items.\n\n**Note:** Input with type `Number` does not support suggestions."
|
|
14237
14272
|
},
|
|
14238
14273
|
{
|
|
14239
14274
|
"name": "icon",
|
|
@@ -14430,7 +14465,7 @@
|
|
|
14430
14465
|
]
|
|
14431
14466
|
},
|
|
14432
14467
|
"default": "\"Text\"",
|
|
14433
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
14468
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
14434
14469
|
"privacy": "public"
|
|
14435
14470
|
},
|
|
14436
14471
|
{
|
|
@@ -14679,7 +14714,7 @@
|
|
|
14679
14714
|
}
|
|
14680
14715
|
},
|
|
14681
14716
|
{
|
|
14682
|
-
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.",
|
|
14717
|
+
"description": "Defines the HTML type of the component.\n\n**Notes:**\n\n- The particular effect of this property differs depending on the browser\nand the current language settings, especially for type `Number`.\n- The property is mostly intended to be used with touch devices\nthat use different soft keyboard layouts depending on the given input type.\n- Type `Number` does not support suggestions.",
|
|
14683
14718
|
"name": "type",
|
|
14684
14719
|
"default": "\"Text\"",
|
|
14685
14720
|
"fieldName": "type",
|
|
@@ -17819,6 +17854,22 @@
|
|
|
17819
17854
|
"privacy": "public"
|
|
17820
17855
|
}
|
|
17821
17856
|
],
|
|
17857
|
+
"events": [
|
|
17858
|
+
{
|
|
17859
|
+
"name": "click",
|
|
17860
|
+
"type": {
|
|
17861
|
+
"text": "CustomEvent<SegmentedButtonItemClickEventDetail>",
|
|
17862
|
+
"references": [
|
|
17863
|
+
{
|
|
17864
|
+
"name": "SegmentedButtonItemClickEventDetail",
|
|
17865
|
+
"package": "@ui5/webcomponents",
|
|
17866
|
+
"module": "dist/SegmentedButtonItem.js"
|
|
17867
|
+
}
|
|
17868
|
+
]
|
|
17869
|
+
},
|
|
17870
|
+
"description": "Fired when the component is activated either with a mouse/tap or by using the Enter or Space key.\n\n**Note:** The event will not be fired if the `disabled` property is set to `true`."
|
|
17871
|
+
}
|
|
17872
|
+
],
|
|
17822
17873
|
"attributes": [
|
|
17823
17874
|
{
|
|
17824
17875
|
"description": "Defines the accessible description of the component.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputComposition.js","sourceRoot":"","sources":["../../src/features/InputComposition.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAO,gBAAgB;IAGpC,YAAY,SAA+B;QAI3C,mBAAc,GAAG,GAAG,EAAE;YACrB,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC,CAAC;QAEF,sBAAiB,GAAG,GAAG,EAAE;YACxB,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC,CAAC;QATD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC7B,CAAC;IAUD,iBAAiB;QAChB,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,OAAO;QACR,CAAC;QACD,EAAE,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC7D,EAAE,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC9D,EAAE,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC/D,CAAC;IAED,oBAAoB;QACnB,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,OAAO;QACR,CAAC;QACD,EAAE,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAChE,EAAE,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QACjE,EAAE,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAClE,CAAC;CACD","sourcesContent":["export interface CompositionComponent {\n\tgetInputEl: () => HTMLInputElement | null;\n\tupdateCompositionState: (isComposing: boolean) => void;\n}\n\nexport default class InputComposition {\n\t_component: CompositionComponent;\n\n\tconstructor(component: CompositionComponent) {\n\t\tthis._component = component;\n\t}\n\n\t_onComposition = () => {\n\t\tthis._component.updateCompositionState(true);\n\t};\n\n\t_onCompositionEnd = () => {\n\t\tthis._component.updateCompositionState(false);\n\t};\n\n\taddEventListeners() {\n\t\tconst el = this._component.getInputEl();\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\tel.addEventListener(\"compositionstart\", this._onComposition);\n\t\tel.addEventListener(\"compositionupdate\", this._onComposition);\n\t\tel.addEventListener(\"compositionend\", this._onCompositionEnd);\n\t}\n\n\tremoveEventListeners() {\n\t\tconst el = this._component.getInputEl();\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\tel.removeEventListener(\"compositionstart\", this._onComposition);\n\t\tel.removeEventListener(\"compositionupdate\", this._onComposition);\n\t\tel.removeEventListener(\"compositionend\", this._onCompositionEnd);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"InputComposition.js","sourceRoot":"","sources":["../../src/features/InputComposition.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,OAAO,gBAAgB;IAGpC,YAAY,SAA+B;QAI3C,mBAAc,GAAG,GAAG,EAAE;YACrB,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC9C,CAAC,CAAC;QAEF,sBAAiB,GAAG,GAAG,EAAE;YACxB,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC,CAAC;QATD,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC7B,CAAC;IAUD,iBAAiB;QAChB,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,OAAO;QACR,CAAC;QACD,EAAE,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC7D,EAAE,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAC9D,EAAE,CAAC,gBAAgB,CAAC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC/D,CAAC;IAED,oBAAoB;QACnB,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE,CAAC;QACxC,IAAI,CAAC,EAAE,EAAE,CAAC;YACT,OAAO;QACR,CAAC;QACD,EAAE,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QAChE,EAAE,CAAC,mBAAmB,CAAC,mBAAmB,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;QACjE,EAAE,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAClE,CAAC;CACD","sourcesContent":["export interface CompositionComponent {\n\tgetInputEl: () => HTMLInputElement | HTMLTextAreaElement | null;\n\tupdateCompositionState: (isComposing: boolean) => void;\n}\n\nexport default class InputComposition {\n\t_component: CompositionComponent;\n\n\tconstructor(component: CompositionComponent) {\n\t\tthis._component = component;\n\t}\n\n\t_onComposition = () => {\n\t\tthis._component.updateCompositionState(true);\n\t};\n\n\t_onCompositionEnd = () => {\n\t\tthis._component.updateCompositionState(false);\n\t};\n\n\taddEventListeners() {\n\t\tconst el = this._component.getInputEl();\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\tel.addEventListener(\"compositionstart\", this._onComposition);\n\t\tel.addEventListener(\"compositionupdate\", this._onComposition);\n\t\tel.addEventListener(\"compositionend\", this._onCompositionEnd);\n\t}\n\n\tremoveEventListeners() {\n\t\tconst el = this._component.getInputEl();\n\t\tif (!el) {\n\t\t\treturn;\n\t\t}\n\t\tel.removeEventListener(\"compositionstart\", this._onComposition);\n\t\tel.removeEventListener(\"compositionupdate\", this._onComposition);\n\t\tel.removeEventListener(\"compositionend\", this._onCompositionEnd);\n\t}\n}\n"]}
|