diginet-core-ui 1.4.61 → 1.4.62

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.
@@ -0,0 +1,18 @@
1
+ <svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_2469_36)">
3
+ <path d="M33.6 3.09998H31V5.69998C31 7.39998 29.6 8.69998 28 8.69998C26.3 8.69998 25 7.39998 25 5.69998V3.09998H14V5.69998C14 7.39998 12.7 8.69998 11 8.69998C9.4 8.69998 8 7.39998 8 5.69998V3.09998H5.4C2.4 3.09998 0 5.49998 0 8.39998V33.6C0 36.6 2.4 39 5.4 39H33.6C36.6 39 39 36.6 39 33.6V8.39998C39 5.49998 36.6 3.09998 33.6 3.09998ZM36.5 33.1C36.5 35 34.9 36.5 33 36.5H6C4.1 36.5 2.6 35 2.6 33.1V13H36.5V33.1Z" fill="#2680EB"/>
4
+ <path d="M30 5.9V1.8C30 0.8 29.2 0 28.2 0H27.8C26.8 0 26 0.8 26 1.8V5.9C26 6.9 26.8 7.7 27.8 7.7H28.2C29.2 7.7 30 6.9 30 5.9Z" fill="#7BC0F9"/>
5
+ <path d="M13 5.9V1.8C13 0.8 12.2 0 11.2 0H10.8C9.8 0 9 0.8 9 1.8V5.9C9 6.9 9.8 7.7 10.8 7.7H11.2C12.2 7.7 13 6.9 13 5.9Z" fill="#7BC0F9"/>
6
+ <path d="M13 24H7.6C7.2 24 7 23.8 7 23.5V18C7 17.7 7.2 17.4 7.6 17.4H13C13.3 17.4 13.6 17.6 13.6 18V23.5C13.6 23.8 13.3 24 13 24Z" fill="#1CA261"/>
7
+ <path d="M22.3002 24H16.8002C16.5002 24 16.2002 23.8 16.2002 23.4V18C16.2002 17.7 16.4002 17.4 16.8002 17.4H22.3002C22.6002 17.4 22.9002 17.6 22.9002 18V23.5C22.8002 23.8 22.6002 24 22.3002 24Z" fill="#FFAA00"/>
8
+ <path d="M31.4999 24H25.9999C25.6999 24 25.3999 23.8 25.3999 23.4V18C25.3999 17.7 25.5999 17.4 25.9999 17.4H31.4999C31.7999 17.4 32.0999 17.6 32.0999 18V23.5C31.9999 23.8 31.7999 24 31.4999 24Z" fill="#FF4444"/>
9
+ <path d="M13 32.8H7.6C7.3 32.8 7 32.6 7 32.2V26.7C7 26.4 7.2 26.1 7.6 26.1H13C13.3 26.1 13.6 26.3 13.6 26.7V32.2C13.6 32.5 13.3 32.8 13 32.8Z" fill="#FFAA00"/>
10
+ <path d="M22.3002 32.8H16.8002C16.5002 32.8 16.2002 32.6 16.2002 32.2V26.7C16.2002 26.4 16.4002 26.1 16.8002 26.1H22.3002C22.6002 26.1 22.9002 26.3 22.9002 26.7V32.2C22.8002 32.5 22.6002 32.8 22.3002 32.8Z" fill="#FF4444"/>
11
+ <path d="M31.4999 32.8H25.9999C25.6999 32.8 25.3999 32.6 25.3999 32.2V26.7C25.3999 26.4 25.5999 26.1 25.9999 26.1H31.4999C31.7999 26.1 32.0999 26.3 32.0999 26.7V32.2C31.9999 32.5 31.7999 32.8 31.4999 32.8Z" fill="#1CA261"/>
12
+ </g>
13
+ <defs>
14
+ <clipPath id="clip0_2469_36">
15
+ <rect width="39" height="39" fill="white"/>
16
+ </clipPath>
17
+ </defs>
18
+ </svg>
@@ -301,10 +301,10 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference)
301
301
  });
302
302
  };
