@zohodesk/dot 1.0.0-temp-74 → 1.0.0-temp-77

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 CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  In this Library, we Provide Some Basic Components to Build Your Application
4
4
 
5
+ # 1.0.0-beta.223
6
+
7
+ - TagMultiSelect id, onSelectTag prop added.
8
+ - GridStencils UI fix.
9
+
10
+ # 1.0.0-beta.222
11
+
12
+ - TagMultiSelect Keyboard Shortcut Issue Fixed
13
+
14
+ # 1.0.0-beta.221
15
+
16
+ - editor fontsize prop added
17
+
5
18
  # 1.0.0-beta.218 , # 1.0.0-beta.219, # 1.0.0-beta.220
6
19
 
7
20
  - AttachmentViewer , AttachmentImage component added
@@ -799,8 +799,7 @@ export class ToggleDropDown extends Component {
799
799
  }, ListItemProps)));
800
800
  })) : /*#__PURE__*/React.createElement(CommonEmptyState, {
801
801
  className: style.svgWrapper,
802
- title: searchErrorText || 'oops !',
803
- description: searchEmptyHint,
802
+ title: searchErrorText || 'No results',
804
803
  size: "small",
805
804
  getEmptyState: this.emptySearchSVG
806
805
  }) : /*#__PURE__*/React.createElement("div", {
@@ -18,12 +18,20 @@ export default class TagsMultiSelect extends React.Component {
18
18
  this.state = {
19
19
  showAll: false
20
20
  };
21
- this.textBoxRef = /*#__PURE__*/React.createRef();
22
21
  this.emptySearchSVG = this.emptySearchSVG.bind(this);
23
22
  this.onShowAllClick = this.onShowAllClick.bind(this);
24
23
  this.getContainerRef = this.getContainerRef.bind(this);
25
24
  this.onScroll = this.onScroll.bind(this);
26
25
  this.getSelectedItemRef = this.getSelectedItemRef.bind(this);
26
+ this.textInputRef = this.textInputRef.bind(this);
27
+ }
28
+
29
+ textInputRef(el) {
30
+ const {
31
+ getTextInputRef
32
+ } = this.props;
33
+ this.inputEl = el;
34
+ getTextInputRef && getTextInputRef(el);
27
35
  }
28
36
 
29
37
  onScroll() {
@@ -58,10 +66,8 @@ export default class TagsMultiSelect extends React.Component {
58
66
 
59
67
  if (prevProps.isTagListLoading !== isTagListLoading && !isTagListLoading || isPopupReady && prevProps.tagsList.length !== tagsList.length) {
60
68
  setTimeout(() => {
61
- let textBoxElementRef = this.textBoxRef.current;
62
-
63
- if (textBoxElementRef && typeof textBoxElementRef.handleFocus === 'function') {
64
- this.textBoxRef.current.handleFocus();
69
+ if (this.inputEl) {
70
+ this.inputEl.focus();
65
71
  }
66
72
  }, 300);
67
73
  }
@@ -118,7 +124,8 @@ export default class TagsMultiSelect extends React.Component {
118
124
  borderColor,
119
125
  getTextBoxChildren,
120
126
  htmlId,
121
- boxSize
127
+ boxSize,
128
+ onSelectTag
122
129
  } = this.props;
123
130
  let {
124
131
  showAll
@@ -140,17 +147,20 @@ export default class TagsMultiSelect extends React.Component {
140
147
  }, tagsList.length ? /*#__PURE__*/React.createElement(React.Fragment, null, tagsList.map((tag, index) => {
141
148
  let {
142
149
  name,
143
- tagType
150
+ tagType,
151
+ id
144
152
  } = tag;
145
153
  return index < chipLimit ? /*#__PURE__*/React.createElement(Box, {
146
154
  className: style.tag,
147
155
  key: index
148
156
  }, /*#__PURE__*/React.createElement(Tag, {
157
+ id: id,
149
158
  text: name,
150
159
  onRemove: isReadOnly ? null : deleteTag.bind(this, name),
151
160
  closeTitle: i18nKeys.deleteText,
152
161
  palette: tagType === 'SYSTEM' ? 'primary' : 'default',
153
- isReadOnly: isReadOnly
162
+ isReadOnly: isReadOnly,
163
+ onSelectTag: onSelectTag ? onSelectTag : undefined
154
164
  })) : null;
155
165
  }), tagsList.length > chipNeedToShow && !isPopupReady ? /*#__PURE__*/React.createElement(Box, {
156
166
  className: style.moreLess,
@@ -171,7 +181,6 @@ export default class TagsMultiSelect extends React.Component {
171
181
  onChange: handleChange,
172
182
  maxLength: 50,
173
183
  isReadOnly: isReadOnly,
174
- ref: this.textBoxRef,
175
184
  needBorder: false,
176
185
  placeHolder: tagsList.length ? '' : i18nKeys.placeholderText || '-',
177
186
  onClick: !isReadOnly ? handleTogglePopup : undefined,
@@ -179,7 +188,8 @@ export default class TagsMultiSelect extends React.Component {
179
188
  customTBoxWrap: style.custmInp,
180
189
  customTextBox: style.input
181
190
  },
182
- size: "xsmall"
191
+ size: "xsmall",
192
+ inputRef: this.textInputRef
183
193
  }, getTextBoxChildren ? getTextBoxChildren() : null))), isPopupOpen ? /*#__PURE__*/React.createElement(DropBox, {
184
194
  isAnimate: true,
185
195
  isActive: isPopupReady,
@@ -251,6 +261,7 @@ TagsMultiSelect.propTypes = {
251
261
  deleteTag: PropTypes.func,
252
262
  getContainerRef: PropTypes.func,
253
263
  getTargetRef: PropTypes.func,
264
+ getTextInputRef: PropTypes.func,
254
265
  handleChange: PropTypes.func,
255
266
  handleKeyUp: PropTypes.func,
256
267
  handleTogglePopup: PropTypes.func,
@@ -281,7 +292,8 @@ TagsMultiSelect.propTypes = {
281
292
  needBorder: PropTypes.bool,
282
293
  getTextBoxChildren: PropTypes.func,
283
294
  htmlId: PropTypes.string,
284
- boxSize: PropTypes.string
295
+ boxSize: PropTypes.string,
296
+ onSelectTag: PropTypes.func
285
297
  };
286
298
  TagsMultiSelect.defaultProps = {
287
299
  className: '',
@@ -52,7 +52,7 @@ class DepartmentDropDown extends Component {
52
52
  let {
53
53
  title = 'Move Department',
54
54
  searchEmptyText = 'No results found',
55
- searchErrorText = 'OOPS !',
55
+ searchErrorText = 'No results',
56
56
  placeholder = 'Search Department'
57
57
  } = i18nKeys;
58
58
  return /*#__PURE__*/React.createElement(ToggleDropDown, {
@@ -3,7 +3,9 @@
3
3
  border-bottom: 1px solid var(--zdt_gridstencils_default_border);
4
4
  padding: var(--zd_size13) var(--zd_size20) var(--zd_size11);
5
5
  position: relative;
6
- margin-bottom: var(--zd_size10);
6
+ margin: 0 auto var(--zd_size10) auto;
7
+ border-radius: var(--zd_size5);
8
+ width: var(--zd_size265);
7
9
  }
8
10
  .stenLoadbody {
9
11
  margin: var(--zd_size8) var(--zd_size20) var(--zd_size8) 0;
@@ -408,8 +408,7 @@ export class StatusDropdown extends React.Component {
408
408
  }
409
409
  })))) : isDataLoaded ? /*#__PURE__*/React.createElement(CommonEmptyState, {
410
410
  className: style.svgWrapper,
411
- title: searchErrorText || 'oops !',
412
- description: searchEmptyHint,
411
+ title: searchErrorText || 'No results',
413
412
  size: "small",
414
413
  getEmptyState: this.emptySearchSVG
415
414
  }) : /*#__PURE__*/React.createElement("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.0.0-temp-74",
3
+ "version": "1.0.0-temp-77",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "jsnext:main": "es/index.js",
@@ -27,14 +27,15 @@
27
27
  "sstest": "react-cli sstest",
28
28
  "docs": "npm run dubCheck && react-cli docs",
29
29
  "postpublish": "react-cli postpublish",
30
- "download": "rm package-lock.json && rm -rf node_modules/ && npm install"
30
+ "download": "rm package-lock.json && rm -rf node_modules/ && npm install",
31
+ "expublish": "npm publish --tag experimental-version"
31
32
  },
32
33
  "dependencies": {},
33
34
  "devDependencies": {
34
35
  "velocity-react": "1.4.3",
35
36
  "@zohodesk/variables": "1.0.0-beta.29",
36
37
  "@zohodesk/i18n": "1.0.0-beta.7",
37
- "@zohodesk/components": "1.0.0-alpha-234",
38
+ "@zohodesk/components": "1.0.0-alpha-236",
38
39
  "@zohodesk/icons": "1.0.0-beta.98",
39
40
  "@zohodesk/svg": "1.0.0-beta.42",
40
41
  "@zohodesk/virtualizer": "1.0.3",
@@ -44,7 +45,7 @@
44
45
  "velocity-react": "1.4.3",
45
46
  "@zohodesk/variables": "1.0.0-beta.29",
46
47
  "@zohodesk/i18n": "1.0.0-beta.7",
47
- "@zohodesk/components": "1.0.0-alpha-234",
48
+ "@zohodesk/components": "1.0.0-alpha-236",
48
49
  "@zohodesk/icons": "1.0.0-beta.98",
49
50
  "@zohodesk/svg": "1.0.0-beta.42"
50
51
  },