@etsoo/materialui 1.5.2 → 1.5.4
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 +10 -10
- 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/src/TagList.tsx
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Autocomplete, AutocompleteProps, Checkbox, Chip } from "@mui/material";
|
|
2
1
|
import CheckBoxOutlineBlankIcon from "@mui/icons-material/CheckBoxOutlineBlank";
|
|
3
2
|
import CheckBoxIcon from "@mui/icons-material/CheckBox";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { InputField, InputFieldProps } from "./InputField";
|
|
6
5
|
import { useAppContext } from "./app/ReactApp";
|
|
6
|
+
import Autocomplete, { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
7
|
+
import Checkbox from "@mui/material/Checkbox";
|
|
8
|
+
import Chip from "@mui/material/Chip";
|
|
7
9
|
|
|
8
10
|
export type TagListProps = Omit<
|
|
9
11
|
AutocompleteProps<string, true, false, true>,
|
package/src/TagListPro.tsx
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { Autocomplete, AutocompleteProps, Checkbox, Chip } from "@mui/material";
|
|
2
1
|
import CheckBoxOutlineBlankIcon from "@mui/icons-material/CheckBoxOutlineBlank";
|
|
3
2
|
import CheckBoxIcon from "@mui/icons-material/CheckBox";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { InputField, InputFieldProps } from "./InputField";
|
|
6
5
|
import { DataTypes, ListType2 } from "@etsoo/shared";
|
|
7
6
|
import { useAppContext } from "./app/ReactApp";
|
|
7
|
+
import Autocomplete, { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
8
|
+
import Checkbox from "@mui/material/Checkbox";
|
|
9
|
+
import Chip from "@mui/material/Chip";
|
|
8
10
|
|
|
9
11
|
export type TagListProProps<D extends ListType2 = ListType2> = Omit<
|
|
10
12
|
AutocompleteProps<D, true, false, false>,
|
package/src/TextFieldEx.tsx
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
IconButton,
|
|
4
|
-
InputAdornment,
|
|
5
|
-
TextField,
|
|
6
|
-
TextFieldProps
|
|
7
|
-
} from "@mui/material";
|
|
8
2
|
import { MUGlobal } from "./MUGlobal";
|
|
9
|
-
import
|
|
3
|
+
import VisibilityIcon from "@mui/icons-material/Visibility";
|
|
4
|
+
import ClearIcon from "@mui/icons-material/Clear";
|
|
10
5
|
import { Keyboard } from "@etsoo/shared";
|
|
11
6
|
import { ReactUtils, useCombinedRefs, useDelayedExecutor } from "@etsoo/react";
|
|
12
7
|
import { useAppContext } from "./app/ReactApp";
|
|
8
|
+
import TextField, { TextFieldProps } from "@mui/material/TextField";
|
|
9
|
+
import InputAdornment from "@mui/material/InputAdornment";
|
|
10
|
+
import IconButton from "@mui/material/IconButton";
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* Extended text field props
|
|
@@ -191,12 +189,12 @@ export const TextFieldEx = React.forwardRef<
|
|
|
191
189
|
onTouchEnd={touchEnd}
|
|
192
190
|
title={showIt}
|
|
193
191
|
>
|
|
194
|
-
<
|
|
192
|
+
<VisibilityIcon />
|
|
195
193
|
</IconButton>
|
|
196
194
|
)}
|
|
197
195
|
{showClear && (
|
|
198
196
|
<IconButton onClick={clearClick} tabIndex={-1} title={clearLabel}>
|
|
199
|
-
<
|
|
197
|
+
<ClearIcon />
|
|
200
198
|
</IconButton>
|
|
201
199
|
)}
|
|
202
200
|
</InputAdornment>
|
package/src/Tiplist.tsx
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ReactUtils, useDelayedExecutor } from "@etsoo/react";
|
|
2
2
|
import { DataTypes, IdDefaultType, ListType2 } from "@etsoo/shared";
|
|
3
|
-
import { Autocomplete, AutocompleteRenderInputParams } from "@mui/material";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import type { AutocompleteExtendedProps } from "./AutocompleteExtendedProps";
|
|
6
5
|
import { SearchField } from "./SearchField";
|
|
7
6
|
import { InputField } from "./InputField";
|
|
8
7
|
import { useAppContext } from "./app/ReactApp";
|
|
8
|
+
import Autocomplete, {
|
|
9
|
+
AutocompleteRenderInputParams
|
|
10
|
+
} from "@mui/material/Autocomplete";
|
|
9
11
|
|
|
10
12
|
/**
|
|
11
13
|
* Tiplist props
|
package/src/TiplistPro.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactUtils, useDelayedExecutor } from "@etsoo/react";
|
|
2
2
|
import { DataTypes, ListType2 } from "@etsoo/shared";
|
|
3
|
-
import { Autocomplete, AutocompleteProps } from "@mui/material";
|
|
4
3
|
import React, { ChangeEventHandler } from "react";
|
|
5
4
|
import { InputField, InputFieldProps } from "./InputField";
|
|
6
5
|
import { useAppContext } from "./app/ReactApp";
|
|
6
|
+
import Autocomplete, { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* TiplistPro props
|
package/src/TooltipClick.tsx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useDelayedExecutor } from "@etsoo/react";
|
|
2
|
-
import
|
|
2
|
+
import ClickAwayListener from "@mui/material/ClickAwayListener";
|
|
3
|
+
import Tooltip, { TooltipProps } from "@mui/material/Tooltip";
|
|
3
4
|
import React from "react";
|
|
4
5
|
|
|
5
6
|
/**
|
package/src/TwoFieldInput.tsx
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Input, InputAdornment } from "@mui/material";
|
|
2
1
|
import ArrowRightAltIcon from "@mui/icons-material/ArrowRightAlt";
|
|
3
2
|
import { useDimensions } from "@etsoo/react";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { DateUtils, DomUtils } from "@etsoo/shared";
|
|
6
5
|
import { InputField, InputFieldProps } from "./InputField";
|
|
6
|
+
import InputAdornment from "@mui/material/InputAdornment";
|
|
7
|
+
import Input from "@mui/material/Input";
|
|
7
8
|
|
|
8
9
|
type ValueType = string | number | Date | null | undefined;
|
|
9
10
|
|
package/src/UserAvatar.tsx
CHANGED
package/src/UserAvatarEditor.tsx
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Button,
|
|
3
|
-
ButtonGroup,
|
|
4
|
-
IconButton,
|
|
5
|
-
Skeleton,
|
|
6
|
-
Slider,
|
|
7
|
-
Stack
|
|
8
|
-
} from "@mui/material";
|
|
9
1
|
import React from "react";
|
|
10
2
|
import type AvatarEditor from "react-avatar-editor";
|
|
11
3
|
import RotateLeftIcon from "@mui/icons-material/RotateLeft";
|
|
@@ -18,6 +10,12 @@ import AddIcon from "@mui/icons-material/Add";
|
|
|
18
10
|
import { Labels } from "./app/Labels";
|
|
19
11
|
import { FileUploadButton } from "./FileUploadButton";
|
|
20
12
|
import { ImageState } from "react-avatar-editor";
|
|
13
|
+
import Stack from "@mui/material/Stack";
|
|
14
|
+
import Skeleton from "@mui/material/Skeleton";
|
|
15
|
+
import ButtonGroup from "@mui/material/ButtonGroup";
|
|
16
|
+
import Button from "@mui/material/Button";
|
|
17
|
+
import IconButton from "@mui/material/IconButton";
|
|
18
|
+
import Slider from "@mui/material/Slider";
|
|
21
19
|
|
|
22
20
|
const defaultSize = 300;
|
|
23
21
|
|
package/src/ViewContainer.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Breakpoint, Grid2, Grid2Props, Typography } from "@mui/material";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { MUGlobal } from "./MUGlobal";
|
|
4
3
|
import { DataTypes } from "@etsoo/shared";
|
|
@@ -6,6 +5,9 @@ import { useCurrentBreakpoint } from "./useCurrentBreakpoint";
|
|
|
6
5
|
import { GridColumnRenderProps, GridDataType } from "@etsoo/react";
|
|
7
6
|
import { GridDataFormat } from "./GridDataFormat";
|
|
8
7
|
import { ReactAppType, useRequiredAppContext } from "./app/ReactApp";
|
|
8
|
+
import Grid, { GridProps } from "@mui/material/Grid";
|
|
9
|
+
import { Breakpoint } from "@mui/material/styles";
|
|
10
|
+
import Typography from "@mui/material/Typography";
|
|
9
11
|
|
|
10
12
|
function formatItemData(
|
|
11
13
|
app: ReactAppType,
|
|
@@ -38,11 +40,11 @@ function getItemField<T extends object>(
|
|
|
38
40
|
app: ReactAppType,
|
|
39
41
|
field: ViewPageFieldTypeNarrow<T>,
|
|
40
42
|
data: T
|
|
41
|
-
): [React.ReactNode, React.ReactNode,
|
|
43
|
+
): [React.ReactNode, React.ReactNode, GridProps, ViewPageItemSize] {
|
|
42
44
|
// Item data and label
|
|
43
45
|
let itemData: React.ReactNode,
|
|
44
46
|
itemLabel: React.ReactNode,
|
|
45
|
-
gridProps:
|
|
47
|
+
gridProps: GridProps = {},
|
|
46
48
|
size: ViewPageItemSize;
|
|
47
49
|
|
|
48
50
|
if (Array.isArray(field)) {
|
|
@@ -174,7 +176,7 @@ export type ViewPageRowType =
|
|
|
174
176
|
/**
|
|
175
177
|
* View page grid item properties
|
|
176
178
|
*/
|
|
177
|
-
export type ViewPageGridItemProps =
|
|
179
|
+
export type ViewPageGridItemProps = GridProps & {
|
|
178
180
|
data: React.ReactNode;
|
|
179
181
|
label?: React.ReactNode;
|
|
180
182
|
singleRow?: ViewPageRowType;
|
|
@@ -199,7 +201,7 @@ export function ViewPageGridItem(props: ViewPageGridItemProps) {
|
|
|
199
201
|
|
|
200
202
|
// Layout
|
|
201
203
|
return (
|
|
202
|
-
<
|
|
204
|
+
<Grid {...gridProps} {...options}>
|
|
203
205
|
{label != null && (
|
|
204
206
|
<Typography variant="caption" component="div">
|
|
205
207
|
{label}:
|
|
@@ -210,14 +212,14 @@ export function ViewPageGridItem(props: ViewPageGridItemProps) {
|
|
|
210
212
|
) : (
|
|
211
213
|
<Typography variant="subtitle2">{data}</Typography>
|
|
212
214
|
)}
|
|
213
|
-
</
|
|
215
|
+
</Grid>
|
|
214
216
|
);
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
/**
|
|
218
220
|
* View page display field
|
|
219
221
|
*/
|
|
220
|
-
export interface ViewPageField<T extends object> extends
|
|
222
|
+
export interface ViewPageField<T extends object> extends GridProps {
|
|
221
223
|
/**
|
|
222
224
|
* Data field
|
|
223
225
|
*/
|
|
@@ -288,7 +290,7 @@ export type ViewContainerProps<T extends DataTypes.StringRecord> = {
|
|
|
288
290
|
/**
|
|
289
291
|
* Left container properties
|
|
290
292
|
*/
|
|
291
|
-
leftContainerProps?: Omit<
|
|
293
|
+
leftContainerProps?: Omit<GridProps, "size"> & { size?: ViewPageItemSize };
|
|
292
294
|
|
|
293
295
|
/**
|
|
294
296
|
* Refresh function
|
|
@@ -400,7 +402,7 @@ export function ViewContainer<T extends DataTypes.StringRecord>(
|
|
|
400
402
|
|
|
401
403
|
// Layout
|
|
402
404
|
return (
|
|
403
|
-
<
|
|
405
|
+
<Grid
|
|
404
406
|
container
|
|
405
407
|
justifyContent="left"
|
|
406
408
|
className="ET-ViewContainer"
|
|
@@ -409,7 +411,7 @@ export function ViewContainer<T extends DataTypes.StringRecord>(
|
|
|
409
411
|
>
|
|
410
412
|
{leftContainer && (leftResult = leftContainer(data)) != null && (
|
|
411
413
|
<React.Fragment>
|
|
412
|
-
<
|
|
414
|
+
<Grid
|
|
413
415
|
container
|
|
414
416
|
className="ET-ViewPage-LeftContainer"
|
|
415
417
|
spacing={spacing}
|
|
@@ -417,8 +419,8 @@ export function ViewContainer<T extends DataTypes.StringRecord>(
|
|
|
417
419
|
{...leftContainerPropsRest}
|
|
418
420
|
>
|
|
419
421
|
{leftResult}
|
|
420
|
-
</
|
|
421
|
-
<
|
|
422
|
+
</Grid>
|
|
423
|
+
<Grid
|
|
422
424
|
container
|
|
423
425
|
className="ET-ViewPage-LeftOthers"
|
|
424
426
|
spacing={spacing}
|
|
@@ -428,10 +430,10 @@ export function ViewContainer<T extends DataTypes.StringRecord>(
|
|
|
428
430
|
data,
|
|
429
431
|
leftContainerLines * (12 - getItemSize(bp, size))
|
|
430
432
|
)}
|
|
431
|
-
</
|
|
433
|
+
</Grid>
|
|
432
434
|
</React.Fragment>
|
|
433
435
|
)}
|
|
434
436
|
{createFields(data)}
|
|
435
|
-
</
|
|
437
|
+
</Grid>
|
|
436
438
|
);
|
|
437
439
|
}
|
|
@@ -5,8 +5,6 @@ import {
|
|
|
5
5
|
} from "@etsoo/appscript";
|
|
6
6
|
import { CustomFieldReactCollection, ICustomFieldReact } from "@etsoo/react";
|
|
7
7
|
import { IdType, ListType2 } from "@etsoo/shared";
|
|
8
|
-
import { Grid2, GridSize, Typography } from "@mui/material";
|
|
9
|
-
import { TypographyProps } from "@mui/material/Typography";
|
|
10
8
|
import React from "react";
|
|
11
9
|
import { FieldCheckbox } from "./FieldCheckbox";
|
|
12
10
|
import { FieldAmountLabel } from "./FieldAmountLabel";
|
|
@@ -22,6 +20,8 @@ import { FieldRadio } from "./FieldRadio";
|
|
|
22
20
|
import { FieldSelect } from "./FieldSelect";
|
|
23
21
|
import { FieldSwitch } from "./FieldSwitch";
|
|
24
22
|
import { ResponsiveStyleValue } from "../ResponsiveStyleValue";
|
|
23
|
+
import Grid, { GridSize } from "@mui/material/Grid";
|
|
24
|
+
import Typography, { TypographyProps } from "@mui/material/Typography";
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Custom field utilities
|
|
@@ -83,13 +83,13 @@ export namespace CustomFieldUtils {
|
|
|
83
83
|
const creator = customFieldCreators[field.type];
|
|
84
84
|
if (creator == null) {
|
|
85
85
|
return (
|
|
86
|
-
<
|
|
86
|
+
<Grid
|
|
87
87
|
key={index}
|
|
88
88
|
size={transformSpace(field.space)}
|
|
89
89
|
{...field.gridItemProps}
|
|
90
90
|
>
|
|
91
91
|
{`Type ${field.type} is not supported currently`}
|
|
92
|
-
</
|
|
92
|
+
</Grid>
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
95
|
|
|
@@ -115,13 +115,13 @@ export namespace CustomFieldUtils {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
return (
|
|
118
|
-
<
|
|
118
|
+
<Grid
|
|
119
119
|
key={name ?? index}
|
|
120
120
|
size={transformSpace(field.space)}
|
|
121
121
|
{...field.gridItemProps}
|
|
122
122
|
>
|
|
123
123
|
{ui}
|
|
124
|
-
</
|
|
124
|
+
</Grid>
|
|
125
125
|
);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CustomFieldData } from "@etsoo/appscript";
|
|
2
|
-
import { Grid2, Grid2Props, Typography, TypographyProps } from "@mui/material";
|
|
3
2
|
import { CustomFieldUtils } from "./CustomFieldUtils";
|
|
4
3
|
import { MUGlobal } from "../MUGlobal";
|
|
5
4
|
import { VBox } from "../FlexBox";
|
|
6
5
|
import { DataTypes, Utils } from "@etsoo/shared";
|
|
6
|
+
import Grid, { GridProps } from "@mui/material/Grid";
|
|
7
|
+
import Typography, { TypographyProps } from "@mui/material/Typography";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Custom field viewer props
|
|
@@ -20,7 +21,7 @@ export type CustomFieldViewerProps = {
|
|
|
20
21
|
* Grid props
|
|
21
22
|
* 网格属性
|
|
22
23
|
*/
|
|
23
|
-
gridProps?:
|
|
24
|
+
gridProps?: GridProps;
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* JSON data
|
|
@@ -96,7 +97,7 @@ export function CustomFieldViewer(props: CustomFieldViewerProps) {
|
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
return (
|
|
99
|
-
<
|
|
100
|
+
<Grid
|
|
100
101
|
container
|
|
101
102
|
justifyContent="left"
|
|
102
103
|
spacing={spacing}
|
|
@@ -116,7 +117,7 @@ export function CustomFieldViewer(props: CustomFieldViewerProps) {
|
|
|
116
117
|
const value = Utils.getNestedValue(data, name);
|
|
117
118
|
|
|
118
119
|
return (
|
|
119
|
-
<
|
|
120
|
+
<Grid
|
|
120
121
|
key={name ?? index}
|
|
121
122
|
size={CustomFieldUtils.transformSpace(field.space)}
|
|
122
123
|
{...field.gridItemProps}
|
|
@@ -129,9 +130,9 @@ export function CustomFieldViewer(props: CustomFieldViewerProps) {
|
|
|
129
130
|
{valueLabelFormatter(value, field)}
|
|
130
131
|
</Typography>
|
|
131
132
|
</VBox>
|
|
132
|
-
</
|
|
133
|
+
</Grid>
|
|
133
134
|
);
|
|
134
135
|
})}
|
|
135
|
-
</
|
|
136
|
+
</Grid>
|
|
136
137
|
);
|
|
137
138
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CustomFieldData } from "@etsoo/appscript";
|
|
2
2
|
import { CustomFieldReactCollection } from "@etsoo/react";
|
|
3
3
|
import { Utils } from "@etsoo/shared";
|
|
4
|
-
import { Grid2, Grid2Props, Stack } from "@mui/material";
|
|
5
4
|
import React from "react";
|
|
6
5
|
import { MUGlobal } from "../MUGlobal";
|
|
7
6
|
import { CustomFieldUtils } from "./CustomFieldUtils";
|
|
8
7
|
import { useRequiredAppContext } from "../app/ReactApp";
|
|
8
|
+
import Grid, { GridProps } from "@mui/material/Grid";
|
|
9
|
+
import Stack from "@mui/material/Stack";
|
|
9
10
|
|
|
10
11
|
function calculateKeys(data: Record<string, unknown>) {
|
|
11
12
|
let count = 0;
|
|
@@ -64,7 +65,7 @@ export type CustomFieldWindowProps<D extends CustomFieldData> = {
|
|
|
64
65
|
* Grid props
|
|
65
66
|
* 网格属性
|
|
66
67
|
*/
|
|
67
|
-
gridProps?:
|
|
68
|
+
gridProps?: GridProps;
|
|
68
69
|
|
|
69
70
|
/**
|
|
70
71
|
* JSON data
|
|
@@ -153,7 +154,7 @@ export function CustomFieldWindow<D extends CustomFieldData = CustomFieldData>(
|
|
|
153
154
|
fullScreen: app.smDown,
|
|
154
155
|
inputs: (
|
|
155
156
|
<Stack marginTop={1.5}>
|
|
156
|
-
<
|
|
157
|
+
<Grid
|
|
157
158
|
container
|
|
158
159
|
justifyContent="left"
|
|
159
160
|
spacing={spacing}
|
|
@@ -175,7 +176,7 @@ export function CustomFieldWindow<D extends CustomFieldData = CustomFieldData>(
|
|
|
175
176
|
Utils.setNestedValue(data, name, value);
|
|
176
177
|
}
|
|
177
178
|
)}
|
|
178
|
-
</
|
|
179
|
+
</Grid>
|
|
179
180
|
</Stack>
|
|
180
181
|
)
|
|
181
182
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
2
2
|
import { NumberUtils } from "@etsoo/shared";
|
|
3
|
-
import
|
|
3
|
+
import FormHelperText from "@mui/material/FormHelperText";
|
|
4
|
+
import Typography from "@mui/material/Typography";
|
|
4
5
|
import React from "react";
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
2
2
|
import { IdType } from "@etsoo/shared";
|
|
3
|
-
import { Typography } from "@mui/material";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { OptionGroup } from "../OptionGroup";
|
|
5
|
+
import Typography from "@mui/material/Typography";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Checkbox (multiple values) field creator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IdType } from "@etsoo/shared";
|
|
2
|
-
import { Typography } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ComboBoxMultiple } from "../ComboBoxMultiple";
|
|
5
4
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
5
|
+
import Typography from "@mui/material/Typography";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Combobox (multiple values) field creator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
2
2
|
import { DateUtils } from "@etsoo/shared";
|
|
3
|
-
import { Typography } from "@mui/material";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { InputField } from "../InputField";
|
|
5
|
+
import Typography from "@mui/material/Typography";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Date input field creator
|
package/src/custom/FieldJson.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
2
|
-
import { Typography } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { InputField } from "../InputField";
|
|
4
|
+
import Typography from "@mui/material/Typography";
|
|
5
5
|
|
|
6
6
|
function parseJson(value: string | undefined | null) {
|
|
7
7
|
if (value) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
2
|
-
import { Typography } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { NumberInputField } from "../NumberInputField";
|
|
5
4
|
import { NumberUtils } from "@etsoo/shared";
|
|
5
|
+
import Typography from "@mui/material/Typography";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Number input field creator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
2
2
|
import { IdType } from "@etsoo/shared";
|
|
3
|
-
import { Typography } from "@mui/material";
|
|
4
3
|
import React from "react";
|
|
5
4
|
import { OptionGroup } from "../OptionGroup";
|
|
5
|
+
import Typography from "@mui/material/Typography";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Radio (single value) field creator
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IdType } from "@etsoo/shared";
|
|
2
|
-
import { Typography } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ICustomFieldReact } from "@etsoo/react";
|
|
5
4
|
import { SelectEx } from "../SelectEx";
|
|
5
|
+
import Typography from "@mui/material/Typography";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Select (single value) field creator
|
package/src/pages/CommonPage.tsx
CHANGED
|
@@ -3,7 +3,6 @@ import { FabBox } from "../FabBox";
|
|
|
3
3
|
import { ScrollTopFab } from "../ScrollTopFab";
|
|
4
4
|
import { MUGlobal } from "../MUGlobal";
|
|
5
5
|
import { MoreFab } from "../MoreFab";
|
|
6
|
-
import { Container, ContainerProps, Fab, Theme, useTheme } from "@mui/material";
|
|
7
6
|
import RefreshIcon from "@mui/icons-material/Refresh";
|
|
8
7
|
import { BackButton } from "../BackButton";
|
|
9
8
|
import { Labels } from "../app/Labels";
|
|
@@ -11,6 +10,9 @@ import type { CustomFabSize } from "../CustomFabProps";
|
|
|
11
10
|
import type { IStateUpdate, ListItemReact } from "@etsoo/react";
|
|
12
11
|
import type { UserKey } from "@etsoo/appscript";
|
|
13
12
|
import { useAppContext } from "../app/ReactApp";
|
|
13
|
+
import Container, { ContainerProps } from "@mui/material/Container";
|
|
14
|
+
import { Theme, useTheme } from "@mui/material/styles";
|
|
15
|
+
import Fab from "@mui/material/Fab";
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* Common page props
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
useCombinedRefs,
|
|
8
8
|
useDimensions
|
|
9
9
|
} from "@etsoo/react";
|
|
10
|
-
import { Box, Stack } from "@mui/material";
|
|
11
10
|
import React from "react";
|
|
12
11
|
import { DataGridEx } from "../DataGridEx";
|
|
13
12
|
import { MUGlobal } from "../MUGlobal";
|
|
@@ -15,6 +14,8 @@ import { SearchBar } from "../SearchBar";
|
|
|
15
14
|
import { CommonPage } from "./CommonPage";
|
|
16
15
|
import type { DataGridPageProps } from "./DataGridPageProps";
|
|
17
16
|
import { GridUtils } from "../GridUtils";
|
|
17
|
+
import Stack from "@mui/material/Stack";
|
|
18
|
+
import Box from "@mui/material/Box";
|
|
18
19
|
|
|
19
20
|
interface LocalStates<T> {
|
|
20
21
|
data?: FormData;
|
package/src/pages/EditPage.tsx
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Button, Grid2 } from "@mui/material";
|
|
2
1
|
import React, { FormEventHandler } from "react";
|
|
3
2
|
import { MUGlobal } from "../MUGlobal";
|
|
4
3
|
import { CommonPage, CommonPageProps } from "./CommonPage";
|
|
@@ -8,6 +7,8 @@ import { BackButton } from "../BackButton";
|
|
|
8
7
|
import { Labels } from "../app/Labels";
|
|
9
8
|
import type { OperationMessageHandlerAll } from "../messages/OperationMessageHandler";
|
|
10
9
|
import { OperationMessageContainer } from "../messages/OperationMessageContainer";
|
|
10
|
+
import Grid from "@mui/material/Grid";
|
|
11
|
+
import Button from "@mui/material/Button";
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Add / Edit page props
|
|
@@ -86,15 +87,10 @@ export function EditPage(props: EditPageProps) {
|
|
|
86
87
|
)}
|
|
87
88
|
{topPart}
|
|
88
89
|
<form onSubmit={onSubmit}>
|
|
89
|
-
<
|
|
90
|
-
container
|
|
91
|
-
justifyContent="left"
|
|
92
|
-
spacing={paddings}
|
|
93
|
-
paddingTop={1}
|
|
94
|
-
>
|
|
90
|
+
<Grid container justifyContent="left" spacing={paddings} paddingTop={1}>
|
|
95
91
|
{children}
|
|
96
|
-
</
|
|
97
|
-
<
|
|
92
|
+
</Grid>
|
|
93
|
+
<Grid
|
|
98
94
|
container
|
|
99
95
|
position="sticky"
|
|
100
96
|
display="flex"
|
|
@@ -126,7 +122,7 @@ export function EditPage(props: EditPageProps) {
|
|
|
126
122
|
{labels.save}
|
|
127
123
|
</Button>
|
|
128
124
|
{supportBack && <BackButton title={labels.back} />}
|
|
129
|
-
</
|
|
125
|
+
</Grid>
|
|
130
126
|
</form>
|
|
131
127
|
{bottomPart}
|
|
132
128
|
</CommonPage>
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
useCombinedRefs,
|
|
8
8
|
useDimensions
|
|
9
9
|
} from "@etsoo/react";
|
|
10
|
-
import { Box, Stack } from "@mui/material";
|
|
11
10
|
import React from "react";
|
|
12
11
|
import { MUGlobal } from "../MUGlobal";
|
|
13
12
|
import { ScrollerListEx } from "../ScrollerListEx";
|
|
@@ -15,6 +14,8 @@ import { SearchBar } from "../SearchBar";
|
|
|
15
14
|
import { CommonPage } from "./CommonPage";
|
|
16
15
|
import { GridUtils } from "../GridUtils";
|
|
17
16
|
import type { ListPageProps } from "./ListPage";
|
|
17
|
+
import Box from "@mui/material/Box";
|
|
18
|
+
import Stack from "@mui/material/Stack";
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Fixed height list page
|
package/src/pages/LeftDrawer.tsx
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Avatar,
|
|
3
|
-
Divider,
|
|
4
|
-
Drawer,
|
|
5
|
-
IconButton,
|
|
6
|
-
List,
|
|
7
|
-
Typography
|
|
8
|
-
} from "@mui/material";
|
|
9
1
|
import React from "react";
|
|
10
2
|
import ChevronLeftIcon from "@mui/icons-material/ChevronLeft";
|
|
11
3
|
import { DrawerHeader } from "./DrawerHeader";
|
|
12
4
|
import { useAppContext } from "../app/ReactApp";
|
|
5
|
+
import Drawer from "@mui/material/Drawer";
|
|
6
|
+
import Avatar from "@mui/material/Avatar";
|
|
7
|
+
import Typography from "@mui/material/Typography";
|
|
8
|
+
import IconButton from "@mui/material/IconButton";
|
|
9
|
+
import Divider from "@mui/material/Divider";
|
|
10
|
+
import List from "@mui/material/List";
|
|
13
11
|
|
|
14
12
|
/**
|
|
15
13
|
* Left drawer props
|