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,57 +1,23 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Input } from 'antd';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
;
|
|
25
|
-
onSearch() {
|
|
26
|
-
const currentValue = this.state.currentValue;
|
|
27
|
-
this.props.parentFilterInstance((instance) => {
|
|
28
|
-
instance.onFloatingFilterChanged('contains', currentValue);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
setModel(model) {
|
|
32
|
-
this.setState({
|
|
33
|
-
currentValue: !model ? "" : model.filter
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
getModel() {
|
|
37
|
-
return {
|
|
38
|
-
filter: this.state.currentValue
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
isFilterActive() {
|
|
42
|
-
return !!this.state.currentValue;
|
|
43
|
-
}
|
|
44
|
-
onParentModelChanged(parentModel) {
|
|
45
|
-
this.setState({
|
|
46
|
-
currentValue: !parentModel ? "" : parentModel.filter
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
return (React.createElement(Input, { size: "small", style: { marginTop: "3px" }, value: this.state.currentValue, allowClear: true, onChange: this.onValueChanged, onKeyDown: (e) => {
|
|
51
|
-
if (e.keyCode === 3 || e.keyCode === 13) {
|
|
52
|
-
this.onSearch();
|
|
53
|
-
}
|
|
54
|
-
} }));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Input } from 'antd';
|
|
3
|
+
import { Key } from "ts-key-enum";
|
|
4
|
+
import DataGridColumnFilter from "./dataGridColumnFilter";
|
|
5
|
+
export default class DateColumnFilter extends DataGridColumnFilter {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.onValueChanged = this.onValueChanged.bind(this);
|
|
9
|
+
}
|
|
10
|
+
onValueChanged(event) {
|
|
11
|
+
const newValue = event.target.value;
|
|
12
|
+
this.changeValue(newValue);
|
|
13
|
+
}
|
|
14
|
+
;
|
|
15
|
+
render() {
|
|
16
|
+
return (React.createElement(Input, { size: "small", style: { marginTop: "3px" }, value: this.state.currentValue, allowClear: true, onChange: this.onValueChanged, onKeyDown: (e) => {
|
|
17
|
+
if (e.key === Key.Enter) {
|
|
18
|
+
this.onSearch();
|
|
19
|
+
}
|
|
20
|
+
} }));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
57
23
|
//# sourceMappingURL=dateColumnFilter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateColumnFilter.js","sourceRoot":"","sources":["../../../../../components/grid/filter/dateColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"dateColumnFilter.js","sourceRoot":"","sources":["../../../../../components/grid/filter/dateColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAA;AAC1B,OAAO,EAAC,GAAG,EAAC,MAAM,aAAa,CAAC;AAChC,OAAO,oBAA4E,MAAM,wBAAwB,CAAC;AAElH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,oBAA0E;IACpH,YAAY,KAAoB;QAC5B,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,cAAc,CAAC,KAAiB;QAC5B,MAAM,QAAQ,GAAI,KAAK,CAAC,MAA2B,CAAC,KAAK,CAAC;QAC1D,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAAA,CAAC;IAGF,MAAM;QACF,OAAO,CACH,oBAAC,KAAK,IACF,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAC,SAAS,EAAE,KAAK,EAAC,EACzB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EAC9B,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;gBACb,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,EAAE,CAAC;oBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACpB,CAAC;YACL,CAAC,GACH,CACL,CAAA;IACL,CAAC;CACJ","sourcesContent":["import React, {ChangeEvent} from \"react\";\r\nimport {Input} from 'antd'\r\nimport {Key} from \"ts-key-enum\";\r\nimport DataGridColumnFilter, {DataGridColumnFilterProps, DataGridColumnFilterState} from \"./dataGridColumnFilter\";\r\n\r\nexport default class DateColumnFilter extends DataGridColumnFilter<DataGridColumnFilterProps, DataGridColumnFilterState> {\r\n constructor(props: Readonly<any>) {\r\n super(props);\r\n this.onValueChanged = this.onValueChanged.bind(this);\r\n }\r\n\r\n onValueChanged(event:ChangeEvent) {\r\n const newValue = (event.target as HTMLInputElement).value;\r\n this.changeValue(newValue);\r\n };\r\n\r\n\r\n render() {\r\n return (\r\n <Input\r\n size=\"small\"\r\n style={{marginTop: \"3px\"}}\r\n value={this.state.currentValue}\r\n allowClear={true}\r\n onChange={this.onValueChanged}\r\n onKeyDown={(e) => {\r\n if (e.key === Key.Enter) {\r\n this.onSearch();\r\n }\r\n }}\r\n />\r\n )\r\n }\r\n}"]}
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { ChangeEvent
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
constructor(props: Readonly<any>);
|
|
12
|
-
componentDidMount(): void;
|
|
13
|
-
onValueChanged(event: ChangeEvent): void;
|
|
14
|
-
onSearch(): void;
|
|
15
|
-
setModel(model: any): void;
|
|
16
|
-
getModel(): any;
|
|
17
|
-
isFilterActive(): boolean;
|
|
18
|
-
onParentModelChanged(parentModel: any): void;
|
|
19
|
-
render(): JSX.Element;
|
|
20
|
-
}
|
|
1
|
+
import React, { ChangeEvent } from "react";
|
|
2
|
+
import { CustomFloatingFilterProps } from "ag-grid-react";
|
|
3
|
+
import DataGridColumnFilter, { DataGridColumnFilterProps, DataGridColumnFilterState } from "./dataGridColumnFilter";
|
|
4
|
+
export default class TextColumnFilter extends DataGridColumnFilter<DataGridColumnFilterProps, DataGridColumnFilterState> {
|
|
5
|
+
constructor(props: Readonly<CustomFloatingFilterProps>);
|
|
6
|
+
onValueChanged(event: ChangeEvent): void;
|
|
7
|
+
render(): React.JSX.Element;
|
|
8
|
+
}
|
|
@@ -1,77 +1,25 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Input } from 'antd';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
this.setState({ currentValue: instance.eValue1.value });
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
onValueChanged(event) {
|
|
29
|
-
this.setState({
|
|
30
|
-
currentValue: event.target.value
|
|
31
|
-
}, () => {
|
|
32
|
-
const currentValue = this.state.currentValue;
|
|
33
|
-
this.props.parentFilterInstance((instance) => {
|
|
34
|
-
instance.setValueFromFloatingFilter(currentValue);
|
|
35
|
-
instance.setTypeFromFloatingFilter('contains');
|
|
36
|
-
instance.onUiChanged(false);
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
;
|
|
41
|
-
onSearch() {
|
|
42
|
-
const currentValue = this.state.currentValue;
|
|
43
|
-
this.props.parentFilterInstance((instance) => {
|
|
44
|
-
instance.onFloatingFilterChanged('contains', currentValue);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
setModel(model) {
|
|
48
|
-
this.setState({
|
|
49
|
-
currentValue: !model ? "" : model.filter
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
getModel() {
|
|
53
|
-
return {
|
|
54
|
-
filter: this.state.currentValue
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
isFilterActive() {
|
|
58
|
-
return !!this.state.currentValue;
|
|
59
|
-
}
|
|
60
|
-
onParentModelChanged(parentModel) {
|
|
61
|
-
this.setState({
|
|
62
|
-
currentValue: !parentModel ? "" : parentModel.filter
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
render() {
|
|
66
|
-
return (React.createElement(Input, { size: "small", style: { marginTop: "3px" }, value: this.state.currentValue, allowClear: true, onChange: this.onValueChanged, onKeyDown: (e) => {
|
|
67
|
-
if (e.keyCode === 3 || e.keyCode === 13) {
|
|
68
|
-
this.onSearch();
|
|
69
|
-
const context = this.props.api.gridOptionsWrapper.getContext();
|
|
70
|
-
if (!!context) {
|
|
71
|
-
context === null || context === void 0 ? void 0 : context.onFilterConfirmed();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
} }));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Input } from 'antd';
|
|
3
|
+
import { Key } from "ts-key-enum";
|
|
4
|
+
import DataGridColumnFilter from "./dataGridColumnFilter";
|
|
5
|
+
export default class TextColumnFilter extends DataGridColumnFilter {
|
|
6
|
+
constructor(props) {
|
|
7
|
+
super(props);
|
|
8
|
+
this.onValueChanged = this.onValueChanged.bind(this);
|
|
9
|
+
}
|
|
10
|
+
onValueChanged(event) {
|
|
11
|
+
const newValue = event.target.value;
|
|
12
|
+
this.changeValue(newValue);
|
|
13
|
+
}
|
|
14
|
+
;
|
|
15
|
+
render() {
|
|
16
|
+
return (React.createElement(Input, { size: "small", style: { marginTop: "3px" }, value: this.state.currentValue, allowClear: true, onChange: this.onValueChanged, onKeyDown: (e) => {
|
|
17
|
+
var _a;
|
|
18
|
+
if (e.key === Key.Enter) {
|
|
19
|
+
this.setValue(this.state.currentValue, true);
|
|
20
|
+
(_a = this.props.context) === null || _a === void 0 ? void 0 : _a.onFilterConfirmed();
|
|
21
|
+
}
|
|
22
|
+
} }));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
77
25
|
//# sourceMappingURL=textColumnFilter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textColumnFilter.js","sourceRoot":"","sources":["../../../../../components/grid/filter/textColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"textColumnFilter.js","sourceRoot":"","sources":["../../../../../components/grid/filter/textColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAA;AAC1B,OAAO,EAAC,GAAG,EAAC,MAAM,aAAa,CAAC;AAEhC,OAAO,oBAA4E,MAAM,wBAAwB,CAAC;AAGlH,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,oBAA0E;IAEpH,YAAY,KAA0C;QAClD,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,cAAc,CAAC,KAAkB;QAC7B,MAAM,QAAQ,GAAI,KAAK,CAAC,MAA2B,CAAC,KAAK,CAAC;QAC1D,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAAA,CAAC;IAEF,MAAM;QACF,OAAO,CACH,oBAAC,KAAK,IACF,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,EAAC,SAAS,EAAE,KAAK,EAAC,EACzB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,EAC9B,UAAU,EAAE,IAAI,EAChB,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;;gBACb,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,EAAE,CAAC;oBACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;oBAC7C,MAAA,IAAI,CAAC,KAAK,CAAC,OAAO,0CAAE,iBAAiB,EAAE,CAAC;gBAC5C,CAAC;YACL,CAAC,GACH,CACL,CAAA;IACL,CAAC;CACJ","sourcesContent":["import React, {ChangeEvent} from \"react\";\r\nimport {Input} from 'antd'\r\nimport {Key} from \"ts-key-enum\";\r\nimport {CustomFloatingFilterProps} from \"ag-grid-react\";\r\nimport DataGridColumnFilter, {DataGridColumnFilterProps, DataGridColumnFilterState} from \"./dataGridColumnFilter\";\r\n\r\n\r\nexport default class TextColumnFilter extends DataGridColumnFilter<DataGridColumnFilterProps, DataGridColumnFilterState> {\r\n\r\n constructor(props: Readonly<CustomFloatingFilterProps>) {\r\n super(props);\r\n this.onValueChanged = this.onValueChanged.bind(this);\r\n }\r\n\r\n onValueChanged(event: ChangeEvent) {\r\n const newValue = (event.target as HTMLInputElement).value;\r\n this.changeValue(newValue);\r\n };\r\n\r\n render() {\r\n return (\r\n <Input\r\n size=\"small\"\r\n style={{marginTop: \"3px\"}}\r\n value={this.state.currentValue}\r\n allowClear={true}\r\n onChange={this.onValueChanged}\r\n onKeyDown={(e) => {\r\n if (e.key === Key.Enter) {\r\n this.setValue(this.state.currentValue, true);\r\n this.props.context?.onFilterConfirmed();\r\n }\r\n }}\r\n />\r\n )\r\n }\r\n}"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default class WildcardQuickFilterEngine {
|
|
2
|
+
constructor();
|
|
3
|
+
quickFilterParser(quickFilter: string): string[];
|
|
4
|
+
quickFilterMatcher(quickFilterStringParts: string[], rowQuickFilterAggregateText: string): boolean;
|
|
5
|
+
getWildcardFilterRegExp(wildcardFilter: string): RegExp | string;
|
|
6
|
+
match(wildcardFilter: RegExp | string, content: string): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import memoize from "memoize-one";
|
|
2
|
+
export default class WildcardQuickFilterEngine {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.getWildcardFilterRegExp = memoize(this.getWildcardFilterRegExp).bind(this);
|
|
5
|
+
this.quickFilterParser = this.quickFilterParser.bind(this);
|
|
6
|
+
this.quickFilterMatcher = this.quickFilterMatcher.bind(this);
|
|
7
|
+
this.match = this.match.bind(this);
|
|
8
|
+
}
|
|
9
|
+
quickFilterParser(quickFilter) {
|
|
10
|
+
const quickFilterParts = quickFilter.split(' ');
|
|
11
|
+
const quickFilterPartsWildcardMatchers = quickFilterParts.map((quickFilterPart) => {
|
|
12
|
+
return this.getWildcardFilterRegExp(quickFilterPart);
|
|
13
|
+
});
|
|
14
|
+
return quickFilterPartsWildcardMatchers;
|
|
15
|
+
}
|
|
16
|
+
quickFilterMatcher(quickFilterStringParts, rowQuickFilterAggregateText) {
|
|
17
|
+
const quickFilterParts = quickFilterStringParts;
|
|
18
|
+
for (const quickFilterPart of quickFilterParts) {
|
|
19
|
+
if (typeof quickFilterPart === 'string') {
|
|
20
|
+
if (rowQuickFilterAggregateText.indexOf(quickFilterPart) < 0) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
else if (!quickFilterPart.test(rowQuickFilterAggregateText)) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
getWildcardFilterRegExp(wildcardFilter) {
|
|
31
|
+
if (wildcardFilter.indexOf("*") >= 0 || wildcardFilter.indexOf("?") >= 0) {
|
|
32
|
+
const pattern = "^" + wildcardFilter.replace(/\./g, '\\.').replace(/\*/g, '[\\w\\. \\t]*').replace(/\?/g, '[\\w\\. \\t]') + "$";
|
|
33
|
+
return new RegExp(pattern, "m");
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return wildcardFilter;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
match(wildcardFilter, content) {
|
|
40
|
+
if (typeof wildcardFilter === "string") {
|
|
41
|
+
return content.indexOf(wildcardFilter) >= 0;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return wildcardFilter.test(content);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=wildcardQuickFilterEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wildcardQuickFilterEngine.js","sourceRoot":"","sources":["../../../../../components/grid/filter/wildcardQuickFilterEngine.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,MAAM,CAAC,OAAO,OAAO,yBAAyB;IAE1C;QACI,IAAI,CAAC,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChF,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED,iBAAiB,CAAC,WAAmB;QACjC,MAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAChD,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,EAAE;YAC9E,OAAO,IAAI,CAAC,uBAAuB,CAAC,eAAe,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;QACH,OAAO,gCAAmD,CAAC;IAC/D,CAAC;IAED,kBAAkB,CAAC,sBAAgC,EAAE,2BAAmC;QACpF,MAAM,gBAAgB,GAAG,sBAAoD,CAAC;QAC9E,KAAK,MAAM,eAAe,IAAI,gBAAgB,EAAE,CAAC;YAC7C,IAAI,OAAO,eAAe,KAAK,QAAQ,EAAE,CAAC;gBACtC,IAAI,2BAA2B,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC3D,OAAO,KAAK,CAAC;gBACjB,CAAC;YACL,CAAC;iBAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,2BAA2B,CAAC,EAAE,CAAC;gBAC5D,OAAO,KAAK,CAAC;YACjB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,uBAAuB,CAAC,cAAsB;QAC1C,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACvE,MAAM,OAAO,GAAG,GAAG,GAAG,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,GAAG,CAAC;YAChI,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACpC,CAAC;aAAM,CAAC;YACJ,OAAO,cAAc,CAAC;QAC1B,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAA+B,EAAE,OAAe;QAClD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;YACrC,OAAO,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC;aAAM,CAAC;YACJ,OAAO,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;CACJ","sourcesContent":["import memoize from \"memoize-one\";\r\n\r\nexport default class WildcardQuickFilterEngine {\r\n\r\n constructor() {\r\n this.getWildcardFilterRegExp = memoize(this.getWildcardFilterRegExp).bind(this);\r\n this.quickFilterParser = this.quickFilterParser.bind(this);\r\n this.quickFilterMatcher = this.quickFilterMatcher.bind(this);\r\n this.match = this.match.bind(this);\r\n }\r\n\r\n quickFilterParser(quickFilter: string): string[] {\r\n const quickFilterParts = quickFilter.split(' ');\r\n const quickFilterPartsWildcardMatchers = quickFilterParts.map((quickFilterPart) => {\r\n return this.getWildcardFilterRegExp(quickFilterPart);\r\n });\r\n return quickFilterPartsWildcardMatchers as any as string[];\r\n }\r\n\r\n quickFilterMatcher(quickFilterStringParts: string[], rowQuickFilterAggregateText: string): boolean {\r\n const quickFilterParts = quickFilterStringParts as any as (string | RegExp)[];\r\n for (const quickFilterPart of quickFilterParts) {\r\n if (typeof quickFilterPart === 'string') {\r\n if (rowQuickFilterAggregateText.indexOf(quickFilterPart) < 0) {\r\n return false;\r\n }\r\n } else if (!quickFilterPart.test(rowQuickFilterAggregateText)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n\r\n getWildcardFilterRegExp(wildcardFilter: string): RegExp | string {\r\n if (wildcardFilter.indexOf(\"*\") >= 0 || wildcardFilter.indexOf(\"?\") >= 0) {\r\n const pattern = \"^\" + wildcardFilter.replace(/\\./g, '\\\\.').replace(/\\*/g, '[\\\\w\\\\. \\\\t]*').replace(/\\?/g, '[\\\\w\\\\. \\\\t]') + \"$\";\r\n return new RegExp(pattern, \"m\");\r\n } else {\r\n return wildcardFilter;\r\n }\r\n }\r\n\r\n match(wildcardFilter: RegExp | string, content: string): boolean {\r\n if (typeof wildcardFilter === \"string\") {\r\n return content.indexOf(wildcardFilter) >= 0;\r\n } else {\r\n return wildcardFilter.test(content);\r\n }\r\n }\r\n}"]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuProps } from "antd";
|
|
3
|
+
export default class SimpleHeader extends React.Component<any, any> {
|
|
4
|
+
lastMovingChanged: number;
|
|
5
|
+
unmounted: boolean;
|
|
6
|
+
constructor(props: Readonly<any>);
|
|
7
|
+
componentDidMount(): void;
|
|
8
|
+
componentWillUnmount(): void;
|
|
9
|
+
onHeaderClick(event: React.MouseEvent<HTMLDivElement>): void;
|
|
10
|
+
onMovingChanged(): void;
|
|
11
|
+
onFilterChanged(): void;
|
|
12
|
+
onSortChanged(): void;
|
|
13
|
+
onMultiSortChanged(): void;
|
|
14
|
+
onMenuSelect(clickParam: any): void;
|
|
15
|
+
getColumnMenu(): MenuProps;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
|
+
}
|