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,19 +1,27 @@
|
|
|
1
|
-
.ant-design-draggable-modal-resize-handle-inner {
|
|
2
|
-
width: 12px;
|
|
3
|
-
right: 14px;
|
|
4
|
-
border: 2px solid grey;
|
|
5
|
-
height: 12px;
|
|
6
|
-
bottom: 14px;
|
|
7
|
-
position: absolute;
|
|
8
|
-
border-top: 0;
|
|
9
|
-
border-left: 0;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.ant-design-draggable-modal-resize-handle {
|
|
13
|
-
right: -10px;
|
|
14
|
-
width: 44px;
|
|
15
|
-
bottom: -10px;
|
|
16
|
-
cursor: se-resize;
|
|
17
|
-
height: 44px;
|
|
18
|
-
position: absolute;
|
|
19
|
-
}
|
|
1
|
+
.ant-design-draggable-modal-resize-handle-inner {
|
|
2
|
+
width: 12px;
|
|
3
|
+
right: 14px;
|
|
4
|
+
border: 2px solid grey;
|
|
5
|
+
height: 12px;
|
|
6
|
+
bottom: 14px;
|
|
7
|
+
position: absolute;
|
|
8
|
+
border-top: 0;
|
|
9
|
+
border-left: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ant-design-draggable-modal-resize-handle {
|
|
13
|
+
right: -10px;
|
|
14
|
+
width: 44px;
|
|
15
|
+
bottom: -10px;
|
|
16
|
+
cursor: se-resize;
|
|
17
|
+
height: 44px;
|
|
18
|
+
position: absolute;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ant-modal > div{
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ant-modal-content {
|
|
26
|
+
resize: both;
|
|
27
|
+
}
|
package/tsconfig.build.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "lib/esm",
|
|
5
|
-
"resolveJsonModule": true,
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"inlineSources": true,
|
|
9
|
-
"paths": {
|
|
10
|
-
"d2core": [
|
|
11
|
-
"../core"
|
|
12
|
-
]
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"include": [
|
|
16
|
-
"./**/*",
|
|
17
|
-
"./**/*.json",
|
|
18
|
-
"./**/*.ts*"
|
|
19
|
-
],
|
|
20
|
-
"exclude": [
|
|
21
|
-
"node_modules",
|
|
22
|
-
"lib"
|
|
23
|
-
]
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "lib/esm",
|
|
5
|
+
"resolveJsonModule": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"inlineSources": true,
|
|
9
|
+
"paths": {
|
|
10
|
+
"d2core": [
|
|
11
|
+
"../core"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"include": [
|
|
16
|
+
"./**/*",
|
|
17
|
+
"./**/*.json",
|
|
18
|
+
"./**/*.ts*"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"lib"
|
|
23
|
+
]
|
|
24
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.base.json",
|
|
3
|
-
"references": [
|
|
4
|
-
{
|
|
5
|
-
"path": "../core"
|
|
6
|
-
}
|
|
7
|
-
],
|
|
8
|
-
"compilerOptions": {
|
|
9
|
-
"composite": true
|
|
10
|
-
}
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.base.json",
|
|
3
|
+
"references": [
|
|
4
|
+
{
|
|
5
|
+
"path": "../core"
|
|
6
|
+
}
|
|
7
|
+
],
|
|
8
|
+
"compilerOptions": {
|
|
9
|
+
"composite": true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export class WildcardQuickFilter {
|
|
2
|
-
getWildcardFilterRegExp: import("memoize-one").MemoizedFn<(wildcardFilter: any) => RegExp | null>;
|
|
3
|
-
setQuickFilterParts(): void;
|
|
4
|
-
doesRowPassQuickFilter(node: any): boolean;
|
|
5
|
-
adaptFilterEngine(gridApi: any): void;
|
|
6
|
-
gridApi: any;
|
|
7
|
-
filterManager: any;
|
|
8
|
-
quickFilterPartsWildcardMatchers: any;
|
|
9
|
-
_getWildcardFilterRegExp(wildcardFilter: any): RegExp | null;
|
|
10
|
-
doesRowPassQuickFilterCache(node: any, filterPart: any, index: any): any;
|
|
11
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import memoize from "memoize-one";
|
|
2
|
-
export class WildcardQuickFilter {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.getWildcardFilterRegExp = memoize(this._getWildcardFilterRegExp).bind(this);
|
|
5
|
-
this.setQuickFilterParts = this.setQuickFilterParts.bind(this);
|
|
6
|
-
this.doesRowPassQuickFilter = this.doesRowPassQuickFilter.bind(this);
|
|
7
|
-
}
|
|
8
|
-
adaptFilterEngine(gridApi) {
|
|
9
|
-
this.gridApi = gridApi;
|
|
10
|
-
this.filterManager = gridApi.filterManager;
|
|
11
|
-
gridApi.filterManager.setQuickFilterParts = this.setQuickFilterParts;
|
|
12
|
-
gridApi.filterManager.doesRowPassQuickFilter = this.doesRowPassQuickFilter;
|
|
13
|
-
}
|
|
14
|
-
setQuickFilterParts() {
|
|
15
|
-
if (this.filterManager.quickFilter) {
|
|
16
|
-
this.filterManager.quickFilterParts = this.filterManager.quickFilter.split(' ');
|
|
17
|
-
this.quickFilterPartsWildcardMatchers = this.filterManager.quickFilterParts.map((quickFilterPart) => {
|
|
18
|
-
return this._getWildcardFilterRegExp(quickFilterPart);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
this.filterManager.quickFilterParts = null;
|
|
23
|
-
this.quickFilterPartsWildcardMatchers = null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
_getWildcardFilterRegExp(wildcardFilter) {
|
|
27
|
-
if (wildcardFilter.indexOf("*") >= 0 || wildcardFilter.indexOf("?") >= 0) {
|
|
28
|
-
const pattern = "^" + wildcardFilter.replace(/\./g, '\\.').replace(/\*/g, '[\\w\\.\\20]*').replace(/\?/g, '[\\w\\.\\20]') + "$";
|
|
29
|
-
return new RegExp(pattern, "m");
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
doesRowPassQuickFilter(node) {
|
|
36
|
-
let filterPasses = true;
|
|
37
|
-
const usingCache = this.gridApi.gridOptionsWrapper.isCacheQuickFilter();
|
|
38
|
-
if (this.filterManager.quickFilterParts) {
|
|
39
|
-
this.filterManager.quickFilterParts.forEach((filterPart, index) => {
|
|
40
|
-
const partPasses = usingCache ? this.doesRowPassQuickFilterCache(node, filterPart, index) : this.filterManager.doesRowPassQuickFilterNoCache(node, filterPart);
|
|
41
|
-
if (!partPasses) {
|
|
42
|
-
filterPasses = false;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
return filterPasses;
|
|
47
|
-
}
|
|
48
|
-
doesRowPassQuickFilterCache(node, filterPart, index) {
|
|
49
|
-
if (!node.quickFilterAggregateText) {
|
|
50
|
-
this.filterManager.aggregateRowForQuickFilter(node);
|
|
51
|
-
}
|
|
52
|
-
const quickFilterPartsWildcardMatcher = this.quickFilterPartsWildcardMatchers[index];
|
|
53
|
-
if (quickFilterPartsWildcardMatcher) {
|
|
54
|
-
return quickFilterPartsWildcardMatcher.test(node.quickFilterAggregateText);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return node.quickFilterAggregateText.indexOf(filterPart) >= 0;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=wildcardQuickFilter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wildcardQuickFilter.js","sourceRoot":"","sources":["../../../../../components/grid/cell/wildcardQuickFilter.js"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAElC,MAAM,OAAO,mBAAmB;IAC5B;QACI,IAAI,CAAC,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjF,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzE,CAAC;IAED,iBAAiB,CAAC,OAAO;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,GAAG,OAA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,kBAAkB,EAAE,CAAC;QACxE,IAAI,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE;YACrC,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,EAAE;gBAC9D,MAAM,UAAU,GAAG,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,2BAA2B,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,6BAA6B,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;gBAE/J,IAAI,CAAC,UAAU,EAAE;oBACb,YAAY,GAAG,KAAK,CAAC;iBACxB;YACL,CAAC,CAAC,CAAC;SACN;QACD,OAAO,YAAY,CAAC;IACxB,CAAC;IAGD,2BAA2B,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK;QAC/C,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAChC,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;SACvD;QACD,MAAM,+BAA+B,GAAG,IAAI,CAAC,gCAAgC,CAAC,KAAK,CAAC,CAAC;QACrF,IAAI,+BAA+B,EAAE;YACjC,OAAO,+BAA+B,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;SAC9E;aAAM;YACH,OAAO,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;SACjE;IACL,CAAC;CACJ","sourcesContent":["import memoize from \"memoize-one\";\n\nexport class WildcardQuickFilter {\n constructor() {\n this.getWildcardFilterRegExp = memoize(this._getWildcardFilterRegExp).bind(this);\n this.setQuickFilterParts = this.setQuickFilterParts.bind(this);\n this.doesRowPassQuickFilter = this.doesRowPassQuickFilter.bind(this);\n }\n\n adaptFilterEngine(gridApi) {\n this.gridApi = gridApi;\n this.filterManager = gridApi.filterManager;\n gridApi.filterManager.setQuickFilterParts = this.setQuickFilterParts;\n gridApi.filterManager.doesRowPassQuickFilter = this.doesRowPassQuickFilter;\n }\n\n setQuickFilterParts() {\n if (this.filterManager.quickFilter) {\n this.filterManager.quickFilterParts = this.filterManager.quickFilter.split(' ');\n this.quickFilterPartsWildcardMatchers = this.filterManager.quickFilterParts.map((quickFilterPart) => {\n return this._getWildcardFilterRegExp(quickFilterPart);\n });\n } else {\n this.filterManager.quickFilterParts = null;\n this.quickFilterPartsWildcardMatchers = null;\n }\n }\n\n _getWildcardFilterRegExp(wildcardFilter) {\n if (wildcardFilter.indexOf(\"*\") >= 0 || wildcardFilter.indexOf(\"?\") >= 0) {\n const pattern = \"^\" + wildcardFilter.replace(/\\./g, '\\\\.').replace(/\\*/g, '[\\\\w\\\\.\\\\20]*').replace(/\\?/g, '[\\\\w\\\\.\\\\20]') + \"$\";\n return new RegExp(pattern, \"m\");\n } else {\n return null;\n }\n }\n\n doesRowPassQuickFilter(node) {\n let filterPasses = true;\n const usingCache = this.gridApi.gridOptionsWrapper.isCacheQuickFilter();\n if (this.filterManager.quickFilterParts) {\n this.filterManager.quickFilterParts.forEach((filterPart, index) => {\n const partPasses = usingCache ? this.doesRowPassQuickFilterCache(node, filterPart, index) : this.filterManager.doesRowPassQuickFilterNoCache(node, filterPart);\n // each part must pass, if any fails, then the whole filter fails\n if (!partPasses) {\n filterPasses = false;\n }\n });\n }\n return filterPasses;\n }\n\n\n doesRowPassQuickFilterCache(node, filterPart, index) {\n if (!node.quickFilterAggregateText) {\n this.filterManager.aggregateRowForQuickFilter(node);\n }\n const quickFilterPartsWildcardMatcher = this.quickFilterPartsWildcardMatchers[index];\n if (quickFilterPartsWildcardMatcher) {\n return quickFilterPartsWildcardMatcher.test(node.quickFilterAggregateText);\n } else {\n return node.quickFilterAggregateText.indexOf(filterPart) >= 0;\n }\n }\n}"]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default class DataTable extends React.Component<any, any, any> {
|
|
2
|
-
constructor(props: any);
|
|
3
|
-
components: {
|
|
4
|
-
header: {
|
|
5
|
-
cell: (props: any) => JSX.Element;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
dragProps: {
|
|
9
|
-
onDragEnd: (fromIndex: any, toIndex: any) => void;
|
|
10
|
-
nodeSelector: string;
|
|
11
|
-
};
|
|
12
|
-
handleResize(index: any): (e: any, { size }: {
|
|
13
|
-
size: any;
|
|
14
|
-
}) => void;
|
|
15
|
-
render(): JSX.Element;
|
|
16
|
-
}
|
|
17
|
-
import React from "react";
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React from "react";
|
|
13
|
-
import { Table } from "antd";
|
|
14
|
-
import { Resizable } from 'react-resizable';
|
|
15
|
-
import ReactDragListView from 'react-drag-listview';
|
|
16
|
-
const ResizeableTitle = props => {
|
|
17
|
-
const { onResize, width, index, column, isLastColumn } = props, restProps = __rest(props, ["onResize", "width", "index", "column", "isLastColumn"]);
|
|
18
|
-
const tableHeaderCellRef = React.useRef(null);
|
|
19
|
-
let calculatedWidth = tableHeaderCellRef.current ? tableHeaderCellRef.current.getBoundingClientRect().width : (width ? width : 0);
|
|
20
|
-
return (React.createElement(Resizable, { width: calculatedWidth, height: 0, axis: "x", onResizeStop: (e, { size }) => {
|
|
21
|
-
const tableHeaderCell = tableHeaderCellRef.current;
|
|
22
|
-
if (tableHeaderCell) {
|
|
23
|
-
const newWidth = tableHeaderCell.getBoundingClientRect().width;
|
|
24
|
-
if (!size.width) {
|
|
25
|
-
size.width = newWidth;
|
|
26
|
-
}
|
|
27
|
-
if (size.width < 0) {
|
|
28
|
-
size.width = newWidth + size.width;
|
|
29
|
-
}
|
|
30
|
-
onResize(e, { size });
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
onResize(e, { size });
|
|
34
|
-
}
|
|
35
|
-
}, draggableOpts: { enableUserSelectHack: false }, onResizeStart: (e, data) => {
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
} },
|
|
38
|
-
React.createElement("th", Object.assign({}, restProps, { ref: tableHeaderCellRef, style: { overflowX: "hidden" } }))));
|
|
39
|
-
};
|
|
40
|
-
export default class DataTable extends React.Component {
|
|
41
|
-
constructor(props) {
|
|
42
|
-
super(props);
|
|
43
|
-
this.components = {
|
|
44
|
-
header: {
|
|
45
|
-
cell: ResizeableTitle,
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
this.dragProps = {
|
|
49
|
-
onDragEnd: (fromIndex, toIndex) => {
|
|
50
|
-
const columns = this.props.columns;
|
|
51
|
-
const item = columns.splice(fromIndex, 1)[0];
|
|
52
|
-
columns.splice(toIndex, 0, item);
|
|
53
|
-
this.props.onColumnsChanged(columns);
|
|
54
|
-
},
|
|
55
|
-
nodeSelector: "th"
|
|
56
|
-
};
|
|
57
|
-
this.handleResize = this.handleResize.bind(this);
|
|
58
|
-
}
|
|
59
|
-
handleResize(index) {
|
|
60
|
-
return (e, { size }) => {
|
|
61
|
-
const nextColumns = [...this.props.columns];
|
|
62
|
-
nextColumns[index] = Object.assign(Object.assign({}, nextColumns[index]), { width: size.width });
|
|
63
|
-
this.props.onColumnsChanged(nextColumns);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
const _a = this.props, { columns } = _a, rest = __rest(_a, ["columns"]);
|
|
68
|
-
const resizableColumns = columns.map((col, index) => (Object.assign(Object.assign({}, col), { onHeaderCell: column => ({
|
|
69
|
-
width: index === (columns.length - 1) ? undefined : col.width,
|
|
70
|
-
index: index,
|
|
71
|
-
onResize: this.handleResize(index),
|
|
72
|
-
column: col,
|
|
73
|
-
isLastColumn: index === (columns.length - 1),
|
|
74
|
-
}), width: index === (columns.length - 1) ? undefined : col.width })));
|
|
75
|
-
return (React.createElement(ReactDragListView.DragColumn, Object.assign({}, this.dragProps),
|
|
76
|
-
React.createElement(Table, Object.assign({}, rest, { scroll: { x: "100%" }, columns: resizableColumns, components: this.components, className: "datatable-xsm" }))));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=dataTable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataTable.js","sourceRoot":"","sources":["../../../../components/table/dataTable.js"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAC3B,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,iBAAiB,MAAM,qBAAqB,CAAA;AAEnD,MAAM,eAAe,GAAG,KAAK,CAAC,EAAE;IAC5B,MAAM,EAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,KAAkB,KAAK,EAAlB,SAAS,UAAI,KAAK,EAApE,wDAA4D,CAAQ,CAAC;IAC3E,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAK9C,IAAI,eAAe,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAElI,OAAO,CACH,oBAAC,SAAS,IACN,KAAK,EAAE,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,CAAC,YAAY,CAAC,KAAK,CAAC;gBAClC,MAAM,EAAE,GAAG;gBACX,YAAY,EAAE,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;aAC/C,CAAC,EACF,KAAK,EAAE,KAAK,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,IAC/D,CAAC,CAAC;QAEJ,OAAO,CACH,oBAAC,iBAAiB,CAAC,UAAU,oBAAK,IAAI,CAAC,SAAS;YAC5C,oBAAC,KAAK,oBAAK,IAAI,IACR,MAAM,EAAE,EAAC,CAAC,EAAE,MAAM,EAAC,EACnB,OAAO,EAAE,gBAAgB,EACzB,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,SAAS,EAAC,eAAe,IAC9B,CACyB,CAClC,CAAC;IACN,CAAC;CACJ","sourcesContent":["import React from \"react\";\nimport {Table} from \"antd\";\nimport {Resizable} from 'react-resizable';\nimport ReactDragListView from 'react-drag-listview'\n\nconst ResizeableTitle = props => {\n const {onResize, width, index, column, isLastColumn, ...restProps} = props;\n const tableHeaderCellRef = React.useRef(null);\n // if (!width || props.isLastColumn) {\n // if (isLastColumn) {\n // return <th {...restProps} />;\n // }\n let calculatedWidth = tableHeaderCellRef.current ? tableHeaderCellRef.current.getBoundingClientRect().width : (width ? width : 0);\n\n return (\n <Resizable\n width={calculatedWidth}\n height={0}\n axis=\"x\"\n onResizeStop={(e, {size}) => {\n const tableHeaderCell = tableHeaderCellRef.current;\n if (tableHeaderCell) {\n const newWidth = tableHeaderCell.getBoundingClientRect().width;\n if (!size.width) {\n size.width = newWidth;\n }\n if (size.width < 0) {\n size.width = newWidth + size.width;\n }\n onResize(e, {size});\n } else {\n onResize(e, {size});\n }\n }}\n draggableOpts={{enableUserSelectHack: false}}\n onResizeStart={(e, data) => {\n e.preventDefault();\n }}\n >\n <th {...restProps} ref={tableHeaderCellRef} style={{overflowX: \"hidden\"}}/>\n </Resizable>\n );\n};\n\n\nexport default class DataTable extends React.Component {\n constructor(props) {\n super(props);\n this.components = {\n header: {\n cell: ResizeableTitle,\n },\n };\n\n this.dragProps = {\n onDragEnd: (fromIndex, toIndex) => {\n const columns = this.props.columns;\n const item = columns.splice(fromIndex, 1)[0];\n columns.splice(toIndex, 0, item);\n this.props.onColumnsChanged(columns);\n },\n nodeSelector: \"th\"\n };\n this.handleResize = this.handleResize.bind(this);\n }\n\n handleResize(index) {\n return (e, {size}) => {\n const nextColumns = [...this.props.columns];\n nextColumns[index] = {\n ...nextColumns[index],\n width: size.width,\n };\n this.props.onColumnsChanged(nextColumns);\n };\n }\n\n\n render() {\n const {columns, ...rest} = this.props;\n const resizableColumns = columns.map((col, index) => ({\n ...col,\n onHeaderCell: column => ({\n width: index === (columns.length - 1) ? undefined : col.width,\n index: index,\n onResize: this.handleResize(index),\n column: col,\n isLastColumn: index === (columns.length - 1),\n }),\n width: index === (columns.length - 1) ? undefined : col.width,\n }));\n\n return (\n <ReactDragListView.DragColumn {...this.dragProps}>\n <Table {...rest}\n scroll={{x: \"100%\"}}\n columns={resizableColumns}\n components={this.components}\n className=\"datatable-xsm\"\n />\n </ReactDragListView.DragColumn>\n );\n }\n}"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.ant-tree.ant-tree-show-line.hide-file-icon div span.ant-tree-switcher-noop {
|
|
2
|
-
background: transparent;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.ant-tree.ant-tree-show-line.hide-file-icon div .ant-tree-switcher-noop > span:after {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
width: 8px;
|
|
8
|
-
height: 28px;
|
|
9
|
-
content: " ";
|
|
10
|
-
position: relative;
|
|
11
|
-
left: 3px;
|
|
12
|
-
top: 0px;
|
|
13
|
-
background-image: linear-gradient(to bottom, #d9d9d9 1px, transparent 1px),
|
|
14
|
-
linear-gradient(to right, #d9d9d9 1px, transparent 1px);
|
|
15
|
-
background-size: 8px 28px, 8px 28px;
|
|
16
|
-
background-position: 0 12px, 0 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.ant-tree.ant-tree-show-line.hide-file-icon div .ant-tree-switcher-noop > span > svg {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.hide-file-icon .ant-tree-node-content-wrapper {
|
|
24
|
-
white-space: nowrap;
|
|
25
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
// source: https://github.com/mydraft-cc/ui/blob/3677cd30afdd4e0b39119fbebee2ddaea5468ef0/src/style/_common.scss
|
|
2
|
-
|
|
3
|
-
@mixin flex {
|
|
4
|
-
display: -webkit-box;
|
|
5
|
-
display: -webkit-flex;
|
|
6
|
-
display: -moz-flex;
|
|
7
|
-
display: -ms-flexbox;
|
|
8
|
-
display: flex;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
// Sidebars
|
|
13
|
-
//
|
|
14
|
-
.sidebar-left {
|
|
15
|
-
overflow-x: auto;
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@mixin flex-flow($values: (row nowrap)) {
|
|
20
|
-
-webkit-flex-flow: $values;
|
|
21
|
-
-moz-flex-flow: $values;
|
|
22
|
-
-ms-flex-flow: $values;
|
|
23
|
-
flex-flow: $values;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@mixin flex-grow($value: 0) {
|
|
27
|
-
-webkit-box-flex: $value;
|
|
28
|
-
-webkit-flex-grow: $value;
|
|
29
|
-
-moz-flex-grow: $value;
|
|
30
|
-
-ms-flex-positive: $value;
|
|
31
|
-
flex-grow: $value;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@mixin flex-shrink($value: 1) {
|
|
35
|
-
-webkit-flex-shrink: $value;
|
|
36
|
-
-moz-flex-shrink: $value;
|
|
37
|
-
flex-shrink: $value;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin flex-shrink-important($value: 0) {
|
|
41
|
-
-webkit-flex-shrink: $value !important;
|
|
42
|
-
-moz-flex-shrink: $value !important;
|
|
43
|
-
flex-shrink: $value !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.full-height-tabs {
|
|
47
|
-
& {
|
|
48
|
-
@include flex;
|
|
49
|
-
@include flex-flow(column);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ant-layout-sider-children,
|
|
53
|
-
.ant-tabs,
|
|
54
|
-
.ant-tabs-content,
|
|
55
|
-
.ant-tabs-tabpane,
|
|
56
|
-
.ant-tabs-tabpane-active,
|
|
57
|
-
.tab-panel {
|
|
58
|
-
@include flex;
|
|
59
|
-
@include flex-flow(column);
|
|
60
|
-
@include flex-grow(1);
|
|
61
|
-
min-height: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
.Draftail-Icon {
|
|
2
|
-
fill: currentColor;
|
|
3
|
-
pointer-events: none;
|
|
4
|
-
vertical-align: middle;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.Draftail-Editor {
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
/*background-color: #f5f5f5;*/
|
|
10
|
-
/*border-top: 1px solid #ccc;*/
|
|
11
|
-
/*border-radius: 5px;*/
|
|
12
|
-
}
|
|
13
|
-
.Draftail-Editor--hide-placeholder .public-DraftEditorPlaceholder-root {
|
|
14
|
-
display: none;
|
|
15
|
-
}
|
|
16
|
-
.Draftail-Editor--readonly {
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
.Draftail-Editor--readonly .DraftEditor-editorContainer {
|
|
20
|
-
opacity: 0.5;
|
|
21
|
-
}
|
|
22
|
-
.Draftail-Editor--readonly .DraftEditor-editorContainer::before {
|
|
23
|
-
content: "";
|
|
24
|
-
display: block;
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
height: 100%;
|
|
29
|
-
width: 100%;
|
|
30
|
-
z-index: 3;
|
|
31
|
-
}
|
|
32
|
-
.Draftail-Editor .DraftEditor-root {
|
|
33
|
-
color: rgba(0, 0, 0, 0.85);
|
|
34
|
-
font-size: 14px;
|
|
35
|
-
line-height: 1.5;
|
|
36
|
-
/*font-family: sans-serif;*/
|
|
37
|
-
-webkit-font-variant-ligatures: none;
|
|
38
|
-
font-variant-ligatures: none;
|
|
39
|
-
overflow: auto;
|
|
40
|
-
}
|
|
41
|
-
.Draftail-Editor .public-DraftEditor-content,
|
|
42
|
-
.Draftail-Editor .public-DraftEditorPlaceholder-root {
|
|
43
|
-
line-height: 14px;
|
|
44
|
-
padding: 1px 4px;
|
|
45
|
-
}
|
|
46
|
-
.Draftail-Editor .public-DraftEditor-content > * > figure {
|
|
47
|
-
margin: 0;
|
|
48
|
-
}
|
|
49
|
-
.Draftail-Editor .public-DraftEditorPlaceholder-inner {
|
|
50
|
-
color: #525760;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.Draftail-block--unstyled,
|
|
54
|
-
.Draftail-Editor .public-DraftEditorPlaceholder-inner {
|
|
55
|
-
margin: 0.5rem 0;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.Draftail-Toolbar {
|
|
59
|
-
position: relative;
|
|
60
|
-
/*padding: 0.25rem;*/
|
|
61
|
-
line-height: 1;
|
|
62
|
-
border-radius: 0;
|
|
63
|
-
border-bottom: 1px solid #ddd;
|
|
64
|
-
}
|
|
65
|
-
.Draftail-Editor--focus .Draftail-Toolbar {
|
|
66
|
-
position: -webkit-sticky;
|
|
67
|
-
position: sticky;
|
|
68
|
-
top: 0;
|
|
69
|
-
z-index: 4;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.Draftail-ToolbarGroup {
|
|
73
|
-
display: inline-block;
|
|
74
|
-
}
|
|
75
|
-
.Draftail-ToolbarGroup + .Draftail-ToolbarGroup::before {
|
|
76
|
-
content: "";
|
|
77
|
-
display: inline-block;
|
|
78
|
-
width: 1px;
|
|
79
|
-
height: 1rem;
|
|
80
|
-
vertical-align: middle;
|
|
81
|
-
margin: 0 0.125rem;
|
|
82
|
-
background-color: #c4c4c4;
|
|
83
|
-
}
|
|
84
|
-
.Draftail-Editor--readonly .Draftail-ToolbarGroup {
|
|
85
|
-
opacity: 0.5;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.Draftail-ToolbarButton {
|
|
89
|
-
-webkit-font-smoothing: antialiased;
|
|
90
|
-
-moz-osx-font-smoothing: grayscale;
|
|
91
|
-
display: inline-block;
|
|
92
|
-
padding: 0.4rem;
|
|
93
|
-
border-radius: 0;
|
|
94
|
-
background: transparent;
|
|
95
|
-
color: inherit;
|
|
96
|
-
border: 1px solid transparent;
|
|
97
|
-
font-size: 1rem;
|
|
98
|
-
font-weight: 600;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
-webkit-user-select: none;
|
|
101
|
-
-moz-user-select: none;
|
|
102
|
-
-ms-user-select: none;
|
|
103
|
-
user-select: none;
|
|
104
|
-
}
|
|
105
|
-
.Draftail-ToolbarButton--active {
|
|
106
|
-
background-color: rgba(0, 0, 0, 0.1);
|
|
107
|
-
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
108
|
-
}
|
|
109
|
-
.Draftail-ToolbarButton__label {
|
|
110
|
-
display: inline-block;
|
|
111
|
-
vertical-align: middle;
|
|
112
|
-
height: 1em;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
button[data-draftail-balloon] {
|
|
116
|
-
overflow: visible;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
[data-draftail-balloon] {
|
|
120
|
-
position: relative;
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
}
|
|
123
|
-
[data-draftail-balloon]::before, [data-draftail-balloon]::after {
|
|
124
|
-
position: absolute;
|
|
125
|
-
z-index: 5;
|
|
126
|
-
opacity: 0;
|
|
127
|
-
pointer-events: none;
|
|
128
|
-
}
|
|
129
|
-
[data-draftail-balloon]::before {
|
|
130
|
-
content: "";
|
|
131
|
-
}
|
|
132
|
-
[data-draftail-balloon]::after {
|
|
133
|
-
-webkit-font-smoothing: antialiased;
|
|
134
|
-
-moz-osx-font-smoothing: grayscale;
|
|
135
|
-
background: rgba(17, 17, 17, 0.9);
|
|
136
|
-
border-radius: 4px;
|
|
137
|
-
color: #fff;
|
|
138
|
-
content: attr(aria-label);
|
|
139
|
-
padding: 0.5em 1em;
|
|
140
|
-
white-space: pre;
|
|
141
|
-
font-size: 0.875em;
|
|
142
|
-
}
|
|
143
|
-
[data-draftail-balloon]:hover::before, [data-draftail-balloon]:hover::after {
|
|
144
|
-
opacity: 1;
|
|
145
|
-
transition: all 0.1s ease-out 1s;
|
|
146
|
-
}
|
|
147
|
-
[data-draftail-balloon]::after {
|
|
148
|
-
left: 50%;
|
|
149
|
-
margin-top: 7px;
|
|
150
|
-
top: 100%;
|
|
151
|
-
-webkit-transform: translate(-50%, -10px);
|
|
152
|
-
transform: translate(-50%, -10px);
|
|
153
|
-
}
|
|
154
|
-
[data-draftail-balloon]::before {
|
|
155
|
-
background: no-repeat url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http://www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba(17, 17, 17, 0.9)%22%20transform%3D%22rotate(180 18 6)%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E");
|
|
156
|
-
background-size: 100% auto;
|
|
157
|
-
width: 18px;
|
|
158
|
-
height: 6px;
|
|
159
|
-
left: 50%;
|
|
160
|
-
margin-top: 1px;
|
|
161
|
-
top: 100%;
|
|
162
|
-
-webkit-transform: translate(-50%, -10px);
|
|
163
|
-
transform: translate(-50%, -10px);
|
|
164
|
-
}
|
|
165
|
-
[data-draftail-balloon]:hover::after {
|
|
166
|
-
-webkit-transform: translate(-50%, 0);
|
|
167
|
-
transform: translate(-50%, 0);
|
|
168
|
-
}
|
|
169
|
-
[data-draftail-balloon]:hover::before {
|
|
170
|
-
-webkit-transform: translate(-50%, 0);
|
|
171
|
-
transform: translate(-50%, 0);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.Draftail-DividerBlock {
|
|
175
|
-
border: 0;
|
|
176
|
-
background: #ddd;
|
|
177
|
-
height: 1px;
|
|
178
|
-
margin: 10px 0;
|
|
179
|
-
}
|