ngx-deebodata 0.0.2 → 0.0.3
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/fesm2022/ngx-deebodata.mjs +6863 -0
- package/fesm2022/ngx-deebodata.mjs.map +1 -0
- package/package.json +35 -16
- package/types/ngx-deebodata.d.ts +439 -0
- package/ng-package.json +0 -7
- package/src/lib/data-table/charts/bar-graph-component/bar-graph-component.css +0 -156
- package/src/lib/data-table/charts/bar-graph-component/bar-graph-component.html +0 -29
- package/src/lib/data-table/charts/bar-graph-component/bar-graph-component.spec.ts +0 -23
- package/src/lib/data-table/charts/bar-graph-component/bar-graph-component.ts +0 -286
- package/src/lib/data-table/charts/charts-and-graphs/charts-and-graphs.css +0 -27
- package/src/lib/data-table/charts/charts-and-graphs/charts-and-graphs.html +0 -53
- package/src/lib/data-table/charts/charts-and-graphs/charts-and-graphs.spec.ts +0 -23
- package/src/lib/data-table/charts/charts-and-graphs/charts-and-graphs.ts +0 -214
- package/src/lib/data-table/charts/column-chart/column-chart.css +0 -19
- package/src/lib/data-table/charts/column-chart/column-chart.html +0 -47
- package/src/lib/data-table/charts/column-chart/column-chart.spec.ts +0 -23
- package/src/lib/data-table/charts/column-chart/column-chart.ts +0 -178
- package/src/lib/data-table/charts/line-graph-component/line-graph-component.css +0 -33
- package/src/lib/data-table/charts/line-graph-component/line-graph-component.html +0 -59
- package/src/lib/data-table/charts/line-graph-component/line-graph-component.spec.ts +0 -23
- package/src/lib/data-table/charts/line-graph-component/line-graph-component.ts +0 -661
- package/src/lib/data-table/charts/num-value-distro-component/num-value-distro-component.css +0 -61
- package/src/lib/data-table/charts/num-value-distro-component/num-value-distro-component.html +0 -27
- package/src/lib/data-table/charts/num-value-distro-component/num-value-distro-component.spec.ts +0 -23
- package/src/lib/data-table/charts/num-value-distro-component/num-value-distro-component.ts +0 -210
- package/src/lib/data-table/charts/pie-graph-component/pie-graph-component.css +0 -0
- package/src/lib/data-table/charts/pie-graph-component/pie-graph-component.html +0 -15
- package/src/lib/data-table/charts/pie-graph-component/pie-graph-component.spec.ts +0 -23
- package/src/lib/data-table/charts/pie-graph-component/pie-graph-component.ts +0 -197
- package/src/lib/data-table/data-table-module/data-cell/data-cell.css +0 -0
- package/src/lib/data-table/data-table-module/data-cell/data-cell.html +0 -6
- package/src/lib/data-table/data-table-module/data-cell/data-cell.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/data-cell/data-cell.ts +0 -271
- package/src/lib/data-table/data-table-module/data-table-header/data-table-header.css +0 -25
- package/src/lib/data-table/data-table-module/data-table-header/data-table-header.html +0 -55
- package/src/lib/data-table/data-table-module/data-table-header/data-table-header.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/data-table-header/data-table-header.ts +0 -261
- package/src/lib/data-table/data-table-module/data-table-paginator/data-table-paginator.css +0 -69
- package/src/lib/data-table/data-table-module/data-table-paginator/data-table-paginator.html +0 -24
- package/src/lib/data-table/data-table-module/data-table-paginator/data-table-paginator.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/data-table-paginator/data-table-paginator.ts +0 -125
- package/src/lib/data-table/data-table-module/export-component/export-component.css +0 -91
- package/src/lib/data-table/data-table-module/export-component/export-component.html +0 -16
- package/src/lib/data-table/data-table-module/export-component/export-component.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/export-component/export-component.ts +0 -206
- package/src/lib/data-table/data-table-module/ngx-deebodata/ngx-deebodata.css +0 -91
- package/src/lib/data-table/data-table-module/ngx-deebodata/ngx-deebodata.html +0 -193
- package/src/lib/data-table/data-table-module/ngx-deebodata/ngx-deebodata.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/ngx-deebodata/ngx-deebodata.ts +0 -2226
- package/src/lib/data-table/data-table-module/row-group-menu/row-group-menu.css +0 -14
- package/src/lib/data-table/data-table-module/row-group-menu/row-group-menu.html +0 -27
- package/src/lib/data-table/data-table-module/row-group-menu/row-group-menu.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/row-group-menu/row-group-menu.ts +0 -58
- package/src/lib/data-table/data-table-module/row-group-panel/row-group-panel.css +0 -23
- package/src/lib/data-table/data-table-module/row-group-panel/row-group-panel.html +0 -48
- package/src/lib/data-table/data-table-module/row-group-panel/row-group-panel.spec.ts +0 -23
- package/src/lib/data-table/data-table-module/row-group-panel/row-group-panel.ts +0 -599
- package/src/lib/data-table/data-table-module/worker.worker.ts +0 -44
- package/src/lib/interfaces/cell-edit.ts +0 -5
- package/src/lib/interfaces/column-header.ts +0 -10
- package/src/lib/interfaces/column-styles.ts +0 -14
- package/src/lib/interfaces/column-symbol.ts +0 -4
- package/src/lib/interfaces/data-cell.ts +0 -14
- package/src/lib/interfaces/data-row.ts +0 -11
- package/src/lib/interfaces/row-number.ts +0 -4
- package/src/lib/services/common-service.spec.ts +0 -16
- package/src/lib/services/common-service.ts +0 -336
- package/src/lib/services/data-table-service.spec.ts +0 -16
- package/src/lib/services/data-table-service.ts +0 -597
- package/src/lib/services/table-drag-service.spec.ts +0 -16
- package/src/lib/services/table-drag-service.ts +0 -347
- package/src/lib/styles.css +0 -1065
- package/src/public-api.ts +0 -8
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -15
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
<div class="deebo-data-grid-section">
|
|
2
|
-
<div class="hidden-cols">
|
|
3
|
-
@for (hcol of hiddenCols; track hcol) {
|
|
4
|
-
<button type="button" class="btn-maximize-col" (click)="maximizeColCells(hcol)">{{hcol}}</button>
|
|
5
|
-
}
|
|
6
|
-
</div>
|
|
7
|
-
<div class="controls" >
|
|
8
|
-
<input type="text" #topLevelDataFilter autocomplete="off" name="topLevelDataFilter" placeholder="Filter any column..."
|
|
9
|
-
(input)="topFilterOnKeyUp($event)" (keyup)="topFilterOnKeyUp($event)" maxlength="255" [(ngModel)]="topLevelFilter"
|
|
10
|
-
[disabled]="dataTableService.showCharts() || !dataTableService.mainData.length || handlingSelRows" autocomplete="off" />
|
|
11
|
-
@if(currGroupValues().length){
|
|
12
|
-
<button type="button" class="no-btn btn-clear-grp" (click)="processGrouping(null)">
|
|
13
|
-
<i class="material-icons error-message heavy v-mid" aria-hidden="false">close</i> <span class="md-text v-mid">Grouping</span>
|
|
14
|
-
</button>
|
|
15
|
-
}
|
|
16
|
-
<button type="button" class="no-btn btn-chart" (click)="openCharts()" [disabled]="dataTableService.showCharts() || !dataTableService.currFilData.length || handlingSelRows || !common.goodLs()">
|
|
17
|
-
<i class="material-icons v-mid" aria-hidden="false">bar_chart</i> <span class="v-mid">Insights</span>
|
|
18
|
-
</button>
|
|
19
|
-
<button type="button" [disabled]="!dataTableService.currSelRows.length || handlingSelRows" (click)="clearSelectedRows()" class="btn-ctrl-sel-rows">Deselect Rows</button>
|
|
20
|
-
<button #btnTogSelRows type="button" [disabled]="!dataTableService.currSelRows.length || handlingSelRows" (click)="toggleSelectedRows()" class="btn-ctrl-sel-rows">
|
|
21
|
-
<i class="material-icons" aria-hidden="false">check_box_outline_blank</i> <span>{{togSelRows}}</span>
|
|
22
|
-
</button>
|
|
23
|
-
<button [disabled]="!topLevelFilter && dataTableService.arefilSrtTrkPropsDefault()"
|
|
24
|
-
class="btn-reset" (click)="resetCurrentData()" >Reset</button>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="relly" [ngClass]="{'dt-checks': rowNumbers, 'hide' : isMultiFiltering() || dataTableService.isFiltering() ||
|
|
27
|
-
dataTableService.isSorting() || currGroupValues().length || currSelEditOpts.length }">
|
|
28
|
-
@for (chk of dtChecks; track $index) {
|
|
29
|
-
<input [id]="'checkDataTableRow' + chk" class="select-row-check invisible"
|
|
30
|
-
[checked]="dataTableService.currSelRows.indexOf(chk) > -1" type="checkbox" [name]="'checkDataTableRow' + chk"
|
|
31
|
-
(click)="toggleSingleRowSelected(chk)" (keyup.enter)="toggleSingleRowSelected(chk)" [value]="'dataTableRow' + chk" >
|
|
32
|
-
}
|
|
33
|
-
</div>
|
|
34
|
-
<div #selFilContainer class="relly sel-fil-container">
|
|
35
|
-
<div class="selfil-opt-contain" [ngStyle]="ddFilStyle">
|
|
36
|
-
@for (opt of currFilOpts; track opt; let i = $index) {
|
|
37
|
-
<div class="selfil-div">
|
|
38
|
-
<label [for]="'selfilOpt' + currDDFilter + i" class="'selfil-lbl-' + currDDFilter"><input [id]="'selfilOpt' + currDDFilter + i"
|
|
39
|
-
[class]="'selfil-opt-' + currDDFilter" (input)="handleMultiSelFilter(currDDFilter, opt.value, $event.target.checked)"
|
|
40
|
-
(click)="handleMultiSelFilter(currDDFilter, opt.value, $event.target.checked)" [name]="'selfilOpt' + currDDFilter + i"
|
|
41
|
-
[checked]="opt.checked" [value]="opt.value" [disabled]="isMultiFiltering()" type="checkbox" />{{opt.value || "(Blank)"}}</label>
|
|
42
|
-
</div>
|
|
43
|
-
}
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
<div #validatedEdit class="relly special-edit-container invisible">
|
|
47
|
-
@if (validatedEditType === 'date'){
|
|
48
|
-
<input id="selEditDate" name="selEditDate" type="date" class="edit-input"
|
|
49
|
-
(change)="execCellEdit($event, true)" (input)="execCellEdit($event, true)" (blur)="execCellEdit($event)" />
|
|
50
|
-
}
|
|
51
|
-
@if (validatedEditType === 'number'){
|
|
52
|
-
<input id="selEditNum" name="selEditNum" type="number" class="edit-input"
|
|
53
|
-
(keyup)="execCellEdit($event, true)" (input)="execCellEdit($event, true)" (blur)="execCellEdit($event)" (keyup.enter)="execCellEdit($event)" />
|
|
54
|
-
}
|
|
55
|
-
@if (validatedEditType === 'text'){
|
|
56
|
-
<div class="relly edit-input">
|
|
57
|
-
<div class="edit-input-option-cont">
|
|
58
|
-
<div tabindex="0" (click)="execCellEdit($event, false, null)" class="edit-input-opt">-</div>
|
|
59
|
-
@for (opt of currSelEditOpts; track opt.value) {
|
|
60
|
-
<div tabindex="0" class="edit-input-opt"
|
|
61
|
-
(click)="execCellEdit($event, false, opt.value)">{{opt.value || "(Blank)"}}</div>
|
|
62
|
-
}
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
}
|
|
66
|
-
</div>
|
|
67
|
-
<div class="relly" style="z-index: 6;">
|
|
68
|
-
<div #fCellDragger tabindex="0" id="fCellDragger" (focus)="focusCellDragger()" (blur)="execValClear(true)"
|
|
69
|
-
(mousedown)="focusCellDraggerFromMouseDown()" (keydown)="handleFDragTab($event)" (keydown)="handleDraggerKD($event)"
|
|
70
|
-
[ngClass]="{'hide': dataTableService.currEditIndex < 0, 'focused-cell-dragger': dataTableService.currEditIndex > -1 }"></div>
|
|
71
|
-
</div>
|
|
72
|
-
@if(dataTableService.showCharts() && common.goodLs()){
|
|
73
|
-
<app-charts-and-graphs
|
|
74
|
-
[height]="chartHgt"
|
|
75
|
-
[state]="chartState"
|
|
76
|
-
[chartColumns]="columnsForCharts"
|
|
77
|
-
(close)="closeCharts($event)"
|
|
78
|
-
></app-charts-and-graphs>
|
|
79
|
-
}
|
|
80
|
-
<div [ngClass]="{'row-numbers': rowNumbers && !dataTableService.showCharts() && !currGroupValues().length, 'hide': !rowNumbers || dataTableService.showCharts() || currGroupValues().length}" >
|
|
81
|
-
<div #rowNumHeader class="row-num-header flex-center"><div class="semi-heavy">No.</div></div>
|
|
82
|
-
<div style="overflow: hidden;" [style.height]="dataTableService.dTblHeight + 'px'">
|
|
83
|
-
<div #rowNumBody style="overflow: auto">
|
|
84
|
-
@for (num of rowNos; track num.number) {
|
|
85
|
-
<div [id]="'rn' + num.number" class="flex-center num-row" [style.height]="num.height || dataTableService.defltRHgt">
|
|
86
|
-
<div class="small-text">{{num.number | number}}</div>
|
|
87
|
-
</div>
|
|
88
|
-
}
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
</div><div #dataTable class="data-table" [class.inline-table]="rowNumbers && !dataTableService.showCharts() && !currGroupValues().length">
|
|
92
|
-
<div #dataTableHeaders class="data-table-headers">
|
|
93
|
-
@for (col of columnHeaders; track col.column; let i = $index) {
|
|
94
|
-
<app-data-table-header
|
|
95
|
-
[columnHeader]="col"
|
|
96
|
-
[colWid]="dataTableService.useColWid"
|
|
97
|
-
[hideMinCol]="col.hideMinCol"
|
|
98
|
-
[canFreeze]="i === 0 ? true : false"
|
|
99
|
-
(reset)="resetCurrentData($event)"
|
|
100
|
-
(freeze)="freezeColCells($event)"
|
|
101
|
-
(minimize)="minimizeColEls($event)"
|
|
102
|
-
(filFocus)="handleFilFocus($event)"
|
|
103
|
-
(scrollOnFocus)="checkTabHorizScroll($event)"
|
|
104
|
-
(emitCompFocus)="killSelFilOpts(true)"
|
|
105
|
-
(filSelClick)="handleWinClickOnSelFil()"
|
|
106
|
-
(height)="setHeaderHeight($event, true)"
|
|
107
|
-
(render)="renderCurrData(false, $event.field)"
|
|
108
|
-
(width)="handleSingleColResize($event.value, $event.column)"
|
|
109
|
-
></app-data-table-header>
|
|
110
|
-
}
|
|
111
|
-
</div>
|
|
112
|
-
<div #dataTableBody id="dataTableBody" style="overflow: auto;" [style.height]="dataTableService.dTblHeight + 'px'" (scroll)="handleScroll($event)"
|
|
113
|
-
[class.table-working]="isMultiFiltering() || dataTableService.isFiltering() || dataTableService.isSorting()" (scrollend)="handleScrollEnd()">
|
|
114
|
-
<div #aboveArea [style.height]="aboveHgt() + 'px'"></div>
|
|
115
|
-
@for(row of rows; track row.index){
|
|
116
|
-
<div [id]="row.id" class="data-table-row" [attr.data-index]="row.index"
|
|
117
|
-
[class.data-row-selected]="!dataTableService.displayOnlySelRows && dataTableService.currSelRows.indexOf(row.index) > -1"
|
|
118
|
-
[ngStyle]="{'width': row.width, 'height': row.height}" >
|
|
119
|
-
@for(cell of row.cells; track cell.column){
|
|
120
|
-
@if (isScrolling){
|
|
121
|
-
<div class="data-cell data-cell-{{common.elifyCol(cell.column)}}{{cell.specialColClass}}" [class.data-cell-riiight]="cell.dataType === 'number'"
|
|
122
|
-
[ngClass]="{ 'col-item-freeze': cell.freeze, 'col-header-minimized': cell.minimized, 'holding-check': cell.column === dataTableService.firstCol }"
|
|
123
|
-
[ngStyle]="{'width': cell.width || dataTableService.useColWid, 'height': row.height}" >{{cell.text}}@if (cell.html){<div class="mock-html"></div>}</div>
|
|
124
|
-
} @else {
|
|
125
|
-
<app-data-cell [cell]="cell"
|
|
126
|
-
[rowId]="row.id"
|
|
127
|
-
[rawText]="cell.rawText"
|
|
128
|
-
[rowHeight]="row.height || ''"
|
|
129
|
-
(edit)="execCellEdit($event)"
|
|
130
|
-
(mousedown)="checkCellEditOnClick()"
|
|
131
|
-
[columnValClass]="cell.specialColClass"
|
|
132
|
-
(dragListen)="listenToCellDraggerMouseMove = $event"
|
|
133
|
-
[colWid]="cell.width || dataTableService.useColWid"
|
|
134
|
-
(width)="handleSingleColResize($event)"
|
|
135
|
-
(height)="setSingleRowHgt($event, row.id, true)"
|
|
136
|
-
(clearVEditFocus)="validatedEditType = $event"
|
|
137
|
-
(validateEditFocus)="handleValidatedCellEditFocus($event)"
|
|
138
|
-
></app-data-cell>
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
</div>
|
|
142
|
-
}
|
|
143
|
-
<div #belowArea [style.height]="belowHgt() + 'px'"></div>
|
|
144
|
-
@for(group of currGroupValues(); track group){
|
|
145
|
-
<app-row-group-panel
|
|
146
|
-
[groupValue]="group.value"
|
|
147
|
-
[maxCols]="maxCols"
|
|
148
|
-
[useRowWid]="useRowWid"
|
|
149
|
-
[editable]="editable"
|
|
150
|
-
[horizRest]="horizRest()"
|
|
151
|
-
[columns]="columnNames"
|
|
152
|
-
[showRowNumbers]="rowNumbers"
|
|
153
|
-
[colOfInt]="columnOfInterest()"
|
|
154
|
-
(horizPos)="setHorizPos($event)"
|
|
155
|
-
(cellEdit)="execCellEdit($event)"
|
|
156
|
-
(openEvt)="scrollToRowGroup($event)"
|
|
157
|
-
></app-row-group-panel>
|
|
158
|
-
}
|
|
159
|
-
@if(!dataTableService.currFilData.length && !currGroupValues().length){
|
|
160
|
-
<div [style.height]="dataTableService.dTblHeight + 'px'" class="data-table-row flex-center data-table-row-no-data" style="width: 100%; white-space: normal;">
|
|
161
|
-
<div class="center">{{dataTableService.noDataMsg}}</div>
|
|
162
|
-
</div>
|
|
163
|
-
}
|
|
164
|
-
</div>
|
|
165
|
-
</div>
|
|
166
|
-
@if(paginatorReady){
|
|
167
|
-
<app-data-table-paginator
|
|
168
|
-
[filSortStr]="allFilSortInfo()"
|
|
169
|
-
(jumpTo)="jumpToRow($event)"
|
|
170
|
-
[totalRows]="dataTableService.currFilData.length"
|
|
171
|
-
[disableJump]="dataTableService.showCharts() || currGroupValues().length > 0 || !dataTableService.currFilData.length || handlingSelRows"
|
|
172
|
-
></app-data-table-paginator><!--not an actual paginator-->
|
|
173
|
-
}
|
|
174
|
-
<div class="pad-top-thirty right">
|
|
175
|
-
<div class="inline-b deebo-dd-contain-div">
|
|
176
|
-
@if(canGroupBy().length > 0){
|
|
177
|
-
<app-row-group-menu
|
|
178
|
-
[groups]="canGroupBy()"
|
|
179
|
-
[disableGB]="dataTableService.showCharts()"
|
|
180
|
-
[enableClear]="currGroupValues().length ? true : false"
|
|
181
|
-
></app-row-group-menu>
|
|
182
|
-
}
|
|
183
|
-
</div><div class="inline-b deebo-dd-contain-div">
|
|
184
|
-
@if(dataTableService.currFilData.length > 0){
|
|
185
|
-
<app-export-component
|
|
186
|
-
[columns]="columnHeaders"
|
|
187
|
-
[disableExport]="dataTableService.showCharts()"
|
|
188
|
-
[count]="dataTableService.currFilData.length">
|
|
189
|
-
</app-export-component>
|
|
190
|
-
}
|
|
191
|
-
</div>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { NgxDeebodata } from './ngx-deebodata';
|
|
4
|
-
|
|
5
|
-
describe('NgxDeebodata', () => {
|
|
6
|
-
let component: NgxDeebodata;
|
|
7
|
-
let fixture: ComponentFixture<NgxDeebodata>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [NgxDeebodata]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(NgxDeebodata);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
await fixture.whenStable();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|