@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,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
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("./UIDialog"), exports);
|
|
1
|
+
export * from './UIDialog.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UIDialog/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UIDialog/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IDropdownProps, ICalloutContentStyleProps, ICalloutContentStyles } from '@fluentui/react';
|
|
3
|
-
import { DropdownMenuItemType
|
|
4
|
-
import type { UIMessagesExtendedProps } from '../../helper/ValidationMessage';
|
|
2
|
+
import type { IDropdownProps, ICalloutContentStyleProps, ICalloutContentStyles, IDropdownOption } from '@fluentui/react';
|
|
3
|
+
import { DropdownMenuItemType } from '@fluentui/react';
|
|
4
|
+
import type { UIMessagesExtendedProps } from '../../helper/ValidationMessage/index.js';
|
|
5
5
|
import './UIDropdown.scss';
|
|
6
|
-
export { IDropdownOption as UIDropdownOption };
|
|
6
|
+
export type { IDropdownOption as UIDropdownOption } from '@fluentui/react';
|
|
7
7
|
export { DropdownMenuItemType as UIDropdownMenuItemType };
|
|
8
8
|
export interface UIDropdownProps extends IDropdownProps, UIMessagesExtendedProps {
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/UIDropdown/UIDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACR,cAAc,EAEd,yBAAyB,EACzB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"UIDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/UIDropdown/UIDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACR,cAAc,EAEd,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAY,oBAAoB,EAAkB,MAAM,iBAAiB,CAAC;AAGjF,OAAO,KAAK,EAAE,uBAAuB,EAA8B,MAAM,yCAAyC,CAAC;AAOnH,OAAO,mBAAmB,CAAC;AAE3B,YAAY,EAAE,eAAe,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AA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;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAgB9B;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,CAAC,cAAc,CAQ7B;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ,CAAC,aAAa,CAa5B;IAEF;;;;;;OAMG;IACH,OAAO,CAAC,QAAQ,CAAC,YAAY,CAQ3B;IAEF;;;;;;;;;OASG;IACH,gCAAgC,CAAC,iBAAiB,EAAE,yBAAyB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAU9G;;;;;OAKG;IACH,OAAO,CAAC,aAAa;IAuBrB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAiB7B;;OAEG;IACH,MAAM,IAAI,GAAG,CAAC,OAAO;CA2DxB"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const ValidationMessage_1 = require("../../helper/ValidationMessage");
|
|
12
|
-
const UILabel_1 = require("../UILabel");
|
|
13
|
-
const utils_1 = require("./utils");
|
|
14
|
-
const UICallout_1 = require("../UICallout");
|
|
15
|
-
const types_1 = require("../types");
|
|
16
|
-
require("./UIDropdown.scss");
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown, DropdownMenuItemType, ResponsiveMode } from '@fluentui/react';
|
|
3
|
+
import { UIIcon } from '../UIIcon/index.js';
|
|
4
|
+
import { getMessageInfo, MESSAGE_TYPES_CLASSNAME_MAP } from '../../helper/ValidationMessage/index.js';
|
|
5
|
+
import { labelGlobalStyle } from '../UILabel/index.js';
|
|
6
|
+
import { isDropdownEmpty, getCalloutCollisionTransformationPropsForDropdown } from './utils.js';
|
|
7
|
+
import { CalloutCollisionTransform } from '../UICallout/index.js';
|
|
8
|
+
import { REQUIRED_LABEL_INDICATOR } from '../types.js';
|
|
9
|
+
import './UIDropdown.scss';
|
|
10
|
+
export { DropdownMenuItemType as UIDropdownMenuItemType };
|
|
17
11
|
const ERROR_BORDER_COLOR = 'var(--vscode-inputValidation-errorBorder)';
|
|
18
12
|
/**
|
|
19
13
|
* UIDropdown component
|
|
@@ -23,7 +17,7 @@ const ERROR_BORDER_COLOR = 'var(--vscode-inputValidation-errorBorder)';
|
|
|
23
17
|
* @class UIDropdown
|
|
24
18
|
* @extends {React.Component<UIDropdownProps, UIDropdownState>}
|
|
25
19
|
*/
|
|
26
|
-
class UIDropdown extends
|
|
20
|
+
export class UIDropdown extends React.Component {
|
|
27
21
|
/**
|
|
28
22
|
* Initializes component properties.
|
|
29
23
|
*
|
|
@@ -31,11 +25,11 @@ class UIDropdown extends react_1.default.Component {
|
|
|
31
25
|
*/
|
|
32
26
|
constructor(props) {
|
|
33
27
|
super(props);
|
|
34
|
-
this.dropdownDomRef =
|
|
35
|
-
this.menuDomRef =
|
|
36
|
-
this.calloutCollisionTransform = new
|
|
28
|
+
this.dropdownDomRef = React.createRef();
|
|
29
|
+
this.menuDomRef = React.createRef();
|
|
30
|
+
this.calloutCollisionTransform = new CalloutCollisionTransform(this.dropdownDomRef, this.menuDomRef);
|
|
37
31
|
this.onRenderCaretDown = () => {
|
|
38
|
-
return
|
|
32
|
+
return React.createElement(UIIcon, { iconName: "ArrowDown", style: { height: '100%' } });
|
|
39
33
|
};
|
|
40
34
|
this.onRenderTitle = (items) => {
|
|
41
35
|
if (this.props.multiSelect && this.props.onHandleRenderTitle) {
|
|
@@ -45,10 +39,10 @@ class UIDropdown extends react_1.default.Component {
|
|
|
45
39
|
const { multiSelectDelimiter = ', ' } = this.props;
|
|
46
40
|
if (items) {
|
|
47
41
|
const title = items.map((i) => i.text).join(multiSelectDelimiter);
|
|
48
|
-
return
|
|
42
|
+
return React.createElement(React.Fragment, null, title);
|
|
49
43
|
}
|
|
50
44
|
else {
|
|
51
|
-
return
|
|
45
|
+
return React.createElement(React.Fragment, null, this.props.title);
|
|
52
46
|
}
|
|
53
47
|
}
|
|
54
48
|
};
|
|
@@ -86,9 +80,9 @@ class UIDropdown extends react_1.default.Component {
|
|
|
86
80
|
* @returns {JSX.Element | null} Returns dropdown option element.
|
|
87
81
|
*/
|
|
88
82
|
this._onRenderOption = (props, defaultRender) => {
|
|
89
|
-
return (
|
|
83
|
+
return (React.createElement(React.Fragment, null,
|
|
90
84
|
defaultRender?.(props),
|
|
91
|
-
props?.itemType !==
|
|
85
|
+
props?.itemType !== DropdownMenuItemType.Header && (React.createElement("div", { onMouseEnter: this.stopEventPropagation.bind(this), onMouseLeave: this.stopEventPropagation.bind(this), onMouseMove: this.stopEventPropagation.bind(this), className: "ts-dropdown-item-blocker" }))));
|
|
92
86
|
};
|
|
93
87
|
/**
|
|
94
88
|
* Render dropdown menu option.
|
|
@@ -167,7 +161,7 @@ class UIDropdown extends react_1.default.Component {
|
|
|
167
161
|
*/
|
|
168
162
|
getClassNames(messageInfo) {
|
|
169
163
|
const { className, readOnly, disabled } = this.props;
|
|
170
|
-
const errorSuffix = messageInfo.message ?
|
|
164
|
+
const errorSuffix = messageInfo.message ? MESSAGE_TYPES_CLASSNAME_MAP.get(messageInfo.type) : undefined;
|
|
171
165
|
let classNames = `ts-SelectBox${messageInfo.message ? ' ts-SelectBox--' + errorSuffix : ''}`;
|
|
172
166
|
// Readonly
|
|
173
167
|
if (readOnly && !disabled) {
|
|
@@ -182,7 +176,7 @@ class UIDropdown extends react_1.default.Component {
|
|
|
182
176
|
classNames += ` ${className}`;
|
|
183
177
|
}
|
|
184
178
|
// Empty value
|
|
185
|
-
if (
|
|
179
|
+
if (isDropdownEmpty(this.props)) {
|
|
186
180
|
classNames += ' ts-SelectBox--empty';
|
|
187
181
|
}
|
|
188
182
|
return classNames;
|
|
@@ -213,19 +207,19 @@ class UIDropdown extends react_1.default.Component {
|
|
|
213
207
|
* @returns {JSX.Element}
|
|
214
208
|
*/
|
|
215
209
|
render() {
|
|
216
|
-
const messageInfo =
|
|
210
|
+
const messageInfo = getMessageInfo(this.props);
|
|
217
211
|
const additionalProps = this.getAccessibilityProps();
|
|
218
212
|
const dropdownStyles = () => ({
|
|
219
213
|
...{
|
|
220
214
|
label: {
|
|
221
|
-
...
|
|
215
|
+
...labelGlobalStyle,
|
|
222
216
|
...(this.props.disabled && {
|
|
223
217
|
opacity: '0.4'
|
|
224
218
|
}),
|
|
225
219
|
...(this.props.required && {
|
|
226
220
|
selectors: {
|
|
227
221
|
'::after': {
|
|
228
|
-
content:
|
|
222
|
+
content: REQUIRED_LABEL_INDICATOR,
|
|
229
223
|
color: ERROR_BORDER_COLOR,
|
|
230
224
|
paddingRight: 12
|
|
231
225
|
}
|
|
@@ -238,9 +232,9 @@ class UIDropdown extends react_1.default.Component {
|
|
|
238
232
|
}
|
|
239
233
|
}
|
|
240
234
|
});
|
|
241
|
-
return (
|
|
235
|
+
return (React.createElement(Dropdown, { ref: this.dropdownDomRef, onRenderCaretDown: this.onRenderCaretDown, onClick: this.onClick, onChange: this.onChange, onRenderTitle: this.onRenderTitle,
|
|
242
236
|
// Use default responsiveMode as xxxLarge, which does not enter mobile mode.
|
|
243
|
-
responsiveMode:
|
|
237
|
+
responsiveMode: ResponsiveMode.xxxLarge, disabled: this.props.readOnly, ...additionalProps, ...this.props, calloutProps: {
|
|
244
238
|
calloutMaxHeight: 200,
|
|
245
239
|
styles: this.props.useDropdownAsMenuMinWidth ? this.getCalloutStylesForUseAsMinWidth : undefined,
|
|
246
240
|
className: 'ts-Callout ts-Callout-Dropdown',
|
|
@@ -248,9 +242,8 @@ class UIDropdown extends react_1.default.Component {
|
|
|
248
242
|
ref: this.menuDomRef
|
|
249
243
|
},
|
|
250
244
|
...this.props.calloutProps,
|
|
251
|
-
...
|
|
245
|
+
...getCalloutCollisionTransformationPropsForDropdown(this, this.calloutCollisionTransform)
|
|
252
246
|
}, onRenderOption: this.onRenderOption.bind(this), onRenderItem: this.onRenderItem.bind(this), styles: dropdownStyles, className: this.getClassNames(messageInfo), errorMessage: messageInfo.message }));
|
|
253
247
|
}
|
|
254
248
|
}
|
|
255
|
-
exports.UIDropdown = UIDropdown;
|
|
256
249
|
//# sourceMappingURL=UIDropdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIDropdown.js","sourceRoot":"","sources":["../../../src/components/UIDropdown/UIDropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UIDropdown.js","sourceRoot":"","sources":["../../../src/components/UIDropdown/UIDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,iDAAiD,EAAE,MAAM,YAAY,CAAC;AAChG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,mBAAmB,CAAC;AAG3B,OAAO,EAAE,oBAAoB,IAAI,sBAAsB,EAAE,CAAC;AAiC1D,MAAM,kBAAkB,GAAG,2CAA2C,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,SAA2C;IAK7E;;;;OAIG;IACH,YAAmB,KAAsB;QACrC,KAAK,CAAC,KAAK,CAAC,CAAC;QAVA,mBAAc,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAC;QACnD,eAAU,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAC;QAC/C,8BAAyB,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,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AAE,cAAc,CAAC,QAAQ,EACvC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,KACzB,eAAe,KACf,IAAI,CAAC,KAAK,EACd,YAAY,EAAE;gBACV,gBAAgB,EAAE,GAAG;gBACrB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC,CAAC,SAAS;gBAChG,SAAS,EAAE,gCAAgC;gBAC3C,UAAU,EAAE;oBACR,GAAG,EAAE,IAAI,CAAC,UAAU;iBACvB;gBACD,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY;gBAC1B,GAAG,iDAAiD,CAAC,IAAI,EAAE,IAAI,CAAC,yBAAyB,CAAC;aAC7F,EACD,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,EAC9C,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAC1C,MAAM,EAAE,cAAc,EACtB,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,EAC1C,YAAY,EAAE,WAAW,CAAC,OAAO,GACnC,CACL,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './UIDropdown';
|
|
2
|
-
export * from './utils';
|
|
1
|
+
export * from './UIDropdown.js';
|
|
2
|
+
export * from './utils.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UIDropdown/index.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UIDropdown/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,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("./UIDropdown"), exports);
|
|
18
|
-
__exportStar(require("./utils"), exports);
|
|
1
|
+
export * from './UIDropdown.js';
|
|
2
|
+
export * from './utils.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UIDropdown/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/UIDropdown/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IDropdownProps, IComboBoxProps, ICalloutProps } from '@fluentui/react';
|
|
2
|
-
import type { CalloutCollisionTransform } from '../UICallout';
|
|
3
|
-
import type { UIDropdown } from './UIDropdown';
|
|
4
|
-
import type { UIComboBox } from '../UIComboBox';
|
|
2
|
+
import type { CalloutCollisionTransform } from '../UICallout/index.js';
|
|
3
|
+
import type { UIDropdown } from './UIDropdown.js';
|
|
4
|
+
import type { UIComboBox } from '../UIComboBox/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Method checks if drodpown or combobox is empty or any value is selected.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/UIDropdown/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/UIDropdown/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,cAAc,GAAG,cAAc,CAAC,GAAG,OAAO,CASxF;AAED;;;;;;;;;GASG;AACH,wBAAgB,sCAAsC,CAClD,yBAAyB,EAAE,yBAAyB,EACpD,WAAW,CAAC,EAAE,OAAO,EACrB,OAAO,CAAC,EAAE,OAAO,GAClB,aAAa,GAAG,SAAS,CAW3B;AAyFD;;;;;;;;GAQG;AACH,wBAAgB,iDAAiD,CAC7D,QAAQ,EAAE,UAAU,GAAG,UAAU,EACjC,yBAAyB,EAAE,yBAAyB,GACrD,aAAa,GAAG,SAAS,CAW3B"}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDropdownEmpty = isDropdownEmpty;
|
|
4
|
-
exports.getCalloutCollisionTransformationProps = getCalloutCollisionTransformationProps;
|
|
5
|
-
exports.getCalloutCollisionTransformationPropsForDropdown = getCalloutCollisionTransformationPropsForDropdown;
|
|
6
1
|
/**
|
|
7
2
|
* Method checks if drodpown or combobox is empty or any value is selected.
|
|
8
3
|
*
|
|
9
4
|
* @param {Partial<IDropdownProps | IComboBoxProps>} props Dropdown or combobox props.
|
|
10
5
|
* @returns {boolean} Is dropdown or combobox empty.
|
|
11
6
|
*/
|
|
12
|
-
function isDropdownEmpty(props) {
|
|
7
|
+
export function isDropdownEmpty(props) {
|
|
13
8
|
const { selectedKey } = props;
|
|
14
9
|
if (Array.isArray(selectedKey)) {
|
|
15
10
|
return selectedKey.length === 0;
|
|
@@ -29,7 +24,7 @@ function isDropdownEmpty(props) {
|
|
|
29
24
|
* @param enabled Is transformation enabled.
|
|
30
25
|
* @returns Callout props to enable callout collision transformation.
|
|
31
26
|
*/
|
|
32
|
-
function getCalloutCollisionTransformationProps(calloutCollisionTransform, multiSelect, enabled) {
|
|
27
|
+
export function getCalloutCollisionTransformationProps(calloutCollisionTransform, multiSelect, enabled) {
|
|
33
28
|
if (multiSelect && enabled) {
|
|
34
29
|
return {
|
|
35
30
|
preventDismissOnEvent: calloutCollisionTransform.preventDismissOnEvent,
|
|
@@ -108,7 +103,7 @@ function getPreventDismissOnEvent(dropdown, calloutCollisionTransform) {
|
|
|
108
103
|
* @param calloutCollisionTransform of callout collision transformation.
|
|
109
104
|
* @returns Callout props to enable callout collision transformation.
|
|
110
105
|
*/
|
|
111
|
-
function getCalloutCollisionTransformationPropsForDropdown(dropdown, calloutCollisionTransform) {
|
|
106
|
+
export function getCalloutCollisionTransformationPropsForDropdown(dropdown, calloutCollisionTransform) {
|
|
112
107
|
if (dropdown.props.multiSelect && dropdown.props.calloutCollisionTransformation) {
|
|
113
108
|
return {
|
|
114
109
|
preventDismissOnEvent: getPreventDismissOnEvent(dropdown, calloutCollisionTransform),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/UIDropdown/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/UIDropdown/utils.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,KAA+C;IAC3E,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC9B,IAAI,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;QAC7B,OAAO,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC;IACpC,CAAC;IACD,IAAI,CAAC,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,KAAK,IAAI,KAAK,CAAC,YAAY,EAAE,MAAM,CAAC,EAAE,CAAC;QAC7F,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,CAAC,WAAW,CAAC;AACxB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,sCAAsC,CAClD,yBAAoD,EACpD,WAAqB,EACrB,OAAiB;IAEjB,IAAI,WAAW,IAAI,OAAO,EAAE,CAAC;QACzB,OAAO;YACH,qBAAqB,EAAE,yBAAyB,CAAC,qBAAqB;YACtE,UAAU,EAAE;gBACR,eAAe,EAAE,yBAAyB,CAAC,mBAAmB;gBAC9D,kBAAkB,EAAE,yBAAyB,CAAC,mBAAmB;aACpE;SACJ,CAAC;IACN,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kBAAkB,CACvB,QAAiC,EACjC,yBAAoD;IAEpD,OAAO,GAAG,EAAE;QACR,MAAM,EAAE,UAAU,EAAE,GAChB,sCAAsC,CAClC,yBAAyB,EACzB,QAAQ,CAAC,KAAK,CAAC,WAAW,EAC1B,QAAQ,CAAC,KAAK,CAAC,8BAA8B,CAChD,IAAI,EAAE,CAAC;QACZ,IAAI,QAAQ,CAAC,KAAK,CAAC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AW,EAC1B,QAAQ,CAAC,KAAK,CAAC,8BAA8B,CAChD,IAAI,EAAE,CAAC;YACZ,IAAI,qBAAqB,EAAE,CAAC;gBACxB,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;YACxC,CAAC;QACL,CAAC;QACD,OAAO,cAAc,CAAC;IAC1B,CAAC,CAAC;AACN,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,iDAAiD,CAC7D,QAAiC,EACjC,yBAAoD;IAEpD,IAAI,QAAQ,CAAC,KAAK,CAAC,WAAW,IAAI,QAAQ,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC;QAC9E,OAAO;YACH,qBAAqB,EAAE,wBAAwB,CAAC,QAAQ,EAAE,yBAAyB,CAAC;YACpF,UAAU,EAAE;gBACR,eAAe,EAAE,kBAAkB,CAAC,QAAQ,EAAE,yBAAyB,CAAC;gBACxE,kBAAkB,EAAE,qBAAqB,CAAC,QAAQ,EAAE,yBAAyB,CAAC;aACjF;SACJ,CAAC;IACN,CAAC;IACD,OAAO,SAAS,CAAC;AACrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowActions.d.ts","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAkC,MAAM,
|
|
1
|
+
{"version":3,"file":"RowActions.d.ts","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAkC,MAAM,YAAY,CAAC;AAGvF,MAAM,WAAW,eAAe,CAAC,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAuFrF"}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RowActions = RowActions;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const UIFlexibleTableRowActionButton_1 = require("./UIFlexibleTableRowActionButton");
|
|
9
|
-
const __1 = require("..");
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIFlexibleTableRowActionButton } from './UIFlexibleTableRowActionButton.js';
|
|
3
|
+
import { UiIcons, UIVerticalDivider } from '../index.js';
|
|
10
4
|
/**
|
|
11
5
|
* RowActions component.
|
|
12
6
|
*
|
|
13
7
|
* @param {RowActionsProps<T>} props
|
|
14
8
|
* @returns {React.ReactElement}
|
|
15
9
|
*/
|
|
16
|
-
function RowActions(props) {
|
|
10
|
+
export function RowActions(props) {
|
|
17
11
|
const { rowIndex, tableProps } = props;
|
|
18
12
|
const rows = props.tableProps.rows;
|
|
19
13
|
const rowKey = rows[rowIndex].key;
|
|
@@ -23,12 +17,12 @@ function RowActions(props) {
|
|
|
23
17
|
const isShowReorderButtons = !tableProps.readonly && tableProps.onTableReorder;
|
|
24
18
|
const additionalActions = [];
|
|
25
19
|
const isShowDeleteAction = tableProps.onDeleteRow && !tableProps.readonly;
|
|
26
|
-
const divider =
|
|
20
|
+
const divider = React.createElement(UIVerticalDivider, { className: "flexible-table-content-table-row-item-actions-divider" });
|
|
27
21
|
if (tableProps.onRenderActions) {
|
|
28
22
|
const customActions = tableProps.onRenderActions({ rowIndex, rowKey, cells, readonly: !!tableProps.readonly });
|
|
29
23
|
additionalActions.push(...customActions.map((actionElement, idx) => {
|
|
30
|
-
return (
|
|
31
|
-
|
|
24
|
+
return (React.createElement(React.Fragment, { key: `action-${actionElement.key}` },
|
|
25
|
+
React.createElement("div", { className: "flexible-table-content-table-row-item-actions-item-wrapper" }, actionElement),
|
|
32
26
|
idx < customActions.length - 1 && divider));
|
|
33
27
|
}));
|
|
34
28
|
}
|
|
@@ -38,15 +32,15 @@ function RowActions(props) {
|
|
|
38
32
|
up: undefined,
|
|
39
33
|
down: undefined
|
|
40
34
|
};
|
|
41
|
-
const reorderButtons = isShowReorderButtons && (
|
|
42
|
-
|
|
35
|
+
const reorderButtons = isShowReorderButtons && (React.createElement("div", { className: "flexible-table-content-table-row-item-actions-item-wrapper" },
|
|
36
|
+
React.createElement(UIFlexibleTableRowActionButton, { key: "up-action", actionName: "up", disabled: isTableTop || tableProps.isContentLoading || up?.disabled, iconName: UiIcons.ArrowUp, rowNumber: rowIndex, tableId: tableProps.id, onClick: props.onMoveUpClick, onFocus: () => {
|
|
43
37
|
props.onFocusRowAction('up');
|
|
44
38
|
}, title: up?.tooltip }),
|
|
45
|
-
|
|
39
|
+
React.createElement(UIFlexibleTableRowActionButton, { key: "down-action", actionName: "down", disabled: isTableBottom || tableProps.isContentLoading || down?.disabled, iconName: UiIcons.ArrowDown, rowNumber: rowIndex, tableId: tableProps.id, onClick: props.onMoveDownClick, onFocus: () => {
|
|
46
40
|
props.onFocusRowAction('down');
|
|
47
41
|
}, title: down?.tooltip })));
|
|
48
|
-
const deleteRowAction = isShowDeleteAction && (
|
|
49
|
-
return (
|
|
42
|
+
const deleteRowAction = isShowDeleteAction && (React.createElement("div", { className: "flexible-table-content-table-row-item-actions-item-wrapper" }, getDeleteRowAction(tableProps, { rowIndex, rowKey, cells, readonly: false })));
|
|
43
|
+
return (React.createElement(React.Fragment, null,
|
|
50
44
|
additionalActions,
|
|
51
45
|
additionalActions.length > 0 && (isShowReorderButtons || isShowDeleteAction) && divider,
|
|
52
46
|
reorderButtons,
|
|
@@ -64,7 +58,7 @@ function getDeleteRowAction(props, params) {
|
|
|
64
58
|
const { isDeleteDisabled, tooltip } = props.onRenderDeleteAction
|
|
65
59
|
? props.onRenderDeleteAction(params)
|
|
66
60
|
: { isDeleteDisabled: false, tooltip: undefined };
|
|
67
|
-
return (
|
|
61
|
+
return (React.createElement(UIFlexibleTableRowActionButton, { key: "delete-action", actionName: "delete", iconName: UiIcons.TrashCan, disabled: !!isDeleteDisabled || props.isContentLoading, rowNumber: params.rowIndex, onClick: () => {
|
|
68
62
|
if (props.onDeleteRow) {
|
|
69
63
|
props.onDeleteRow(params);
|
|
70
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowActions.js","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowActions.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RowActions.js","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAUzD;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAI,KAAmC;IAC7D,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;IACnC,MAAM,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC;IAClC,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;IACnC,MAAM,UAAU,GAAG,QAAQ,IAAI,CAAC,CAAC;IACjC,MAAM,aAAa,GAAG,QAAQ,IAAI,IAAI,CAAC,MA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c;QACd,oBAAoB,IAAI,kBAAkB,IAAI,OAAO;QACrD,eAAe,CACH,CACpB,CAAC;AACN,CAAC;AAED;;;;;;GAMG;AACH,SAAS,kBAAkB,CAAI,KAA8B,EAAE,MAAyC;IACpG,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC,oBAAoB;QAC5D,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,MAAM,CAAC;QACpC,CAAC,CAAC,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IACtD,OAAO,CACH,oBAAC,8BAA8B,IAC3B,GAAG,EAAC,eAAe,EACnB,UAAU,EAAC,QAAQ,EACnB,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,QAAQ,EAAE,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,gBAAgB,EACtD,SAAS,EAAE,MAAM,CAAC,QAAQ,EAC1B,OAAO,EAAE,GAAS,EAAE;YAChB,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;gBACpB,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC9B,CAAC;QACL,CAAC,EACD,OAAO,EAAE,KAAK,CAAC,EAAE,EACjB,KAAK,EAAE,OAAO,GAChB,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { UIFlexibleTableProps, UIFlexibleTableRowType } from './types';
|
|
2
|
+
import type { UIFlexibleTableProps, UIFlexibleTableRowType } from './types.js';
|
|
3
3
|
interface RowDataCellsProps<T> {
|
|
4
4
|
tableProps: UIFlexibleTableProps<T>;
|
|
5
5
|
row: UIFlexibleTableRowType<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowData.d.ts","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowData.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"RowData.d.ts","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowData.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAG/E,UAAU,iBAAiB,CAAC,CAAC;IACzB,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC,CAAC;IACpC,GAAG,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CAC1B;AA+ED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CA4C/E"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RowDataCells = RowDataCells;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const types_1 = require("./types");
|
|
9
|
-
const utils_1 = require("./utils");
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIFlexibleTableLayout } from './types.js';
|
|
3
|
+
import { composeClassNames } from './utils.js';
|
|
10
4
|
/**
|
|
11
5
|
* Get cell title element.
|
|
12
6
|
*
|
|
@@ -17,13 +11,13 @@ const utils_1 = require("./utils");
|
|
|
17
11
|
* @returns {React.ReactNode}
|
|
18
12
|
*/
|
|
19
13
|
function getCellTitleElement(tableProps, title, inRowLayout, tooltip) {
|
|
20
|
-
const wrappingLayout = tableProps.layout ===
|
|
14
|
+
const wrappingLayout = tableProps.layout === UIFlexibleTableLayout.Wrapping;
|
|
21
15
|
const isFlexContent = wrappingLayout || !inRowLayout || tableProps.showColumnTitlesInCells;
|
|
22
16
|
if (tableProps.showColumnTitles && isFlexContent) {
|
|
23
|
-
return (
|
|
17
|
+
return (React.createElement("div", { className: "flexible-table-content-table-row-item-title", title: tooltip }, title));
|
|
24
18
|
}
|
|
25
19
|
else {
|
|
26
|
-
return
|
|
20
|
+
return React.createElement(React.Fragment, null);
|
|
27
21
|
}
|
|
28
22
|
}
|
|
29
23
|
/**
|
|
@@ -51,15 +45,15 @@ function getRowDataCells(props) {
|
|
|
51
45
|
value: row.cells[colKey],
|
|
52
46
|
isInRowLayout
|
|
53
47
|
});
|
|
54
|
-
if (tableProps.layout ===
|
|
55
|
-
const classNameStr =
|
|
48
|
+
if (tableProps.layout === UIFlexibleTableLayout.InlineFlex || content) {
|
|
49
|
+
const classNameStr = composeClassNames('flexible-table-content-table-row-item-data-cells-wrapper', [
|
|
56
50
|
cellClassNames,
|
|
57
51
|
column.className
|
|
58
52
|
]);
|
|
59
53
|
const cellId = `cell-${colKey}`;
|
|
60
|
-
result.push(
|
|
54
|
+
result.push(React.createElement("div", { key: isSpan ? `cell-unknown` : `cell-${colKey}-${i}`, className: classNameStr, id: cellId },
|
|
61
55
|
getCellTitleElement(tableProps, title || column.title, isInRowLayout, tooltip || column.tooltip),
|
|
62
|
-
|
|
56
|
+
React.createElement("div", { className: "flexible-table-content-table-row-item-data-cells-value" }, content)));
|
|
63
57
|
}
|
|
64
58
|
if (isSpan) {
|
|
65
59
|
break;
|
|
@@ -73,7 +67,7 @@ function getRowDataCells(props) {
|
|
|
73
67
|
* @param {RowDataCellsProps<T>} props
|
|
74
68
|
* @returns {React.ReactElement}
|
|
75
69
|
*/
|
|
76
|
-
function RowDataCells(props) {
|
|
70
|
+
export function RowDataCells(props) {
|
|
77
71
|
const { isInRowLayout, row, rowIndex, tableProps } = props;
|
|
78
72
|
const rowCells = [];
|
|
79
73
|
const rowCellsData = [];
|
|
@@ -88,8 +82,8 @@ function RowDataCells(props) {
|
|
|
88
82
|
}
|
|
89
83
|
if (tableProps.showIndexColumn) {
|
|
90
84
|
// Add index cell
|
|
91
|
-
rowCells.push(
|
|
92
|
-
|
|
85
|
+
rowCells.push(React.createElement("div", { key: `cell-index-${rowIndex}`, className: "flexible-table-content-table-row-item-index" },
|
|
86
|
+
React.createElement("span", { className: "flexible-table-content-table-row-item-index-value" }, row.key)));
|
|
93
87
|
}
|
|
94
88
|
if (!alternativeContent) {
|
|
95
89
|
rowCellsData.push(...getRowDataCells(props));
|
|
@@ -99,13 +93,13 @@ function RowDataCells(props) {
|
|
|
99
93
|
}
|
|
100
94
|
// Add data cells
|
|
101
95
|
const classNames = ['flexible-table-content-table-row-item-data-cells'];
|
|
102
|
-
if (tableProps.layout ===
|
|
96
|
+
if (tableProps.layout === UIFlexibleTableLayout.Wrapping) {
|
|
103
97
|
classNames.push('dynamic');
|
|
104
98
|
}
|
|
105
99
|
else {
|
|
106
100
|
classNames.push(isInRowLayout ? 'in-row' : 'in-column');
|
|
107
101
|
}
|
|
108
|
-
rowCells.push(
|
|
109
|
-
return
|
|
102
|
+
rowCells.push(React.createElement("div", { key: `flexible-table-content-table-row-item-${rowIndex}`, className: classNames.join(' ') }, rowCellsData));
|
|
103
|
+
return React.createElement("div", { className: "flexible-table-content-table-row-item-wrapper" }, rowCells);
|
|
110
104
|
}
|
|
111
105
|
//# sourceMappingURL=RowData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowData.js","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RowData.js","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/RowData.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAS/C;;;;;;;;GAQG;AACH,SAA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1
|
+
{"version":3,"file":"UIFlexibleTable.d.ts","sourceRoot":"","sources":["../../../src/components/UIFlexibleTable/UIFlexibleTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,OAAO,KAAK,EAAgC,oBAAoB,EAA0B,MAAM,YAAY,CAAC;AAE7G,OAAO,wBAAwB,CAAC;AAiBhC;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,CAsQ/F"}
|