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,27 +0,0 @@
|
|
|
1
|
-
<div class="relly">
|
|
2
|
-
<div #ddSelect class="deebo-dd-select-hide deebo-dd-groupby" [class.deebo-dd-select]="optsOpen()">
|
|
3
|
-
@if(enableClear()){
|
|
4
|
-
<div class="deebo-dd-opt deebo-dd-groupby">
|
|
5
|
-
<button type="button" (click)="setGrouping(null)" class="v-mid no-btn" style="width: 100%;">
|
|
6
|
-
<i class="material-icons error-message heavy v-mid" aria-hidden="false">close</i> <span class="md-text v-mid">Grouping</span>
|
|
7
|
-
</button>
|
|
8
|
-
</div>
|
|
9
|
-
}
|
|
10
|
-
@for(grp of groups(); track grp){
|
|
11
|
-
<div class="deebo-dd-opt deebo-dd-groupby">
|
|
12
|
-
<div>
|
|
13
|
-
<label for="groupby{{grp}}">
|
|
14
|
-
<input type="radio" name="groupby" id="groupby{{grp}}" (click)="setGrouping(grp)" (input)="setGrouping(grp)" />
|
|
15
|
-
{{common.titleCase(grp)}}
|
|
16
|
-
</label>
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
}
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
<div class="deebo-dd-contain deebo-dd-groupby flex-center">
|
|
23
|
-
<button type="button" class="btn-deebo-dd deebo-dd-groupby no-btn" (click)="toggleGroupByOpts()" [disabled]="disableGB()">
|
|
24
|
-
<span>Group By</span>
|
|
25
|
-
<i class="material-icons" aria-hidden="false">{{optsOpen() ? "keyboard_arrow_up" : "keyboard_arrow_down"}}</i>
|
|
26
|
-
</button>
|
|
27
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { RowGroupMenu } from './row-group-menu';
|
|
4
|
-
|
|
5
|
-
describe('RowGroupMenu', () => {
|
|
6
|
-
let component: RowGroupMenu;
|
|
7
|
-
let fixture: ComponentFixture<RowGroupMenu>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [RowGroupMenu]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(RowGroupMenu);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { Component, ViewChild, ElementRef, input, signal } from '@angular/core';
|
|
3
|
-
import { CommonService } from '../../../services/common-service';
|
|
4
|
-
import { DataTableService } from '../../../services/data-table-service';
|
|
5
|
-
import { FormsModule } from '@angular/forms';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'app-row-group-menu',
|
|
9
|
-
imports: [CommonModule, FormsModule],
|
|
10
|
-
templateUrl: './row-group-menu.html',
|
|
11
|
-
styleUrls: ['./row-group-menu.css', '../export-component/export-component.css', '../../../styles.css']
|
|
12
|
-
})
|
|
13
|
-
export class RowGroupMenu {
|
|
14
|
-
|
|
15
|
-
groups = input<string[]>([])
|
|
16
|
-
disableGB = input<boolean>(false)
|
|
17
|
-
optsOpen = signal<boolean>(false)
|
|
18
|
-
enableClear = input<boolean>(false)
|
|
19
|
-
|
|
20
|
-
@ViewChild("ddSelect", { static: true }) ddSelect!: ElementRef<HTMLDivElement>;
|
|
21
|
-
|
|
22
|
-
constructor(public common: CommonService,
|
|
23
|
-
private dataTableService: DataTableService,
|
|
24
|
-
) { }
|
|
25
|
-
|
|
26
|
-
ngOnInit() {
|
|
27
|
-
this.dataTableService.closeGroupByOpts.subscribe( e => { this.setOptsOpen(e) })
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
setOptsOpen(e: boolean) {
|
|
31
|
-
this.optsOpen.set(e)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
toggleGroupByOpts() {
|
|
35
|
-
this.setOptsOpen(!this.optsOpen())
|
|
36
|
-
if(this.optsOpen()){
|
|
37
|
-
setTimeout( () => {
|
|
38
|
-
const hgt = this.common.goodLs() ? this.ddSelect.nativeElement.getBoundingClientRect().height : 10;
|
|
39
|
-
this.dataTableService.listenToCloseGroupByOpts = true;
|
|
40
|
-
this.ddSelect.nativeElement.style.top = -(hgt+3) + "px"
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
setGrouping(group: string | null) {
|
|
46
|
-
this.dataTableService.currGrouping.next(group)
|
|
47
|
-
if(!group){
|
|
48
|
-
let i = 0
|
|
49
|
-
const len = this.groups().length
|
|
50
|
-
for(i; i < len; i++){
|
|
51
|
-
const el = <HTMLInputElement>document.getElementById("groupby" + this.groups()[i])
|
|
52
|
-
if(el)
|
|
53
|
-
el.checked = false
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
:host{
|
|
2
|
-
--accent-color:rgb(50, 50, 50);
|
|
3
|
-
--grid-color:rgb(199, 199, 199);
|
|
4
|
-
--pad-left-base: 33px;
|
|
5
|
-
--row-num-width: 75px;
|
|
6
|
-
--reg-font-size: 17px
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.row-group-panel{
|
|
10
|
-
padding: 17px 11px;
|
|
11
|
-
border-bottom: 1px dotted var(--accent-color);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.open-panel{
|
|
15
|
-
box-shadow: 0 1px 3px 1px var(--grid-color);
|
|
16
|
-
-moz-box-shadow: 0 1px 3px 1px var(--grid-color);
|
|
17
|
-
-webkit-box-shadow: 0 1px 3px 1px var(--grid-color);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.panel-height{
|
|
21
|
-
min-height: 400px;
|
|
22
|
-
max-height: 400px;
|
|
23
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<div class="row-group-panel row-group-panel-{{elifyGrouping}}" [ngClass]="{'open-panel': open(), 'hide': !count}">
|
|
2
|
-
<button class="no-btn" (click)="openGroup()">
|
|
3
|
-
<span class="v-mid md-text">{{uiGroupValue}} ({{count | number}})</span>
|
|
4
|
-
<i class="material-icons v-mid" aria-hidden="false">{{open() ? "keyboard_arrow_down" : "chevron_right"}}</i>
|
|
5
|
-
</button>
|
|
6
|
-
</div>
|
|
7
|
-
@if(showRowNumbers && open()){
|
|
8
|
-
<div class="relly">
|
|
9
|
-
@for(num of rowNums; track $index){
|
|
10
|
-
<span class="gb-row-num row-nums-{{elifyGrouping}} invisible" >{{num | number}}</span>
|
|
11
|
-
}
|
|
12
|
-
</div>
|
|
13
|
-
}
|
|
14
|
-
@if(open()){
|
|
15
|
-
<div #panelDataGrid [id]="'panelDataGrid' + elifyGrouping" style="overflow: auto;margin-top: 3px" class="group-panel-grid panel-height"
|
|
16
|
-
(scroll)="handleScroll($event)" (scrollend)="handleScrollEnd()">
|
|
17
|
-
<div #aboveArea [style.height]="aboveHgt + 'px'"></div>
|
|
18
|
-
@for(row of rows; track row.index){
|
|
19
|
-
<div [id]="row.id" class="data-table-row rows-for-{{elifyGrouping}}" [attr.data-index]="row.index"
|
|
20
|
-
[ngStyle]="{'width': row.width, 'height': row.height}" >
|
|
21
|
-
@for(cell of row.cells; track cell.column){
|
|
22
|
-
@if(isScrolling){
|
|
23
|
-
<div class="data-cell data-cell-{{common.elifyCol(cell.column)}}{{cell.specialColClass}}" [class.data-cell-riiight]="cell.dataType === 'number'"
|
|
24
|
-
[ngClass]="{ 'col-item-freeze': cell.freeze, 'col-header-minimized': cell.minimized, 'holding-check': cell.column === dataTableService.firstCol }"
|
|
25
|
-
[ngStyle]="{'width': cell.width || dataTableService.useColWid, 'height': row.height}" >{{cell.text}}@if(cell.html){<div class="mock-html"></div>}</div>
|
|
26
|
-
} @else {
|
|
27
|
-
<app-data-cell
|
|
28
|
-
[cell]="cell" [rowId]="row.id"
|
|
29
|
-
[noColResize]="true"
|
|
30
|
-
[rawText]="cell.rawText"
|
|
31
|
-
[rowHeight]="row.height || ''"
|
|
32
|
-
[columnValClass]="cell.specialColClass"
|
|
33
|
-
[colWid]="cell.width || dataTableService.useColWid"
|
|
34
|
-
(height)="setSingleRowHgt($event, row.id)"
|
|
35
|
-
></app-data-cell>
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
</div>
|
|
39
|
-
}
|
|
40
|
-
<div #belowArea [style.height]="belowHgt + 'px'"></div>
|
|
41
|
-
@if(!panelData.length){
|
|
42
|
-
<div
|
|
43
|
-
class="data-table-row panel-height flex-center data-table-row-no-data" style="width: 100%; white-space: normal;">
|
|
44
|
-
<div class="center">Loading...</div>
|
|
45
|
-
</div>
|
|
46
|
-
}
|
|
47
|
-
</div>
|
|
48
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { RowGroupPanel } from './row-group-panel';
|
|
4
|
-
|
|
5
|
-
describe('RowGroupPanel', () => {
|
|
6
|
-
let component: RowGroupPanel;
|
|
7
|
-
let fixture: ComponentFixture<RowGroupPanel>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
imports: [RowGroupPanel]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(RowGroupPanel);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|