@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/ViewContainer.js
CHANGED
|
@@ -8,12 +8,13 @@ exports.ViewPageGridItem = ViewPageGridItem;
|
|
|
8
8
|
exports.ViewContainer = ViewContainer;
|
|
9
9
|
const react_1 = require("react");
|
|
10
10
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
const material_1 = require("@mui/material");
|
|
12
11
|
const react_2 = __importDefault(require("react"));
|
|
13
12
|
const MUGlobal_1 = require("./MUGlobal");
|
|
14
13
|
const useCurrentBreakpoint_1 = require("./useCurrentBreakpoint");
|
|
15
14
|
const GridDataFormat_1 = require("./GridDataFormat");
|
|
16
15
|
const ReactApp_1 = require("./app/ReactApp");
|
|
16
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
17
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
17
18
|
function formatItemData(app, fieldData) {
|
|
18
19
|
if (fieldData == null)
|
|
19
20
|
return undefined;
|
|
@@ -158,7 +159,7 @@ function ViewPageGridItem(props) {
|
|
|
158
159
|
options = getResp(singleRow ?? "small");
|
|
159
160
|
}
|
|
160
161
|
// Layout
|
|
161
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
162
|
+
return ((0, jsx_runtime_1.jsxs)(Grid_1.default, { ...gridProps, ...options, children: [label != null && ((0, jsx_runtime_1.jsxs)(Typography_1.default, { variant: "caption", component: "div", children: [label, ":"] })), typeof data === "object" ? (data) : ((0, jsx_runtime_1.jsx)(Typography_1.default, { variant: "subtitle2", children: data }))] }));
|
|
162
163
|
}
|
|
163
164
|
function ViewContainer(props) {
|
|
164
165
|
// Global app
|
|
@@ -228,5 +229,5 @@ function ViewContainer(props) {
|
|
|
228
229
|
}, [app, fields, data, bp]);
|
|
229
230
|
let leftResult;
|
|
230
231
|
// Layout
|
|
231
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
232
|
+
return ((0, jsx_runtime_1.jsxs)(Grid_1.default, { container: true, justifyContent: "left", className: "ET-ViewContainer", ref: gridRef, spacing: spacing, children: [leftContainer && (leftResult = leftContainer(data)) != null && ((0, jsx_runtime_1.jsxs)(react_2.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(Grid_1.default, { container: true, className: "ET-ViewPage-LeftContainer", spacing: spacing, size: size, ...leftContainerPropsRest, children: leftResult }), (0, jsx_runtime_1.jsx)(Grid_1.default, { container: true, className: "ET-ViewPage-LeftOthers", spacing: spacing, size: ViewPageSize.matchSize(size), children: createFields(data, leftContainerLines * (12 - getItemSize(bp, size))) })] })), createFields(data)] }));
|
|
232
233
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomFieldData, CustomFieldSpace } from "@etsoo/appscript";
|
|
2
2
|
import { CustomFieldReactCollection, ICustomFieldReact } from "@etsoo/react";
|
|
3
3
|
import { IdType, ListType2 } from "@etsoo/shared";
|
|
4
|
-
import { GridSize } from "@mui/material";
|
|
4
|
+
import { GridSize } from "@mui/material/Grid";
|
|
5
5
|
import { TypographyProps } from "@mui/material/Typography";
|
|
6
6
|
/**
|
|
7
7
|
* Custom field utilities
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CustomFieldUtils = void 0;
|
|
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 FieldCheckbox_1 = require("./FieldCheckbox");
|
|
11
10
|
const FieldAmountLabel_1 = require("./FieldAmountLabel");
|
|
@@ -20,6 +19,8 @@ const FieldJson_1 = require("./FieldJson");
|
|
|
20
19
|
const FieldRadio_1 = require("./FieldRadio");
|
|
21
20
|
const FieldSelect_1 = require("./FieldSelect");
|
|
22
21
|
const FieldSwitch_1 = require("./FieldSwitch");
|
|
22
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
23
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
23
24
|
/**
|
|
24
25
|
* Custom field utilities
|
|
25
26
|
*/
|
|
@@ -69,7 +70,7 @@ var CustomFieldUtils;
|
|
|
69
70
|
fieldCalback(field);
|
|
70
71
|
const creator = CustomFieldUtils.customFieldCreators[field.type];
|
|
71
72
|
if (creator == null) {
|
|
72
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: transformSpace(field.space), ...field.gridItemProps, children: `Type ${field.type} is not supported currently` }, index));
|
|
73
74
|
}
|
|
74
75
|
const Creator = creator;
|
|
75
76
|
const mref = react_1.default.createRef();
|
|
@@ -83,7 +84,7 @@ var CustomFieldUtils;
|
|
|
83
84
|
ui = `Duplicate custom field ${name}`;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: transformSpace(field.space), ...field.gridItemProps, children: ui }, name ?? index));
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
CustomFieldUtils.create = create;
|
|
@@ -94,7 +95,7 @@ var CustomFieldUtils;
|
|
|
94
95
|
* @returns Result
|
|
95
96
|
*/
|
|
96
97
|
function createMultilineLabel(label, props) {
|
|
97
|
-
return label?.split("\n").map((line, index) => ((0, jsx_runtime_1.jsx)(
|
|
98
|
+
return label?.split("\n").map((line, index) => ((0, jsx_runtime_1.jsx)(Typography_1.default, { component: "div", ...props, children: line }, index)));
|
|
98
99
|
}
|
|
99
100
|
CustomFieldUtils.createMultilineLabel = createMultilineLabel;
|
|
100
101
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CustomFieldData } from "@etsoo/appscript";
|
|
2
|
-
import {
|
|
2
|
+
import { GridProps } from "@mui/material/Grid";
|
|
3
|
+
import { TypographyProps } from "@mui/material/Typography";
|
|
3
4
|
/**
|
|
4
5
|
* Custom field viewer props
|
|
5
6
|
* 自定义字段查看器属性
|
|
@@ -14,7 +15,7 @@ export type CustomFieldViewerProps = {
|
|
|
14
15
|
* Grid props
|
|
15
16
|
* 网格属性
|
|
16
17
|
*/
|
|
17
|
-
gridProps?:
|
|
18
|
+
gridProps?: GridProps;
|
|
18
19
|
/**
|
|
19
20
|
* JSON data
|
|
20
21
|
* JSON 数据
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.CustomFieldViewer = CustomFieldViewer;
|
|
4
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
8
|
const CustomFieldUtils_1 = require("./CustomFieldUtils");
|
|
7
9
|
const MUGlobal_1 = require("../MUGlobal");
|
|
8
10
|
const FlexBox_1 = require("../FlexBox");
|
|
9
11
|
const shared_1 = require("@etsoo/shared");
|
|
12
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
13
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
10
14
|
/**
|
|
11
15
|
* Custom field viewer
|
|
12
16
|
* 自定义字段查看器
|
|
@@ -41,7 +45,7 @@ function CustomFieldViewer(props) {
|
|
|
41
45
|
if (data == null || typeof data !== "object" || Array.isArray(data)) {
|
|
42
46
|
throw new Error("Invalid JSON data");
|
|
43
47
|
}
|
|
44
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(Grid_1.default, { container: true, justifyContent: "left", spacing: spacing, sx: {
|
|
45
49
|
".MuiTypography-subtitle2": {
|
|
46
50
|
fontWeight: "bold"
|
|
47
51
|
}
|
|
@@ -52,6 +56,6 @@ function CustomFieldViewer(props) {
|
|
|
52
56
|
return;
|
|
53
57
|
// Field value
|
|
54
58
|
const value = shared_1.Utils.getNestedValue(data, name);
|
|
55
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
59
|
+
return ((0, jsx_runtime_1.jsx)(Grid_1.default, { size: CustomFieldUtils_1.CustomFieldUtils.transformSpace(field.space), ...field.gridItemProps, children: (0, jsx_runtime_1.jsxs)(FlexBox_1.VBox, { gap: verticalGap, children: [(0, jsx_runtime_1.jsx)(Typography_1.default, { fontWeight: "bold", fontSize: "small", ...titleProps, children: field.label ?? name }), (0, jsx_runtime_1.jsx)(Typography_1.default, { ...valueProps, children: valueLabelFormatter(value, field) })] }) }, name ?? index));
|
|
56
60
|
}) }));
|
|
57
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomFieldData } from "@etsoo/appscript";
|
|
2
|
-
import { Grid2Props } from "@mui/material";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import { GridProps } from "@mui/material/Grid";
|
|
4
4
|
/**
|
|
5
5
|
* Custom field window props
|
|
6
6
|
* 自定义字段窗口属性
|
|
@@ -24,7 +24,7 @@ export type CustomFieldWindowProps<D extends CustomFieldData> = {
|
|
|
24
24
|
* Grid props
|
|
25
25
|
* 网格属性
|
|
26
26
|
*/
|
|
27
|
-
gridProps?:
|
|
27
|
+
gridProps?: GridProps;
|
|
28
28
|
/**
|
|
29
29
|
* JSON data
|
|
30
30
|
* JSON 数据
|
|
@@ -6,11 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CustomFieldWindow = CustomFieldWindow;
|
|
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 MUGlobal_1 = require("../MUGlobal");
|
|
12
11
|
const CustomFieldUtils_1 = require("./CustomFieldUtils");
|
|
13
12
|
const ReactApp_1 = require("../app/ReactApp");
|
|
13
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
14
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
14
15
|
function calculateKeys(data) {
|
|
15
16
|
let count = 0;
|
|
16
17
|
for (const key in data) {
|
|
@@ -76,7 +77,7 @@ function CustomFieldWindow(props) {
|
|
|
76
77
|
}
|
|
77
78
|
}, {
|
|
78
79
|
fullScreen: app.smDown,
|
|
79
|
-
inputs: ((0, jsx_runtime_1.jsx)(
|
|
80
|
+
inputs: ((0, jsx_runtime_1.jsx)(Stack_1.default, { marginTop: 1.5, children: (0, jsx_runtime_1.jsx)(Grid_1.default, { container: true, justifyContent: "left", spacing: spacing, sx: {
|
|
80
81
|
".MuiTypography-subtitle2": {
|
|
81
82
|
fontWeight: "bold"
|
|
82
83
|
}
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FieldAmountLabel = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const shared_1 = require("@etsoo/shared");
|
|
9
|
-
const
|
|
9
|
+
const FormHelperText_1 = __importDefault(require("@mui/material/FormHelperText"));
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
10
11
|
const react_1 = __importDefault(require("react"));
|
|
11
12
|
/**
|
|
12
13
|
* Amount label field creator
|
|
@@ -42,6 +43,6 @@ const FieldAmountLabel = ({ field, mref, defaultValue }) => {
|
|
|
42
43
|
return;
|
|
43
44
|
setValue(defaultValue);
|
|
44
45
|
}, [defaultValue]);
|
|
45
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Typography_1.default, { ...rest, children: [currencySymbol, " ", amountLabel] }), helperText && (0, jsx_runtime_1.jsx)(FormHelperText_1.default, { children: helperText })] }));
|
|
46
47
|
};
|
|
47
48
|
exports.FieldAmountLabel = FieldAmountLabel;
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldCheckbox = void 0;
|
|
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 OptionGroup_1 = require("../OptionGroup");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Checkbox (multiple values) field creator
|
|
13
13
|
* type: checkbox
|
|
@@ -41,7 +41,7 @@ const FieldCheckbox = ({ field, mref, onChange, defaultValue }) => {
|
|
|
41
41
|
// Name
|
|
42
42
|
const name = field.name;
|
|
43
43
|
if (!name) {
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldCheckbox ", JSON.stringify(field)] }));
|
|
45
45
|
}
|
|
46
46
|
return ((0, jsx_runtime_1.jsx)(OptionGroup_1.OptionGroup, { name: name, options: field.options ?? [], multiple: true, row: true, helperText: field.helperText, label: field.label, variant: "outlined", fullWidth: true, defaultValue: value, onValueChange: (value) => {
|
|
47
47
|
const newValue = Array.isArray(value)
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldCombobox = void 0;
|
|
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 ComboBoxMultiple_1 = require("../ComboBoxMultiple");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Combobox (multiple values) field creator
|
|
13
13
|
* type combobox
|
|
@@ -36,7 +36,7 @@ const FieldCombobox = ({ field, mref, onChange, defaultValue }) => {
|
|
|
36
36
|
// Name
|
|
37
37
|
const name = field.name;
|
|
38
38
|
if (!name) {
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldCombobox ", JSON.stringify(field)] }));
|
|
40
40
|
}
|
|
41
41
|
return ((0, jsx_runtime_1.jsx)(ComboBoxMultiple_1.ComboBoxMultiple, { label: field.label ?? "", inputHelperText: field.helperText, name: name, options: field.options, fullWidth: true, idValues: ids, onChange: (_event, value) => {
|
|
42
42
|
const ids = value.map((v) => v.id);
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FieldDateInput = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const shared_1 = require("@etsoo/shared");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const react_1 = __importDefault(require("react"));
|
|
11
10
|
const InputField_1 = require("../InputField");
|
|
11
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
12
12
|
/**
|
|
13
13
|
* Date input field creator
|
|
14
14
|
* type: date
|
|
@@ -43,7 +43,7 @@ const FieldDateInput = ({ field, mref, onChange, defaultValue }) => {
|
|
|
43
43
|
// Name
|
|
44
44
|
const name = field.name;
|
|
45
45
|
if (!name) {
|
|
46
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldDateInput ", JSON.stringify(field)] }));
|
|
47
47
|
}
|
|
48
48
|
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { label: field.label ?? "", helperText: field.helperText, inputRef: inputRef, type: "date", name: name, fullWidth: true, onChange: () => onChange(name, getValue()), ...field.mainSlotProps }));
|
|
49
49
|
};
|
|
@@ -5,15 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldDivider = void 0;
|
|
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 CustomFieldUtils_1 = require("./CustomFieldUtils");
|
|
10
|
+
const Divider_1 = __importDefault(require("@mui/material/Divider"));
|
|
11
11
|
/**
|
|
12
12
|
* Divider field creator
|
|
13
13
|
* type: divider
|
|
14
14
|
* @returns Component
|
|
15
15
|
*/
|
|
16
16
|
const FieldDivider = ({ field }) => {
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [CustomFieldUtils_1.CustomFieldUtils.createMultilineLabel(field.label), (0, jsx_runtime_1.jsx)(
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [CustomFieldUtils_1.CustomFieldUtils.createMultilineLabel(field.label), (0, jsx_runtime_1.jsx)(Divider_1.default, { ...field.mainSlotProps })] }));
|
|
18
18
|
};
|
|
19
19
|
exports.FieldDivider = FieldDivider;
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldInput = void 0;
|
|
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");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Input field creator
|
|
13
13
|
* type: input
|
|
@@ -27,7 +27,7 @@ const FieldInput = ({ field, mref, onChange, defaultValue }) => {
|
|
|
27
27
|
// Name
|
|
28
28
|
const name = field.name;
|
|
29
29
|
if (!name) {
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
30
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldInput ", JSON.stringify(field)] }));
|
|
31
31
|
}
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { label: field.label ?? "", helperText: field.helperText, inputRef: inputRef, name: name, fullWidth: true, defaultValue: defaultValue, onChange: () => onChange(name, getValue()), ...field.mainSlotProps }));
|
|
33
33
|
};
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldJson = void 0;
|
|
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");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
function parseJson(value) {
|
|
12
12
|
if (value) {
|
|
13
13
|
try {
|
|
@@ -50,7 +50,7 @@ const FieldJson = ({ field, mref, onChange, defaultValue }) => {
|
|
|
50
50
|
// Name
|
|
51
51
|
const name = field.name;
|
|
52
52
|
if (!name) {
|
|
53
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
53
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldJson ", JSON.stringify(field)] }));
|
|
54
54
|
}
|
|
55
55
|
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { label: field.label ?? "", helperText: field.helperText, name: name, fullWidth: true, multiline: true, rows: 4, inputProps: { maxLength: 1280 }, inputRef: inputRef, onChange: () => onChange(name, getValue()), ...field.mainSlotProps }));
|
|
56
56
|
};
|
|
@@ -5,10 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldNumberInput = void 0;
|
|
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 NumberInputField_1 = require("../NumberInputField");
|
|
11
10
|
const shared_1 = require("@etsoo/shared");
|
|
11
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
12
12
|
/**
|
|
13
13
|
* Number input field creator
|
|
14
14
|
* type: number
|
|
@@ -37,7 +37,7 @@ const FieldNumberInput = ({ field, mref, onChange, defaultValue }) => {
|
|
|
37
37
|
// Name
|
|
38
38
|
const name = field.name;
|
|
39
39
|
if (!name) {
|
|
40
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
40
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldNumberInput ", JSON.stringify(field)] }));
|
|
41
41
|
}
|
|
42
42
|
return ((0, jsx_runtime_1.jsx)(NumberInputField_1.NumberInputField, { label: field.label ?? "", helperText: field.helperText, inputRef: inputRef, name: name, fullWidth: true, onChange: () => onChange(name, getValue()), ...field.mainSlotProps }));
|
|
43
43
|
};
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldRadio = void 0;
|
|
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 OptionGroup_1 = require("../OptionGroup");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Radio (single value) field creator
|
|
13
13
|
* type: radio
|
|
@@ -41,7 +41,7 @@ const FieldRadio = ({ field, mref, onChange, defaultValue }) => {
|
|
|
41
41
|
// Name
|
|
42
42
|
const name = field.name;
|
|
43
43
|
if (!name) {
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldRadio ", JSON.stringify(field)] }));
|
|
45
45
|
}
|
|
46
46
|
return ((0, jsx_runtime_1.jsx)(OptionGroup_1.OptionGroup, { name: name, options: field.options ?? [], multiple: false, row: true, helperText: field.helperText, label: field.label, variant: "outlined", fullWidth: true, defaultValue: value, onValueChange: (value) => {
|
|
47
47
|
const newValue = Array.isArray(value)
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldSelect = void 0;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const react_1 = __importDefault(require("react"));
|
|
10
9
|
const SelectEx_1 = require("../SelectEx");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Select (single value) field creator
|
|
13
13
|
* type select
|
|
@@ -41,7 +41,7 @@ const FieldSelect = ({ field, mref, onChange, defaultValue }) => {
|
|
|
41
41
|
// Name
|
|
42
42
|
const name = field.name;
|
|
43
43
|
if (!name) {
|
|
44
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldSelect ", JSON.stringify(field)] }));
|
|
45
45
|
}
|
|
46
46
|
return ((0, jsx_runtime_1.jsx)(SelectEx_1.SelectEx, { label: field.label ?? "", helperText: field.helperText, name: name, options: field.options, fullWidth: true, value: value, onChange: (event) => {
|
|
47
47
|
const value = event.target.value;
|
|
@@ -7,7 +7,7 @@ exports.FieldSwitch = void 0;
|
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const SwitchAnt_1 = require("../SwitchAnt");
|
|
10
|
-
const
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Input field creator
|
|
13
13
|
* type: switch
|
|
@@ -34,7 +34,7 @@ const FieldSwitch = ({ field, mref, onChange, defaultValue }) => {
|
|
|
34
34
|
// Name
|
|
35
35
|
const name = field.name;
|
|
36
36
|
if (!name) {
|
|
37
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
37
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldSwitch ", JSON.stringify(field)] }));
|
|
38
38
|
}
|
|
39
39
|
react_1.default.useEffect(() => {
|
|
40
40
|
if (defaultValue == null)
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.FieldTexarea = void 0;
|
|
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");
|
|
10
|
+
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
11
11
|
/**
|
|
12
12
|
* Textarea field creator
|
|
13
13
|
* type: textarea
|
|
@@ -28,7 +28,7 @@ const FieldTexarea = ({ field, mref, onChange, defaultValue }) => {
|
|
|
28
28
|
// Name
|
|
29
29
|
const name = field.name;
|
|
30
30
|
if (!name) {
|
|
31
|
-
return ((0, jsx_runtime_1.jsxs)(
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(Typography_1.default, { children: ["No name for FieldTextarea ", JSON.stringify(field)] }));
|
|
32
32
|
}
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(InputField_1.InputField, { label: field.label ?? "", helperText: field.helperText, name: name, fullWidth: true, multiline: true, rows: 4, inputProps: { maxLength: 1280 }, inputRef: inputRef, defaultValue: defaultValue, onChange: () => onChange(name, getValue()), ...field.mainSlotProps }));
|
|
34
34
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { ContainerProps, Theme } from "@mui/material";
|
|
3
2
|
import type { CustomFabSize } from "../CustomFabProps";
|
|
4
3
|
import type { IStateUpdate, ListItemReact } from "@etsoo/react";
|
|
5
4
|
import type { UserKey } from "@etsoo/appscript";
|
|
5
|
+
import { ContainerProps } from "@mui/material/Container";
|
|
6
|
+
import { Theme } from "@mui/material/styles";
|
|
6
7
|
/**
|
|
7
8
|
* Common page props
|
|
8
9
|
* Default container id is 'pageContainer'
|
|
@@ -10,11 +10,13 @@ const FabBox_1 = require("../FabBox");
|
|
|
10
10
|
const ScrollTopFab_1 = require("../ScrollTopFab");
|
|
11
11
|
const MUGlobal_1 = require("../MUGlobal");
|
|
12
12
|
const MoreFab_1 = require("../MoreFab");
|
|
13
|
-
const material_1 = require("@mui/material");
|
|
14
13
|
const Refresh_1 = __importDefault(require("@mui/icons-material/Refresh"));
|
|
15
14
|
const BackButton_1 = require("../BackButton");
|
|
16
15
|
const Labels_1 = require("../app/Labels");
|
|
17
16
|
const ReactApp_1 = require("../app/ReactApp");
|
|
17
|
+
const Container_1 = __importDefault(require("@mui/material/Container"));
|
|
18
|
+
const styles_1 = require("@mui/material/styles");
|
|
19
|
+
const Fab_1 = __importDefault(require("@mui/material/Fab"));
|
|
18
20
|
/**
|
|
19
21
|
* Common page
|
|
20
22
|
* @param props Props
|
|
@@ -32,7 +34,7 @@ function CommonPage(props) {
|
|
|
32
34
|
}
|
|
33
35
|
// Labels
|
|
34
36
|
const labels = Labels_1.Labels.CommonPage;
|
|
35
|
-
const theme = (0,
|
|
37
|
+
const theme = (0, styles_1.useTheme)();
|
|
36
38
|
const distance = react_1.default.useMemo(() => MUGlobal_1.MUGlobal.updateWithTheme(fabPadding, theme.spacing), [fabPadding, theme.spacing]);
|
|
37
39
|
// Update
|
|
38
40
|
const updateRef = react_1.default.useRef(false);
|
|
@@ -59,7 +61,7 @@ function CommonPage(props) {
|
|
|
59
61
|
}
|
|
60
62
|
}, [update]);
|
|
61
63
|
// Return the UI
|
|
62
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [update && app?.stateDetector({ targetFields, update }), (0, jsx_runtime_1.jsxs)(
|
|
64
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [update && app?.stateDetector({ targetFields, update }), (0, jsx_runtime_1.jsxs)(Container_1.default, { disableGutters: disableGutters, maxWidth: maxWidth, sx: sx, id: "page-container", ...rest, children: [(0, jsx_runtime_1.jsxs)(FabBox_1.FabBox, { sx: {
|
|
63
65
|
zIndex: 1,
|
|
64
66
|
...(typeof fabTop === "function"
|
|
65
67
|
? fabTop(theme, fabPadding)
|
|
@@ -72,5 +74,5 @@ function CommonPage(props) {
|
|
|
72
74
|
bottom: distance,
|
|
73
75
|
right: distance
|
|
74
76
|
})
|
|
75
|
-
}, columnDirection: fabColumnDirection, fabPanel: fabPanel, children: [scrollContainer && ((0, jsx_runtime_1.jsx)(ScrollTopFab_1.ScrollTopFab, { size: fabSize, target: scrollContainer, title: labels.scrollTop })), fabButtons, onRefresh != null && ((0, jsx_runtime_1.jsx)(
|
|
77
|
+
}, columnDirection: fabColumnDirection, fabPanel: fabPanel, children: [scrollContainer && ((0, jsx_runtime_1.jsx)(ScrollTopFab_1.ScrollTopFab, { size: fabSize, target: scrollContainer, title: labels.scrollTop })), fabButtons, onRefresh != null && ((0, jsx_runtime_1.jsx)(Fab_1.default, { title: labels.refresh, size: fabSize, onClick: onRefresh, sx: { display: { xs: "none", md: "inherit" } }, children: (0, jsx_runtime_1.jsx)(Refresh_1.default, {}) })), (0, jsx_runtime_1.jsx)(MoreFab_1.MoreFab, { size: fabSize, title: labels.more, actions: moreActions }), supportBack && (0, jsx_runtime_1.jsx)(BackButton_1.BackButton, { title: labels.back, size: fabSize })] }), children] })] }));
|
|
76
78
|
}
|
|
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.DataGridPage = DataGridPage;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("@etsoo/react");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const react_2 = __importDefault(require("react"));
|
|
11
10
|
const DataGridEx_1 = require("../DataGridEx");
|
|
12
11
|
const MUGlobal_1 = require("../MUGlobal");
|
|
13
12
|
const SearchBar_1 = require("../SearchBar");
|
|
14
13
|
const CommonPage_1 = require("./CommonPage");
|
|
15
14
|
const GridUtils_1 = require("../GridUtils");
|
|
15
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
16
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
16
17
|
/**
|
|
17
18
|
* DataGrid page
|
|
18
19
|
* @param props Props
|
|
@@ -108,7 +109,7 @@ function DataGridPage(props) {
|
|
|
108
109
|
}, [ref, data]);
|
|
109
110
|
const f = typeof fields == "function" ? fields(searchData ?? {}) : fields;
|
|
110
111
|
// Layout
|
|
111
|
-
return ((0, jsx_runtime_1.jsx)(CommonPage_1.CommonPage, { ...pageProps, scrollContainer: states.element, children: (0, jsx_runtime_1.jsxs)(
|
|
112
|
+
return ((0, jsx_runtime_1.jsx)(CommonPage_1.CommonPage, { ...pageProps, scrollContainer: states.element, children: (0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, { ref: dimensions[0][0], sx: {
|
|
112
113
|
paddingBottom: pageProps.paddings
|
|
113
114
|
}, children: rect && rect.width > 100 && ((0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { fields: f, onSubmit: onSubmit, top: searchBarTop, width: rect.width })) }), list] }) }));
|
|
114
115
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Common drawer header
|
|
3
3
|
*/
|
|
4
|
-
export declare const DrawerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const DrawerHeader: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DrawerHeader = void 0;
|
|
4
|
-
const
|
|
4
|
+
const styles_1 = require("@mui/material/styles");
|
|
5
5
|
/**
|
|
6
6
|
* Common drawer header
|
|
7
7
|
*/
|
|
8
|
-
exports.DrawerHeader = (0,
|
|
8
|
+
exports.DrawerHeader = (0, styles_1.styled)("div")(({ theme }) => ({
|
|
9
9
|
// necessary for content to be below app bar
|
|
10
10
|
...theme.mixins.toolbar,
|
|
11
11
|
display: "flex",
|
|
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.EditPage = EditPage;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
8
|
const MUGlobal_1 = require("../MUGlobal");
|
|
10
9
|
const CommonPage_1 = require("./CommonPage");
|
|
11
10
|
const Save_1 = __importDefault(require("@mui/icons-material/Save"));
|
|
@@ -13,6 +12,8 @@ const Delete_1 = __importDefault(require("@mui/icons-material/Delete"));
|
|
|
13
12
|
const BackButton_1 = require("../BackButton");
|
|
14
13
|
const Labels_1 = require("../app/Labels");
|
|
15
14
|
const OperationMessageContainer_1 = require("../messages/OperationMessageContainer");
|
|
15
|
+
const Grid_1 = __importDefault(require("@mui/material/Grid"));
|
|
16
|
+
const Button_1 = __importDefault(require("@mui/material/Button"));
|
|
16
17
|
/**
|
|
17
18
|
* Add / Edit page
|
|
18
19
|
* @param props Props
|
|
@@ -22,9 +23,9 @@ function EditPage(props) {
|
|
|
22
23
|
const { children, isEditing, onDelete, onSubmit, paddings = MUGlobal_1.MUGlobal.pagePaddings, scrollContainer = globalThis, supportBack = true, submitDisabled = false, bottomPart, topPart, operationMessageHandler, ...rest } = props;
|
|
23
24
|
// Labels
|
|
24
25
|
const labels = Labels_1.Labels.CommonPage;
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)(CommonPage_1.CommonPage, { paddings: paddings, scrollContainer: scrollContainer, ...rest, children: [operationMessageHandler && ((0, jsx_runtime_1.jsx)(OperationMessageContainer_1.OperationMessageContainer, { handler: operationMessageHandler })), topPart, (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [(0, jsx_runtime_1.jsx)(
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)(CommonPage_1.CommonPage, { paddings: paddings, scrollContainer: scrollContainer, ...rest, children: [operationMessageHandler && ((0, jsx_runtime_1.jsx)(OperationMessageContainer_1.OperationMessageContainer, { handler: operationMessageHandler })), topPart, (0, jsx_runtime_1.jsxs)("form", { onSubmit: onSubmit, children: [(0, jsx_runtime_1.jsx)(Grid_1.default, { container: true, justifyContent: "left", spacing: paddings, paddingTop: 1, children: children }), (0, jsx_runtime_1.jsxs)(Grid_1.default, { container: true, position: "sticky", display: "flex", gap: paddings, sx: {
|
|
26
27
|
top: "auto",
|
|
27
28
|
bottom: (theme) => MUGlobal_1.MUGlobal.updateWithTheme(paddings, theme.spacing),
|
|
28
29
|
paddingTop: paddings
|
|
29
|
-
}, children: [isEditing && onDelete && ((0, jsx_runtime_1.jsx)(
|
|
30
|
+
}, children: [isEditing && onDelete && ((0, jsx_runtime_1.jsx)(Button_1.default, { color: "primary", variant: "outlined", onClick: () => onDelete(), startIcon: (0, jsx_runtime_1.jsx)(Delete_1.default, { color: "warning" }), children: labels.delete })), (0, jsx_runtime_1.jsx)(Button_1.default, { variant: "contained", type: "submit", startIcon: (0, jsx_runtime_1.jsx)(Save_1.default, {}), sx: { flexGrow: 1 }, disabled: submitDisabled, children: labels.save }), supportBack && (0, jsx_runtime_1.jsx)(BackButton_1.BackButton, { title: labels.back })] })] }), bottomPart] }));
|
|
30
31
|
}
|
|
@@ -6,13 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.FixedListPage = FixedListPage;
|
|
7
7
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
const react_1 = require("@etsoo/react");
|
|
9
|
-
const material_1 = require("@mui/material");
|
|
10
9
|
const react_2 = __importDefault(require("react"));
|
|
11
10
|
const MUGlobal_1 = require("../MUGlobal");
|
|
12
11
|
const ScrollerListEx_1 = require("../ScrollerListEx");
|
|
13
12
|
const SearchBar_1 = require("../SearchBar");
|
|
14
13
|
const CommonPage_1 = require("./CommonPage");
|
|
15
14
|
const GridUtils_1 = require("../GridUtils");
|
|
15
|
+
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
16
|
+
const Stack_1 = __importDefault(require("@mui/material/Stack"));
|
|
16
17
|
/**
|
|
17
18
|
* Fixed height list page
|
|
18
19
|
* @param props Props
|
|
@@ -89,7 +90,7 @@ function FixedListPage(props) {
|
|
|
89
90
|
typeof adjustHeight === "number"
|
|
90
91
|
? adjustHeight
|
|
91
92
|
: adjustHeight(height, rect);
|
|
92
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
93
|
+
return ((0, jsx_runtime_1.jsx)(Box_1.default, { id: "list-container", sx: {
|
|
93
94
|
height: height + "px"
|
|
94
95
|
}, children: (0, jsx_runtime_1.jsx)(ScrollerListEx_1.ScrollerListEx, { autoLoad: false, height: height, loadData: localLoadData, mRef: refs, onUpdateRows: GridUtils_1.GridUtils.getUpdateRowsHandler(cacheKey), onInitLoad: onInitLoad, onScroll: onListScroll, oRef: (element) => {
|
|
95
96
|
if (element != null)
|
|
@@ -100,5 +101,5 @@ function FixedListPage(props) {
|
|
|
100
101
|
const f = typeof fields == "function" ? fields(searchData ?? {}) : fields;
|
|
101
102
|
const { paddings, ...pageRest } = pageProps;
|
|
102
103
|
// Layout
|
|
103
|
-
return ((0, jsx_runtime_1.jsx)(CommonPage_1.CommonPage, { ...pageRest, paddings: {}, scrollContainer: scrollContainer, children: (0, jsx_runtime_1.jsxs)(
|
|
104
|
+
return ((0, jsx_runtime_1.jsx)(CommonPage_1.CommonPage, { ...pageRest, paddings: {}, scrollContainer: scrollContainer, children: (0, jsx_runtime_1.jsxs)(Stack_1.default, { children: [(0, jsx_runtime_1.jsx)(Box_1.default, { ref: dimensions[0][0], sx: { padding: paddings }, children: rect && rect.width > 100 && ((0, jsx_runtime_1.jsx)(SearchBar_1.SearchBar, { fields: f, onSubmit: onSubmit, top: searchBarTop, width: rect.width })) }), list] }) }));
|
|
104
105
|
}
|