@zeedhi/common 1.45.0 → 1.45.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
|
@@ -8310,11 +8310,16 @@ class SelectMultiple extends Select {
|
|
|
8310
8310
|
* Number of hidden items
|
|
8311
8311
|
*/
|
|
8312
8312
|
this.moreChip = 0;
|
|
8313
|
+
/**
|
|
8314
|
+
* Max number of rows the component can have
|
|
8315
|
+
*/
|
|
8316
|
+
this.maxRows = undefined;
|
|
8313
8317
|
this.showSelectAll = false;
|
|
8314
8318
|
if (!this.selectedValue) {
|
|
8315
8319
|
this.selectedValue = [];
|
|
8316
8320
|
}
|
|
8317
8321
|
this.showSelectAll = this.getInitValue('showSelectAll', props.showSelectAll, this.showSelectAll);
|
|
8322
|
+
this.maxRows = this.getInitValue('maxRows', props.maxRows, this.maxRows);
|
|
8318
8323
|
this.createAccessors();
|
|
8319
8324
|
}
|
|
8320
8325
|
afterFocus() {
|
|
@@ -8490,6 +8495,21 @@ class SelectMultiple extends Select {
|
|
|
8490
8495
|
removePushedValue() {
|
|
8491
8496
|
this.removeInserts();
|
|
8492
8497
|
}
|
|
8498
|
+
doSearch(value) {
|
|
8499
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8500
|
+
if (this.manualMode || value) {
|
|
8501
|
+
yield this.updateSearch(value);
|
|
8502
|
+
}
|
|
8503
|
+
else {
|
|
8504
|
+
if (!this.manualMode) {
|
|
8505
|
+
this.datasource.data = [...this.cachedData];
|
|
8506
|
+
this.datasource.total = this.cachedTotal;
|
|
8507
|
+
}
|
|
8508
|
+
this.removeInserts();
|
|
8509
|
+
this.insertSelected();
|
|
8510
|
+
}
|
|
8511
|
+
});
|
|
8512
|
+
}
|
|
8493
8513
|
/**
|
|
8494
8514
|
* Removes unselected inserts from datasource
|
|
8495
8515
|
*/
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -8317,11 +8317,16 @@
|
|
|
8317
8317
|
* Number of hidden items
|
|
8318
8318
|
*/
|
|
8319
8319
|
this.moreChip = 0;
|
|
8320
|
+
/**
|
|
8321
|
+
* Max number of rows the component can have
|
|
8322
|
+
*/
|
|
8323
|
+
this.maxRows = undefined;
|
|
8320
8324
|
this.showSelectAll = false;
|
|
8321
8325
|
if (!this.selectedValue) {
|
|
8322
8326
|
this.selectedValue = [];
|
|
8323
8327
|
}
|
|
8324
8328
|
this.showSelectAll = this.getInitValue('showSelectAll', props.showSelectAll, this.showSelectAll);
|
|
8329
|
+
this.maxRows = this.getInitValue('maxRows', props.maxRows, this.maxRows);
|
|
8325
8330
|
this.createAccessors();
|
|
8326
8331
|
}
|
|
8327
8332
|
afterFocus() {
|
|
@@ -8497,6 +8502,21 @@
|
|
|
8497
8502
|
removePushedValue() {
|
|
8498
8503
|
this.removeInserts();
|
|
8499
8504
|
}
|
|
8505
|
+
doSearch(value) {
|
|
8506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8507
|
+
if (this.manualMode || value) {
|
|
8508
|
+
yield this.updateSearch(value);
|
|
8509
|
+
}
|
|
8510
|
+
else {
|
|
8511
|
+
if (!this.manualMode) {
|
|
8512
|
+
this.datasource.data = [...this.cachedData];
|
|
8513
|
+
this.datasource.total = this.cachedTotal;
|
|
8514
|
+
}
|
|
8515
|
+
this.removeInserts();
|
|
8516
|
+
this.insertSelected();
|
|
8517
|
+
}
|
|
8518
|
+
});
|
|
8519
|
+
}
|
|
8500
8520
|
/**
|
|
8501
8521
|
* Removes unselected inserts from datasource
|
|
8502
8522
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.1",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"lodash.times": "^4.3.2",
|
|
38
38
|
"mockdate": "^3.0.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "48ccd8cb489384bbdedb6f649504ca64d9d6fc1c"
|
|
41
41
|
}
|
|
@@ -176,7 +176,7 @@ export declare class Select extends TextInput implements ISelect {
|
|
|
176
176
|
* Update datasource items
|
|
177
177
|
*/
|
|
178
178
|
updateItems(items: (string | number)[]): Promise<any>;
|
|
179
|
-
|
|
179
|
+
protected doSearch(value: string): Promise<void>;
|
|
180
180
|
private debounceSearch;
|
|
181
181
|
/**
|
|
182
182
|
* Load more data
|
|
@@ -15,6 +15,10 @@ export declare class SelectMultiple extends Select implements ISelectMultiple {
|
|
|
15
15
|
* Number of hidden items
|
|
16
16
|
*/
|
|
17
17
|
moreChip: number;
|
|
18
|
+
/**
|
|
19
|
+
* Max number of rows the component can have
|
|
20
|
+
*/
|
|
21
|
+
maxRows?: string | number;
|
|
18
22
|
protected afterFocus(): Promise<void>;
|
|
19
23
|
private setCache;
|
|
20
24
|
showSelectAll: boolean;
|
|
@@ -61,6 +65,7 @@ export declare class SelectMultiple extends Select implements ISelectMultiple {
|
|
|
61
65
|
*/
|
|
62
66
|
private insertSelected;
|
|
63
67
|
protected removePushedValue(): void;
|
|
68
|
+
protected doSearch(value: string): Promise<void>;
|
|
64
69
|
/**
|
|
65
70
|
* Removes unselected inserts from datasource
|
|
66
71
|
*/
|