@zeedhi/common 1.68.0 → 1.69.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.
@@ -2992,6 +2992,8 @@ class Dashboard extends ComponentRender {
2992
2992
  super(props);
2993
2993
  /* Enable edit mode */
2994
2994
  this.editingMode = false;
2995
+ /* show edit header */
2996
+ this.showEditHeader = true;
2995
2997
  /* Enable only move mode */
2996
2998
  this.moveMode = false;
2997
2999
  /* Cards */
@@ -3226,6 +3228,7 @@ class Dashboard extends ComponentRender {
3226
3228
  this.heightAdjust = this.getInitValue('heightAdjust', props.heightAdjust, this.heightAdjust);
3227
3229
  this.cardFooterSlot = this.getInitValue('cardFooterSlot', props.cardFooterSlot, this.cardFooterSlot);
3228
3230
  this.editHeader = this.getInitValue('editHeader', props.editHeader, this.editHeader);
3231
+ this.showEditHeader = this.getInitValue('showEditHeader', props.showEditHeader, this.showEditHeader);
3229
3232
  this.createAccessors();
3230
3233
  }
3231
3234
  onMounted(element) {
@@ -4780,9 +4783,11 @@ class Column extends Component {
4780
4783
  this.loading = true;
4781
4784
  const dataToLookup = Array.from(new Set(this.dataToLookup)); // remove duplicates
4782
4785
  this.lookupDatasource.addFilter(lookupColumn, dataToLookup).then((data) => {
4786
+ const lookupData = {};
4783
4787
  data.forEach((row) => {
4784
- this.lookupData[row[lookupColumn]] = row;
4788
+ lookupData[row[lookupColumn]] = row;
4785
4789
  });
4790
+ this.lookupData = lookupData;
4786
4791
  this.lookupDataCount += 1;
4787
4792
  this.loading = false;
4788
4793
  });
@@ -10627,6 +10632,14 @@ class Textarea extends TextInput {
10627
10632
  * Default row count.
10628
10633
  */
10629
10634
  this.rows = 5;
10635
+ /**
10636
+ * Input height
10637
+ */
10638
+ this.height = 'auto';
10639
+ /**
10640
+ * Should input fill the remaining height
10641
+ */
10642
+ this.fillHeight = false;
10630
10643
  this.autoGrow = this.getInitValue('autoGrow', props.autoGrow, this.autoGrow);
10631
10644
  this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
10632
10645
  this.clearIcon = this.getInitValue('clearIcon', props.clearIcon, this.clearIcon);
@@ -10638,6 +10651,8 @@ class Textarea extends TextInput {
10638
10651
  this.rounded = this.getInitValue('rounded', props.rounded, this.reverse);
10639
10652
  this.rowHeight = this.getInitValue('rowHeight', props.rowHeight, this.rowHeight);
10640
10653
  this.rows = this.getInitValue('rows', props.rows, this.rows);
10654
+ this.height = this.getInitValue('height', props.height, this.height);
10655
+ this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
10641
10656
  this.createAccessors();
10642
10657
  if (this.counter && !Number.isNaN(parseInt(this.counter.toString(), 10))) {
10643
10658
  this.addValidation('maxLength', { limit: parseInt(this.counter.toString(), 10) });
@@ -2999,6 +2999,8 @@
2999
2999
  super(props);
3000
3000
  /* Enable edit mode */
3001
3001
  this.editingMode = false;
3002
+ /* show edit header */
3003
+ this.showEditHeader = true;
3002
3004
  /* Enable only move mode */
3003
3005
  this.moveMode = false;
3004
3006
  /* Cards */
@@ -3233,6 +3235,7 @@
3233
3235
  this.heightAdjust = this.getInitValue('heightAdjust', props.heightAdjust, this.heightAdjust);
3234
3236
  this.cardFooterSlot = this.getInitValue('cardFooterSlot', props.cardFooterSlot, this.cardFooterSlot);
3235
3237
  this.editHeader = this.getInitValue('editHeader', props.editHeader, this.editHeader);
3238
+ this.showEditHeader = this.getInitValue('showEditHeader', props.showEditHeader, this.showEditHeader);
3236
3239
  this.createAccessors();
3237
3240
  }
3238
3241
  onMounted(element) {
@@ -4787,9 +4790,11 @@
4787
4790
  this.loading = true;
4788
4791
  const dataToLookup = Array.from(new Set(this.dataToLookup)); // remove duplicates
4789
4792
  this.lookupDatasource.addFilter(lookupColumn, dataToLookup).then((data) => {
4793
+ const lookupData = {};
4790
4794
  data.forEach((row) => {
4791
- this.lookupData[row[lookupColumn]] = row;
4795
+ lookupData[row[lookupColumn]] = row;
4792
4796
  });
4797
+ this.lookupData = lookupData;
4793
4798
  this.lookupDataCount += 1;
4794
4799
  this.loading = false;
4795
4800
  });
@@ -10634,6 +10639,14 @@
10634
10639
  * Default row count.
10635
10640
  */
10636
10641
  this.rows = 5;
10642
+ /**
10643
+ * Input height
10644
+ */
10645
+ this.height = 'auto';
10646
+ /**
10647
+ * Should input fill the remaining height
10648
+ */
10649
+ this.fillHeight = false;
10637
10650
  this.autoGrow = this.getInitValue('autoGrow', props.autoGrow, this.autoGrow);
10638
10651
  this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
10639
10652
  this.clearIcon = this.getInitValue('clearIcon', props.clearIcon, this.clearIcon);
@@ -10645,6 +10658,8 @@
10645
10658
  this.rounded = this.getInitValue('rounded', props.rounded, this.reverse);
10646
10659
  this.rowHeight = this.getInitValue('rowHeight', props.rowHeight, this.rowHeight);
10647
10660
  this.rows = this.getInitValue('rows', props.rows, this.rows);
10661
+ this.height = this.getInitValue('height', props.height, this.height);
10662
+ this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
10648
10663
  this.createAccessors();
10649
10664
  if (this.counter && !Number.isNaN(parseInt(this.counter.toString(), 10))) {
10650
10665
  this.addValidation('maxLength', { limit: parseInt(this.counter.toString(), 10) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.68.0",
3
+ "version": "1.69.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -39,5 +39,5 @@
39
39
  "lodash.times": "^4.3.2",
40
40
  "mockdate": "^3.0.2"
41
41
  },
42
- "gitHead": "84cc6c01ee3c9aab7566b333f73e2aac50ad5c4f"
42
+ "gitHead": "68d387623e59f31de6b04926cb0d476f2e1715a0"
43
43
  }
@@ -10,6 +10,7 @@ import { IHeader } from '../zd-header/interfaces';
10
10
  export declare class Dashboard extends ComponentRender implements IDashboard {
11
11
  events: IDashboardEvents;
12
12
  editingMode: boolean;
13
+ showEditHeader: boolean;
13
14
  moveMode: boolean;
14
15
  cards: IDashboardCard[];
15
16
  addModal?: Modal;
@@ -18,6 +18,7 @@ export interface IDashboard extends IComponentRender {
18
18
  removePadding?: boolean;
19
19
  height?: string | number;
20
20
  heightAdjust?: string | number;
21
+ showEditHeader?: string | boolean;
21
22
  cardFooterSlot?: IComponentRender[];
22
23
  }
23
24
  export interface IDashboardCard extends Omit<ICard, 'name' | 'component'> {
@@ -15,4 +15,6 @@ export interface ITextarea extends ITextInput {
15
15
  rounded?: boolean;
16
16
  rowHeight?: number | string;
17
17
  rows?: number | string;
18
+ height?: number | string;
19
+ fillHeight?: number | string | boolean;
18
20
  }
@@ -48,6 +48,14 @@ export declare class Textarea extends TextInput implements ITextarea {
48
48
  * Default row count.
49
49
  */
50
50
  rows: number | string;
51
+ /**
52
+ * Input height
53
+ */
54
+ height: number | string;
55
+ /**
56
+ * Should input fill the remaining height
57
+ */
58
+ fillHeight: number | string | boolean;
51
59
  /**
52
60
  * Create a new Textarea.
53
61
  * @param props Textarea properties