@zeedhi/common 1.115.0 → 1.117.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.
package/dist/zd-common.esm.js
CHANGED
|
@@ -5669,7 +5669,8 @@ class IterableController {
|
|
|
5669
5669
|
}
|
|
5670
5670
|
get searchIn() {
|
|
5671
5671
|
return this.searchInValue || this.iterable.columns.reduce((result, column) => {
|
|
5672
|
-
if (column.type !== 'action'
|
|
5672
|
+
if (column.type !== 'action'
|
|
5673
|
+
&& this.iterable.isColumnSearchable(column))
|
|
5673
5674
|
result.push(column.name);
|
|
5674
5675
|
return result;
|
|
5675
5676
|
}, []);
|
|
@@ -5859,9 +5860,7 @@ class Iterable extends ComponentRender {
|
|
|
5859
5860
|
});
|
|
5860
5861
|
}
|
|
5861
5862
|
isColumnSearchable(column) {
|
|
5862
|
-
return column.searchable
|
|
5863
|
-
&& (!this.searchVisibleOnly || column.isVisible)
|
|
5864
|
-
&& (this.searchIn === undefined || this.searchIn === column.name);
|
|
5863
|
+
return column.searchable && (!this.searchVisibleOnly || column.isVisible);
|
|
5865
5864
|
}
|
|
5866
5865
|
}
|
|
5867
5866
|
Messages.add({
|
|
@@ -10580,12 +10579,13 @@ class Select extends TextInput {
|
|
|
10580
10579
|
name: `${this.name}-modal-selection-content-container`,
|
|
10581
10580
|
component: 'ZdContainer',
|
|
10582
10581
|
scrollView: true,
|
|
10583
|
-
cssClass: 'zd-my-2 zd-pa-0 zd-select-modal-selection-content-container',
|
|
10582
|
+
cssClass: 'zd-my-2 zd-pa-0 zd-select-modal-selection-content-container zd-display-flex',
|
|
10584
10583
|
children: [
|
|
10585
10584
|
{
|
|
10586
10585
|
name: `${this.name}-modal-selection-grid`,
|
|
10587
10586
|
component: 'ZdGrid',
|
|
10588
10587
|
cssClass: 'zd-my-2 zd-pa-0 zd-select-modal-selection-grid',
|
|
10588
|
+
maxHeight: '100%',
|
|
10589
10589
|
columns: this.modalSelectionColumns,
|
|
10590
10590
|
datasource: Object.assign(Object.assign({}, this.datasource.clone()), { limit: this.defaultDatasource.limit, lazyLoad: false, searchIn: undefined }),
|
|
10591
10591
|
toolbarSlot: [
|
|
@@ -15642,7 +15642,6 @@ class TreeGridEditable extends TreeGrid {
|
|
|
15642
15642
|
this.editing = false;
|
|
15643
15643
|
this.singleEdit = false;
|
|
15644
15644
|
/**
|
|
15645
|
-
* Edited rows
|
|
15646
15645
|
* @private
|
|
15647
15646
|
*/
|
|
15648
15647
|
this.editedRows = {};
|
|
@@ -15799,6 +15798,13 @@ class TreeGridEditable extends TreeGrid {
|
|
|
15799
15798
|
}
|
|
15800
15799
|
return row[column.valueIn];
|
|
15801
15800
|
}
|
|
15801
|
+
getVisibleRow(row) {
|
|
15802
|
+
const visibleRow = Object.assign({}, row);
|
|
15803
|
+
this.columns.forEach((column) => {
|
|
15804
|
+
visibleRow[column.valueIn] = this.getVisibleValue(row, column);
|
|
15805
|
+
});
|
|
15806
|
+
return visibleRow;
|
|
15807
|
+
}
|
|
15802
15808
|
/**
|
|
15803
15809
|
* Returns editable component properties based on the column definition
|
|
15804
15810
|
* @param column Column definition
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -5676,7 +5676,8 @@
|
|
|
5676
5676
|
}
|
|
5677
5677
|
get searchIn() {
|
|
5678
5678
|
return this.searchInValue || this.iterable.columns.reduce((result, column) => {
|
|
5679
|
-
if (column.type !== 'action'
|
|
5679
|
+
if (column.type !== 'action'
|
|
5680
|
+
&& this.iterable.isColumnSearchable(column))
|
|
5680
5681
|
result.push(column.name);
|
|
5681
5682
|
return result;
|
|
5682
5683
|
}, []);
|
|
@@ -5866,9 +5867,7 @@
|
|
|
5866
5867
|
});
|
|
5867
5868
|
}
|
|
5868
5869
|
isColumnSearchable(column) {
|
|
5869
|
-
return column.searchable
|
|
5870
|
-
&& (!this.searchVisibleOnly || column.isVisible)
|
|
5871
|
-
&& (this.searchIn === undefined || this.searchIn === column.name);
|
|
5870
|
+
return column.searchable && (!this.searchVisibleOnly || column.isVisible);
|
|
5872
5871
|
}
|
|
5873
5872
|
}
|
|
5874
5873
|
core.Messages.add({
|
|
@@ -10587,12 +10586,13 @@
|
|
|
10587
10586
|
name: `${this.name}-modal-selection-content-container`,
|
|
10588
10587
|
component: 'ZdContainer',
|
|
10589
10588
|
scrollView: true,
|
|
10590
|
-
cssClass: 'zd-my-2 zd-pa-0 zd-select-modal-selection-content-container',
|
|
10589
|
+
cssClass: 'zd-my-2 zd-pa-0 zd-select-modal-selection-content-container zd-display-flex',
|
|
10591
10590
|
children: [
|
|
10592
10591
|
{
|
|
10593
10592
|
name: `${this.name}-modal-selection-grid`,
|
|
10594
10593
|
component: 'ZdGrid',
|
|
10595
10594
|
cssClass: 'zd-my-2 zd-pa-0 zd-select-modal-selection-grid',
|
|
10595
|
+
maxHeight: '100%',
|
|
10596
10596
|
columns: this.modalSelectionColumns,
|
|
10597
10597
|
datasource: Object.assign(Object.assign({}, this.datasource.clone()), { limit: this.defaultDatasource.limit, lazyLoad: false, searchIn: undefined }),
|
|
10598
10598
|
toolbarSlot: [
|
|
@@ -15649,7 +15649,6 @@
|
|
|
15649
15649
|
this.editing = false;
|
|
15650
15650
|
this.singleEdit = false;
|
|
15651
15651
|
/**
|
|
15652
|
-
* Edited rows
|
|
15653
15652
|
* @private
|
|
15654
15653
|
*/
|
|
15655
15654
|
this.editedRows = {};
|
|
@@ -15806,6 +15805,13 @@
|
|
|
15806
15805
|
}
|
|
15807
15806
|
return row[column.valueIn];
|
|
15808
15807
|
}
|
|
15808
|
+
getVisibleRow(row) {
|
|
15809
|
+
const visibleRow = Object.assign({}, row);
|
|
15810
|
+
this.columns.forEach((column) => {
|
|
15811
|
+
visibleRow[column.valueIn] = this.getVisibleValue(row, column);
|
|
15812
|
+
});
|
|
15813
|
+
return visibleRow;
|
|
15814
|
+
}
|
|
15809
15815
|
/**
|
|
15810
15816
|
* Returns editable component properties based on the column definition
|
|
15811
15817
|
* @param column Column definition
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.117.0",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"lodash.times": "4.3.*",
|
|
44
44
|
"mockdate": "3.0.*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1cd9b5bd4a92490d74e16a022a1c1407a37fd9a6"
|
|
47
47
|
}
|
|
@@ -22,7 +22,6 @@ export declare class TreeGridEditable extends TreeGrid implements ITreeGridEdita
|
|
|
22
22
|
}) => boolean;
|
|
23
23
|
singleEdit: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Edited rows
|
|
26
25
|
* @private
|
|
27
26
|
*/
|
|
28
27
|
private editedRows;
|
|
@@ -92,6 +91,9 @@ export declare class TreeGridEditable extends TreeGrid implements ITreeGridEdita
|
|
|
92
91
|
*/
|
|
93
92
|
selectAllClick(isSelected: boolean, event?: Event, element?: any): void;
|
|
94
93
|
getVisibleValue(row: IDictionary, column: GridColumnEditable): any;
|
|
94
|
+
getVisibleRow(row: IDictionary): {
|
|
95
|
+
[x: string]: any;
|
|
96
|
+
};
|
|
95
97
|
/**
|
|
96
98
|
* Returns editable component properties based on the column definition
|
|
97
99
|
* @param column Column definition
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IJSONObject {
|
|
2
|
+
path: string;
|
|
3
|
+
}
|
|
4
|
+
export declare class JsonCacheService {
|
|
5
|
+
/**
|
|
6
|
+
* jsons collection
|
|
7
|
+
*/
|
|
8
|
+
static jsonCollection: IJSONObject[];
|
|
9
|
+
static saveJSONCache(jsonCollection: IJSONObject[]): Promise<void>;
|
|
10
|
+
static getJSONCache(path: string): any;
|
|
11
|
+
static clearJSONCache(jsonCollection: IJSONObject[]): void;
|
|
12
|
+
}
|