@etsoo/materialui 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/AddresSelector.d.ts +1 -1
- package/lib/cjs/AddresSelector.js +4 -3
- package/lib/cjs/AuditDisplay.d.ts +1 -1
- package/lib/cjs/AuditDisplay.js +8 -5
- package/lib/cjs/AutocompleteExtendedProps.d.ts +1 -1
- package/lib/cjs/BackButton.d.ts +1 -1
- package/lib/cjs/BackButton.js +4 -3
- package/lib/cjs/BridgeCloseButton.d.ts +2 -1
- package/lib/cjs/BridgeCloseButton.js +3 -2
- package/lib/cjs/ButtonLink.d.ts +1 -1
- package/lib/cjs/ButtonLink.js +7 -4
- package/lib/cjs/ButtonPopover.d.ts +1 -1
- package/lib/cjs/ButtonPopover.js +2 -2
- package/lib/cjs/ComboBox.js +6 -4
- package/lib/cjs/ComboBoxMultiple.js +4 -3
- package/lib/cjs/ComboBoxPro.d.ts +1 -1
- package/lib/cjs/ComboBoxPro.js +2 -2
- package/lib/cjs/CountdownButton.d.ts +1 -1
- package/lib/cjs/CountdownButton.js +4 -3
- package/lib/cjs/DataGridEx.js +15 -11
- package/lib/cjs/DataGridRenderers.js +2 -2
- package/lib/cjs/DataSteps.d.ts +1 -1
- package/lib/cjs/DataSteps.js +9 -6
- package/lib/cjs/DataTable.d.ts +1 -1
- package/lib/cjs/DataTable.js +2 -2
- package/lib/cjs/DialogButton.d.ts +2 -1
- package/lib/cjs/DialogButton.js +9 -3
- package/lib/cjs/DnDList.d.ts +2 -2
- package/lib/cjs/DnDList.js +4 -3
- package/lib/cjs/DraggablePaperComponent.d.ts +1 -1
- package/lib/cjs/DraggablePaperComponent.js +2 -2
- package/lib/cjs/EmailInput.d.ts +1 -1
- package/lib/cjs/EmailInput.js +7 -6
- package/lib/cjs/ErrorAlert.d.ts +1 -1
- package/lib/cjs/ErrorAlert.js +5 -2
- package/lib/cjs/FabBox.d.ts +2 -1
- package/lib/cjs/FabBox.js +6 -4
- package/lib/cjs/FieldSetEx.d.ts +1 -1
- package/lib/cjs/FieldSetEx.js +5 -3
- package/lib/cjs/FileUploadButton.d.ts +1 -1
- package/lib/cjs/FileUploadButton.js +5 -2
- package/lib/cjs/FlexBox.d.ts +1 -1
- package/lib/cjs/FlexBox.js +7 -4
- package/lib/cjs/HiSelector.d.ts +2 -1
- package/lib/cjs/HiSelector.js +3 -2
- package/lib/cjs/HiSelectorTL.d.ts +2 -1
- package/lib/cjs/HiSelectorTL.js +3 -2
- package/lib/cjs/IconButtonLink.d.ts +1 -1
- package/lib/cjs/IconButtonLink.js +5 -2
- package/lib/cjs/InputField.d.ts +4 -4
- package/lib/cjs/InputField.js +2 -2
- package/lib/cjs/InputTipField.js +8 -5
- package/lib/cjs/IntInputField.d.ts +1 -1
- package/lib/cjs/IntInputField.js +8 -6
- package/lib/cjs/ItemList.js +10 -4
- package/lib/cjs/LineChart.js +2 -2
- package/lib/cjs/ListChooser.d.ts +2 -1
- package/lib/cjs/ListChooser.js +8 -4
- package/lib/cjs/ListItemRightIcon.d.ts +1 -1
- package/lib/cjs/ListItemRightIcon.js +6 -2
- package/lib/cjs/ListMoreDisplay.d.ts +1 -1
- package/lib/cjs/ListMoreDisplay.js +7 -3
- package/lib/cjs/LoadingButton.d.ts +2 -1
- package/lib/cjs/LoadingButton.js +4 -3
- package/lib/cjs/MUGlobal.d.ts +2 -1
- package/lib/cjs/MaskInput.d.ts +1 -1
- package/lib/cjs/MaskInput.js +2 -2
- package/lib/cjs/MenuButton.d.ts +2 -1
- package/lib/cjs/MenuButton.js +5 -3
- package/lib/cjs/MobileListItemRenderer.js +14 -5
- package/lib/cjs/MoreFab.d.ts +2 -1
- package/lib/cjs/MoreFab.js +10 -4
- package/lib/cjs/NotifierMU.js +45 -22
- package/lib/cjs/NotifierPopupProps.d.ts +1 -1
- package/lib/cjs/NumberInputField.js +15 -13
- package/lib/cjs/OptionGroup.d.ts +1 -1
- package/lib/cjs/OptionGroup.js +15 -7
- package/lib/cjs/OptionGroupFlag.d.ts +1 -1
- package/lib/cjs/OptionGroupFlag.js +12 -6
- package/lib/cjs/PercentCircularProgress.d.ts +2 -1
- package/lib/cjs/PercentCircularProgress.js +8 -3
- package/lib/cjs/PercentLinearProgress.d.ts +2 -1
- package/lib/cjs/PercentLinearProgress.js +7 -2
- package/lib/cjs/ProgressCount.js +7 -4
- package/lib/cjs/QuickList.d.ts +3 -1
- package/lib/cjs/QuickList.js +6 -2
- package/lib/cjs/ResponsibleContainer.d.ts +1 -1
- package/lib/cjs/ResponsibleContainer.js +8 -6
- package/lib/cjs/ResponsiveStyleValue.d.ts +1 -1
- package/lib/cjs/ScrollTopFab.js +5 -3
- package/lib/cjs/ScrollerListEx.js +2 -2
- package/lib/cjs/SearchBar.js +9 -5
- package/lib/cjs/SearchField.d.ts +1 -1
- package/lib/cjs/SearchField.js +2 -2
- package/lib/cjs/SelectEx.d.ts +1 -1
- package/lib/cjs/SelectEx.js +18 -9
- package/lib/cjs/ShowDataComparison.js +9 -2
- package/lib/cjs/Switch.d.ts +1 -1
- package/lib/cjs/Switch.js +2 -2
- package/lib/cjs/SwitchAnt.js +5 -4
- package/lib/cjs/SwitchField.d.ts +1 -1
- package/lib/cjs/SwitchField.js +6 -3
- package/lib/cjs/TabBox.d.ts +3 -1
- package/lib/cjs/TabBox.js +5 -3
- package/lib/cjs/TableEx.d.ts +1 -1
- package/lib/cjs/TableEx.js +20 -10
- package/lib/cjs/TagList.d.ts +1 -1
- package/lib/cjs/TagList.js +5 -3
- package/lib/cjs/TagListPro.d.ts +1 -1
- package/lib/cjs/TagListPro.js +5 -3
- package/lib/cjs/TextFieldEx.d.ts +4 -4
- package/lib/cjs/TextFieldEx.js +7 -4
- package/lib/cjs/Tiplist.js +2 -2
- package/lib/cjs/TiplistPro.d.ts +1 -1
- package/lib/cjs/TiplistPro.js +2 -2
- package/lib/cjs/TooltipClick.d.ts +1 -1
- package/lib/cjs/TooltipClick.js +3 -2
- package/lib/cjs/TwoFieldInput.js +4 -3
- package/lib/cjs/UserAvatar.js +5 -2
- package/lib/cjs/UserAvatarEditor.js +8 -3
- package/lib/cjs/ViewContainer.d.ts +5 -4
- package/lib/cjs/ViewContainer.js +4 -3
- package/lib/cjs/custom/CustomFieldUtils.d.ts +1 -1
- package/lib/cjs/custom/CustomFieldUtils.js +5 -4
- package/lib/cjs/custom/CustomFieldViewer.d.ts +3 -2
- package/lib/cjs/custom/CustomFieldViewer.js +7 -3
- package/lib/cjs/custom/CustomFieldWindow.d.ts +2 -2
- package/lib/cjs/custom/CustomFieldWindow.js +3 -2
- package/lib/cjs/custom/FieldAmountLabel.js +3 -2
- package/lib/cjs/custom/FieldCheckbox.js +2 -2
- package/lib/cjs/custom/FieldCombobox.js +2 -2
- package/lib/cjs/custom/FieldDateInput.js +2 -2
- package/lib/cjs/custom/FieldDivider.js +2 -2
- package/lib/cjs/custom/FieldInput.js +2 -2
- package/lib/cjs/custom/FieldJson.js +2 -2
- package/lib/cjs/custom/FieldNumberInput.js +2 -2
- package/lib/cjs/custom/FieldRadio.js +2 -2
- package/lib/cjs/custom/FieldSelect.js +2 -2
- package/lib/cjs/custom/FieldSwitch.js +2 -2
- package/lib/cjs/custom/FieldTexarea.js +2 -2
- package/lib/cjs/pages/CommonPage.d.ts +2 -1
- package/lib/cjs/pages/CommonPage.js +6 -4
- package/lib/cjs/pages/DataGridPage.js +3 -2
- package/lib/cjs/pages/DrawerHeader.d.ts +1 -1
- package/lib/cjs/pages/DrawerHeader.js +2 -2
- package/lib/cjs/pages/EditPage.js +4 -3
- package/lib/cjs/pages/FixedListPage.js +4 -3
- package/lib/cjs/pages/LeftDrawer.js +8 -3
- package/lib/cjs/pages/ListPage.js +3 -2
- package/lib/cjs/pages/TablePage.js +3 -2
- package/lib/cjs/pages/UserMenu.js +3 -2
- package/lib/cjs/pages/ViewPage.js +4 -3
- package/lib/cjs/texts/DateText.d.ts +1 -1
- package/lib/cjs/texts/DateText.js +5 -2
- package/lib/cjs/texts/MoneyText.js +5 -2
- package/lib/cjs/texts/NumberText.d.ts +1 -1
- package/lib/cjs/texts/NumberText.js +5 -2
- package/lib/cjs/useCurrentBreakpoint.d.ts +1 -1
- package/lib/cjs/useCurrentBreakpoint.js +11 -7
- package/lib/mjs/AddresSelector.d.ts +1 -1
- package/lib/mjs/AddresSelector.js +4 -3
- package/lib/mjs/AuditDisplay.d.ts +1 -1
- package/lib/mjs/AuditDisplay.js +4 -1
- package/lib/mjs/AutocompleteExtendedProps.d.ts +1 -1
- package/lib/mjs/BackButton.d.ts +1 -1
- package/lib/mjs/BackButton.js +2 -1
- package/lib/mjs/BridgeCloseButton.d.ts +2 -1
- package/lib/mjs/BridgeCloseButton.js +2 -1
- package/lib/mjs/ButtonLink.d.ts +1 -1
- package/lib/mjs/ButtonLink.js +2 -2
- package/lib/mjs/ButtonPopover.d.ts +1 -1
- package/lib/mjs/ButtonPopover.js +1 -1
- package/lib/mjs/ComboBox.js +4 -2
- package/lib/mjs/ComboBoxMultiple.js +2 -1
- package/lib/mjs/ComboBoxPro.d.ts +1 -1
- package/lib/mjs/ComboBoxPro.js +1 -1
- package/lib/mjs/CountdownButton.d.ts +1 -1
- package/lib/mjs/CountdownButton.js +2 -1
- package/lib/mjs/DataGridEx.js +5 -1
- package/lib/mjs/DataGridRenderers.js +1 -1
- package/lib/mjs/DataSteps.d.ts +1 -1
- package/lib/mjs/DataSteps.js +4 -1
- package/lib/mjs/DataTable.d.ts +1 -1
- package/lib/mjs/DataTable.js +1 -1
- package/lib/mjs/DialogButton.d.ts +2 -1
- package/lib/mjs/DialogButton.js +7 -1
- package/lib/mjs/DnDList.d.ts +2 -2
- package/lib/mjs/DnDList.js +2 -1
- package/lib/mjs/DraggablePaperComponent.d.ts +1 -1
- package/lib/mjs/DraggablePaperComponent.js +1 -1
- package/lib/mjs/EmailInput.d.ts +1 -1
- package/lib/mjs/EmailInput.js +4 -6
- package/lib/mjs/ErrorAlert.d.ts +1 -1
- package/lib/mjs/ErrorAlert.js +1 -1
- package/lib/mjs/FabBox.d.ts +2 -1
- package/lib/mjs/FabBox.js +3 -1
- package/lib/mjs/FieldSetEx.d.ts +1 -1
- package/lib/mjs/FieldSetEx.js +3 -1
- package/lib/mjs/FileUploadButton.d.ts +1 -1
- package/lib/mjs/FileUploadButton.js +1 -1
- package/lib/mjs/FlexBox.d.ts +1 -1
- package/lib/mjs/FlexBox.js +1 -1
- package/lib/mjs/HiSelector.d.ts +2 -1
- package/lib/mjs/HiSelector.js +3 -2
- package/lib/mjs/HiSelectorTL.d.ts +2 -1
- package/lib/mjs/HiSelectorTL.js +3 -2
- package/lib/mjs/IconButtonLink.d.ts +1 -1
- package/lib/mjs/IconButtonLink.js +1 -1
- package/lib/mjs/InputField.d.ts +1 -1
- package/lib/mjs/InputField.js +1 -1
- package/lib/mjs/InputTipField.js +4 -1
- package/lib/mjs/IntInputField.d.ts +1 -1
- package/lib/mjs/IntInputField.js +3 -1
- package/lib/mjs/ItemList.js +7 -1
- package/lib/mjs/LineChart.js +1 -1
- package/lib/mjs/ListChooser.d.ts +2 -1
- package/lib/mjs/ListChooser.js +6 -2
- package/lib/mjs/ListItemRightIcon.d.ts +1 -1
- package/lib/mjs/ListItemRightIcon.js +2 -1
- package/lib/mjs/ListMoreDisplay.d.ts +1 -1
- package/lib/mjs/ListMoreDisplay.js +5 -1
- package/lib/mjs/LoadingButton.d.ts +2 -1
- package/lib/mjs/LoadingButton.js +2 -1
- package/lib/mjs/MUGlobal.d.ts +2 -1
- package/lib/mjs/MaskInput.d.ts +1 -1
- package/lib/mjs/MaskInput.js +1 -1
- package/lib/mjs/MenuButton.d.ts +2 -1
- package/lib/mjs/MenuButton.js +3 -1
- package/lib/mjs/MobileListItemRenderer.js +8 -2
- package/lib/mjs/MoreFab.d.ts +2 -1
- package/lib/mjs/MoreFab.js +7 -1
- package/lib/mjs/NotifierMU.js +32 -9
- package/lib/mjs/NotifierPopupProps.d.ts +1 -1
- package/lib/mjs/NumberInputField.js +15 -13
- package/lib/mjs/OptionGroup.d.ts +1 -1
- package/lib/mjs/OptionGroup.js +9 -1
- package/lib/mjs/OptionGroupFlag.d.ts +1 -1
- package/lib/mjs/OptionGroupFlag.js +7 -1
- package/lib/mjs/PercentCircularProgress.d.ts +2 -1
- package/lib/mjs/PercentCircularProgress.js +3 -1
- package/lib/mjs/PercentLinearProgress.d.ts +2 -1
- package/lib/mjs/PercentLinearProgress.js +3 -1
- package/lib/mjs/ProgressCount.js +4 -1
- package/lib/mjs/QuickList.d.ts +3 -1
- package/lib/mjs/QuickList.js +5 -1
- package/lib/mjs/ResponsibleContainer.d.ts +1 -1
- package/lib/mjs/ResponsibleContainer.js +3 -1
- package/lib/mjs/ResponsiveStyleValue.d.ts +1 -1
- package/lib/mjs/ScrollTopFab.js +3 -1
- package/lib/mjs/ScrollerListEx.js +1 -1
- package/lib/mjs/SearchBar.js +5 -1
- package/lib/mjs/SearchField.d.ts +1 -1
- package/lib/mjs/SearchField.js +1 -1
- package/lib/mjs/SelectEx.d.ts +1 -1
- package/lib/mjs/SelectEx.js +11 -2
- package/lib/mjs/ShowDataComparison.js +5 -1
- package/lib/mjs/Switch.d.ts +1 -1
- package/lib/mjs/Switch.js +1 -1
- package/lib/mjs/SwitchAnt.js +3 -2
- package/lib/mjs/SwitchField.d.ts +1 -1
- package/lib/mjs/SwitchField.js +4 -1
- package/lib/mjs/TabBox.d.ts +3 -1
- package/lib/mjs/TabBox.js +3 -1
- package/lib/mjs/TableEx.d.ts +1 -1
- package/lib/mjs/TableEx.js +11 -1
- package/lib/mjs/TagList.d.ts +1 -1
- package/lib/mjs/TagList.js +3 -1
- package/lib/mjs/TagListPro.d.ts +1 -1
- package/lib/mjs/TagListPro.js +3 -1
- package/lib/mjs/TextFieldEx.d.ts +1 -1
- package/lib/mjs/TextFieldEx.js +6 -3
- package/lib/mjs/Tiplist.js +1 -1
- package/lib/mjs/TiplistPro.d.ts +1 -1
- package/lib/mjs/TiplistPro.js +1 -1
- package/lib/mjs/TooltipClick.d.ts +1 -1
- package/lib/mjs/TooltipClick.js +2 -1
- package/lib/mjs/TwoFieldInput.js +2 -1
- package/lib/mjs/UserAvatar.js +1 -1
- package/lib/mjs/UserAvatarEditor.js +6 -1
- package/lib/mjs/ViewContainer.d.ts +5 -4
- package/lib/mjs/ViewContainer.js +4 -3
- package/lib/mjs/custom/CustomFieldUtils.d.ts +1 -1
- package/lib/mjs/custom/CustomFieldUtils.js +4 -3
- package/lib/mjs/custom/CustomFieldViewer.d.ts +3 -2
- package/lib/mjs/custom/CustomFieldViewer.js +4 -3
- package/lib/mjs/custom/CustomFieldWindow.d.ts +2 -2
- package/lib/mjs/custom/CustomFieldWindow.js +3 -2
- package/lib/mjs/custom/FieldAmountLabel.js +2 -1
- package/lib/mjs/custom/FieldCheckbox.js +1 -1
- package/lib/mjs/custom/FieldCombobox.js +1 -1
- package/lib/mjs/custom/FieldDateInput.js +1 -1
- package/lib/mjs/custom/FieldDivider.js +1 -1
- package/lib/mjs/custom/FieldInput.js +1 -1
- package/lib/mjs/custom/FieldJson.js +1 -1
- package/lib/mjs/custom/FieldNumberInput.js +1 -1
- package/lib/mjs/custom/FieldRadio.js +1 -1
- package/lib/mjs/custom/FieldSelect.js +1 -1
- package/lib/mjs/custom/FieldSwitch.js +1 -1
- package/lib/mjs/custom/FieldTexarea.js +1 -1
- package/lib/mjs/pages/CommonPage.d.ts +2 -1
- package/lib/mjs/pages/CommonPage.js +3 -1
- package/lib/mjs/pages/DataGridPage.js +2 -1
- package/lib/mjs/pages/DrawerHeader.js +1 -1
- package/lib/mjs/pages/EditPage.js +3 -2
- package/lib/mjs/pages/FixedListPage.js +2 -1
- package/lib/mjs/pages/LeftDrawer.js +6 -1
- package/lib/mjs/pages/ListPage.js +2 -1
- package/lib/mjs/pages/TablePage.js +2 -1
- package/lib/mjs/pages/UserMenu.js +2 -1
- package/lib/mjs/pages/ViewPage.js +2 -1
- package/lib/mjs/texts/DateText.d.ts +1 -1
- package/lib/mjs/texts/DateText.js +1 -1
- package/lib/mjs/texts/MoneyText.js +1 -1
- package/lib/mjs/texts/NumberText.d.ts +1 -1
- package/lib/mjs/texts/NumberText.js +1 -1
- package/lib/mjs/useCurrentBreakpoint.d.ts +1 -1
- package/lib/mjs/useCurrentBreakpoint.js +2 -1
- package/package.json +9 -9
- package/src/AddresSelector.tsx +12 -11
- package/src/AuditDisplay.tsx +4 -1
- package/src/AutocompleteExtendedProps.ts +1 -1
- package/src/BackButton.tsx +2 -1
- package/src/BridgeCloseButton.tsx +2 -1
- package/src/ButtonLink.tsx +3 -3
- package/src/ButtonPopover.tsx +1 -1
- package/src/ComboBox.tsx +6 -7
- package/src/ComboBoxMultiple.tsx +4 -6
- package/src/ComboBoxPro.tsx +1 -1
- package/src/CountdownButton.tsx +2 -1
- package/src/CultureDataTable.tsx +1 -1
- package/src/DataGridEx.tsx +5 -8
- package/src/DataGridRenderers.tsx +1 -1
- package/src/DataSteps.tsx +4 -7
- package/src/DataTable.tsx +4 -7
- package/src/DialogButton.tsx +8 -11
- package/src/DnDList.tsx +9 -10
- package/src/DraggablePaperComponent.tsx +1 -1
- package/src/EmailInput.tsx +4 -8
- package/src/ErrorAlert.tsx +1 -1
- package/src/FabBox.tsx +3 -1
- package/src/FieldSetEx.tsx +3 -6
- package/src/FileUploadButton.tsx +1 -1
- package/src/FlexBox.tsx +1 -1
- package/src/HiSelector.tsx +13 -11
- package/src/HiSelectorTL.tsx +16 -17
- package/src/IconButtonLink.tsx +1 -2
- package/src/InputField.tsx +1 -1
- package/src/InputTipField.tsx +4 -1
- package/src/IntInputField.tsx +3 -1
- package/src/ItemList.tsx +7 -9
- package/src/LineChart.tsx +1 -1
- package/src/ListChooser.tsx +8 -10
- package/src/ListItemRightIcon.tsx +2 -1
- package/src/ListMoreDisplay.tsx +5 -8
- package/src/LoadingButton.tsx +3 -5
- package/src/MUGlobal.ts +2 -1
- package/src/MaskInput.tsx +1 -1
- package/src/MenuButton.tsx +3 -1
- package/src/MobileListItemRenderer.tsx +8 -3
- package/src/MoreFab.tsx +9 -11
- package/src/NotifierMU.tsx +34 -34
- package/src/NotifierPopupProps.ts +1 -1
- package/src/NumberInputField.tsx +21 -20
- package/src/OptionGroup.tsx +9 -12
- package/src/OptionGroupFlag.tsx +7 -10
- package/src/PercentCircularProgress.tsx +5 -8
- package/src/PercentLinearProgress.tsx +5 -8
- package/src/ProgressCount.tsx +4 -6
- package/src/QuickList.tsx +8 -10
- package/src/ResponsibleContainer.tsx +4 -1
- package/src/ResponsiveStyleValue.ts +1 -1
- package/src/ScrollTopFab.tsx +3 -1
- package/src/ScrollerListEx.tsx +1 -1
- package/src/SearchBar.tsx +5 -8
- package/src/SearchField.tsx +1 -1
- package/src/SearchOptionGroup.tsx +0 -1
- package/src/SelectEx.tsx +11 -15
- package/src/ShowDataComparison.tsx +5 -7
- package/src/Switch.tsx +3 -1
- package/src/SwitchAnt.tsx +3 -2
- package/src/SwitchField.tsx +4 -7
- package/src/TabBox.tsx +3 -1
- package/src/TableEx.tsx +11 -15
- package/src/TagList.tsx +3 -1
- package/src/TagListPro.tsx +3 -1
- package/src/TextFieldEx.tsx +7 -9
- package/src/Tiplist.tsx +3 -1
- package/src/TiplistPro.tsx +1 -1
- package/src/TooltipClick.tsx +2 -1
- package/src/TwoFieldInput.tsx +2 -1
- package/src/UserAvatar.tsx +1 -1
- package/src/UserAvatarEditor.tsx +6 -8
- package/src/ViewContainer.tsx +16 -14
- package/src/custom/CustomFieldUtils.tsx +6 -6
- package/src/custom/CustomFieldViewer.tsx +7 -6
- package/src/custom/CustomFieldWindow.tsx +5 -4
- package/src/custom/FieldAmountLabel.tsx +2 -1
- package/src/custom/FieldCheckbox.tsx +1 -1
- package/src/custom/FieldCombobox.tsx +1 -1
- package/src/custom/FieldDateInput.tsx +1 -1
- package/src/custom/FieldDivider.tsx +1 -1
- package/src/custom/FieldInput.tsx +1 -1
- package/src/custom/FieldJson.tsx +1 -1
- package/src/custom/FieldNumberInput.tsx +1 -1
- package/src/custom/FieldRadio.tsx +1 -1
- package/src/custom/FieldSelect.tsx +1 -1
- package/src/custom/FieldSwitch.tsx +1 -1
- package/src/custom/FieldTexarea.tsx +1 -1
- package/src/pages/CommonPage.tsx +3 -1
- package/src/pages/DataGridPage.tsx +2 -1
- package/src/pages/DrawerHeader.tsx +1 -1
- package/src/pages/EditPage.tsx +6 -10
- package/src/pages/FixedListPage.tsx +2 -1
- package/src/pages/LeftDrawer.tsx +6 -8
- package/src/pages/ListPage.tsx +2 -1
- package/src/pages/TablePage.tsx +2 -1
- package/src/pages/UserMenu.tsx +2 -1
- package/src/pages/ViewPage.tsx +2 -1
- package/src/texts/DateText.tsx +1 -2
- package/src/texts/MoneyText.tsx +1 -2
- package/src/texts/NumberText.tsx +1 -2
- package/src/useCurrentBreakpoint.ts +2 -1
package/lib/cjs/LineChart.js
CHANGED
|
@@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LineChart = LineChart;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
|
|
10
10
|
/**
|
|
11
11
|
* Line chart
|
|
12
12
|
* @param props Props
|
|
@@ -29,7 +29,7 @@ function LineChart(props) {
|
|
|
29
29
|
setLineType(Line);
|
|
30
30
|
});
|
|
31
31
|
}, []);
|
|
32
|
-
return LineType == null ? ((0, jsx_runtime_1.jsx)(
|
|
32
|
+
return LineType == null ? ((0, jsx_runtime_1.jsx)(LinearProgress_1.default, {})) : ((0, jsx_runtime_1.jsx)(LineType, { options: {
|
|
33
33
|
scales: {
|
|
34
34
|
x: {
|
|
35
35
|
ticks: {
|
package/lib/cjs/ListChooser.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataTypes, DelayedExecutorType, IdDefaultType } from "@etsoo/shared";
|
|
2
|
-
import { ListItemButtonProps, ListProps } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { ListItemButtonProps } from "@mui/material/ListItemButton";
|
|
4
|
+
import { ListProps } from "@mui/material/List";
|
|
4
5
|
type QueryData = {
|
|
5
6
|
title?: string;
|
|
6
7
|
};
|
package/lib/cjs/ListChooser.js
CHANGED
|
@@ -6,10 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ListChooser = ListChooser;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("@etsoo/react");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
|
|
11
10
|
const react_2 = __importDefault(require("react"));
|
|
12
11
|
const FlexBox_1 = require("./FlexBox");
|
|
12
|
+
const ListItemButton_1 = __importDefault(require("@mui/material/ListItemButton"));
|
|
13
|
+
const List_1 = __importDefault(require("@mui/material/List"));
|
|
14
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
15
|
+
const ListItem_1 = __importDefault(require("@mui/material/ListItem"));
|
|
16
|
+
const ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
|
|
13
17
|
/**
|
|
14
18
|
* List chooser
|
|
15
19
|
* @param props Props
|
|
@@ -35,7 +39,7 @@ function ListChooser(props) {
|
|
|
35
39
|
}
|
|
36
40
|
});
|
|
37
41
|
// Destruct
|
|
38
|
-
const { conditionField = "title", conditionRenderer = (rq, delayed) => ((0, jsx_runtime_1.jsx)(
|
|
42
|
+
const { conditionField = "title", conditionRenderer = (rq, delayed) => ((0, jsx_runtime_1.jsx)(TextField_1.default, { autoFocus: true, margin: "dense", name: conditionField, label: title, fullWidth: true, variant: "standard", slotProps: { htmlInput: { maxLength: 128 } }, onChange: (event) => {
|
|
39
43
|
Reflect.set(rq, "title", event.target.value);
|
|
40
44
|
delayed.call();
|
|
41
45
|
} })), itemRenderer = (item, selectProps) => {
|
|
@@ -44,7 +48,7 @@ function ListChooser(props) {
|
|
|
44
48
|
const label = typeof labelField === "function"
|
|
45
49
|
? labelField(item)
|
|
46
50
|
: Reflect.get(item, labelField);
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)(ListItem_1.default, { disableGutters: true, secondaryAction: sp.selected ? (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }) : undefined, children: (0, jsx_runtime_1.jsx)(ListItemButton_1.default, { ...sp, children: (0, jsx_runtime_1.jsx)(ListItemText_1.default, { primary: label }) }) }, `${id}`));
|
|
48
52
|
}, idField = "id", labelField = "label", loadData, multiple = false, onItemChange, title, doubleClickEnabled = false, onDoubleClick, ...rest } = props;
|
|
49
53
|
// Default minimum height
|
|
50
54
|
rest.sx ??= { minHeight: "220px" };
|
|
@@ -91,5 +95,5 @@ function ListChooser(props) {
|
|
|
91
95
|
}
|
|
92
96
|
};
|
|
93
97
|
// Layout
|
|
94
|
-
return ((0, jsx_runtime_1.jsxs)(FlexBox_1.VBox, { children: [conditionRenderer(rq.current, delayed), (0, jsx_runtime_1.jsx)(
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)(FlexBox_1.VBox, { children: [conditionRenderer(rq.current, delayed), (0, jsx_runtime_1.jsx)(List_1.default, { onDoubleClick: onDoubleClickLocal, disablePadding: true, dense: true, ...rest, children: items.map((item) => itemRenderer(item, selectProps)) })] }));
|
|
95
99
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.ListItemRightIcon = void 0;
|
|
4
|
-
const
|
|
7
|
+
const ListItemIcon_1 = __importDefault(require("@mui/material/ListItemIcon"));
|
|
8
|
+
const styles_1 = require("@mui/material/styles");
|
|
5
9
|
/**
|
|
6
10
|
* List item right icon component
|
|
7
11
|
*/
|
|
8
|
-
exports.ListItemRightIcon = (0,
|
|
12
|
+
exports.ListItemRightIcon = (0, styles_1.styled)(ListItemIcon_1.default)(({ theme }) => ({
|
|
9
13
|
minWidth: "20px!important",
|
|
10
14
|
paddingLeft: theme.spacing(2)
|
|
11
15
|
}));
|
|
@@ -5,11 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ListMoreDisplay = ListMoreDisplay;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const react_1 = __importDefault(require("react"));
|
|
10
9
|
const react_2 = require("@etsoo/react");
|
|
11
10
|
const LoadingButton_1 = require("./LoadingButton");
|
|
12
11
|
const ReactApp_1 = require("./app/ReactApp");
|
|
12
|
+
const Card_1 = __importDefault(require("@mui/material/Card"));
|
|
13
|
+
const CardHeader_1 = __importDefault(require("@mui/material/CardHeader"));
|
|
14
|
+
const CardContent_1 = __importDefault(require("@mui/material/CardContent"));
|
|
15
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
16
|
+
const CardActions_1 = __importDefault(require("@mui/material/CardActions"));
|
|
13
17
|
/**
|
|
14
18
|
* ListMoreDisplay
|
|
15
19
|
* @param props Props
|
|
@@ -96,8 +100,8 @@ function ListMoreDisplay(props) {
|
|
|
96
100
|
ref.isMounted = false;
|
|
97
101
|
};
|
|
98
102
|
}, []);
|
|
99
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [headerRenderer && headerRenderer(reset), (0, jsx_runtime_1.jsxs)(
|
|
103
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [headerRenderer && headerRenderer(reset), (0, jsx_runtime_1.jsxs)(Card_1.default, { ...rest, children: [(0, jsx_runtime_1.jsx)(CardHeader_1.default, { title: headerTitle }), (0, jsx_runtime_1.jsx)(CardContent_1.default, { sx: {
|
|
100
104
|
paddingTop: 0,
|
|
101
105
|
paddingBottom: states.completed ? 0 : "inherit"
|
|
102
|
-
}, children: states.items == null ? ((0, jsx_runtime_1.jsx)(
|
|
106
|
+
}, children: states.items == null ? ((0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 20 })) : (states.items.map((item, index) => children(item, index))) }), !states.completed && ((0, jsx_runtime_1.jsx)(CardActions_1.default, { sx: { justifyContent: "flex-end" }, children: (0, jsx_runtime_1.jsx)(LoadingButton_1.LoadingButton, { onClick: async () => await loadDataLocal(), children: moreLabel }) }))] })] }));
|
|
103
107
|
}
|
package/lib/cjs/LoadingButton.js
CHANGED
|
@@ -5,7 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LoadingButton = LoadingButton;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
9
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
9
10
|
const react_1 = __importDefault(require("react"));
|
|
10
11
|
/**
|
|
11
12
|
* Loading button
|
|
@@ -20,7 +21,7 @@ function LoadingButton(props) {
|
|
|
20
21
|
// https://stackoverflow.com/questions/55265255/react-usestate-hook-event-handler-using-initial-state
|
|
21
22
|
const [loading, setLoading] = react_1.default.useState(false);
|
|
22
23
|
// Icon
|
|
23
|
-
const localEndIcon = loading ? ((0, jsx_runtime_1.jsx)(
|
|
24
|
+
const localEndIcon = loading ? ((0, jsx_runtime_1.jsx)(CircularProgress_1.default, { ...loadingIconProps })) : (endIcon);
|
|
24
25
|
// Check if the component is mounted
|
|
25
26
|
const isMounted = react_1.default.useRef(true);
|
|
26
27
|
react_1.default.useEffect(() => {
|
|
@@ -29,7 +30,7 @@ function LoadingButton(props) {
|
|
|
29
30
|
};
|
|
30
31
|
}, []);
|
|
31
32
|
// Layout
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.default, { disabled: loading, endIcon: localEndIcon, onClick: async (event) => {
|
|
33
34
|
if (onClick) {
|
|
34
35
|
// Update state
|
|
35
36
|
setLoading(true);
|
package/lib/cjs/MUGlobal.d.ts
CHANGED
package/lib/cjs/MaskInput.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextFieldProps } from "@mui/material";
|
|
1
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
|
2
2
|
type ReactIMask = typeof import("react-imask", { with: { "resolution-mode": "import" } }).useIMask;
|
|
3
3
|
type RIOpts = Parameters<ReactIMask>[0];
|
|
4
4
|
type RIReturns = ReturnType<ReactIMask>;
|
package/lib/cjs/MaskInput.js
CHANGED
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MaskInput = MaskInput;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const react_1 = __importDefault(require("react"));
|
|
10
9
|
const MUGlobal_1 = require("./MUGlobal");
|
|
10
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
11
11
|
// Currently CommonJS modules are not supported by "react-imask" package
|
|
12
12
|
let useIMask;
|
|
13
13
|
import("react-imask").then((module) => useIMask = module.useIMask);
|
|
@@ -38,7 +38,7 @@ function MaskInput(props) {
|
|
|
38
38
|
maskRef.current.updateValue();
|
|
39
39
|
}, [maskRef.current, localValue]);
|
|
40
40
|
// Layout
|
|
41
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(TextField_1.default, { slotProps: {
|
|
42
42
|
htmlInput: { readOnly, ...slotProps?.htmlInput },
|
|
43
43
|
inputLabel: { shrink: search ? MUGlobal_1.MUGlobal.searchFieldShrink : MUGlobal_1.MUGlobal.inputFieldShrink, ...slotProps?.inputLabel }
|
|
44
44
|
}, size: size, variant: variant, inputRef: ref, ...rest }));
|
package/lib/cjs/MenuButton.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DataTypes } from "@etsoo/shared";
|
|
2
|
-
import { ButtonProps
|
|
2
|
+
import { ButtonProps } from "@mui/material/Button";
|
|
3
|
+
import { MenuProps } from "@mui/material/Menu";
|
|
3
4
|
import React from "react";
|
|
4
5
|
export type MenuButtonProps<T extends DataTypes.IdItem> = Omit<MenuProps, "open"> & {
|
|
5
6
|
items: T[];
|
package/lib/cjs/MenuButton.js
CHANGED
|
@@ -5,7 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MenuButton = MenuButton;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
9
|
+
const Menu_1 = __importDefault(require("@mui/material/Menu"));
|
|
10
|
+
const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
|
|
9
11
|
const react_1 = __importDefault(require("react"));
|
|
10
12
|
function MenuButton(props) {
|
|
11
13
|
// Destruct
|
|
@@ -35,7 +37,7 @@ function MenuButton(props) {
|
|
|
35
37
|
const labelFormatter = typeof labelField === "function"
|
|
36
38
|
? labelField
|
|
37
39
|
: (item) => item[labelField];
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [typeof button === "function" ? (button(handleMenuOpen)) : ((0, jsx_runtime_1.jsx)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [typeof button === "function" ? (button(handleMenuOpen)) : ((0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleMenuOpen, ...button })), (0, jsx_runtime_1.jsx)(Menu_1.default, { slotProps: {
|
|
39
41
|
paper: {
|
|
40
42
|
elevation: 0,
|
|
41
43
|
sx: {
|
|
@@ -63,6 +65,6 @@ function MenuButton(props) {
|
|
|
63
65
|
}
|
|
64
66
|
}, disableScrollLock: true, anchorEl: anchorEl, anchorOrigin: anchorOrigin, keepMounted: true, transformOrigin: transformOrigin, open: isMenuOpen, transitionDuration: 0, onClose: handleMenuClose, ...rest, children: items.map((item) => {
|
|
65
67
|
const label = labelFormatter(item);
|
|
66
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
68
|
+
return ((0, jsx_runtime_1.jsx)(MenuItem_1.default, { disabled: true, children: label }, item.id));
|
|
67
69
|
}) })] }));
|
|
68
70
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.MobileListItemRenderer = MobileListItemRenderer;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
8
|
const MoreFab_1 = require("./MoreFab");
|
|
9
|
+
const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
|
|
10
|
+
const Card_1 = __importDefault(require("@mui/material/Card"));
|
|
11
|
+
const CardHeader_1 = __importDefault(require("@mui/material/CardHeader"));
|
|
12
|
+
const CardContent_1 = __importDefault(require("@mui/material/CardContent"));
|
|
7
13
|
/**
|
|
8
14
|
* Default mobile list item renderer
|
|
9
15
|
* @param param0 List renderer props
|
|
@@ -14,19 +20,22 @@ const MoreFab_1 = require("./MoreFab");
|
|
|
14
20
|
function MobileListItemRenderer({ data, itemHeight, margins }, renderer) {
|
|
15
21
|
// Loading
|
|
16
22
|
if (data == null)
|
|
17
|
-
return (0, jsx_runtime_1.jsx)(
|
|
23
|
+
return (0, jsx_runtime_1.jsx)(LinearProgress_1.default, {});
|
|
18
24
|
// Elements
|
|
19
25
|
const [title, subheader, actions, children, cardActions] = renderer(data);
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(Card_1.default, { sx: {
|
|
21
27
|
height: itemHeight,
|
|
22
28
|
...margins
|
|
23
|
-
}, children: [(0, jsx_runtime_1.jsx)(
|
|
29
|
+
}, children: [(0, jsx_runtime_1.jsx)(CardHeader_1.default, { sx: { paddingBottom: 0.5 }, action: Array.isArray(actions) ? ((0, jsx_runtime_1.jsx)(MoreFab_1.MoreFab, { iconButton: true, size: "small", anchorOrigin: {
|
|
24
30
|
vertical: "bottom",
|
|
25
31
|
horizontal: "right"
|
|
26
32
|
}, transformOrigin: {
|
|
27
33
|
vertical: "top",
|
|
28
34
|
horizontal: "right"
|
|
29
|
-
}, actions: actions })) : (actions), title: title,
|
|
35
|
+
}, actions: actions })) : (actions), title: title, subheader: subheader, slotProps: {
|
|
36
|
+
title: { variant: "body2" },
|
|
37
|
+
subheader: { variant: "caption" }
|
|
38
|
+
} }), (0, jsx_runtime_1.jsx)(CardContent_1.default, { sx: {
|
|
30
39
|
paddingTop: 0,
|
|
31
40
|
paddingBottom: cardActions == null ? Reflect.get(margins, "marginBottom") : 0
|
|
32
41
|
}, children: children }), cardActions] }));
|
package/lib/cjs/MoreFab.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { CustomFabProps } from "./CustomFabProps";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { PaperProps, PopoverOrigin } from "@mui/material";
|
|
4
3
|
import { ListItemReact } from "@etsoo/react";
|
|
4
|
+
import { PopoverOrigin } from "@mui/material/Popover";
|
|
5
|
+
import { PaperProps } from "@mui/material/Paper";
|
|
5
6
|
/**
|
|
6
7
|
* More fab props
|
|
7
8
|
*/
|
package/lib/cjs/MoreFab.js
CHANGED
|
@@ -7,8 +7,14 @@ exports.MoreFab = MoreFab;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const MoreHoriz_1 = __importDefault(require("@mui/icons-material/MoreHoriz"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
10
|
const react_router_1 = require("react-router");
|
|
11
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
12
|
+
const Fab_1 = __importDefault(require("@mui/material/Fab"));
|
|
13
|
+
const Menu_1 = __importDefault(require("@mui/material/Menu"));
|
|
14
|
+
const Divider_1 = __importDefault(require("@mui/material/Divider"));
|
|
15
|
+
const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
|
|
16
|
+
const ListItemIcon_1 = __importDefault(require("@mui/material/ListItemIcon"));
|
|
17
|
+
const ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
|
|
12
18
|
function getActions(input) {
|
|
13
19
|
// Actions
|
|
14
20
|
const actions = [];
|
|
@@ -79,8 +85,8 @@ function MoreFab(props) {
|
|
|
79
85
|
// Has any icon
|
|
80
86
|
const hasIcon = actionsLocal.some((action) => action.icon != null);
|
|
81
87
|
// Main
|
|
82
|
-
const main = iconButton ? ((0, jsx_runtime_1.jsx)(
|
|
83
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [main, (0, jsx_runtime_1.jsx)(
|
|
88
|
+
const main = iconButton ? ((0, jsx_runtime_1.jsx)(IconButton_1.default, { color: color, size: size, title: title, onClick: handleClick, children: icon })) : ((0, jsx_runtime_1.jsx)(Fab_1.default, { color: color, size: size, title: title, onClick: handleClick, children: icon }));
|
|
89
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [main, (0, jsx_runtime_1.jsx)(Menu_1.default, { disableScrollLock: true, anchorEl: anchorEl, anchorOrigin: anchorOrigin, keepMounted: true, transformOrigin: transformOrigin, open: open, onClose: handleClose, PaperProps: PaperProps, children: actionsLocal.map(({ label, icon, action }, index) => label === "-" ? ((0, jsx_runtime_1.jsx)(Divider_1.default, {}, index)) : ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { ...(typeof action === "string"
|
|
84
90
|
? action.includes("://")
|
|
85
91
|
? {
|
|
86
92
|
component: "a",
|
|
@@ -96,5 +102,5 @@ function MoreFab(props) {
|
|
|
96
102
|
if (typeof action === "function")
|
|
97
103
|
action(event);
|
|
98
104
|
}
|
|
99
|
-
}), children: [icon != null && (0, jsx_runtime_1.jsx)(
|
|
105
|
+
}), children: [icon != null && (0, jsx_runtime_1.jsx)(ListItemIcon_1.default, { children: icon }), (0, jsx_runtime_1.jsx)(ListItemText_1.default, { inset: icon == null && hasIcon, children: label })] }, label))) })] }));
|
|
100
106
|
}
|
package/lib/cjs/NotifierMU.js
CHANGED
|
@@ -7,16 +7,39 @@ exports.NotifierMU = exports.NotificationMU = void 0;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const notificationbase_1 = require("@etsoo/notificationbase");
|
|
9
9
|
const shared_1 = require("@etsoo/shared");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
|
-
const icons_material_1 = require("@mui/icons-material");
|
|
12
|
-
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
13
10
|
const react_1 = __importDefault(require("react"));
|
|
14
11
|
const react_2 = require("@etsoo/react");
|
|
15
12
|
const DraggablePaperComponent_1 = require("./DraggablePaperComponent");
|
|
16
13
|
const LoadingButton_1 = require("./LoadingButton");
|
|
17
14
|
const Labels_1 = require("./app/Labels");
|
|
15
|
+
const DialogTitle_1 = __importDefault(require("@mui/material/DialogTitle"));
|
|
16
|
+
const styles_1 = require("@mui/material/styles");
|
|
17
|
+
const Dialog_1 = __importDefault(require("@mui/material/Dialog"));
|
|
18
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
19
|
+
const DialogContent_1 = __importDefault(require("@mui/material/DialogContent"));
|
|
20
|
+
const DialogActions_1 = __importDefault(require("@mui/material/DialogActions"));
|
|
21
|
+
const DialogContentText_1 = __importDefault(require("@mui/material/DialogContentText"));
|
|
22
|
+
const Fade_1 = __importDefault(require("@mui/material/Fade"));
|
|
23
|
+
const Alert_1 = __importDefault(require("@mui/material/Alert"));
|
|
24
|
+
const AlertTitle_1 = __importDefault(require("@mui/material/AlertTitle"));
|
|
25
|
+
const Switch_1 = __importDefault(require("@mui/material/Switch"));
|
|
26
|
+
const Slider_1 = __importDefault(require("@mui/material/Slider"));
|
|
27
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
28
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
29
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
30
|
+
const Popover_1 = __importDefault(require("@mui/material/Popover"));
|
|
31
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
32
|
+
const Backdrop_1 = __importDefault(require("@mui/material/Backdrop"));
|
|
33
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
34
|
+
const Snackbar_1 = __importDefault(require("@mui/material/Snackbar"));
|
|
35
|
+
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
36
|
+
const Done_1 = __importDefault(require("@mui/icons-material/Done"));
|
|
37
|
+
const Info_1 = __importDefault(require("@mui/icons-material/Info"));
|
|
38
|
+
const Warning_1 = __importDefault(require("@mui/icons-material/Warning"));
|
|
39
|
+
const Error_1 = __importDefault(require("@mui/icons-material/Error"));
|
|
40
|
+
const Help_1 = __importDefault(require("@mui/icons-material/Help"));
|
|
18
41
|
// Custom icon dialog title bar
|
|
19
|
-
const IconDialogTitle = (0,
|
|
42
|
+
const IconDialogTitle = (0, styles_1.styled)(DialogTitle_1.default, {
|
|
20
43
|
// Prevent the passing of the draggable prop to the underlying DOM element
|
|
21
44
|
shouldForwardProp: (prop) => prop !== "draggable"
|
|
22
45
|
}) `
|
|
@@ -47,19 +70,19 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
47
70
|
let title = this.title;
|
|
48
71
|
let icon;
|
|
49
72
|
if (this.type === notificationbase_1.NotificationMessageType.Success) {
|
|
50
|
-
icon = (0, jsx_runtime_1.jsx)(
|
|
73
|
+
icon = (0, jsx_runtime_1.jsx)(Done_1.default, { color: "primary" });
|
|
51
74
|
title ??= labels.success;
|
|
52
75
|
}
|
|
53
76
|
else if (this.type === notificationbase_1.NotificationMessageType.Info) {
|
|
54
|
-
icon = (0, jsx_runtime_1.jsx)(
|
|
77
|
+
icon = (0, jsx_runtime_1.jsx)(Info_1.default, {});
|
|
55
78
|
title ??= labels.info;
|
|
56
79
|
}
|
|
57
80
|
else if (this.type === notificationbase_1.NotificationMessageType.Warning) {
|
|
58
|
-
icon = (0, jsx_runtime_1.jsx)(
|
|
81
|
+
icon = (0, jsx_runtime_1.jsx)(Warning_1.default, { color: "secondary" });
|
|
59
82
|
title ??= labels.warning;
|
|
60
83
|
}
|
|
61
84
|
else {
|
|
62
|
-
icon = (0, jsx_runtime_1.jsx)(
|
|
85
|
+
icon = (0, jsx_runtime_1.jsx)(Error_1.default, { color: "error" });
|
|
63
86
|
title ??= labels.alertTitle;
|
|
64
87
|
}
|
|
65
88
|
const setupProps = {
|
|
@@ -72,7 +95,7 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
72
95
|
await this.returnValue(undefined);
|
|
73
96
|
return true;
|
|
74
97
|
};
|
|
75
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
98
|
+
return ((0, jsx_runtime_1.jsxs)(Dialog_1.default, { open: this.open, PaperComponent: draggable ? DraggablePaperComponent_1.DraggablePaperComponent : undefined, className: className, fullWidth: fullWidth, maxWidth: maxWidth, fullScreen: fullScreen, ...options, children: [(0, jsx_runtime_1.jsxs)(IconDialogTitle, { draggable: draggable, className: draggable ? "dialog-title draggable-dialog-title" : "dialog-title", children: [icon, (0, jsx_runtime_1.jsx)("span", { className: "dialogTitle", children: title }), closable && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { className: "MuiDialogContent-root-close-button", size: "small", onClick: () => this.returnValue("CLOSE"), children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) }))] }), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, { children: [typeof this.content === "string" ? ((0, jsx_runtime_1.jsx)(DialogContentText_1.default, { children: this.content })) : (this.content), inputs] }), (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: buttons
|
|
76
99
|
? buttons(this, callback)
|
|
77
100
|
: primaryButton && ((0, jsx_runtime_1.jsx)(LoadingButton_1.LoadingButton, { ...setupProps, onClick: callback, autoFocus: true, ...primaryButtonProps, children: okLabel })) })] }, this.id));
|
|
78
101
|
}
|
|
@@ -87,7 +110,7 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
87
110
|
await this.returnValue(value);
|
|
88
111
|
return true;
|
|
89
112
|
};
|
|
90
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
113
|
+
return ((0, jsx_runtime_1.jsxs)(Dialog_1.default, { open: this.open, PaperComponent: draggable ? DraggablePaperComponent_1.DraggablePaperComponent : undefined, className: className, fullWidth: fullWidth, maxWidth: maxWidth, fullScreen: fullScreen, ...options, children: [(0, jsx_runtime_1.jsxs)(IconDialogTitle, { draggable: draggable, className: draggable ? "dialog-title draggable-dialog-title" : "dialog-title", children: [(0, jsx_runtime_1.jsx)(Help_1.default, { color: "action" }), (0, jsx_runtime_1.jsx)("span", { className: "dialogTitle", children: title }), closable && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { className: "MuiDialogContent-root-close-button", size: "small", onClick: () => this.returnValue("CLOSE"), children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) }))] }), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, { children: [typeof this.content === "string" ? ((0, jsx_runtime_1.jsx)(DialogContentText_1.default, { children: this.content })) : (this.content), inputs] }), (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: buttons ? (buttons(this, callback)) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [cancelButton && ((0, jsx_runtime_1.jsx)(LoadingButton_1.LoadingButton, { color: "secondary", onClick: async (event) => await callback(event, false), children: cancelLabel })), primaryButton && ((0, jsx_runtime_1.jsx)(LoadingButton_1.LoadingButton, { color: "primary", onClick: async (event) => await callback(event, true), autoFocus: true, ...primaryButtonProps, children: okLabel }))] })) })] }, this.id));
|
|
91
114
|
}
|
|
92
115
|
createMessageColor() {
|
|
93
116
|
if (this.type === notificationbase_1.NotificationMessageType.Danger)
|
|
@@ -109,7 +132,7 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
109
132
|
};
|
|
110
133
|
// Setup callback
|
|
111
134
|
const options = this.renderSetup ? this.renderSetup(setupProps) : undefined;
|
|
112
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
135
|
+
return ((0, jsx_runtime_1.jsx)(Fade_1.default, { in: true, children: (0, jsx_runtime_1.jsxs)(Alert_1.default, { ...setupProps, ...options, action: closable ? ((0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", onClick: () => this.returnValue("CLOSE"), children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) })) : undefined, onClose: () => this.dismiss(), className: className, children: [this.title && (0, jsx_runtime_1.jsx)(AlertTitle_1.default, { children: this.title }), this.content] }) }, this.id));
|
|
113
136
|
}
|
|
114
137
|
// Create prompt
|
|
115
138
|
createPrompt(_props, className) {
|
|
@@ -168,13 +191,13 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
168
191
|
let value = undefined;
|
|
169
192
|
if (inputs == null) {
|
|
170
193
|
if (type === "switch") {
|
|
171
|
-
localInputs = ((0, jsx_runtime_1.jsx)(
|
|
194
|
+
localInputs = ((0, jsx_runtime_1.jsx)(Switch_1.default, { inputRef: inputRef, ...inputProps, value: "true", autoFocus: true, required: true }));
|
|
172
195
|
}
|
|
173
196
|
else if (type === "slider") {
|
|
174
|
-
localInputs = (0, jsx_runtime_1.jsx)(
|
|
197
|
+
localInputs = (0, jsx_runtime_1.jsx)(Slider_1.default, { onChange: (_e, v) => (value = v) });
|
|
175
198
|
}
|
|
176
199
|
else {
|
|
177
|
-
localInputs = ((0, jsx_runtime_1.jsx)(
|
|
200
|
+
localInputs = ((0, jsx_runtime_1.jsx)(TextField_1.default, { inputRef: inputRef, onChange: () => setError(undefined), autoFocus: true, margin: "dense", fullWidth: true, type: type, required: true, ...inputProps }));
|
|
178
201
|
}
|
|
179
202
|
}
|
|
180
203
|
else {
|
|
@@ -182,11 +205,11 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
182
205
|
}
|
|
183
206
|
// Setup callback
|
|
184
207
|
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
185
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
208
|
+
return ((0, jsx_runtime_1.jsx)(Dialog_1.default, { open: this.open, PaperComponent: draggable ? DraggablePaperComponent_1.DraggablePaperComponent : undefined, className: className, fullWidth: fullWidth, maxWidth: maxWidth, fullScreen: fullScreen, ...options, children: (0, jsx_runtime_1.jsxs)("form", { onSubmit: (event) => {
|
|
186
209
|
event.preventDefault();
|
|
187
210
|
event.currentTarget.elements.namedItem("okButton")?.click();
|
|
188
211
|
return false;
|
|
189
|
-
}, children: [(0, jsx_runtime_1.jsxs)(IconDialogTitle, { draggable: draggable, className: draggable ? "dialog-title draggable-dialog-title" : "dialog-title", children: [(0, jsx_runtime_1.jsx)(
|
|
212
|
+
}, children: [(0, jsx_runtime_1.jsxs)(IconDialogTitle, { draggable: draggable, className: draggable ? "dialog-title draggable-dialog-title" : "dialog-title", children: [(0, jsx_runtime_1.jsx)(Info_1.default, { color: "primary" }), (0, jsx_runtime_1.jsx)("span", { className: "dialogTitle", children: title }), closable && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { className: "MuiDialogContent-root-close-button", size: "small", onClick: () => this.returnValue("CLOSE"), children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) }))] }), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, { children: [typeof this.content === "string" ? ((0, jsx_runtime_1.jsx)(DialogContentText_1.default, { children: this.content })) : (this.content), localInputs, (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", display: "block", ref: errorRef, color: "error" })] }), (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: buttons ? (buttons(this, handleSubmit)) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [cancelButton && ((0, jsx_runtime_1.jsx)(Button_1.default, { color: "secondary", onClick: () => {
|
|
190
213
|
if (this.onReturn)
|
|
191
214
|
this.onReturn(undefined);
|
|
192
215
|
this.dismiss();
|
|
@@ -198,7 +221,7 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
198
221
|
const { content, id, open } = this;
|
|
199
222
|
// Setup callback
|
|
200
223
|
const options = this.renderSetup ? this.renderSetup({}) : undefined;
|
|
201
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
224
|
+
return ((0, jsx_runtime_1.jsx)(Popover_1.default, { open: open, className: className, onClose: () => this.dismiss(), ...options, children: content }, id));
|
|
202
225
|
}
|
|
203
226
|
// Create loading
|
|
204
227
|
createLoading(_props, className) {
|
|
@@ -213,14 +236,14 @@ class NotificationMU extends react_2.NotificationReact {
|
|
|
213
236
|
content = labels.loading.toString();
|
|
214
237
|
// Setup callback
|
|
215
238
|
const options = this.renderSetup ? this.renderSetup(setupProps) : undefined;
|
|
216
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
239
|
+
return ((0, jsx_runtime_1.jsx)(Backdrop_1.default, { className: className, sx: {
|
|
217
240
|
color: "#fff",
|
|
218
241
|
zIndex: (theme) => theme.zIndex.modal + 1
|
|
219
|
-
}, open: this.open, ...options, children: (0, jsx_runtime_1.jsxs)(
|
|
242
|
+
}, open: this.open, ...options, children: (0, jsx_runtime_1.jsxs)(Box_1.default, { display: "flex", flexDirection: "column", flexWrap: "nowrap", alignItems: "center", sx: {
|
|
220
243
|
"& > :not(style) + :not(style)": {
|
|
221
244
|
marginTop: (theme) => theme.spacing(1)
|
|
222
245
|
}
|
|
223
|
-
}, children: [(0, jsx_runtime_1.jsx)(
|
|
246
|
+
}, children: [(0, jsx_runtime_1.jsx)(CircularProgress_1.default, { ...setupProps }), content && ((0, jsx_runtime_1.jsx)(Box_1.default, { maxWidth: maxWidth === false ? undefined : maxWidth, children: content }))] }) }, this.id));
|
|
224
247
|
}
|
|
225
248
|
/**
|
|
226
249
|
* Render method
|
|
@@ -333,9 +356,9 @@ class NotifierMU extends react_2.NotifierReact {
|
|
|
333
356
|
return ((0, jsx_runtime_1.jsx)("div", { className: className, children: children }, `div-${alignText}`));
|
|
334
357
|
}
|
|
335
358
|
// Use SnackBar for layout
|
|
336
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
359
|
+
return ((0, jsx_runtime_1.jsx)(Snackbar_1.default, { anchorOrigin: NotifierMU.getOrigin(align), className: className, sx: align === notificationbase_1.NotificationAlign.Center
|
|
337
360
|
? { position: "fixed", top: "50%!important" }
|
|
338
|
-
: undefined, open: true, children: (0, jsx_runtime_1.jsx)(
|
|
361
|
+
: undefined, open: true, children: (0, jsx_runtime_1.jsx)(Box_1.default, { display: "flex", flexDirection: "column", flexWrap: "nowrap", sx: {
|
|
339
362
|
"& > :not(style) + :not(style)": {
|
|
340
363
|
marginTop: (theme) => theme.spacing(1)
|
|
341
364
|
}
|
|
@@ -7,8 +7,8 @@ exports.NumberInputField = NumberInputField;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const InputField_1 = require("./InputField");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
10
|
const shared_1 = require("@etsoo/shared");
|
|
11
|
+
const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
|
|
12
12
|
/**
|
|
13
13
|
* Number input field, for controlled only components, please see IntInputField and MoneyInputField
|
|
14
14
|
* @param props Props
|
|
@@ -17,16 +17,18 @@ const shared_1 = require("@etsoo/shared");
|
|
|
17
17
|
function NumberInputField(props) {
|
|
18
18
|
const { currency, inputStyle, min = 0, step = 1, symbol = currency
|
|
19
19
|
? `${currency} ${shared_1.NumberUtils.getCurrencySymbol(currency)}`
|
|
20
|
-
: undefined, endSymbol, max = 9999999,
|
|
21
|
-
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { type: "number",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
: undefined, endSymbol, max = 9999999, slotProps = {}, ...rest } = props;
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { type: "number", slotProps: Object.assign(slotProps, {
|
|
22
|
+
input: {
|
|
23
|
+
startAdornment: symbol ? ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(InputAdornment_1.default, { position: "start", children: symbol }) })) : undefined,
|
|
24
|
+
endAdornment: endSymbol ? ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, { position: "end", children: endSymbol })) : undefined
|
|
25
|
+
},
|
|
26
|
+
htmlInput: {
|
|
27
|
+
min,
|
|
28
|
+
step,
|
|
29
|
+
max,
|
|
30
|
+
style: inputStyle,
|
|
31
|
+
inputMode: "numeric"
|
|
32
|
+
}
|
|
33
|
+
}), ...rest }));
|
|
32
34
|
}
|
package/lib/cjs/OptionGroup.d.ts
CHANGED