dtable-ui-component 6.0.113-mzn.2 → 6.0.113-mzn.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/DTableFiltersPopover/index.js +1 -2
- package/lib/DeleteTip/index.js +4 -6
- package/lib/DigitalSignEditor/pc-editor/index.js +0 -2
- package/lib/GeolocationEditor/pc-editor/location-editor.js +0 -2
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +0 -2
- package/lib/IconButton/index.js +3 -3
- package/lib/RowExpandDialog/index.js +0 -2
- package/lib/css/icon-button-styles.css +2 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/lib/css/button-styles.css +0 -152
|
@@ -193,11 +193,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
193
193
|
className: "filter-popover-footer",
|
|
194
194
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
195
195
|
disabled: readOnly,
|
|
196
|
-
className: "
|
|
196
|
+
className: "mr-2",
|
|
197
197
|
onClick: this.onClosePopover,
|
|
198
198
|
children: (0, _lang.getLocale)('Cancel')
|
|
199
199
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
200
|
-
className: "dtable-button",
|
|
201
200
|
disabled: this.state.isSubmitDisabled || readOnly,
|
|
202
201
|
color: "primary",
|
|
203
202
|
onClick: this.onSubmitFilters,
|
package/lib/DeleteTip/index.js
CHANGED
|
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _ClickOutside = _interopRequireDefault(require("../ClickOutside"));
|
|
10
10
|
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
11
11
|
var _lang = require("../lang");
|
|
12
|
-
var _reactstrap = require("reactstrap");
|
|
13
12
|
require("./index.css");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
14
|
class DeleteTip extends _react.default.Component {
|
|
@@ -43,13 +42,12 @@ class DeleteTip extends _react.default.Component {
|
|
|
43
42
|
children: deleteTip
|
|
44
43
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
45
44
|
className: "d-flex justify-content-end",
|
|
46
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
47
|
-
className: "
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
46
|
+
className: "btn btn-secondary mr-2",
|
|
48
47
|
onClick: toggle,
|
|
49
48
|
children: (0, _lang.getLocale)('Cancel')
|
|
50
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
51
|
-
className: "
|
|
52
|
-
color: "primary",
|
|
49
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
50
|
+
className: "btn btn-primary",
|
|
53
51
|
onClick: handleDelete,
|
|
54
52
|
children: (0, _lang.getLocale)('Delete')
|
|
55
53
|
})]
|
|
@@ -180,13 +180,11 @@ class PCDigitalSignEditor extends _react.Component {
|
|
|
180
180
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
181
181
|
onClick: this.props.onCommitCancel,
|
|
182
182
|
color: "secondary",
|
|
183
|
-
className: "dtable-button",
|
|
184
183
|
children: (0, _lang.getLocale)('Cancel')
|
|
185
184
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
186
185
|
onClick: this.saveSignature,
|
|
187
186
|
color: "primary",
|
|
188
187
|
disabled: saving,
|
|
189
|
-
className: "dtable-button",
|
|
190
188
|
children: (0, _lang.getLocale)(saving ? 'Saving' : 'Save')
|
|
191
189
|
})]
|
|
192
190
|
})]
|
|
@@ -340,12 +340,10 @@ class LocationEditor extends _react.Component {
|
|
|
340
340
|
children: this.state.errMessage
|
|
341
341
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DTableCustomFooter.default, {
|
|
342
342
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
343
|
-
className: "dtable-button",
|
|
344
343
|
onClick: this.props.onCancel,
|
|
345
344
|
color: "secondary",
|
|
346
345
|
children: (0, _lang.getLocale)('Cancel')
|
|
347
346
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
348
|
-
className: "dtable-button",
|
|
349
347
|
onClick: this.onSubmit,
|
|
350
348
|
color: "primary",
|
|
351
349
|
children: (0, _lang.getLocale)('Submit')
|
|
@@ -261,12 +261,10 @@ class ProvinceCityEditor extends _react.Component {
|
|
|
261
261
|
children: this.state.errMessage
|
|
262
262
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DTableCustomFooter.default, {
|
|
263
263
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
264
|
-
className: "dtable-button",
|
|
265
264
|
onClick: this.props.onCancel,
|
|
266
265
|
color: "secondary",
|
|
267
266
|
children: (0, _lang.getLocale)('Cancel')
|
|
268
267
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
269
|
-
className: "dtable-button",
|
|
270
268
|
onClick: this.onSubmit,
|
|
271
269
|
color: "primary",
|
|
272
270
|
autoFocus: true,
|
package/lib/IconButton/index.js
CHANGED
|
@@ -28,10 +28,10 @@ const IconButton = _ref => {
|
|
|
28
28
|
noBackground
|
|
29
29
|
} = _ref,
|
|
30
30
|
otherProperties = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
31
|
-
const
|
|
31
|
+
const buttonId = (0, _react.useMemo)(() => "dtable-icon-button-".concat((0, _dtableUtils.generatorBase64Code)(8)), []);
|
|
32
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
33
33
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
34
|
-
id:
|
|
34
|
+
id: buttonId,
|
|
35
35
|
className: (0, _classnames.default)('dtable-icon-btn', className, {
|
|
36
36
|
'disabled': disabled,
|
|
37
37
|
'outline': outline,
|
|
@@ -48,7 +48,7 @@ const IconButton = _ref => {
|
|
|
48
48
|
}), children]
|
|
49
49
|
})), title && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableToolTip.default, {
|
|
50
50
|
placement: tooltipPlacement || 'bottom',
|
|
51
|
-
target:
|
|
51
|
+
target: buttonId,
|
|
52
52
|
children: title
|
|
53
53
|
})]
|
|
54
54
|
});
|
|
@@ -223,12 +223,10 @@ const RowExpandDialog = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
223
223
|
children: children[1]
|
|
224
224
|
})), (!saveImmediately || isInsertingRow) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.ModalFooter, {
|
|
225
225
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
226
|
-
className: "dtable-button",
|
|
227
226
|
onClick: toggle,
|
|
228
227
|
color: "secondary",
|
|
229
228
|
children: (0, _lang.getLocale)('Cancel')
|
|
230
229
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
231
|
-
className: "dtable-button",
|
|
232
230
|
onClick: onSubmit,
|
|
233
231
|
disabled: isSaving || !isChangedRef.current,
|
|
234
232
|
color: "primary",
|
package/lib/index.js
CHANGED
|
@@ -667,6 +667,7 @@ var _FileItemFormatter = _interopRequireDefault(require("./FileItemFormatter"));
|
|
|
667
667
|
var _DigitalSignFormatter = _interopRequireDefault(require("./DigitalSignFormatter"));
|
|
668
668
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("./DepartmentSingleSelectFormatter"));
|
|
669
669
|
var _SimpleLongTextFormatter = _interopRequireDefault(require("./SimpleLongTextFormatter"));
|
|
670
|
+
var _DTableToolTip = _interopRequireDefault(require("./DTableToolTip"));
|
|
670
671
|
var _RowExpandFormatter = _interopRequireDefault(require("./RowExpandFormatter"));
|
|
671
672
|
var _RowExpandEditor = _interopRequireDefault(require("./RowExpandEditor"));
|
|
672
673
|
var _RowExpand = _interopRequireDefault(require("./RowExpand"));
|
|
@@ -697,7 +698,6 @@ var _index = _interopRequireDefault(require("./DTableGroupSelect/index"));
|
|
|
697
698
|
var _dtableSelectLabel = _interopRequireDefault(require("./DTableSelect/dtable-select-label"));
|
|
698
699
|
var _DTableSwitch = _interopRequireDefault(require("./DTableSwitch"));
|
|
699
700
|
var _DTableCustomizeSelect = _interopRequireDefault(require("./DTableCustomizeSelect"));
|
|
700
|
-
var _DTableToolTip = _interopRequireDefault(require("./DTableToolTip"));
|
|
701
701
|
var _DTableCustomizeCollaboratorSelect = _interopRequireDefault(require("./DTableCustomizeCollaboratorSelect"));
|
|
702
702
|
var _DTableSearchInput = _interopRequireDefault(require("./DTableSearchInput"));
|
|
703
703
|
var _DTableColorPicker = _interopRequireDefault(require("./DTableColorPicker"));
|
package/package.json
CHANGED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
.dtable-button {
|
|
2
|
-
display: inline-flex !important;
|
|
3
|
-
align-items: center !important;
|
|
4
|
-
justify-content: center !important;
|
|
5
|
-
gap: 6px !important;
|
|
6
|
-
padding: 0 12px !important;
|
|
7
|
-
min-height: 32px !important;
|
|
8
|
-
font-size: 14px !important;
|
|
9
|
-
font-weight: normal !important;
|
|
10
|
-
border-radius: 3px !important;
|
|
11
|
-
cursor: pointer !important;
|
|
12
|
-
transition: all 0.2s ease !important;
|
|
13
|
-
white-space: nowrap !important;
|
|
14
|
-
outline: none !important;
|
|
15
|
-
font-family: inherit !important;
|
|
16
|
-
border: 1px solid transparent !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.dtable-button:focus {
|
|
20
|
-
outline: none !important;
|
|
21
|
-
box-shadow: none !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.dtable-button:active:focus {
|
|
25
|
-
box-shadow: none !important;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.btn-sm.dtable-button,
|
|
29
|
-
.dtable-button.btn-sm {
|
|
30
|
-
min-height: 26px !important;
|
|
31
|
-
padding: 0 8px !important;
|
|
32
|
-
font-size: 12px !important;
|
|
33
|
-
gap: 4px !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.btn-lg.dtable-button,
|
|
37
|
-
.dtable-button.btn-lg {
|
|
38
|
-
min-height: 38px !important;
|
|
39
|
-
padding: 0 16px !important;
|
|
40
|
-
font-size: 14px !important;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.dtable-button.btn-warning,
|
|
44
|
-
.btn-warning.dtable-button {
|
|
45
|
-
background-color: #FF8000 !important;
|
|
46
|
-
color: #FFFFFF !important;
|
|
47
|
-
border-color: #FF8000 !important;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dtable-button.btn-warning:hover:not(:disabled),
|
|
51
|
-
.btn-warning.dtable-button:hover:not(:disabled) {
|
|
52
|
-
background-color: #ED7109 !important;
|
|
53
|
-
border-color: #ED7109 !important;
|
|
54
|
-
color: #FFFFFF !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.dtable-button.btn-warning:active:not(:disabled),
|
|
58
|
-
.btn-warning.dtable-button:active:not(:disabled) {
|
|
59
|
-
background-color: #E16B09 !important;
|
|
60
|
-
border-color: #E16B09 !important;
|
|
61
|
-
color: #FFFFFF !important;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* light color - 映射到 DTable 默认样式 */
|
|
65
|
-
.dtable-button.btn-light,
|
|
66
|
-
.btn-light.dtable-button {
|
|
67
|
-
background-color: #FFFFFF !important;
|
|
68
|
-
color: #ED7109 !important;
|
|
69
|
-
border-color: #ED7109 !important;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.dtable-button.btn-light:hover:not(:disabled),
|
|
73
|
-
.btn-light.dtable-button:hover:not(:disabled) {
|
|
74
|
-
background-color: #ED7109 !important;
|
|
75
|
-
color: #FFFFFF !important;
|
|
76
|
-
border-color: #ED7109 !important;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.dtable-button.btn-light:active:not(:disabled),
|
|
80
|
-
.btn-light.dtable-button:active:not(:disabled) {
|
|
81
|
-
background-color: #E16B09 !important;
|
|
82
|
-
color: #FFFFFF !important;
|
|
83
|
-
border-color: #E16B09 !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.dtable-button.btn-secondary,
|
|
87
|
-
.btn-secondary.dtable-button {
|
|
88
|
-
background-color: #FFFFFF !important;
|
|
89
|
-
color: #212529 !important;
|
|
90
|
-
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.dtable-button.btn-secondary:hover:not(:disabled),
|
|
94
|
-
.btn-secondary.dtable-button:hover:not(:disabled) {
|
|
95
|
-
background-color: rgba(0, 0, 0, 0.04) !important;
|
|
96
|
-
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
97
|
-
color: #212529 !important;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.dtable-button.btn-secondary:active:not(:disabled),
|
|
101
|
-
.btn-secondary.dtable-button:active:not(:disabled) {
|
|
102
|
-
background-color: #E9E9E9 !important;
|
|
103
|
-
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
104
|
-
color: #212529 !important;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.dtable-button.btn-primary,
|
|
108
|
-
.btn-primary.dtable-button {
|
|
109
|
-
background-color: #FF8000 !important;
|
|
110
|
-
color: #FFFFFF !important;
|
|
111
|
-
border-color: #FF8000 !important;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.dtable-button.btn-primary:hover:not(:disabled),
|
|
115
|
-
.btn-primary.dtable-button:hover:not(:disabled) {
|
|
116
|
-
background-color: #ED7109 !important;
|
|
117
|
-
border-color: #ED7109 !important;
|
|
118
|
-
color: #FFFFFF !important;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.dtable-button.btn-primary:active:not(:disabled),
|
|
122
|
-
.btn-primary.dtable-button:active:not(:disabled) {
|
|
123
|
-
background-color: #E16B09 !important;
|
|
124
|
-
border-color: #E16B09 !important;
|
|
125
|
-
color: #FFFFFF !important;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.dtable-button:disabled,
|
|
129
|
-
.dtable-button.disabled {
|
|
130
|
-
opacity: 0.65 !important;
|
|
131
|
-
cursor: not-allowed !important;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.dtable-button.block {
|
|
135
|
-
display: flex !important;
|
|
136
|
-
width: 100% !important;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.dtable-button i,
|
|
140
|
-
.dtable-button svg,
|
|
141
|
-
.dtable-button .icon {
|
|
142
|
-
display: inline-block;
|
|
143
|
-
font-size: 14px;
|
|
144
|
-
line-height: 1;
|
|
145
|
-
margin: 0;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.btn-sm.dtable-button i,
|
|
149
|
-
.btn-sm.dtable-button svg,
|
|
150
|
-
.btn-sm.dtable-button .icon {
|
|
151
|
-
font-size: 12px;
|
|
152
|
-
}
|