303
303
 
304
- /**
305
- * So sánh text đầu vào cáo map với txtSearch
306
- * @param text
307
- * @return {boolean}
304
+ /**
305
+ * So sánh text đầu vào cáo map với txtSearch
306
+ * @param text
307
+ * @return {boolean}
308
308
  */
309
309
  const handleRenderBySearch = (text = '') => {
310
310
  if (text === null || text === undefined) text = '';
@@ -317,10 +317,10 @@ const Dropdown = /*#__PURE__*/memo( /*#__PURE__*/forwardRef((inProps, reference)
317
317
  } else return text.toLowerCase().includes(txtSearch.toLowerCase());
318
318
  };
319
319
 
320
- /**
321
- * Chuyển đổi data thành giá trị cần hiện thị dựa vào displayExpr [string, string object {field} - {field}], renderSelectedItem, displayExpr, valueExpr
322
- * @param data {object} rowData of dataSource
323
- * @return {string}
320
+ /**
321
+ * Chuyển đổi data thành giá trị cần hiện thị dựa vào displayExpr [string, string object {field} - {field}], renderSelectedItem, displayExpr, valueExpr
322
+ * @param data {object} rowData of dataSource
323
+ * @return {string}
324
324
  */
325
325
  const displayValue = data => {
326
326
  let text = '';
@@ -1805,9 +1805,9 @@ Dropdown.propTypes = {
1805
1805
  defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),
1806
1806
  /** If `true`, the component is disabled. */
1807
1807
  disabled: PropTypes.bool,
1808
- /** The field name used for displaying text in the dropdown list.<br/>
1809
- * Examples: 'name', '{id} - {name}', '{age} age(s)'<br/>
1810
- * Note: Do not use 'id - name', as it will return undefined.
1808
+ /** The field name used for displaying text in the dropdown list.<br/>
1809
+ * Examples: 'name', '{id} - {name}', '{age} age(s)'<br/>
1810
+ * Note: Do not use 'id - name', as it will return undefined.
1811
1811
  */
1812
1812
  displayExpr: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),
1813
1813
  /** Inline style for dropdown items. */
@@ -1816,14 +1816,14 @@ Dropdown.propTypes = {
1816
1816
  error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
1817
1817
  /** Props applied to the [HelperText](https://core.diginet.com.vn/ui/?path=/story/form-control-text-helpertext) element. */
1818
1818
  helperTextProps: PropTypes.object,
1819
- /** The field name used for displaying icons.<br/>
1820
- * Example:<br/>
1821
- * &nbsp;&nbsp;string: 'icon'<br/>
1822
- * &nbsp;&nbsp;object: {<br/>
1823
- * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;key: 'icon',<br/>
1824
- * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prefix: 'https://imglink.com',<br/>
1825
- * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;suffix: '.jpg'<br/>
1826
- * &nbsp;&nbsp;}
1819
+ /** The field name used for displaying icons.<br/>
1820
+ * Example:<br/>
1821
+ * &nbsp;&nbsp;string: 'icon'<br/>
1822
+ * &nbsp;&nbsp;object: {<br/>
1823
+ * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;key: 'icon',<br/>
1824
+ * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prefix: 'https://imglink.com',<br/>
1825
+ * &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;suffix: '.jpg'<br/>
1826
+ * &nbsp;&nbsp;}
1827
1827
  */
1828
1828
  iconExpr: PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
1829
1829
  key: PropTypes.string,
@@ -1859,8 +1859,8 @@ Dropdown.propTypes = {
1859
1859
  onOpened: PropTypes.func,
1860
1860
  /** Callback function fired when the dropdown is closed. */
1861
1861
  onClosed: PropTypes.func,
1862
- /** Callback function fired when the input value changes.<br/>
1863
- * If undefined, the filter function will run (default behavior).
1862
+ /** Callback function fired when the input value changes.<br/>
1863
+ * If undefined, the filter function will run (default behavior).
1864
1864
  */
1865
1865
  onInput: PropTypes.func,
1866
1866
  /** Callback function fired when a key is pressed down in the input. */
@@ -1873,21 +1873,21 @@ Dropdown.propTypes = {
1873
1873
  placeholder: PropTypes.string,
1874
1874
  /** If `true`, the component is read-only. */
1875
1875
  readOnly: PropTypes.bool,
1876
- /** Function used for custom rendering of items.<br/>
1877
- * Example: `(data, index) => data.name + ' - ' + data.role`<br/>
1878
- * This can be used as an alternative to `displayExpr`
1876
+ /** Function used for custom rendering of items.<br/>
1877
+ * Example: `(data, index) => data.name + ' - ' + data.role`<br/>
1878
+ * This can be used as an alternative to `displayExpr`
1879
1879
  */
1880
1880
  renderItem: PropTypes.func,
1881
- /** Function or field name used to display selected items.<br/>
1882
- * Example: `(data, index) => index + ' - ' + data.name`<br/>
1881
+ /** Function or field name used to display selected items.<br/>
1882
+ * Example: `(data, index) => index + ' - ' + data.name`<br/>
1883
1883
  */
1884
1884
  renderSelectedItem: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
1885
1885
  /** If `true`, the label will indicate that the input is required. */
1886
1886
  required: PropTypes.bool,
1887
- /**
1888
- * Duration to wait after entering search content before triggering a search.<br/>
1889
- * Example: 700 -> 700ms, '700ms' -> 700ms, '0.7s' -> 700ms, '1m' -> 60000ms
1890
- * If `true`, the default delayOnInput will be used.
1887
+ /**
1888
+ * Duration to wait after entering search content before triggering a search.<br/>
1889
+ * Example: 700 -> 700ms, '700ms' -> 700ms, '0.7s' -> 700ms, '1m' -> 60000ms
1890
+ * If `true`, the default delayOnInput will be used.
1891
1891
  */
1892
1892
  searchDelayTime: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool]),
1893
1893
  /** Specifies the field name or expression used to compare values with the search string. */
@@ -1920,19 +1920,19 @@ Dropdown.propTypes = {
1920
1920
  viewType: PropTypes.oneOf(['underlined', 'outlined', 'none']),
1921
1921
  /** Custom icon to override the default arrow icon. */
1922
1922
  endIcon: PropTypes.string
1923
- /**
1924
- * ref methods
1925
- *
1926
- * how to get component element? ref.current
1927
- *
1928
- * how to call method? ref.current.instance.{method}
1929
- *
1930
- * * showDropdown(): Show dropdown
1931
- * * closeDropdown(): Close dropdown
1932
- * * onClear(): Clear selected value
1933
- * * setPreviousValue(): Set value to previous value
1934
- * * setValue(value): Set value of dropdown
1935
- * * @param {value} - string || number || array
1923
+ /**
1924
+ * ref methods
1925
+ *
1926
+ * how to get component element? ref.current
1927
+ *
1928
+ * how to call method? ref.current.instance.{method}
1929
+ *
1930
+ * * showDropdown(): Show dropdown
1931
+ * * closeDropdown(): Close dropdown
1932
+ * * onClear(): Clear selected value
1933
+ * * setPreviousValue(): Set value to previous value
1934
+ * * setValue(value): Set value of dropdown
1935
+ * * @param {value} - string || number || array
1936
1936
  */
1937
1937
  };
1938
1938
  export default Dropdown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.4.61",
3
+ "version": "1.4.62",
4
4
  "description": "The DigiNet core ui",
5
5
  "homepage": "https://diginet.com.vn",
6
6
  "main": "index.js",
package/readme.md CHANGED
@@ -42,6 +42,9 @@ npm test
42
42
 
43
43
  ## Changelog
44
44
 
45
+ ## 1.4.62
46
+ - \[Added\]: Icon – Add IconMenu MHRP15N0004
47
+
45
48
  ## 1.4.61
46
49
  - \[Added\]: Icon – Add IconMenu MHRM38N1051
47
50
  - \[Fixed\]: Dropdown – Dropdown multiple core has a disable bug