data-grid-workspace 0.0.120 → 0.0.121
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-data-grid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.121",
|
|
4
4
|
"description": "A powerful, customizable Angular data grid component with advanced features like sorting, filtering, pagination, column pinning, and taskbar actions. Perfect for enterprise applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -4949,8 +4949,8 @@
|
|
|
4949
4949
|
>
|
|
4950
4950
|
<div class="d-flex gap-1">
|
|
4951
4951
|
<div style="margin-top: -3px"></div>
|
|
4952
|
-
<div class="fw-semibold">
|
|
4953
|
-
{{ col.header }}
|
|
4952
|
+
<div class="fw-semibold text-capitalize" style="text-transform: capitalize;">
|
|
4953
|
+
{{ col.header | titlecase }}
|
|
4954
4954
|
</div>
|
|
4955
4955
|
</div>
|
|
4956
4956
|
</div>
|
|
@@ -4981,9 +4981,9 @@
|
|
|
4981
4981
|
>
|
|
4982
4982
|
<span
|
|
4983
4983
|
*ngFor="let selected of selectedFilterOptions"
|
|
4984
|
-
class="badge d-flex align-items-center gap-1 me-1 mb-1 top-row-filter-dropdown"
|
|
4984
|
+
class="badge d-flex align-items-center gap-1 me-1 mb-1 top-row-filter-dropdown text-capitalize" style="text-transform: capitalize;"
|
|
4985
4985
|
>
|
|
4986
|
-
{{ selected?.value ? selected.value : selected }}
|
|
4986
|
+
{{ selected?.value ? selected.value : selected | titlecase }}
|
|
4987
4987
|
<span
|
|
4988
4988
|
(click)="toggleSelectionInFilter(selected)"
|
|
4989
4989
|
[inlineSVG]="
|
|
@@ -5024,8 +5024,8 @@
|
|
|
5024
5024
|
[checked]="currentFilterSelectedIds.has(col.id || col._id || col)"
|
|
5025
5025
|
(change)="toggleSelectionInFilter(col)"
|
|
5026
5026
|
/>
|
|
5027
|
-
<label class="form-check-label fw-semibold" [for]="i">
|
|
5028
|
-
{{ col?.value || col?.name || col }}
|
|
5027
|
+
<label class="form-check-label fw-semibold text-capitalize" style="text-transform: capitalize;" [for]="i">
|
|
5028
|
+
{{ col?.value || col?.name || col | titlecase }}
|
|
5029
5029
|
</label>
|
|
5030
5030
|
</div>
|
|
5031
5031
|
</div>
|
|
@@ -422,6 +422,7 @@ export class DataGridComponent implements OnChanges, AfterViewInit, OnInit, Afte
|
|
|
422
422
|
// Table Config for paginations is here
|
|
423
423
|
@Input() config: any;
|
|
424
424
|
|
|
425
|
+
@Input() selectedTab: string = '';
|
|
425
426
|
|
|
426
427
|
// Selection task bar
|
|
427
428
|
@Input() showTaskbar = false
|
|
@@ -849,7 +850,9 @@ export class DataGridComponent implements OnChanges, AfterViewInit, OnInit, Afte
|
|
|
849
850
|
if (changes['tabs']) {
|
|
850
851
|
if (changes['tabs']) {
|
|
851
852
|
const allTabs = JSON.parse(localStorage.getItem('activeTabs') || '{}');
|
|
852
|
-
|
|
853
|
+
let savedTab
|
|
854
|
+
this.selectedTab ? ( savedTab = this.selectedTab ) : ( savedTab = allTabs[this.tableType])
|
|
855
|
+
// const savedTab = allTabs[this.tableType];
|
|
853
856
|
if (this.tabs.includes('Current Policy')) {
|
|
854
857
|
this.activeTab = this.tabs?.[1] || 'Current Policy';
|
|
855
858
|
} else {
|
|
@@ -4224,7 +4227,9 @@ private findColumn(columns: any[], field: string): any {
|
|
|
4224
4227
|
data: { ...originValue },
|
|
4225
4228
|
eventType: 'onCellEdit',
|
|
4226
4229
|
value: value,
|
|
4227
|
-
column: column
|
|
4230
|
+
column: column,
|
|
4231
|
+
type: this.tableType,
|
|
4232
|
+
values: column.type == 'array' ? [value] : undefined
|
|
4228
4233
|
};
|
|
4229
4234
|
return this.genericEvent.emit(sendObj)
|
|
4230
4235
|
// }, 100);
|
|
@@ -5885,6 +5890,7 @@ private findColumn(columns: any[], field: string): any {
|
|
|
5885
5890
|
this.genericEvent.emit({
|
|
5886
5891
|
data: updatedRows?.updateRows,
|
|
5887
5892
|
eventType: 'onCellEdit',
|
|
5893
|
+
type: this.tableType,
|
|
5888
5894
|
column: updatedRows?.currentColums
|
|
5889
5895
|
});
|
|
5890
5896
|
}
|