@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AddressCity, AddressDistrict, AddressRegionDb, AddressState, IApiPayload } from "@etsoo/appscript";
|
|
2
|
-
import { GridSize } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
4
3
|
import { ResponsiveStyleValue } from "./ResponsiveStyleValue";
|
|
5
4
|
import { RegionsRQ } from "./RegionsRQ";
|
|
5
|
+
import { GridSize } from "@mui/material/Grid";
|
|
6
6
|
/**
|
|
7
7
|
* Address field
|
|
8
8
|
*/
|
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.AddressField = void 0;
|
|
7
7
|
exports.AddressSelector = AddressSelector;
|
|
8
8
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const react_1 = __importDefault(require("react"));
|
|
11
10
|
const ComboBox_1 = require("./ComboBox");
|
|
12
11
|
const Tiplist_1 = require("./Tiplist");
|
|
13
12
|
const ReactApp_1 = require("./app/ReactApp");
|
|
13
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
14
|
+
const FormLabel_1 = __importDefault(require("@mui/material/FormLabel"));
|
|
14
15
|
/**
|
|
15
16
|
* Address field
|
|
16
17
|
*/
|
|
@@ -132,12 +133,12 @@ function AddressSelector(props) {
|
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
// Layout
|
|
135
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [label && ((0, jsx_runtime_1.jsx)(
|
|
136
|
+
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 }) })), !hideRegion && ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(Tiplist_1.Tiplist, { label: regionLabel, name: AddressField.Region, search: search, fullWidth: true, idValue: regionState, loadData: (keyword, id, items) => api.regions({
|
|
136
137
|
keyword,
|
|
137
138
|
id,
|
|
138
139
|
items,
|
|
139
140
|
favoredIds: favoredIds == null
|
|
140
141
|
? undefined
|
|
141
142
|
: favoredIds(AddressField.Region)
|
|
142
|
-
}), inputRequired: required, inputError: error, inputHelperText: helperText, onChange: (_event, value) => handleChange([AddressField.Region, value]) }) })), (0, jsx_runtime_1.jsx)(
|
|
143
|
+
}), inputRequired: required, inputError: error, inputHelperText: helperText, onChange: (_event, value) => handleChange([AddressField.Region, value]) }) })), (0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(ComboBox_1.ComboBox, { name: AddressField.State, label: stateLabel, search: search, fullWidth: true, idValue: stateState, options: states, inputRequired: required, inputError: hideRegion ? error : undefined, inputHelperText: hideRegion ? helperText : undefined, onChange: (_event, value) => handleChange([AddressField.State, value]) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(ComboBox_1.ComboBox, { name: AddressField.City, label: cityLabel, search: search, fullWidth: true, idValue: cityState, options: cities, onChange: (_event, value) => handleChange([AddressField.City, value]) }) }), (0, jsx_runtime_1.jsx)(Grid_1.default, { size: breakPoints, children: (0, jsx_runtime_1.jsx)(ComboBox_1.ComboBox, { name: AddressField.District, label: districtLabel, search: search, fullWidth: true, idValue: districtState, options: districts, onChange: (_event, value) => handleChange([AddressField.District, value]) }) })] }));
|
|
143
144
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Theme } from "@mui/material";
|
|
2
1
|
import React, { CSSProperties } from "react";
|
|
3
2
|
import { ListMoreDisplayProps } from "./ListMoreDisplay";
|
|
4
3
|
import { AuditLineDto } from "@etsoo/appscript";
|
|
4
|
+
import { Theme } from "@mui/material/styles";
|
|
5
5
|
/**
|
|
6
6
|
* Audit display props
|
|
7
7
|
*/
|
package/lib/cjs/AuditDisplay.js
CHANGED
|
@@ -6,11 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.AuditDisplay = AuditDisplay;
|
|
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 ListMoreDisplay_1 = require("./ListMoreDisplay");
|
|
12
11
|
const ShowDataComparison_1 = require("./ShowDataComparison");
|
|
13
12
|
const ReactApp_1 = require("./app/ReactApp");
|
|
13
|
+
const styles_1 = require("@mui/material/styles");
|
|
14
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
15
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
16
|
+
const Divider_1 = __importDefault(require("@mui/material/Divider"));
|
|
14
17
|
/**
|
|
15
18
|
* Audit display
|
|
16
19
|
* @param props Props
|
|
@@ -18,7 +21,7 @@ const ReactApp_1 = require("./app/ReactApp");
|
|
|
18
21
|
*/
|
|
19
22
|
function AuditDisplay(props) {
|
|
20
23
|
// Theme
|
|
21
|
-
const theme = (0,
|
|
24
|
+
const theme = (0, styles_1.useTheme)();
|
|
22
25
|
// Global app
|
|
23
26
|
const app = (0, ReactApp_1.useAppContext)();
|
|
24
27
|
// Get label
|
|
@@ -37,16 +40,16 @@ function AuditDisplay(props) {
|
|
|
37
40
|
background: index % 2 === 0 ? theme.palette.grey[100] : theme.palette.grey[50]
|
|
38
41
|
}), getColumnLabel, equalCheck, itemRenderer = (data) => {
|
|
39
42
|
const { newData, oldData, changes = { newData: newData ?? {}, oldData: oldData ?? {} } } = data;
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [changes != null && ((0, jsx_runtime_1.jsx)(
|
|
43
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [changes != null && ((0, jsx_runtime_1.jsx)(Button_1.default, { variant: "outlined", size: "small", onClick: () => (0, ShowDataComparison_1.ShowDataComparison)(changes, title, getColumnLabel, equalCheck), sx: {
|
|
41
44
|
marginLeft: theme.spacing(1),
|
|
42
45
|
marginTop: theme.spacing(-0.5),
|
|
43
46
|
float: "right"
|
|
44
|
-
}, children: title })), (0, jsx_runtime_1.jsx)(
|
|
47
|
+
}, children: title })), (0, jsx_runtime_1.jsx)(Typography_1.default, { children: formatDate(data.creation) +
|
|
45
48
|
", [" +
|
|
46
49
|
getLabel(data.action) +
|
|
47
50
|
"], " +
|
|
48
51
|
data.user })] }));
|
|
49
|
-
}, headerTitle = ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
52
|
+
}, headerTitle = ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { children: getLabel("audits") }), (0, jsx_runtime_1.jsx)(Divider_1.default, {})] })), ...rest } = props;
|
|
50
53
|
// Layout
|
|
51
54
|
return ((0, jsx_runtime_1.jsx)(ListMoreDisplay_1.ListMoreDisplay, { headerTitle: headerTitle, ...rest, children: (data, index) => ((0, jsx_runtime_1.jsx)("div", { style: getItemStyle(index, theme), children: itemRenderer(data, index) }, data.id)) }));
|
|
52
55
|
}
|
package/lib/cjs/BackButton.d.ts
CHANGED
package/lib/cjs/BackButton.js
CHANGED
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.BackButton = BackButton;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const ArrowBack_1 = __importDefault(require("@mui/icons-material/ArrowBack"));
|
|
9
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
10
|
+
const styles_1 = require("@mui/material/styles");
|
|
10
11
|
const react_router_1 = require("react-router");
|
|
11
12
|
/**
|
|
12
13
|
* BackButton
|
|
@@ -17,7 +18,7 @@ function BackButton(props) {
|
|
|
17
18
|
// Destruct
|
|
18
19
|
const { color = "primary", size = "small", onClick, ...rest } = props;
|
|
19
20
|
// Theme
|
|
20
|
-
const theme = (0,
|
|
21
|
+
const theme = (0, styles_1.useTheme)();
|
|
21
22
|
// Navigate
|
|
22
23
|
const navigate = (0, react_router_1.useNavigate)();
|
|
23
24
|
// Color
|
|
@@ -31,7 +32,7 @@ function BackButton(props) {
|
|
|
31
32
|
// Navigate
|
|
32
33
|
navigate(-1);
|
|
33
34
|
};
|
|
34
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(IconButton_1.default, { "aria-label": "Back", color: color, size: size, onClick: onClickLocal, sx: {
|
|
35
36
|
backgroundColor: pColor.contrastText,
|
|
36
37
|
border: `1px solid ${pColor.light}`
|
|
37
38
|
}, ...rest, children: (0, jsx_runtime_1.jsx)(ArrowBack_1.default, {}) }));
|
|
@@ -7,9 +7,10 @@ exports.BridgeCloseButton = BridgeCloseButton;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const appscript_1 = require("@etsoo/appscript");
|
|
9
9
|
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
10
|
const react_1 = __importDefault(require("react"));
|
|
12
11
|
const ReactApp_1 = require("./app/ReactApp");
|
|
12
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
13
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
13
14
|
/**
|
|
14
15
|
* Bridge close button
|
|
15
16
|
* @param props Props
|
|
@@ -33,5 +34,5 @@ function BridgeCloseButton(props) {
|
|
|
33
34
|
onClick(event);
|
|
34
35
|
host.exit();
|
|
35
36
|
};
|
|
36
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
37
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { ...boxProps, children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { "aria-label": "close", onClick: onClickLocal, title: title, ...rest, children: (0, jsx_runtime_1.jsx)(Close_1.default, {}) }) }));
|
|
37
38
|
}
|
package/lib/cjs/ButtonLink.d.ts
CHANGED
package/lib/cjs/ButtonLink.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
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.ButtonLink = ButtonLink;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
8
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
9
|
+
const react_router_dom_1 = require("react-router-dom");
|
|
7
10
|
/**
|
|
8
11
|
* ButtonLink
|
|
9
12
|
* @param props Props
|
|
@@ -13,10 +16,10 @@ function ButtonLink(props) {
|
|
|
13
16
|
// Destruct
|
|
14
17
|
const { href, state, ...rest } = props;
|
|
15
18
|
// Navigate
|
|
16
|
-
const navigate = (0,
|
|
19
|
+
const navigate = (0, react_router_dom_1.useNavigate)();
|
|
17
20
|
const onClick = href.includes("://")
|
|
18
21
|
? () => window.open(href, "_blank")
|
|
19
22
|
: () => navigate(href, { state });
|
|
20
23
|
// Layout
|
|
21
|
-
return (0, jsx_runtime_1.jsx)(
|
|
24
|
+
return (0, jsx_runtime_1.jsx)(Button_1.default, { ...rest, onClick: onClick });
|
|
22
25
|
}
|
package/lib/cjs/ButtonPopover.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ButtonPopover = ButtonPopover;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Popover_1 = __importDefault(require("@mui/material/Popover"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
/**
|
|
11
11
|
* Button popover component
|
|
@@ -39,7 +39,7 @@ function ButtonPopover(props) {
|
|
|
39
39
|
};
|
|
40
40
|
const styles = position === "left" ? { left: 14 } : { right: 14 };
|
|
41
41
|
// Layout
|
|
42
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [button((handler) => setAnchorEl(handler)), (0, jsx_runtime_1.jsx)(
|
|
42
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [button((handler) => setAnchorEl(handler)), (0, jsx_runtime_1.jsx)(Popover_1.default, { anchorEl: anchorEl, open: open, onClose: handleClose, onClick: handleClose, transformOrigin: { horizontal: position, vertical: "top" }, anchorOrigin: { horizontal: position, vertical: "bottom" }, slotProps: {
|
|
43
43
|
paper: {
|
|
44
44
|
elevation: 0,
|
|
45
45
|
sx: {
|
package/lib/cjs/ComboBox.js
CHANGED
|
@@ -6,14 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ComboBox = ComboBox;
|
|
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 shared_2 = require("@etsoo/shared");
|
|
12
11
|
const react_2 = require("@etsoo/react");
|
|
13
|
-
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
14
12
|
const SearchField_1 = require("./SearchField");
|
|
15
13
|
const InputField_1 = require("./InputField");
|
|
16
14
|
const ReactApp_1 = require("./app/ReactApp");
|
|
15
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
16
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
17
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
18
|
+
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
17
19
|
/**
|
|
18
20
|
* ComboBox
|
|
19
21
|
* @param props Props
|
|
@@ -122,7 +124,7 @@ function ComboBox(props) {
|
|
|
122
124
|
};
|
|
123
125
|
}, []);
|
|
124
126
|
// Layout
|
|
125
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: getValue(stateValue), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsxs)(
|
|
127
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: getValue(stateValue), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsxs)(Stack_1.default, { gap: 0.5, direction: "row", width: "100%", children: [(0, jsx_runtime_1.jsx)(Autocomplete_1.default, { value: stateValue, disableCloseOnSelect: disableCloseOnSelect, getOptionLabel: getOptionLabel, isOptionEqualToValue: (option, value) => option[idField] === value[idField], onChange: (event, value, reason, details) => {
|
|
126
128
|
// Set value
|
|
127
129
|
setInputValue(value);
|
|
128
130
|
// Custom
|
|
@@ -130,7 +132,7 @@ function ComboBox(props) {
|
|
|
130
132
|
onChange(event, value, reason, details);
|
|
131
133
|
if (onValueChange)
|
|
132
134
|
onValueChange(value);
|
|
133
|
-
}, openOnFocus: openOnFocus, sx: sx, renderInput: (params) => search ? ((0, jsx_runtime_1.jsx)(SearchField_1.SearchField, { ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, error: inputError, helperText: inputHelperText })) : ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, error: inputError, helperText: inputHelperText })), options: localOptions, noOptionsText: noOptionsText, loadingText: loadingText, openText: openText, getOptionKey: getOptionKey, ...rest }), onAdd && ((0, jsx_runtime_1.jsx)(
|
|
135
|
+
}, openOnFocus: openOnFocus, sx: sx, renderInput: (params) => search ? ((0, jsx_runtime_1.jsx)(SearchField_1.SearchField, { ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, error: inputError, helperText: inputHelperText })) : ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, error: inputError, helperText: inputHelperText })), options: localOptions, noOptionsText: noOptionsText, loadingText: loadingText, openText: openText, getOptionKey: getOptionKey, ...rest }), onAdd && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", onClick: () => {
|
|
134
136
|
onAdd(doLoadData);
|
|
135
137
|
}, title: addLabel, children: (0, jsx_runtime_1.jsx)(Add_1.default, {}) }))] })] }));
|
|
136
138
|
}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ComboBoxMultiple = ComboBoxMultiple;
|
|
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 shared_2 = require("@etsoo/shared");
|
|
12
11
|
const react_2 = require("@etsoo/react");
|
|
@@ -15,6 +14,8 @@ const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
|
|
|
15
14
|
const SearchField_1 = require("./SearchField");
|
|
16
15
|
const InputField_1 = require("./InputField");
|
|
17
16
|
const ReactApp_1 = require("./app/ReactApp");
|
|
17
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
18
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
18
19
|
const icon = (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" });
|
|
19
20
|
const checkedIcon = (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" });
|
|
20
21
|
/**
|
|
@@ -28,7 +29,7 @@ function ComboBoxMultiple(props) {
|
|
|
28
29
|
// Labels
|
|
29
30
|
const labels = app?.getLabels("noOptions", "loading");
|
|
30
31
|
// Destruct
|
|
31
|
-
const { search = false, autoAddBlankItem = search, idField = "id", idValue, idValues, inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputReset, inputVariant, defaultValue, label, labelField = "label", loadData, onLoadData, name, inputAutoComplete = "off", options, dataReadonly = true, readOnly, onChange, openOnFocus = true, value, disableCloseOnSelect = true, renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsxs)("li", { ...props, children: [(0, jsx_runtime_1.jsx)(
|
|
32
|
+
const { search = false, autoAddBlankItem = search, idField = "id", idValue, idValues, inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputReset, inputVariant, defaultValue, label, labelField = "label", loadData, onLoadData, name, inputAutoComplete = "off", options, dataReadonly = true, readOnly, onChange, openOnFocus = true, value, disableCloseOnSelect = true, renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsxs)("li", { ...props, children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { icon: icon, checkedIcon: checkedIcon, style: { marginRight: 8 }, checked: selected }), `${option[labelField]}`] })), getOptionLabel = (option) => `${option[labelField]}`, sx = { minWidth: "150px" }, noOptionsText = labels?.noOptions, loadingText = labels?.loading, ...rest } = props;
|
|
32
33
|
// Value input ref
|
|
33
34
|
const inputRef = react_1.default.createRef();
|
|
34
35
|
// Options state
|
|
@@ -120,7 +121,7 @@ function ComboBoxMultiple(props) {
|
|
|
120
121
|
};
|
|
121
122
|
}, []);
|
|
122
123
|
// Layout
|
|
123
|
-
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: getValue(stateValue), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(
|
|
124
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: getValue(stateValue), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(Autocomplete_1.default, { value: stateValue == null
|
|
124
125
|
? []
|
|
125
126
|
: Array.isArray(stateValue)
|
|
126
127
|
? stateValue
|
package/lib/cjs/ComboBoxPro.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AutocompleteProps } from "@mui/material";
|
|
2
1
|
import { InputFieldProps } from "./InputField";
|
|
3
2
|
import { ListType2 } from "@etsoo/shared";
|
|
3
|
+
import { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
4
4
|
export type ComboBoxProProps<D extends ListType2 = ListType2> = Omit<AutocompleteProps<D, false, false, true>, "open" | "multiple" | "options" | "renderInput"> & {
|
|
5
5
|
/**
|
|
6
6
|
* Label
|
package/lib/cjs/ComboBoxPro.js
CHANGED
|
@@ -5,11 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ComboBoxPro = ComboBoxPro;
|
|
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 InputField_1 = require("./InputField");
|
|
11
10
|
const shared_1 = require("@etsoo/shared");
|
|
12
11
|
const ReactApp_1 = require("./app/ReactApp");
|
|
12
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
13
13
|
function ComboBoxPro(props) {
|
|
14
14
|
// Global app
|
|
15
15
|
const app = (0, ReactApp_1.useAppContext)();
|
|
@@ -51,7 +51,7 @@ function ComboBoxPro(props) {
|
|
|
51
51
|
setOptions(options);
|
|
52
52
|
}
|
|
53
53
|
}, [options]);
|
|
54
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(Autocomplete_1.default, { id: name, value: localValue == null ? "" : localValue, open: open, freeSolo: true, clearOnBlur: false, onOpen: () => {
|
|
55
55
|
setOpen(true);
|
|
56
56
|
}, onClose: () => {
|
|
57
57
|
setOpen(false);
|
|
@@ -5,7 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CountdownButton = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const
|
|
8
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
9
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
9
10
|
const react_1 = __importDefault(require("react"));
|
|
10
11
|
/**
|
|
11
12
|
* Countdown button
|
|
@@ -58,7 +59,7 @@ exports.CountdownButton = react_1.default.forwardRef((props, ref) => {
|
|
|
58
59
|
endIcon = undefined;
|
|
59
60
|
}
|
|
60
61
|
else if (state === 1) {
|
|
61
|
-
endIcon = (0, jsx_runtime_1.jsx)(
|
|
62
|
+
endIcon = (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 12 });
|
|
62
63
|
}
|
|
63
64
|
else {
|
|
64
65
|
const countdown = (state - ignoreSeconds)
|
|
@@ -87,5 +88,5 @@ exports.CountdownButton = react_1.default.forwardRef((props, ref) => {
|
|
|
87
88
|
react_1.default.useEffect(() => {
|
|
88
89
|
setState(initState);
|
|
89
90
|
}, [initState]);
|
|
90
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
91
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.default, { disabled: disabled, endIcon: endIcon, onClick: localClick, ref: ref, ...rest }));
|
|
91
92
|
});
|
package/lib/cjs/DataGridEx.js
CHANGED
|
@@ -9,9 +9,13 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
9
9
|
const css_1 = require("@emotion/css");
|
|
10
10
|
const react_1 = require("@etsoo/react");
|
|
11
11
|
const shared_1 = require("@etsoo/shared");
|
|
12
|
-
const material_1 = require("@mui/material");
|
|
13
12
|
const react_2 = __importDefault(require("react"));
|
|
14
13
|
const DataGridRenderers_1 = require("./DataGridRenderers");
|
|
14
|
+
const styles_1 = require("@mui/material/styles");
|
|
15
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
16
|
+
const TableSortLabel_1 = __importDefault(require("@mui/material/TableSortLabel"));
|
|
17
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
18
|
+
const Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
15
19
|
// Borders
|
|
16
20
|
const boldBorder = "2px solid rgba(224, 224, 224, 1)";
|
|
17
21
|
const thinBorder = "1px solid rgba(224, 224, 224, 1)";
|
|
@@ -77,10 +81,10 @@ function DataGridExCalColumns(columns) {
|
|
|
77
81
|
*/
|
|
78
82
|
function DataGridEx(props) {
|
|
79
83
|
// Theme
|
|
80
|
-
const theme = (0,
|
|
84
|
+
const theme = (0, styles_1.useTheme)();
|
|
81
85
|
const defaultHeaderRenderer = (states) => {
|
|
82
86
|
const { orderBy } = states.queryPaging;
|
|
83
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "DataGridEx-Header", display: "flex", alignItems: "center", borderBottom: boldBorder, fontWeight: 500, minWidth: widthCalculator.total, height: headerHeight, children: columns.map((column, index) => {
|
|
84
88
|
// Destruct
|
|
85
89
|
const { align, field, header, headerCellRenderer, sortable, sortAsc = true, type } = column;
|
|
86
90
|
// Header text
|
|
@@ -99,7 +103,7 @@ function DataGridEx(props) {
|
|
|
99
103
|
}
|
|
100
104
|
else if (sortable && field != null) {
|
|
101
105
|
const active = orderBy?.some((o) => o.field.toUpperCase() === field.toUpperCase());
|
|
102
|
-
sortLabel = ((0, jsx_runtime_1.jsx)(
|
|
106
|
+
sortLabel = ((0, jsx_runtime_1.jsx)(TableSortLabel_1.default, { active: active, direction: sortAsc ? "asc" : "desc", onClick: (_event) => {
|
|
103
107
|
if (active)
|
|
104
108
|
column.sortAsc = !sortAsc;
|
|
105
109
|
handleSort(field, column.sortAsc);
|
|
@@ -108,11 +112,11 @@ function DataGridEx(props) {
|
|
|
108
112
|
else {
|
|
109
113
|
sortLabel = headerText;
|
|
110
114
|
}
|
|
111
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
115
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { textAlign: (0, react_1.GridAlignGet)(align, type), width: columnWidth(index), children: (0, jsx_runtime_1.jsx)(Box_1.default, { className: "DataGridEx-Cell", onMouseEnter: handleMouseEnter, ...cellProps, children: sortLabel }) }, field ?? index.toString()));
|
|
112
116
|
}) }));
|
|
113
117
|
};
|
|
114
118
|
function defaultFooterRenderer(rows, states) {
|
|
115
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
119
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { className: "DataGridEx-Footer", display: "flex", alignItems: "center", borderTop: thinBorder, marginTop: "1px", minWidth: widthCalculator.total, height: bottomHeight - 1, children: columns.map((column, index) => {
|
|
116
120
|
// Destruct
|
|
117
121
|
const { align, field, type } = column;
|
|
118
122
|
// Cell props
|
|
@@ -127,7 +131,7 @@ function DataGridEx(props) {
|
|
|
127
131
|
checkable
|
|
128
132
|
})
|
|
129
133
|
: undefined;
|
|
130
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
134
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { textAlign: (0, react_1.GridAlignGet)(align, type), width: columnWidth(index), children: (0, jsx_runtime_1.jsx)(Box_1.default, { className: "DataGridEx-Cell", onMouseEnter: handleMouseEnter, ...cellProps, children: cell }) }, "bottom-" + (field ?? index.toString())));
|
|
131
135
|
}) }));
|
|
132
136
|
}
|
|
133
137
|
// Destruct
|
|
@@ -142,7 +146,7 @@ function DataGridEx(props) {
|
|
|
142
146
|
cellProps.sx = {
|
|
143
147
|
padding: "4px!important"
|
|
144
148
|
};
|
|
145
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
149
|
+
return ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { color: "primary", checked: selected, onChange: (_event, checked) => {
|
|
146
150
|
refs.current.ref?.selectItem(data, checked);
|
|
147
151
|
} }));
|
|
148
152
|
},
|
|
@@ -152,7 +156,7 @@ function DataGridEx(props) {
|
|
|
152
156
|
cellProps.sx = {
|
|
153
157
|
padding: `${hpad}px 4px ${hpad - 1}px 4px!important`
|
|
154
158
|
};
|
|
155
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
159
|
+
return ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { color: "primary", indeterminate: states.selectedItems.length > 0 &&
|
|
156
160
|
states.selectedItems.length < states.loadedItems, checked: states.selectedItems.length > 0, onChange: (_event, checked) => refs.current.ref?.selectAll(checked) }));
|
|
157
161
|
}
|
|
158
162
|
};
|
|
@@ -271,7 +275,7 @@ function DataGridEx(props) {
|
|
|
271
275
|
renderProps: typeof renderProps === "function" ? renderProps(data) : renderProps,
|
|
272
276
|
setItems
|
|
273
277
|
});
|
|
274
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: rowClass, style: style, "data-row": rowIndex, "data-column": columnIndex, onMouseDown: selectable && !checkable ? handleMouseDown : undefined, onMouseOver: selectable ? handleMouseOver : undefined, onMouseOut: selectable ? handleMouseOut : undefined, onClick: (event) => onClick && data != null && onClick(event, data), onDoubleClick: (event) => onDoubleClick && data != null && onDoubleClick(event, data), children: (0, jsx_runtime_1.jsx)(
|
|
278
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: rowClass, style: style, "data-row": rowIndex, "data-column": columnIndex, onMouseDown: selectable && !checkable ? handleMouseDown : undefined, onMouseOver: selectable ? handleMouseOver : undefined, onMouseOut: selectable ? handleMouseOut : undefined, onClick: (event) => onClick && data != null && onClick(event, data), onDoubleClick: (event) => onDoubleClick && data != null && onDoubleClick(event, data), children: (0, jsx_runtime_1.jsx)(Box_1.default, { ...cellProps, onMouseEnter: handleMouseEnter, children: child }) }));
|
|
275
279
|
};
|
|
276
280
|
// Column width calculator
|
|
277
281
|
const widthCalculator = react_2.default.useMemo(() => DataGridExCalColumns(columns), [columns]);
|
|
@@ -297,7 +301,7 @@ function DataGridEx(props) {
|
|
|
297
301
|
(hideFooter ? 0 : bottomHeight + 1) -
|
|
298
302
|
scrollbarSize, headerRenderer: headerRenderer, idField: idField, itemRenderer: itemRenderer, footerRenderer: hideFooter ? undefined : footerRenderer, width: Math.max(width ?? 0, widthCalculator.total), mRef: mRefLocal, ...rest }));
|
|
299
303
|
}, [width]);
|
|
300
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
304
|
+
return ((0, jsx_runtime_1.jsx)(Paper_1.default, { sx: {
|
|
301
305
|
fontSize: "0.875rem",
|
|
302
306
|
height,
|
|
303
307
|
"& .DataGridEx-Cell": {
|
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DataGridRenderers = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const shared_1 = require("@etsoo/shared");
|
|
10
9
|
const Check_1 = __importDefault(require("@mui/icons-material/Check"));
|
|
11
10
|
const Clear_1 = __importDefault(require("@mui/icons-material/Clear"));
|
|
12
11
|
const DateText_1 = require("./texts/DateText");
|
|
13
12
|
const react_1 = require("@etsoo/react");
|
|
13
|
+
const CircularProgress_1 = __importDefault(require("@mui/material/CircularProgress"));
|
|
14
14
|
/**
|
|
15
15
|
* Data grid renderers
|
|
16
16
|
*/
|
|
@@ -26,7 +26,7 @@ var DataGridRenderers;
|
|
|
26
26
|
if (data == null) {
|
|
27
27
|
// First column, show loading indicator
|
|
28
28
|
if (columnIndex === 0)
|
|
29
|
-
return (0, jsx_runtime_1.jsx)(
|
|
29
|
+
return (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 15 });
|
|
30
30
|
// Others return undefined
|
|
31
31
|
return undefined;
|
|
32
32
|
}
|
package/lib/cjs/DataSteps.d.ts
CHANGED
package/lib/cjs/DataSteps.js
CHANGED
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DataSteps = DataSteps;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const Close_1 = __importDefault(require("@mui/icons-material/Close"));
|
|
10
9
|
const NavigateNext_1 = __importDefault(require("@mui/icons-material/NavigateNext"));
|
|
11
10
|
const NavigateBefore_1 = __importDefault(require("@mui/icons-material/NavigateBefore"));
|
|
@@ -15,6 +14,10 @@ const react_1 = __importDefault(require("react"));
|
|
|
15
14
|
const FlexBox_1 = require("./FlexBox");
|
|
16
15
|
const MUGlobal_1 = require("./MUGlobal");
|
|
17
16
|
const ReactApp_1 = require("./app/ReactApp");
|
|
17
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
18
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
19
|
+
const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
|
|
20
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
18
21
|
/**
|
|
19
22
|
* Data collecting steps component
|
|
20
23
|
* @param props Props
|
|
@@ -44,15 +47,15 @@ function DataSteps(props) {
|
|
|
44
47
|
const [{ callback, ...rest }, more] = steps(index, jsonRef.current);
|
|
45
48
|
app.showInputDialog({
|
|
46
49
|
...rest,
|
|
47
|
-
buttons: (n, callback) => ((0, jsx_runtime_1.jsxs)(FlexBox_1.HBox, { paddingLeft: 2, paddingRight: 2, paddingBottom: 2, gap: 2, justifyContent: "space-between", children: [index === 0 ? ((0, jsx_runtime_1.jsx)(
|
|
50
|
+
buttons: (n, callback) => ((0, jsx_runtime_1.jsxs)(FlexBox_1.HBox, { paddingLeft: 2, paddingRight: 2, paddingBottom: 2, gap: 2, justifyContent: "space-between", children: [index === 0 ? ((0, jsx_runtime_1.jsx)(Button_1.default, { variant: "outlined", startIcon: (0, jsx_runtime_1.jsx)(Close_1.default, {}), onClick: () => n.dismiss(), children: labels.close })) : ((0, jsx_runtime_1.jsx)(Button_1.default, { variant: "outlined", startIcon: (0, jsx_runtime_1.jsx)(NavigateBefore_1.default, {}), onClick: () => {
|
|
48
51
|
n.dismiss();
|
|
49
52
|
showStep(indexRef.current - 1);
|
|
50
|
-
}, children: labels.previousStep })), more ? ((0, jsx_runtime_1.jsx)(
|
|
53
|
+
}, children: labels.previousStep })), more ? ((0, jsx_runtime_1.jsx)(Button_1.default, { variant: "contained", startIcon: (0, jsx_runtime_1.jsx)(NavigateNext_1.default, {}), onClick: async (event) => {
|
|
51
54
|
const result = await callback(event);
|
|
52
55
|
if (!result)
|
|
53
56
|
return;
|
|
54
57
|
showStep(indexRef.current + 1);
|
|
55
|
-
}, children: labels.nextStep })) : ((0, jsx_runtime_1.jsx)(
|
|
58
|
+
}, children: labels.nextStep })) : ((0, jsx_runtime_1.jsx)(Button_1.default, { variant: "contained", startIcon: (0, jsx_runtime_1.jsx)(Check_1.default, {}), onClick: async (event) => {
|
|
56
59
|
const result = await callback(event);
|
|
57
60
|
if (!result)
|
|
58
61
|
return;
|
|
@@ -78,13 +81,13 @@ function DataSteps(props) {
|
|
|
78
81
|
react_1.default.useEffect(() => {
|
|
79
82
|
setLocalValue(valueFormatter(jsonRef.current));
|
|
80
83
|
}, [valueFormatter]);
|
|
81
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
84
|
+
return ((0, jsx_runtime_1.jsx)(TextField_1.default, { autoComplete: "off", InputLabelProps: InputLabelProps, inputProps: { style: { cursor: "pointer" } }, InputProps: {
|
|
82
85
|
onKeyDown: (event) => {
|
|
83
86
|
if (event.key === "Tab")
|
|
84
87
|
return;
|
|
85
88
|
cancelInput(event);
|
|
86
89
|
},
|
|
87
90
|
onPaste: cancelInput,
|
|
88
|
-
endAdornment: ((0, jsx_runtime_1.jsx)(
|
|
91
|
+
endAdornment: ((0, jsx_runtime_1.jsx)(InputAdornment_1.default, { position: "end", children: (0, jsx_runtime_1.jsx)(IconButton_1.default, { edge: "end", size: "small", children: (0, jsx_runtime_1.jsx)(Start_1.default, {}) }) }))
|
|
89
92
|
}, onClick: () => showStep(0), value: localValue, ...rest }));
|
|
90
93
|
}
|
package/lib/cjs/DataTable.d.ts
CHANGED
package/lib/cjs/DataTable.js
CHANGED
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DataTable = DataTable;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
9
8
|
const react_1 = __importDefault(require("react"));
|
|
10
9
|
const ReactApp_1 = require("./app/ReactApp");
|
|
10
|
+
const DataGrid_1 = require("@mui/x-data-grid/DataGrid/DataGrid");
|
|
11
11
|
/**
|
|
12
12
|
* Data table
|
|
13
13
|
* @param props Props
|
|
@@ -45,7 +45,7 @@ function DataTable(props) {
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
}, []);
|
|
48
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { disableColumnMenu: true, hideFooter: true, localeText: localeText, cellModesModel: cellModesModel, onCellModesModelChange: (model) => setCellModesModel(model), onProcessRowUpdateError: onProcessRowUpdateError, slotProps: {
|
|
49
49
|
...slotProps,
|
|
50
50
|
cell: {
|
|
51
51
|
onFocus: handleCellFocus
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Breakpoint, ButtonProps } from "@mui/material";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { ButtonProps } from "@mui/material/Button";
|
|
3
|
+
import { Breakpoint } from "@mui/material/styles";
|
|
3
4
|
export interface DialogButtonProps extends ButtonProps {
|
|
4
5
|
/**
|
|
5
6
|
* Button label
|