@etsoo/materialui 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/AddresSelector.d.ts +1 -1
- package/lib/cjs/AddresSelector.js +4 -3
- package/lib/cjs/AuditDisplay.d.ts +1 -1
- package/lib/cjs/AuditDisplay.js +8 -5
- package/lib/cjs/AutocompleteExtendedProps.d.ts +1 -1
- package/lib/cjs/BackButton.d.ts +1 -1
- package/lib/cjs/BackButton.js +4 -3
- package/lib/cjs/BridgeCloseButton.d.ts +2 -1
- package/lib/cjs/BridgeCloseButton.js +3 -2
- package/lib/cjs/ButtonLink.d.ts +1 -1
- package/lib/cjs/ButtonLink.js +7 -4
- package/lib/cjs/ButtonPopover.d.ts +1 -1
- package/lib/cjs/ButtonPopover.js +2 -2
- package/lib/cjs/ComboBox.js +6 -4
- package/lib/cjs/ComboBoxMultiple.js +4 -3
- package/lib/cjs/ComboBoxPro.d.ts +1 -1
- package/lib/cjs/ComboBoxPro.js +2 -2
- package/lib/cjs/CountdownButton.d.ts +1 -1
- package/lib/cjs/CountdownButton.js +4 -3
- package/lib/cjs/DataGridEx.js +15 -11
- package/lib/cjs/DataGridRenderers.js +2 -2
- package/lib/cjs/DataSteps.d.ts +1 -1
- package/lib/cjs/DataSteps.js +9 -6
- package/lib/cjs/DataTable.d.ts +1 -1
- package/lib/cjs/DataTable.js +2 -2
- package/lib/cjs/DialogButton.d.ts +2 -1
- package/lib/cjs/DialogButton.js +9 -3
- package/lib/cjs/DnDList.d.ts +2 -2
- package/lib/cjs/DnDList.js +4 -3
- package/lib/cjs/DraggablePaperComponent.d.ts +1 -1
- package/lib/cjs/DraggablePaperComponent.js +2 -2
- package/lib/cjs/EmailInput.d.ts +1 -1
- package/lib/cjs/EmailInput.js +7 -6
- package/lib/cjs/ErrorAlert.d.ts +1 -1
- package/lib/cjs/ErrorAlert.js +5 -2
- package/lib/cjs/FabBox.d.ts +2 -1
- package/lib/cjs/FabBox.js +6 -4
- package/lib/cjs/FieldSetEx.d.ts +1 -1
- package/lib/cjs/FieldSetEx.js +5 -3
- package/lib/cjs/FileUploadButton.d.ts +1 -1
- package/lib/cjs/FileUploadButton.js +5 -2
- package/lib/cjs/FlexBox.d.ts +1 -1
- package/lib/cjs/FlexBox.js +7 -4
- package/lib/cjs/HiSelector.d.ts +2 -1
- package/lib/cjs/HiSelector.js +3 -2
- package/lib/cjs/HiSelectorTL.d.ts +2 -1
- package/lib/cjs/HiSelectorTL.js +3 -2
- package/lib/cjs/IconButtonLink.d.ts +1 -1
- package/lib/cjs/IconButtonLink.js +5 -2
- package/lib/cjs/InputField.d.ts +4 -4
- package/lib/cjs/InputField.js +2 -2
- package/lib/cjs/InputTipField.js +8 -5
- package/lib/cjs/IntInputField.d.ts +1 -1
- package/lib/cjs/IntInputField.js +8 -6
- package/lib/cjs/ItemList.js +10 -4
- package/lib/cjs/LineChart.js +2 -2
- package/lib/cjs/ListChooser.d.ts +2 -1
- package/lib/cjs/ListChooser.js +8 -4
- package/lib/cjs/ListItemRightIcon.d.ts +1 -1
- package/lib/cjs/ListItemRightIcon.js +6 -2
- package/lib/cjs/ListMoreDisplay.d.ts +1 -1
- package/lib/cjs/ListMoreDisplay.js +7 -3
- package/lib/cjs/LoadingButton.d.ts +2 -1
- package/lib/cjs/LoadingButton.js +4 -3
- package/lib/cjs/MUGlobal.d.ts +2 -1
- package/lib/cjs/MaskInput.d.ts +1 -1
- package/lib/cjs/MaskInput.js +2 -2
- package/lib/cjs/MenuButton.d.ts +2 -1
- package/lib/cjs/MenuButton.js +5 -3
- package/lib/cjs/MobileListItemRenderer.js +14 -5
- package/lib/cjs/MoreFab.d.ts +2 -1
- package/lib/cjs/MoreFab.js +10 -4
- package/lib/cjs/NotifierMU.js +45 -22
- package/lib/cjs/NotifierPopupProps.d.ts +1 -1
- package/lib/cjs/NumberInputField.js +15 -13
- package/lib/cjs/OptionGroup.d.ts +1 -1
- package/lib/cjs/OptionGroup.js +15 -7
- package/lib/cjs/OptionGroupFlag.d.ts +1 -1
- package/lib/cjs/OptionGroupFlag.js +12 -6
- package/lib/cjs/PercentCircularProgress.d.ts +2 -1
- package/lib/cjs/PercentCircularProgress.js +8 -3
- package/lib/cjs/PercentLinearProgress.d.ts +2 -1
- package/lib/cjs/PercentLinearProgress.js +7 -2
- package/lib/cjs/ProgressCount.js +7 -4
- package/lib/cjs/QuickList.d.ts +3 -1
- package/lib/cjs/QuickList.js +6 -2
- package/lib/cjs/ResponsibleContainer.d.ts +1 -1
- package/lib/cjs/ResponsibleContainer.js +8 -6
- package/lib/cjs/ResponsiveStyleValue.d.ts +1 -1
- package/lib/cjs/ScrollTopFab.js +5 -3
- package/lib/cjs/ScrollerListEx.js +2 -2
- package/lib/cjs/SearchBar.js +9 -5
- package/lib/cjs/SearchField.d.ts +1 -1
- package/lib/cjs/SearchField.js +2 -2
- package/lib/cjs/SelectEx.d.ts +1 -1
- package/lib/cjs/SelectEx.js +18 -9
- package/lib/cjs/ShowDataComparison.js +9 -2
- package/lib/cjs/Switch.d.ts +1 -1
- package/lib/cjs/Switch.js +2 -2
- package/lib/cjs/SwitchAnt.js +5 -4
- package/lib/cjs/SwitchField.d.ts +1 -1
- package/lib/cjs/SwitchField.js +6 -3
- package/lib/cjs/TabBox.d.ts +3 -1
- package/lib/cjs/TabBox.js +5 -3
- package/lib/cjs/TableEx.d.ts +1 -1
- package/lib/cjs/TableEx.js +20 -10
- package/lib/cjs/TagList.d.ts +1 -1
- package/lib/cjs/TagList.js +5 -3
- package/lib/cjs/TagListPro.d.ts +1 -1
- package/lib/cjs/TagListPro.js +5 -3
- package/lib/cjs/TextFieldEx.d.ts +4 -4
- package/lib/cjs/TextFieldEx.js +7 -4
- package/lib/cjs/Tiplist.js +2 -2
- package/lib/cjs/TiplistPro.d.ts +1 -1
- package/lib/cjs/TiplistPro.js +2 -2
- package/lib/cjs/TooltipClick.d.ts +1 -1
- package/lib/cjs/TooltipClick.js +3 -2
- package/lib/cjs/TwoFieldInput.js +4 -3
- package/lib/cjs/UserAvatar.js +5 -2
- package/lib/cjs/UserAvatarEditor.js +8 -3
- package/lib/cjs/ViewContainer.d.ts +5 -4
- package/lib/cjs/ViewContainer.js +4 -3
- package/lib/cjs/custom/CustomFieldUtils.d.ts +1 -1
- package/lib/cjs/custom/CustomFieldUtils.js +5 -4
- package/lib/cjs/custom/CustomFieldViewer.d.ts +3 -2
- package/lib/cjs/custom/CustomFieldViewer.js +7 -3
- package/lib/cjs/custom/CustomFieldWindow.d.ts +2 -2
- package/lib/cjs/custom/CustomFieldWindow.js +3 -2
- package/lib/cjs/custom/FieldAmountLabel.js +3 -2
- package/lib/cjs/custom/FieldCheckbox.js +2 -2
- package/lib/cjs/custom/FieldCombobox.js +2 -2
- package/lib/cjs/custom/FieldDateInput.js +2 -2
- package/lib/cjs/custom/FieldDivider.js +2 -2
- package/lib/cjs/custom/FieldInput.js +2 -2
- package/lib/cjs/custom/FieldJson.js +2 -2
- package/lib/cjs/custom/FieldNumberInput.js +2 -2
- package/lib/cjs/custom/FieldRadio.js +2 -2
- package/lib/cjs/custom/FieldSelect.js +2 -2
- package/lib/cjs/custom/FieldSwitch.js +2 -2
- package/lib/cjs/custom/FieldTexarea.js +2 -2
- package/lib/cjs/pages/CommonPage.d.ts +2 -1
- package/lib/cjs/pages/CommonPage.js +6 -4
- package/lib/cjs/pages/DataGridPage.js +3 -2
- package/lib/cjs/pages/DrawerHeader.d.ts +1 -1
- package/lib/cjs/pages/DrawerHeader.js +2 -2
- package/lib/cjs/pages/EditPage.js +4 -3
- package/lib/cjs/pages/FixedListPage.js +4 -3
- package/lib/cjs/pages/LeftDrawer.js +8 -3
- package/lib/cjs/pages/ListPage.js +3 -2
- package/lib/cjs/pages/TablePage.js +3 -2
- package/lib/cjs/pages/UserMenu.js +3 -2
- package/lib/cjs/pages/ViewPage.js +4 -3
- package/lib/cjs/texts/DateText.d.ts +1 -1
- package/lib/cjs/texts/DateText.js +5 -2
- package/lib/cjs/texts/MoneyText.js +5 -2
- package/lib/cjs/texts/NumberText.d.ts +1 -1
- package/lib/cjs/texts/NumberText.js +5 -2
- package/lib/cjs/useCurrentBreakpoint.d.ts +1 -1
- package/lib/cjs/useCurrentBreakpoint.js +11 -7
- package/lib/mjs/AddresSelector.d.ts +1 -1
- package/lib/mjs/AddresSelector.js +4 -3
- package/lib/mjs/AuditDisplay.d.ts +1 -1
- package/lib/mjs/AuditDisplay.js +4 -1
- package/lib/mjs/AutocompleteExtendedProps.d.ts +1 -1
- package/lib/mjs/BackButton.d.ts +1 -1
- package/lib/mjs/BackButton.js +2 -1
- package/lib/mjs/BridgeCloseButton.d.ts +2 -1
- package/lib/mjs/BridgeCloseButton.js +2 -1
- package/lib/mjs/ButtonLink.d.ts +1 -1
- package/lib/mjs/ButtonLink.js +2 -2
- package/lib/mjs/ButtonPopover.d.ts +1 -1
- package/lib/mjs/ButtonPopover.js +1 -1
- package/lib/mjs/ComboBox.js +4 -2
- package/lib/mjs/ComboBoxMultiple.js +2 -1
- package/lib/mjs/ComboBoxPro.d.ts +1 -1
- package/lib/mjs/ComboBoxPro.js +1 -1
- package/lib/mjs/CountdownButton.d.ts +1 -1
- package/lib/mjs/CountdownButton.js +2 -1
- package/lib/mjs/DataGridEx.js +5 -1
- package/lib/mjs/DataGridRenderers.js +1 -1
- package/lib/mjs/DataSteps.d.ts +1 -1
- package/lib/mjs/DataSteps.js +4 -1
- package/lib/mjs/DataTable.d.ts +1 -1
- package/lib/mjs/DataTable.js +1 -1
- package/lib/mjs/DialogButton.d.ts +2 -1
- package/lib/mjs/DialogButton.js +7 -1
- package/lib/mjs/DnDList.d.ts +2 -2
- package/lib/mjs/DnDList.js +2 -1
- package/lib/mjs/DraggablePaperComponent.d.ts +1 -1
- package/lib/mjs/DraggablePaperComponent.js +1 -1
- package/lib/mjs/EmailInput.d.ts +1 -1
- package/lib/mjs/EmailInput.js +4 -6
- package/lib/mjs/ErrorAlert.d.ts +1 -1
- package/lib/mjs/ErrorAlert.js +1 -1
- package/lib/mjs/FabBox.d.ts +2 -1
- package/lib/mjs/FabBox.js +3 -1
- package/lib/mjs/FieldSetEx.d.ts +1 -1
- package/lib/mjs/FieldSetEx.js +3 -1
- package/lib/mjs/FileUploadButton.d.ts +1 -1
- package/lib/mjs/FileUploadButton.js +1 -1
- package/lib/mjs/FlexBox.d.ts +1 -1
- package/lib/mjs/FlexBox.js +1 -1
- package/lib/mjs/HiSelector.d.ts +2 -1
- package/lib/mjs/HiSelector.js +3 -2
- package/lib/mjs/HiSelectorTL.d.ts +2 -1
- package/lib/mjs/HiSelectorTL.js +3 -2
- package/lib/mjs/IconButtonLink.d.ts +1 -1
- package/lib/mjs/IconButtonLink.js +1 -1
- package/lib/mjs/InputField.d.ts +1 -1
- package/lib/mjs/InputField.js +1 -1
- package/lib/mjs/InputTipField.js +4 -1
- package/lib/mjs/IntInputField.d.ts +1 -1
- package/lib/mjs/IntInputField.js +3 -1
- package/lib/mjs/ItemList.js +7 -1
- package/lib/mjs/LineChart.js +1 -1
- package/lib/mjs/ListChooser.d.ts +2 -1
- package/lib/mjs/ListChooser.js +6 -2
- package/lib/mjs/ListItemRightIcon.d.ts +1 -1
- package/lib/mjs/ListItemRightIcon.js +2 -1
- package/lib/mjs/ListMoreDisplay.d.ts +1 -1
- package/lib/mjs/ListMoreDisplay.js +5 -1
- package/lib/mjs/LoadingButton.d.ts +2 -1
- package/lib/mjs/LoadingButton.js +2 -1
- package/lib/mjs/MUGlobal.d.ts +2 -1
- package/lib/mjs/MaskInput.d.ts +1 -1
- package/lib/mjs/MaskInput.js +1 -1
- package/lib/mjs/MenuButton.d.ts +2 -1
- package/lib/mjs/MenuButton.js +3 -1
- package/lib/mjs/MobileListItemRenderer.js +8 -2
- package/lib/mjs/MoreFab.d.ts +2 -1
- package/lib/mjs/MoreFab.js +7 -1
- package/lib/mjs/NotifierMU.js +32 -9
- package/lib/mjs/NotifierPopupProps.d.ts +1 -1
- package/lib/mjs/NumberInputField.js +15 -13
- package/lib/mjs/OptionGroup.d.ts +1 -1
- package/lib/mjs/OptionGroup.js +9 -1
- package/lib/mjs/OptionGroupFlag.d.ts +1 -1
- package/lib/mjs/OptionGroupFlag.js +7 -1
- package/lib/mjs/PercentCircularProgress.d.ts +2 -1
- package/lib/mjs/PercentCircularProgress.js +3 -1
- package/lib/mjs/PercentLinearProgress.d.ts +2 -1
- package/lib/mjs/PercentLinearProgress.js +3 -1
- package/lib/mjs/ProgressCount.js +4 -1
- package/lib/mjs/QuickList.d.ts +3 -1
- package/lib/mjs/QuickList.js +5 -1
- package/lib/mjs/ResponsibleContainer.d.ts +1 -1
- package/lib/mjs/ResponsibleContainer.js +3 -1
- package/lib/mjs/ResponsiveStyleValue.d.ts +1 -1
- package/lib/mjs/ScrollTopFab.js +3 -1
- package/lib/mjs/ScrollerListEx.js +1 -1
- package/lib/mjs/SearchBar.js +5 -1
- package/lib/mjs/SearchField.d.ts +1 -1
- package/lib/mjs/SearchField.js +1 -1
- package/lib/mjs/SelectEx.d.ts +1 -1
- package/lib/mjs/SelectEx.js +11 -2
- package/lib/mjs/ShowDataComparison.js +5 -1
- package/lib/mjs/Switch.d.ts +1 -1
- package/lib/mjs/Switch.js +1 -1
- package/lib/mjs/SwitchAnt.js +3 -2
- package/lib/mjs/SwitchField.d.ts +1 -1
- package/lib/mjs/SwitchField.js +4 -1
- package/lib/mjs/TabBox.d.ts +3 -1
- package/lib/mjs/TabBox.js +3 -1
- package/lib/mjs/TableEx.d.ts +1 -1
- package/lib/mjs/TableEx.js +11 -1
- package/lib/mjs/TagList.d.ts +1 -1
- package/lib/mjs/TagList.js +3 -1
- package/lib/mjs/TagListPro.d.ts +1 -1
- package/lib/mjs/TagListPro.js +3 -1
- package/lib/mjs/TextFieldEx.d.ts +1 -1
- package/lib/mjs/TextFieldEx.js +6 -3
- package/lib/mjs/Tiplist.js +1 -1
- package/lib/mjs/TiplistPro.d.ts +1 -1
- package/lib/mjs/TiplistPro.js +1 -1
- package/lib/mjs/TooltipClick.d.ts +1 -1
- package/lib/mjs/TooltipClick.js +2 -1
- package/lib/mjs/TwoFieldInput.js +2 -1
- package/lib/mjs/UserAvatar.js +1 -1
- package/lib/mjs/UserAvatarEditor.js +6 -1
- package/lib/mjs/ViewContainer.d.ts +5 -4
- package/lib/mjs/ViewContainer.js +4 -3
- package/lib/mjs/custom/CustomFieldUtils.d.ts +1 -1
- package/lib/mjs/custom/CustomFieldUtils.js +4 -3
- package/lib/mjs/custom/CustomFieldViewer.d.ts +3 -2
- package/lib/mjs/custom/CustomFieldViewer.js +4 -3
- package/lib/mjs/custom/CustomFieldWindow.d.ts +2 -2
- package/lib/mjs/custom/CustomFieldWindow.js +3 -2
- package/lib/mjs/custom/FieldAmountLabel.js +2 -1
- package/lib/mjs/custom/FieldCheckbox.js +1 -1
- package/lib/mjs/custom/FieldCombobox.js +1 -1
- package/lib/mjs/custom/FieldDateInput.js +1 -1
- package/lib/mjs/custom/FieldDivider.js +1 -1
- package/lib/mjs/custom/FieldInput.js +1 -1
- package/lib/mjs/custom/FieldJson.js +1 -1
- package/lib/mjs/custom/FieldNumberInput.js +1 -1
- package/lib/mjs/custom/FieldRadio.js +1 -1
- package/lib/mjs/custom/FieldSelect.js +1 -1
- package/lib/mjs/custom/FieldSwitch.js +1 -1
- package/lib/mjs/custom/FieldTexarea.js +1 -1
- package/lib/mjs/pages/CommonPage.d.ts +2 -1
- package/lib/mjs/pages/CommonPage.js +3 -1
- package/lib/mjs/pages/DataGridPage.js +2 -1
- package/lib/mjs/pages/DrawerHeader.js +1 -1
- package/lib/mjs/pages/EditPage.js +3 -2
- package/lib/mjs/pages/FixedListPage.js +2 -1
- package/lib/mjs/pages/LeftDrawer.js +6 -1
- package/lib/mjs/pages/ListPage.js +2 -1
- package/lib/mjs/pages/TablePage.js +2 -1
- package/lib/mjs/pages/UserMenu.js +2 -1
- package/lib/mjs/pages/ViewPage.js +2 -1
- package/lib/mjs/texts/DateText.d.ts +1 -1
- package/lib/mjs/texts/DateText.js +1 -1
- package/lib/mjs/texts/MoneyText.js +1 -1
- package/lib/mjs/texts/NumberText.d.ts +1 -1
- package/lib/mjs/texts/NumberText.js +1 -1
- package/lib/mjs/useCurrentBreakpoint.d.ts +1 -1
- package/lib/mjs/useCurrentBreakpoint.js +2 -1
- package/package.json +9 -9
- package/src/AddresSelector.tsx +12 -11
- package/src/AuditDisplay.tsx +4 -1
- package/src/AutocompleteExtendedProps.ts +1 -1
- package/src/BackButton.tsx +2 -1
- package/src/BridgeCloseButton.tsx +2 -1
- package/src/ButtonLink.tsx +3 -3
- package/src/ButtonPopover.tsx +1 -1
- package/src/ComboBox.tsx +6 -7
- package/src/ComboBoxMultiple.tsx +4 -6
- package/src/ComboBoxPro.tsx +1 -1
- package/src/CountdownButton.tsx +2 -1
- package/src/CultureDataTable.tsx +1 -1
- package/src/DataGridEx.tsx +5 -8
- package/src/DataGridRenderers.tsx +1 -1
- package/src/DataSteps.tsx +4 -7
- package/src/DataTable.tsx +4 -7
- package/src/DialogButton.tsx +8 -11
- package/src/DnDList.tsx +9 -10
- package/src/DraggablePaperComponent.tsx +1 -1
- package/src/EmailInput.tsx +4 -8
- package/src/ErrorAlert.tsx +1 -1
- package/src/FabBox.tsx +3 -1
- package/src/FieldSetEx.tsx +3 -6
- package/src/FileUploadButton.tsx +1 -1
- package/src/FlexBox.tsx +1 -1
- package/src/HiSelector.tsx +13 -11
- package/src/HiSelectorTL.tsx +16 -17
- package/src/IconButtonLink.tsx +1 -2
- package/src/InputField.tsx +1 -1
- package/src/InputTipField.tsx +4 -1
- package/src/IntInputField.tsx +3 -1
- package/src/ItemList.tsx +7 -9
- package/src/LineChart.tsx +1 -1
- package/src/ListChooser.tsx +8 -10
- package/src/ListItemRightIcon.tsx +2 -1
- package/src/ListMoreDisplay.tsx +5 -8
- package/src/LoadingButton.tsx +3 -5
- package/src/MUGlobal.ts +2 -1
- package/src/MaskInput.tsx +1 -1
- package/src/MenuButton.tsx +3 -1
- package/src/MobileListItemRenderer.tsx +8 -3
- package/src/MoreFab.tsx +9 -11
- package/src/NotifierMU.tsx +34 -34
- package/src/NotifierPopupProps.ts +1 -1
- package/src/NumberInputField.tsx +21 -20
- package/src/OptionGroup.tsx +9 -12
- package/src/OptionGroupFlag.tsx +7 -10
- package/src/PercentCircularProgress.tsx +5 -8
- package/src/PercentLinearProgress.tsx +5 -8
- package/src/ProgressCount.tsx +4 -6
- package/src/QuickList.tsx +8 -10
- package/src/ResponsibleContainer.tsx +4 -1
- package/src/ResponsiveStyleValue.ts +1 -1
- package/src/ScrollTopFab.tsx +3 -1
- package/src/ScrollerListEx.tsx +1 -1
- package/src/SearchBar.tsx +5 -8
- package/src/SearchField.tsx +1 -1
- package/src/SearchOptionGroup.tsx +0 -1
- package/src/SelectEx.tsx +11 -15
- package/src/ShowDataComparison.tsx +5 -7
- package/src/Switch.tsx +3 -1
- package/src/SwitchAnt.tsx +3 -2
- package/src/SwitchField.tsx +4 -7
- package/src/TabBox.tsx +3 -1
- package/src/TableEx.tsx +11 -15
- package/src/TagList.tsx +3 -1
- package/src/TagListPro.tsx +3 -1
- package/src/TextFieldEx.tsx +7 -9
- package/src/Tiplist.tsx +3 -1
- package/src/TiplistPro.tsx +1 -1
- package/src/TooltipClick.tsx +2 -1
- package/src/TwoFieldInput.tsx +2 -1
- package/src/UserAvatar.tsx +1 -1
- package/src/UserAvatarEditor.tsx +6 -8
- package/src/ViewContainer.tsx +16 -14
- package/src/custom/CustomFieldUtils.tsx +6 -6
- package/src/custom/CustomFieldViewer.tsx +7 -6
- package/src/custom/CustomFieldWindow.tsx +5 -4
- package/src/custom/FieldAmountLabel.tsx +2 -1
- package/src/custom/FieldCheckbox.tsx +1 -1
- package/src/custom/FieldCombobox.tsx +1 -1
- package/src/custom/FieldDateInput.tsx +1 -1
- package/src/custom/FieldDivider.tsx +1 -1
- package/src/custom/FieldInput.tsx +1 -1
- package/src/custom/FieldJson.tsx +1 -1
- package/src/custom/FieldNumberInput.tsx +1 -1
- package/src/custom/FieldRadio.tsx +1 -1
- package/src/custom/FieldSelect.tsx +1 -1
- package/src/custom/FieldSwitch.tsx +1 -1
- package/src/custom/FieldTexarea.tsx +1 -1
- package/src/pages/CommonPage.tsx +3 -1
- package/src/pages/DataGridPage.tsx +2 -1
- package/src/pages/DrawerHeader.tsx +1 -1
- package/src/pages/EditPage.tsx +6 -10
- package/src/pages/FixedListPage.tsx +2 -1
- package/src/pages/LeftDrawer.tsx +6 -8
- package/src/pages/ListPage.tsx +2 -1
- package/src/pages/TablePage.tsx +2 -1
- package/src/pages/UserMenu.tsx +2 -1
- package/src/pages/ViewPage.tsx +2 -1
- package/src/texts/DateText.tsx +1 -2
- package/src/texts/MoneyText.tsx +1 -2
- package/src/texts/NumberText.tsx +1 -2
- package/src/useCurrentBreakpoint.ts +2 -1
package/lib/cjs/DialogButton.js
CHANGED
|
@@ -5,9 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DialogButton = DialogButton;
|
|
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 Labels_1 = require("./app/Labels");
|
|
10
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
11
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
12
|
+
const Dialog_1 = __importDefault(require("@mui/material/Dialog"));
|
|
13
|
+
const DialogTitle_1 = __importDefault(require("@mui/material/DialogTitle"));
|
|
14
|
+
const DialogContent_1 = __importDefault(require("@mui/material/DialogContent"));
|
|
15
|
+
const DialogContentText_1 = __importDefault(require("@mui/material/DialogContentText"));
|
|
16
|
+
const DialogActions_1 = __importDefault(require("@mui/material/DialogActions"));
|
|
11
17
|
/**
|
|
12
18
|
* Dialog button
|
|
13
19
|
* @param props Props
|
|
@@ -35,9 +41,9 @@ function DialogButton(props) {
|
|
|
35
41
|
onClick(event);
|
|
36
42
|
};
|
|
37
43
|
// Layout
|
|
38
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [icon == null ? ((0, jsx_runtime_1.jsx)(
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [icon == null ? ((0, jsx_runtime_1.jsx)(Button_1.default, { ...rest, title: title, onClick: onClickLocal, children: children })) : ((0, jsx_runtime_1.jsx)(IconButton_1.default, { ...rest, onClick: onClickLocal, title: title ?? children?.toString(), children: icon })), (0, jsx_runtime_1.jsxs)(Dialog_1.default, { disableScrollLock: disableScrollLock, fullScreen: fullScreen, fullWidth: fullWidth, maxWidth: maxWidth, open: open, onClose: () => setOpen(false), onClick: (event) => {
|
|
39
45
|
// The dialog will be embeded and the click event will bubble up
|
|
40
46
|
// Stop propatation but will also cancel onClose and onBackdropClick event
|
|
41
47
|
event.stopPropagation();
|
|
42
|
-
}, children: [(0, jsx_runtime_1.jsx)(
|
|
48
|
+
}, children: [(0, jsx_runtime_1.jsx)(DialogTitle_1.default, { children: dialogTitle ?? title ?? children }), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, { children: [(0, jsx_runtime_1.jsx)(DialogContentText_1.default, { component: contentPre ? "pre" : "span", children: content }), inputs] }), (0, jsx_runtime_1.jsx)(DialogActions_1.default, { children: (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: () => setOpen(false), children: buttonLabel }) })] })] }));
|
|
43
49
|
}
|
package/lib/cjs/DnDList.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UniqueIdentifier } from "@dnd-kit/core";
|
|
2
|
-
import { SortingStrategy } from "@dnd-kit/sortable";
|
|
2
|
+
import { SortingStrategy } from "@dnd-kit/sortable/dist/types/strategies";
|
|
3
3
|
import { DataTypes } from "@etsoo/shared";
|
|
4
|
-
import { Theme } from "@mui/material";
|
|
4
|
+
import { Theme } from "@mui/material/styles";
|
|
5
5
|
import React, { CSSProperties } from "react";
|
|
6
6
|
/**
|
|
7
7
|
* DnD item default style
|
package/lib/cjs/DnDList.js
CHANGED
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DnDItemStyle = void 0;
|
|
7
7
|
exports.DnDList = DnDList;
|
|
8
8
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
-
const
|
|
9
|
+
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
10
|
+
const styles_1 = require("@mui/material/styles");
|
|
10
11
|
const react_1 = __importDefault(require("react"));
|
|
11
12
|
function SortableItem(props) {
|
|
12
13
|
// Destruct
|
|
@@ -55,7 +56,7 @@ function DnDList(props) {
|
|
|
55
56
|
// Destruct
|
|
56
57
|
const { keyField, height = 360, itemRenderer, labelField, mRef, sortingStrategy, onChange, onFormChange, onDragEnd } = props;
|
|
57
58
|
// Theme
|
|
58
|
-
const theme = (0,
|
|
59
|
+
const theme = (0, styles_1.useTheme)();
|
|
59
60
|
// States
|
|
60
61
|
const [items, setItems] = react_1.default.useState([]);
|
|
61
62
|
const [activeId, setActiveId] = react_1.default.useState();
|
|
@@ -152,7 +153,7 @@ function DnDList(props) {
|
|
|
152
153
|
});
|
|
153
154
|
}, []);
|
|
154
155
|
if (dnd == null) {
|
|
155
|
-
return (0, jsx_runtime_1.jsx)(
|
|
156
|
+
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", width: "100%", height: height });
|
|
156
157
|
}
|
|
157
158
|
const [DndContextType, SortableContextType, useSortableType, rectSortingStrategyType, rectSwappingStrategyType, horizontalListSortingStrategyType, verticalListSortingStrategyType, CSSType] = dnd;
|
|
158
159
|
const strategy = typeof sortingStrategy === "function"
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DraggablePaperComponent = DraggablePaperComponent;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
const react_draggable_1 = __importDefault(require("react-draggable"));
|
|
11
11
|
/**
|
|
@@ -15,5 +15,5 @@ const react_draggable_1 = __importDefault(require("react-draggable"));
|
|
|
15
15
|
*/
|
|
16
16
|
function DraggablePaperComponent(props) {
|
|
17
17
|
const nodeRef = react_1.default.useRef(null);
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(react_draggable_1.default, { handle: ".draggable-dialog-title", cancel: '[class*="MuiDialogContent-root"]', nodeRef: nodeRef, children: (0, jsx_runtime_1.jsx)(
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(react_draggable_1.default, { handle: ".draggable-dialog-title", cancel: '[class*="MuiDialogContent-root"]', nodeRef: nodeRef, children: (0, jsx_runtime_1.jsx)(Paper_1.default, { ref: nodeRef, ...props }) }));
|
|
19
19
|
}
|
package/lib/cjs/EmailInput.d.ts
CHANGED
package/lib/cjs/EmailInput.js
CHANGED
|
@@ -1,17 +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.EmailInput = EmailInput;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
6
9
|
/**
|
|
7
10
|
* Email input
|
|
8
11
|
* @param props Props
|
|
9
12
|
*/
|
|
10
13
|
function EmailInput(props) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// Default max length
|
|
14
|
-
inputProps.maxLength ??= 128;
|
|
14
|
+
props.slotProps ??= {};
|
|
15
|
+
props.slotProps.htmlInput ??= { maxLength: 128 };
|
|
15
16
|
// Layout
|
|
16
|
-
return (0, jsx_runtime_1.jsx)(
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(TextField_1.default, { type: "email", fullWidth: true, ...props });
|
|
17
18
|
}
|
package/lib/cjs/ErrorAlert.d.ts
CHANGED
package/lib/cjs/ErrorAlert.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
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.ErrorAlert = ErrorAlert;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const Alert_1 = __importDefault(require("@mui/material/Alert"));
|
|
6
9
|
const ReactApp_1 = require("./app/ReactApp");
|
|
7
10
|
/**
|
|
8
11
|
* Error alert component
|
|
@@ -15,5 +18,5 @@ function ErrorAlert(props) {
|
|
|
15
18
|
// Destruct
|
|
16
19
|
const { message = app?.get("idError"), ...alertProps } = props;
|
|
17
20
|
// Layout
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
21
|
+
return ((0, jsx_runtime_1.jsx)(Alert_1.default, { severity: "error", ...alertProps, children: message }));
|
|
19
22
|
}
|
package/lib/cjs/FabBox.d.ts
CHANGED
package/lib/cjs/FabBox.js
CHANGED
|
@@ -5,7 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FabBox = FabBox;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
9
|
+
const Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
10
|
+
const styles_1 = require("@mui/material/styles");
|
|
9
11
|
const react_1 = __importDefault(require("react"));
|
|
10
12
|
const initOpactiy = 0.15;
|
|
11
13
|
/**
|
|
@@ -17,12 +19,12 @@ function FabBox(props) {
|
|
|
17
19
|
// Destruct
|
|
18
20
|
const { columnDirection, fabPanel = columnDirection, itemGap = 1, sx, ...rest } = props;
|
|
19
21
|
// Theme
|
|
20
|
-
const theme = (0,
|
|
22
|
+
const theme = (0, styles_1.useTheme)();
|
|
21
23
|
const spaceGap = theme.spacing(itemGap);
|
|
22
24
|
const [opacity, setOpacity] = react_1.default.useState(initOpactiy);
|
|
23
25
|
if (columnDirection == null)
|
|
24
26
|
return (0, jsx_runtime_1.jsx)(react_1.default.Fragment, {});
|
|
25
|
-
return fabPanel ? ((0, jsx_runtime_1.jsx)(
|
|
27
|
+
return fabPanel ? ((0, jsx_runtime_1.jsx)(Paper_1.default, { sx: {
|
|
26
28
|
position: "fixed",
|
|
27
29
|
display: "flex",
|
|
28
30
|
alignItems: "center",
|
|
@@ -31,7 +33,7 @@ function FabBox(props) {
|
|
|
31
33
|
gap: spaceGap,
|
|
32
34
|
opacity: opacity,
|
|
33
35
|
...sx
|
|
34
|
-
}, onMouseEnter: () => setOpacity(1), onMouseLeave: () => setOpacity(initOpactiy), ...rest })) : ((0, jsx_runtime_1.jsx)(
|
|
36
|
+
}, onMouseEnter: () => setOpacity(1), onMouseLeave: () => setOpacity(initOpactiy), ...rest })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { sx: {
|
|
35
37
|
position: "fixed",
|
|
36
38
|
display: "flex",
|
|
37
39
|
alignItems: "center",
|
package/lib/cjs/FieldSetEx.d.ts
CHANGED
package/lib/cjs/FieldSetEx.js
CHANGED
|
@@ -5,7 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldSetEx = FieldSetEx;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
|
|
9
|
+
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
|
|
10
|
+
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
9
11
|
const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
|
|
10
12
|
const react_1 = __importDefault(require("react"));
|
|
11
13
|
/**
|
|
@@ -17,7 +19,7 @@ function FieldSetEx(props) {
|
|
|
17
19
|
// Destruct
|
|
18
20
|
const { label, helperText, required, fullWidth, children, ...rest } = props;
|
|
19
21
|
// Layout
|
|
20
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(
|
|
22
|
+
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: "outlined", shrink: true, children: label })), (0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: children, sx: {
|
|
21
23
|
cursor: "default",
|
|
22
24
|
display: "flex",
|
|
23
25
|
flexWrap: "wrap",
|
|
@@ -28,5 +30,5 @@ function FieldSetEx(props) {
|
|
|
28
30
|
"& input": {
|
|
29
31
|
display: "none"
|
|
30
32
|
}
|
|
31
|
-
} })] }), helperText && ((0, jsx_runtime_1.jsx)(
|
|
33
|
+
} })] }), helperText && ((0, jsx_runtime_1.jsx)(FormHelperText_1.default, { sx: { marginLeft: 2, marginRight: 2 }, children: helperText }))] }));
|
|
32
34
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
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.FileUploadButton = FileUploadButton;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
6
9
|
/**
|
|
7
10
|
* File upload button
|
|
8
11
|
* @param props Props
|
|
@@ -13,7 +16,7 @@ function FileUploadButton(props) {
|
|
|
13
16
|
const { maxFiles, maxFileSize, inputProps, onFileInvalid, onUploadFiles, children, ...rest } = props;
|
|
14
17
|
const { onChange } = inputProps ?? {};
|
|
15
18
|
// Layout
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)(Button_1.default, { component: "label", ...rest, children: [children, (0, jsx_runtime_1.jsx)("input", { type: "file", hidden: true, onChange: (event) => {
|
|
17
20
|
if (onChange)
|
|
18
21
|
onChange(event);
|
|
19
22
|
if (event.isDefaultPrevented())
|
package/lib/cjs/FlexBox.d.ts
CHANGED
package/lib/cjs/FlexBox.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
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.HBox = HBox;
|
|
4
7
|
exports.HBoxList = HBoxList;
|
|
5
8
|
exports.VBox = VBox;
|
|
6
9
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
const
|
|
10
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
8
11
|
/**
|
|
9
12
|
* Horizonal box
|
|
10
13
|
* @param props Props
|
|
11
14
|
* @returns Component
|
|
12
15
|
*/
|
|
13
16
|
function HBox(props) {
|
|
14
|
-
return (0, jsx_runtime_1.jsx)(
|
|
17
|
+
return (0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "row", width: "100%", ...props });
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* Horizonal box with list items
|
|
@@ -19,7 +22,7 @@ function HBox(props) {
|
|
|
19
22
|
* @returns Component
|
|
20
23
|
*/
|
|
21
24
|
function HBoxList(props) {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
25
|
+
return ((0, jsx_runtime_1.jsx)(Stack_1.default, { spacing: 1, gap: 1, direction: "row", flexWrap: "wrap", width: "100%", ...props }));
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Vertial box
|
|
@@ -27,5 +30,5 @@ function HBoxList(props) {
|
|
|
27
30
|
* @returns Component
|
|
28
31
|
*/
|
|
29
32
|
function VBox(props) {
|
|
30
|
-
return (0, jsx_runtime_1.jsx)(
|
|
33
|
+
return (0, jsx_runtime_1.jsx)(Stack_1.default, { direction: "column", ...props });
|
|
31
34
|
}
|
package/lib/cjs/HiSelector.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DataTypes, IdDefaultType, LabelDefaultType } from "@etsoo/shared";
|
|
2
|
-
import { GridSize, SelectChangeEvent } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ResponsiveStyleValue } from "./ResponsiveStyleValue";
|
|
4
|
+
import { GridSize } from "@mui/material/Grid";
|
|
5
|
+
import { SelectChangeEvent } from "@mui/material/Select";
|
|
5
6
|
/**
|
|
6
7
|
* Hierarchy selector props
|
|
7
8
|
*/
|
package/lib/cjs/HiSelector.js
CHANGED
|
@@ -5,9 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.HiSelector = HiSelector;
|
|
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 SelectEx_1 = require("./SelectEx");
|
|
10
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
11
|
+
const FormLabel_1 = __importDefault(require("@mui/material/FormLabel"));
|
|
11
12
|
/**
|
|
12
13
|
* Hierarchy selector
|
|
13
14
|
* @param props Prop
|
|
@@ -45,5 +46,5 @@ function HiSelector(props) {
|
|
|
45
46
|
react_1.default.useEffect(() => {
|
|
46
47
|
updateValue(currentValue);
|
|
47
48
|
}, [currentValue]);
|
|
48
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(
|
|
49
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: { xs: 12 }, children: (0, jsx_runtime_1.jsx)(FormLabel_1.default, { required: required, sx: { fontSize: (theme) => theme.typography.caption }, children: label }) })), (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: name, value: `${currentValue ?? ""}` }), (0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(SelectEx_1.SelectEx, { idField: idField, label: labels[0], labelField: labelField, name: "tab1", search: search, fullWidth: true, loadData: () => loadData(), value: values[0], onChange: (event) => doChange(event, 0), onItemChange: doItemChange, required: required, error: error, helperText: helperText, variant: variant }) }), localValues[0] != null && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(SelectEx_1.SelectEx, { idField: idField, label: labels[1], labelField: labelField, name: "tab2", search: search, fullWidth: true, loadData: () => loadData(localValues[0]), value: values[1], onChange: (event) => doChange(event, 1), onItemChange: doItemChange, variant: variant }, `${localValues[0]}`) })), localValues[1] != null && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(SelectEx_1.SelectEx, { idField: idField, label: labels[2], labelField: labelField, name: "tab3", search: search, fullWidth: true, loadData: () => loadData(localValues[1]), value: values[2], onChange: (event) => doChange(event, 2), onItemChange: doItemChange, variant: variant }, `${localValues[1]}`) })), localValues[2] != null && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(SelectEx_1.SelectEx, { idField: idField, label: labels[3], labelField: labelField, name: "tab4", search: search, fullWidth: true, loadData: () => loadData(localValues[2]), value: values[3], onChange: (event) => doChange(event, 3), onItemChange: doItemChange, variant: variant }, `${localValues[2]}`) }))] }));
|
|
49
50
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DataTypes, IdDefaultType } from "@etsoo/shared";
|
|
2
|
-
import { AutocompleteChangeReason, GridSize } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ResponsiveStyleValue } from "./ResponsiveStyleValue";
|
|
4
|
+
import { GridSize } from "@mui/material/Grid";
|
|
5
|
+
import { AutocompleteChangeReason } from "@mui/material/Autocomplete";
|
|
5
6
|
/**
|
|
6
7
|
* Hierarchy tiplist selector props
|
|
7
8
|
*/
|
package/lib/cjs/HiSelectorTL.js
CHANGED
|
@@ -5,9 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.HiSelectorTL = HiSelectorTL;
|
|
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 Tiplist_1 = require("./Tiplist");
|
|
10
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
11
|
+
const FormLabel_1 = __importDefault(require("@mui/material/FormLabel"));
|
|
11
12
|
/**
|
|
12
13
|
* Hierarchy tiplist selector
|
|
13
14
|
* @param props Prop
|
|
@@ -39,5 +40,5 @@ function HiSelectorTL(props) {
|
|
|
39
40
|
react_1.default.useEffect(() => {
|
|
40
41
|
updateValue(currentValue);
|
|
41
42
|
}, [currentValue]);
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: { xs: 12 }, children: (0, jsx_runtime_1.jsx)(FormLabel_1.default, { required: required, sx: { fontSize: (theme) => theme.typography.caption }, children: label }) })), (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: name, value: `${currentValue ?? ""}` }), (0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(Tiplist_1.Tiplist, { idField: idField, label: labels[0], name: "tab1", search: search, fullWidth: true, idValue: values[0], loadData: (keyword, id, items) => loadData(keyword, id, items), inputRequired: required, inputError: error, inputHelperText: helperText, onChange: (event, value, reason) => doChange(0, event, value, reason) }) }), localValues[0] != null && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(Tiplist_1.Tiplist, { label: labels[1], idField: idField, name: "tab2", search: search, fullWidth: true, loadData: (keyword, id, items) => loadData(keyword, id, items, localValues[0]), idValue: values[1], onChange: (event, value, reason) => doChange(1, event, value, reason) }, `${localValues[0]}`) })), localValues[1] != null && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(Tiplist_1.Tiplist, { label: labels[2], idField: idField, name: "tab3", search: search, fullWidth: true, loadData: (keyword, id, items) => loadData(keyword, id, items, localValues[1]), idValue: values[2], onChange: (event, value, reason) => doChange(2, event, value, reason) }, `${localValues[1]}`) })), localValues[2] != null && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(Tiplist_1.Tiplist, { label: labels[3], idField: idField, name: "tab4", search: search, fullWidth: true, loadData: (keyword, id, items) => loadData(keyword, id, items, localValues[2]), idValue: values[3], onChange: (event, value, reason) => doChange(3, event, value, reason) }, `${localValues[2]}`) }))] }));
|
|
43
44
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
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.IconButtonLink = IconButtonLink;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
8
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
6
9
|
const react_router_1 = require("react-router");
|
|
7
10
|
/**
|
|
8
11
|
* IconButtonLink
|
|
@@ -15,5 +18,5 @@ function IconButtonLink(props) {
|
|
|
15
18
|
// Navigate
|
|
16
19
|
const navigate = (0, react_router_1.useNavigate)();
|
|
17
20
|
// Layout
|
|
18
|
-
return (0, jsx_runtime_1.jsx)(
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(IconButton_1.default, { ...rest, onClick: () => navigate(href, { state }) });
|
|
19
22
|
}
|
package/lib/cjs/InputField.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextFieldProps } from "@mui/material";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
|
3
3
|
/**
|
|
4
4
|
* Input field props
|
|
5
5
|
*/
|
|
@@ -26,7 +26,7 @@ export type InputFieldProps = TextFieldProps & {
|
|
|
26
26
|
* @param props Props
|
|
27
27
|
* @returns Component
|
|
28
28
|
*/
|
|
29
|
-
export declare const InputField: React.ForwardRefExoticComponent<(Omit<import("@mui/material").StandardTextFieldProps & {
|
|
29
|
+
export declare const InputField: React.ForwardRefExoticComponent<(Omit<import("@mui/material/TextField").StandardTextFieldProps & {
|
|
30
30
|
/**
|
|
31
31
|
* Change delay (ms) to avoid repeatly dispatch onChange
|
|
32
32
|
*/
|
|
@@ -43,7 +43,7 @@ export declare const InputField: React.ForwardRefExoticComponent<(Omit<import("@
|
|
|
43
43
|
* Minimum characters to trigger the change event
|
|
44
44
|
*/
|
|
45
45
|
minChars?: number;
|
|
46
|
-
}, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & {
|
|
46
|
+
}, "ref"> | Omit<import("@mui/material/TextField").OutlinedTextFieldProps & {
|
|
47
47
|
/**
|
|
48
48
|
* Change delay (ms) to avoid repeatly dispatch onChange
|
|
49
49
|
*/
|
|
@@ -60,7 +60,7 @@ export declare const InputField: React.ForwardRefExoticComponent<(Omit<import("@
|
|
|
60
60
|
* Minimum characters to trigger the change event
|
|
61
61
|
*/
|
|
62
62
|
minChars?: number;
|
|
63
|
-
}, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & {
|
|
63
|
+
}, "ref"> | Omit<import("@mui/material/TextField").FilledTextFieldProps & {
|
|
64
64
|
/**
|
|
65
65
|
* Change delay (ms) to avoid repeatly dispatch onChange
|
|
66
66
|
*/
|
package/lib/cjs/InputField.js
CHANGED
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.InputField = void 0;
|
|
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
|
* Input field
|
|
14
14
|
* @param props Props
|
|
@@ -54,5 +54,5 @@ exports.InputField = react_2.default.forwardRef((props, ref) => {
|
|
|
54
54
|
};
|
|
55
55
|
}, []);
|
|
56
56
|
// Layout
|
|
57
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
57
|
+
return ((0, jsx_runtime_1.jsx)(TextField_1.default, { ref: ref, InputLabelProps: InputLabelProps, InputProps: InputProps, inputProps: inputProps, onChange: onChangeEx, size: size, variant: variant, ...rest }));
|
|
58
58
|
});
|
package/lib/cjs/InputTipField.js
CHANGED
|
@@ -5,11 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.InputTipField = InputTipField;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
10
9
|
const react_1 = __importDefault(require("react"));
|
|
11
10
|
const InputField_1 = require("./InputField");
|
|
12
11
|
const ReactApp_1 = require("./app/ReactApp");
|
|
12
|
+
const ListItem_1 = __importDefault(require("@mui/material/ListItem"));
|
|
13
|
+
const Popover_1 = __importDefault(require("@mui/material/Popover"));
|
|
14
|
+
const List_1 = __importDefault(require("@mui/material/List"));
|
|
15
|
+
const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
|
|
13
16
|
/**
|
|
14
17
|
* InputField with tips
|
|
15
18
|
* @param props Props
|
|
@@ -26,7 +29,7 @@ function InputTipField(props) {
|
|
|
26
29
|
const { labelProps = {
|
|
27
30
|
title: app?.get("clickForDetails"),
|
|
28
31
|
sx: { color: (theme) => theme.palette.error.main, cursor: "pointer" }
|
|
29
|
-
}, changeDelay = 480, onChangeDelay, loadData, itemLabel = (item) => item.label, renderItem = (item) => (0, jsx_runtime_1.jsx)(
|
|
32
|
+
}, changeDelay = 480, onChangeDelay, loadData, itemLabel = (item) => item.label, renderItem = (item) => (0, jsx_runtime_1.jsx)(ListItem_1.default, { children: itemLabel(item) }, item.id), slotProps = {}, ...rest } = props;
|
|
30
33
|
const { input, ...slotRests } = slotProps;
|
|
31
34
|
const load = (value) => {
|
|
32
35
|
if (value.length < 2) {
|
|
@@ -38,16 +41,16 @@ function InputTipField(props) {
|
|
|
38
41
|
setTitle(title);
|
|
39
42
|
});
|
|
40
43
|
};
|
|
41
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Popover_1.default, { open: anchorEl != null, anchorEl: anchorEl, onClose: () => setAnchorEl(undefined), anchorOrigin: {
|
|
42
45
|
vertical: "bottom",
|
|
43
46
|
horizontal: "left"
|
|
44
|
-
}, children: data && (0, jsx_runtime_1.jsx)(
|
|
47
|
+
}, children: data && (0, jsx_runtime_1.jsx)(List_1.default, { children: data.map((item) => renderItem(item)) }) }), (0, jsx_runtime_1.jsx)(InputField_1.InputField, { changeDelay: changeDelay, onChangeDelay: (event) => {
|
|
45
48
|
load(event.target.value);
|
|
46
49
|
if (onChangeDelay)
|
|
47
50
|
onChangeDelay(event);
|
|
48
51
|
}, slotProps: {
|
|
49
52
|
input: {
|
|
50
|
-
endAdornment: title ? ((0, jsx_runtime_1.jsx)(
|
|
53
|
+
endAdornment: title ? ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, { position: "end", children: (0, jsx_runtime_1.jsx)(Typography_1.default, { onClick: (event) => {
|
|
51
54
|
setAnchorEl(event.currentTarget);
|
|
52
55
|
}, ...labelProps, children: title }) })) : undefined,
|
|
53
56
|
...input
|
package/lib/cjs/IntInputField.js
CHANGED
|
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.IntInputField = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
10
9
|
const Remove_1 = __importDefault(require("@mui/icons-material/Remove"));
|
|
11
10
|
const react_1 = __importDefault(require("react"));
|
|
12
11
|
const shared_1 = require("@etsoo/shared");
|
|
13
12
|
const InputField_1 = require("./InputField");
|
|
13
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
14
|
+
const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
|
|
15
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
14
16
|
/**
|
|
15
17
|
* Integer input field (controlled)
|
|
16
18
|
*/
|
|
@@ -48,8 +50,8 @@ exports.IntInputField = react_1.default.forwardRef((props, ref) => {
|
|
|
48
50
|
style: inputStyle,
|
|
49
51
|
inputMode: "numeric"
|
|
50
52
|
}, InputProps: {
|
|
51
|
-
startAdornment: symbol ? ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(
|
|
52
|
-
endAdornment: endSymbol ? ((0, jsx_runtime_1.jsx)(
|
|
53
|
+
startAdornment: symbol ? ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(InputAdornment_1.default, { position: "start", children: symbol }) })) : undefined,
|
|
54
|
+
endAdornment: endSymbol ? ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, { position: "end", children: endSymbol })) : undefined
|
|
53
55
|
}, sx: buttons
|
|
54
56
|
? {
|
|
55
57
|
"& input[type=number]::-webkit-inner-spin-button": {
|
|
@@ -82,13 +84,13 @@ exports.IntInputField = react_1.default.forwardRef((props, ref) => {
|
|
|
82
84
|
onChangeDelay(event);
|
|
83
85
|
}, onFocus: onFocus, required: required, ...rest }));
|
|
84
86
|
if (buttons)
|
|
85
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
87
|
+
return ((0, jsx_runtime_1.jsxs)(Box_1.default, { sx: {
|
|
86
88
|
display: "flex",
|
|
87
89
|
alignItems: "center",
|
|
88
90
|
width: "100%",
|
|
89
91
|
gap: 0.5,
|
|
90
92
|
...boxProps
|
|
91
|
-
}, children: [(0, jsx_runtime_1.jsx)(
|
|
93
|
+
}, children: [(0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", onClick: () => {
|
|
92
94
|
if (localValue == null)
|
|
93
95
|
return;
|
|
94
96
|
const value = shared_1.NumberUtils.parse(localValue);
|
|
@@ -98,7 +100,7 @@ exports.IntInputField = react_1.default.forwardRef((props, ref) => {
|
|
|
98
100
|
setValue(undefined, "SUB");
|
|
99
101
|
else
|
|
100
102
|
setValue(value - step, "SUB");
|
|
101
|
-
}, children: (0, jsx_runtime_1.jsx)(Remove_1.default, {}) }), layout, (0, jsx_runtime_1.jsx)(
|
|
103
|
+
}, children: (0, jsx_runtime_1.jsx)(Remove_1.default, {}) }), layout, (0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", onClick: () => {
|
|
102
104
|
if (localValue == null) {
|
|
103
105
|
setValue(min, "ADD");
|
|
104
106
|
return;
|
package/lib/cjs/ItemList.js
CHANGED
|
@@ -6,8 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ItemList = ItemList;
|
|
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 shared_1 = require("@etsoo/shared");
|
|
10
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
11
|
+
const Dialog_1 = __importDefault(require("@mui/material/Dialog"));
|
|
12
|
+
const DialogTitle_1 = __importDefault(require("@mui/material/DialogTitle"));
|
|
13
|
+
const DialogContent_1 = __importDefault(require("@mui/material/DialogContent"));
|
|
14
|
+
const List_1 = __importDefault(require("@mui/material/List"));
|
|
15
|
+
const ListItemButton_1 = __importDefault(require("@mui/material/ListItemButton"));
|
|
16
|
+
const ListItemText_1 = __importDefault(require("@mui/material/ListItemText"));
|
|
11
17
|
/**
|
|
12
18
|
* Item list component
|
|
13
19
|
* @param props Properties
|
|
@@ -63,9 +69,9 @@ function ItemList(props) {
|
|
|
63
69
|
onClose(item, true);
|
|
64
70
|
}
|
|
65
71
|
};
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Button_1.default, { className: className, variant: variant, startIcon: icon, color: color, size: size, onClick: clickHandler, children: buttonLabel ?? (currentItem ? getLabel(currentItem) : undefined) }), (0, jsx_runtime_1.jsxs)(Dialog_1.default, { "aria-labelledby": "dialog-title", open: open, onClose: closeHandler, children: [title && (0, jsx_runtime_1.jsx)(DialogTitle_1.default, { id: "dialog-title", children: title }), (0, jsx_runtime_1.jsx)(DialogContent_1.default, { sx: { minWidth }, children: (0, jsx_runtime_1.jsx)(List_1.default, { children: items.map((item) => {
|
|
67
73
|
const id = item[idField];
|
|
68
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
69
|
-
!keepClick, onClick: () => closeItemHandler(item), children: (0, jsx_runtime_1.jsx)(
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)(ListItemButton_1.default, { disabled: id === (currentItem ? currentItem[idField] : undefined) &&
|
|
75
|
+
!keepClick, onClick: () => closeItemHandler(item), children: (0, jsx_runtime_1.jsx)(ListItemText_1.default, { children: getLabel(item) }) }, id));
|
|
70
76
|
}) }) })] })] }));
|
|
71
77
|
}
|