@sap-ux/ui-components 2.2.4 → 3.0.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/dist/components/Icons.js +583 -590
- package/dist/components/Icons.js.map +1 -1
- package/dist/components/UIActionCallout/UIActionCallout.d.ts +1 -1
- package/dist/components/UIActionCallout/UIActionCallout.d.ts.map +1 -1
- package/dist/components/UIActionCallout/UIActionCallout.js +12 -19
- package/dist/components/UIActionCallout/UIActionCallout.js.map +1 -1
- package/dist/components/UIActionCallout/index.d.ts +1 -1
- package/dist/components/UIActionCallout/index.d.ts.map +1 -1
- package/dist/components/UIActionCallout/index.js +1 -17
- package/dist/components/UIActionCallout/index.js.map +1 -1
- package/dist/components/UIBreadcrumb/UIBreadcrumb.js +4 -11
- package/dist/components/UIBreadcrumb/UIBreadcrumb.js.map +1 -1
- package/dist/components/UIBreadcrumb/index.d.ts +1 -1
- package/dist/components/UIBreadcrumb/index.d.ts.map +1 -1
- package/dist/components/UIBreadcrumb/index.js +1 -17
- package/dist/components/UIBreadcrumb/index.js.map +1 -1
- package/dist/components/UIButton/UIActionButton.d.ts +1 -1
- package/dist/components/UIButton/UIActionButton.d.ts.map +1 -1
- package/dist/components/UIButton/UIActionButton.js +8 -15
- package/dist/components/UIButton/UIActionButton.js.map +1 -1
- package/dist/components/UIButton/UIDefaultButton.d.ts +1 -1
- package/dist/components/UIButton/UIDefaultButton.d.ts.map +1 -1
- package/dist/components/UIButton/UIDefaultButton.js +100 -107
- package/dist/components/UIButton/UIDefaultButton.js.map +1 -1
- package/dist/components/UIButton/UIIconButton.d.ts +1 -1
- package/dist/components/UIButton/UIIconButton.d.ts.map +1 -1
- package/dist/components/UIButton/UIIconButton.js +7 -14
- package/dist/components/UIButton/UIIconButton.js.map +1 -1
- package/dist/components/UIButton/UISmallButton.js +4 -11
- package/dist/components/UIButton/UISmallButton.js.map +1 -1
- package/dist/components/UIButton/UISplitButton.d.ts +1 -1
- package/dist/components/UIButton/UISplitButton.d.ts.map +1 -1
- package/dist/components/UIButton/UISplitButton.js +8 -45
- package/dist/components/UIButton/UISplitButton.js.map +1 -1
- package/dist/components/UIButton/index.d.ts +7 -7
- package/dist/components/UIButton/index.d.ts.map +1 -1
- package/dist/components/UIButton/index.js +5 -21
- package/dist/components/UIButton/index.js.map +1 -1
- package/dist/components/UICallout/CalloutCollisionTransform.js +1 -5
- package/dist/components/UICallout/CalloutCollisionTransform.js.map +1 -1
- package/dist/components/UICallout/UICallout.js +23 -31
- package/dist/components/UICallout/UICallout.js.map +1 -1
- package/dist/components/UICallout/index.d.ts +2 -2
- package/dist/components/UICallout/index.d.ts.map +1 -1
- package/dist/components/UICallout/index.js +2 -18
- package/dist/components/UICallout/index.js.map +1 -1
- package/dist/components/UICheckbox/UICheckbox.d.ts +1 -1
- package/dist/components/UICheckbox/UICheckbox.d.ts.map +1 -1
- package/dist/components/UICheckbox/UICheckbox.js +15 -22
- package/dist/components/UICheckbox/UICheckbox.js.map +1 -1
- package/dist/components/UICheckbox/index.d.ts +1 -1
- package/dist/components/UICheckbox/index.d.ts.map +1 -1
- package/dist/components/UICheckbox/index.js +1 -17
- package/dist/components/UICheckbox/index.js.map +1 -1
- package/dist/components/UIChoiceGroup/UIChoiceGroup.js +8 -15
- package/dist/components/UIChoiceGroup/UIChoiceGroup.js.map +1 -1
- package/dist/components/UIChoiceGroup/index.d.ts +1 -1
- package/dist/components/UIChoiceGroup/index.d.ts.map +1 -1
- package/dist/components/UIChoiceGroup/index.js +1 -17
- package/dist/components/UIChoiceGroup/index.js.map +1 -1
- package/dist/components/UIComboBox/UIComboBox.d.ts +3 -4
- package/dist/components/UIComboBox/UIComboBox.d.ts.map +1 -1
- package/dist/components/UIComboBox/UIComboBox.js +45 -52
- package/dist/components/UIComboBox/UIComboBox.js.map +1 -1
- package/dist/components/UIComboBox/index.d.ts +1 -1
- package/dist/components/UIComboBox/index.d.ts.map +1 -1
- package/dist/components/UIComboBox/index.js +1 -17
- package/dist/components/UIComboBox/index.js.map +1 -1
- package/dist/components/UIContextualMenu/UIContextualMenu.d.ts +5 -5
- package/dist/components/UIContextualMenu/UIContextualMenu.d.ts.map +1 -1
- package/dist/components/UIContextualMenu/UIContextualMenu.js +16 -26
- package/dist/components/UIContextualMenu/UIContextualMenu.js.map +1 -1
- package/dist/components/UIContextualMenu/UIHighlightMenuOption.js +7 -14
- package/dist/components/UIContextualMenu/UIHighlightMenuOption.js.map +1 -1
- package/dist/components/UIContextualMenu/index.d.ts +2 -2
- package/dist/components/UIContextualMenu/index.d.ts.map +1 -1
- package/dist/components/UIContextualMenu/index.js +2 -18
- package/dist/components/UIContextualMenu/index.js.map +1 -1
- package/dist/components/UICreateSelect/UICreateSelect.d.ts +2 -3
- package/dist/components/UICreateSelect/UICreateSelect.d.ts.map +1 -1
- package/dist/components/UICreateSelect/UICreateSelect.js +21 -28
- package/dist/components/UICreateSelect/UICreateSelect.js.map +1 -1
- package/dist/components/UICreateSelect/index.d.ts +1 -1
- package/dist/components/UICreateSelect/index.d.ts.map +1 -1
- package/dist/components/UICreateSelect/index.js +1 -17
- package/dist/components/UICreateSelect/index.js.map +1 -1
- package/dist/components/UIDatePicker/UIDatePicker.d.ts +1 -1
- package/dist/components/UIDatePicker/UIDatePicker.d.ts.map +1 -1
- package/dist/components/UIDatePicker/UIDatePicker.js +11 -18
- package/dist/components/UIDatePicker/UIDatePicker.js.map +1 -1
- package/dist/components/UIDatePicker/index.d.ts +1 -1
- package/dist/components/UIDatePicker/index.d.ts.map +1 -1
- package/dist/components/UIDatePicker/index.js +1 -17
- package/dist/components/UIDatePicker/index.js.map +1 -1
- package/dist/components/UIDialog/UIDialog.js +30 -37
- package/dist/components/UIDialog/UIDialog.js.map +1 -1
- package/dist/components/UIDialog/index.d.ts +1 -1
- package/dist/components/UIDialog/index.d.ts.map +1 -1
- package/dist/components/UIDialog/index.js +1 -17
- package/dist/components/UIDialog/index.js.map +1 -1
- package/dist/components/UIDropdown/UIDropdown.d.ts +4 -4
- package/dist/components/UIDropdown/UIDropdown.d.ts.map +1 -1
- package/dist/components/UIDropdown/UIDropdown.js +27 -34
- package/dist/components/UIDropdown/UIDropdown.js.map +1 -1
- package/dist/components/UIDropdown/index.d.ts +2 -2
- package/dist/components/UIDropdown/index.d.ts.map +1 -1
- package/dist/components/UIDropdown/index.js +2 -18
- package/dist/components/UIDropdown/index.js.map +1 -1
- package/dist/components/UIDropdown/utils.d.ts +3 -3
- package/dist/components/UIDropdown/utils.d.ts.map +1 -1
- package/dist/components/UIDropdown/utils.js +3 -8
- package/dist/components/UIDropdown/utils.js.map +1 -1
- package/dist/components/UIFlexibleTable/RowActions.d.ts +1 -1
- package/dist/components/UIFlexibleTable/RowActions.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/RowActions.js +13 -19
- package/dist/components/UIFlexibleTable/RowActions.js.map +1 -1
- package/dist/components/UIFlexibleTable/RowData.d.ts +1 -1
- package/dist/components/UIFlexibleTable/RowData.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/RowData.js +16 -22
- package/dist/components/UIFlexibleTable/RowData.js.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTable.d.ts +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTable.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTable.js +50 -86
- package/dist/components/UIFlexibleTable/UIFlexibleTable.js.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableActionButton.d.ts +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableActionButton.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableActionButton.js +5 -11
- package/dist/components/UIFlexibleTable/UIFlexibleTableActionButton.js.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRow.d.ts +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRow.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRow.js +33 -40
- package/dist/components/UIFlexibleTable/UIFlexibleTableRow.js.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowActionButton.d.ts +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowActionButton.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowActionButton.js +5 -11
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowActionButton.js.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowNoData.d.ts +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowNoData.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowNoData.js +7 -13
- package/dist/components/UIFlexibleTable/UIFlexibleTableRowNoData.js.map +1 -1
- package/dist/components/UIFlexibleTable/index.d.ts +5 -5
- package/dist/components/UIFlexibleTable/index.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/index.js +5 -21
- package/dist/components/UIFlexibleTable/index.js.map +1 -1
- package/dist/components/UIFlexibleTable/types.d.ts +1 -1
- package/dist/components/UIFlexibleTable/types.d.ts.map +1 -1
- package/dist/components/UIFlexibleTable/types.js +4 -7
- package/dist/components/UIFlexibleTable/types.js.map +1 -1
- package/dist/components/UIFlexibleTable/utils.js +3 -8
- package/dist/components/UIFlexibleTable/utils.js.map +1 -1
- package/dist/components/UIFocusZone/UIFocusTrapZone.js +4 -11
- package/dist/components/UIFocusZone/UIFocusTrapZone.js.map +1 -1
- package/dist/components/UIFocusZone/UIFocusZone.d.ts +2 -2
- package/dist/components/UIFocusZone/UIFocusZone.d.ts.map +1 -1
- package/dist/components/UIFocusZone/UIFocusZone.js +5 -13
- package/dist/components/UIFocusZone/UIFocusZone.js.map +1 -1
- package/dist/components/UIFocusZone/index.d.ts +2 -2
- package/dist/components/UIFocusZone/index.d.ts.map +1 -1
- package/dist/components/UIFocusZone/index.js +2 -18
- package/dist/components/UIFocusZone/index.js.map +1 -1
- package/dist/components/UIIcon/UIIcon.js +5 -12
- package/dist/components/UIIcon/UIIcon.js.map +1 -1
- package/dist/components/UIIcon/index.d.ts +1 -1
- package/dist/components/UIIcon/index.d.ts.map +1 -1
- package/dist/components/UIIcon/index.js +1 -17
- package/dist/components/UIIcon/index.js.map +1 -1
- package/dist/components/UIInput/UITextInput.d.ts +2 -2
- package/dist/components/UIInput/UITextInput.d.ts.map +1 -1
- package/dist/components/UIInput/UITextInput.js +16 -23
- package/dist/components/UIInput/UITextInput.js.map +1 -1
- package/dist/components/UIInput/index.d.ts +1 -1
- package/dist/components/UIInput/index.d.ts.map +1 -1
- package/dist/components/UIInput/index.js +1 -17
- package/dist/components/UIInput/index.js.map +1 -1
- package/dist/components/UILabel/UILabel.js +8 -15
- package/dist/components/UILabel/UILabel.js.map +1 -1
- package/dist/components/UILabel/index.d.ts +1 -1
- package/dist/components/UILabel/index.d.ts.map +1 -1
- package/dist/components/UILabel/index.js +1 -17
- package/dist/components/UILabel/index.js.map +1 -1
- package/dist/components/UILink/UILink.js +4 -11
- package/dist/components/UILink/UILink.js.map +1 -1
- package/dist/components/UILink/index.d.ts +1 -1
- package/dist/components/UILink/index.d.ts.map +1 -1
- package/dist/components/UILink/index.js +1 -17
- package/dist/components/UILink/index.js.map +1 -1
- package/dist/components/UIList/UIList.js +7 -14
- package/dist/components/UIList/UIList.js.map +1 -1
- package/dist/components/UIList/index.d.ts +1 -1
- package/dist/components/UIList/index.d.ts.map +1 -1
- package/dist/components/UIList/index.js +1 -17
- package/dist/components/UIList/index.js.map +1 -1
- package/dist/components/UILoader/UILoader.js +7 -14
- package/dist/components/UILoader/UILoader.js.map +1 -1
- package/dist/components/UILoader/index.d.ts +1 -1
- package/dist/components/UILoader/index.d.ts.map +1 -1
- package/dist/components/UILoader/index.js +1 -17
- package/dist/components/UILoader/index.js.map +1 -1
- package/dist/components/UIMessageBar/UIMessageBar.d.ts +1 -1
- package/dist/components/UIMessageBar/UIMessageBar.d.ts.map +1 -1
- package/dist/components/UIMessageBar/UIMessageBar.js +17 -24
- package/dist/components/UIMessageBar/UIMessageBar.js.map +1 -1
- package/dist/components/UIMessageBar/index.d.ts +1 -1
- package/dist/components/UIMessageBar/index.d.ts.map +1 -1
- package/dist/components/UIMessageBar/index.js +1 -17
- package/dist/components/UIMessageBar/index.js.map +1 -1
- package/dist/components/UIModal/UIModal.js +4 -11
- package/dist/components/UIModal/UIModal.js.map +1 -1
- package/dist/components/UIModal/index.d.ts +1 -1
- package/dist/components/UIModal/index.d.ts.map +1 -1
- package/dist/components/UIModal/index.js +1 -17
- package/dist/components/UIModal/index.js.map +1 -1
- package/dist/components/UIOverlay/UIOverlay.js +4 -11
- package/dist/components/UIOverlay/UIOverlay.js.map +1 -1
- package/dist/components/UIOverlay/index.d.ts +1 -1
- package/dist/components/UIOverlay/index.d.ts.map +1 -1
- package/dist/components/UIOverlay/index.js +1 -17
- package/dist/components/UIOverlay/index.js.map +1 -1
- package/dist/components/UIPersona/UIPersona.js +6 -13
- package/dist/components/UIPersona/UIPersona.js.map +1 -1
- package/dist/components/UIPersona/index.d.ts +1 -1
- package/dist/components/UIPersona/index.d.ts.map +1 -1
- package/dist/components/UIPersona/index.js +1 -17
- package/dist/components/UIPersona/index.js.map +1 -1
- package/dist/components/UIQuickNavigation/UIQuickNavigation.js +31 -70
- package/dist/components/UIQuickNavigation/UIQuickNavigation.js.map +1 -1
- package/dist/components/UIQuickNavigation/index.d.ts +1 -1
- package/dist/components/UIQuickNavigation/index.d.ts.map +1 -1
- package/dist/components/UIQuickNavigation/index.js +1 -17
- package/dist/components/UIQuickNavigation/index.js.map +1 -1
- package/dist/components/UISearchBox/UISearchBox.js +9 -16
- package/dist/components/UISearchBox/UISearchBox.js.map +1 -1
- package/dist/components/UISearchBox/index.d.ts +3 -3
- package/dist/components/UISearchBox/index.d.ts.map +1 -1
- package/dist/components/UISearchBox/index.js +1 -17
- package/dist/components/UISearchBox/index.js.map +1 -1
- package/dist/components/UISection/UISection.js +12 -19
- package/dist/components/UISection/UISection.js.map +1 -1
- package/dist/components/UISection/UISections.d.ts +2 -2
- package/dist/components/UISection/UISections.d.ts.map +1 -1
- package/dist/components/UISection/UISections.js +16 -23
- package/dist/components/UISection/UISections.js.map +1 -1
- package/dist/components/UISection/UISplitter.js +14 -21
- package/dist/components/UISection/UISplitter.js.map +1 -1
- package/dist/components/UISection/index.d.ts +3 -3
- package/dist/components/UISection/index.d.ts.map +1 -1
- package/dist/components/UISection/index.js +3 -19
- package/dist/components/UISection/index.js.map +1 -1
- package/dist/components/UISeparator/UISeparator.js +4 -11
- package/dist/components/UISeparator/UISeparator.js.map +1 -1
- package/dist/components/UISeparator/index.d.ts +1 -1
- package/dist/components/UISeparator/index.d.ts.map +1 -1
- package/dist/components/UISeparator/index.js +1 -17
- package/dist/components/UISeparator/index.js.map +1 -1
- package/dist/components/UITable/UITable-helper.d.ts +1 -1
- package/dist/components/UITable/UITable-helper.d.ts.map +1 -1
- package/dist/components/UITable/UITable-helper.js +21 -40
- package/dist/components/UITable/UITable-helper.js.map +1 -1
- package/dist/components/UITable/UITable.d.ts +1 -1
- package/dist/components/UITable/UITable.d.ts.map +1 -1
- package/dist/components/UITable/UITable.js +67 -74
- package/dist/components/UITable/UITable.js.map +1 -1
- package/dist/components/UITable/index.d.ts +2 -2
- package/dist/components/UITable/index.d.ts.map +1 -1
- package/dist/components/UITable/index.js +2 -18
- package/dist/components/UITable/index.js.map +1 -1
- package/dist/components/UITable/types.d.ts +1 -1
- package/dist/components/UITable/types.d.ts.map +1 -1
- package/dist/components/UITable/types.js +7 -14
- package/dist/components/UITable/types.js.map +1 -1
- package/dist/components/UITabs/UITabs.js +7 -14
- package/dist/components/UITabs/UITabs.js.map +1 -1
- package/dist/components/UITabs/index.d.ts +1 -1
- package/dist/components/UITabs/index.d.ts.map +1 -1
- package/dist/components/UITabs/index.js +1 -17
- package/dist/components/UITabs/index.js.map +1 -1
- package/dist/components/UIToggle/UIToggle.d.ts +1 -1
- package/dist/components/UIToggle/UIToggle.d.ts.map +1 -1
- package/dist/components/UIToggle/UIToggle.js +14 -21
- package/dist/components/UIToggle/UIToggle.js.map +1 -1
- package/dist/components/UIToggle/index.d.ts +1 -1
- package/dist/components/UIToggle/index.d.ts.map +1 -1
- package/dist/components/UIToggle/index.js +1 -17
- package/dist/components/UIToggle/index.js.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroup.d.ts +2 -2
- package/dist/components/UIToggleGroup/UIToggleGroup.d.ts.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroup.js +11 -48
- package/dist/components/UIToggleGroup/UIToggleGroup.js.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroup.types.js +1 -2
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.d.ts +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.d.ts.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.js +7 -44
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.js.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.types.d.ts +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.types.d.ts.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroupOption/UIToggleGroupOption.types.js +1 -2
- package/dist/components/UIToggleGroup/UIToggleGroupOption/index.d.ts +2 -2
- package/dist/components/UIToggleGroup/UIToggleGroupOption/index.d.ts.map +1 -1
- package/dist/components/UIToggleGroup/UIToggleGroupOption/index.js +2 -18
- package/dist/components/UIToggleGroup/UIToggleGroupOption/index.js.map +1 -1
- package/dist/components/UIToggleGroup/index.d.ts +2 -2
- package/dist/components/UIToggleGroup/index.d.ts.map +1 -1
- package/dist/components/UIToggleGroup/index.js +2 -18
- package/dist/components/UIToggleGroup/index.js.map +1 -1
- package/dist/components/UIToolbar/UIToolbar.js +5 -42
- package/dist/components/UIToolbar/UIToolbar.js.map +1 -1
- package/dist/components/UIToolbar/UIToolbarColumn.js +5 -42
- package/dist/components/UIToolbar/UIToolbarColumn.js.map +1 -1
- package/dist/components/UIToolbar/UIToolbarDivider.js +3 -40
- package/dist/components/UIToolbar/UIToolbarDivider.js.map +1 -1
- package/dist/components/UIToolbar/index.d.ts +3 -3
- package/dist/components/UIToolbar/index.d.ts.map +1 -1
- package/dist/components/UIToolbar/index.js +3 -19
- package/dist/components/UIToolbar/index.js.map +1 -1
- package/dist/components/UITooltip/UITooltip.js +10 -17
- package/dist/components/UITooltip/UITooltip.js.map +1 -1
- package/dist/components/UITooltip/UITooltipUtils.js +9 -16
- package/dist/components/UITooltip/UITooltipUtils.js.map +1 -1
- package/dist/components/UITooltip/index.d.ts +2 -2
- package/dist/components/UITooltip/index.d.ts.map +1 -1
- package/dist/components/UITooltip/index.js +2 -18
- package/dist/components/UITooltip/index.js.map +1 -1
- package/dist/components/UITranslationInput/UIFormattedText.js +9 -19
- package/dist/components/UITranslationInput/UIFormattedText.js.map +1 -1
- package/dist/components/UITranslationInput/UILoadButton.d.ts +2 -2
- package/dist/components/UITranslationInput/UILoadButton.d.ts.map +1 -1
- package/dist/components/UITranslationInput/UILoadButton.js +7 -14
- package/dist/components/UITranslationInput/UILoadButton.js.map +1 -1
- package/dist/components/UITranslationInput/UITranslationButton.d.ts +1 -1
- package/dist/components/UITranslationInput/UITranslationButton.d.ts.map +1 -1
- package/dist/components/UITranslationInput/UITranslationButton.js +21 -58
- package/dist/components/UITranslationInput/UITranslationButton.js.map +1 -1
- package/dist/components/UITranslationInput/UITranslationButton.types.d.ts +1 -1
- package/dist/components/UITranslationInput/UITranslationButton.types.d.ts.map +1 -1
- package/dist/components/UITranslationInput/UITranslationButton.types.js +6 -9
- package/dist/components/UITranslationInput/UITranslationButton.types.js.map +1 -1
- package/dist/components/UITranslationInput/UITranslationInput.d.ts +4 -4
- package/dist/components/UITranslationInput/UITranslationInput.d.ts.map +1 -1
- package/dist/components/UITranslationInput/UITranslationInput.js +33 -70
- package/dist/components/UITranslationInput/UITranslationInput.js.map +1 -1
- package/dist/components/UITranslationInput/UITranslationUtils.d.ts +2 -2
- package/dist/components/UITranslationInput/UITranslationUtils.d.ts.map +1 -1
- package/dist/components/UITranslationInput/UITranslationUtils.js +15 -25
- package/dist/components/UITranslationInput/UITranslationUtils.js.map +1 -1
- package/dist/components/UITranslationInput/defaults.d.ts +1 -1
- package/dist/components/UITranslationInput/defaults.d.ts.map +1 -1
- package/dist/components/UITranslationInput/defaults.js +1 -4
- package/dist/components/UITranslationInput/defaults.js.map +1 -1
- package/dist/components/UITranslationInput/index.d.ts +2 -2
- package/dist/components/UITranslationInput/index.d.ts.map +1 -1
- package/dist/components/UITranslationInput/index.js +2 -18
- package/dist/components/UITranslationInput/index.js.map +1 -1
- package/dist/components/UITreeDropdown/UITreeDropdown.d.ts +1 -1
- package/dist/components/UITreeDropdown/UITreeDropdown.d.ts.map +1 -1
- package/dist/components/UITreeDropdown/UITreeDropdown.js +29 -36
- package/dist/components/UITreeDropdown/UITreeDropdown.js.map +1 -1
- package/dist/components/UITreeDropdown/index.d.ts +1 -1
- package/dist/components/UITreeDropdown/index.d.ts.map +1 -1
- package/dist/components/UITreeDropdown/index.js +1 -17
- package/dist/components/UITreeDropdown/index.js.map +1 -1
- package/dist/components/UIVerticalDivider/UIVerticalDivider.js +4 -11
- package/dist/components/UIVerticalDivider/UIVerticalDivider.js.map +1 -1
- package/dist/components/UIVerticalDivider/index.d.ts +1 -1
- package/dist/components/UIVerticalDivider/index.d.ts.map +1 -1
- package/dist/components/UIVerticalDivider/index.js +1 -17
- package/dist/components/UIVerticalDivider/index.js.map +1 -1
- package/dist/components/UIVirtualList/UIAutoSizer.js +4 -11
- package/dist/components/UIVirtualList/UIAutoSizer.js.map +1 -1
- package/dist/components/UIVirtualList/UICellMeasurer.d.ts +1 -1
- package/dist/components/UIVirtualList/UICellMeasurer.d.ts.map +1 -1
- package/dist/components/UIVirtualList/UICellMeasurer.js +4 -11
- package/dist/components/UIVirtualList/UICellMeasurer.js.map +1 -1
- package/dist/components/UIVirtualList/UIVirtualList.d.ts +1 -1
- package/dist/components/UIVirtualList/UIVirtualList.d.ts.map +1 -1
- package/dist/components/UIVirtualList/UIVirtualList.js +6 -15
- package/dist/components/UIVirtualList/UIVirtualList.js.map +1 -1
- package/dist/components/UIVirtualList/index.d.ts +3 -3
- package/dist/components/UIVirtualList/index.d.ts.map +1 -1
- package/dist/components/UIVirtualList/index.js +3 -19
- package/dist/components/UIVirtualList/index.js.map +1 -1
- package/dist/components/index.d.ts +39 -39
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +40 -58
- package/dist/components/index.js.map +1 -1
- package/dist/components/types.js +1 -4
- package/dist/components/types.js.map +1 -1
- package/dist/helper/ValidationMessage/MessageWrapper.d.ts +3 -3
- package/dist/helper/ValidationMessage/MessageWrapper.d.ts.map +1 -1
- package/dist/helper/ValidationMessage/MessageWrapper.js +18 -25
- package/dist/helper/ValidationMessage/MessageWrapper.js.map +1 -1
- package/dist/helper/ValidationMessage/index.d.ts +2 -2
- package/dist/helper/ValidationMessage/index.d.ts.map +1 -1
- package/dist/helper/ValidationMessage/index.js +2 -18
- package/dist/helper/ValidationMessage/index.js.map +1 -1
- package/dist/helper/ValidationMessage/utils.js +13 -17
- package/dist/helper/ValidationMessage/utils.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -22
- package/dist/index.js.map +1 -1
- package/dist/theme/index.js +4 -7
- package/dist/theme/index.js.map +1 -1
- package/dist/utilities/Debounce.js +1 -4
- package/dist/utilities/Debounce.js.map +1 -1
- package/dist/utilities/DeepMerge.js +3 -9
- package/dist/utilities/DeepMerge.js.map +1 -1
- package/dist/utilities/Dom.js +2 -6
- package/dist/utilities/Dom.js.map +1 -1
- package/dist/utilities/Focus.js +11 -15
- package/dist/utilities/Focus.js.map +1 -1
- package/dist/utilities/Id.js +2 -5
- package/dist/utilities/Id.js.map +1 -1
- package/dist/utilities/Keys.js +2 -5
- package/dist/utilities/Keys.js.map +1 -1
- package/dist/utilities/index.d.ts +5 -5
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +5 -21
- package/dist/utilities/index.js.map +1 -1
- package/package.json +7 -6
- package/storybook/173.dda008b3.iframe.bundle.js +1 -0
- package/storybook/{236.db7ec88e.iframe.bundle.js → 236.a49b26f7.iframe.bundle.js} +15 -15
- package/storybook/237.334c60ea.iframe.bundle.js +13 -0
- package/storybook/267.590a1784.iframe.bundle.js +5 -0
- package/storybook/269.b299c304.iframe.bundle.js +13 -0
- package/storybook/286.132e3dcf.iframe.bundle.js +341 -0
- package/storybook/317.6ed891b3.iframe.bundle.js +672 -0
- package/storybook/33.71c40cbf.iframe.bundle.js +19 -0
- package/storybook/{31.573b5dd6.iframe.bundle.js → 360.01a2fadf.iframe.bundle.js} +3 -3
- package/storybook/4.b31f2180.iframe.bundle.js +19 -0
- package/storybook/416.f50bd5c3.iframe.bundle.js +24 -0
- package/storybook/668.82cffebd.iframe.bundle.js +86 -0
- package/storybook/7.4fcb7e45.iframe.bundle.js +25 -0
- package/storybook/847.c596d8f5.iframe.bundle.js +2 -0
- package/storybook/882.3e14d778.iframe.bundle.js +28 -0
- package/storybook/UIActionCallout-story.b98b4b91.iframe.bundle.js +13 -0
- package/storybook/UICallout-story.76cd265e.iframe.bundle.js +17 -0
- package/storybook/UICalloutCollisionTransform-story.f03fa5cb.iframe.bundle.js +1 -0
- package/storybook/UICheckbox-story.d97e1a5c.iframe.bundle.js +7 -0
- package/storybook/UIChoiceGroup-story.c5b07811.iframe.bundle.js +11 -0
- package/storybook/UICombobox-story.cca56e3f.iframe.bundle.js +1 -0
- package/storybook/UIContextualMenu-story.50590557.iframe.bundle.js +13 -0
- package/storybook/UICreateSelect-story.b28fdb71.iframe.bundle.js +22 -0
- package/storybook/UIDatePicker-story.629487fd.iframe.bundle.js +6 -0
- package/storybook/UIDialog-story.170e3efe.iframe.bundle.js +2 -0
- package/storybook/UIDropdown-story.7cbc5c05.iframe.bundle.js +1 -0
- package/storybook/UILabel-story.2b41f5bb.iframe.bundle.js +6 -0
- package/storybook/UILink-story.897bde29.iframe.bundle.js +12 -0
- package/storybook/UILoader-story.6877c237.iframe.bundle.js +6 -0
- package/storybook/UIMessageBar-story.a1969ce1.iframe.bundle.js +9 -0
- package/storybook/UIPersona-story.08b5d980.iframe.bundle.js +6 -0
- package/storybook/UISeparator-story.467cd4de.iframe.bundle.js +6 -0
- package/storybook/UITable-story.ef38cfd0.iframe.bundle.js +4 -0
- package/storybook/UITextInput-story.c321c1e8.iframe.bundle.js +7 -0
- package/storybook/UIToggle-story.87ab3155.iframe.bundle.js +22 -0
- package/storybook/UIToggleGroup-story.e3ff6d80.iframe.bundle.js +12 -0
- package/storybook/UITooltip-story.529b65bb.iframe.bundle.js +13 -0
- package/storybook/UITreedropdown-story.60f2fd3a.iframe.bundle.js +6 -0
- package/storybook/favicon-wrapper.svg +46 -0
- package/storybook/favicon.svg +1 -1
- package/storybook/iframe.html +101 -56
- package/storybook/index.html +23 -21
- package/storybook/index.json +1 -1
- package/storybook/main.0d86713d.iframe.bundle.js +1 -0
- package/storybook/mocker-runtime-injected.js +2 -0
- package/storybook/project.json +1 -1
- package/storybook/runtime~main.8ce1d604.iframe.bundle.js +2 -0
- package/storybook/sb-addons/common-manager-bundle.js +628 -1
- package/storybook/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook/sb-common-assets/favicon.svg +1 -1
- package/storybook/sb-manager/globals-runtime.js +74974 -40000
- package/storybook/sb-manager/globals.js +13 -37
- package/storybook/sb-manager/manager-stores.js +23 -0
- package/storybook/sb-manager/runtime.js +25190 -9775
- package/storybook/sb-preview/globals.js +10 -23
- package/storybook/sb-preview/runtime.js +34427 -6676
- package/storybook/133.7f9c4401.iframe.bundle.js +0 -1
- package/storybook/237.2fa88e98.iframe.bundle.js +0 -13
- package/storybook/272.9b5d83c3.iframe.bundle.js +0 -8
- package/storybook/395.cdda1e86.iframe.bundle.js +0 -1
- package/storybook/435.d820054a.iframe.bundle.js +0 -1
- package/storybook/464.f6309bf2.iframe.bundle.js +0 -1
- package/storybook/633.3fcd32a3.iframe.bundle.js +0 -2
- package/storybook/657.8bbef1bd.iframe.bundle.js +0 -1
- package/storybook/687.0d6224e0.iframe.bundle.js +0 -1
- package/storybook/704.329de0cc.iframe.bundle.js +0 -1
- package/storybook/714.895a9298.iframe.bundle.js +0 -55
- package/storybook/82.cbddfc84.iframe.bundle.js +0 -1
- package/storybook/978.a195e3c5.iframe.bundle.js +0 -7
- package/storybook/980.26b285aa.iframe.bundle.js +0 -1
- package/storybook/UIActionCallout-story.0f019554.iframe.bundle.js +0 -2
- package/storybook/UICallout-story.9026ac69.iframe.bundle.js +0 -2
- package/storybook/UICalloutCollisionTransform-story.ed1160b0.iframe.bundle.js +0 -1
- package/storybook/UICheckbox-story.1c7a7883.iframe.bundle.js +0 -2
- package/storybook/UIChoiceGroup-story.f5c61c53.iframe.bundle.js +0 -1
- package/storybook/UICombobox-story.c6fdb1e6.iframe.bundle.js +0 -1
- package/storybook/UIContextualMenu-story.5d35030b.iframe.bundle.js +0 -1
- package/storybook/UICreateSelect-story.d514149e.iframe.bundle.js +0 -2
- package/storybook/UIDatePicker-story.6b5e3e09.iframe.bundle.js +0 -2
- package/storybook/UIDialog-story.2c80f1e3.iframe.bundle.js +0 -2
- package/storybook/UIDropdown-story.0b189ddd.iframe.bundle.js +0 -1
- package/storybook/UILabel-story.4f878fd0.iframe.bundle.js +0 -1
- package/storybook/UILink-story.6e2c3b4f.iframe.bundle.js +0 -2
- package/storybook/UILoader-story.bb8faed0.iframe.bundle.js +0 -6
- package/storybook/UIMessageBar-story.efde9aa5.iframe.bundle.js +0 -1
- package/storybook/UIPersona-story.cf14bf11.iframe.bundle.js +0 -1
- package/storybook/UISeparator-story.b93568c6.iframe.bundle.js +0 -1
- package/storybook/UITable-story.08b1e3ca.iframe.bundle.js +0 -4
- package/storybook/UITextInput-story.5fb40543.iframe.bundle.js +0 -2
- package/storybook/UIToggle-story.9a30e364.iframe.bundle.js +0 -2
- package/storybook/UIToggleGroup-story.46fd140d.iframe.bundle.js +0 -2
- package/storybook/UITooltip-story.7acbb0e3.iframe.bundle.js +0 -2
- package/storybook/UITreedropdown-story.60ded1bc.iframe.bundle.js +0 -1
- package/storybook/main.7fee29d0.iframe.bundle.js +0 -1
- package/storybook/runtime~main.c8bb2522.iframe.bundle.js +0 -2
- package/storybook/sb-manager/globals-module-info.js +0 -1052
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITooltipUtils.js","sourceRoot":"","sources":["../../../src/components/UITooltip/UITooltipUtils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UITooltipUtils.js","sourceRoot":"","sources":["../../../src/components/UITooltip/UITooltipUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,OAAO,cAAc;IACvB;;;;OAIG;IACI,MAAM,CAAC,SAAS;QACnB,OAAO;YACH,IAAI,EAAE,EAAE;YACR,OAAO,EAAE;gBACL,UAAU,EAAE,cAAc,CAAC,UAAU;gBACrC,KAAK,EAAE,cAAc,CAAC,IAAI;aAC7B;YACD,OAAO,EAAE,EAAE;SACd,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,aAAa,CAAC,OAA2C;QACnE,OAAO;YACH,eAAe,EAAE,GAAG,EAAE,CAAC,kCAAO,OAAO,IAAI,EAAE,CAAQ;YACnD,MAAM,EAAE,cAAc,CAAC,SAAS,EAAE;SACpB,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,iBAAiB,CAAC,OAAe;QAC3C,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC;QAExC,OAAO;YACH,eAAe,EAAE,GAAG,EAAE,CAAC,8BAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,GAAI;YAC/E,MAAM,EAAE,cAAc,CAAC,SAAS,EAAE;SACpB,CAAC;IACvB,CAAC;CACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './UITooltip';
|
|
2
|
-
export * from './UITooltipUtils';
|
|
1
|
+
export * from './UITooltip.js';
|
|
2
|
+
export * from './UITooltipUtils.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UITooltip/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UITooltip/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./UITooltip"), exports);
|
|
18
|
-
__exportStar(require("./UITooltipUtils"), exports);
|
|
1
|
+
export * from './UITooltip.js';
|
|
2
|
+
export * from './UITooltipUtils.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UITooltip/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UITooltip/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.parseText = void 0;
|
|
7
|
-
exports.formatTextGeneric = formatTextGeneric;
|
|
8
|
-
exports.formatText = formatText;
|
|
9
|
-
exports.UIFormattedText = UIFormattedText;
|
|
10
|
-
const react_1 = __importDefault(require("react"));
|
|
1
|
+
import React from 'react';
|
|
11
2
|
const PLACEHOLDER_START = '{{{';
|
|
12
3
|
const PLACEHOLDER_END = '}}}';
|
|
13
4
|
/**
|
|
@@ -39,7 +30,7 @@ const matchAllValues = (text, values) => {
|
|
|
39
30
|
* @param values Map with values to search.
|
|
40
31
|
* @returns Object containing separated `texts` and `formatted` arrays.
|
|
41
32
|
*/
|
|
42
|
-
const parseText = (text, values) => {
|
|
33
|
+
export const parseText = (text, values) => {
|
|
43
34
|
const result = {
|
|
44
35
|
texts: [],
|
|
45
36
|
bolds: []
|
|
@@ -70,7 +61,6 @@ const parseText = (text, values) => {
|
|
|
70
61
|
}
|
|
71
62
|
return result;
|
|
72
63
|
};
|
|
73
|
-
exports.parseText = parseText;
|
|
74
64
|
/**
|
|
75
65
|
* Method formats text with callback method to provide option to use different markup to highligh matching result in text.
|
|
76
66
|
*
|
|
@@ -79,8 +69,8 @@ exports.parseText = parseText;
|
|
|
79
69
|
* @param cb Callback method to apply text highlight.
|
|
80
70
|
* @returns Array with formatted text parts.
|
|
81
71
|
*/
|
|
82
|
-
function formatTextGeneric(text, values, cb) {
|
|
83
|
-
const parseResult =
|
|
72
|
+
export function formatTextGeneric(text, values, cb) {
|
|
73
|
+
const parseResult = parseText(text, values);
|
|
84
74
|
const result = [];
|
|
85
75
|
for (let i = 0; i < parseResult.texts.length; i++) {
|
|
86
76
|
if (!parseResult.texts[i] && !parseResult.bolds[i]) {
|
|
@@ -97,7 +87,7 @@ function formatTextGeneric(text, values, cb) {
|
|
|
97
87
|
* @param values Map with values to search.
|
|
98
88
|
* @returns Formatted text string.
|
|
99
89
|
*/
|
|
100
|
-
function formatText(text, values) {
|
|
90
|
+
export function formatText(text, values) {
|
|
101
91
|
const parseResult = formatTextGeneric(text, values, (index, textPart, match) => {
|
|
102
92
|
return match ? textPart + match : textPart;
|
|
103
93
|
});
|
|
@@ -110,13 +100,13 @@ function formatText(text, values) {
|
|
|
110
100
|
* @param props Component properties.
|
|
111
101
|
* @returns Component to render formatted text.
|
|
112
102
|
*/
|
|
113
|
-
function UIFormattedText(props) {
|
|
103
|
+
export function UIFormattedText(props) {
|
|
114
104
|
const { children, values = {}, className } = props;
|
|
115
105
|
const result = formatTextGeneric(children, values, (index, textPart, match) => {
|
|
116
|
-
return (
|
|
106
|
+
return (React.createElement(React.Fragment, { key: `anchor-${index}` },
|
|
117
107
|
textPart,
|
|
118
|
-
match &&
|
|
108
|
+
match && React.createElement("b", null, match)));
|
|
119
109
|
});
|
|
120
|
-
return
|
|
110
|
+
return React.createElement("div", { className: className }, result);
|
|
121
111
|
}
|
|
122
112
|
//# sourceMappingURL=UIFormattedText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIFormattedText.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UIFormattedText.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UIFormattedText.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CAAC,CACJ,CAAC;IAEF,OAAO,6BAAK,SAAS,EAAE,SAAS,IAAG,MAAM,CAAO,CAAC;AACrD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ButtonProps } from '../UIButton';
|
|
3
|
-
import type { UILoadButtonBusyProps } from './UITranslationButton.types';
|
|
2
|
+
import type { ButtonProps } from '../UIButton/index.js';
|
|
3
|
+
import type { UILoadButtonBusyProps } from './UITranslationButton.types.js';
|
|
4
4
|
import './UILoadButton.scss';
|
|
5
5
|
export interface UILoadButtonState {
|
|
6
6
|
busy?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UILoadButton.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UILoadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UILoadButton.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UILoadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,qBAAqB,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,KAAK,iBAAiB,GAAG,WAAW,GAAG,qBAAqB,CAAC;AAE7D;;GAEG;AACH,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACnF,OAAO,CAAC,cAAc,CAAiC;IACvD;;;;OAIG;gBACS,KAAK,EAAE,iBAAiB;IAKpC;;;;OAIG;IACH,kBAAkB,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI;IAUtD,oBAAoB,IAAI,IAAI;IAM5B;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;;;;OAMG;IACH,OAAO,CAAC,YAAY;IAuBpB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAK7B;;;;OAIG;IACH,MAAM,IAAI,KAAK,CAAC,YAAY;CAgB/B"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UILoadButton = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const UIButton_1 = require("../UIButton");
|
|
9
|
-
const UILoader_1 = require("../UILoader");
|
|
10
|
-
require("./UILoadButton.scss");
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIIconButton } from '../UIButton/index.js';
|
|
3
|
+
import { UILoader } from '../UILoader/index.js';
|
|
4
|
+
import './UILoadButton.scss';
|
|
11
5
|
/**
|
|
12
6
|
* Component to render load button with spin indicator.
|
|
13
7
|
*/
|
|
14
|
-
class UILoadButton extends
|
|
8
|
+
export class UILoadButton extends React.Component {
|
|
15
9
|
/**
|
|
16
10
|
* Constructor method for load button.
|
|
17
11
|
*
|
|
@@ -98,13 +92,12 @@ class UILoadButton extends react_1.default.Component {
|
|
|
98
92
|
const { children } = this.props;
|
|
99
93
|
const { busy } = this.state;
|
|
100
94
|
let { className = '' } = this.props;
|
|
101
|
-
const content = busy ?
|
|
95
|
+
const content = busy ? React.createElement(UILoader, { className: 'uiLoaderXSmall', labelPosition: 'right' }) : children;
|
|
102
96
|
if (busy) {
|
|
103
97
|
const busyClassName = 'loading-button';
|
|
104
98
|
className = className ? `${className} ${busyClassName}` : busyClassName;
|
|
105
99
|
}
|
|
106
|
-
return (
|
|
100
|
+
return (React.createElement(UIIconButton, { ...this.props, onClick: busy ? undefined : this.props.onClick, className: className }, content));
|
|
107
101
|
}
|
|
108
102
|
}
|
|
109
|
-
exports.UILoadButton = UILoadButton;
|
|
110
103
|
//# sourceMappingURL=UILoadButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UILoadButton.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UILoadButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UILoadButton.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UILoadButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGhD,OAAO,qBAAqB,CAAC;AAQ7B;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,SAA+C;IAEnF;;;;OAIG;IACH,YAAY,KAAwB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;QAPT,mBAAc,GAAuB,SAAS,CAAC;QAQnD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,kBAAkB,CAAC,SAA4B;QAC3C,IAAI,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YACrC,OAAO;QACX,CAAC;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,KAAK,EAAE,CAAC;YACR,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;IAED,oBAAoB;QAChB,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC7C,CAAC;IACL,CAAC;IAED;;OAEG;IAC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C,KAAK,CAAC;QAChC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAC5B,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEpC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,oBAAC,QAAQ,IAAC,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,GAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;QACpG,IAAI,IAAI,EAAE,CAAC;YACP,MAAM,aAAa,GAAG,gBAAgB,CAAC;YACvC,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,aAAa,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC;QAC5E,CAAC;QACD,OAAO,CACH,oBAAC,YAAY,OAAK,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,IAC7F,OAAO,CACG,CAClB,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type { UITranslationProps, TranslationSuggest, TranslationEntry } from './UITranslationButton.types';
|
|
2
|
+
import type { UITranslationProps, TranslationSuggest, TranslationEntry } from './UITranslationButton.types.js';
|
|
3
3
|
import './UITranslationInput.scss';
|
|
4
4
|
export interface UITranslationButtonProps<T extends TranslationEntry> extends UITranslationProps<T> {
|
|
5
5
|
onUpdateValue?: (value: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITranslationButton.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EACR,kBAAkB,EAElB,kBAAkB,EAClB,gBAAgB,EACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"UITranslationButton.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EACR,kBAAkB,EAElB,kBAAkB,EAClB,gBAAgB,EACnB,MAAM,gCAAgC,CAAC;AAIxC,OAAO,2BAA2B,CAAC;AAEnC,MAAM,WAAW,wBAAwB,CAAC,CAAC,SAAS,gBAAgB,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAC/F,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAClC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AA6BD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,gBAAgB,EAAE,OAAO,wBAAwB,CAAC,CAAC,CAAC,KAAG,YA8EpG,CAAC"}
|
|
@@ -1,46 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.UITranslationButton = void 0;
|
|
37
|
-
const react_1 = __importStar(require("react"));
|
|
38
|
-
const UIButton_1 = require("../UIButton");
|
|
39
|
-
const UICallout_1 = require("../UICallout");
|
|
40
|
-
const Icons_1 = require("../Icons");
|
|
41
|
-
const UITranslationButton_types_1 = require("./UITranslationButton.types");
|
|
42
|
-
const UILoadButton_1 = require("./UILoadButton");
|
|
43
|
-
require("./UITranslationInput.scss");
|
|
1
|
+
import React, { useCallback, useState } from 'react';
|
|
2
|
+
import { UIDefaultButton } from '../UIButton/index.js';
|
|
3
|
+
import { UICallout, UICalloutContentPadding } from '../UICallout/index.js';
|
|
4
|
+
import { UiIcons } from '../Icons.js';
|
|
5
|
+
import { SuggestValueType } from './UITranslationButton.types.js';
|
|
6
|
+
import { UILoadButton } from './UILoadButton.js';
|
|
7
|
+
import './UITranslationInput.scss';
|
|
44
8
|
/**
|
|
45
9
|
* Method to resolve button component text strings for passed key.
|
|
46
10
|
* Component has default texts which can be overwritten using property `strings`.
|
|
@@ -72,12 +36,12 @@ const getCalloutClassNames = (invertedCalloutTheme) => {
|
|
|
72
36
|
* @param props Component properties.
|
|
73
37
|
* @returns Component to render translation button with callout.
|
|
74
38
|
*/
|
|
75
|
-
const UITranslationButton = (props) => {
|
|
39
|
+
export const UITranslationButton = (props) => {
|
|
76
40
|
const { id, strings, value, onCreateNewEntry, onUpdateValue, onShowExistingEntry, busy, suggestion, invertedCalloutTheme } = props;
|
|
77
|
-
const [calloutVisible, setCalloutVisible] =
|
|
41
|
+
const [calloutVisible, setCalloutVisible] = useState(false);
|
|
78
42
|
// Callbacks
|
|
79
|
-
const onToggleCallout =
|
|
80
|
-
if (suggestion.suggest?.type ===
|
|
43
|
+
const onToggleCallout = useCallback(() => {
|
|
44
|
+
if (suggestion.suggest?.type === SuggestValueType.Existing) {
|
|
81
45
|
setCalloutVisible(false);
|
|
82
46
|
// Trigger show existing entry callbACK
|
|
83
47
|
onShowExistingEntry?.(suggestion.suggest.entry);
|
|
@@ -86,9 +50,9 @@ const UITranslationButton = (props) => {
|
|
|
86
50
|
setCalloutVisible(!calloutVisible);
|
|
87
51
|
}
|
|
88
52
|
}, [calloutVisible, suggestion]);
|
|
89
|
-
const onAccept =
|
|
53
|
+
const onAccept = useCallback(() => {
|
|
90
54
|
if (suggestion.suggest) {
|
|
91
|
-
if (suggestion.suggest.type ===
|
|
55
|
+
if (suggestion.suggest.type === SuggestValueType.New) {
|
|
92
56
|
onCreateNewEntry?.(suggestion.suggest.entry);
|
|
93
57
|
}
|
|
94
58
|
if (value !== suggestion.suggest.i18n) {
|
|
@@ -97,17 +61,16 @@ const UITranslationButton = (props) => {
|
|
|
97
61
|
}
|
|
98
62
|
setCalloutVisible(false);
|
|
99
63
|
}, [suggestion, onCreateNewEntry, onUpdateValue, value]);
|
|
100
|
-
const onCancel =
|
|
64
|
+
const onCancel = useCallback(() => {
|
|
101
65
|
setCalloutVisible(false);
|
|
102
66
|
}, []);
|
|
103
|
-
return (
|
|
104
|
-
|
|
105
|
-
calloutVisible && (
|
|
106
|
-
|
|
67
|
+
return (React.createElement("div", { className: "ui-translatable__button" },
|
|
68
|
+
React.createElement(UILoadButton, { id: id, disabled: props.disabled ?? false, onClick: onToggleCallout, iconProps: { iconName: suggestion.suggest?.icon ?? UiIcons.World }, title: suggestion.tooltip, busy: busy?.busy, useMinWaitingTime: busy?.useMinWaitingTime }),
|
|
69
|
+
calloutVisible && (React.createElement(UICallout, { target: `#${id}`, gapSpace: 5, directionalHint: 5, calloutWidth: 250, calloutMinWidth: 250, beakWidth: 8, isBeakVisible: false, setInitialFocus: true, className: getCalloutClassNames(invertedCalloutTheme), onDismiss: onCancel, contentPadding: UICalloutContentPadding.Standard },
|
|
70
|
+
React.createElement("div", { className: "ui-translatable__message" },
|
|
107
71
|
suggestion.message,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
72
|
+
React.createElement("div", { className: "ui-translatable__actions" },
|
|
73
|
+
React.createElement(UIDefaultButton, { id: `${id}-button-action-confirm`, primary: true, onClick: onAccept }, getStringText('acceptButtonLabel', strings)),
|
|
74
|
+
React.createElement(UIDefaultButton, { id: `${id}-button-action-cancel`, onClick: onCancel }, getStringText('cancelButtonLabel', strings))))))));
|
|
111
75
|
};
|
|
112
|
-
exports.UITranslationButton = UITranslationButton;
|
|
113
76
|
//# sourceMappingURL=UITranslationButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITranslationButton.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UITranslationButton.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAOtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAA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,CAAC,EACrD,SAAS,EAAE,QAAQ,EACnB,cAAc,EAAE,uBAAuB,CAAC,QAAQ;YAChD,6BAAK,SAAS,EAAC,0BAA0B;gBACpC,UAAU,CAAC,OAAO;gBACnB,6BAAK,SAAS,EAAC,0BAA0B;oBACrC,oBAAC,eAAe,IAAC,EAAE,EAAE,GAAG,EAAE,wBAAwB,EAAE,OAAO,QAAC,OAAO,EAAE,QAAQ,IACxE,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAC9B;oBAClB,oBAAC,eAAe,IAAC,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,OAAO,EAAE,QAAQ,IAC/D,aAAa,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAC9B,CAChB,CACJ,CACE,CACf,CACC,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITranslationButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UITranslationButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,uBAAuB;IACpC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,yBAAyB,EAAE,MAAM,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,2BAA2B,EAAE,MAAM,CAAC;IACpC,8BAA8B,EAAE,MAAM,CAAC;IACvC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,2BAA2B,EAAE,MAAM,CAAC;CACvC;AAED,oBAAY,uBAAuB;IAC/B,S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AE,gBAAgB,CAAC;IACxB,IAAI,EAAE,gBAAgB,CAAC,GAAG,CAAC;CAC9B;AAED,MAAM,WAAW,+BAA+B,CAAC,CAAC,SAAS,gBAAgB,CAAE,SAAQ,2BAA2B;IAC5G,KAAK,EAAE,CAAC,CAAC;IACT,IAAI,EAAE,gBAAgB,CAAC,QAAQ,GAAG,gBAAgB,CAAC,MAAM,CAAC;CAC7D;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,gBAAgB;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,OAAO,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,CAAC;CACxC"}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SuggestValueType = exports.TranslationTextPattern = exports.TranslationKeyGenerator = void 0;
|
|
4
|
-
var TranslationKeyGenerator;
|
|
1
|
+
export var TranslationKeyGenerator;
|
|
5
2
|
(function (TranslationKeyGenerator) {
|
|
6
3
|
TranslationKeyGenerator["CamelCase"] = "CamelCase";
|
|
7
4
|
TranslationKeyGenerator["PascalCase"] = "PascalCase";
|
|
8
|
-
})(TranslationKeyGenerator || (
|
|
9
|
-
var TranslationTextPattern;
|
|
5
|
+
})(TranslationKeyGenerator || (TranslationKeyGenerator = {}));
|
|
6
|
+
export var TranslationTextPattern;
|
|
10
7
|
(function (TranslationTextPattern) {
|
|
11
8
|
// Pattern `{{}}`
|
|
12
9
|
TranslationTextPattern["DoubleBracketReplace"] = "DoubleBracketReplace";
|
|
13
10
|
// Pattern `{key>}`
|
|
14
11
|
TranslationTextPattern["SingleBracketBinding"] = "SingleBracketBinding";
|
|
15
|
-
})(TranslationTextPattern || (
|
|
16
|
-
var SuggestValueType;
|
|
12
|
+
})(TranslationTextPattern || (TranslationTextPattern = {}));
|
|
13
|
+
export var SuggestValueType;
|
|
17
14
|
(function (SuggestValueType) {
|
|
18
15
|
SuggestValueType["Existing"] = "Existing";
|
|
19
16
|
SuggestValueType["Update"] = "Update";
|
|
20
17
|
SuggestValueType["New"] = "New";
|
|
21
|
-
})(SuggestValueType || (
|
|
18
|
+
})(SuggestValueType || (SuggestValueType = {}));
|
|
22
19
|
//# sourceMappingURL=UITranslationButton.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITranslationButton.types.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UITranslationButton.types.js","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationButton.types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kDAAuB,CAAA;IACvB,oDAAyB,CAAA;AAC7B,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED,MAAM,CAAN,IAAY,sBAKX;AALD,WAAY,sBAAsB;IAC9B,iBAAiB;IACjB,uEAA6C,CAAA;IAC7C,mBAAmB;IACnB,uEAA6C,CAAA;AACjD,CAAC,EALW,sBAAsB,KAAtB,sBAAsB,QAKjC;AAiCD,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IACxB,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,+BAAW,CAAA;AACf,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type { ITextFieldProps } from '../UIInput';
|
|
3
|
-
import type { UITranslationProps, I18nBundle, TranslationTextPattern, TranslationEntry } from './UITranslationButton.types';
|
|
4
|
-
import { TranslationKeyGenerator } from './UITranslationButton.types';
|
|
2
|
+
import type { ITextFieldProps } from '../UIInput/index.js';
|
|
3
|
+
import type { UITranslationProps, I18nBundle, TranslationTextPattern, TranslationEntry } from './UITranslationButton.types.js';
|
|
4
|
+
import { TranslationKeyGenerator } from './UITranslationButton.types.js';
|
|
5
5
|
export interface UITranslationInputProps<T extends TranslationEntry> extends ITextFieldProps, UITranslationProps<T> {
|
|
6
6
|
id: string;
|
|
7
7
|
entries: I18nBundle<T>;
|
|
@@ -26,7 +26,7 @@ export interface UITranslationInputProps<T extends TranslationEntry> extends ITe
|
|
|
26
26
|
export declare const UITranslationInput: {
|
|
27
27
|
<T extends TranslationEntry = TranslationEntry>(props: UITranslationInputProps<T>): ReactElement;
|
|
28
28
|
defaultProps: {
|
|
29
|
-
strings: import("./UITranslationButton.types").TranslationInputStrings;
|
|
29
|
+
strings: import("./UITranslationButton.types.js").TranslationInputStrings;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
//# sourceMappingURL=UITranslationInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UITranslationInput.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"UITranslationInput.d.ts","sourceRoot":"","sources":["../../../src/components/UITranslationInput/UITranslationInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAoB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG7E,OAAO,KAAK,EACR,kBAAkB,EAGlB,UAAU,EACV,sBAAsB,EACtB,gBAAgB,EACnB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,uBAAuB,EAAoB,MAAM,gCAAgC,CAAC;AAW3F,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,gBAAgB,CAAE,SAAQ,eAAe,EAAE,kBAAkB,CAAC,CAAC,CAAC;IAC/G,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAGvB,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAE3C,UAAU,EAAE,MAAM,CAAC;IAEnB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAE/B,cAAc,EAAE,sBAAsB,CAAC;IAEvC,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAC1C;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAqHD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;KAAI,CAAC,SAAS,gBAAgB,4BAClD,uBAAuB,CAAC,CAAC,CAAC,GAClC,YAAY;;;;CAiGd,CAAC"}
|