@etsoo/materialui 1.5.1 → 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/GridDataFormat.js +3 -0
- 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 +6 -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/GridDataFormat.js +3 -0
- 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 +6 -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/GridDataFormat.tsx +3 -0
- 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 +17 -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/OptionGroup.js
CHANGED
|
@@ -6,8 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.OptionGroup = OptionGroup;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const shared_1 = require("@etsoo/shared");
|
|
9
|
-
const
|
|
9
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
10
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
11
|
+
const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
|
|
12
|
+
const FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
|
|
13
|
+
const FormGroup_1 = __importDefault(require("@mui/material/FormGroup"));
|
|
14
|
+
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
|
|
15
|
+
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
10
16
|
const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
|
|
17
|
+
const Radio_1 = __importDefault(require("@mui/material/Radio"));
|
|
18
|
+
const RadioGroup_1 = __importDefault(require("@mui/material/RadioGroup"));
|
|
11
19
|
const react_1 = __importDefault(require("react"));
|
|
12
20
|
/**
|
|
13
21
|
* OptionGroup
|
|
@@ -60,7 +68,7 @@ function OptionGroup(props) {
|
|
|
60
68
|
// Value
|
|
61
69
|
const ov = getOptionValue(option);
|
|
62
70
|
// Control
|
|
63
|
-
const control = multiple ? ((0, jsx_runtime_1.jsx)(
|
|
71
|
+
const control = multiple ? ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { name: name, readOnly: readOnly, size: itemSize, checked: itemChecked(option), disabled: disabledIds?.includes(ov), onChange: (event) => {
|
|
64
72
|
if (firstOptionValue == null)
|
|
65
73
|
return;
|
|
66
74
|
const typeValue = shared_1.Utils.parseString(event.target.value, firstOptionValue);
|
|
@@ -76,16 +84,16 @@ function OptionGroup(props) {
|
|
|
76
84
|
if (onValueChange)
|
|
77
85
|
onValueChange(changedValues);
|
|
78
86
|
setValues(changedValues);
|
|
79
|
-
} })) : ((0, jsx_runtime_1.jsx)(
|
|
87
|
+
} })) : ((0, jsx_runtime_1.jsx)(Radio_1.default, { disabled: disabledIds?.includes(ov), size: itemSize, readOnly: readOnly }));
|
|
80
88
|
// Label
|
|
81
89
|
const label = getOptionLabel == null ? `${option[labelField]}` : getOptionLabel(option);
|
|
82
90
|
// Value, convert to string
|
|
83
91
|
// Will fail when type is number
|
|
84
92
|
const value = getOptionValue(option);
|
|
85
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(FormControlLabel_1.default, { control: control, value: value, label: label }, value));
|
|
86
94
|
});
|
|
87
95
|
// Group
|
|
88
|
-
const group = multiple ? ((0, jsx_runtime_1.jsx)(
|
|
96
|
+
const group = multiple ? ((0, jsx_runtime_1.jsx)(FormGroup_1.default, { row: row, children: list })) : ((0, jsx_runtime_1.jsx)(RadioGroup_1.default, { row: row, name: name, value: values[0] ?? "", onChange: (_event, value) => {
|
|
89
97
|
if (firstOptionValue == null)
|
|
90
98
|
return;
|
|
91
99
|
const typeValue = shared_1.Utils.parseString(value, firstOptionValue);
|
|
@@ -94,7 +102,7 @@ function OptionGroup(props) {
|
|
|
94
102
|
setValues([typeValue]);
|
|
95
103
|
}, children: list }));
|
|
96
104
|
// Layout
|
|
97
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(
|
|
105
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: fullWidth, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
|
|
98
106
|
cursor: "default",
|
|
99
107
|
display: "flex",
|
|
100
108
|
gap: 1,
|
|
@@ -104,5 +112,5 @@ function OptionGroup(props) {
|
|
|
104
112
|
"& input": {
|
|
105
113
|
display: "none"
|
|
106
114
|
}
|
|
107
|
-
} })) : ((0, jsx_runtime_1.jsx)(
|
|
115
|
+
} })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && ((0, jsx_runtime_1.jsx)(FormHelperText_1.default, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
|
|
108
116
|
}
|
|
@@ -6,7 +6,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.OptionGroupFlag = OptionGroupFlag;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const shared_1 = require("@etsoo/shared");
|
|
9
|
-
const
|
|
9
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
10
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
11
|
+
const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
|
|
12
|
+
const FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
|
|
13
|
+
const FormGroup_1 = __importDefault(require("@mui/material/FormGroup"));
|
|
14
|
+
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
|
|
15
|
+
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
10
16
|
const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
|
|
11
17
|
const react_1 = __importDefault(require("react"));
|
|
12
18
|
/**
|
|
@@ -56,7 +62,7 @@ function OptionGroupFlag(props) {
|
|
|
56
62
|
if (ov == null)
|
|
57
63
|
return;
|
|
58
64
|
// Control
|
|
59
|
-
const control = ((0, jsx_runtime_1.jsx)(
|
|
65
|
+
const control = ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { name: name, readOnly: readOnly, size: itemSize, checked: itemChecked(option), disabled: disabledIds?.includes(ov), onChange: (event) => {
|
|
60
66
|
if (firstOptionValue == null)
|
|
61
67
|
return;
|
|
62
68
|
const typeValue = shared_1.Utils.parseString(event.target.value, firstOptionValue);
|
|
@@ -73,12 +79,12 @@ function OptionGroupFlag(props) {
|
|
|
73
79
|
} }));
|
|
74
80
|
// Label
|
|
75
81
|
const label = getOptionLabel == null ? `${option[labelField]}` : getOptionLabel(option);
|
|
76
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
82
|
+
return ((0, jsx_runtime_1.jsx)(FormControlLabel_1.default, { control: control, value: ov, label: label }, ov));
|
|
77
83
|
});
|
|
78
84
|
// Group
|
|
79
|
-
const group = (0, jsx_runtime_1.jsx)(
|
|
85
|
+
const group = (0, jsx_runtime_1.jsx)(FormGroup_1.default, { row: row, children: list });
|
|
80
86
|
// Layout
|
|
81
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(
|
|
87
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: fullWidth, sx: sx, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
|
|
82
88
|
cursor: "default",
|
|
83
89
|
display: "flex",
|
|
84
90
|
gap: 1,
|
|
@@ -88,5 +94,5 @@ function OptionGroupFlag(props) {
|
|
|
88
94
|
"& input": {
|
|
89
95
|
display: "none"
|
|
90
96
|
}
|
|
91
|
-
} })) : ((0, jsx_runtime_1.jsx)(
|
|
97
|
+
} })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && ((0, jsx_runtime_1.jsx)(FormHelperText_1.default, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
|
|
92
98
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CircularProgressProps
|
|
1
|
+
import { CircularProgressProps } from "@mui/material/CircularProgress";
|
|
2
|
+
import { TypographyProps } from "@mui/material/Typography";
|
|
2
3
|
export type PercentCircularProgressProps = CircularProgressProps & {
|
|
3
4
|
value: number;
|
|
4
5
|
valueUnit?: string;
|
|
@@ -1,13 +1,18 @@
|
|
|
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.PercentCircularProgress = PercentCircularProgress;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
6
11
|
function PercentCircularProgress(props) {
|
|
7
12
|
// Destruct
|
|
8
13
|
const { textProps, valueUnit = "%", ...rest } = props;
|
|
9
14
|
// Component
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { position: "relative", display: "inline-flex" }, children: [(0, jsx_runtime_1.jsx)(CircularProgress_1.default, { variant: "determinate", ...rest }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
|
|
11
16
|
top: 0,
|
|
12
17
|
left: 0,
|
|
13
18
|
bottom: 0,
|
|
@@ -16,5 +21,5 @@ function PercentCircularProgress(props) {
|
|
|
16
21
|
display: "flex",
|
|
17
22
|
alignItems: "center",
|
|
18
23
|
justifyContent: "center"
|
|
19
|
-
}, children: (0, jsx_runtime_1.jsx)(
|
|
24
|
+
}, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", component: "div", color: "text.secondary", ...textProps, children: `${Math.round(props.value)}${valueUnit}` }) })] }));
|
|
20
25
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { LinearProgressProps
|
|
1
|
+
import { LinearProgressProps } from "@mui/material/LinearProgress";
|
|
2
|
+
import { TypographyProps } from "@mui/material/Typography";
|
|
2
3
|
export type PercentLinearProgressProps = LinearProgressProps & {
|
|
3
4
|
value: number;
|
|
4
5
|
valueUnit?: string;
|
|
@@ -1,11 +1,16 @@
|
|
|
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.PercentLinearProgress = PercentLinearProgress;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
+
const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
6
11
|
function PercentLinearProgress(props) {
|
|
7
12
|
// Destruct
|
|
8
13
|
const { textProps, valueUnit = "%", ...rest } = props;
|
|
9
14
|
// Component
|
|
10
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { display: "flex", alignItems: "center", flexGrow: 2 }, children: [(0, jsx_runtime_1.jsx)(Box_1.default, { sx: { width: "100%", mr: 1 }, children: (0, jsx_runtime_1.jsx)(LinearProgress_1.default, { variant: "determinate", ...rest }) }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: { minWidth: 35 }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", color: "text.secondary", ...textProps, children: `${Math.round(props.value)}${valueUnit}` }) })] }));
|
|
11
16
|
}
|
package/lib/cjs/ProgressCount.js
CHANGED
|
@@ -5,7 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ProgressCount = ProgressCount;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
10
|
+
const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
|
|
11
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
9
12
|
const react_1 = __importDefault(require("react"));
|
|
10
13
|
/**
|
|
11
14
|
* Progress count
|
|
@@ -65,8 +68,8 @@ function ProgressCount(props) {
|
|
|
65
68
|
};
|
|
66
69
|
}, []);
|
|
67
70
|
if (linear)
|
|
68
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
69
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
71
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { display: "flex", alignItems: "center", width: "100%" }, children: [(0, jsx_runtime_1.jsx)(Box_1.default, { sx: { width: "100%", mr: 1 }, children: (0, jsx_runtime_1.jsx)(LinearProgress_1.default, { variant: variant, value: progressValue }) }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: { minWidth }, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "body2", color: "text.secondary", children: `${value}${valueUnit}` }) })] }));
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: { position: "relative", display: "inline-flex" }, children: [(0, jsx_runtime_1.jsx)(CircularProgress_1.default, { variant: variant, value: progressValue }), (0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
|
|
70
73
|
top: 0,
|
|
71
74
|
left: 0,
|
|
72
75
|
bottom: 0,
|
|
@@ -75,5 +78,5 @@ function ProgressCount(props) {
|
|
|
75
78
|
display: "flex",
|
|
76
79
|
alignItems: "center",
|
|
77
80
|
justifyContent: "center"
|
|
78
|
-
}, children: (0, jsx_runtime_1.jsx)(
|
|
81
|
+
}, children: (0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "caption", component: "div", color: "text.secondary", children: `${value}${valueUnit}` }) })] }));
|
|
79
82
|
}
|
package/lib/cjs/QuickList.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ListType2 } from "@etsoo/shared";
|
|
2
|
-
import { ListItemButtonProps, ListItemProps, StackProps } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { InputFieldProps } from "./InputField";
|
|
4
|
+
import { StackProps } from "@mui/material/Stack";
|
|
5
|
+
import { ListItemButtonProps } from "@mui/material/ListItemButton";
|
|
6
|
+
import { ListItemProps } from "@mui/material/ListItem";
|
|
5
7
|
/**
|
|
6
8
|
* Quick list props
|
|
7
9
|
*/
|
package/lib/cjs/QuickList.js
CHANGED
|
@@ -6,11 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.QuickList = QuickList;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const shared_1 = require("@etsoo/shared");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const react_1 = __importDefault(require("react"));
|
|
11
10
|
const InputField_1 = require("./InputField");
|
|
12
11
|
const FlexBox_1 = require("./FlexBox");
|
|
13
12
|
const ReactApp_1 = require("./app/ReactApp");
|
|
13
|
+
const ListItemButton_1 = __importDefault(require("@mui/material/ListItemButton"));
|
|
14
|
+
const ListItem_1 = __importDefault(require("@mui/material/ListItem"));
|
|
15
|
+
const LinearProgress_1 = __importDefault(require("@mui/material/LinearProgress"));
|
|
16
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
17
|
+
const List_1 = __importDefault(require("@mui/material/List"));
|
|
14
18
|
/**
|
|
15
19
|
* Quick list
|
|
16
20
|
* @param props Props
|
|
@@ -41,7 +45,7 @@ function QuickList(props) {
|
|
|
41
45
|
event.preventDefault();
|
|
42
46
|
event.stopPropagation();
|
|
43
47
|
loadDataLocal(event.target.value);
|
|
44
|
-
}, fullWidth: true, ...inputProps }), loading ? ((0, jsx_runtime_1.jsx)(
|
|
48
|
+
}, fullWidth: true, ...inputProps }), loading ? ((0, jsx_runtime_1.jsx)(LinearProgress_1.default, {})) : items.length === 0 ? ((0, jsx_runtime_1.jsx)(Typography_1.default, { textAlign: "center", children: noMatchesLabel })) : ((0, jsx_runtime_1.jsx)(List_1.default, { children: items.map((item) => ((0, jsx_runtime_1.jsx)(ListItem_1.default, { disablePadding: true, ...itemProps, children: (0, jsx_runtime_1.jsx)(ListItemButton_1.default, { onClick: (event) => {
|
|
45
49
|
if (onClick)
|
|
46
50
|
onClick(event);
|
|
47
51
|
if (!event.defaultPrevented && onItemClick)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SxProps, Theme } from "@mui/material";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { ListChildComponentProps } from "react-window";
|
|
4
3
|
import { GridColumn, GridJsonData, GridMethodRef, GridTemplateType } from "@etsoo/react";
|
|
5
4
|
import { DataGridExProps } from "./DataGridEx";
|
|
6
5
|
import { ScrollerListExInnerItemRendererProps, ScrollerListExItemSize } from "./ScrollerListEx";
|
|
6
|
+
import { SxProps, Theme } from "@mui/material/styles";
|
|
7
7
|
/**
|
|
8
8
|
* ResponsibleContainer props
|
|
9
9
|
*/
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ResponsibleContainer = ResponsibleContainer;
|
|
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 DataGridEx_1 = require("./DataGridEx");
|
|
@@ -15,6 +14,9 @@ const ScrollerListEx_1 = require("./ScrollerListEx");
|
|
|
15
14
|
const SearchBar_1 = require("./SearchBar");
|
|
16
15
|
const Labels_1 = require("./app/Labels");
|
|
17
16
|
const GridUtils_1 = require("./GridUtils");
|
|
17
|
+
const useMediaQuery_1 = __importDefault(require("@mui/material/useMediaQuery"));
|
|
18
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
19
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
18
20
|
function defaultContainerBoxSx(paddings, hasField, _dataGrid) {
|
|
19
21
|
const half = typeof paddings == "number" ? paddings / 2 : MUGlobal_1.MUGlobal.half(paddings);
|
|
20
22
|
return {
|
|
@@ -42,7 +44,7 @@ function ResponsibleContainer(props) {
|
|
|
42
44
|
state.ref = ref;
|
|
43
45
|
});
|
|
44
46
|
// Screen size detection
|
|
45
|
-
const showDataGrid = (0,
|
|
47
|
+
const showDataGrid = (0, useMediaQuery_1.default)("(min-width:600px)");
|
|
46
48
|
// Update mounted state
|
|
47
49
|
react_1.default.useEffect(() => {
|
|
48
50
|
return () => {
|
|
@@ -150,7 +152,7 @@ function ResponsibleContainer(props) {
|
|
|
150
152
|
if (showDataGrid) {
|
|
151
153
|
// Delete
|
|
152
154
|
delete rest.itemRenderer;
|
|
153
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
155
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "DataGridBox", children: (0, jsx_runtime_1.jsx)(DataGridEx_1.DataGridEx, { autoLoad: !hasFields, height: heightLocal, width: rect.width, loadData: localLoadData, mRef: mRefs, onDoubleClick: (_, data) => quickAction && quickAction(data), outerRef: (element) => {
|
|
154
156
|
if (element != null && elementReady)
|
|
155
157
|
elementReady(element, true);
|
|
156
158
|
}, onScroll: onGridScroll, columns: columns, onUpdateRows: GridUtils_1.GridUtils.getUpdateRowsHandler(cacheKey), onInitLoad: onInitLoad, ...rest }) }));
|
|
@@ -164,7 +166,7 @@ function ResponsibleContainer(props) {
|
|
|
164
166
|
delete rest.hideFooter;
|
|
165
167
|
delete rest.hoverColor;
|
|
166
168
|
delete rest.selectable;
|
|
167
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
169
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "ListBox", sx: { height: heightLocal }, children: (0, jsx_runtime_1.jsx)(ScrollerListEx_1.ScrollerListEx, { autoLoad: !hasFields, height: heightLocal, loadData: localLoadData, onUpdateRows: GridUtils_1.GridUtils.getUpdateRowsHandler(cacheKey), onInitLoad: onInitLoad, mRef: mRefs, onClick: (event, data) => quickAction && react_2.ReactUtils.isSafeClick(event) && quickAction(data), oRef: (element) => {
|
|
168
170
|
if (element != null && elementReady)
|
|
169
171
|
elementReady(element, false);
|
|
170
172
|
}, onScroll: onListScroll, ...rest }) }));
|
|
@@ -185,9 +187,9 @@ function ResponsibleContainer(props) {
|
|
|
185
187
|
? ".DataGridEx-Body"
|
|
186
188
|
: ".ScrollerListEx-Body";
|
|
187
189
|
// Layout
|
|
188
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
190
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: containerBoxSx == null
|
|
189
191
|
? undefined
|
|
190
|
-
: containerBoxSx(paddings, hasFields, showDataGrid), children: [(0, jsx_runtime_1.jsxs)(
|
|
192
|
+
: containerBoxSx(paddings, hasFields, showDataGrid), children: [(0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, { ref: dimensions[0][0], className: "SearchBox", sx: {
|
|
191
193
|
height: hasFields ? searchBarHeight : 0
|
|
192
194
|
}, marginBottom: hasFields ? `${searchBarBottom}px!important` : undefined, children: searchBar }), list] }), pullToRefresh && pullContainer && list != null && ((0, jsx_runtime_1.jsx)(PullToRefreshUI_1.PullToRefreshUI, { mainElement: pullContainer, triggerElement: pullContainer, instructionsPullToRefresh: labels.pullToRefresh, instructionsReleaseToRefresh: labels.releaseToRefresh, instructionsRefreshing: labels.refreshing, onRefresh: () => state.ref?.reset(), shouldPullToRefresh: () => {
|
|
193
195
|
const container = document.querySelector(pullContainer);
|
package/lib/cjs/ScrollTopFab.js
CHANGED
|
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ScrollTopFab = ScrollTopFab;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const VerticalAlignTop_1 = __importDefault(require("@mui/icons-material/VerticalAlignTop"));
|
|
10
|
+
const useScrollTrigger_1 = __importDefault(require("@mui/material/useScrollTrigger"));
|
|
11
|
+
const Zoom_1 = __importDefault(require("@mui/material/Zoom"));
|
|
12
|
+
const Fab_1 = __importDefault(require("@mui/material/Fab"));
|
|
11
13
|
/**
|
|
12
14
|
* Scroll to top fab
|
|
13
15
|
* @returns Component
|
|
@@ -16,7 +18,7 @@ function ScrollTopFab(props) {
|
|
|
16
18
|
// Destruct
|
|
17
19
|
const { color, size, target, title } = props;
|
|
18
20
|
// Scroll trigger
|
|
19
|
-
const trigger = (0,
|
|
21
|
+
const trigger = (0, useScrollTrigger_1.default)({
|
|
20
22
|
target,
|
|
21
23
|
disableHysteresis: true,
|
|
22
24
|
threshold: 120
|
|
@@ -26,5 +28,5 @@ function ScrollTopFab(props) {
|
|
|
26
28
|
const handleClick = () => {
|
|
27
29
|
target.scrollTo({ top: 0 });
|
|
28
30
|
};
|
|
29
|
-
return trigger ? ((0, jsx_runtime_1.jsx)(
|
|
31
|
+
return trigger ? ((0, jsx_runtime_1.jsx)(Zoom_1.default, { in: trigger, children: (0, jsx_runtime_1.jsx)(Fab_1.default, { color: color, size: size, title: title, onClick: handleClick, children: (0, jsx_runtime_1.jsx)(VerticalAlignTop_1.default, {}) }) })) : ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, {}));
|
|
30
32
|
}
|
|
@@ -8,9 +8,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
8
8
|
const css_1 = require("@emotion/css");
|
|
9
9
|
const react_1 = require("@etsoo/react");
|
|
10
10
|
const shared_1 = require("@etsoo/shared");
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
11
|
const react_2 = __importDefault(require("react"));
|
|
13
12
|
const MUGlobal_1 = require("./MUGlobal");
|
|
13
|
+
const styles_1 = require("@mui/material/styles");
|
|
14
14
|
// Scroll bar size
|
|
15
15
|
const scrollbarSize = 16;
|
|
16
16
|
// Selected class name
|
|
@@ -132,7 +132,7 @@ function ScrollerListEx(props) {
|
|
|
132
132
|
});
|
|
133
133
|
}, onClick, onDoubleClick, onSelectChange, selectedColor = "#edf4fb", ...rest } = props;
|
|
134
134
|
// Theme
|
|
135
|
-
const theme = (0,
|
|
135
|
+
const theme = (0, styles_1.useTheme)();
|
|
136
136
|
// Cache calculation
|
|
137
137
|
const itemSizeResult = react_2.default.useMemo(() => {
|
|
138
138
|
if (typeof itemSize === "function")
|
package/lib/cjs/SearchBar.js
CHANGED
|
@@ -5,12 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SearchBar = SearchBar;
|
|
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 MoreHoriz_1 = __importDefault(require("@mui/icons-material/MoreHoriz"));
|
|
11
10
|
const shared_1 = require("@etsoo/shared");
|
|
12
11
|
const react_2 = require("@etsoo/react");
|
|
13
12
|
const Labels_1 = require("./app/Labels");
|
|
13
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
14
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
15
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
16
|
+
const Drawer_1 = __importDefault(require("@mui/material/Drawer"));
|
|
17
|
+
const Toolbar_1 = __importDefault(require("@mui/material/Toolbar"));
|
|
14
18
|
// Cached width attribute name
|
|
15
19
|
const cachedWidthName = "data-cached-width";
|
|
16
20
|
// Reset form
|
|
@@ -243,7 +247,7 @@ function SearchBar(props) {
|
|
|
243
247
|
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)("form", { id: "SearchBarForm", className: className, onChange: handleForm, ref: (form) => {
|
|
244
248
|
if (form)
|
|
245
249
|
state.form = form;
|
|
246
|
-
}, children: (0, jsx_runtime_1.jsxs)(
|
|
250
|
+
}, children: (0, jsx_runtime_1.jsxs)(Stack_1.default, { ref: dimensions[0][0], className: "SearchBarContainer", justifyContent: "center", alignItems: "center", direction: "row", spacing: `${itemGap}px`, width: width, overflow: "hidden", paddingTop: "6px", sx: {
|
|
247
251
|
"& > :not(style)": {
|
|
248
252
|
flexBasis: "auto",
|
|
249
253
|
flexGrow: 0,
|
|
@@ -258,15 +262,15 @@ function SearchBar(props) {
|
|
|
258
262
|
display: "block",
|
|
259
263
|
visibility: "visible"
|
|
260
264
|
}
|
|
261
|
-
}, children: [fields.map((item, index) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: item }, index))), (0, jsx_runtime_1.jsx)(
|
|
265
|
+
}, children: [fields.map((item, index) => ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: item }, index))), (0, jsx_runtime_1.jsx)(IconButton_1.default, { title: labels.more, size: "medium", sx: { height: "40px" }, onClick: handleMore, children: (0, jsx_runtime_1.jsx)(MoreHoriz_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default, { variant: "contained", size: "medium", ref: resetButtonRef, onClick: handleReset, children: labels.reset })] }) }), hasMoreItems && ((0, jsx_runtime_1.jsxs)(Drawer_1.default, { anchor: "right", sx: {
|
|
262
266
|
minWidth: "180px",
|
|
263
267
|
paddingTop: typeof top === "number" ? `${top}px` : undefined
|
|
264
268
|
}, ModalProps: {
|
|
265
269
|
keepMounted: true
|
|
266
|
-
}, open: open, onClose: () => updateOpen(false), children: [top === true && (0, jsx_runtime_1.jsx)(
|
|
270
|
+
}, open: open, onClose: () => updateOpen(false), children: [top === true && (0, jsx_runtime_1.jsx)(Toolbar_1.default, {}), (0, jsx_runtime_1.jsx)("form", { onChange: moreFormChange, ref: (form) => {
|
|
267
271
|
if (form)
|
|
268
272
|
state.moreForm = form;
|
|
269
|
-
}, children: (0, jsx_runtime_1.jsx)(
|
|
273
|
+
}, children: (0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "column", alignItems: "stretch", spacing: 2, padding: 2, sx: {
|
|
270
274
|
"& > :not(style)": {
|
|
271
275
|
minWidth: "100px"
|
|
272
276
|
}
|
package/lib/cjs/SearchField.d.ts
CHANGED
package/lib/cjs/SearchField.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.SearchField = SearchField;
|
|
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 react_2 = __importDefault(require("react"));
|
|
11
10
|
const MUGlobal_1 = require("./MUGlobal");
|
|
11
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
12
12
|
/**
|
|
13
13
|
* Search field
|
|
14
14
|
* @param props Props
|
|
@@ -52,5 +52,5 @@ function SearchField(props) {
|
|
|
52
52
|
};
|
|
53
53
|
}, []);
|
|
54
54
|
// Layout
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
55
|
+
return ((0, jsx_runtime_1.jsx)(TextField_1.default, { InputLabelProps: InputLabelProps, InputProps: InputProps, inputProps: inputProps, onChange: onChangeEx, size: size, variant: variant, ...rest }));
|
|
56
56
|
}
|
package/lib/cjs/SelectEx.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SelectProps, SelectVariants } from "@mui/material";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { DataTypes, IdDefaultType, LabelDefaultType, ListType } from "@etsoo/shared";
|
|
3
|
+
import { SelectProps, SelectVariants } from "@mui/material/Select";
|
|
4
4
|
/**
|
|
5
5
|
* Extended select component props
|
|
6
6
|
*/
|
package/lib/cjs/SelectEx.js
CHANGED
|
@@ -5,13 +5,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SelectEx = SelectEx;
|
|
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");
|
|
11
10
|
const ListItemRightIcon_1 = require("./ListItemRightIcon");
|
|
12
|
-
const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
|
|
13
11
|
const shared_1 = require("@etsoo/shared");
|
|
14
12
|
const react_2 = require("@etsoo/react");
|
|
13
|
+
const Select_1 = __importDefault(require("@mui/material/Select"));
|
|
14
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
15
|
+
const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
|
|
16
|
+
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
17
|
+
const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
|
|
18
|
+
const MenuItem_1 = __importDefault(require("@mui/material/MenuItem"));
|
|
19
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
20
|
+
const ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
|
|
21
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
22
|
+
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
|
|
23
|
+
const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
|
|
15
24
|
/**
|
|
16
25
|
* Extended select component
|
|
17
26
|
* @param props Props
|
|
@@ -131,11 +140,11 @@ function SelectEx(props) {
|
|
|
131
140
|
};
|
|
132
141
|
}, [multiple]);
|
|
133
142
|
// Layout
|
|
134
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
143
|
+
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { size: search ? MUGlobal_1.MUGlobal.searchFieldSize : MUGlobal_1.MUGlobal.inputFieldSize, fullWidth: fullWidth, error: error, children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { id: labelId, variant: variant, shrink: search ? MUGlobal_1.MUGlobal.searchFieldShrink : MUGlobal_1.MUGlobal.inputFieldShrink, required: required, children: label }), (0, jsx_runtime_1.jsx)(Select_1.default, { ref: divRef, value: multiple
|
|
135
144
|
? valueState
|
|
136
145
|
: localOptions.some((o) => o[idField] === valueState)
|
|
137
146
|
? valueState
|
|
138
|
-
: "", input: (0, jsx_runtime_1.jsx)(
|
|
147
|
+
: "", input: (0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { notched: true, label: label, required: required, inputProps: { "data-reset": inputReset } }), labelId: labelId, name: name, multiple: multiple, onChange: (event, child) => {
|
|
139
148
|
if (onChange) {
|
|
140
149
|
onChange(event, child);
|
|
141
150
|
// event.preventDefault() will block executing
|
|
@@ -167,14 +176,14 @@ function SelectEx(props) {
|
|
|
167
176
|
// Option label
|
|
168
177
|
const label = getLabel(option);
|
|
169
178
|
// Option
|
|
170
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
179
|
+
return ((0, jsx_runtime_1.jsxs)(MenuItem_1.default, { value: id, onClick: (event) => {
|
|
171
180
|
if (onItemClick) {
|
|
172
181
|
onItemClick(event, option);
|
|
173
182
|
}
|
|
174
|
-
}, style: itemStyle == null ? undefined : itemStyle(option), children: [multiple && ((0, jsx_runtime_1.jsx)(
|
|
183
|
+
}, style: itemStyle == null ? undefined : itemStyle(option), children: [multiple && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { checked: Array.isArray(valueState)
|
|
175
184
|
? valueState.includes(id)
|
|
176
|
-
: valueState === id })), (0, jsx_runtime_1.jsx)(
|
|
177
|
-
}) }), helperText != null && (0, jsx_runtime_1.jsx)(
|
|
185
|
+
: valueState === id })), (0, jsx_runtime_1.jsx)(ListItemText_1.default, { primary: label }), itemIconRenderer && ((0, jsx_runtime_1.jsx)(ListItemRightIcon_1.ListItemRightIcon, { children: itemIconRenderer(option[idField]) }))] }, id));
|
|
186
|
+
}) }), helperText != null && (0, jsx_runtime_1.jsx)(FormHelperText_1.default, { children: helperText })] }), refresh != null &&
|
|
178
187
|
loadData != null &&
|
|
179
|
-
(typeof refresh === "string" ? ((0, jsx_runtime_1.jsx)(
|
|
188
|
+
(typeof refresh === "string" ? ((0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", title: refresh, onClick: refreshData, children: (0, jsx_runtime_1.jsx)(Refresh_1.default, {}) })) : (refresh))] }));
|
|
180
189
|
}
|
|
@@ -1,12 +1,19 @@
|
|
|
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.ShowDataComparison = void 0;
|
|
4
7
|
exports.IsAuditLineUpdateData = IsAuditLineUpdateData;
|
|
5
8
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
9
|
const notificationbase_1 = require("@etsoo/notificationbase");
|
|
7
10
|
const shared_1 = require("@etsoo/shared");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
11
|
const ReactApp_1 = require("./app/ReactApp");
|
|
12
|
+
const Table_1 = __importDefault(require("@mui/material/Table"));
|
|
13
|
+
const TableHead_1 = __importDefault(require("@mui/material/TableHead"));
|
|
14
|
+
const TableRow_1 = __importDefault(require("@mui/material/TableRow"));
|
|
15
|
+
const TableCell_1 = __importDefault(require("@mui/material/TableCell"));
|
|
16
|
+
const TableBody_1 = __importDefault(require("@mui/material/TableBody"));
|
|
10
17
|
/**
|
|
11
18
|
* Check obj is instance of AuditLineChangesDto
|
|
12
19
|
* @param obj Input
|
|
@@ -54,7 +61,7 @@ const ShowDataComparison = (data, modelTitle, getLabel, equalCheck = true) => {
|
|
|
54
61
|
}));
|
|
55
62
|
if (equalCheck)
|
|
56
63
|
rows = rows.filter((item) => !shared_1.Utils.equals(item.oldValue, item.newValue));
|
|
57
|
-
const inputs = ((0, jsx_runtime_1.jsxs)(
|
|
64
|
+
const inputs = ((0, jsx_runtime_1.jsxs)(Table_1.default, { children: [(0, jsx_runtime_1.jsx)(TableHead_1.default, { children: (0, jsx_runtime_1.jsxs)(TableRow_1.default, { children: [(0, jsx_runtime_1.jsx)(TableCell_1.default, { width: "18%", children: field }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { width: "41%", align: "right", children: oldValue }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { width: "41%", align: "right", children: newValue })] }) }), (0, jsx_runtime_1.jsx)(TableBody_1.default, { children: rows.map((row) => ((0, jsx_runtime_1.jsxs)(TableRow_1.default, { children: [(0, jsx_runtime_1.jsx)(TableCell_1.default, { children: getLabel(row.field) }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "right", children: formatValue(row.oldValue, app) }), (0, jsx_runtime_1.jsx)(TableCell_1.default, { align: "right", children: formatValue(row.newValue, app) })] }, row.field))) })] }));
|
|
58
65
|
app.notifier.alert([undefined, modelTitle], undefined, notificationbase_1.NotificationMessageType.Info, { fullScreen: app.smDown, inputs });
|
|
59
66
|
};
|
|
60
67
|
exports.ShowDataComparison = ShowDataComparison;
|
package/lib/cjs/Switch.d.ts
CHANGED
package/lib/cjs/Switch.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Switch = Switch;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
11
10
|
const Switch_1 = __importDefault(require("@mui/material/Switch"));
|
|
11
|
+
const FormControlLabel_1 = __importDefault(require("@mui/material/FormControlLabel"));
|
|
12
12
|
/**
|
|
13
13
|
* Switch
|
|
14
14
|
* @param props Props
|
|
@@ -36,5 +36,5 @@ function Switch(props) {
|
|
|
36
36
|
setControlChecked(controlChecked);
|
|
37
37
|
}, [controlChecked]);
|
|
38
38
|
// Layout
|
|
39
|
-
return (0, jsx_runtime_1.jsx)(
|
|
39
|
+
return (0, jsx_runtime_1.jsx)(FormControlLabel_1.default, { control: control, ...rest });
|
|
40
40
|
}
|