@zohodesk/dot 1.0.0-temp-201 → 1.0.0-temp-187.5
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/.cli/propValidation_report.html +1 -1
- package/README.md +1 -1
- package/es/form/fields/RadioField/__tests__/RadioField.spec.js +33 -0
- package/es/form/fields/RadioField/__tests__/__snapshots__/RadioField.spec.js.snap +537 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
- package/es/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +4 -2
- package/es/v1/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/es/v1/list/DepartmentDropDown/DepartmentDropDown.js +7 -2
- package/es/v1/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/es/v1/list/DepartmentDropDown/props/propTypes.js +3 -0
- package/lib/form/fields/RadioField/__tests__/RadioField.spec.js +33 -0
- package/lib/form/fields/RadioField/__tests__/__snapshots__/RadioField.spec.js.snap +537 -1
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/lib/list/status/StatusListItem/StatusListItem.module.css +35 -5
- package/lib/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +5 -3
- package/lib/v1/form/fields/TagsMultiSelect/props/propTypes.js +2 -1
- package/lib/v1/list/DepartmentDropDown/DepartmentDropDown.js +8 -3
- package/lib/v1/list/DepartmentDropDown/props/defaultProps.js +2 -1
- package/lib/v1/list/DepartmentDropDown/props/propTypes.js +2 -0
- package/package.json +3 -3
- package/result.json +1 -1
- package/unittest/index.html +1 -1
|
@@ -6,43 +6,58 @@
|
|
|
6
6
|
min-height: var(--zd_size35) ;
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
}
|
|
9
|
+
|
|
9
10
|
[dir=ltr] .withBorder {
|
|
10
11
|
border-left: 1px solid var(--zdt_statuslistitem_default_border);
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
[dir=rtl] .withBorder {
|
|
13
15
|
border-right: 1px solid var(--zdt_statuslistitem_default_border);
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
[dir=ltr] .small {
|
|
16
19
|
padding: var(--zd_size7) var(--zd_size3) var(--zd_size7) var(--zd_size5) ;
|
|
17
20
|
}
|
|
21
|
+
|
|
18
22
|
[dir=rtl] .small {
|
|
19
23
|
padding: var(--zd_size7) var(--zd_size5) var(--zd_size7) var(--zd_size3) ;
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
.medium {
|
|
22
27
|
padding: var(--zd_size7) var(--zd_size20) ;
|
|
23
28
|
}
|
|
29
|
+
|
|
24
30
|
.large {
|
|
25
31
|
height: var(--zd_size48) ;
|
|
26
32
|
}
|
|
33
|
+
|
|
27
34
|
[dir=ltr] .large {
|
|
28
35
|
padding: var(--zd_size10) var(--zd_size3) var(--zd_size10) var(--zd_size25) ;
|
|
29
36
|
}
|
|
37
|
+
|
|
30
38
|
[dir=rtl] .large {
|
|
31
39
|
padding: var(--zd_size10) var(--zd_size25) var(--zd_size10) var(--zd_size3) ;
|
|
32
40
|
}
|
|
33
|
-
|
|
41
|
+
|
|
42
|
+
.value,
|
|
43
|
+
.multiLineValue {
|
|
34
44
|
line-height: 1.5385;
|
|
35
45
|
}
|
|
46
|
+
|
|
36
47
|
.value {
|
|
37
48
|
composes: dotted from '~@zohodesk/components/lib/common/common.module.css';
|
|
38
49
|
}
|
|
39
|
-
|
|
50
|
+
|
|
51
|
+
.multiLineValue {
|
|
40
52
|
word-break: break-word;
|
|
53
|
+
-webkit-line-clamp: 3;
|
|
41
54
|
composes: clamp from '~@zohodesk/components/lib/common/common.module.css';
|
|
42
55
|
}
|
|
56
|
+
|
|
43
57
|
[dir=ltr] .withBorder.active {
|
|
44
58
|
border-left-color: var(--zdt_statuslistitem_default_active_border);
|
|
45
59
|
}
|
|
60
|
+
|
|
46
61
|
[dir=rtl] .withBorder.active {
|
|
47
62
|
border-right-color: var(--zdt_statuslistitem_default_active_border);
|
|
48
63
|
}
|
|
@@ -50,44 +65,56 @@
|
|
|
50
65
|
.default.hover, .default.effect:hover {
|
|
51
66
|
background-color: var(--zdt_statuslistitem_default_effect_bg);
|
|
52
67
|
}
|
|
68
|
+
|
|
53
69
|
.primary.hover, .primary.effect:hover, .selected {
|
|
54
70
|
background-color: var(--zdt_statuslistitem_primary_efffect_bg);
|
|
55
71
|
}
|
|
72
|
+
|
|
56
73
|
.secondary.hover, .secondary.effect:hover {
|
|
57
74
|
background-color: var(--zdt_statuslistitem_secondary_effect_bg);
|
|
58
75
|
}
|
|
76
|
+
|
|
59
77
|
.list.active.default, .list.active.primary {
|
|
60
78
|
background-color: var(--zdt_statuslistitem_primary_efffect_bg);
|
|
61
79
|
}
|
|
80
|
+
|
|
62
81
|
.list.active.secondary {
|
|
63
82
|
background-color: var(--zdt_statuslistitem_secondary_effect_bg);
|
|
64
83
|
}
|
|
84
|
+
|
|
65
85
|
.secondary.hover,
|
|
66
86
|
.secondary.effect:hover,
|
|
67
87
|
.list.active.secondary {
|
|
68
88
|
color: var(--zdt_statuslistitem_secondary_effect_text);
|
|
69
89
|
}
|
|
90
|
+
|
|
70
91
|
.tickIcon {
|
|
71
92
|
color: var(--zdt_statuslistitem_tickicon);
|
|
72
93
|
position: absolute;
|
|
73
|
-
top:50% ;
|
|
94
|
+
top: 50% ;
|
|
74
95
|
transform: translateY(-50%);
|
|
75
96
|
}
|
|
97
|
+
|
|
76
98
|
[dir=ltr] .tickIcon {
|
|
77
99
|
right: var(--zd_size20) ;
|
|
78
100
|
}
|
|
101
|
+
|
|
79
102
|
[dir=rtl] .tickIcon {
|
|
80
103
|
left: var(--zd_size20) ;
|
|
81
104
|
}
|
|
82
|
-
|
|
105
|
+
|
|
106
|
+
.tickIcon>i {
|
|
83
107
|
display: block;
|
|
84
108
|
}
|
|
109
|
+
|
|
85
110
|
[dir=ltr] .active.withTick {
|
|
86
111
|
padding-right: var(--zd_size39) ;
|
|
87
112
|
}
|
|
113
|
+
|
|
88
114
|
[dir=rtl] .active.withTick {
|
|
89
115
|
padding-left: var(--zd_size39) ;
|
|
90
116
|
}
|
|
117
|
+
|
|
91
118
|
/* Status Type */
|
|
92
119
|
.statusType {
|
|
93
120
|
width: var(--zd_size8) ;
|
|
@@ -100,12 +127,15 @@
|
|
|
100
127
|
[dir=rtl] .statusType {
|
|
101
128
|
margin-left: var(--zd_size13) ;
|
|
102
129
|
}
|
|
130
|
+
|
|
103
131
|
.black {
|
|
104
132
|
background-color: var(--zdt_statuslistitem_black_bg);
|
|
105
133
|
}
|
|
134
|
+
|
|
106
135
|
.orange {
|
|
107
136
|
background-color: var(--zdt_statuslistitem_orange_bg);
|
|
108
137
|
}
|
|
138
|
+
|
|
109
139
|
.green {
|
|
110
140
|
background-color: var(--zdt_statuslistitem_green_bg);
|
|
111
|
-
}
|
|
141
|
+
}
|
|
@@ -164,7 +164,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
164
164
|
const {
|
|
165
165
|
TextBoxIconProps = {},
|
|
166
166
|
TagWrapperProps = {},
|
|
167
|
-
TagProps = {}
|
|
167
|
+
TagProps = {},
|
|
168
|
+
listProps = {}
|
|
168
169
|
} = customProps;
|
|
169
170
|
return /*#__PURE__*/React.createElement("div", {
|
|
170
171
|
className: `${style.container} ${!isReadOnly ? ` ${needBorder ? style.hasBorder : ''}
|
|
@@ -298,7 +299,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
298
299
|
getRef: this.getSelectedItemRef,
|
|
299
300
|
isDisabled: listDisabled,
|
|
300
301
|
customProps: listItemProps,
|
|
301
|
-
customClass: listItemClass
|
|
302
|
+
customClass: listItemClass,
|
|
303
|
+
...listProps
|
|
302
304
|
}, isNew ? /*#__PURE__*/React.createElement(Container, {
|
|
303
305
|
alignBox: "row",
|
|
304
306
|
align: "vertical"
|
|
@@ -21,8 +21,12 @@ function DepartmentDropDown(props) {
|
|
|
21
21
|
searchStr,
|
|
22
22
|
i18nKeys,
|
|
23
23
|
onMoveDepartment,
|
|
24
|
-
getDepartment
|
|
24
|
+
getDepartment,
|
|
25
|
+
customProps
|
|
25
26
|
} = props;
|
|
27
|
+
const {
|
|
28
|
+
toggleDropDownProps = {}
|
|
29
|
+
} = customProps;
|
|
26
30
|
let {
|
|
27
31
|
title = 'Move Department',
|
|
28
32
|
searchEmptyText = 'No results found',
|
|
@@ -71,7 +75,8 @@ function DepartmentDropDown(props) {
|
|
|
71
75
|
getNextOptions: getNextOptions,
|
|
72
76
|
isNextOptions: isNextOptions,
|
|
73
77
|
onSearch: onSearch,
|
|
74
|
-
needSearchFetching: needSearchFetching
|
|
78
|
+
needSearchFetching: needSearchFetching,
|
|
79
|
+
...toggleDropDownProps
|
|
75
80
|
});
|
|
76
81
|
}
|
|
77
82
|
|
|
@@ -8,6 +8,22 @@ var _RadioField = _interopRequireDefault(require("../RadioField"));
|
|
|
8
8
|
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
|
|
11
|
+
var options = [{
|
|
12
|
+
text: 'Chennai',
|
|
13
|
+
value: '1'
|
|
14
|
+
}, {
|
|
15
|
+
text: 'Mumbai',
|
|
16
|
+
value: '2',
|
|
17
|
+
tooltip: 'Disabled Option',
|
|
18
|
+
disabled: true
|
|
19
|
+
}, {
|
|
20
|
+
text: 'Delhi',
|
|
21
|
+
value: '3',
|
|
22
|
+
infoTooltip: 'Capital of India'
|
|
23
|
+
}, {
|
|
24
|
+
text: 'Kolkata',
|
|
25
|
+
value: '4'
|
|
26
|
+
}];
|
|
11
27
|
describe('RadioField', function () {
|
|
12
28
|
test('rendering the defult props', function () {
|
|
13
29
|
var _render = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_RadioField["default"], {
|
|
@@ -17,4 +33,21 @@ describe('RadioField', function () {
|
|
|
17
33
|
|
|
18
34
|
expect(asFragment()).toMatchSnapshot();
|
|
19
35
|
});
|
|
36
|
+
test('rendering with options', function () {
|
|
37
|
+
var _render2 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_RadioField["default"], {
|
|
38
|
+
options: options
|
|
39
|
+
})),
|
|
40
|
+
asFragment = _render2.asFragment;
|
|
41
|
+
|
|
42
|
+
expect(asFragment()).toMatchSnapshot();
|
|
43
|
+
});
|
|
44
|
+
test('rendering options with isBoxStyle', function () {
|
|
45
|
+
var _render3 = (0, _react2.render)( /*#__PURE__*/_react["default"].createElement(_RadioField["default"], {
|
|
46
|
+
options: options,
|
|
47
|
+
isBoxStyle: true
|
|
48
|
+
})),
|
|
49
|
+
asFragment = _render3.asFragment;
|
|
50
|
+
|
|
51
|
+
expect(asFragment()).toMatchSnapshot();
|
|
52
|
+
});
|
|
20
53
|
});
|