@visns-studio/visns-components 3.1.14 → 3.2.0

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.
@@ -14,6 +14,7 @@ import numeral from 'numeral';
14
14
  import Popup from 'reactjs-popup';
15
15
  import parse from 'html-react-parser';
16
16
  import { saveAs } from 'file-saver';
17
+ import pluralize from 'pluralize';
17
18
  import NumberFilter from '@inovua/reactdatagrid-community/NumberFilter';
18
19
  import SelectFilter from '@inovua/reactdatagrid-community/SelectFilter';
19
20
  import DateFilter from '@inovua/reactdatagrid-community/DateFilter';
@@ -720,11 +721,7 @@ const DataGrid = forwardRef(
720
721
  return (
721
722
  <div
722
723
  className="filterInput--alt"
723
- style={{
724
- height: style.data_grid_search_height
725
- ? style.data_grid_search_height
726
- : '58px',
727
- }}
724
+ style={{ height: '58px' }}
728
725
  ></div>
729
726
  );
730
727
  }
@@ -239,6 +239,7 @@ function Field({
239
239
  'plainrelation',
240
240
  'plainrelationarray',
241
241
  'plaintext',
242
+ 'plaintextheading',
242
243
  'richeditor',
243
244
  'time',
244
245
  ].includes(settings.type)
@@ -415,6 +416,23 @@ function Field({
415
416
  {inputValue && inputValue !== 'null' ? inputValue : ''}
416
417
  </div>
417
418
  );
419
+ case 'plaintextheading':
420
+ return (
421
+ <div
422
+ className="fi__div"
423
+ style={
424
+ settings.height
425
+ ? {
426
+ height: settings.height,
427
+ }
428
+ : {}
429
+ }
430
+ >
431
+ {inputValue && inputValue !== 'null'
432
+ ? `<h2>${inputValue}</h2>`
433
+ : ''}
434
+ </div>
435
+ );
418
436
  case 'plainrelation':
419
437
  return (
420
438
  <div
@@ -766,6 +784,7 @@ function Field({
766
784
  'plainrelation',
767
785
  'plainrelationarray',
768
786
  'plaintext',
787
+ 'plaintextheading',
769
788
  'richeditor',
770
789
  'time',
771
790
  'toggle',
package/package.json CHANGED
@@ -49,7 +49,7 @@
49
49
  "react-dom": "^17.0.1"
50
50
  },
51
51
  "name": "@visns-studio/visns-components",
52
- "version": "3.1.14",
52
+ "version": "3.2.0",
53
53
  "description": "Various packages to assist in the development of our Custom Applications.",
54
54
  "main": "index.js",
55
55
  "scripts": {