@zeedhi/common 1.63.0 → 1.63.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.
package/dist/zd-common.esm.js
CHANGED
|
@@ -258,20 +258,6 @@ class Component {
|
|
|
258
258
|
this.isFocused = false;
|
|
259
259
|
this.callEvent('blur', { event, element, component: this });
|
|
260
260
|
}
|
|
261
|
-
mouseenter(event, element) {
|
|
262
|
-
this.callEvent('mouseenter', {
|
|
263
|
-
event: (event || new MouseEvent('mouseenter')),
|
|
264
|
-
element: (element || this.element),
|
|
265
|
-
component: this,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
mouseleave(event, element) {
|
|
269
|
-
this.callEvent('mouseleave', {
|
|
270
|
-
event: (event || new MouseEvent('mouseleave')),
|
|
271
|
-
element: (element || this.element),
|
|
272
|
-
component: this,
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
261
|
}
|
|
276
262
|
|
|
277
263
|
/**
|
|
@@ -5361,6 +5347,7 @@ class Grid extends Iterable {
|
|
|
5361
5347
|
this.dragColumns = this.getInitValue('dragColumns', props.dragColumns, this.dragColumns);
|
|
5362
5348
|
this.resizeColumns = this.getInitValue('resizeColumns', props.resizeColumns, this.resizeColumns);
|
|
5363
5349
|
this.loadingText = this.getInitValue('loadingText', props.loadingText, this.loadingText);
|
|
5350
|
+
this.rowStyleConditions = this.getInitValue('rowStyleConditions', props.rowStyleConditions, this.rowStyleConditions);
|
|
5364
5351
|
this.toolbarSlot = props.toolbarSlot || this.toolbarSlot;
|
|
5365
5352
|
this.footerSlot = props.footerSlot || this.footerSlot;
|
|
5366
5353
|
this.noDataSlot = props.noDataSlot || this.noDataSlot;
|
|
@@ -5588,6 +5575,12 @@ class Grid extends Iterable {
|
|
|
5588
5575
|
return !!this.disableSelection && typeof this.disableSelection === 'function'
|
|
5589
5576
|
&& this.disableSelection({ row, component: this });
|
|
5590
5577
|
}
|
|
5578
|
+
getRowStyleConditions(row) {
|
|
5579
|
+
if (typeof this.rowStyleConditions === 'function') {
|
|
5580
|
+
return this.rowStyleConditions(row);
|
|
5581
|
+
}
|
|
5582
|
+
return {};
|
|
5583
|
+
}
|
|
5591
5584
|
}
|
|
5592
5585
|
|
|
5593
5586
|
/**
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -265,20 +265,6 @@
|
|
|
265
265
|
this.isFocused = false;
|
|
266
266
|
this.callEvent('blur', { event, element, component: this });
|
|
267
267
|
}
|
|
268
|
-
mouseenter(event, element) {
|
|
269
|
-
this.callEvent('mouseenter', {
|
|
270
|
-
event: (event || new MouseEvent('mouseenter')),
|
|
271
|
-
element: (element || this.element),
|
|
272
|
-
component: this,
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
mouseleave(event, element) {
|
|
276
|
-
this.callEvent('mouseleave', {
|
|
277
|
-
event: (event || new MouseEvent('mouseleave')),
|
|
278
|
-
element: (element || this.element),
|
|
279
|
-
component: this,
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
268
|
}
|
|
283
269
|
|
|
284
270
|
/**
|
|
@@ -5368,6 +5354,7 @@
|
|
|
5368
5354
|
this.dragColumns = this.getInitValue('dragColumns', props.dragColumns, this.dragColumns);
|
|
5369
5355
|
this.resizeColumns = this.getInitValue('resizeColumns', props.resizeColumns, this.resizeColumns);
|
|
5370
5356
|
this.loadingText = this.getInitValue('loadingText', props.loadingText, this.loadingText);
|
|
5357
|
+
this.rowStyleConditions = this.getInitValue('rowStyleConditions', props.rowStyleConditions, this.rowStyleConditions);
|
|
5371
5358
|
this.toolbarSlot = props.toolbarSlot || this.toolbarSlot;
|
|
5372
5359
|
this.footerSlot = props.footerSlot || this.footerSlot;
|
|
5373
5360
|
this.noDataSlot = props.noDataSlot || this.noDataSlot;
|
|
@@ -5595,6 +5582,12 @@
|
|
|
5595
5582
|
return !!this.disableSelection && typeof this.disableSelection === 'function'
|
|
5596
5583
|
&& this.disableSelection({ row, component: this });
|
|
5597
5584
|
}
|
|
5585
|
+
getRowStyleConditions(row) {
|
|
5586
|
+
if (typeof this.rowStyleConditions === 'function') {
|
|
5587
|
+
return this.rowStyleConditions(row);
|
|
5588
|
+
}
|
|
5589
|
+
return {};
|
|
5590
|
+
}
|
|
5598
5591
|
}
|
|
5599
5592
|
|
|
5600
5593
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.63.
|
|
3
|
+
"version": "1.63.1",
|
|
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": "
|
|
42
|
+
"gitHead": "40d3771db8e7e77c1c30b3f9b1d6a68006d3242e"
|
|
43
43
|
}
|
|
@@ -164,6 +164,4 @@ export declare class Component implements IComponent {
|
|
|
164
164
|
* @param element Element that lost the focus
|
|
165
165
|
*/
|
|
166
166
|
blur(event: Event, element: any): void;
|
|
167
|
-
mouseenter(event?: Event, element?: any): void;
|
|
168
|
-
mouseleave(event?: Event, element?: any): void;
|
|
169
167
|
}
|
|
@@ -105,6 +105,11 @@ export declare class Grid extends Iterable implements IGrid {
|
|
|
105
105
|
* @public
|
|
106
106
|
*/
|
|
107
107
|
resizeColumns: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Enables column resizing
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
rowStyleConditions?: (row: IDictionary) => IDictionary;
|
|
108
113
|
/**
|
|
109
114
|
* Disable selection of specific rows using controller
|
|
110
115
|
* @public
|
|
@@ -178,4 +183,5 @@ export declare class Grid extends Iterable implements IGrid {
|
|
|
178
183
|
getActionComponent(actionComponent: IComponent, column: GridColumn, row: IDictionary, parentPath?: string): IComponent;
|
|
179
184
|
protected changeDefaultSlotNames(slot: IComponentRender[]): any;
|
|
180
185
|
callDisableSelection(row: IDictionary<any>): boolean;
|
|
186
|
+
getRowStyleConditions(row: IDictionary<any>): IDictionary<any>;
|
|
181
187
|
}
|