amis-ui 3.2.0 → 3.3.0
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/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +122 -122
- package/esm/components/Alert.js +55 -17
- package/esm/components/Alert2.d.ts +20 -20
- package/esm/components/Alert2.js +5 -8
- package/esm/components/AnchorNav.d.ts +20 -20
- package/esm/components/AnchorNav.js +1 -1
- package/esm/components/ArrayInput.d.ts +40 -40
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +120 -120
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.d.ts +102 -101
- package/esm/components/Avatar.js +4 -3
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.js +1 -1
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.js +5 -9
- package/esm/components/Button.d.ts +20 -20
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +40 -40
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +100 -100
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +120 -120
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +120 -120
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.d.ts +10 -10
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.d.ts +140 -140
- package/esm/components/Collapse.js +2 -2
- package/esm/components/CollapseGroup.d.ts +30 -30
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +80 -80
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConfirmBox.d.ts +80 -80
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +2 -2
- package/esm/components/ContextMenu.js +25 -10
- package/esm/components/DatePicker.d.ts +82 -81
- package/esm/components/DatePicker.js +5 -2
- package/esm/components/DateRangePicker.d.ts +120 -120
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +30 -30
- package/esm/components/Drawer.js +1 -1
- package/esm/components/DropDownSelection.d.ts +120 -120
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/Editor.d.ts +120 -120
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GaodeMapPicker.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.d.ts +120 -120
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +40 -40
- package/esm/components/ImageGallery.js +1 -1
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.d.ts +10 -10
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +2 -2
- package/esm/components/InputTable.js +1 -1
- package/esm/components/Layout.d.ts +10 -10
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +5 -4
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +80 -80
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +40 -40
- package/esm/components/LocationPicker.js +4 -4
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Modal.d.ts +80 -80
- package/esm/components/Modal.js +1 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +120 -120
- package/esm/components/MultilineText.d.ts +40 -40
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +20 -20
- package/esm/components/NumberInput.js +6 -3
- package/esm/components/Pagination.d.ts +80 -80
- package/esm/components/Pagination.js +1 -1
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.d.ts +120 -120
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +30 -30
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +11 -10
- package/esm/components/Radios.js +7 -6
- package/esm/components/Range.js +4 -4
- package/esm/components/Rating.d.ts +20 -20
- package/esm/components/Rating.js +2 -2
- package/esm/components/ResultBox.d.ts +80 -80
- package/esm/components/ResultBox.js +1 -1
- package/esm/components/ResultList.d.ts +40 -40
- package/esm/components/ResultList.js +2 -2
- package/esm/components/ResultTableList.d.ts +120 -120
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.d.ts +40 -40
- package/esm/components/ResultTreeList.js +4 -2
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +82 -82
- package/esm/components/SearchBox.js +4 -4
- package/esm/components/Select.d.ts +1546 -1546
- package/esm/components/Select.js +4 -2
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +120 -120
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +50 -50
- package/esm/components/Spinner.js +4 -4
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +10 -10
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.d.ts +120 -120
- package/esm/components/TableSelection.js +3 -2
- package/esm/components/Tabs.d.ts +80 -80
- package/esm/components/Tabs.js +3 -3
- package/esm/components/TabsTransfer.d.ts +40 -40
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +80 -80
- package/esm/components/Tag.js +5 -10
- package/esm/components/Textarea.d.ts +40 -40
- package/esm/components/Textarea.js +1 -1
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +1 -1
- package/esm/components/TimelineItem.js +4 -3
- package/esm/components/Tinymce.d.ts +1 -0
- package/esm/components/Tinymce.js +7 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +80 -80
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +30 -30
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.d.ts +169 -169
- package/esm/components/Transfer.js +7 -2
- package/esm/components/TransferDropDown.d.ts +160 -160
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +2 -2
- package/esm/components/Tree.d.ts +160 -160
- package/esm/components/Tree.js +35 -9
- package/esm/components/TreeSelection.d.ts +120 -120
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.d.ts +40 -40
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.d.ts +40 -40
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +2 -2
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +8 -3
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.d.ts +43 -40
- package/esm/components/formula/Editor.js +36 -9
- package/esm/components/formula/FuncList.js +8 -4
- package/esm/components/formula/Input.d.ts +272 -0
- package/esm/components/formula/Input.js +115 -0
- package/esm/components/formula/Picker.d.ts +61 -44
- package/esm/components/formula/Picker.js +86 -16
- package/esm/components/formula/VariableList.js +43 -23
- package/esm/components/formula/plugin.js +1 -1
- package/esm/components/icons.d.ts +11 -2
- package/esm/components/icons.js +64 -22
- package/esm/components/json-schema/Array.js +2 -2
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +2 -2
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.js +1 -1
- package/esm/components/menu/SubMenu.js +1 -1
- package/esm/components/menu/index.d.ts +60 -60
- package/esm/components/menu/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +40 -40
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.d.ts +80 -80
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +40 -40
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +40 -40
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +120 -120
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/AutoSizer.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +1 -1
- package/esm/icons/down.svg.js +1 -1
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -1
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +15 -8
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +1 -1
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +1 -1
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +1 -1
- package/esm/locale/de-DE.js +6 -2
- package/esm/locale/en-US.js +6 -2
- package/esm/locale/zh-CN.js +6 -2
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/esm/node_modules/rc-overflow/es/Item.js +1 -1
- package/esm/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/esm/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/esm/node_modules/rc-overflow/es/context.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/esm/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/esm/node_modules/rc-overflow/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/index.js +1 -1
- package/esm/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/esm/node_modules/rc-util/es/Children/toArray.js +3 -4
- package/esm/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/esm/node_modules/rc-util/es/raf.js +1 -1
- package/esm/node_modules/rc-util/es/ref.js +3 -4
- package/esm/node_modules/rc-util/es/warning.js +1 -1
- package/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +12 -13
- package/lib/components/Alert.d.ts +42 -42
- package/lib/components/Alert.js +64 -27
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +13 -17
- package/lib/components/AnchorNav.d.ts +10 -10
- package/lib/components/AnchorNav.js +10 -12
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +17 -14
- package/lib/components/AsideNav.js +13 -15
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +11 -17
- package/lib/components/Avatar.d.ts +42 -41
- package/lib/components/Avatar.js +10 -6
- package/lib/components/Badge.js +13 -13
- package/lib/components/BaiduMapPicker.js +15 -12
- package/lib/components/BarCode.js +5 -5
- package/lib/components/Breadcrumb.js +21 -25
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +7 -8
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +36 -38
- package/lib/components/Card.d.ts +50 -50
- package/lib/components/Card.js +22 -19
- package/lib/components/Cascader.js +18 -19
- package/lib/components/ChainedDropdownSelection.d.ts +40 -40
- package/lib/components/ChainedDropdownSelection.js +7 -5
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +23 -20
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +9 -10
- package/lib/components/CityArea.js +9 -10
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +5 -2
- package/lib/components/Collapse.d.ts +50 -50
- package/lib/components/Collapse.js +12 -14
- package/lib/components/CollapseGroup.d.ts +30 -30
- package/lib/components/CollapseGroup.js +5 -7
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +15 -17
- package/lib/components/Combo.js +16 -73
- package/lib/components/ConfirmBox.d.ts +40 -40
- package/lib/components/ConfirmBox.js +24 -21
- package/lib/components/ContextMenu.d.ts +2 -2
- package/lib/components/ContextMenu.js +37 -19
- package/lib/components/DatePicker.d.ts +41 -40
- package/lib/components/DatePicker.js +26 -25
- package/lib/components/DateRangePicker.d.ts +40 -40
- package/lib/components/DateRangePicker.js +40 -42
- package/lib/components/DndContainer.js +6 -8
- package/lib/components/Drawer.js +13 -15
- package/lib/components/DropDownSelection.d.ts +40 -40
- package/lib/components/DropDownSelection.js +14 -15
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +9 -11
- package/lib/components/Form.js +8 -5
- package/lib/components/FormField.js +20 -21
- package/lib/components/GaodeMapPicker.js +10 -7
- package/lib/components/GridNav.js +15 -16
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +22 -19
- package/lib/components/Html.js +5 -7
- package/lib/components/ImageGallery.d.ts +40 -40
- package/lib/components/ImageGallery.js +28 -25
- package/lib/components/Input.js +6 -3
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +8 -5
- package/lib/components/InputBoxWithSuggestion.js +11 -8
- package/lib/components/InputTable.js +24 -21
- package/lib/components/Layout.d.ts +10 -10
- package/lib/components/Layout.js +13 -26
- package/lib/components/Link.js +8 -4
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +8 -5
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +11 -8
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +16 -13
- package/lib/components/Markdown.js +5 -2
- package/lib/components/Modal.d.ts +40 -40
- package/lib/components/Modal.js +15 -17
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +40 -40
- package/lib/components/MultilineText.d.ts +40 -40
- package/lib/components/MultilineText.js +9 -6
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +13 -7
- package/lib/components/Pagination.d.ts +40 -40
- package/lib/components/Pagination.js +30 -27
- package/lib/components/Picker.js +13 -14
- package/lib/components/PickerColumn.js +7 -5
- package/lib/components/PickerContainer.js +6 -3
- package/lib/components/PopOverContainer.js +7 -4
- package/lib/components/PopUp.d.ts +40 -40
- package/lib/components/PopUp.js +18 -20
- package/lib/components/Progress.d.ts +40 -40
- package/lib/components/Progress.js +14 -11
- package/lib/components/PullRefresh.js +8 -14
- package/lib/components/Radios.d.ts +11 -10
- package/lib/components/Radios.js +13 -24
- package/lib/components/Range.js +24 -26
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +14 -15
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +31 -28
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +19 -15
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +13 -13
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +21 -13
- package/lib/components/RichText.js +6 -8
- package/lib/components/SearchBox.d.ts +42 -42
- package/lib/components/SearchBox.js +26 -23
- package/lib/components/Select.d.ts +193 -193
- package/lib/components/Select.js +60 -61
- package/lib/components/SelectMobile.js +20 -17
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +7 -9
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +8 -5
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +13 -16
- package/lib/components/Steps.js +20 -21
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +8 -10
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +35 -29
- package/lib/components/Tabs.d.ts +40 -40
- package/lib/components/Tabs.js +41 -43
- package/lib/components/TabsTransfer.d.ts +40 -40
- package/lib/components/TabsTransfer.js +17 -14
- package/lib/components/TabsTransferPicker.js +8 -5
- package/lib/components/Tag.d.ts +60 -60
- package/lib/components/Tag.js +12 -17
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +9 -6
- package/lib/components/Timeline.js +6 -7
- package/lib/components/TimelineItem.d.ts +1 -1
- package/lib/components/TimelineItem.js +18 -14
- package/lib/components/Tinymce.d.ts +1 -0
- package/lib/components/Tinymce.js +11 -4
- package/lib/components/TitleBar.js +10 -16
- package/lib/components/Toast.d.ts +40 -40
- package/lib/components/Toast.js +14 -16
- package/lib/components/Tooltip.js +8 -10
- package/lib/components/TooltipWrapper.js +6 -8
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +47 -33
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +11 -12
- package/lib/components/TransferPicker.js +8 -5
- package/lib/components/TransferSearch.js +10 -6
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +86 -75
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +15 -16
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +84 -85
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +17 -18
- package/lib/components/WithRemoteConfig.js +5 -2
- package/lib/components/WithStore.js +5 -2
- package/lib/components/calendar/Calendar.js +7 -4
- package/lib/components/calendar/CalendarContainer.js +5 -2
- package/lib/components/calendar/DaysView.js +55 -53
- package/lib/components/calendar/MonthsView.js +18 -15
- package/lib/components/calendar/QuartersView.js +17 -14
- package/lib/components/calendar/TimeView.js +32 -29
- package/lib/components/calendar/YearsView.js +18 -15
- package/lib/components/condition-builder/Expression.js +10 -7
- package/lib/components/condition-builder/Field.js +7 -4
- package/lib/components/condition-builder/Formula.js +6 -3
- package/lib/components/condition-builder/Func.js +16 -13
- package/lib/components/condition-builder/Group.js +22 -19
- package/lib/components/condition-builder/GroupOrItem.js +14 -11
- package/lib/components/condition-builder/InputSwitch.js +10 -11
- package/lib/components/condition-builder/Item.js +19 -16
- package/lib/components/condition-builder/Value.js +18 -10
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +8 -5
- package/lib/components/formula/Editor.d.ts +43 -40
- package/lib/components/formula/Editor.js +54 -24
- package/lib/components/formula/FuncList.js +32 -25
- package/lib/components/formula/Input.d.ts +272 -0
- package/lib/components/formula/Input.js +128 -0
- package/lib/components/formula/Picker.d.ts +61 -44
- package/lib/components/formula/Picker.js +113 -39
- package/lib/components/formula/VariableList.js +60 -37
- package/lib/components/formula/plugin.js +1 -1
- package/lib/components/icons.d.ts +11 -2
- package/lib/components/icons.js +76 -30
- package/lib/components/json-schema/Array.js +15 -12
- package/lib/components/json-schema/Item.js +11 -12
- package/lib/components/json-schema/Object.js +18 -15
- package/lib/components/json-schema/index.js +6 -7
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.js +16 -18
- package/lib/components/menu/SubMenu.js +17 -19
- package/lib/components/menu/index.d.ts +10 -10
- package/lib/components/menu/index.js +14 -16
- package/lib/components/schema-editor/Array.js +10 -7
- package/lib/components/schema-editor/Common.js +19 -16
- package/lib/components/schema-editor/Item.js +5 -2
- package/lib/components/schema-editor/Object.js +15 -12
- package/lib/components/schema-editor/SchemaVariableList.js +9 -6
- package/lib/components/schema-editor/SchemaVariableListPicker.js +7 -4
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +6 -6
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +5 -6
- package/lib/components/table/HeadCellDropDown.js +8 -9
- package/lib/components/table/HeadCellFilter.d.ts +40 -40
- package/lib/components/table/HeadCellFilter.js +12 -13
- package/lib/components/table/HeadCellSelect.d.ts +40 -40
- package/lib/components/table/HeadCellSelect.js +6 -7
- package/lib/components/table/HeadCellSort.js +11 -12
- package/lib/components/table/ItemActionsWrapper.js +5 -2
- package/lib/components/table/index.d.ts +80 -80
- package/lib/components/table/index.js +62 -63
- package/lib/components/virtual-list/AutoSizer.js +5 -2
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +6 -6
- package/lib/helper.css +1393 -9569
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +7 -24
- package/lib/icons/alert-info.svg.js +7 -24
- package/lib/icons/alert-success.svg.js +7 -24
- package/lib/icons/alert-warning.svg.js +7 -24
- package/lib/icons/back.svg.js +7 -24
- package/lib/icons/calendar.svg.js +11 -28
- package/lib/icons/caret.svg.js +7 -24
- package/lib/icons/check.svg.js +7 -24
- package/lib/icons/clock.svg.js +9 -26
- package/lib/icons/close-small.svg.js +8 -25
- package/lib/icons/close.svg.js +7 -24
- package/lib/icons/cloud-upload.svg.js +7 -24
- package/lib/icons/column-filter.svg.js +7 -24
- package/lib/icons/columns.svg.js +7 -24
- package/lib/icons/compress-alt.svg.js +7 -24
- package/lib/icons/copy.svg.js +9 -26
- package/lib/icons/date.svg.js +9 -26
- package/lib/icons/department.svg.js +12 -29
- package/lib/icons/desk-empty.svg.js +19 -36
- package/lib/icons/dot.svg.js +10 -27
- package/lib/icons/down-arrow-bold.svg.js +7 -24
- package/lib/icons/down.svg.js +7 -24
- package/lib/icons/download.svg.js +7 -24
- package/lib/icons/drag-bar.svg.js +15 -32
- package/lib/icons/drag.svg.js +7 -24
- package/lib/icons/edit.svg.js +7 -24
- package/lib/icons/ellipsis-v.svg.js +7 -24
- package/lib/icons/enter.svg.js +7 -24
- package/lib/icons/exchange.svg.js +7 -24
- package/lib/icons/expand-alt.svg.js +7 -24
- package/lib/icons/fail.svg.js +9 -26
- package/lib/icons/file.svg.js +8 -25
- package/lib/icons/filter.svg.js +7 -24
- package/lib/icons/folder.svg.js +9 -26
- package/lib/icons/function.svg.js +20 -30
- package/lib/icons/home.svg.js +7 -24
- package/lib/icons/image.svg.js +7 -24
- package/lib/icons/info-circle.svg.js +7 -24
- package/lib/icons/info.svg.js +8 -25
- package/lib/icons/input-clear.svg.js +7 -24
- package/lib/icons/invisible.svg.js +7 -24
- package/lib/icons/left-arrow.svg.js +7 -24
- package/lib/icons/loading-outline.svg.js +7 -24
- package/lib/icons/location.svg.js +7 -24
- package/lib/icons/menu.svg.js +7 -24
- package/lib/icons/minus.svg.js +7 -24
- package/lib/icons/move.svg.js +7 -24
- package/lib/icons/mute.svg.js +7 -24
- package/lib/icons/new-edit.svg.js +7 -24
- package/lib/icons/pause.svg.js +7 -24
- package/lib/icons/pencil.svg.js +7 -24
- package/lib/icons/play.svg.js +7 -24
- package/lib/icons/plus-cicle.svg.js +7 -24
- package/lib/icons/plus-fine.svg.js +7 -24
- package/lib/icons/plus.svg.js +7 -24
- package/lib/icons/post.svg.js +12 -29
- package/lib/icons/question-mark.svg.js +8 -25
- package/lib/icons/question.svg.js +7 -24
- package/lib/icons/redo.svg.js +7 -24
- package/lib/icons/refresh.svg.js +7 -24
- package/lib/icons/reload.svg.js +7 -24
- package/lib/icons/remove.svg.js +7 -24
- package/lib/icons/retry.svg.js +9 -26
- package/lib/icons/right-arrow-bold.svg.js +7 -24
- package/lib/icons/right-arrow.svg.js +7 -24
- package/lib/icons/right-double-arrow.svg.js +7 -24
- package/lib/icons/role.svg.js +11 -28
- package/lib/icons/rotate-left.svg.js +8 -25
- package/lib/icons/rotate-right.svg.js +8 -25
- package/lib/icons/scale-origin.svg.js +9 -26
- package/lib/icons/schedule.svg.js +9 -26
- package/lib/icons/search.svg.js +7 -24
- package/lib/icons/setting.svg.js +7 -24
- package/lib/icons/slider-handle-icon.svg.js +7 -24
- package/lib/icons/sort-asc.svg.js +7 -24
- package/lib/icons/sort-default.svg.js +8 -25
- package/lib/icons/sort-desc.svg.js +7 -24
- package/lib/icons/star.svg.js +7 -24
- package/lib/icons/status-close.svg.js +7 -24
- package/lib/icons/steps-finsh.svg.js +7 -24
- package/lib/icons/success.svg.js +9 -26
- package/lib/icons/transparent.svg.js +12 -29
- package/lib/icons/trash.svg.js +7 -24
- package/lib/icons/tree-down.svg.js +7 -24
- package/lib/icons/undo.svg.js +7 -24
- package/lib/icons/upload.svg.js +7 -24
- package/lib/icons/user-remove.svg.js +9 -26
- package/lib/icons/view.svg.js +7 -24
- package/lib/icons/volume.svg.js +8 -25
- package/lib/icons/warning-mark.svg.js +8 -25
- package/lib/icons/warning.svg.js +7 -24
- package/lib/icons/window-restore.svg.js +7 -24
- package/lib/icons/zoom-in.svg.js +7 -24
- package/lib/icons/zoom-out.svg.js +7 -24
- package/lib/index.js +1 -1
- package/lib/locale/de-DE.js +6 -2
- package/lib/locale/en-US.js +6 -2
- package/lib/locale/zh-CN.js +6 -2
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/lib/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/lib/node_modules/rc-overflow/es/Item.js +1 -1
- package/lib/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/lib/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/lib/node_modules/rc-overflow/es/context.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/lib/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/lib/node_modules/rc-overflow/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/index.js +1 -1
- package/lib/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/lib/node_modules/rc-util/es/Children/toArray.js +3 -4
- package/lib/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/lib/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/lib/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/lib/node_modules/rc-util/es/raf.js +1 -1
- package/lib/node_modules/rc-util/es/ref.js +3 -4
- package/lib/node_modules/rc-util/es/warning.js +1 -1
- package/lib/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/lib/packages/amis-ui/scss/helper.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/ang.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/antd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/cxd.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/dark.scss.js +1 -1
- package/lib/packages/amis-ui/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +600 -746
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +600 -746
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +600 -746
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +600 -746
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +600 -746
- package/package.json +6 -6
- package/scss/_components.scss +7 -6
- package/scss/_mixins.scss +0 -1
- package/scss/_properties.scss +6 -4
- package/scss/_variables.scss +20 -0
- package/scss/base/_common.scss +4 -0
- package/scss/components/_cards.scss +3 -10
- package/scss/components/_column-toggler.scss +4 -4
- package/scss/components/_condition-builder.scss +1 -1
- package/scss/components/_debug.scss +34 -1
- package/scss/components/_drawer.scss +10 -1
- package/scss/components/_dropdown.scss +5 -4
- package/scss/components/_formula.scss +39 -3
- package/scss/components/_input-box.scss +2 -1
- package/scss/components/_json-schema-editor.scss +2 -2
- package/scss/components/_json-schema.scss +2 -2
- package/scss/components/_list.scss +3 -10
- package/scss/components/_menu.scss +1 -0
- package/scss/components/_progress.scss +1 -1
- package/scss/components/_search-box.scss +6 -0
- package/scss/components/_steps.scss +5 -3
- package/scss/components/_table.scss +104 -129
- package/scss/components/_timeline.scss +2 -1
- package/scss/components/form/_checks.scss +3 -1
- package/scss/components/form/_date.scss +3 -0
- package/scss/components/form/_form.scss +7 -0
- package/scss/components/form/_list.scss +1 -1
- package/scss/components/form/_nested-select.scss +3 -2
- package/scss/components/form/_selection.scss +8 -0
- package/scss/helper/sizing/_width.md +105 -94
- package/scss/helper/sizing/_width.scss +16 -0
- package/esm/_virtual/index.js +0 -8
- package/esm/_virtual/react-is.development.js +0 -8
- package/esm/_virtual/react-is.production.min.js +0 -8
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -195
- package/esm/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -31
- package/esm/node_modules/rc-util/node_modules/react-is/index.js +0 -17
- package/lib/_virtual/index.js +0 -12
- package/lib/_virtual/react-is.development.js +0 -12
- package/lib/_virtual/react-is.production.min.js +0 -12
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.development.js +0 -199
- package/lib/node_modules/rc-util/node_modules/react-is/cjs/react-is.production.min.js +0 -35
- package/lib/node_modules/rc-util/node_modules/react-is/index.js +0 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -33,7 +33,9 @@ var omit__default = /*#__PURE__*/_interopDefaultLegacy(omit);
|
|
|
33
33
|
var each__default = /*#__PURE__*/_interopDefaultLegacy(each);
|
|
34
34
|
var kebabCase__default = /*#__PURE__*/_interopDefaultLegacy(kebabCase);
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
var __react_jsx__ = require('react');
|
|
37
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
38
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
37
39
|
var CustomDaysView = /** @class */ (function (_super) {
|
|
38
40
|
tslib.__extends(CustomDaysView, _super);
|
|
39
41
|
function CustomDaysView(props) {
|
|
@@ -90,7 +92,7 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
90
92
|
};
|
|
91
93
|
_this.showTime = function () {
|
|
92
94
|
var _a = _this.props, selectedDate = _a.selectedDate, viewDate = _a.viewDate, timeFormat = _a.timeFormat;
|
|
93
|
-
return (
|
|
95
|
+
return (_J$X_("div", { key: "stb", className: "rdtShowTime" }, (selectedDate || viewDate || moment__default["default"]()).format(timeFormat)));
|
|
94
96
|
};
|
|
95
97
|
_this.setTime = function (type, value) {
|
|
96
98
|
var date = (_this.props.selectedDate || _this.props.viewDate).clone();
|
|
@@ -234,37 +236,37 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
234
236
|
diffDays += 1;
|
|
235
237
|
var endWidth = 7 - (moment__default["default"](item.startTime).weekday() - firstDayOfWeek_1 + 1);
|
|
236
238
|
var width = item.width || Math.min(diffDays, endWidth) || 1;
|
|
237
|
-
return (
|
|
239
|
+
return (_J$X_("div", { key: injectedProps.key + 'content' + index, className: cx('ScheduleCalendar-large-schedule-content', item.className), style: { width: width + '00%' }, onClick: function () {
|
|
238
240
|
return _this.props.onScheduleClick &&
|
|
239
241
|
_this.props.onScheduleClick(scheduleData_1);
|
|
240
242
|
} },
|
|
241
|
-
|
|
243
|
+
_J$X_("div", { className: cx('ScheduleCalendar-text-overflow'), dangerouslySetInnerHTML: {
|
|
242
244
|
__html: _this.curfilterHtml(item.content)
|
|
243
245
|
} })));
|
|
244
246
|
});
|
|
245
|
-
return (
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
return (_J$X_("td", tslib.__assign({}, injectedProps),
|
|
248
|
+
_J$X_("div", { className: cx('ScheduleCalendar-large-day-wrap') },
|
|
249
|
+
_J$X_("div", { className: cx('ScheduleCalendar-large-schedule-header') },
|
|
250
|
+
_J$X_("span", null, currentDate.date())),
|
|
249
251
|
scheduleDiv,
|
|
250
|
-
schedule_1.length > 3 && (
|
|
252
|
+
schedule_1.length > 3 && (_J$X_("div", { className: cx('ScheduleCalendar-large-schedule-footer') },
|
|
251
253
|
schedule_1.length - 3,
|
|
252
254
|
" ",
|
|
253
255
|
__('more'))))));
|
|
254
256
|
}
|
|
255
257
|
// 正常模式
|
|
256
|
-
var ScheduleIcon = (
|
|
258
|
+
var ScheduleIcon = (_J$X_("div", { className: cx('ScheduleCalendar-icon', schedule_1[0].className), onClick: function () {
|
|
257
259
|
return _this.props.onScheduleClick &&
|
|
258
260
|
_this.props.onScheduleClick(scheduleData_1);
|
|
259
261
|
} }));
|
|
260
|
-
return (
|
|
261
|
-
|
|
262
|
+
return (_J$X_("td", tslib.__assign({}, injectedProps),
|
|
263
|
+
_J$X_("span", { style: todayActiveStyle, ref: todayDomRef },
|
|
262
264
|
currentDate.date(),
|
|
263
265
|
ScheduleIcon)));
|
|
264
266
|
}
|
|
265
267
|
}
|
|
266
|
-
return (
|
|
267
|
-
|
|
268
|
+
return (_J$X_("td", tslib.__assign({}, injectedProps),
|
|
269
|
+
_J$X_("span", { style: todayActiveStyle, ref: todayDomRef }, currentDate.date())));
|
|
268
270
|
};
|
|
269
271
|
_this.renderTimes = function () {
|
|
270
272
|
var _a = _this.props, timeFormat = _a.timeFormat, selectedDate = _a.selectedDate, viewDate = _a.viewDate, isEndDate = _a.isEndDate, cx = _a.classnames;
|
|
@@ -288,7 +290,7 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
288
290
|
minutes: 'mm',
|
|
289
291
|
seconds: 'ss'
|
|
290
292
|
};
|
|
291
|
-
inputs.push(
|
|
293
|
+
inputs.push(_J$X_(Downshift__default["default"], { key: i + 'input', inputValue: date.format(formatMap_1[type]) }, function (_a) {
|
|
292
294
|
var getInputProps = _a.getInputProps, openMenu = _a.openMenu, closeMenu = _a.closeMenu;
|
|
293
295
|
getInputProps({
|
|
294
296
|
onFocus: function () { return openMenu(); },
|
|
@@ -296,12 +298,12 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
296
298
|
return _this.setTime(type, Math.max(min_1, Math.min(parseInt(e.currentTarget.value.replace(/\D/g, ''), 10) || 0, max_1)));
|
|
297
299
|
}
|
|
298
300
|
});
|
|
299
|
-
return (
|
|
300
|
-
|
|
301
|
+
return (_J$X_("div", { className: cx('CalendarInputWrapper', 'CalendarInputWrapperMT') },
|
|
302
|
+
_J$X_("div", { className: cx('CalendarInput-sugs', type === 'hours'
|
|
301
303
|
? 'CalendarInput-sugsHours'
|
|
302
304
|
: 'CalendarInput-sugsTimes'), id: "".concat(_this.state.uniqueTag, "-").concat(i, "-input") }, options_1.map(function (option) {
|
|
303
305
|
var _a;
|
|
304
|
-
return (
|
|
306
|
+
return (_J$X_("div", { key: option.value, className: cx('CalendarInput-sugsItem', {
|
|
305
307
|
'is-highlight': selectedDate
|
|
306
308
|
? option.value === date.format(formatMap_1[type])
|
|
307
309
|
: option.value === ((_a = options_1 === null || options_1 === void 0 ? void 0 : options_1[0]) === null || _a === void 0 ? void 0 : _a.value)
|
|
@@ -312,24 +314,24 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
312
314
|
} }, option.value));
|
|
313
315
|
}))));
|
|
314
316
|
}));
|
|
315
|
-
inputs.push(
|
|
317
|
+
inputs.push(_J$X_("span", { key: i + 'divider' }));
|
|
316
318
|
}
|
|
317
319
|
});
|
|
318
320
|
inputs.length && inputs.pop();
|
|
319
|
-
return (
|
|
321
|
+
return (_J$X_("div", { className: cx('CalendarTimesWrapper') },
|
|
320
322
|
_this.showTime(),
|
|
321
|
-
|
|
323
|
+
_J$X_("div", { className: cx('CalendarInputsWrapper') }, inputs)));
|
|
322
324
|
};
|
|
323
325
|
_this.renderFooter = function () {
|
|
324
326
|
if (!_this.props.requiredConfirm) {
|
|
325
327
|
return null;
|
|
326
328
|
}
|
|
327
329
|
var _a = _this.props, __ = _a.translate, cx = _a.classnames;
|
|
328
|
-
return (
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
return (_J$X_("tfoot", { key: "tf" },
|
|
331
|
+
_J$X_("tr", null,
|
|
332
|
+
_J$X_("td", { colSpan: 7 }, _this.props.requiredConfirm ? (_J$X_("div", { key: "button", className: "rdtActions" },
|
|
333
|
+
_J$X_("a", { className: cx('Button', 'Button--default'), onClick: _this.cancel }, __('cancel')),
|
|
334
|
+
_J$X_("a", { className: cx('Button', 'Button--primary', 'm-l-sm'), onClick: _this.confirm }, __('confirm')))) : null))));
|
|
333
335
|
};
|
|
334
336
|
_this.onPickerConfirm = function (value) {
|
|
335
337
|
_this.props.onConfirm && _this.props.onConfirm(value, _this.state.types);
|
|
@@ -351,7 +353,7 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
351
353
|
_this.renderPicker = function () {
|
|
352
354
|
var __ = _this.props.translate;
|
|
353
355
|
var title = _this.state.types.length > 3 ? __('Date.titleTime') : __('Date.titleDate');
|
|
354
|
-
return (
|
|
356
|
+
return (_J$X_(Picker["default"], { translate: _this.props.translate, locale: _this.props.locale, title: title, columns: _this.state.columns, value: _this.state.pickerValue, onChange: _this.onPickerChange, onConfirm: _this.onPickerConfirm, onClose: _this.cancel }));
|
|
355
357
|
};
|
|
356
358
|
var selectedDate = props.selectedDate; props.viewDate; var timeFormat = props.timeFormat;
|
|
357
359
|
var currentDate = selectedDate || moment__default["default"]();
|
|
@@ -422,7 +424,7 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
422
424
|
dayProps.onClick = this.updateSelectedDate;
|
|
423
425
|
days.push(renderer(dayProps, currentDate, selected));
|
|
424
426
|
if (days.length === 7) {
|
|
425
|
-
weeks.push(
|
|
427
|
+
weeks.push(_J$X_('tr', { key: prevMonth.format('M_D') }, days));
|
|
426
428
|
days = [];
|
|
427
429
|
}
|
|
428
430
|
prevMonth.add(1, 'd');
|
|
@@ -467,35 +469,35 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
467
469
|
var locale = date.localeData();
|
|
468
470
|
var __ = this.props.translate;
|
|
469
471
|
if (amisCore.isMobile() && useMobileUI && !embed) {
|
|
470
|
-
return
|
|
472
|
+
return _J$X_("div", { className: "rdtYears" }, this.renderPicker());
|
|
471
473
|
}
|
|
472
474
|
var tableChildren = [
|
|
473
|
-
this.props.hideHeader ? null : (
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
475
|
+
this.props.hideHeader ? null : (_J$X_("thead", { key: "th" },
|
|
476
|
+
_J$X_("tr", null,
|
|
477
|
+
_J$X_("th", { colSpan: 7 },
|
|
478
|
+
_J$X_("div", { className: "rdtHeader" },
|
|
479
|
+
_J$X_("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') },
|
|
480
|
+
_J$X_(icons.Icon, { icon: "right-double-arrow", className: "icon date-icon-arrow-left" })),
|
|
481
|
+
_J$X_("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'months') },
|
|
482
|
+
_J$X_(icons.Icon, { icon: "right-arrow", className: "icon date-icon-arrow-left" })),
|
|
483
|
+
_J$X_("div", { className: "rdtCenter" },
|
|
484
|
+
_J$X_("a", { className: "rdtSwitch", onClick: this.props.showView('years') }, date.format(__('dateformat.year'))),
|
|
485
|
+
_J$X_("a", { className: "rdtSwitch", onClick: this.props.showView('months') }, date.format(__('MMM')))),
|
|
486
|
+
_J$X_("a", { className: "rdtNext", onClick: this.props.addTime(1, 'months') },
|
|
487
|
+
_J$X_(icons.Icon, { icon: "right-arrow", className: "icon date-icon-arrow" })),
|
|
488
|
+
_J$X_("a", { className: "rdtNext", onClick: this.props.addTime(1, 'years') },
|
|
489
|
+
_J$X_(icons.Icon, { icon: "right-double-arrow", className: "icon date-icon-arrow" }))),
|
|
490
|
+
_J$X_("div", { className: "header-line" }))),
|
|
491
|
+
_J$X_("tr", null, this.getDaysOfWeek(locale).map(function (day, index) { return (_J$X_("th", { key: day + index, className: "dow" }, day)); })))),
|
|
492
|
+
_J$X_("tbody", { key: "tb" }, this.renderDays())
|
|
491
493
|
];
|
|
492
|
-
return (
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
timeFormat ? (
|
|
494
|
+
return (_J$X_(React__default["default"].Fragment, null,
|
|
495
|
+
_J$X_("div", { className: timeFormat ? 'rdtDays' : '' },
|
|
496
|
+
_J$X_("table", { className: timeFormat ? 'rdtDaysPart' : '' }, tableChildren),
|
|
497
|
+
timeFormat ? (_J$X_("div", { className: timeFormat.toLowerCase().indexOf('s') > 0
|
|
496
498
|
? 'rdtTimePartWithS'
|
|
497
499
|
: 'rdtTimePart' }, this.renderTimes())) : null),
|
|
498
|
-
|
|
500
|
+
_J$X_("table", null, this.renderFooter())));
|
|
499
501
|
};
|
|
500
502
|
return CustomDaysView;
|
|
501
503
|
}(React__default["default"].Component));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -18,6 +18,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
|
|
21
|
+
var __react_jsx__ = require('react');
|
|
22
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
23
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
21
24
|
var CustomMonthsView = /** @class */ (function (_super) {
|
|
22
25
|
tslib.__extends(CustomMonthsView, _super);
|
|
23
26
|
function CustomMonthsView(props) {
|
|
@@ -30,8 +33,8 @@ var CustomMonthsView = /** @class */ (function (_super) {
|
|
|
30
33
|
// Because some months are up to 5 characters long, we want to
|
|
31
34
|
// use a fixed string length for consistency
|
|
32
35
|
var monthStrFixedLength = monthStr.substring(0, strLength);
|
|
33
|
-
return (
|
|
34
|
-
|
|
36
|
+
return (_J$X_("td", tslib.__assign({}, rest),
|
|
37
|
+
_J$X_("span", null, monthStrFixedLength)));
|
|
35
38
|
};
|
|
36
39
|
_this.onConfirm = function (value, types) {
|
|
37
40
|
_this.props.onConfirm && _this.props.onConfirm(value, ['year', 'month']);
|
|
@@ -82,7 +85,7 @@ var CustomMonthsView = /** @class */ (function (_super) {
|
|
|
82
85
|
_this.renderPicker = function () {
|
|
83
86
|
var __ = _this.props.translate;
|
|
84
87
|
var title = __('Date.titleMonth');
|
|
85
|
-
return (
|
|
88
|
+
return (_J$X_(Picker["default"], { translate: _this.props.translate, locale: _this.props.locale, title: title, columns: _this.state.columns, value: _this.state.pickerValue, onChange: _this.onPickerChange, onConfirm: _this.onConfirm, onClose: _this.props.onClose }));
|
|
86
89
|
};
|
|
87
90
|
var selectedDate = props.selectedDate, viewDate = props.viewDate;
|
|
88
91
|
var currentDate = selectedDate || viewDate || moment__default["default"]();
|
|
@@ -130,7 +133,7 @@ var CustomMonthsView = /** @class */ (function (_super) {
|
|
|
130
133
|
: this.props.setDate && this.props.setDate('month');
|
|
131
134
|
months.push(renderer(props, i, year, date && date.clone()));
|
|
132
135
|
if (months.length === 3) {
|
|
133
|
-
rows.push(
|
|
136
|
+
rows.push(_J$X_('tr', { key: i }, months));
|
|
134
137
|
months = [];
|
|
135
138
|
}
|
|
136
139
|
i++;
|
|
@@ -148,17 +151,17 @@ var CustomMonthsView = /** @class */ (function (_super) {
|
|
|
148
151
|
var showYearHead = !/^mm$/i.test(this.props.inputFormat || '') && !this.props.hideHeader;
|
|
149
152
|
var canClick = /yy/i.test(this.props.inputFormat || '');
|
|
150
153
|
if (amisCore.isMobile() && this.props.useMobileUI) {
|
|
151
|
-
return
|
|
154
|
+
return _J$X_("div", { className: "rdtYears" }, this.renderPicker());
|
|
152
155
|
}
|
|
153
|
-
return (
|
|
154
|
-
showYearHead && (
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
canClick ? (
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
return (_J$X_("div", { className: "rdtMonths" },
|
|
157
|
+
showYearHead && (_J$X_("table", { className: "headerTable" },
|
|
158
|
+
_J$X_("thead", null,
|
|
159
|
+
_J$X_("tr", null,
|
|
160
|
+
_J$X_("th", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') }, "\u00AB"),
|
|
161
|
+
canClick ? (_J$X_("th", { className: "rdtSwitch", onClick: this.props.showView('years') }, this.props.viewDate.format(__('dateformat.year')))) : (_J$X_("th", { className: "rdtSwitch" }, this.props.viewDate.format(__('dateformat.year')))),
|
|
162
|
+
_J$X_("th", { className: "rdtNext", onClick: this.props.addTime(1, 'years') }, "\u00BB"))))),
|
|
163
|
+
_J$X_("table", null,
|
|
164
|
+
_J$X_("tbody", null, this.renderMonths()))));
|
|
162
165
|
};
|
|
163
166
|
return CustomMonthsView;
|
|
164
167
|
}(React__default["default"].Component));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -18,6 +18,9 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
|
|
21
|
+
var __react_jsx__ = require('react');
|
|
22
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
23
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
21
24
|
var QuarterView = /** @class */ (function (_super) {
|
|
22
25
|
tslib.__extends(QuarterView, _super);
|
|
23
26
|
function QuarterView() {
|
|
@@ -27,8 +30,8 @@ var QuarterView = /** @class */ (function (_super) {
|
|
|
27
30
|
pickerValue: [_this.props.viewDate.year(), _this.props.viewDate.quarter()]
|
|
28
31
|
};
|
|
29
32
|
_this.renderQuarter = function (props, quartar, year, date) {
|
|
30
|
-
return (
|
|
31
|
-
|
|
33
|
+
return (_J$X_("td", tslib.__assign({}, props),
|
|
34
|
+
_J$X_("span", null,
|
|
32
35
|
"Q",
|
|
33
36
|
quartar)));
|
|
34
37
|
};
|
|
@@ -50,12 +53,12 @@ var QuarterView = /** @class */ (function (_super) {
|
|
|
50
53
|
return null;
|
|
51
54
|
}
|
|
52
55
|
var canClick = /yy/i.test(this.props.inputFormat || '');
|
|
53
|
-
return (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
canClick ? (
|
|
58
|
-
|
|
56
|
+
return (_J$X_("table", null,
|
|
57
|
+
_J$X_("thead", null,
|
|
58
|
+
_J$X_("tr", null,
|
|
59
|
+
_J$X_("th", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') }, "\u00AB"),
|
|
60
|
+
canClick ? (_J$X_("th", { className: "rdtSwitch", onClick: this.props.showView('years') }, this.props.viewDate.format(__('dateformat.year')))) : (_J$X_("th", { className: "rdtSwitch" }, this.props.viewDate.format(__('dateformat.year')))),
|
|
61
|
+
_J$X_("th", { className: "rdtNext", onClick: this.props.addTime(1, 'years') }, "\u00BB")))));
|
|
59
62
|
};
|
|
60
63
|
QuarterView.prototype.renderQuarters = function () {
|
|
61
64
|
var date = this.props.selectedDate, quarter = this.props.viewDate.quarter(), year = this.props.viewDate.year(), rows = [], i = 1, quarters = [], renderer = this.props.renderQuarter || this.renderQuarter, isValid = this.props.isValidDate || this.alwaysValidDate, classes, props, isDisabled;
|
|
@@ -79,7 +82,7 @@ var QuarterView = /** @class */ (function (_super) {
|
|
|
79
82
|
}
|
|
80
83
|
quarters.push(renderer(props, i, year, date && date.clone()));
|
|
81
84
|
if (quarters.length === 2) {
|
|
82
|
-
rows.push(
|
|
85
|
+
rows.push(_J$X_('tr', { key: quarter + '_' + rows.length }, quarters));
|
|
83
86
|
quarters = [];
|
|
84
87
|
}
|
|
85
88
|
i++;
|
|
@@ -111,15 +114,15 @@ var QuarterView = /** @class */ (function (_super) {
|
|
|
111
114
|
})
|
|
112
115
|
}
|
|
113
116
|
];
|
|
114
|
-
return (
|
|
117
|
+
return (_J$X_(Picker["default"], { translate: this.props.translate, locale: this.props.locale, title: title, columns: columns, value: this.state.pickerValue, onChange: this.onPickerChange, onConfirm: this.onPickerConfirm, onClose: this.cancel }));
|
|
115
118
|
};
|
|
116
119
|
QuarterView.prototype.render = function () {
|
|
117
120
|
var _a = this.props, cx = _a.classnames, hideHeader = _a.hideHeader, useMobileUI = _a.useMobileUI;
|
|
118
121
|
var mobileUI = useMobileUI && amisCore.isMobile();
|
|
119
|
-
return mobileUI ? (this.renderPicker()) : (
|
|
122
|
+
return mobileUI ? (this.renderPicker()) : (_J$X_("div", { className: cx('ClalendarQuarter') },
|
|
120
123
|
hideHeader ? null : this.renderYear(),
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
_J$X_("table", null,
|
|
125
|
+
_J$X_("tbody", null, this.renderQuarters()))));
|
|
123
126
|
};
|
|
124
127
|
tslib.__decorate([
|
|
125
128
|
amisCore.autobind,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -23,6 +23,9 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
23
23
|
var merge__default = /*#__PURE__*/_interopDefaultLegacy(merge);
|
|
24
24
|
var Downshift__default = /*#__PURE__*/_interopDefaultLegacy(Downshift);
|
|
25
25
|
|
|
26
|
+
var __react_jsx__ = require('react');
|
|
27
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
28
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
26
29
|
var CustomTimeView = /** @class */ (function (_super) {
|
|
27
30
|
tslib.__extends(CustomTimeView, _super);
|
|
28
31
|
function CustomTimeView(props) {
|
|
@@ -85,12 +88,12 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
85
88
|
};
|
|
86
89
|
_this.renderDayPart = function () {
|
|
87
90
|
var _a = _this.props, __ = _a.translate, cx = _a.classnames;
|
|
88
|
-
return (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
return (_J$X_("div", { key: "dayPart", className: cx('CalendarCounter CalendarCounter--daypart') },
|
|
92
|
+
_J$X_("span", { key: "up", className: cx('CalendarCounter-btn CalendarCounter-btn--up'), onClick: _this.onStartClicking('toggleDayPart', 'hours'), onContextMenu: _this.disableContextMenu },
|
|
93
|
+
_J$X_(icons.Icon, { icon: "right-arrow-bold" })),
|
|
94
|
+
_J$X_("div", { className: cx('CalendarCounter-value'), key: _this.state.daypart }, __(_this.state.daypart)),
|
|
95
|
+
_J$X_("span", { key: "down", className: cx('CalendarCounter-btn CalendarCounter-btn--down'), onClick: _this.onStartClicking('toggleDayPart', 'hours'), onContextMenu: _this.disableContextMenu },
|
|
96
|
+
_J$X_(icons.Icon, { icon: "right-arrow-bold" }))));
|
|
94
97
|
};
|
|
95
98
|
_this.getCounterValue = function (type) {
|
|
96
99
|
if (type !== 'daypart') {
|
|
@@ -111,16 +114,16 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
111
114
|
if (type !== 'daypart') {
|
|
112
115
|
var value = _this.getCounterValue(type);
|
|
113
116
|
var _a = _this.timeConstraints[type], min_1 = _a.min, max_1 = _a.max, step = _a.step;
|
|
114
|
-
return (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
return (_J$X_("div", { key: type, className: cx('CalendarCounter') },
|
|
118
|
+
_J$X_("span", { key: "up", className: cx('CalendarCounter-btn CalendarCounter-btn--up'), onMouseDown: _this.onStartClicking('increase', type), onContextMenu: _this.disableContextMenu },
|
|
119
|
+
_J$X_(icons.Icon, { icon: "right-arrow-bold" })),
|
|
120
|
+
_J$X_("div", { key: "c", className: cx('CalendarCounter-value') },
|
|
121
|
+
_J$X_("input", { type: "text", value: _this.pad(type, value), className: cx('CalendarInput'), min: min_1, max: max_1, step: step, onChange: function (e) {
|
|
119
122
|
return _this.props.setTime(type, Math.max(min_1, Math.min(parseInt(e.currentTarget.value.replace(/\D/g, ''), 10) ||
|
|
120
123
|
0, max_1)));
|
|
121
124
|
} })),
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
_J$X_("span", { key: "do", className: cx('CalendarCounter-btn CalendarCounter-btn--down'), onMouseDown: _this.onStartClicking('decrease', type), onContextMenu: _this.disableContextMenu },
|
|
126
|
+
_J$X_(icons.Icon, { icon: "right-arrow-bold" }))));
|
|
124
127
|
}
|
|
125
128
|
return null;
|
|
126
129
|
};
|
|
@@ -194,7 +197,7 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
194
197
|
});
|
|
195
198
|
values.push(_this.state.daypart);
|
|
196
199
|
}
|
|
197
|
-
return (
|
|
200
|
+
return (_J$X_(Picker["default"], { translate: _this.props.translate, locale: _this.props.locale, title: title, columns: columns, value: values, onConfirm: _this.onConfirm, onClose: _this.props.onClose, showToolbar: _this.props.showToolbar, onChange: _this.onPickerChange }));
|
|
198
201
|
};
|
|
199
202
|
_this.setTime = function (type, value) {
|
|
200
203
|
var date = (_this.props.selectedDate || _this.props.viewDate).clone();
|
|
@@ -311,7 +314,7 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
311
314
|
if (!this.props.dateFormat)
|
|
312
315
|
return null;
|
|
313
316
|
var date = this.props.selectedDate || this.props.viewDate;
|
|
314
|
-
return
|
|
317
|
+
return _J$X_('thead', { key: 'h' }, _J$X_('tr', {}, _J$X_('th', {
|
|
315
318
|
className: 'rdtSwitch',
|
|
316
319
|
colSpan: 4,
|
|
317
320
|
onClick: this.props.showView('days')
|
|
@@ -405,7 +408,7 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
405
408
|
var inputs = [];
|
|
406
409
|
var timeConstraints = this.timeConstraints;
|
|
407
410
|
if (amisCore.isMobile() && this.props.useMobileUI) {
|
|
408
|
-
return (
|
|
411
|
+
return (_J$X_("div", { className: cx('CalendarTime') }, this.renderTimeViewPicker()));
|
|
409
412
|
}
|
|
410
413
|
timeFormat.split(':').forEach(function (format, i) {
|
|
411
414
|
var type = /h/i.test(format)
|
|
@@ -424,7 +427,7 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
424
427
|
minutes: 'mm',
|
|
425
428
|
seconds: 'ss'
|
|
426
429
|
};
|
|
427
|
-
inputs.push(
|
|
430
|
+
inputs.push(_J$X_(Downshift__default["default"], { key: i + 'input', inputValue: date.format(formatMap_1[type]) }, function (_a) {
|
|
428
431
|
var getInputProps = _a.getInputProps, openMenu = _a.openMenu, closeMenu = _a.closeMenu;
|
|
429
432
|
getInputProps({
|
|
430
433
|
onFocus: function () { return openMenu(); },
|
|
@@ -432,12 +435,12 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
432
435
|
return _this.setTime(type, Math.max(min_2, Math.min(parseInt(e.currentTarget.value.replace(/\D/g, ''), 10) || 0, max_2)));
|
|
433
436
|
}
|
|
434
437
|
});
|
|
435
|
-
return (
|
|
436
|
-
|
|
438
|
+
return (_J$X_("div", { className: cx('CalendarInputWrapper') },
|
|
439
|
+
_J$X_("div", { className: cx('CalendarInput-sugs', type === 'hours'
|
|
437
440
|
? 'CalendarInput-sugsHours'
|
|
438
441
|
: 'CalendarInput-sugsTimes'), id: "".concat(_this.state.uniqueTag, "-").concat(i, "-input") }, options_1.map(function (option) {
|
|
439
442
|
var _a;
|
|
440
|
-
return (
|
|
443
|
+
return (_J$X_("div", { key: option.value, className: cx('CalendarInput-sugsItem', {
|
|
441
444
|
'is-mobile': amisCore.isMobile(),
|
|
442
445
|
'is-highlight': selectedDate
|
|
443
446
|
? option.value === date.format(formatMap_1[type])
|
|
@@ -450,19 +453,19 @@ var CustomTimeView = /** @class */ (function (_super) {
|
|
|
450
453
|
} }, option.value));
|
|
451
454
|
}))));
|
|
452
455
|
}));
|
|
453
|
-
inputs.push(
|
|
456
|
+
inputs.push(_J$X_("span", { key: i + 'divider' }));
|
|
454
457
|
}
|
|
455
458
|
});
|
|
456
459
|
inputs.length && inputs.pop();
|
|
457
460
|
var quickLists = [
|
|
458
|
-
|
|
461
|
+
_J$X_("a", { key: "select-now", onClick: this.selectNowTime }, __('TimeNow'))
|
|
459
462
|
];
|
|
460
|
-
return (
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
this.props.requiredConfirm && (
|
|
464
|
-
|
|
465
|
-
|
|
463
|
+
return (_J$X_(React__default["default"].Fragment, null,
|
|
464
|
+
_J$X_("div", { className: cx(timeRangeHeader ? 'TimeRangeHeaderWrapper' : null) }, timeRangeHeader),
|
|
465
|
+
_J$X_("div", { className: cx('TimeContentWrapper') }, inputs),
|
|
466
|
+
this.props.requiredConfirm && (_J$X_("div", { className: cx('TimeFooterWrapper') },
|
|
467
|
+
_J$X_("div", { className: cx('QuickWrapper') }, quickLists),
|
|
468
|
+
_J$X_("a", { className: cx('Button', 'Button--primary', 'Button--size-sm'), onClick: this.confirm }, __('confirm'))))));
|
|
466
469
|
};
|
|
467
470
|
CustomTimeView.defaultProps = {
|
|
468
471
|
showToolbar: true
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v3.
|
|
2
|
+
* amis-ui v3.3.0
|
|
3
3
|
* Copyright 2018-2023 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -18,13 +18,16 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
|
|
21
|
+
var __react_jsx__ = require('react');
|
|
22
|
+
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
|
|
23
|
+
(__react_jsx__["default"] || __react_jsx__).Fragment;
|
|
21
24
|
var CustomYearsView = /** @class */ (function (_super) {
|
|
22
25
|
tslib.__extends(CustomYearsView, _super);
|
|
23
26
|
function CustomYearsView(props) {
|
|
24
27
|
var _this = _super.call(this, props) || this;
|
|
25
28
|
_this.renderYear = function (props, year, date) {
|
|
26
|
-
return (
|
|
27
|
-
|
|
29
|
+
return (_J$X_("td", tslib.__assign({}, props),
|
|
30
|
+
_J$X_("span", null, year)));
|
|
28
31
|
};
|
|
29
32
|
_this.onConfirm = function (value) {
|
|
30
33
|
_this.props.onConfirm && _this.props.onConfirm(value, ['year']);
|
|
@@ -43,7 +46,7 @@ var CustomYearsView = /** @class */ (function (_super) {
|
|
|
43
46
|
options: amisCore.getRange(minYear, maxYear, 1)
|
|
44
47
|
}
|
|
45
48
|
];
|
|
46
|
-
return (
|
|
49
|
+
return (_J$X_(Picker["default"], { translate: _this.props.translate, locale: _this.props.locale, title: title, columns: columns, value: _this.state.pickerValue, onConfirm: _this.onConfirm, onChange: _this.onPickerChange, onClose: _this.props.onClose }));
|
|
47
50
|
};
|
|
48
51
|
var selectedDate = props.selectedDate, viewDate = props.viewDate;
|
|
49
52
|
var currentDate = selectedDate || viewDate || moment__default["default"]();
|
|
@@ -92,7 +95,7 @@ var CustomYearsView = /** @class */ (function (_super) {
|
|
|
92
95
|
: this.props.setDate && this.props.setDate('year');
|
|
93
96
|
years.push(renderer(props, year, selectedDate && selectedDate.clone()));
|
|
94
97
|
if (years.length === 3) {
|
|
95
|
-
rows.push(
|
|
98
|
+
rows.push(_J$X_('tr', { key: i }, years));
|
|
96
99
|
years = [];
|
|
97
100
|
}
|
|
98
101
|
year++;
|
|
@@ -111,17 +114,17 @@ var CustomYearsView = /** @class */ (function (_super) {
|
|
|
111
114
|
year = year - (year % 10);
|
|
112
115
|
var __ = this.props.translate;
|
|
113
116
|
if (amisCore.isMobile() && this.props.useMobileUI) {
|
|
114
|
-
return
|
|
117
|
+
return _J$X_("div", { className: "rdtYears" }, this.renderYearPicker());
|
|
115
118
|
}
|
|
116
|
-
return (
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
return (_J$X_("div", { className: "rdtYears" },
|
|
120
|
+
_J$X_("table", { className: "headerTable" },
|
|
121
|
+
_J$X_("thead", null,
|
|
122
|
+
_J$X_("tr", null,
|
|
123
|
+
_J$X_("th", { className: "rdtPrev", onClick: this.props.subtractTime(10, 'years') }, "\u00AB"),
|
|
124
|
+
_J$X_("th", { className: "rdtSwitch" }, __('year-to-year', { from: year, to: year + 9 })),
|
|
125
|
+
_J$X_("th", { className: "rdtNext", onClick: this.props.addTime(10, 'years') }, "\u00BB")))),
|
|
126
|
+
_J$X_("table", null,
|
|
127
|
+
_J$X_("tbody", null, this.renderYears(year)))));
|
|
125
128
|
};
|
|
126
129
|
return CustomYearsView;
|
|
127
130
|
}(React__default["default"].Component));
|