@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/SwitchAnt.js
CHANGED
|
@@ -5,10 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SwitchAnt = SwitchAnt;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
const Switch_1 = __importDefault(require("@mui/material/Switch"));
|
|
10
8
|
const react_1 = __importDefault(require("react"));
|
|
11
9
|
const ReactApp_1 = require("./app/ReactApp");
|
|
10
|
+
const Switch_1 = __importDefault(require("@mui/material/Switch"));
|
|
11
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
12
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
12
13
|
/**
|
|
13
14
|
* Ant style switch
|
|
14
15
|
* @param props Props
|
|
@@ -36,12 +37,12 @@ function SwitchAnt(props) {
|
|
|
36
37
|
setControlChecked(checked);
|
|
37
38
|
};
|
|
38
39
|
// Layout
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", spacing: 1, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { onClick: () => controlChecked && ref.current?.click(), sx: {
|
|
40
41
|
cursor: "pointer",
|
|
41
42
|
color: controlChecked
|
|
42
43
|
? undefined
|
|
43
44
|
: (theme) => activeColor ?? theme.palette.warning.main
|
|
44
|
-
}, children: startLabel }), (0, jsx_runtime_1.jsx)(Switch_1.default, { checked: controlChecked, inputRef: ref, value: value, onChange: onChangeLocal, ...rest }), (0, jsx_runtime_1.jsx)(
|
|
45
|
+
}, children: startLabel }), (0, jsx_runtime_1.jsx)(Switch_1.default, { checked: controlChecked, inputRef: ref, value: value, onChange: onChangeLocal, ...rest }), (0, jsx_runtime_1.jsx)(Typography_1.default, { onClick: () => !controlChecked && ref.current?.click(), sx: {
|
|
45
46
|
cursor: "pointer",
|
|
46
47
|
color: controlChecked
|
|
47
48
|
? (theme) => activeColor ?? theme.palette.warning.main
|
package/lib/cjs/SwitchField.d.ts
CHANGED
package/lib/cjs/SwitchField.js
CHANGED
|
@@ -5,10 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SwitchField = SwitchField;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const OutlinedInput_1 = __importDefault(require("@mui/material/OutlinedInput"));
|
|
10
9
|
const react_1 = __importDefault(require("react"));
|
|
11
10
|
const SwitchAnt_1 = require("./SwitchAnt");
|
|
11
|
+
const FormControl_1 = __importDefault(require("@mui/material/FormControl"));
|
|
12
|
+
const InputLabel_1 = __importDefault(require("@mui/material/InputLabel"));
|
|
13
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
14
|
+
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
|
|
12
15
|
/**
|
|
13
16
|
* SwitchField
|
|
14
17
|
* @param props Props
|
|
@@ -22,7 +25,7 @@ function SwitchField(props) {
|
|
|
22
25
|
// Group
|
|
23
26
|
const group = ((0, jsx_runtime_1.jsx)(SwitchAnt_1.SwitchAnt, { activeColor: activeColor, name: name, startLabel: startLabel, endLabel: endLabel, value: value, checked: checked }));
|
|
24
27
|
// Layout
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(FormControl_1.default, { fullWidth: fullWidth, ...rest, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, variant: variant, shrink: true, children: label })), outlined ? ((0, jsx_runtime_1.jsx)(OutlinedInput_1.default, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
|
|
26
29
|
cursor: "default",
|
|
27
30
|
display: "flex",
|
|
28
31
|
gap: 1,
|
|
@@ -32,5 +35,5 @@ function SwitchField(props) {
|
|
|
32
35
|
"& input": {
|
|
33
36
|
display: "none"
|
|
34
37
|
}
|
|
35
|
-
} })) : ((0, jsx_runtime_1.jsx)(
|
|
38
|
+
} })) : ((0, jsx_runtime_1.jsx)(Box_1.default, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && (0, jsx_runtime_1.jsx)(FormHelperText_1.default, { children: helperText })] }));
|
|
36
39
|
}
|
package/lib/cjs/TabBox.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { BoxProps
|
|
1
|
+
import { BoxProps } from "@mui/material/Box";
|
|
2
|
+
import { TabProps } from "@mui/material/Tab";
|
|
3
|
+
import { TabsProps } from "@mui/material/Tabs";
|
|
2
4
|
import React from "react";
|
|
3
5
|
/**
|
|
4
6
|
* Tab with box panel props
|
package/lib/cjs/TabBox.js
CHANGED
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TabBox = TabBox;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const shared_1 = require("@etsoo/shared");
|
|
9
|
-
const
|
|
9
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
10
|
+
const Tab_1 = __importDefault(require("@mui/material/Tab"));
|
|
11
|
+
const Tabs_1 = __importDefault(require("@mui/material/Tabs"));
|
|
10
12
|
const react_1 = __importDefault(require("react"));
|
|
11
13
|
const react_router_1 = require("react-router");
|
|
12
14
|
/**
|
|
@@ -26,9 +28,9 @@ function TabBox(props) {
|
|
|
26
28
|
setValue(index);
|
|
27
29
|
}, [index]);
|
|
28
30
|
// Layout
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [inputName && (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: inputName, value: value }), (0, jsx_runtime_1.jsx)(
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [inputName && (0, jsx_runtime_1.jsx)("input", { type: "hidden", name: inputName, value: value }), (0, jsx_runtime_1.jsx)(Box_1.default, { ...root, children: (0, jsx_runtime_1.jsx)(Tabs_1.default, { value: value, onChange: (event, newValue) => {
|
|
30
32
|
setValue(newValue);
|
|
31
33
|
if (onChange)
|
|
32
34
|
onChange(event, newValue);
|
|
33
|
-
}, ...rest, children: tabs.map(({ children, panelProps, ...tabRest }, index) => ((0, jsx_runtime_1.jsx)(
|
|
35
|
+
}, ...rest, children: tabs.map(({ children, panelProps, ...tabRest }, index) => ((0, jsx_runtime_1.jsx)(Tab_1.default, { value: index, LinkComponent: tabRest.to ? react_router_1.Link : undefined, ...tabRest }, index))) }) }), tabs.map(({ children, panelProps }, index) => ((0, jsx_runtime_1.jsx)(Box_1.default, { hidden: value !== index, ...tabProps, ...panelProps, children: shared_1.Utils.getResult(children, value === index) }, index)))] }));
|
|
34
36
|
}
|
package/lib/cjs/TableEx.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GridColumn, GridLoader, GridMethodRef } from "@etsoo/react";
|
|
2
2
|
import { DataTypes, IdDefaultType } from "@etsoo/shared";
|
|
3
|
-
import { TableProps } from "@mui/material";
|
|
4
3
|
import React from "react";
|
|
4
|
+
import { TableProps } from "@mui/material/Table";
|
|
5
5
|
/**
|
|
6
6
|
* Extended table min width for width-unset column
|
|
7
7
|
*/
|
package/lib/cjs/TableEx.js
CHANGED
|
@@ -8,9 +8,19 @@ exports.TableEx = TableEx;
|
|
|
8
8
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
9
|
const react_1 = require("@etsoo/react");
|
|
10
10
|
const shared_1 = require("@etsoo/shared");
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
11
|
const react_2 = __importDefault(require("react"));
|
|
13
12
|
const DataGridRenderers_1 = require("./DataGridRenderers");
|
|
13
|
+
const Table_1 = __importDefault(require("@mui/material/Table"));
|
|
14
|
+
const styles_1 = require("@mui/material/styles");
|
|
15
|
+
const Paper_1 = __importDefault(require("@mui/material/Paper"));
|
|
16
|
+
const TableContainer_1 = __importDefault(require("@mui/material/TableContainer"));
|
|
17
|
+
const TableHead_1 = __importDefault(require("@mui/material/TableHead"));
|
|
18
|
+
const TableRow_1 = __importDefault(require("@mui/material/TableRow"));
|
|
19
|
+
const TableCell_1 = __importDefault(require("@mui/material/TableCell"));
|
|
20
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
21
|
+
const TableSortLabel_1 = __importDefault(require("@mui/material/TableSortLabel"));
|
|
22
|
+
const TableBody_1 = __importDefault(require("@mui/material/TableBody"));
|
|
23
|
+
const TablePagination_1 = __importDefault(require("@mui/material/TablePagination"));
|
|
14
24
|
/**
|
|
15
25
|
* Extended table min width for width-unset column
|
|
16
26
|
*/
|
|
@@ -22,7 +32,7 @@ exports.TableExMinWidth = 180;
|
|
|
22
32
|
*/
|
|
23
33
|
function TableEx(props) {
|
|
24
34
|
// Theme
|
|
25
|
-
const theme = (0,
|
|
35
|
+
const theme = (0, styles_1.useTheme)();
|
|
26
36
|
// Destruct
|
|
27
37
|
const { alternatingColors = [theme.palette.action.hover, undefined], autoLoad = true, columns, defaultOrderBy, headerColors = [undefined, undefined], idField = "id", loadBatchSize, loadData, maxHeight, mRef, onSelectChange, rowHeight = 53, otherHeight = 110, threshold, ...rest } = props;
|
|
28
38
|
const selectable = onSelectChange != null;
|
|
@@ -213,12 +223,12 @@ function TableEx(props) {
|
|
|
213
223
|
};
|
|
214
224
|
}, []);
|
|
215
225
|
// Layout
|
|
216
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
226
|
+
return ((0, jsx_runtime_1.jsxs)(Paper_1.default, { children: [(0, jsx_runtime_1.jsx)(TableContainer_1.default, { sx: { maxHeight }, children: (0, jsx_runtime_1.jsxs)(Table_1.default, { ...rest, children: [(0, jsx_runtime_1.jsx)(TableHead_1.default, { children: (0, jsx_runtime_1.jsxs)(TableRow_1.default, { sx: {
|
|
217
227
|
"& th": {
|
|
218
228
|
backgroundColor: headerColors[0],
|
|
219
229
|
color: headerColors[1]
|
|
220
230
|
}
|
|
221
|
-
}, children: [selectable && ((0, jsx_runtime_1.jsx)(
|
|
231
|
+
}, children: [selectable && ((0, jsx_runtime_1.jsx)(TableCell_1.default, { padding: "checkbox", children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { color: "primary", indeterminate: pageSelectedItems > 0 && pageSelectedItems < rows.length, checked: pageSelectedItems > 0, onChange: (_event, checked) => handleSelectAll(checked) }) })), columns.map((column, index) => {
|
|
222
232
|
// Destruct
|
|
223
233
|
const { align, field, header, minWidth, sortable, sortAsc = true, type, width } = column;
|
|
224
234
|
// Header text
|
|
@@ -227,7 +237,7 @@ function TableEx(props) {
|
|
|
227
237
|
let sortLabel;
|
|
228
238
|
if (sortable && field != null) {
|
|
229
239
|
const active = queryPaging.orderBy?.some((o) => o.field.toLowerCase() === field.toLowerCase());
|
|
230
|
-
sortLabel = ((0, jsx_runtime_1.jsx)(
|
|
240
|
+
sortLabel = ((0, jsx_runtime_1.jsx)(TableSortLabel_1.default, { active: active, direction: sortAsc ? "asc" : "desc", onClick: (_event) => {
|
|
231
241
|
if (active)
|
|
232
242
|
column.sortAsc = !sortAsc;
|
|
233
243
|
handleSort(field, column.sortAsc);
|
|
@@ -236,14 +246,14 @@ function TableEx(props) {
|
|
|
236
246
|
else {
|
|
237
247
|
sortLabel = headerText;
|
|
238
248
|
}
|
|
239
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
249
|
+
return ((0, jsx_runtime_1.jsx)(TableCell_1.default, { align: (0, react_1.GridAlignGet)(align, type), width: width, sx: {
|
|
240
250
|
minWidth: minWidth == null
|
|
241
251
|
? width == null
|
|
242
252
|
? exports.TableExMinWidth
|
|
243
253
|
: undefined
|
|
244
254
|
: minWidth
|
|
245
255
|
}, children: sortLabel }, field ?? index.toString()));
|
|
246
|
-
})] }) }), (0, jsx_runtime_1.jsx)(
|
|
256
|
+
})] }) }), (0, jsx_runtime_1.jsx)(TableBody_1.default, { sx: {
|
|
247
257
|
"& tr:nth-of-type(odd):not(.Mui-selected)": {
|
|
248
258
|
backgroundColor: alternatingColors[0]
|
|
249
259
|
},
|
|
@@ -259,7 +269,7 @@ function TableEx(props) {
|
|
|
259
269
|
const isItemSelected = selectable
|
|
260
270
|
? selectedItems.some((item) => item[idField] === rowId)
|
|
261
271
|
: false;
|
|
262
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
272
|
+
return ((0, jsx_runtime_1.jsxs)(TableRow_1.default, { selected: isItemSelected, children: [selectable && ((0, jsx_runtime_1.jsx)(TableCell_1.default, { padding: "checkbox", children: row && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { color: "primary", checked: isItemSelected, onChange: (_event, checked) => handleSelect(row, checked) })) })), columns.map(({ align, cellRenderer = DataGridRenderers_1.DataGridRenderers.defaultCellRenderer, field, type, valueFormatter }, columnIndex) => {
|
|
263
273
|
const formatProps = {
|
|
264
274
|
data: row,
|
|
265
275
|
field,
|
|
@@ -283,9 +293,9 @@ function TableEx(props) {
|
|
|
283
293
|
cellProps,
|
|
284
294
|
setItems
|
|
285
295
|
})) : ((0, jsx_runtime_1.jsx)(react_2.default.Fragment, { children: "\u00A0" }));
|
|
286
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
296
|
+
return ((0, jsx_runtime_1.jsx)(TableCell_1.default, { ...cellProps, children: child }, `${rowId}${columnIndex}`));
|
|
287
297
|
})] }, rowId));
|
|
288
|
-
}) })] }) }), (0, jsx_runtime_1.jsx)(
|
|
298
|
+
}) })] }) }), (0, jsx_runtime_1.jsx)(TablePagination_1.default, { component: "div", showFirstButton: true, count: totalRows, rowsPerPage: batchSize, page: currentPage, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage, rowsPerPageOptions: [
|
|
289
299
|
batchSize,
|
|
290
300
|
2 * batchSize,
|
|
291
301
|
5 * batchSize,
|
package/lib/cjs/TagList.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AutocompleteProps } from "@mui/material";
|
|
2
1
|
import { InputFieldProps } from "./InputField";
|
|
2
|
+
import { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
3
3
|
export type TagListProps = Omit<AutocompleteProps<string, true, false, true>, "open" | "multiple" | "freeSolo" | "options" | "renderInput"> & {
|
|
4
4
|
/**
|
|
5
5
|
* Label
|
package/lib/cjs/TagList.js
CHANGED
|
@@ -5,12 +5,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TagList = TagList;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const CheckBoxOutlineBlank_1 = __importDefault(require("@mui/icons-material/CheckBoxOutlineBlank"));
|
|
10
9
|
const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
|
|
11
10
|
const react_1 = __importDefault(require("react"));
|
|
12
11
|
const InputField_1 = require("./InputField");
|
|
13
12
|
const ReactApp_1 = require("./app/ReactApp");
|
|
13
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
14
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
15
|
+
const Chip_1 = __importDefault(require("@mui/material/Chip"));
|
|
14
16
|
function TagList(props) {
|
|
15
17
|
// Global app
|
|
16
18
|
const app = (0, ReactApp_1.useAppContext)();
|
|
@@ -18,7 +20,7 @@ function TagList(props) {
|
|
|
18
20
|
const { noOptions, loading: loadingLabel, more = "More", open: openDefault } = app?.getLabels("noOptions", "loading", "more", "open") ?? {};
|
|
19
21
|
const moreLabel = more + "...";
|
|
20
22
|
// Destruct
|
|
21
|
-
const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsxs)("li", { ...props, children: [(0, jsx_runtime_1.jsx)(
|
|
23
|
+
const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsxs)("li", { ...props, children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { icon: (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" }), checkedIcon: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), option] })), renderTags = (value, getTagProps) => value.map((option, index) => ((0, jsx_runtime_1.jsx)(Chip_1.default, { variant: "outlined", label: option, ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
|
|
22
24
|
const [open, setOpen] = react_1.default.useState(false);
|
|
23
25
|
const [options, setOptions] = react_1.default.useState([]);
|
|
24
26
|
const [loading, setLoading] = react_1.default.useState(false);
|
|
@@ -42,7 +44,7 @@ function TagList(props) {
|
|
|
42
44
|
setOptions(result);
|
|
43
45
|
setLoading(false);
|
|
44
46
|
};
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
47
|
+
return ((0, jsx_runtime_1.jsx)(Autocomplete_1.default, { multiple: true, freeSolo: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
|
|
46
48
|
setOpen(true);
|
|
47
49
|
if (options.length === 0) {
|
|
48
50
|
loadDataLocal();
|
package/lib/cjs/TagListPro.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 TagListProProps<D extends ListType2 = ListType2> = Omit<AutocompleteProps<D, true, false, false>, "open" | "multiple" | "options" | "renderInput"> & {
|
|
5
5
|
/**
|
|
6
6
|
* Label
|
package/lib/cjs/TagListPro.js
CHANGED
|
@@ -5,13 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TagListPro = TagListPro;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const CheckBoxOutlineBlank_1 = __importDefault(require("@mui/icons-material/CheckBoxOutlineBlank"));
|
|
10
9
|
const CheckBox_1 = __importDefault(require("@mui/icons-material/CheckBox"));
|
|
11
10
|
const react_1 = __importDefault(require("react"));
|
|
12
11
|
const InputField_1 = require("./InputField");
|
|
13
12
|
const shared_1 = require("@etsoo/shared");
|
|
14
13
|
const ReactApp_1 = require("./app/ReactApp");
|
|
14
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
15
|
+
const Checkbox_1 = __importDefault(require("@mui/material/Checkbox"));
|
|
16
|
+
const Chip_1 = __importDefault(require("@mui/material/Chip"));
|
|
15
17
|
function TagListPro(props) {
|
|
16
18
|
// Global app
|
|
17
19
|
const app = (0, ReactApp_1.useAppContext)();
|
|
@@ -20,7 +22,7 @@ function TagListPro(props) {
|
|
|
20
22
|
const moreLabel = more + "...";
|
|
21
23
|
const getLabel = (item) => shared_1.DataTypes.getListItemLabel(item);
|
|
22
24
|
// Destruct
|
|
23
|
-
const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsx)("li", { ...props, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(
|
|
25
|
+
const { renderOption = (props, option, { selected }) => ((0, jsx_runtime_1.jsx)("li", { ...props, children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Checkbox_1.default, { icon: (0, jsx_runtime_1.jsx)(CheckBoxOutlineBlank_1.default, { fontSize: "small" }), checkedIcon: (0, jsx_runtime_1.jsx)(CheckBox_1.default, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), getLabel(option)] }) })), renderTags = (value, getTagProps) => value.map((option, index) => ((0, jsx_runtime_1.jsx)(Chip_1.default, { variant: "outlined", label: getLabel(option), ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
|
|
24
26
|
const [open, setOpen] = react_1.default.useState(false);
|
|
25
27
|
const [options, setOptions] = react_1.default.useState([]);
|
|
26
28
|
const [loading, setLoading] = react_1.default.useState(false);
|
|
@@ -44,7 +46,7 @@ function TagListPro(props) {
|
|
|
44
46
|
setOptions(result);
|
|
45
47
|
setLoading(false);
|
|
46
48
|
};
|
|
47
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
49
|
+
return ((0, jsx_runtime_1.jsx)(Autocomplete_1.default, { multiple: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
|
|
48
50
|
setOpen(true);
|
|
49
51
|
if (options.length === 0) {
|
|
50
52
|
loadDataLocal();
|
package/lib/cjs/TextFieldEx.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { TextFieldProps } from "@mui/material";
|
|
2
|
+
import { TextFieldProps } from "@mui/material/TextField";
|
|
3
3
|
/**
|
|
4
4
|
* Extended text field props
|
|
5
5
|
*/
|
|
@@ -49,7 +49,7 @@ export interface TextFieldExMethods {
|
|
|
49
49
|
*/
|
|
50
50
|
setError(error: React.ReactNode): void;
|
|
51
51
|
}
|
|
52
|
-
export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("@mui/material").StandardTextFieldProps & {
|
|
52
|
+
export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("@mui/material/TextField").StandardTextFieldProps & {
|
|
53
53
|
/**
|
|
54
54
|
* Change delay (ms) to avoid repeatly dispatch onChange
|
|
55
55
|
*/
|
|
@@ -84,7 +84,7 @@ export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("
|
|
|
84
84
|
* Show password button
|
|
85
85
|
*/
|
|
86
86
|
showPassword?: boolean;
|
|
87
|
-
}, "ref"> | Omit<import("@mui/material").OutlinedTextFieldProps & {
|
|
87
|
+
}, "ref"> | Omit<import("@mui/material/TextField").OutlinedTextFieldProps & {
|
|
88
88
|
/**
|
|
89
89
|
* Change delay (ms) to avoid repeatly dispatch onChange
|
|
90
90
|
*/
|
|
@@ -119,7 +119,7 @@ export declare const TextFieldEx: React.ForwardRefExoticComponent<(Omit<import("
|
|
|
119
119
|
* Show password button
|
|
120
120
|
*/
|
|
121
121
|
showPassword?: boolean;
|
|
122
|
-
}, "ref"> | Omit<import("@mui/material").FilledTextFieldProps & {
|
|
122
|
+
}, "ref"> | Omit<import("@mui/material/TextField").FilledTextFieldProps & {
|
|
123
123
|
/**
|
|
124
124
|
* Change delay (ms) to avoid repeatly dispatch onChange
|
|
125
125
|
*/
|
package/lib/cjs/TextFieldEx.js
CHANGED
|
@@ -6,12 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TextFieldEx = void 0;
|
|
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 MUGlobal_1 = require("./MUGlobal");
|
|
11
|
-
const
|
|
10
|
+
const Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
|
|
11
|
+
const Clear_1 = __importDefault(require("@mui/icons-material/Clear"));
|
|
12
12
|
const shared_1 = require("@etsoo/shared");
|
|
13
13
|
const react_2 = require("@etsoo/react");
|
|
14
14
|
const ReactApp_1 = require("./app/ReactApp");
|
|
15
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
16
|
+
const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
|
|
17
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
15
18
|
exports.TextFieldEx = react_1.default.forwardRef((props, ref) => {
|
|
16
19
|
// Global app
|
|
17
20
|
const app = (0, ReactApp_1.useAppContext)();
|
|
@@ -87,7 +90,7 @@ exports.TextFieldEx = react_1.default.forwardRef((props, ref) => {
|
|
|
87
90
|
};
|
|
88
91
|
// Show password and/or clear button
|
|
89
92
|
if (!empty && (showPassword || showClear)) {
|
|
90
|
-
InputProps.endAdornment = ((0, jsx_runtime_1.jsxs)(
|
|
93
|
+
InputProps.endAdornment = ((0, jsx_runtime_1.jsxs)(InputAdornment_1.default, { position: "end", children: [showPassword && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { tabIndex: -1, onContextMenu: (event) => event.preventDefault(), onMouseDown: touchStart, onMouseUp: touchEnd, onTouchStart: touchStart, onTouchCancel: touchEnd, onTouchEnd: touchEnd, title: showIt, children: (0, jsx_runtime_1.jsx)(Visibility_1.default, {}) })), showClear && ((0, jsx_runtime_1.jsx)(IconButton_1.default, { onClick: clearClick, tabIndex: -1, title: clearLabel, children: (0, jsx_runtime_1.jsx)(Clear_1.default, {}) }))] }));
|
|
91
94
|
}
|
|
92
95
|
// Extend key precess
|
|
93
96
|
const onKeyPressEx = onEnter == null
|
|
@@ -143,5 +146,5 @@ exports.TextFieldEx = react_1.default.forwardRef((props, ref) => {
|
|
|
143
146
|
};
|
|
144
147
|
}, []);
|
|
145
148
|
// Textfield
|
|
146
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
149
|
+
return ((0, jsx_runtime_1.jsx)(TextField_1.default, { error: errorEx, fullWidth: fullWidth, helperText: helperTextEx, inputRef: (0, react_2.useCombinedRefs)(inputRef, localRef), InputProps: InputProps, InputLabelProps: InputLabelProps, onChange: onChangeEx, onKeyDown: onKeyPressEx, type: typeEx, variant: variant, ...rest }));
|
|
147
150
|
});
|
package/lib/cjs/Tiplist.js
CHANGED
|
@@ -7,11 +7,11 @@ exports.Tiplist = Tiplist;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("@etsoo/react");
|
|
9
9
|
const shared_1 = require("@etsoo/shared");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
10
|
const react_2 = __importDefault(require("react"));
|
|
12
11
|
const SearchField_1 = require("./SearchField");
|
|
13
12
|
const InputField_1 = require("./InputField");
|
|
14
13
|
const ReactApp_1 = require("./app/ReactApp");
|
|
14
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
15
15
|
/**
|
|
16
16
|
* Tiplist
|
|
17
17
|
* @param props Props
|
|
@@ -172,7 +172,7 @@ function Tiplist(props) {
|
|
|
172
172
|
};
|
|
173
173
|
}, []);
|
|
174
174
|
// Layout
|
|
175
|
-
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: `${inputValue ?? (state.current.idSet ? "" : localIdValue ?? "")}`, readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(
|
|
175
|
+
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: `${inputValue ?? (state.current.idSet ? "" : localIdValue ?? "")}`, readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(Autocomplete_1.default, { filterOptions: (options, _state) => options, value: states.value, options: states.options, onChange: (event, value, reason, details) => {
|
|
176
176
|
// Set value
|
|
177
177
|
setInputValue(value);
|
|
178
178
|
// Custom
|
package/lib/cjs/TiplistPro.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ListType2 } from "@etsoo/shared";
|
|
2
|
-
import { AutocompleteProps } from "@mui/material";
|
|
3
2
|
import { ChangeEventHandler } from "react";
|
|
4
3
|
import { InputFieldProps } from "./InputField";
|
|
4
|
+
import { AutocompleteProps } from "@mui/material/Autocomplete";
|
|
5
5
|
/**
|
|
6
6
|
* TiplistPro props
|
|
7
7
|
*/
|
package/lib/cjs/TiplistPro.js
CHANGED
|
@@ -7,10 +7,10 @@ exports.TiplistPro = TiplistPro;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("@etsoo/react");
|
|
9
9
|
const shared_1 = require("@etsoo/shared");
|
|
10
|
-
const material_1 = require("@mui/material");
|
|
11
10
|
const react_2 = __importDefault(require("react"));
|
|
12
11
|
const InputField_1 = require("./InputField");
|
|
13
12
|
const ReactApp_1 = require("./app/ReactApp");
|
|
13
|
+
const Autocomplete_1 = __importDefault(require("@mui/material/Autocomplete"));
|
|
14
14
|
/**
|
|
15
15
|
* TiplistPro
|
|
16
16
|
* @param props Props
|
|
@@ -158,7 +158,7 @@ function TiplistPro(props) {
|
|
|
158
158
|
};
|
|
159
159
|
}, []);
|
|
160
160
|
// Layout
|
|
161
|
-
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: inputValue ?? (state.current.idSet ? "" : localIdValue ?? ""), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(
|
|
161
|
+
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: inputValue ?? (state.current.idSet ? "" : localIdValue ?? ""), readOnly: true, onChange: inputOnChange }), (0, jsx_runtime_1.jsx)(Autocomplete_1.default, { filterOptions: (options, _state) => options, value: states.value, options: states.options, freeSolo: true, clearOnBlur: false, onChange: (event, value, reason, details) => {
|
|
162
162
|
if (typeof value === "object") {
|
|
163
163
|
// Set value
|
|
164
164
|
setInputValue(value);
|
package/lib/cjs/TooltipClick.js
CHANGED
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.TooltipClick = TooltipClick;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("@etsoo/react");
|
|
9
|
-
const
|
|
9
|
+
const ClickAwayListener_1 = __importDefault(require("@mui/material/ClickAwayListener"));
|
|
10
|
+
const Tooltip_1 = __importDefault(require("@mui/material/Tooltip"));
|
|
10
11
|
const react_2 = __importDefault(require("react"));
|
|
11
12
|
/**
|
|
12
13
|
* Tooltip with click visibility
|
|
@@ -36,7 +37,7 @@ function TooltipClick(props) {
|
|
|
36
37
|
};
|
|
37
38
|
}, []);
|
|
38
39
|
// Layout
|
|
39
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsx)(ClickAwayListener_1.default, { onClickAway: () => setOpen(false), children: (0, jsx_runtime_1.jsx)(Tooltip_1.default, { slotProps: {
|
|
40
41
|
popper: {
|
|
41
42
|
disablePortal: true
|
|
42
43
|
}
|
package/lib/cjs/TwoFieldInput.js
CHANGED
|
@@ -5,12 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.TwoFieldInput = TwoFieldInput;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const ArrowRightAlt_1 = __importDefault(require("@mui/icons-material/ArrowRightAlt"));
|
|
10
9
|
const react_1 = require("@etsoo/react");
|
|
11
10
|
const react_2 = __importDefault(require("react"));
|
|
12
11
|
const shared_1 = require("@etsoo/shared");
|
|
13
12
|
const InputField_1 = require("./InputField");
|
|
13
|
+
const InputAdornment_1 = __importDefault(require("@mui/material/InputAdornment"));
|
|
14
|
+
const Input_1 = __importDefault(require("@mui/material/Input"));
|
|
14
15
|
/**
|
|
15
16
|
* TwoField Input
|
|
16
17
|
* @param props Props
|
|
@@ -60,10 +61,10 @@ function TwoFieldInput(props) {
|
|
|
60
61
|
}, [localValues]);
|
|
61
62
|
// Layout
|
|
62
63
|
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { name: `${name}-start`, type: type, value: formatValue(localValues[0], type), ref: dimensions[0][0], inputProps: inputProps, InputProps: {
|
|
63
|
-
endAdornment: ((0, jsx_runtime_1.jsxs)(
|
|
64
|
+
endAdornment: ((0, jsx_runtime_1.jsxs)(InputAdornment_1.default, { position: "end", sx: {
|
|
64
65
|
display: "flex",
|
|
65
66
|
alignItems: "center",
|
|
66
67
|
gap: 1
|
|
67
|
-
}, children: [(0, jsx_runtime_1.jsx)(ArrowRightAlt_1.default, {}), (0, jsx_runtime_1.jsx)(
|
|
68
|
+
}, children: [(0, jsx_runtime_1.jsx)(ArrowRightAlt_1.default, {}), (0, jsx_runtime_1.jsx)(Input_1.default, { type: type, name: `${name}-end`, value: formatValue(localValues[1], type), disableUnderline: true, onInput: onInput, onChange: handleChange, inputProps: inputProps })] }))
|
|
68
69
|
}, onInput: onInput, onChange: handleChange, ...rest }));
|
|
69
70
|
}
|
package/lib/cjs/UserAvatar.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
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.UserAvatar = UserAvatar;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
8
|
const appscript_1 = require("@etsoo/appscript");
|
|
7
9
|
const ReactApp_1 = require("./app/ReactApp");
|
|
10
|
+
const Avatar_1 = __importDefault(require("@mui/material/Avatar"));
|
|
8
11
|
/**
|
|
9
12
|
* User avatar
|
|
10
13
|
* @param props Props
|
|
@@ -20,7 +23,7 @@ function UserAvatar(props) {
|
|
|
20
23
|
// Format
|
|
21
24
|
const fTitle = formatTitle(title);
|
|
22
25
|
const count = fTitle.length;
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)(Avatar_1.default, { title: title, src: src, sx: {
|
|
24
27
|
width: 48,
|
|
25
28
|
height: 32,
|
|
26
29
|
fontSize: count <= 2 ? "15px" : "12px"
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.UserAvatarEditor = UserAvatarEditor;
|
|
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 RotateLeft_1 = __importDefault(require("@mui/icons-material/RotateLeft"));
|
|
11
10
|
const RotateRight_1 = __importDefault(require("@mui/icons-material/RotateRight"));
|
|
@@ -16,6 +15,12 @@ const Remove_1 = __importDefault(require("@mui/icons-material/Remove"));
|
|
|
16
15
|
const Add_1 = __importDefault(require("@mui/icons-material/Add"));
|
|
17
16
|
const Labels_1 = require("./app/Labels");
|
|
18
17
|
const FileUploadButton_1 = require("./FileUploadButton");
|
|
18
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
19
|
+
const Skeleton_1 = __importDefault(require("@mui/material/Skeleton"));
|
|
20
|
+
const ButtonGroup_1 = __importDefault(require("@mui/material/ButtonGroup"));
|
|
21
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
22
|
+
const IconButton_1 = __importDefault(require("@mui/material/IconButton"));
|
|
23
|
+
const Slider_1 = __importDefault(require("@mui/material/Slider"));
|
|
19
24
|
const defaultSize = 300;
|
|
20
25
|
const defaultState = {
|
|
21
26
|
scale: 1,
|
|
@@ -164,6 +169,6 @@ function UserAvatarEditor(props) {
|
|
|
164
169
|
};
|
|
165
170
|
// Load the component
|
|
166
171
|
const AE = react_1.default.lazy(() => import("react-avatar-editor"));
|
|
167
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
168
|
-
"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=", scale: editorState.scale, rotate: editorState.rotate }) }), (0, jsx_runtime_1.jsxs)(
|
|
172
|
+
return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "column", spacing: 0.5, width: containerWidth, children: [(0, jsx_runtime_1.jsx)(FileUploadButton_1.FileUploadButton, { variant: "outlined", size: "medium", startIcon: (0, jsx_runtime_1.jsx)(Image_1.default, {}), fullWidth: true, onUploadFiles: handleFileUpload, inputProps: { multiple: false, accept: "image/png, image/jpeg" }, children: selectFileLabel }), (0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", spacing: 0.5, children: [(0, jsx_runtime_1.jsx)(react_1.default.Suspense, { fallback: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rounded", width: width, height: localHeight }), children: (0, jsx_runtime_1.jsx)(AE, { ref: ref, border: border, width: width, height: localHeight, onLoadSuccess: handleLoad, image: previewImage ??
|
|
173
|
+
"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=", scale: editorState.scale, rotate: editorState.rotate }) }), (0, jsx_runtime_1.jsxs)(ButtonGroup_1.default, { size: "small", orientation: "vertical", disabled: !ready, children: [(0, jsx_runtime_1.jsx)(Button_1.default, { onClick: () => handleRotate(90), title: labels.rotateRight, children: (0, jsx_runtime_1.jsx)(RotateRight_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: () => handleRotate(-90), title: labels.rotateLeft, children: (0, jsx_runtime_1.jsx)(RotateLeft_1.default, {}) }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: handleReset, title: labels.reset, children: (0, jsx_runtime_1.jsx)(ClearAll_1.default, {}) })] })] }), (0, jsx_runtime_1.jsxs)(Stack_1.default, { spacing: 0.5, direction: "row", sx: { paddingBottom: 2 }, alignItems: "center", children: [(0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", disabled: !ready || editorState.scale <= min, onClick: () => adjustScale(false), children: (0, jsx_runtime_1.jsx)(Remove_1.default, {}) }), (0, jsx_runtime_1.jsx)(Slider_1.default, { title: labels.zoom, disabled: !ready, min: min, max: max, step: step, value: editorState.scale, valueLabelDisplay: "auto", valueLabelFormat: (value) => `${Math.round(100 * value) / 100}`, marks: marks, onChange: handleZoom }), (0, jsx_runtime_1.jsx)(IconButton_1.default, { size: "small", disabled: !ready || editorState.scale >= max, onClick: () => adjustScale(true), children: (0, jsx_runtime_1.jsx)(Add_1.default, {}) })] }), (0, jsx_runtime_1.jsx)(Button_1.default, { ref: buttonRef, variant: "contained", startIcon: (0, jsx_runtime_1.jsx)(Done_1.default, {}), disabled: !ready, onClick: handleDone, children: labels.done })] }));
|
|
169
174
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Breakpoint, Grid2Props } from "@mui/material";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import { DataTypes } from "@etsoo/shared";
|
|
4
3
|
import { GridColumnRenderProps, GridDataType } from "@etsoo/react";
|
|
4
|
+
import { GridProps } from "@mui/material/Grid";
|
|
5
|
+
import { Breakpoint } from "@mui/material/styles";
|
|
5
6
|
/**
|
|
6
7
|
* View page item size
|
|
7
8
|
*/
|
|
@@ -26,7 +27,7 @@ export type ViewPageRowType = boolean | "default" | "small" | "medium" | "large"
|
|
|
26
27
|
/**
|
|
27
28
|
* View page grid item properties
|
|
28
29
|
*/
|
|
29
|
-
export type ViewPageGridItemProps =
|
|
30
|
+
export type ViewPageGridItemProps = GridProps & {
|
|
30
31
|
data: React.ReactNode;
|
|
31
32
|
label?: React.ReactNode;
|
|
32
33
|
singleRow?: ViewPageRowType;
|
|
@@ -40,7 +41,7 @@ export declare function ViewPageGridItem(props: ViewPageGridItemProps): import("
|
|
|
40
41
|
/**
|
|
41
42
|
* View page display field
|
|
42
43
|
*/
|
|
43
|
-
export interface ViewPageField<T extends object> extends
|
|
44
|
+
export interface ViewPageField<T extends object> extends GridProps {
|
|
44
45
|
/**
|
|
45
46
|
* Data field
|
|
46
47
|
*/
|
|
@@ -91,7 +92,7 @@ export type ViewContainerProps<T extends DataTypes.StringRecord> = {
|
|
|
91
92
|
/**
|
|
92
93
|
* Left container properties
|
|
93
94
|
*/
|
|
94
|
-
leftContainerProps?: Omit<
|
|
95
|
+
leftContainerProps?: Omit<GridProps, "size"> & {
|
|
95
96
|
size?: ViewPageItemSize;
|
|
96
97
|
};
|
|
97
98
|
/**
|