d2coreui 21.0.33 → 23.0.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/components/clipboard/clipboardUtils.d.ts +4 -3
- package/components/clipboard/clipboardUtils.js +47 -22
- package/components/clipboard/clipboardUtils.js.map +1 -1
- package/components/codemirror/SyntaxHighlighter.d.ts +21 -21
- package/components/codemirror/SyntaxHighlighter.js +45 -44
- package/components/codemirror/SyntaxHighlighter.js.map +1 -1
- package/components/collapse/expandable.d.ts +13 -12
- package/components/collapse/expandable.js +20 -20
- package/components/collapse/expandable.js.map +1 -1
- package/components/color/colorPicker.d.ts +20 -20
- package/components/color/colorPicker.js +53 -53
- package/components/color/colorPicker.js.map +1 -1
- package/components/color/colorSwatch.d.ts +13 -12
- package/components/color/colorSwatch.js +62 -62
- package/components/color/colorSwatch.js.map +1 -1
- package/components/color/colorUtils.d.ts +7 -7
- package/components/color/colorUtils.js +43 -43
- package/components/color/colorUtils.js.map +1 -1
- package/components/date/dateRangeInput.d.ts +66 -64
- package/components/date/dateRangeInput.js +292 -297
- package/components/date/dateRangeInput.js.map +1 -1
- package/components/date/dateRangeInputAdvancedPanel.d.ts +27 -26
- package/components/date/dateRangeInputAdvancedPanel.js +130 -115
- package/components/date/dateRangeInputAdvancedPanel.js.map +1 -1
- package/components/date/dateRangeInputConfirm.d.ts +31 -29
- package/components/date/dateRangeInputConfirm.js +132 -121
- package/components/date/dateRangeInputConfirm.js.map +1 -1
- package/components/date/dateTimeInput.d.ts +72 -69
- package/components/date/dateTimeInput.js +440 -412
- package/components/date/dateTimeInput.js.map +1 -1
- package/components/date/durationInput.d.ts +59 -56
- package/components/date/durationInput.js +269 -280
- package/components/date/durationInput.js.map +1 -1
- package/components/form/NiceFormItem.d.ts +14 -14
- package/components/form/NiceFormItem.js +28 -31
- package/components/form/NiceFormItem.js.map +1 -1
- package/components/grid/cell/beanAccessor.d.ts +9 -0
- package/components/grid/cell/beanAccessor.js +13 -0
- package/components/grid/cell/beanAccessor.js.map +1 -0
- package/components/grid/cell/cellEditorUtils.d.ts +4 -4
- package/components/grid/cell/cellEditorUtils.js +8 -8
- package/components/grid/cell/customEnumCellEditor.d.ts +4 -26
- package/components/grid/cell/customEnumCellEditor.js +82 -91
- package/components/grid/cell/customEnumCellEditor.js.map +1 -1
- package/components/grid/cell/dataGridCellEditorComponent.d.ts +14 -0
- package/components/grid/cell/dataGridCellEditorComponent.js +49 -0
- package/components/grid/cell/dataGridCellEditorComponent.js.map +1 -0
- package/components/grid/cell/dateCellEditor.d.ts +4 -25
- package/components/grid/cell/dateCellEditor.js +53 -72
- package/components/grid/cell/dateCellEditor.js.map +1 -1
- package/components/grid/cell/durationCellEditor.d.ts +4 -24
- package/components/grid/cell/durationCellEditor.js +74 -97
- package/components/grid/cell/durationCellEditor.js.map +1 -1
- package/components/grid/cell/hexaOctetStringCellEditor.d.ts +4 -24
- package/components/grid/cell/hexaOctetStringCellEditor.js +70 -94
- package/components/grid/cell/hexaOctetStringCellEditor.js.map +1 -1
- package/components/grid/cell/hexaValueCellEditor.d.ts +4 -24
- package/components/grid/cell/hexaValueCellEditor.js +65 -89
- package/components/grid/cell/hexaValueCellEditor.js.map +1 -1
- package/components/grid/cell/numberCellEditor.d.ts +4 -27
- package/components/grid/cell/numberCellEditor.js +73 -95
- package/components/grid/cell/numberCellEditor.js.map +1 -1
- package/components/grid/cell/rangeSelector.d.ts +78 -78
- package/components/grid/cell/rangeSelector.js +526 -518
- package/components/grid/cell/rangeSelector.js.map +1 -1
- package/components/grid/cell/simpleStatusTextCellEditor.d.ts +4 -32
- package/components/grid/cell/simpleStatusTextCellEditor.js +106 -116
- package/components/grid/cell/simpleStatusTextCellEditor.js.map +1 -1
- package/components/grid/cell/statusTextCellEditor.d.ts +4 -32
- package/components/grid/cell/statusTextCellEditor.js +136 -159
- package/components/grid/cell/statusTextCellEditor.js.map +1 -1
- package/components/grid/cell/tableDefaultRowStyleRules.d.ts +20 -20
- package/components/grid/cell/tableDefaultRowStyleRules.js +29 -18
- package/components/grid/cell/tableDefaultRowStyleRules.js.map +1 -1
- package/components/grid/cell/textCellEditor.d.ts +4 -21
- package/components/grid/cell/textCellEditor.js +63 -85
- package/components/grid/cell/textCellEditor.js.map +1 -1
- package/components/grid/cell/withAgGridHooks.d.ts +3 -0
- package/components/grid/cell/withAgGridHooks.js +15 -0
- package/components/grid/cell/withAgGridHooks.js.map +1 -0
- package/components/grid/columnUtils.d.ts +5 -5
- package/components/grid/columnUtils.js +26 -26
- package/components/grid/columnUtils.js.map +1 -1
- package/components/grid/config/columnTransfer.d.ts +21 -22
- package/components/grid/config/columnTransfer.js +205 -201
- package/components/grid/config/columnTransfer.js.map +1 -1
- package/components/grid/config/dataGridEditor.d.ts +41 -41
- package/components/grid/config/dataGridEditor.js +181 -160
- package/components/grid/config/dataGridEditor.js.map +1 -1
- package/components/grid/config/rowHeightCalculator.d.ts +8 -0
- package/components/grid/config/rowHeightCalculator.js +20 -0
- package/components/grid/config/rowHeightCalculator.js.map +1 -0
- package/components/grid/config/rowStylePicker.d.ts +27 -25
- package/components/grid/config/rowStylePicker.js +127 -109
- package/components/grid/config/rowStylePicker.js.map +1 -1
- package/components/grid/dataGrid.d.ts +218 -206
- package/components/grid/dataGrid.js +1629 -1538
- package/components/grid/dataGrid.js.map +1 -1
- package/components/grid/detail/detailHeaderPanel.d.ts +13 -13
- package/components/grid/detail/detailHeaderPanel.js +25 -25
- package/components/grid/detail/detailHeaderPanel.js.map +1 -1
- package/components/grid/export/contextMenu.d.ts +18 -24
- package/components/grid/export/contextMenu.js +116 -113
- package/components/grid/export/contextMenu.js.map +1 -1
- package/components/grid/export/progressPopup.d.ts +29 -29
- package/components/grid/export/progressPopup.js +93 -93
- package/components/grid/export/progressPopup.js.map +1 -1
- package/components/grid/export/worker/clipboardExport.d.ts +1 -1
- package/components/grid/export/worker/clipboardExport.js +8 -8
- package/components/grid/export/worker/csvExport.d.ts +1 -1
- package/components/grid/export/worker/csvExport.js +8 -8
- package/components/grid/export/worker/pdfExport.d.ts +1 -1
- package/components/grid/export/worker/pdfExport.js +81 -81
- package/components/grid/export/worker/pdfExport.js.map +1 -1
- package/components/grid/export/worker/txtExport.d.ts +1 -1
- package/components/grid/export/worker/txtExport.js +19 -19
- package/components/grid/extendedDataGrid.d.ts +140 -140
- package/components/grid/extendedDataGrid.js +704 -695
- package/components/grid/extendedDataGrid.js.map +1 -1
- package/components/grid/filter/customColumnFilter.d.ts +5 -21
- package/components/grid/filter/customColumnFilter.js +11 -82
- package/components/grid/filter/customColumnFilter.js.map +1 -1
- package/components/grid/filter/dataGridColumnFilter.d.ts +17 -0
- package/components/grid/filter/dataGridColumnFilter.js +49 -0
- package/components/grid/filter/dataGridColumnFilter.js.map +1 -0
- package/components/grid/filter/dateColumnFilter.d.ts +7 -11
- package/components/grid/filter/dateColumnFilter.js +22 -56
- package/components/grid/filter/dateColumnFilter.js.map +1 -1
- package/components/grid/filter/textColumnFilter.d.ts +8 -20
- package/components/grid/filter/textColumnFilter.js +24 -76
- package/components/grid/filter/textColumnFilter.js.map +1 -1
- package/components/grid/filter/wildcardQuickFilterEngine.d.ts +7 -0
- package/components/grid/filter/wildcardQuickFilterEngine.js +48 -0
- package/components/grid/filter/wildcardQuickFilterEngine.js.map +1 -0
- package/components/grid/header/simpleHeader.d.ts +17 -16
- package/components/grid/header/simpleHeader.js +230 -186
- package/components/grid/header/simpleHeader.js.map +1 -1
- package/components/grid/panel/dataGridPagination.d.ts +16 -16
- package/components/grid/panel/dataGridPagination.js +58 -58
- package/components/grid/panel/dataGridPagination.js.map +1 -1
- package/components/grid/panel/loadingOverlay.d.ts +6 -6
- package/components/grid/panel/loadingOverlay.js +10 -10
- package/components/grid/panel/loadingOverlay.js.map +1 -1
- package/components/grid/panel/noRecordsOverlay.d.ts +6 -6
- package/components/grid/panel/noRecordsOverlay.js +10 -10
- package/components/grid/panel/noRecordsOverlay.js.map +1 -1
- package/components/grid/panel/tablePagination.d.ts +10 -10
- package/components/grid/panel/tablePagination.js +45 -45
- package/components/grid/panel/tablePagination.js.map +1 -1
- package/components/icons/dropdownArrow.d.ts +8 -0
- package/components/icons/dropdownArrow.js +59 -0
- package/components/icons/dropdownArrow.js.map +1 -0
- package/components/icons/undoIcon.d.ts +8 -8
- package/components/icons/undoIcon.js +6 -6
- package/components/input/autoCompleteInput.d.ts +35 -35
- package/components/input/autoCompleteInput.js +122 -121
- package/components/input/autoCompleteInput.js.map +1 -1
- package/components/input/draftUtils.d.ts +4 -4
- package/components/input/draftUtils.js +48 -48
- package/components/input/draftUtils.js.map +1 -1
- package/components/input/draftail.d.ts +1 -1
- package/components/input/draftail.js +1 -1
- package/components/input/hexaFormattedInput.d.ts +16 -16
- package/components/input/hexaFormattedInput.js +54 -54
- package/components/input/hexaFormattedInput.js.map +1 -1
- package/components/input/mask/helpers.d.ts +28 -28
- package/components/input/mask/helpers.js +112 -112
- package/components/input/mask/helpers.js.map +1 -1
- package/components/input/mask/inputMaskCore.d.ts +46 -46
- package/components/input/mask/inputMaskCore.js +278 -278
- package/components/input/mask/inputMaskCore.js.map +1 -1
- package/components/input/mask/pattern.d.ts +20 -20
- package/components/input/mask/pattern.js +78 -78
- package/components/input/mask/pattern.js.map +1 -1
- package/components/input/maskedInput.d.ts +373 -351
- package/components/input/maskedInput.js +224 -224
- package/components/input/maskedInput.js.map +1 -1
- package/components/input/passwordInput.d.ts +9 -9
- package/components/input/passwordInput.js +55 -55
- package/components/input/passwordInput.js.map +1 -1
- package/components/input/simpleAutoComplete.d.ts +12 -12
- package/components/input/simpleAutoComplete.js +41 -43
- package/components/input/simpleAutoComplete.js.map +1 -1
- package/components/input/textarea/extractSpansOfClasses.d.ts +15 -15
- package/components/input/textarea/extractSpansOfClasses.js +96 -96
- package/components/input/textarea/extractSpansOfClasses.js.map +1 -1
- package/components/input/textarea/getRanges.d.ts +1 -1
- package/components/input/textarea/getRanges.js +73 -73
- package/components/input/textarea/getRanges.js.map +1 -1
- package/components/input/textarea/getType.d.ts +1 -1
- package/components/input/textarea/getType.js +26 -26
- package/components/input/textarea/getType.js.map +1 -1
- package/components/input/textarea/highlighedContents.d.ts +6 -6
- package/components/input/textarea/highlighedContents.js +10 -10
- package/components/input/textarea/mentionsWithHighlighting.d.ts +27 -27
- package/components/input/textarea/mentionsWithHighlighting.js +60 -60
- package/components/input/textarea/mentionsWithHighlighting.js.map +1 -1
- package/components/keyboard/keyboardUtils.d.ts +5 -5
- package/components/keyboard/keyboardUtils.js +32 -32
- package/components/modal/draggableModalProvider.d.ts +4 -4
- package/components/modal/draggableModalProvider.js +21 -21
- package/components/modal/draggableModalProvider.js.map +1 -1
- package/components/modal/impl/clamp.d.ts +1 -1
- package/components/modal/impl/clamp.js +1 -1
- package/components/modal/impl/clamp.js.map +1 -1
- package/components/modal/impl/draggableModal.d.ts +12 -12
- package/components/modal/impl/draggableModal.js +17 -17
- package/components/modal/impl/draggableModal.js.map +1 -1
- package/components/modal/impl/draggableModalContext.d.ts +9 -9
- package/components/modal/impl/draggableModalContext.js +2 -2
- package/components/modal/impl/draggableModalContext.js.map +1 -1
- package/components/modal/impl/draggableModalInner.d.ts +15 -13
- package/components/modal/impl/draggableModalInner.js +57 -55
- package/components/modal/impl/draggableModalInner.js.map +1 -1
- package/components/modal/impl/draggableModalReducer.d.ts +66 -62
- package/components/modal/impl/draggableModalReducer.js +77 -78
- package/components/modal/impl/draggableModalReducer.js.map +1 -1
- package/components/modal/impl/getWindowSize.d.ts +4 -4
- package/components/modal/impl/getWindowSize.js +4 -4
- package/components/modal/impl/getWindowSize.js.map +1 -1
- package/components/modal/impl/index.d.ts +3 -3
- package/components/modal/impl/index.js +3 -3
- package/components/modal/impl/index.js.map +1 -1
- package/components/modal/impl/resizeHandle.d.ts +3 -3
- package/components/modal/impl/resizeHandle.js +4 -4
- package/components/modal/impl/resizeHandle.js.map +1 -1
- package/components/modal/impl/useDrag.d.ts +5 -5
- package/components/modal/impl/useDrag.js +42 -42
- package/components/modal/impl/useDrag.js.map +1 -1
- package/components/modal/impl/usePrevious.d.ts +1 -1
- package/components/modal/impl/usePrevious.js +8 -8
- package/components/modal/impl/usePrevious.js.map +1 -1
- package/components/modal/impl/useResize.d.ts +7 -7
- package/components/modal/impl/useResize.js +46 -46
- package/components/modal/impl/useResize.js.map +1 -1
- package/components/modal/modalDialog.d.ts +49 -49
- package/components/modal/modalDialog.js +152 -152
- package/components/modal/modalDialog.js.map +1 -1
- package/components/picker/enumValuePicker.d.ts +16 -16
- package/components/picker/enumValuePicker.js +34 -34
- package/components/picker/enumValuePicker.js.map +1 -1
- package/components/platformSpecific.d.ts +10 -10
- package/components/platformSpecific.js +27 -27
- package/components/scrollTo/onlyText.d.ts +4 -4
- package/components/scrollTo/onlyText.js +30 -30
- package/components/scrollTo/onlyText.js.map +1 -1
- package/components/scrollTo/scrollTo.d.ts +41 -39
- package/components/scrollTo/scrollTo.js +264 -264
- package/components/scrollTo/scrollTo.js.map +1 -1
- package/components/style/withCss.d.ts +9 -0
- package/components/style/withCss.js +6 -0
- package/components/style/withCss.js.map +1 -0
- package/components/style/withInputNumberCss.d.ts +6 -0
- package/components/style/withInputNumberCss.js +13 -0
- package/components/style/withInputNumberCss.js.map +1 -0
- package/components/table/dragSortingTable.d.ts +13 -14
- package/components/table/dragSortingTable.js +96 -82
- package/components/table/dragSortingTable.js.map +1 -1
- package/components/text/impl/innerSize.d.ts +2 -2
- package/components/text/impl/innerSize.js +12 -12
- package/components/text/impl/series.d.ts +1 -1
- package/components/text/impl/series.js +28 -28
- package/components/text/impl/shallowEqual.d.ts +1 -1
- package/components/text/impl/shallowEqual.js +18 -18
- package/components/text/impl/shallowEqual.js.map +1 -1
- package/components/text/impl/uniqueId.d.ts +1 -1
- package/components/text/impl/uniqueId.js +4 -4
- package/components/text/impl/whilst.d.ts +1 -1
- package/components/text/impl/whilst.js +19 -19
- package/components/text/impl/whilst.js.map +1 -1
- package/components/text/textFit.d.ts +38 -38
- package/components/text/textFit.js +165 -168
- package/components/text/textFit.js.map +1 -1
- package/i18n/components.cs.json +101 -100
- package/i18n/components.sk.json +101 -100
- package/i18n/components.uk.json +101 -100
- package/i18n/componentsLocaleHolder.d.ts +3 -3
- package/i18n/componentsLocaleHolder.js +28 -28
- package/i18n/componentsLocaleHolder.js.map +1 -1
- package/package.json +71 -70
- package/style/index.less +274 -298
- package/style/modal/DraggableModal.css +43 -40
- package/style/modal/ResizeHandle.css +27 -19
- package/tsconfig.build.json +24 -24
- package/tsconfig.json +11 -11
- package/components/grid/cell/wildcardQuickFilter.d.ts +0 -11
- package/components/grid/cell/wildcardQuickFilter.js +0 -61
- package/components/grid/cell/wildcardQuickFilter.js.map +0 -1
- package/components/table/dataTable.d.ts +0 -17
- package/components/table/dataTable.js +0 -79
- package/components/table/dataTable.js.map +0 -1
- package/style/antd/antd-tree-showline.css +0 -25
- package/style/antd/full-height-tabs.scss +0 -63
- package/style/draftail/draftail-editor.css +0 -179
- package/style/table/dragSortingTable.css +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateRangeInput.js","sourceRoot":"","sources":["../../../../components/date/dateRangeInput.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,MAAgB,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AAC9C,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,UAAU,MAAM,aAAa,CAAC;AAErC,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,2BAA2B,EAAE,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;AAE9F,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,+DAAM,CAAA;IAC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AO,EAAE;wBACT,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,OAAO,kDAAI,CAAC;qBAC1B;yBAAM;wBACH,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,MAAM,kDAAI,CAAC;qBACzB;oBACD,IAAI,CAAC,QAAQ,CAAC,EAAC,YAAY,EAAE,OAAO,EAAC,CAAC,CAAC;gBAC3C,CAAC,EACD,gBAAgB,EAAE,yBAAyB,EAC3C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,IAC7B,IAAI,CAAC,WAAW,EAAE,CACb,CACb,CAAC;SACL;IACL,CAAC;CACJ","sourcesContent":["import React, {HTMLAttributes} from \"react\";\nimport moment, {Moment} from \"moment\";\nimport {CalendarOutlined} from \"@ant-design/icons\";\nimport {Divider, Switch, Tooltip} from \"antd\";\nimport DateTimeInput from \"./dateTimeInput\";\nimport memoizeOne from \"memoize-one\";\nimport {TooltipPlacement} from \"antd/es/tooltip\";\nimport KeyboardUtils from \"../keyboard/keyboardUtils\";\nimport i18n from \"d2core/i18n/i18n\";\nimport DateRangeInputAdvancedPanel, {TimeShiftDirection} from \"./dateRangeInputAdvancedPanel\";\n\nexport enum DateRangeInputMode {\n SIMPLE,\n ADVANCED,\n}\n\nexport interface DateRangeInputProps extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\n mask: string\n fromValue: Moment | null\n toValue: Moment | null\n onChange?: (fromValue: Moment | null, toValue: Moment | null) => void\n onInvalidValue?: (input: string) => void\n disabled?: boolean\n minDateTime?: Moment\n maxDateTime?: Moment\n // allows to set no (null) date by datepicker\n allowClear?: boolean\n ranges?: { [rangeName: string]: () => [Moment, Moment] }\n\n hidePopup?: boolean\n renderAsCalendar?: boolean\n placement?: TooltipPlacement\n align?: {\n points?: [string, string];\n offset?: [number, number];\n targetOffset?: [number, number];\n overflow?: {\n adjustX?: boolean;\n adjustY?: boolean;\n };\n useCssRight?: boolean;\n useCssBottom?: boolean;\n useCssTransform?: boolean;\n }\n\n defaultMode?: DateRangeInputMode\n\n onModeChange?(mode: DateRangeInputMode): void\n\n onFocus?(): void\n\n onBlur?(): void\n\n confirmButtonsRenderer?(): React.ReactNode\n\n onPopupVisibleChange?(visible: boolean): void\n}\n\ninterface DateRangeInputState {\n valid: boolean\n selectionStartDate: Moment | null\n popupKeyIndex: number\n popupVisible: boolean\n\n mode: DateRangeInputMode\n}\n\nexport default class DateRangeInput extends React.Component<DateRangeInputProps, DateRangeInputState> {\n constructor(props: Readonly<DateRangeInputProps>) {\n super(props);\n this.state = {\n valid: !!props.fromValue && props.fromValue.isValid() && !!props.toValue && props.toValue.isValid(),\n selectionStartDate: null,\n popupKeyIndex: 0,\n popupVisible: false,\n\n mode: props.defaultMode ?? DateRangeInputMode.SIMPLE,\n };\n this.getDefaultSelectedDateForFromPanel = memoizeOne(this.getDefaultSelectedDateForFromPanel.bind(this));\n }\n\n componentDidUpdate(_prevProps: Readonly<DateRangeInputProps>, prevState: Readonly<DateRangeInputState>) {\n if (prevState.popupVisible !== this.state.popupVisible && this.props.onPopupVisibleChange) {\n this.props.onPopupVisibleChange(this.state.popupVisible);\n }\n }\n\n getDefaultSelectedDateForFromPanel(fromDate: Moment | null, toDate: Moment | null): Moment {\n if (!!fromDate && !!toDate && fromDate.isSame(toDate, \"date\")) {\n return fromDate.clone().subtract(1, \"month\");\n } else {\n return fromDate ?? moment().startOf(\"day\").subtract(1, \"month\");\n }\n }\n\n private getFromValue(date: moment.Moment) {\n return (this.props.fromValue?.clone() ?? moment().startOf(\"day\")).year(date.year()).month(date.month()).date(date.date());\n }\n\n private getToValue(date: moment.Moment) {\n return (this.props.toValue?.clone() ?? moment().endOf(\"day\")).year(date.year()).month(date.month()).date(date.date());\n }\n\n closePopup() {\n // close tooltip\n this.setState({popupKeyIndex: this.state.popupKeyIndex + 1, popupVisible: false});\n this.props.onPopupVisibleChange?.(false);\n }\n\n private onChange(fromValue: Moment | null, toValue: Moment | null) {\n if (this.props.minDateTime && fromValue?.isBefore(this.props.minDateTime)) {\n fromValue = this.props.minDateTime;\n }\n if (this.props.maxDateTime && toValue?.isAfter(this.props.maxDateTime)) {\n toValue = this.props.maxDateTime;\n }\n this.props.onChange?.(fromValue, toValue);\n }\n\n private renderSimplePart() {\n const {\n fromValue,\n toValue,\n onChange,\n style,\n allowClear,\n renderAsCalendar,\n hidePopup,\n align,\n defaultMode,\n onModeChange,\n confirmButtonsRenderer,\n onPopupVisibleChange,\n ...props\n } = this.props;\n const markedDateInterval: [Moment, Moment] | undefined = this.props.fromValue && this.props.toValue ? [this.props.fromValue, this.props.toValue] : undefined;\n\n return (\n <div>\n <div style={{display: \"flex\"}}>\n <DateTimeInput value={fromValue} {...props}\n allowClear={allowClear}\n renderAsCalendar\n style={{width: \"100%\"}}\n onChange={(date) => {\n if (date) {\n const fromValue = this.getFromValue(date);\n const toValue = this.getToValue(date);\n this.props.onChange?.(fromValue, toValue);\n }\n }}\n defaultSelectedDate={this.getDefaultSelectedDateForFromPanel(fromValue, toValue)}\n markedDateInterval={markedDateInterval}\n onDateItemMouseDown={(date) => {\n this.setState({selectionStartDate: date});\n const dateFrom = this.getFromValue(date);\n const dateTo = this.getToValue(date);\n this.props.onChange?.(dateFrom, dateTo);\n }}\n onDateItemMouseOver={(date) => {\n if (KeyboardUtils.isMouseDown() && !!this.state.selectionStartDate) {\n let dateFrom: Moment;\n let dateTo: Moment;\n if (this.state.selectionStartDate.isBefore(date)) {\n dateFrom = this.state.selectionStartDate;\n dateTo = date;\n } else {\n dateFrom = date;\n dateTo = this.state.selectionStartDate;\n }\n dateFrom = this.getFromValue(dateFrom);\n dateTo = this.getToValue(dateTo);\n this.props.onChange?.(dateFrom, dateTo);\n }\n }}\n onDateItemMouseUp={(_date) => {\n this.setState({selectionStartDate: null});\n }}\n ignoreKeyStrokes\n />\n <Divider type=\"vertical\" style={{height: \"auto\"}}/>\n <DateTimeInput value={toValue} {...props}\n renderAsCalendar\n allowClear={allowClear}\n style={{width: \"100%\"}}\n onChange={(date) => {\n if (date) {\n const fromValue = this.getFromValue(date);\n const toValue = this.getToValue(date);\n this.props.onChange?.(fromValue, toValue);\n }\n }}\n markedDateInterval={markedDateInterval}\n onDateItemMouseDown={(date) => {\n this.setState({selectionStartDate: date});\n const dateFrom = this.getFromValue(date);\n const dateTo = this.getToValue(date);\n this.props.onChange?.(dateFrom, dateTo);\n }}\n onDateItemMouseOver={(date) => {\n if (KeyboardUtils.isMouseDown() && !!this.state.selectionStartDate) {\n let dateFrom: Moment;\n let dateTo: Moment;\n if (this.state.selectionStartDate.isBefore(date)) {\n dateFrom = this.state.selectionStartDate;\n dateTo = date;\n } else {\n dateFrom = date;\n dateTo = this.state.selectionStartDate;\n }\n dateFrom = this.getFromValue(dateFrom);\n dateTo = this.getToValue(dateTo);\n this.props.onChange?.(dateFrom, dateTo);\n }\n }}\n onDateItemMouseUp={(_date) => {\n this.setState({selectionStartDate: null});\n }}\n ignoreKeyStrokes\n />\n </div>\n <div className=\"ant-picker-footer\">\n <ul className=\"ant-picker-ranges\" style={{padding: 0, borderTop: \"1px solid #ddd\"}}>\n {\n this.props.ranges && Object.keys(this.props.ranges).map((rangeName, index) => {\n return (<li className=\"ant-picker-preset\"\n key={`range-${index}`}\n onClick={() => {\n const rangeFunction = this.props.ranges?.[rangeName];\n if (rangeFunction) {\n const range = rangeFunction();\n this.props.onChange?.(range[0], range[1]);\n }\n }}>\n <span className=\"ant-tag ant-tag-blue\"\n style={{userSelect: \"none\"}}>{rangeName}</span>\n </li>);\n })\n }\n </ul>\n </div>\n </div>\n )\n }\n\n private renderAdvancedPart() {\n const {\n fromValue,\n toValue,\n onChange,\n style,\n allowClear,\n renderAsCalendar,\n hidePopup,\n align,\n defaultMode,\n onModeChange,\n confirmButtonsRenderer,\n onPopupVisibleChange,\n ...props\n } = this.props;\n return (\n <div>\n <div style={{display: \"flex\"}}>\n <DateTimeInput\n {...props}\n style={{width: \"47%\"}}\n value={fromValue}\n onChange={(value) => {\n this.props.onChange?.(value, this.props.toValue);\n }}\n />\n <span style={{width: \"6%\", paddingTop: 4, color: \"rgba(0, 0, 0, 0.65)\", textAlign: \"center\"}}>\n {\"\\u27F7\"}\n </span>\n <DateTimeInput\n {...props}\n style={{width: \"47%\"}}\n value={toValue}\n onChange={(value) => {\n this.props.onChange?.(this.props.fromValue, value);\n }}\n />\n </div>\n <DateRangeInputAdvancedPanel\n onBeginIntervalChange={unit => {\n let from: Moment;\n if (unit === \"15minutes\") {\n const roundedMinutes = Math.floor(moment().minute() / 15) * 15;\n from = moment().startOf(\"hour\").minute(roundedMinutes);\n } else {\n from = moment().startOf(unit);\n }\n this.onChange(from, this.props.toValue);\n }}\n onIntervalDurationChange={unitOfTime => {\n if (this.props.fromValue) {\n let to: Moment;\n if (unitOfTime === \"4years\") {\n to = this.props.fromValue.clone().add(4, \"year\").subtract(1, \"millisecond\");\n } else {\n to = this.props.fromValue.clone().add(1, unitOfTime).subtract(1, \"millisecond\")\n }\n this.onChange(this.props.fromValue, to);\n }\n }}\n onTimeShift={(shiftBegin, shiftEnd, unitOfTime, type) => {\n let fromValue = this.props.fromValue?.clone() ?? null;\n let toValue = this.props.toValue?.clone() ?? null;\n\n if (shiftBegin && fromValue) {\n if (type === TimeShiftDirection.INCREMENT) {\n fromValue.add(1, unitOfTime);\n } else if (type === TimeShiftDirection.DECREMENT) {\n fromValue.subtract(1, unitOfTime);\n }\n }\n\n if (shiftEnd && toValue) {\n if (type === TimeShiftDirection.INCREMENT) {\n toValue.add(1, unitOfTime);\n } else if (type === TimeShiftDirection.DECREMENT) {\n toValue.subtract(1, unitOfTime);\n }\n }\n\n this.onChange(fromValue, toValue);\n }}\n onEndIntervalChange={unit => {\n let to: Moment;\n if (unit === \"15minutes\") {\n const roundedMinutes = Math.floor(moment().minute() / 15) * 15;\n to = moment().startOf(\"hour\").minute(roundedMinutes).subtract(1, \"millisecond\");\n } else {\n to = moment().startOf(unit).subtract(1, \"millisecond\");\n }\n this.onChange(this.props.fromValue, to);\n }}\n />\n </div>\n )\n }\n\n renderPopup(): React.ReactElement {\n return (\n <div onFocus={this.props.onFocus} onBlur={this.props.onBlur}>\n {this.state.mode === DateRangeInputMode.SIMPLE && this.renderSimplePart()}\n {this.state.mode === DateRangeInputMode.ADVANCED && this.renderAdvancedPart()}\n <div style={{display: \"flex\", justifyContent: \"space-between\", alignItems: \"flex-end\"}}>\n <Switch\n style={{float: \"right\", marginTop: 8}}\n checked={this.state.mode === DateRangeInputMode.ADVANCED}\n onChange={checked => {\n const mode = checked ? DateRangeInputMode.ADVANCED : DateRangeInputMode.SIMPLE;\n this.setState({mode: mode});\n this.props.onModeChange?.(mode);\n }}\n checkedChildren={i18n(\"Advanced Mode\")}\n unCheckedChildren={i18n(\"Simple Mode\")}\n />\n {this.props.confirmButtonsRenderer?.()}\n </div>\n </div>\n );\n }\n\n renderInput() {\n const {\n fromValue,\n toValue,\n onChange,\n style,\n allowClear,\n renderAsCalendar,\n hidePopup,\n align,\n disabled,\n defaultMode,\n onModeChange,\n confirmButtonsRenderer,\n onPopupVisibleChange,\n ...props\n } = this.props;\n const className = (disabled || this.state.popupVisible) ? \"readonly\" : undefined;\n return (\n <div style={{...style, padding: 0}} className={\"ant-input\"} onFocus={this.props.onFocus}\n onBlur={this.props.onBlur}>\n <div style={{display: \"flex\", width: (!hidePopup && !renderAsCalendar) ? \"calc(100% - 27px)\" : \"100%\"}}>\n <DateTimeInput value={fromValue} {...props}\n disabled={disabled}\n inputDisabled={this.state.popupVisible}\n allowClear={allowClear}\n bordered={false}\n hidePopup={true}\n style={{width: \"auto\"}}\n inputStyle={{paddingRight: 2}}\n onChange={(value) => {\n this.props.onChange?.(value, this.props.toValue);\n }}\n />\n <span style={{paddingTop: 4}} className={className}>{\"\\u27F7\"}</span>\n <DateTimeInput value={toValue} {...props}\n disabled={disabled}\n inputDisabled={this.state.popupVisible}\n allowClear={allowClear}\n bordered={false}\n hidePopup={true}\n style={{width: \"auto\"}}\n inputStyle={{paddingLeft: 2}}\n onChange={(value) => {\n this.props.onChange?.(this.props.fromValue, value);\n }}/>\n </div>\n {!hidePopup && !renderAsCalendar && <div className={\"ant-input-number-handler-wrap \" + className}\n style={{\n width: 28,\n opacity: 1,\n height: \"100%\",\n textAlign: \"center\",\n cursor: disabled ? \"not-allowed\" : \"pointer\"\n }}\n onClick={(event) => {\n if (!disabled && document.createEvent) {\n if (this.state.popupVisible) {\n this.closePopup();\n } else {\n var ev = document.createEvent('HTMLEvents');\n ev.initEvent('contextmenu', true, false);\n event.target.dispatchEvent(ev);\n this.props.onFocus?.();\n }\n }\n }}\n >\n <CalendarOutlined style={{color: \"rgba(0,0,0,0.65)\", verticalAlign: \"middle\", marginTop: 2}}/>\n </div>}\n </div>\n );\n }\n\n render(): any {\n if (this.props.renderAsCalendar) {\n return this.renderPopup();\n } else if (this.props.hidePopup) {\n return this.renderInput();\n } else {\n return (\n <Tooltip color={\"white\"}\n key={\"date-range-popup-\" + this.state.popupKeyIndex}\n trigger={this.props.disabled ? [] : [\"contextMenu\"]}\n align={this.props.align}\n placement={this.props.placement}\n overlayInnerStyle={{maxHeight: \"100vh\", overflowY: \"auto\", overflowX: \"hidden\"}}\n onVisibleChange={(visible) => {\n if (visible) {\n this.props.onFocus?.();\n } else {\n this.props.onBlur?.();\n }\n this.setState({popupVisible: visible});\n }}\n overlayClassName={\"date-range-picker-popup\"}\n title={this.renderPopup()}>\n {this.renderInput()}\n </Tooltip>\n );\n }\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"dateRangeInput.js","sourceRoot":"","sources":["../../../../components/date/dateRangeInput.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAuB,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACnD,OAAO,aAAa,MAAM,iBAAi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AC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,EACnD,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,EAC/B,iBAAiB,EAAE,EAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAC,EAC/E,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE;;oBACtB,IAAI,OAAO,EAAE,CAAC;wBACV,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,OAAO,kDAAI,CAAC;oBAC3B,CAAC;yBAAM,CAAC;wBACJ,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,MAAM,kDAAI,CAAC;oBAC1B,CAAC;oBACD,IAAI,CAAC,QAAQ,CAAC,EAAC,YAAY,EAAE,OAAO,EAAC,CAAC,CAAC;gBAC3C,CAAC,EACD,gBAAgB,EAAE,yBAAyB,EAC3C,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,IAC7B,IAAI,CAAC,WAAW,EAAE,CACb,CACb,CAAC;QACN,CAAC;IACL,CAAC;CACJ","sourcesContent":["import React, {HTMLAttributes} from \"react\";\r\nimport dayjs, { Dayjs } from \"dayjs\";\r\nimport {CalendarOutlined} from \"@ant-design/icons\";\r\nimport {Divider, Switch, Tag, Tooltip} from \"antd\";\r\nimport DateTimeInput from \"./dateTimeInput\";\r\nimport memoizeOne from \"memoize-one\";\r\nimport {TooltipPlacement} from \"antd/es/tooltip\";\r\nimport KeyboardUtils from \"../keyboard/keyboardUtils\";\r\nimport i18n from \"d2core/i18n/i18n\";\r\nimport DateRangeInputAdvancedPanel, {TimeShiftDirection} from \"./dateRangeInputAdvancedPanel\";\r\nimport {SizeType} from \"antd/lib/config-provider/SizeContext\";\r\n\r\nexport enum DateRangeInputMode {\r\n SIMPLE,\r\n ADVANCED,\r\n}\r\n\r\nexport interface DateRangeInputProps extends Omit<HTMLAttributes<HTMLDivElement>, \"onChange\"> {\r\n mask: string\r\n fromValue: Dayjs | null\r\n toValue: Dayjs | null\r\n onChange?: (fromValue: Dayjs | null, toValue: Dayjs | null) => void\r\n onInvalidValue?: (input: string) => void\r\n disabled?: boolean\r\n minDateTime?: Dayjs\r\n maxDateTime?: Dayjs\r\n // allows to set no (null) date by datepicker\r\n allowClear?: boolean\r\n ranges?: { [rangeName: string]: () => [Dayjs, Dayjs] }\r\n size?: SizeType;\r\n\r\n hidePopup?: boolean\r\n renderAsCalendar?: boolean\r\n placement?: TooltipPlacement\r\n align?: {\r\n points?: [string, string];\r\n offset?: [number, number];\r\n targetOffset?: [number, number];\r\n overflow?: {\r\n adjustX?: boolean;\r\n adjustY?: boolean;\r\n };\r\n useCssRight?: boolean;\r\n useCssBottom?: boolean;\r\n useCssTransform?: boolean;\r\n }\r\n\r\n defaultMode?: DateRangeInputMode\r\n\r\n onModeChange?(mode: DateRangeInputMode): void\r\n\r\n onFocus?(): void\r\n\r\n onBlur?(): void\r\n\r\n confirmButtonsRenderer?(): React.ReactNode\r\n\r\n onPopupVisibleChange?(visible: boolean): void\r\n}\r\n\r\ninterface DateRangeInputState {\r\n valid: boolean\r\n selectionStartDate: Dayjs | null\r\n popupKeyIndex: number\r\n popupVisible: boolean\r\n\r\n mode: DateRangeInputMode\r\n}\r\n\r\nexport default class DateRangeInput extends React.Component<DateRangeInputProps, DateRangeInputState> {\r\n constructor(props: Readonly<DateRangeInputProps>) {\r\n super(props);\r\n this.state = {\r\n valid: !!props.fromValue && props.fromValue.isValid() && !!props.toValue && props.toValue.isValid(),\r\n selectionStartDate: null,\r\n popupKeyIndex: 0,\r\n popupVisible: false,\r\n\r\n mode: props.defaultMode ?? DateRangeInputMode.SIMPLE,\r\n };\r\n this.getDefaultSelectedDateForFromPanel = memoizeOne(this.getDefaultSelectedDateForFromPanel.bind(this));\r\n }\r\n\r\n componentDidUpdate(_prevProps: Readonly<DateRangeInputProps>, prevState: Readonly<DateRangeInputState>) {\r\n if (prevState.popupVisible !== this.state.popupVisible && this.props.onPopupVisibleChange) {\r\n this.props.onPopupVisibleChange(this.state.popupVisible);\r\n }\r\n }\r\n\r\n getDefaultSelectedDateForFromPanel(fromDate: Dayjs | null, toDate: Dayjs | null): Dayjs {\r\n if (!!fromDate && !!toDate && fromDate.isSame(toDate, \"date\")) {\r\n return fromDate.clone().subtract(1, \"month\");\r\n } else {\r\n return fromDate ?? dayjs().startOf(\"day\").subtract(1, \"month\");\r\n }\r\n }\r\n\r\n private getFromValue(date: Dayjs) {\r\n return (this.props.fromValue?.clone() ?? dayjs().startOf(\"day\")).year(date.year()).month(date.month()).date(date.date());\r\n }\r\n\r\n private getToValue(date: Dayjs) {\r\n return (this.props.toValue?.clone() ?? dayjs().endOf(\"day\")).year(date.year()).month(date.month()).date(date.date());\r\n }\r\n\r\n closePopup() {\r\n // close tooltip\r\n this.setState({popupKeyIndex: this.state.popupKeyIndex + 1, popupVisible: false});\r\n this.props.onPopupVisibleChange?.(false);\r\n }\r\n\r\n private onChange(fromValue: Dayjs | null, toValue: Dayjs | null) {\r\n if (this.props.minDateTime && fromValue?.isBefore(this.props.minDateTime)) {\r\n fromValue = this.props.minDateTime;\r\n }\r\n if (this.props.maxDateTime && toValue?.isAfter(this.props.maxDateTime)) {\r\n toValue = this.props.maxDateTime;\r\n }\r\n this.props.onChange?.(fromValue, toValue);\r\n }\r\n\r\n private renderSimplePart() {\r\n const {\r\n fromValue,\r\n toValue,\r\n onChange,\r\n style,\r\n allowClear,\r\n renderAsCalendar,\r\n hidePopup,\r\n align,\r\n defaultMode,\r\n onModeChange,\r\n confirmButtonsRenderer,\r\n onPopupVisibleChange,\r\n ...props\r\n } = this.props;\r\n const markedDateInterval: [Dayjs, Dayjs] | undefined = this.props.fromValue && this.props.toValue ? [this.props.fromValue, this.props.toValue] : undefined;\r\n\r\n return (\r\n <div>\r\n <div style={{display: \"flex\"}}>\r\n <DateTimeInput value={fromValue} {...props}\r\n allowClear={allowClear}\r\n renderAsCalendar\r\n style={{width: \"100%\"}}\r\n onChange={(date) => {\r\n if (date) {\r\n const fromValue = this.getFromValue(date);\r\n const toValue = this.getToValue(date);\r\n this.props.onChange?.(fromValue, toValue);\r\n }\r\n }}\r\n defaultSelectedDate={this.getDefaultSelectedDateForFromPanel(fromValue, toValue)}\r\n markedDateInterval={markedDateInterval}\r\n onDateItemMouseDown={(date) => {\r\n this.setState({selectionStartDate: date});\r\n const dateFrom = this.getFromValue(date);\r\n const dateTo = this.getToValue(date);\r\n this.props.onChange?.(dateFrom, dateTo);\r\n }}\r\n onDateItemMouseOver={(date) => {\r\n if (KeyboardUtils.isMouseDown() && !!this.state.selectionStartDate) {\r\n let dateFrom: Dayjs;\r\n let dateTo: Dayjs;\r\n if (this.state.selectionStartDate.isBefore(date)) {\r\n dateFrom = this.state.selectionStartDate;\r\n dateTo = date;\r\n } else {\r\n dateFrom = date;\r\n dateTo = this.state.selectionStartDate;\r\n }\r\n dateFrom = this.getFromValue(dateFrom);\r\n dateTo = this.getToValue(dateTo);\r\n this.props.onChange?.(dateFrom, dateTo);\r\n }\r\n }}\r\n onDateItemMouseUp={(_date) => {\r\n this.setState({selectionStartDate: null});\r\n }}\r\n ignoreKeyStrokes\r\n />\r\n <Divider type=\"vertical\" style={{height: \"auto\"}}/>\r\n <DateTimeInput value={toValue} {...props}\r\n renderAsCalendar\r\n allowClear={allowClear}\r\n style={{width: \"100%\"}}\r\n onChange={(date) => {\r\n if (date) {\r\n const fromValue = this.getFromValue(date);\r\n const toValue = this.getToValue(date);\r\n this.props.onChange?.(fromValue, toValue);\r\n }\r\n }}\r\n markedDateInterval={markedDateInterval}\r\n onDateItemMouseDown={(date) => {\r\n this.setState({selectionStartDate: date});\r\n const dateFrom = this.getFromValue(date);\r\n const dateTo = this.getToValue(date);\r\n this.props.onChange?.(dateFrom, dateTo);\r\n }}\r\n onDateItemMouseOver={(date) => {\r\n if (KeyboardUtils.isMouseDown() && !!this.state.selectionStartDate) {\r\n let dateFrom: Dayjs;\r\n let dateTo: Dayjs;\r\n if (this.state.selectionStartDate.isBefore(date)) {\r\n dateFrom = this.state.selectionStartDate;\r\n dateTo = date;\r\n } else {\r\n dateFrom = date;\r\n dateTo = this.state.selectionStartDate;\r\n }\r\n dateFrom = this.getFromValue(dateFrom);\r\n dateTo = this.getToValue(dateTo);\r\n this.props.onChange?.(dateFrom, dateTo);\r\n }\r\n }}\r\n onDateItemMouseUp={(_date) => {\r\n this.setState({selectionStartDate: null});\r\n }}\r\n ignoreKeyStrokes\r\n />\r\n </div>\r\n <div style={{borderTop: \"1px solid #ddd\", paddingTop: 6}}>\r\n {\r\n this.props.ranges && Object.keys(this.props.ranges).map((rangeName, index) => {\r\n return (<Tag style={{userSelect: \"none\", cursor: \"pointer\"}} color=\"blue\"\r\n key={`range-${index}`}\r\n onClick={() => {\r\n const rangeFunction = this.props.ranges?.[rangeName];\r\n if (rangeFunction) {\r\n const range = rangeFunction();\r\n this.props.onChange?.(range[0], range[1]);\r\n }\r\n }}>\r\n {rangeName}</Tag>);\r\n })\r\n }\r\n </div>\r\n </div>\r\n )\r\n }\r\n\r\n private renderAdvancedPart() {\r\n const {\r\n fromValue,\r\n toValue,\r\n onChange,\r\n style,\r\n allowClear,\r\n renderAsCalendar,\r\n hidePopup,\r\n align,\r\n defaultMode,\r\n onModeChange,\r\n confirmButtonsRenderer,\r\n onPopupVisibleChange,\r\n ...props\r\n } = this.props;\r\n return (\r\n <div>\r\n <div style={{display: \"flex\"}}>\r\n <DateTimeInput\r\n {...props}\r\n style={{width: \"47%\"}}\r\n value={fromValue}\r\n onChange={(value) => {\r\n this.props.onChange?.(value, this.props.toValue);\r\n }}\r\n />\r\n <span style={{width: \"6%\", paddingTop: 4, color: \"rgba(0, 0, 0, 0.65)\", textAlign: \"center\"}}>\r\n {\"\\u27F7\"}\r\n </span>\r\n <DateTimeInput\r\n {...props}\r\n style={{width: \"47%\"}}\r\n value={toValue}\r\n onChange={(value) => {\r\n this.props.onChange?.(this.props.fromValue, value);\r\n }}\r\n />\r\n </div>\r\n <DateRangeInputAdvancedPanel\r\n onBeginIntervalChange={unit => {\r\n let from: Dayjs;\r\n if (unit === \"15minutes\") {\r\n const roundedMinutes = Math.floor(dayjs().minute() / 15) * 15;\r\n from = dayjs().startOf(\"hour\").minute(roundedMinutes);\r\n } else {\r\n from = dayjs().startOf(unit);\r\n }\r\n this.onChange(from, this.props.toValue);\r\n }}\r\n onIntervalDurationChange={unitOfTime => {\r\n if (this.props.fromValue) {\r\n let to: Dayjs;\r\n if (unitOfTime === \"4years\") {\r\n to = this.props.fromValue.clone().add(4, \"year\").subtract(1, \"millisecond\");\r\n } else {\r\n to = this.props.fromValue.clone().add(1, unitOfTime).subtract(1, \"millisecond\")\r\n }\r\n this.onChange(this.props.fromValue, to);\r\n }\r\n }}\r\n onTimeShift={(shiftBegin, shiftEnd, unitOfTime, type) => {\r\n let fromValue = this.props.fromValue ?? null;\r\n let toValue = this.props.toValue ?? null;\r\n\r\n if (shiftBegin && fromValue) {\r\n if (type === TimeShiftDirection.INCREMENT) {\r\n fromValue = fromValue.add(1, unitOfTime);\r\n } else if (type === TimeShiftDirection.DECREMENT) {\r\n fromValue = fromValue.subtract(1, unitOfTime);\r\n }\r\n }\r\n\r\n if (shiftEnd && toValue) {\r\n if (type === TimeShiftDirection.INCREMENT) {\r\n toValue = toValue.add(1, unitOfTime);\r\n } else if (type === TimeShiftDirection.DECREMENT) {\r\n toValue = toValue.subtract(1, unitOfTime);\r\n }\r\n }\r\n\r\n this.onChange(fromValue, toValue);\r\n }}\r\n onEndIntervalChange={unit => {\r\n let to: Dayjs;\r\n if (unit === \"15minutes\") {\r\n const roundedMinutes = Math.floor(dayjs().minute() / 15) * 15;\r\n to = dayjs().startOf(\"hour\").minute(roundedMinutes).subtract(1, \"millisecond\");\r\n } else {\r\n to = dayjs().startOf(unit).subtract(1, \"millisecond\");\r\n }\r\n this.onChange(this.props.fromValue, to);\r\n }}\r\n />\r\n </div>\r\n )\r\n }\r\n\r\n renderPopup(): React.ReactElement {\r\n return (\r\n <div onFocus={this.props.onFocus} onBlur={this.props.onBlur}>\r\n {this.state.mode === DateRangeInputMode.SIMPLE && this.renderSimplePart()}\r\n {this.state.mode === DateRangeInputMode.ADVANCED && this.renderAdvancedPart()}\r\n <div style={{display: \"flex\", justifyContent: \"space-between\", alignItems: \"flex-end\"}}>\r\n <Switch\r\n style={{float: \"right\", marginTop: 8}}\r\n checked={this.state.mode === DateRangeInputMode.ADVANCED}\r\n onChange={checked => {\r\n const mode = checked ? DateRangeInputMode.ADVANCED : DateRangeInputMode.SIMPLE;\r\n this.setState({mode: mode});\r\n this.props.onModeChange?.(mode);\r\n }}\r\n checkedChildren={i18n(\"Advanced Mode\")}\r\n unCheckedChildren={i18n(\"Simple Mode\")}\r\n />\r\n {this.props.confirmButtonsRenderer?.()}\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n renderInput() {\r\n const {\r\n fromValue,\r\n toValue,\r\n onChange,\r\n style,\r\n allowClear,\r\n renderAsCalendar,\r\n hidePopup,\r\n align,\r\n disabled,\r\n defaultMode,\r\n onModeChange,\r\n confirmButtonsRenderer,\r\n onPopupVisibleChange,\r\n ...props\r\n } = this.props;\r\n\r\n let className = \"ant-input ant-input-outlined\";\r\n if (disabled || this.state.popupVisible) {\r\n className += \" ant-input-disabled\";\r\n }\r\n\r\n return (\r\n <div style={{...style, padding: 0, position: \"relative\"}} className={className} onFocus={this.props.onFocus}\r\n onBlur={this.props.onBlur}>\r\n <div style={{display: \"flex\", paddingRight: 8}}>\r\n <DateTimeInput value={fromValue} {...props}\r\n disabled={disabled}\r\n inputDisabled={this.state.popupVisible}\r\n allowClear={allowClear}\r\n bordered={false}\r\n hidePopup={true}\r\n style={{width: \"auto\"}}\r\n inputStyle={{paddingRight: 2}}\r\n onChange={(value) => {\r\n this.props.onChange?.(value, this.props.toValue);\r\n }}\r\n />\r\n <span style={{alignSelf: \"center\"}}>{\"\\u27F7\"}</span>\r\n <DateTimeInput value={toValue} {...props}\r\n disabled={disabled}\r\n inputDisabled={this.state.popupVisible}\r\n allowClear={allowClear}\r\n bordered={false}\r\n hidePopup={true}\r\n style={{width: \"auto\"}}\r\n inputStyle={{paddingLeft: 2}}\r\n onChange={(value) => {\r\n this.props.onChange?.(this.props.fromValue, value);\r\n }}\r\n />\r\n {!hidePopup && !renderAsCalendar &&\r\n <CalendarOutlined\r\n style={{cursor: (disabled || this.state.popupVisible) ? \"not-allowed\" : \"pointer\"}}\r\n onClick={(event) => {\r\n if (!disabled && document.createEvent) {\r\n if (this.state.popupVisible) {\r\n this.closePopup();\r\n } else {\r\n var ev = document.createEvent('HTMLEvents');\r\n ev.initEvent('contextmenu', true, false);\r\n event.target.dispatchEvent(ev);\r\n this.props.onFocus?.();\r\n }\r\n }\r\n }}\r\n />\r\n }\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n render(): any {\r\n if (this.props.renderAsCalendar) {\r\n return this.renderPopup();\r\n } else if (this.props.hidePopup) {\r\n return this.renderInput();\r\n } else {\r\n return (\r\n <Tooltip color={\"white\"}\r\n key={\"date-range-popup-\" + this.state.popupKeyIndex}\r\n trigger={this.props.disabled ? [] : [\"contextMenu\"]}\r\n align={this.props.align}\r\n placement={this.props.placement}\r\n overlayInnerStyle={{maxHeight: \"100vh\", overflowY: \"auto\", overflowX: \"hidden\"}}\r\n onOpenChange={(visible) => {\r\n if (visible) {\r\n this.props.onFocus?.();\r\n } else {\r\n this.props.onBlur?.();\r\n }\r\n this.setState({popupVisible: visible});\r\n }}\r\n overlayClassName={\"date-range-picker-popup\"}\r\n title={this.renderPopup()}>\r\n {this.renderInput()}\r\n </Tooltip>\r\n );\r\n }\r\n }\r\n}"]}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { OpUnitType } from "dayjs";
|
|
3
|
+
import { DurationUnitType } from "d2core/dayjs/duration";
|
|
4
|
+
export declare enum TimeShiftDirection {
|
|
5
|
+
INCREMENT = 0,
|
|
6
|
+
DECREMENT = 1
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeInputAdvancedPanelProps {
|
|
9
|
+
onBeginIntervalChange(unit: OpUnitType | "15minutes"): void;
|
|
10
|
+
onIntervalDurationChange(unitOfTime: DurationUnitType | "4years"): void;
|
|
11
|
+
onTimeShift(shiftBegin: boolean, shiftEnd: boolean, unitOfTime: DurationUnitType, direction: TimeShiftDirection): void;
|
|
12
|
+
onEndIntervalChange(unit: OpUnitType | "15minutes"): void;
|
|
13
|
+
}
|
|
14
|
+
interface DateRangeInputAdvancedPanelState {
|
|
15
|
+
timeShiftBegin: boolean;
|
|
16
|
+
timeShiftBoth: boolean;
|
|
17
|
+
timeShiftEnd: boolean;
|
|
18
|
+
}
|
|
19
|
+
export default class DateRangeInputAdvancedPanel extends React.Component<DateRangeInputAdvancedPanelProps, DateRangeInputAdvancedPanelState> {
|
|
20
|
+
constructor(props: Readonly<DateRangeInputAdvancedPanelProps>);
|
|
21
|
+
private renderSectionTitle;
|
|
22
|
+
private renderButton;
|
|
23
|
+
private renderTimeShiftItem;
|
|
24
|
+
private renderTimeShiftIcon;
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -1,116 +1,131 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Button, Col, Divider, Row } from "antd";
|
|
3
|
-
import i18n from "d2core/i18n/i18n";
|
|
4
|
-
import Icon from "@ant-design/icons/es/components/Icon";
|
|
5
|
-
export var TimeShiftDirection;
|
|
6
|
-
(function (TimeShiftDirection) {
|
|
7
|
-
TimeShiftDirection[TimeShiftDirection["INCREMENT"] = 0] = "INCREMENT";
|
|
8
|
-
TimeShiftDirection[TimeShiftDirection["DECREMENT"] = 1] = "DECREMENT";
|
|
9
|
-
})(TimeShiftDirection || (TimeShiftDirection = {}));
|
|
10
|
-
export default class DateRangeInputAdvancedPanel extends React.Component {
|
|
11
|
-
constructor(props) {
|
|
12
|
-
super(props);
|
|
13
|
-
this.state = {
|
|
14
|
-
timeShiftBegin: false,
|
|
15
|
-
timeShiftBoth: true,
|
|
16
|
-
timeShiftEnd: false,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
renderSectionTitle(title, style) {
|
|
20
|
-
return (React.createElement("span", { style: Object.assign({ display: "block", fontWeight: "bold", textAlign: "center", marginBottom: 4 }, style) }, `${title}:`));
|
|
21
|
-
}
|
|
22
|
-
renderButton(title, callback) {
|
|
23
|
-
return (React.createElement(Button, {
|
|
24
|
-
}
|
|
25
|
-
renderTimeShiftItem(title, callback) {
|
|
26
|
-
const disabled = !this.state.timeShiftBegin && !this.state.timeShiftEnd && !this.state.timeShiftBoth;
|
|
27
|
-
return (React.createElement(
|
|
28
|
-
React.createElement(Button, {
|
|
29
|
-
React.createElement(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
this.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
React.createElement(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Button, Col, Divider, Row, Space } from "antd";
|
|
3
|
+
import i18n from "d2core/i18n/i18n";
|
|
4
|
+
import Icon from "@ant-design/icons/es/components/Icon";
|
|
5
|
+
export var TimeShiftDirection;
|
|
6
|
+
(function (TimeShiftDirection) {
|
|
7
|
+
TimeShiftDirection[TimeShiftDirection["INCREMENT"] = 0] = "INCREMENT";
|
|
8
|
+
TimeShiftDirection[TimeShiftDirection["DECREMENT"] = 1] = "DECREMENT";
|
|
9
|
+
})(TimeShiftDirection || (TimeShiftDirection = {}));
|
|
10
|
+
export default class DateRangeInputAdvancedPanel extends React.Component {
|
|
11
|
+
constructor(props) {
|
|
12
|
+
super(props);
|
|
13
|
+
this.state = {
|
|
14
|
+
timeShiftBegin: false,
|
|
15
|
+
timeShiftBoth: true,
|
|
16
|
+
timeShiftEnd: false,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
renderSectionTitle(title, style) {
|
|
20
|
+
return (React.createElement("span", { style: Object.assign({ display: "block", fontWeight: "bold", textAlign: "center", marginBottom: 4 }, style) }, `${title}:`));
|
|
21
|
+
}
|
|
22
|
+
renderButton(title, callback) {
|
|
23
|
+
return (React.createElement(Button, { size: "small", block: true, onClick: callback }, title));
|
|
24
|
+
}
|
|
25
|
+
renderTimeShiftItem(title, callback) {
|
|
26
|
+
const disabled = !this.state.timeShiftBegin && !this.state.timeShiftEnd && !this.state.timeShiftBoth;
|
|
27
|
+
return (React.createElement(Space.Compact, { block: true, size: "small" },
|
|
28
|
+
React.createElement(Button, { style: { width: "22%" }, disabled: disabled, icon: "-", onClick: () => callback(TimeShiftDirection.DECREMENT) }),
|
|
29
|
+
React.createElement("span", { style: {
|
|
30
|
+
width: "56%",
|
|
31
|
+
color: "rgba(0, 0, 0, 0.88)",
|
|
32
|
+
borderTop: "1px solid #d9d9d9",
|
|
33
|
+
borderBottom: "1px solid #d9d9d9",
|
|
34
|
+
textAlign: "center",
|
|
35
|
+
cursor: "default",
|
|
36
|
+
} }, title),
|
|
37
|
+
React.createElement(Button, { style: { width: "22%" }, disabled: disabled, icon: "+", onClick: () => callback(TimeShiftDirection.INCREMENT) })));
|
|
38
|
+
}
|
|
39
|
+
renderTimeShiftIcon(shiftType) {
|
|
40
|
+
let checked = false;
|
|
41
|
+
if (shiftType === "begin") {
|
|
42
|
+
checked = this.state.timeShiftBegin;
|
|
43
|
+
}
|
|
44
|
+
else if (shiftType === "both") {
|
|
45
|
+
checked = this.state.timeShiftBoth;
|
|
46
|
+
}
|
|
47
|
+
else if (shiftType === "end") {
|
|
48
|
+
checked = this.state.timeShiftEnd;
|
|
49
|
+
}
|
|
50
|
+
return (React.createElement(Icon, { component: () => React.createElement("svg", { className: "icon", viewBox: "64 64 896 896", version: "1.1", width: 40, height: 40, cursor: "pointer", color: checked ? "#2998ff" : "rgba(0, 0, 0, 0.65)", onClick: () => {
|
|
51
|
+
if (shiftType === "begin") {
|
|
52
|
+
this.setState({
|
|
53
|
+
timeShiftBegin: !this.state.timeShiftBegin,
|
|
54
|
+
timeShiftBoth: false,
|
|
55
|
+
timeShiftEnd: false
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
else if (shiftType === "both") {
|
|
59
|
+
this.setState({
|
|
60
|
+
timeShiftBegin: false,
|
|
61
|
+
timeShiftBoth: !this.state.timeShiftBoth,
|
|
62
|
+
timeShiftEnd: false
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
else if (shiftType === "end") {
|
|
66
|
+
this.setState({
|
|
67
|
+
timeShiftBegin: false,
|
|
68
|
+
timeShiftBoth: false,
|
|
69
|
+
timeShiftEnd: !this.state.timeShiftEnd
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
} },
|
|
73
|
+
React.createElement("path", { d: "m 880.43128,184.00001 h -168 v -64 c 0,-4.4 -3.6,-8 -8,-8 h -56 c -4.4,0 -8,3.6 -8,8 v 64 h -256 v -64 c 0,-4.4 -3.6,-8 -8,-8 h -56 c -4.4,0 -8,3.6 -8,8 v 64 h -168 c -17.7,0 -32,14.3 -32,32 v 664 c 0,17.7 14.3,32 32,32 h 736 c 17.7,0 32,-14.3 32,-32 v -664 c 0,-17.7 -14.3,-32 -32,-32 z m -40,656 h -656 v -380 h 656 z m -656,-448 v -136 h 128 v 48 c 0,4.4 3.6,8 8,8 h 56 c 4.4,0 8,-3.6 8,-8 v -48 h 256 v 48 c 0,4.4 3.6,8 8,8 h 56 c 4.4,0 8,-3.6 8,-8 v -48 h 128 v 136 z", id: "path2231", style: { fill: "currentcolor" } }),
|
|
74
|
+
["begin", "end"].includes(shiftType) &&
|
|
75
|
+
React.createElement("g", { id: "g41" },
|
|
76
|
+
React.createElement("g", { id: "path2822" }),
|
|
77
|
+
React.createElement("g", { id: "path2824" }),
|
|
78
|
+
React.createElement("g", { id: "path2826", transform: shiftType === "end" ? "rotate(180,512.9334,646.24561)" : "unset" },
|
|
79
|
+
React.createElement("path", { id: "path50", style: { fill: "currentcolor" }, d: "m 358.80859,510.14062 a 34.41795,34.41795 0 0 0 -23.58789,9.24219 L 226.40625,620.82422 a 34.41795,34.41795 0 0 0 -1.70508,48.64453 34.41795,34.41795 0 0 0 48.64453,1.70703 l 108.8125,-101.4414 a 34.41795,34.41795 0 0 0 1.70703,-48.64454 34.41795,34.41795 0 0 0 -25.05664,-10.94922 z M 249.87565,645.99998 358.68957,544.55871 M 249.7207,611.58203 a 34.41795,34.41795 0 0 0 -24.90625,10.82813 34.41795,34.41795 0 0 0 1.47071,48.65234 l 108.29492,101.93164 a 34.41795,34.41795 0 0 0 48.65234,-1.4707 34.41795,34.41795 0 0 0 -1.47265,-48.65235 L 273.46484,620.9375 a 34.41795,34.41795 0 0 0 -23.74414,-9.35547 z m 0.15495,34.41795 108.29422,101.93273 M 264.8125,610.01953 A 35.98045,35.98045 0 0 0 228.83203,646 35.98045,35.98045 0 0 0 264.8125,681.98047 H 550.48633 A 35.98045,35.98045 0 0 0 586.4668,646 35.98045,35.98045 0 0 0 550.48633,610.01953 Z m 285.67298,35.98045 h -285.6727" }))),
|
|
80
|
+
shiftType === "both" &&
|
|
81
|
+
React.createElement("g", { id: "g65", transform: "rotate(180,512.9334,646.0254)" },
|
|
82
|
+
React.createElement("path", { id: "path63", style: { fill: "currentcolor" }, d: "m 358.80859,510.14062 a 34.41795,34.41795 0 0 0 -23.58789,9.24219 L 226.40625,620.82422 a 34.41795,34.41795 0 0 0 -1.70508,48.64453 34.41795,34.41795 0 0 0 48.64453,1.70703 l 108.8125,-101.4414 a 34.41795,34.41795 0 0 0 1.70703,-48.64454 34.41795,34.41795 0 0 0 -25.05664,-10.94922 z M 249.87565,645.99998 358.68957,544.55871 M 249.7207,611.58203 a 34.41795,34.41795 0 0 0 -24.90625,10.82813 34.41795,34.41795 0 0 0 1.47071,48.65234 l 108.29492,101.93164 a 34.41795,34.41795 0 0 0 48.65234,-1.4707 34.41795,34.41795 0 0 0 -1.47265,-48.65235 L 273.46484,620.9375 a 34.41795,34.41795 0 0 0 -23.74414,-9.35547 z m 0.15495,34.41795 108.29422,101.93273 M 264.8125,610.01953 A 35.98045,35.98045 0 0 0 228.83203,646 35.98045,35.98045 0 0 0 264.8125,681.98047 H 550.48633 A 35.98045,35.98045 0 0 0 586.4668,646 35.98045,35.98045 0 0 0 550.48633,610.01953 Z m 285.67298,35.98045 h -285.6727 m 402.24543,135.9102 a -34.41795,-34.41795 0 0 0 23.58789,-9.24219 L 799.46055,671.22658 a -34.41795,-34.41795 0 0 0 1.70508,-48.64453 -34.41795,-34.41795 0 0 0 -48.64453,-1.70703 l -108.8125,101.4414 a -34.41795,-34.41795 0 0 0 -1.70703,48.64454 -34.41795,-34.41795 0 0 0 25.05664,10.94922 z M 775.99115,646.05082 667.17723,747.49209 M 776.1461,680.46877 a -34.41795,-34.41795 0 0 0 24.90625,-10.82813 -34.41795,-34.41795 0 0 0 -1.47071,-48.65234 L 691.28672,519.05666 a -34.41795,-34.41795 0 0 0 -48.65234,1.4707 -34.41795,-34.41795 0 0 0 1.47265,48.65235 L 752.40196,671.1133 a -34.41795,-34.41795 0 0 0 23.74414,9.35547 z M 775.99115,646.05082 667.69693,544.11809 M 761.0543,682.03127 A -35.98045,-35.98045 0 0 0 797.03477,646.0508 -35.98045,-35.98045 0 0 0 761.0543,610.07033 H 475.38047 A -35.98045,-35.98045 0 0 0 439.4,646.0508 -35.98045,-35.98045 0 0 0 475.38047,682.03127 Z M 475.38132,646.05082 h 285.6727" }))) }));
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
const timeShiftBegin = this.state.timeShiftBegin || this.state.timeShiftBoth;
|
|
86
|
+
const timeShiftEnd = this.state.timeShiftEnd || this.state.timeShiftBoth;
|
|
87
|
+
return (React.createElement("div", { style: { color: "rgba(0, 0, 0, 0.65)" } },
|
|
88
|
+
React.createElement(Divider, { style: { margin: "8px 0px 6px" } }),
|
|
89
|
+
React.createElement(Row, null,
|
|
90
|
+
React.createElement(Col, { span: 8, style: { padding: "0px 16px 0px" } },
|
|
91
|
+
React.createElement(Space, { direction: "vertical" },
|
|
92
|
+
this.renderSectionTitle(i18n("Interval Begin")),
|
|
93
|
+
this.renderButton(i18n("Now"), () => this.props.onBeginIntervalChange("15minutes")),
|
|
94
|
+
this.renderButton(i18n("Today"), () => this.props.onBeginIntervalChange("day")),
|
|
95
|
+
this.renderButton(i18n("This Week"), () => this.props.onBeginIntervalChange("week")),
|
|
96
|
+
this.renderButton(i18n("This Month"), () => this.props.onBeginIntervalChange("month")),
|
|
97
|
+
this.renderButton(i18n("This Year"), () => this.props.onBeginIntervalChange("year")))),
|
|
98
|
+
React.createElement(Col, { span: 1 },
|
|
99
|
+
React.createElement(Divider, { type: "vertical", style: { height: "100%" } })),
|
|
100
|
+
React.createElement(Col, { span: 7, style: { padding: "0px 14px 0px" } },
|
|
101
|
+
React.createElement(Space, { direction: "vertical" },
|
|
102
|
+
this.renderSectionTitle(i18n("Interval Duration")),
|
|
103
|
+
this.renderButton(i18n("Hour"), () => this.props.onIntervalDurationChange("hour")),
|
|
104
|
+
this.renderButton(i18n("Day"), () => this.props.onIntervalDurationChange("day")),
|
|
105
|
+
this.renderButton(i18n("Week"), () => this.props.onIntervalDurationChange("week")),
|
|
106
|
+
this.renderButton(i18n("Month"), () => this.props.onIntervalDurationChange("month")),
|
|
107
|
+
this.renderButton(i18n("Year"), () => this.props.onIntervalDurationChange("year")),
|
|
108
|
+
this.renderButton(`4 ${i18n("Years")}`, () => this.props.onIntervalDurationChange("4years")))),
|
|
109
|
+
React.createElement(Col, { span: 1 },
|
|
110
|
+
React.createElement(Divider, { type: "vertical", style: { height: "100%" } })),
|
|
111
|
+
React.createElement(Col, { span: 7, style: { padding: "0px 16px 0px" } },
|
|
112
|
+
React.createElement(Space, { direction: "vertical" },
|
|
113
|
+
this.renderSectionTitle(i18n("Time Shift")),
|
|
114
|
+
React.createElement("div", { style: { display: "flex", justifyContent: "center", alignItems: "center" } },
|
|
115
|
+
this.renderTimeShiftIcon("begin"),
|
|
116
|
+
this.renderTimeShiftIcon("both"),
|
|
117
|
+
this.renderTimeShiftIcon("end")),
|
|
118
|
+
this.renderTimeShiftItem(i18n("Hour"), (direction) => this.props.onTimeShift(timeShiftBegin, timeShiftEnd, "hour", direction)),
|
|
119
|
+
this.renderTimeShiftItem(i18n("Day"), (direction) => this.props.onTimeShift(timeShiftBegin, timeShiftEnd, "day", direction)),
|
|
120
|
+
this.renderTimeShiftItem(i18n("Week"), (direction) => this.props.onTimeShift(timeShiftBegin, timeShiftEnd, "week", direction)),
|
|
121
|
+
this.renderTimeShiftItem(i18n("Month"), (direction) => this.props.onTimeShift(timeShiftBegin, timeShiftEnd, "month", direction)),
|
|
122
|
+
this.renderTimeShiftItem(i18n("Year"), (direction) => this.props.onTimeShift(timeShiftBegin, timeShiftEnd, "year", direction))))),
|
|
123
|
+
React.createElement(Divider, { style: { margin: "6px 0px 10px" } }),
|
|
124
|
+
React.createElement("div", { style: { display: "flex" } },
|
|
125
|
+
React.createElement("div", { style: { width: 192 } }, this.renderSectionTitle(i18n("Interval End"), { marginBottom: 0 })),
|
|
126
|
+
React.createElement("div", { style: { marginLeft: 18, width: 93 } }, this.renderButton("15 min", () => this.props.onEndIntervalChange("15minutes"))),
|
|
127
|
+
React.createElement("div", { style: { marginLeft: 8, width: 93 } }, this.renderButton(i18n("Hour"), () => this.props.onEndIntervalChange("hour"))),
|
|
128
|
+
React.createElement("div", { style: { marginLeft: 8, width: 92 } }, this.renderButton(i18n("Day"), () => this.props.onEndIntervalChange("day"))))));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
116
131
|
//# sourceMappingURL=dateRangeInputAdvancedPanel.js.map
|