@zohodesk/components 1.0.0-temp-134 → 1.0.0-temp-136
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/README.md +6 -0
- package/es/DateTime/DateTimePopupHeader.js +1 -1
- package/es/DateTime/DateWidget.js +1 -1
- package/es/DateTime/YearView.js +1 -1
- package/es/DateTime/index.js +1 -1
- package/es/DropBox/DropBox.module.css +0 -1
- package/es/DropDown/index.js +7 -0
- package/es/Layout/index.js +9 -9
- package/es/ListItem/ListItem.js +4 -3
- package/es/ListItem/ListItem.module.css +4 -0
- package/es/ListItem/ListItemWithAvatar.js +4 -3
- package/es/ListItem/ListItemWithCheckBox.js +3 -2
- package/es/ListItem/ListItemWithIcon.js +4 -3
- package/es/ListItem/ListItemWithRadio.js +3 -2
- package/es/ListItem/index.js +6 -0
- package/es/ListItem/props/defaultProps.js +12 -6
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/MultiSelect/MultiSelect.js +6 -19
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -19
- package/es/MultiSelect/index.js +4 -0
- package/es/MultiSelect/props/defaultProps.js +2 -5
- package/es/MultiSelect/props/propTypes.js +1 -7
- package/es/PopOver/index.js +3 -0
- package/es/Provider/IdProvider.js +8 -7
- package/es/Provider/index.js +4 -0
- package/es/Responsive/index.js +11 -8
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/Select.js +1 -1
- package/es/Select/SelectWithIcon.js +1 -1
- package/es/Select/index.js +4 -0
- package/es/Tab/Tab.module.css +0 -1
- package/es/Tab/Tabs.js +1 -1
- package/es/Tab/Tabs.module.css +0 -1
- package/es/Tag/Tag.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/VelocityAnimation/index.js +2 -0
- package/es/index.js +30 -40
- package/es/semantic/index.js +1 -0
- package/es/utils/css/compileClassNames.js +23 -0
- package/es/utils/css/mergeStyle.js +42 -0
- package/es/utils/css/utils.js +23 -0
- package/es/utils/dropDownUtils.js +2 -3
- package/es/utils/index.js +3 -0
- package/lib/DateTime/DateTimePopupHeader.js +4 -4
- package/lib/DateTime/DateWidget.js +2 -2
- package/lib/DateTime/YearView.js +2 -2
- package/lib/DateTime/index.js +1 -1
- package/lib/DropBox/DropBox.module.css +0 -1
- package/lib/DropDown/index.js +56 -0
- package/lib/Layout/index.js +1 -11
- package/lib/ListItem/ListItem.js +5 -4
- package/lib/ListItem/ListItem.module.css +4 -0
- package/lib/ListItem/ListItemWithAvatar.js +5 -4
- package/lib/ListItem/ListItemWithCheckBox.js +3 -2
- package/lib/ListItem/ListItemWithIcon.js +6 -5
- package/lib/ListItem/ListItemWithRadio.js +3 -2
- package/lib/ListItem/index.js +48 -0
- package/lib/ListItem/props/defaultProps.js +12 -6
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +2 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +2 -2
- package/lib/MultiSelect/MultiSelect.js +7 -20
- package/lib/MultiSelect/MultiSelectWithAvatar.js +7 -20
- package/lib/MultiSelect/index.js +34 -0
- package/lib/MultiSelect/props/defaultProps.js +2 -5
- package/lib/MultiSelect/props/propTypes.js +1 -7
- package/lib/PopOver/index.js +27 -0
- package/lib/Provider/IdProvider.js +8 -8
- package/lib/Provider/index.js +76 -0
- package/lib/Responsive/index.js +45 -22
- package/lib/Select/GroupSelect.js +2 -2
- package/lib/Select/Select.js +2 -2
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/index.js +34 -0
- package/lib/Tab/Tab.module.css +0 -1
- package/lib/Tab/Tabs.js +2 -2
- package/lib/Tab/Tabs.module.css +0 -1
- package/lib/Tag/Tag.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +2 -2
- package/lib/VelocityAnimation/index.js +20 -0
- package/lib/index.js +164 -212
- package/lib/semantic/index.js +13 -0
- package/lib/utils/css/compileClassNames.js +31 -0
- package/lib/utils/css/mergeStyle.js +52 -0
- package/lib/utils/css/utils.js +33 -0
- package/lib/utils/dropDownUtils.js +2 -5
- package/lib/utils/index.js +117 -0
- package/package.json +3 -3
- package/css_error.log +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isDataTypeOf = exports.getDataType = exports.dataTypes = void 0;
|
|
7
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
8
|
+
var dataTypes = {
|
|
9
|
+
number: 'number',
|
|
10
|
+
array: 'array',
|
|
11
|
+
string: 'string',
|
|
12
|
+
object: 'object',
|
|
13
|
+
bigint: 'bigint',
|
|
14
|
+
symbol: 'symbol',
|
|
15
|
+
undefined: 'undefined',
|
|
16
|
+
"function": 'function',
|
|
17
|
+
"boolean": 'boolean'
|
|
18
|
+
};
|
|
19
|
+
exports.dataTypes = dataTypes;
|
|
20
|
+
var getDataType = function getDataType(data) {
|
|
21
|
+
var typeofData = _typeof(data);
|
|
22
|
+
var isArrayDataType = Array.isArray(data);
|
|
23
|
+
if (isArrayDataType) {
|
|
24
|
+
return dataTypes.array;
|
|
25
|
+
} else {
|
|
26
|
+
return dataTypes[typeofData];
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.getDataType = getDataType;
|
|
30
|
+
var isDataTypeOf = function isDataTypeOf(data, type) {
|
|
31
|
+
return getDataType(data) === type;
|
|
32
|
+
};
|
|
33
|
+
exports.isDataTypeOf = isDataTypeOf;
|
|
@@ -86,9 +86,6 @@ exports.getPrefixText = getPrefixText;
|
|
|
86
86
|
var getIsStartWithSearch = function getIsStartWithSearch(props) {
|
|
87
87
|
return props.isStartsWithSearch;
|
|
88
88
|
};
|
|
89
|
-
var getIsNeedTick = function getIsNeedTick(props) {
|
|
90
|
-
return props.isNeedTick;
|
|
91
|
-
};
|
|
92
89
|
var getDisabledOptions = function getDisabledOptions(props) {
|
|
93
90
|
return props.disabledOptions || dummyArray;
|
|
94
91
|
};
|
|
@@ -96,7 +93,7 @@ var getListItemProps = function getListItemProps(props) {
|
|
|
96
93
|
return props.listItemProps || '';
|
|
97
94
|
};
|
|
98
95
|
var makeGetMultiSelectFilterSuggestions = function makeGetMultiSelectFilterSuggestions() {
|
|
99
|
-
return (0, _reselect.createSelector)([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch
|
|
96
|
+
return (0, _reselect.createSelector)([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch], function (options, selectedOptions, searchStr, needSearch, isStartsWithSearch) {
|
|
100
97
|
var suggestions = [];
|
|
101
98
|
var suggestionIds = [];
|
|
102
99
|
options.forEach(function (option) {
|
|
@@ -106,7 +103,7 @@ var makeGetMultiSelectFilterSuggestions = function makeGetMultiSelectFilterSugge
|
|
|
106
103
|
var valueString = (0, _Common.getSearchString)(value);
|
|
107
104
|
var searchString = (0, _Common.getSearchString)(searchStr);
|
|
108
105
|
var isMatch = needSearch ? isStartsWithSearch ? valueString.startsWith(searchString) : valueString.indexOf(searchString) !== -1 : true;
|
|
109
|
-
if (selectedOptions.indexOf(id) === -1 && isMatch
|
|
106
|
+
if (selectedOptions.indexOf(id) === -1 && isMatch) {
|
|
110
107
|
suggestions.push(option);
|
|
111
108
|
suggestionIds.push(id);
|
|
112
109
|
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "bytesToSize", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _Common.bytesToSize;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "capitalize", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _Common.capitalize;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "checkIsImageFile", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _Common.checkIsImageFile;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "compileClassNames", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _compileClassNames["default"];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "debounce", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _Common.debounce;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "doAfterScrollEnd", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _Common.doAfterScrollEnd;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "findScrollEnd", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _Common.findScrollEnd;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "format12Hour", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _Common.format12Hour;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "getDateOnly", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _Common.getDateOnly;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "getElementSpace", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _Common.getElementSpace;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "getFullDateString", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _Common.getFullDateString;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "getFullName", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _Common.getFullName;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "getMemSize", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _Common.getMemSize;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "getSearchString", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function get() {
|
|
87
|
+
return _Common.getSearchString;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "isTextSelected", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function get() {
|
|
93
|
+
return _Common.isTextSelected;
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(exports, "mergeStyle", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function get() {
|
|
99
|
+
return _mergeStyle["default"];
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "stopAllEventPropagation", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _Common.stopAllEventPropagation;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "throttle", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _Common.throttle;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
var _compileClassNames = _interopRequireDefault(require("./css/compileClassNames"));
|
|
115
|
+
var _mergeStyle = _interopRequireDefault(require("./css/mergeStyle"));
|
|
116
|
+
var _Common = require("./Common");
|
|
117
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.0.0-temp-
|
|
3
|
+
"version": "1.0.0-temp-136",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
50
50
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
51
|
-
"@zohodesk/icons": "1.0.0-beta.
|
|
51
|
+
"@zohodesk/icons": "1.0.0-beta.119",
|
|
52
52
|
"@zohodesk/virtualizer": "1.0.3",
|
|
53
53
|
"velocity-react": "1.4.3",
|
|
54
54
|
"react-sortable-hoc": "^0.8.3",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"selectn": "1.1.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@zohodesk/icons": "1.0.0-beta.
|
|
65
|
+
"@zohodesk/icons": "1.0.0-beta.119",
|
|
66
66
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
67
67
|
"@zohodesk/svg": "1.0.0-beta.49",
|
|
68
68
|
"@zohodesk/virtualizer": "1.0.3",
|
package/css_error.log
DELETED
|
File without changes
|