@epam/uui 4.10.1-beta.0 → 4.10.1-beta.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"PickerList.d.ts","sourceRoot":"","sources":["../../../components/pickers/PickerList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAc,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEjH,OAAO,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AAK7C,MAAM,MAAM,eAAe,CAAC,KAAK,EAAE,GAAG,IAAI,OAAO,GAAG,eAAe,GAAG,kBAAkB,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG;IACnG,kBAAkB,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC;IAC7G,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC,CAAC;AAEF,qBAAa,UAAU,CAAC,KAAK,EAAE,GAAG,CAAE,SAAQ,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC/F,MAAM,CAAC,WAAW,mEAAc;IAChC,gBAAgB,SAA0B;IAC1C,OAAO,EAAE,WAAW,CAAC;IAErB,SAAS,QAAS,aAAa,KAAK,EAAE,GAAG,CAAC,iBAEzC;IAED,gBAAgB,aAgBf;IAED,oBAAoB,UAAW,UAAU,iBAKxC;IAED,MAAM;CAuBT"}
1
+ {"version":3,"file":"PickerList.d.ts","sourceRoot":"","sources":["../../../components/pickers/PickerList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA0B,cAAc,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAc,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEjH,OAAO,EAAY,OAAO,EAAE,MAAM,UAAU,CAAC;AAK7C,MAAM,MAAM,eAAe,CAAC,KAAK,EAAE,GAAG,IAAI,OAAO,GAAG,eAAe,GAAG,kBAAkB,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG;IACnG,kBAAkB,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,WAAW,EAAE,SAAS,EAAE,YAAY,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,SAAS,CAAC;IAC7G,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACtC,CAAC;AAEF,qBAAa,UAAU,CAAC,KAAK,EAAE,GAAG,CAAE,SAAQ,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC/F,MAAM,CAAC,WAAW,mEAAc;IAChC,gBAAgB,SAA0B;IAC1C,OAAO,EAAE,WAAW,CAAC;IAErB,SAAS,QAAS,aAAa,KAAK,EAAE,GAAG,CAAC,iBAEzC;IAED,gBAAgB,aAgBf;IAED,oBAAoB,UAAW,UAAU,iBAKxC;IAED,MAAM;CAuBT"}
package/index.js CHANGED
@@ -1525,7 +1525,7 @@ var css$6 = {"sub-header-wrapper":"PickerModal_sub-header-wrapper__ArWps","switc
1525
1525
 
1526
1526
  class PickerModalImpl extends uuiComponents.PickerModalBase {
1527
1527
  renderRow(rowProps) {
1528
- return this.props.renderRow ? this.props.renderRow(rowProps) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', padding: '24', size: '36', renderItem: (i) => React__namespace.createElement(Text, { size: '36' }, rowProps.isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : this.getName(i)) })));
1528
+ return this.props.renderRow ? this.props.renderRow(rowProps, this.state.dataSourceState) : (React__namespace.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', padding: '24', size: '36', renderItem: (i) => React__namespace.createElement(Text, { size: '36' }, rowProps.isLoading ? React__namespace.createElement(TextPlaceholder, { wordsCount: 2 }) : this.getName(i)) })));
1529
1529
  }
1530
1530
  renderFooter(selectedDataRows) {
1531
1531
  const hasSelection = selectedDataRows.length > 0;
@@ -1712,7 +1712,7 @@ class PickerInput extends uuiComponents.PickerInputBase {
1712
1712
  return React__namespace.default.createElement(PickerItem, Object.assign({ title: this.getName(item), size: this.getRowSize() }, rowProps));
1713
1713
  };
1714
1714
  this.renderRow = (rowProps) => {
1715
- return this.props.renderRow ? this.props.renderRow(rowProps) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', size: this.getRowSize(), rawProps: { 'aria-selected': rowProps.isSelectable && rowProps.isSelected, role: 'option' }, padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: this.renderItem })));
1715
+ return this.props.renderRow ? this.props.renderRow(rowProps, this.state.dataSourceState) : (React__namespace.default.createElement(DataPickerRow, Object.assign({}, rowProps, { key: rowProps.rowKey, borderBottom: 'none', size: this.getRowSize(), rawProps: { 'aria-selected': rowProps.isSelectable && rowProps.isSelected, role: 'option' }, padding: this.props.editMode === 'modal' ? '24' : '12', renderItem: this.renderItem })));
1716
1716
  };
1717
1717
  }
1718
1718
  toggleModalOpening(opened) {
@@ -1806,7 +1806,7 @@ class PickerList extends uuiComponents.PickerListBase {
1806
1806
  !rows.length && (this.props.noOptionsMessage ?
1807
1807
  this.props.noOptionsMessage :
1808
1808
  React__namespace.default.createElement(Text, { color: 'secondary', size: this.props.size }, "No options available")),
1809
- rows.map(row => renderRow(row)),
1809
+ rows.map(row => renderRow(row, this.state.dataSourceState)),
1810
1810
  showPicker && renderToggler({
1811
1811
  onClick: this.handleShowPicker,
1812
1812
  caption: this.getModalTogglerCaption(viewProps.totalCount, selectedRows.length),