@dereekb/dbx-web 13.43.0 → 14.0.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/eslint/index.esm.js +9 -5
- package/eslint/package.json +9 -9
- package/fesm2022/dereekb-dbx-web-calendar.mjs +14 -13
- package/fesm2022/dereekb-dbx-web-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-docs.mjs +30 -32
- package/fesm2022/dereekb-dbx-web-docs.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +111 -99
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-style-demo.mjs +90 -91
- package/fesm2022/dereekb-dbx-web-style-demo.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +149 -157
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +2663 -2672
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/package.json +20 -20
- package/types/dereekb-dbx-web-mapbox.d.ts +1 -5
- package/types/dereekb-dbx-web.d.ts +121 -321
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal,
|
|
2
|
+
import { signal, Component, Injectable, inject, computed, NgModule, input, Directive, ElementRef, InjectionToken, viewChild, effect } from '@angular/core';
|
|
3
3
|
import { DatePipe, NgClass } from '@angular/common';
|
|
4
4
|
import { isSameDateDay } from '@dereekb/date';
|
|
5
5
|
import { filterMaybe, beginLoading, valueFromFinishedLoadingState, mapLoadingStateValueWithOperator, asObservable, maybeValueFromObservableOrValue, loadingStateContext } from '@dereekb/rxjs';
|
|
@@ -27,7 +27,8 @@ import { MatTable, MatTableModule } from '@angular/material/table';
|
|
|
27
27
|
class DbxTableDateHeaderComponent {
|
|
28
28
|
left = 'E';
|
|
29
29
|
right = 'MMM d';
|
|
30
|
-
_dateSignal = signal(undefined,
|
|
30
|
+
_dateSignal = signal(undefined, /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "_dateSignal" }] : /* istanbul ignore next */ []));
|
|
31
32
|
dateSignal = this._dateSignal.asReadonly();
|
|
32
33
|
get date() {
|
|
33
34
|
return this._dateSignal();
|
|
@@ -35,17 +36,17 @@ class DbxTableDateHeaderComponent {
|
|
|
35
36
|
set date(date) {
|
|
36
37
|
this._dateSignal.set(date);
|
|
37
38
|
}
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxTableDateHeaderComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
40
41
|
@if (dateSignal()) {
|
|
41
42
|
<div class="dbx-table-date-column-header">
|
|
42
43
|
<span class="dbx-table-date-column-header-left">{{ dateSignal() | date: left }}</span>
|
|
43
44
|
<span>{{ dateSignal() | date: right }}</span>
|
|
44
45
|
</div>
|
|
45
46
|
}
|
|
46
|
-
`, isInline: true, dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }]
|
|
47
|
+
`, isInline: true, dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }] });
|
|
47
48
|
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateHeaderComponent, decorators: [{
|
|
49
50
|
type: Component,
|
|
50
51
|
args: [{
|
|
51
52
|
template: `
|
|
@@ -56,9 +57,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
56
57
|
</div>
|
|
57
58
|
}
|
|
58
59
|
`,
|
|
59
|
-
|
|
60
|
-
imports: [DatePipe],
|
|
61
|
-
standalone: true
|
|
60
|
+
imports: [DatePipe]
|
|
62
61
|
}]
|
|
63
62
|
}] });
|
|
64
63
|
/**
|
|
@@ -154,10 +153,10 @@ class DbxTableStore extends ComponentStore {
|
|
|
154
153
|
setInput = this.updater((state, input) => ({ ...state, input }));
|
|
155
154
|
setDataDelegate = this.updater((state, dataDelegate) => ({ ...state, dataDelegate }));
|
|
156
155
|
setViewDelegate = this.updater((state, viewDelegate) => ({ ...state, viewDelegate }));
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
156
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
157
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableStore });
|
|
159
158
|
}
|
|
160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableStore, decorators: [{
|
|
161
160
|
type: Injectable
|
|
162
161
|
}], ctorParameters: () => [] });
|
|
163
162
|
|
|
@@ -182,10 +181,10 @@ class DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy {
|
|
|
182
181
|
}
|
|
183
182
|
return result;
|
|
184
183
|
}
|
|
185
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
186
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
185
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy });
|
|
187
186
|
}
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy, decorators: [{
|
|
189
188
|
type: Injectable
|
|
190
189
|
}] });
|
|
191
190
|
const DEFAULT_DBX_TABLE_DATE_RANGE_DAY_DISTIANCE_INPUT_CELL_COMPONENT_CONFIG = { daysDistance: 6 };
|
|
@@ -197,22 +196,28 @@ class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
197
196
|
tableStore = inject((DbxTableStore));
|
|
198
197
|
_syncSub = cleanSubscription();
|
|
199
198
|
_valueSub = cleanSubscription();
|
|
200
|
-
_pickerOpenedSignal = signal(false,
|
|
201
|
-
|
|
199
|
+
_pickerOpenedSignal = signal(false, /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "_pickerOpenedSignal" }] : /* istanbul ignore next */ []));
|
|
201
|
+
_configSignal = signal(DEFAULT_DBX_TABLE_DATE_RANGE_DAY_DISTIANCE_INPUT_CELL_COMPONENT_CONFIG, /* @ts-ignore */
|
|
202
|
+
...(ngDevMode ? [{ debugName: "_configSignal" }] : /* istanbul ignore next */ []));
|
|
202
203
|
range = new FormGroup({
|
|
203
204
|
start: new FormControl(null),
|
|
204
205
|
end: new FormControl(null)
|
|
205
206
|
});
|
|
206
207
|
pickerOpened$ = this.range.valueChanges.pipe(startWith(this.range.value));
|
|
207
|
-
minDateSignal = computed(() => this._configSignal().minDate ?? null,
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
minDateSignal = computed(() => this._configSignal().minDate ?? null, /* @ts-ignore */
|
|
209
|
+
...(ngDevMode ? [{ debugName: "minDateSignal" }] : /* istanbul ignore next */ []));
|
|
210
|
+
maxDateSignal = computed(() => this._configSignal().maxDate ?? null, /* @ts-ignore */
|
|
211
|
+
...(ngDevMode ? [{ debugName: "maxDateSignal" }] : /* istanbul ignore next */ []));
|
|
212
|
+
buttonFormatSignal = computed(() => this._configSignal().buttonFormat ?? DEFAULT_DBX_TABLE_DATE_RANGE_DAY_BUTTON_FORMAT, /* @ts-ignore */
|
|
213
|
+
...(ngDevMode ? [{ debugName: "buttonFormatSignal" }] : /* istanbul ignore next */ []));
|
|
210
214
|
rangeValue$ = this.range.valueChanges.pipe(startWith(this.range.value));
|
|
211
215
|
dateRangeStringSignal = computed(() => {
|
|
212
216
|
const buttonFormat = this.buttonFormatSignal();
|
|
213
217
|
const { start, end } = this.range.value;
|
|
214
218
|
return start && end ? `${format(start, buttonFormat)} - ${format(end, buttonFormat)}` : `Select Date`;
|
|
215
|
-
},
|
|
219
|
+
}, /* @ts-ignore */
|
|
220
|
+
...(ngDevMode ? [{ debugName: "dateRangeStringSignal" }] : /* istanbul ignore next */ []));
|
|
216
221
|
constructor() {
|
|
217
222
|
cleanSubscription(this.tableStore.input$.subscribe((x) => {
|
|
218
223
|
const start = x?.date ?? null;
|
|
@@ -245,8 +250,8 @@ class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
245
250
|
pickerClosed() {
|
|
246
251
|
this._pickerOpenedSignal.set(false);
|
|
247
252
|
}
|
|
248
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
249
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
253
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
254
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableDateRangeDayDistanceInputCellInputComponent, isStandalone: true, selector: "ng-component", providers: [
|
|
250
255
|
{
|
|
251
256
|
provide: MAT_DATE_RANGE_SELECTION_STRATEGY,
|
|
252
257
|
useClass: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy
|
|
@@ -260,9 +265,9 @@ class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
260
265
|
<button mat-stroked-button color="primary" (click)="picker.open()">{{ dateRangeStringSignal() }}</button>
|
|
261
266
|
<mat-date-range-picker #picker (opened)="pickerOpened()" (closed)="pickerClosed()"></mat-date-range-picker>
|
|
262
267
|
</div>
|
|
263
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i1.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i1.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i1.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i1.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }]
|
|
268
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i1.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i1.MatStartDate, selector: "input[matStartDate]", outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i1.MatEndDate, selector: "input[matEndDate]", outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i1.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] });
|
|
264
269
|
}
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateRangeDayDistanceInputCellInputComponent, decorators: [{
|
|
266
271
|
type: Component,
|
|
267
272
|
args: [{
|
|
268
273
|
template: `
|
|
@@ -281,8 +286,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
281
286
|
useClass: DbxTableDateRangeDayDistanceInputCellInputRangeSelectionStrategy
|
|
282
287
|
}
|
|
283
288
|
],
|
|
284
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
285
|
-
standalone: true,
|
|
286
289
|
imports: [MatDatepickerModule, ReactiveFormsModule, MatButtonModule]
|
|
287
290
|
}]
|
|
288
291
|
}], ctorParameters: () => [] });
|
|
@@ -306,11 +309,11 @@ function dbxTableDateRangeDayDistanceInputCellInput(componentConfig) {
|
|
|
306
309
|
|
|
307
310
|
const importsAndExports$1 = [DbxTableDateHeaderComponent, DbxTableDateRangeDayDistanceInputCellInputComponent];
|
|
308
311
|
class DbxTableDateModule {
|
|
309
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
310
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
311
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
313
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateModule, imports: [DbxTableDateHeaderComponent, DbxTableDateRangeDayDistanceInputCellInputComponent], exports: [DbxTableDateHeaderComponent, DbxTableDateRangeDayDistanceInputCellInputComponent] });
|
|
314
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateModule, imports: [DbxTableDateRangeDayDistanceInputCellInputComponent] });
|
|
312
315
|
}
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDateModule, decorators: [{
|
|
314
317
|
type: NgModule,
|
|
315
318
|
args: [{
|
|
316
319
|
imports: importsAndExports$1,
|
|
@@ -322,20 +325,18 @@ class DbxTableActionCellComponent {
|
|
|
322
325
|
tableStore = inject(DbxTableStore);
|
|
323
326
|
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.actionHeader), distinctUntilChanged());
|
|
324
327
|
configSignal = toSignal(this.config$);
|
|
325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
326
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
328
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableActionCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
329
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableActionCellComponent, isStandalone: true, selector: "dbx-table-action-cell", ngImport: i0, template: `
|
|
327
330
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
328
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
331
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
329
332
|
}
|
|
330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableActionCellComponent, decorators: [{
|
|
331
334
|
type: Component,
|
|
332
335
|
args: [{
|
|
333
336
|
selector: 'dbx-table-action-cell',
|
|
334
337
|
template: `
|
|
335
338
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
336
339
|
`,
|
|
337
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
338
|
-
standalone: true,
|
|
339
340
|
imports: [DbxInjectionComponent]
|
|
340
341
|
}]
|
|
341
342
|
}] });
|
|
@@ -347,20 +348,18 @@ class DbxTableInputCellComponent {
|
|
|
347
348
|
tableStore = inject(DbxTableStore);
|
|
348
349
|
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.inputHeader), distinctUntilChanged());
|
|
349
350
|
configSignal = toSignal(this.config$);
|
|
350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
351
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableInputCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableInputCellComponent, isStandalone: true, selector: "dbx-table-input-cell", ngImport: i0, template: `
|
|
352
353
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
353
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
354
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
354
355
|
}
|
|
355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableInputCellComponent, decorators: [{
|
|
356
357
|
type: Component,
|
|
357
358
|
args: [{
|
|
358
359
|
selector: 'dbx-table-input-cell',
|
|
359
360
|
template: `
|
|
360
361
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
361
362
|
`,
|
|
362
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
363
|
-
standalone: true,
|
|
364
363
|
imports: [DbxInjectionComponent]
|
|
365
364
|
}]
|
|
366
365
|
}] });
|
|
@@ -369,20 +368,18 @@ class DbxTableSummaryEndCellComponent {
|
|
|
369
368
|
tableStore = inject(DbxTableStore);
|
|
370
369
|
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.summaryRowEnd), distinctUntilChanged());
|
|
371
370
|
configSignal = toSignal(this.config$);
|
|
372
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
373
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableSummaryEndCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
372
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableSummaryEndCellComponent, isStandalone: true, selector: "dbx-table-summary-end-cell", ngImport: i0, template: `
|
|
374
373
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
375
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
374
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
376
375
|
}
|
|
377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableSummaryEndCellComponent, decorators: [{
|
|
378
377
|
type: Component,
|
|
379
378
|
args: [{
|
|
380
379
|
selector: 'dbx-table-summary-end-cell',
|
|
381
380
|
template: `
|
|
382
381
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
383
382
|
`,
|
|
384
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
385
|
-
standalone: true,
|
|
386
383
|
imports: [DbxInjectionComponent]
|
|
387
384
|
}]
|
|
388
385
|
}] });
|
|
@@ -394,20 +391,18 @@ class DbxTableSummaryStartCellComponent {
|
|
|
394
391
|
tableStore = inject(DbxTableStore);
|
|
395
392
|
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.summaryRowHeader), distinctUntilChanged());
|
|
396
393
|
configSignal = toSignal(this.config$);
|
|
397
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
398
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableSummaryStartCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
395
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableSummaryStartCellComponent, isStandalone: true, selector: "dbx-table-summary-start-cell", ngImport: i0, template: `
|
|
399
396
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
400
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
397
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
401
398
|
}
|
|
402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableSummaryStartCellComponent, decorators: [{
|
|
403
400
|
type: Component,
|
|
404
401
|
args: [{
|
|
405
402
|
selector: 'dbx-table-summary-start-cell',
|
|
406
403
|
template: `
|
|
407
404
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
408
405
|
`,
|
|
409
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
410
|
-
standalone: true,
|
|
411
406
|
imports: [DbxInjectionComponent]
|
|
412
407
|
}]
|
|
413
408
|
}] });
|
|
@@ -417,12 +412,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
417
412
|
*/
|
|
418
413
|
class AbstractDbxTableColumnDirective {
|
|
419
414
|
tableStore = inject((DbxTableStore));
|
|
420
|
-
column = input(
|
|
415
|
+
column = input(/* @ts-ignore */
|
|
416
|
+
...(ngDevMode ? [undefined, { debugName: "column" }] : /* istanbul ignore next */ []));
|
|
421
417
|
column$ = toObservable(this.column).pipe(filterMaybe(), distinctUntilChanged());
|
|
422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
423
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
418
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxTableColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
419
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AbstractDbxTableColumnDirective, isStandalone: true, inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
424
420
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxTableColumnDirective, decorators: [{
|
|
426
422
|
type: Directive
|
|
427
423
|
}], propDecorators: { column: [{ type: i0.Input, args: [{ isSignal: true, alias: "column", required: false }] }] } });
|
|
428
424
|
|
|
@@ -432,20 +428,18 @@ class DbxTableColumnHeaderComponent extends AbstractDbxTableColumnDirective {
|
|
|
432
428
|
return columnHeader ? this.column$.pipe(map((x) => columnHeader(x))) : of(undefined);
|
|
433
429
|
}), distinctUntilChanged());
|
|
434
430
|
configSignal = toSignal(this.config$);
|
|
435
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
436
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableColumnHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
432
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableColumnHeaderComponent, isStandalone: true, selector: "dbx-table-column-header", usesInheritance: true, ngImport: i0, template: `
|
|
437
433
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
438
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
434
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
439
435
|
}
|
|
440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableColumnHeaderComponent, decorators: [{
|
|
441
437
|
type: Component,
|
|
442
438
|
args: [{
|
|
443
439
|
selector: 'dbx-table-column-header',
|
|
444
440
|
template: `
|
|
445
441
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
446
442
|
`,
|
|
447
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
448
|
-
standalone: true,
|
|
449
443
|
imports: [DbxInjectionComponent]
|
|
450
444
|
}]
|
|
451
445
|
}] });
|
|
@@ -456,20 +450,18 @@ class DbxTableColumnFooterComponent extends AbstractDbxTableColumnDirective {
|
|
|
456
450
|
return columnFooter ? this.column$.pipe(map((x) => columnFooter(x))) : of(undefined);
|
|
457
451
|
}), distinctUntilChanged());
|
|
458
452
|
configSignal = toSignal(this.config$);
|
|
459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
460
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
453
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableColumnFooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
454
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableColumnFooterComponent, isStandalone: true, selector: "dbx-table-column-footer", usesInheritance: true, ngImport: i0, template: `
|
|
461
455
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
462
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
456
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
463
457
|
}
|
|
464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableColumnFooterComponent, decorators: [{
|
|
465
459
|
type: Component,
|
|
466
460
|
args: [{
|
|
467
461
|
selector: 'dbx-table-column-footer',
|
|
468
462
|
template: `
|
|
469
463
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
470
464
|
`,
|
|
471
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
472
|
-
standalone: true,
|
|
473
465
|
imports: [DbxInjectionComponent]
|
|
474
466
|
}]
|
|
475
467
|
}] });
|
|
@@ -521,7 +513,8 @@ class DbxTableColumnSizeDirective {
|
|
|
521
513
|
visibleColumns += 1;
|
|
522
514
|
}
|
|
523
515
|
return visibleColumns;
|
|
524
|
-
},
|
|
516
|
+
}, /* @ts-ignore */
|
|
517
|
+
...(ngDevMode ? [{ debugName: "visibleColumnsSignal" }] : /* istanbul ignore next */ []));
|
|
525
518
|
addColumn(column) {
|
|
526
519
|
this._columnsMap.value.set(column.index(), column);
|
|
527
520
|
this._columnsMap.next(this._columnsMap.value);
|
|
@@ -531,15 +524,14 @@ class DbxTableColumnSizeDirective {
|
|
|
531
524
|
this._columnsMap.next(this._columnsMap.value);
|
|
532
525
|
}
|
|
533
526
|
}
|
|
534
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
535
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
527
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableColumnSizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
528
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableColumnSizeDirective, isStandalone: true, selector: "[dbxTableColumnSize]", exportAs: ["dbxTableColumnSize"], ngImport: i0 });
|
|
536
529
|
}
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableColumnSizeDirective, decorators: [{
|
|
538
531
|
type: Directive,
|
|
539
532
|
args: [{
|
|
540
533
|
exportAs: 'dbxTableColumnSize',
|
|
541
|
-
selector: '[dbxTableColumnSize]'
|
|
542
|
-
standalone: true
|
|
534
|
+
selector: '[dbxTableColumnSize]'
|
|
543
535
|
}]
|
|
544
536
|
}] });
|
|
545
537
|
/**
|
|
@@ -559,15 +551,14 @@ class DbxColumnSizeColumnDirective {
|
|
|
559
551
|
get width() {
|
|
560
552
|
return this.elementRef.nativeElement.clientWidth;
|
|
561
553
|
}
|
|
562
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
563
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
554
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxColumnSizeColumnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
555
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: DbxColumnSizeColumnDirective, isStandalone: true, selector: "[dbx-column-size-column]", inputs: { index: { classPropertyName: "index", publicName: "dbx-column-size-column", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
564
556
|
}
|
|
565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxColumnSizeColumnDirective, decorators: [{
|
|
566
558
|
type: Directive,
|
|
567
559
|
args: [{
|
|
568
560
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
569
|
-
selector: '[dbx-column-size-column]'
|
|
570
|
-
standalone: true
|
|
561
|
+
selector: '[dbx-column-size-column]'
|
|
571
562
|
}]
|
|
572
563
|
}], ctorParameters: () => [], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbx-column-size-column", required: true }] }] } });
|
|
573
564
|
|
|
@@ -578,56 +569,54 @@ const DBX_TABLE_COLUMN_SIZE_PARENT_ELEMENT_REF_TOKEN = new InjectionToken('DBX_T
|
|
|
578
569
|
*/
|
|
579
570
|
class AbstractDbxTableItemDirective {
|
|
580
571
|
tableStore = inject((DbxTableStore));
|
|
581
|
-
item = input(
|
|
572
|
+
item = input(/* @ts-ignore */
|
|
573
|
+
...(ngDevMode ? [undefined, { debugName: "item" }] : /* istanbul ignore next */ []));
|
|
582
574
|
item$ = toObservable(this.item);
|
|
583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
584
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
575
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxTableItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
576
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AbstractDbxTableItemDirective, isStandalone: true, inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
585
577
|
}
|
|
586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxTableItemDirective, decorators: [{
|
|
587
579
|
type: Directive
|
|
588
580
|
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }] } });
|
|
589
581
|
|
|
590
582
|
class DbxTableItemCellComponent extends AbstractDbxTableItemDirective {
|
|
591
|
-
column = input(
|
|
583
|
+
column = input(/* @ts-ignore */
|
|
584
|
+
...(ngDevMode ? [undefined, { debugName: "column" }] : /* istanbul ignore next */ []));
|
|
592
585
|
column$ = toObservable(this.column);
|
|
593
586
|
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => combineLatest([this.column$, this.item$]).pipe(map(([column, item]) => (column && item ? viewDelegate.itemCell(column, item) : undefined)))));
|
|
594
587
|
configSignal = toSignal(this.config$);
|
|
595
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
596
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
588
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableItemCellComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
589
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.4", type: DbxTableItemCellComponent, isStandalone: true, selector: "dbx-table-item-cell", inputs: { column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: `
|
|
597
590
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
598
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
591
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
599
592
|
}
|
|
600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableItemCellComponent, decorators: [{
|
|
601
594
|
type: Component,
|
|
602
595
|
args: [{
|
|
603
596
|
selector: 'dbx-table-item-cell',
|
|
604
597
|
template: `
|
|
605
598
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
606
599
|
`,
|
|
607
|
-
|
|
608
|
-
imports: [DbxInjectionComponent],
|
|
609
|
-
standalone: true
|
|
600
|
+
imports: [DbxInjectionComponent]
|
|
610
601
|
}]
|
|
611
602
|
}], propDecorators: { column: [{ type: i0.Input, args: [{ isSignal: true, alias: "column", required: false }] }] } });
|
|
612
603
|
|
|
613
604
|
class DbxTableItemHeaderComponent extends AbstractDbxTableItemDirective {
|
|
614
605
|
config$ = this.tableStore.viewDelegate$.pipe(switchMap((viewDelegate) => this.item$.pipe(map((x) => (x == null ? undefined : viewDelegate.itemHeader(x))))), maybeValueFromObservableOrValue());
|
|
615
606
|
configSignal = toSignal(this.config$);
|
|
616
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
617
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
607
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableItemHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
608
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableItemHeaderComponent, isStandalone: true, selector: "dbx-table-item-header", usesInheritance: true, ngImport: i0, template: `
|
|
618
609
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
619
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
610
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
620
611
|
}
|
|
621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableItemHeaderComponent, decorators: [{
|
|
622
613
|
type: Component,
|
|
623
614
|
args: [{
|
|
624
615
|
selector: 'dbx-table-item-header',
|
|
625
616
|
template: `
|
|
626
617
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
627
618
|
`,
|
|
628
|
-
|
|
629
|
-
imports: [DbxInjectionComponent],
|
|
630
|
-
standalone: true
|
|
619
|
+
imports: [DbxInjectionComponent]
|
|
631
620
|
}]
|
|
632
621
|
}] });
|
|
633
622
|
|
|
@@ -641,21 +630,19 @@ class DbxTableItemActionComponent extends AbstractDbxTableItemDirective {
|
|
|
641
630
|
return obs;
|
|
642
631
|
}), maybeValueFromObservableOrValue());
|
|
643
632
|
configSignal = toSignal(this.config$);
|
|
644
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
645
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
633
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableItemActionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
634
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableItemActionComponent, isStandalone: true, selector: "dbx-table-item-action", usesInheritance: true, ngImport: i0, template: `
|
|
646
635
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
647
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
636
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
648
637
|
}
|
|
649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableItemActionComponent, decorators: [{
|
|
650
639
|
type: Component,
|
|
651
640
|
args: [{
|
|
652
641
|
selector: 'dbx-table-item-action',
|
|
653
642
|
template: `
|
|
654
643
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
655
644
|
`,
|
|
656
|
-
|
|
657
|
-
imports: [DbxInjectionComponent],
|
|
658
|
-
standalone: true
|
|
645
|
+
imports: [DbxInjectionComponent]
|
|
659
646
|
}]
|
|
660
647
|
}] });
|
|
661
648
|
|
|
@@ -664,12 +651,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
664
651
|
*/
|
|
665
652
|
class AbstractDbxTableGroupDirective {
|
|
666
653
|
tableStore = inject((DbxTableStore));
|
|
667
|
-
group = input(
|
|
654
|
+
group = input(/* @ts-ignore */
|
|
655
|
+
...(ngDevMode ? [undefined, { debugName: "group" }] : /* istanbul ignore next */ []));
|
|
668
656
|
group$ = toObservable(this.group).pipe(filterMaybe(), distinctUntilChanged());
|
|
669
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
670
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
657
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxTableGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
658
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: AbstractDbxTableGroupDirective, isStandalone: true, inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
671
659
|
}
|
|
672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: AbstractDbxTableGroupDirective, decorators: [{
|
|
673
661
|
type: Directive
|
|
674
662
|
}], propDecorators: { group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }] } });
|
|
675
663
|
|
|
@@ -683,21 +671,19 @@ class DbxTableGroupHeaderComponent extends AbstractDbxTableGroupDirective {
|
|
|
683
671
|
return obs;
|
|
684
672
|
}), maybeValueFromObservableOrValue(), distinctUntilChanged());
|
|
685
673
|
configSignal = toSignal(this.config$);
|
|
686
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
687
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
674
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableGroupHeaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
675
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableGroupHeaderComponent, isStandalone: true, selector: "dbx-table-group-header", usesInheritance: true, ngImport: i0, template: `
|
|
688
676
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
689
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
677
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
690
678
|
}
|
|
691
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableGroupHeaderComponent, decorators: [{
|
|
692
680
|
type: Component,
|
|
693
681
|
args: [{
|
|
694
682
|
selector: 'dbx-table-group-header',
|
|
695
683
|
template: `
|
|
696
684
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
697
685
|
`,
|
|
698
|
-
|
|
699
|
-
imports: [DbxInjectionComponent],
|
|
700
|
-
standalone: true
|
|
686
|
+
imports: [DbxInjectionComponent]
|
|
701
687
|
}]
|
|
702
688
|
}] });
|
|
703
689
|
|
|
@@ -711,21 +697,19 @@ class DbxTableGroupFooterComponent extends AbstractDbxTableGroupDirective {
|
|
|
711
697
|
return obs;
|
|
712
698
|
}), maybeValueFromObservableOrValue(), distinctUntilChanged());
|
|
713
699
|
configSignal = toSignal(this.config$);
|
|
714
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
715
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableGroupFooterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableGroupFooterComponent, isStandalone: true, selector: "dbx-table-group-footer", usesInheritance: true, ngImport: i0, template: `
|
|
716
702
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
717
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
703
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
718
704
|
}
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableGroupFooterComponent, decorators: [{
|
|
720
706
|
type: Component,
|
|
721
707
|
args: [{
|
|
722
708
|
selector: 'dbx-table-group-footer',
|
|
723
709
|
template: `
|
|
724
710
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
725
711
|
`,
|
|
726
|
-
|
|
727
|
-
imports: [DbxInjectionComponent],
|
|
728
|
-
standalone: true
|
|
712
|
+
imports: [DbxInjectionComponent]
|
|
729
713
|
}]
|
|
730
714
|
}] });
|
|
731
715
|
|
|
@@ -736,20 +720,18 @@ class DbxTableFullSummaryRowComponent {
|
|
|
736
720
|
tableStore = inject(DbxTableStore);
|
|
737
721
|
config$ = this.tableStore.viewDelegate$.pipe(map((x) => x.fullSummaryRow), distinctUntilChanged());
|
|
738
722
|
configSignal = toSignal(this.config$);
|
|
739
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
740
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
723
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableFullSummaryRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
724
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.4", type: DbxTableFullSummaryRowComponent, isStandalone: true, selector: "dbx-table-full-summary-row", host: { classAttribute: "dbx-h100 dbx-flex-bar" }, ngImport: i0, template: `
|
|
741
725
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
742
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }]
|
|
726
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
743
727
|
}
|
|
744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableFullSummaryRowComponent, decorators: [{
|
|
745
729
|
type: Component,
|
|
746
730
|
args: [{
|
|
747
731
|
selector: 'dbx-table-full-summary-row',
|
|
748
732
|
template: `
|
|
749
733
|
<dbx-injection [config]="configSignal()"></dbx-injection>
|
|
750
734
|
`,
|
|
751
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
752
|
-
standalone: true,
|
|
753
735
|
imports: [DbxInjectionComponent],
|
|
754
736
|
host: {
|
|
755
737
|
class: 'dbx-h100 dbx-flex-bar'
|
|
@@ -782,12 +764,15 @@ function isDbxTableViewItemElement(element) {
|
|
|
782
764
|
*/
|
|
783
765
|
class DbxTableViewComponent {
|
|
784
766
|
tableStore = inject((DbxTableStore));
|
|
785
|
-
table = viewChild.required(MatTable
|
|
767
|
+
table = viewChild.required(MatTable, /* @ts-ignore */
|
|
768
|
+
...(ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []));
|
|
786
769
|
DEFAULT_TRACK_BY_FUNCTION = (index) => {
|
|
787
770
|
return index;
|
|
788
771
|
};
|
|
789
|
-
scrollDistance = input(0.5,
|
|
790
|
-
|
|
772
|
+
scrollDistance = input(0.5, /* @ts-ignore */
|
|
773
|
+
...(ngDevMode ? [{ debugName: "scrollDistance" }] : /* istanbul ignore next */ []));
|
|
774
|
+
throttleScroll = input(50, /* @ts-ignore */
|
|
775
|
+
...(ngDevMode ? [{ debugName: "throttleScroll" }] : /* istanbul ignore next */ []));
|
|
791
776
|
itemsColumnName = DBX_TABLE_ITEMS_COLUMN_NAME;
|
|
792
777
|
actionsColumnName = DBX_TABLE_ACTIONS_COLUMN_NAME;
|
|
793
778
|
innerColumns$ = this.tableStore.columns$;
|
|
@@ -840,7 +825,8 @@ class DbxTableViewComponent {
|
|
|
840
825
|
displayedColumnsSignal = computed(() => {
|
|
841
826
|
const columnNames = this.innerColumnNamesSignal() || [];
|
|
842
827
|
return [this.itemsColumnName, ...columnNames, this.actionsColumnName];
|
|
843
|
-
},
|
|
828
|
+
}, /* @ts-ignore */
|
|
829
|
+
...(ngDevMode ? [{ debugName: "displayedColumnsSignal" }] : /* istanbul ignore next */ []));
|
|
844
830
|
trackByFunction$ = this.tableStore.viewDelegate$.pipe(map((x) => x.trackBy ?? this.DEFAULT_TRACK_BY_FUNCTION), shareReplay(1));
|
|
845
831
|
inputTrackByFunctionSignal = toSignal(this.trackByFunction$, { initialValue: this.DEFAULT_TRACK_BY_FUNCTION });
|
|
846
832
|
trackElementByFunctionSignal = computed(() => {
|
|
@@ -849,7 +835,8 @@ class DbxTableViewComponent {
|
|
|
849
835
|
return element.type === 'item' ? `i_${trackByFunction(index, element.item)}` : `g_${element.group.groupId}`;
|
|
850
836
|
};
|
|
851
837
|
return fn;
|
|
852
|
-
},
|
|
838
|
+
}, /* @ts-ignore */
|
|
839
|
+
...(ngDevMode ? [{ debugName: "trackElementByFunctionSignal" }] : /* istanbul ignore next */ []));
|
|
853
840
|
context = loadingStateContext({ obs: this.tableStore.dataState$ });
|
|
854
841
|
dataLoadingContext = loadingStateContext({ obs: this.elementsState$ });
|
|
855
842
|
contextSignal = toSignal(this.context.state$);
|
|
@@ -872,20 +859,22 @@ class DbxTableViewComponent {
|
|
|
872
859
|
showFooterRowSignal = computed(() => {
|
|
873
860
|
const viewDelegate = this.viewDelegateSignal();
|
|
874
861
|
return viewDelegate && (viewDelegate.summaryRowHeader != null || viewDelegate.columnFooter != null || viewDelegate.summaryRowEnd != null);
|
|
875
|
-
},
|
|
862
|
+
}, /* @ts-ignore */
|
|
863
|
+
...(ngDevMode ? [{ debugName: "showFooterRowSignal" }] : /* istanbul ignore next */ []));
|
|
876
864
|
showFullSummaryRowSignal = computed(() => {
|
|
877
865
|
const viewDelegate = this.viewDelegateSignal();
|
|
878
866
|
return viewDelegate?.fullSummaryRow != null;
|
|
879
|
-
},
|
|
880
|
-
|
|
881
|
-
static
|
|
867
|
+
}, /* @ts-ignore */
|
|
868
|
+
...(ngDevMode ? [{ debugName: "showFullSummaryRowSignal" }] : /* istanbul ignore next */ []));
|
|
869
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
870
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.4", type: DbxTableViewComponent, isStandalone: true, selector: "dbx-table-view", inputs: { scrollDistance: { classPropertyName: "scrollDistance", publicName: "scrollDistance", isSignal: true, isRequired: false, transformFunction: null }, throttleScroll: { classPropertyName: "throttleScroll", publicName: "throttleScroll", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
882
871
|
{
|
|
883
872
|
provide: DBX_TABLE_COLUMN_SIZE_PARENT_ELEMENT_REF_TOKEN,
|
|
884
873
|
useExisting: ElementRef
|
|
885
874
|
}
|
|
886
|
-
], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true, isSignal: true }], ngImport: i0, template: "<dbx-loading [context]=\"context\">\n <dbx-loading class=\"dbx-table-view-loading\" [linear]=\"true\" [context]=\"dataLoadingContext\"></dbx-loading>\n <div class=\"dbx-table-view\" [ngClass]=\"tableCssClasses()\">\n <section class=\"dbx-table-view-table-wrapper\" dbxTableColumnSize #columnSize=\"dbxTableColumnSize\" infinite-scroll [infiniteScrollDistance]=\"scrollDistance()\" [infiniteScrollThrottle]=\"throttleScroll()\" [scrollWindow]=\"false\" (scrolled)=\"onScrollDown()\">\n <table class=\"dbx-table-view-table\" mat-table [dataSource]=\"elementsSignal()\" [trackBy]=\"trackElementByFunctionSignal()\" multiTemplateDataRows>\n <!-- Groups -->\n <!-- Group Header column -->\n <ng-container matColumnDef=\"groupHeaderColumn\" [sticky]=\"true\">\n <td mat-cell [attr.colspan]=\"columnSize.visibleColumnsSignal()\" *matCellDef=\"let element\">\n <dbx-table-group-header [group]=\"element.group\"></dbx-table-group-header>\n </td>\n </ng-container>\n\n <!-- Group Footer column -->\n <ng-container matColumnDef=\"groupFooterColumn\" [sticky]=\"true\">\n <td mat-cell [attr.colspan]=\"columnSize.visibleColumnsSignal()\" *matCellDef=\"let element\">\n <dbx-table-group-footer [group]=\"element.group\"></dbx-table-group-footer>\n </td>\n </ng-container>\n\n <!-- Items -->\n <!-- Header/Item column -->\n <ng-container [matColumnDef]=\"itemsColumnName\" [sticky]=\"true\">\n <th dbx-column-size-column=\"head\" mat-header-cell *matHeaderCellDef>\n <dbx-table-input-cell></dbx-table-input-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-header [item]=\"element.item\"></dbx-table-item-header>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-start-cell></dbx-table-summary-start-cell>\n </td>\n </ng-container>\n\n <!-- Column Definitions -->\n @for (column of innerColumnsSignal(); track column.columnName) {\n <ng-container [matColumnDef]=\"column.columnName\" [sticky]=\"false\">\n <th [dbx-column-size-column]=\"$index\" mat-header-cell *matHeaderCellDef>\n <dbx-table-column-header [column]=\"column\"></dbx-table-column-header>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-cell [item]=\"element.item\" [column]=\"column\"></dbx-table-item-cell>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-column-footer [column]=\"column\"></dbx-table-column-footer>\n </td>\n </ng-container>\n }\n\n <!-- Tail/Action column -->\n <ng-container [matColumnDef]=\"actionsColumnName\" [stickyEnd]=\"true\">\n <th dbx-column-size-column=\"tail\" mat-header-cell *matHeaderCellDef>\n <dbx-table-action-cell></dbx-table-action-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-action [item]=\"element.item\"></dbx-table-item-action>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-end-cell></dbx-table-summary-end-cell>\n </td>\n </ng-container>\n\n <!-- Table View -->\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsSignal(); sticky: true\"></tr>\n\n <tr mat-row *matRowDef=\"let row; columns: ['groupHeaderColumn']; when: showGroupHeaderRow\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumnsSignal(); when: showItemRow\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['groupFooterColumn']; when: showGroupFooterRow\"></tr>\n\n <tr [ngClass]=\"{ 'dbx-hide': !showFooterRowSignal() }\" mat-footer-row *matFooterRowDef=\"displayedColumnsSignal(); sticky: true\"></tr>\n </table>\n </section>\n <!-- Full summary row -->\n @if (showFullSummaryRowSignal()) {\n <div class=\"mat-mdc-table dbx-table-view-full-summary-row-container\">\n <div class=\"mdc-data-table__cell mat-mdc-row\">\n <dbx-table-full-summary-row></dbx-table-full-summary-row>\n </div>\n </div>\n }\n </div>\n</dbx-loading>\n", dependencies: [{ kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "diameter", "linear", "loading", "error", "context"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i1$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i1$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i1$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i1$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i1$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i1$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i1$1.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i1$1.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i1$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i1$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i1$1.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i1$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i1$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i1$1.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: DbxTableInputCellComponent, selector: "dbx-table-input-cell" }, { kind: "component", type: DbxTableItemHeaderComponent, selector: "dbx-table-item-header" }, { kind: "component", type: DbxTableItemCellComponent, selector: "dbx-table-item-cell", inputs: ["column"] }, { kind: "component", type: DbxTableItemActionComponent, selector: "dbx-table-item-action" }, { kind: "component", type: DbxTableActionCellComponent, selector: "dbx-table-action-cell" }, { kind: "component", type: DbxTableColumnHeaderComponent, selector: "dbx-table-column-header" }, { kind: "component", type: DbxTableColumnFooterComponent, selector: "dbx-table-column-footer" }, { kind: "component", type: DbxTableSummaryStartCellComponent, selector: "dbx-table-summary-start-cell" }, { kind: "component", type: DbxTableSummaryEndCellComponent, selector: "dbx-table-summary-end-cell" }, { kind: "component", type: DbxTableGroupHeaderComponent, selector: "dbx-table-group-header" }, { kind: "component", type: DbxTableGroupFooterComponent, selector: "dbx-table-group-footer" }, { kind: "component", type: DbxTableFullSummaryRowComponent, selector: "dbx-table-full-summary-row" }, { kind: "directive", type: DbxTableColumnSizeDirective, selector: "[dbxTableColumnSize]", exportAs: ["dbxTableColumnSize"] }, { kind: "directive", type: DbxColumnSizeColumnDirective, selector: "[dbx-column-size-column]", inputs: ["dbx-column-size-column"] }]
|
|
875
|
+
], viewQueries: [{ propertyName: "table", first: true, predicate: MatTable, descendants: true, isSignal: true }], ngImport: i0, template: "<dbx-loading [context]=\"context\">\n <dbx-loading class=\"dbx-table-view-loading\" [linear]=\"true\" [context]=\"dataLoadingContext\"></dbx-loading>\n <div class=\"dbx-table-view\" [ngClass]=\"tableCssClasses()\">\n <section class=\"dbx-table-view-table-wrapper\" dbxTableColumnSize #columnSize=\"dbxTableColumnSize\" infinite-scroll [infiniteScrollDistance]=\"scrollDistance()\" [infiniteScrollThrottle]=\"throttleScroll()\" [scrollWindow]=\"false\" (scrolled)=\"onScrollDown()\">\n <table class=\"dbx-table-view-table\" mat-table [dataSource]=\"elementsSignal()\" [trackBy]=\"trackElementByFunctionSignal()\" multiTemplateDataRows>\n <!-- Groups -->\n <!-- Group Header column -->\n <ng-container matColumnDef=\"groupHeaderColumn\" [sticky]=\"true\">\n <td mat-cell [attr.colspan]=\"columnSize.visibleColumnsSignal()\" *matCellDef=\"let element\">\n <dbx-table-group-header [group]=\"element.group\"></dbx-table-group-header>\n </td>\n </ng-container>\n\n <!-- Group Footer column -->\n <ng-container matColumnDef=\"groupFooterColumn\" [sticky]=\"true\">\n <td mat-cell [attr.colspan]=\"columnSize.visibleColumnsSignal()\" *matCellDef=\"let element\">\n <dbx-table-group-footer [group]=\"element.group\"></dbx-table-group-footer>\n </td>\n </ng-container>\n\n <!-- Items -->\n <!-- Header/Item column -->\n <ng-container [matColumnDef]=\"itemsColumnName\" [sticky]=\"true\">\n <th dbx-column-size-column=\"head\" mat-header-cell *matHeaderCellDef>\n <dbx-table-input-cell></dbx-table-input-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-header [item]=\"element.item\"></dbx-table-item-header>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-start-cell></dbx-table-summary-start-cell>\n </td>\n </ng-container>\n\n <!-- Column Definitions -->\n @for (column of innerColumnsSignal(); track column.columnName) {\n <ng-container [matColumnDef]=\"column.columnName\" [sticky]=\"false\">\n <th [dbx-column-size-column]=\"$index\" mat-header-cell *matHeaderCellDef>\n <dbx-table-column-header [column]=\"column\"></dbx-table-column-header>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-cell [item]=\"element.item\" [column]=\"column\"></dbx-table-item-cell>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-column-footer [column]=\"column\"></dbx-table-column-footer>\n </td>\n </ng-container>\n }\n\n <!-- Tail/Action column -->\n <ng-container [matColumnDef]=\"actionsColumnName\" [stickyEnd]=\"true\">\n <th dbx-column-size-column=\"tail\" mat-header-cell *matHeaderCellDef>\n <dbx-table-action-cell></dbx-table-action-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-action [item]=\"element.item\"></dbx-table-item-action>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-end-cell></dbx-table-summary-end-cell>\n </td>\n </ng-container>\n\n <!-- Table View -->\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsSignal(); sticky: true\"></tr>\n\n <tr mat-row *matRowDef=\"let row; columns: ['groupHeaderColumn']; when: showGroupHeaderRow\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumnsSignal(); when: showItemRow\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['groupFooterColumn']; when: showGroupFooterRow\"></tr>\n\n <tr [ngClass]=\"{ 'dbx-hide': !showFooterRowSignal() }\" mat-footer-row *matFooterRowDef=\"displayedColumnsSignal(); sticky: true\"></tr>\n </table>\n </section>\n <!-- Full summary row -->\n @if (showFullSummaryRowSignal()) {\n <div class=\"mat-mdc-table dbx-table-view-full-summary-row-container\">\n <div class=\"mdc-data-table__cell mat-mdc-row\">\n <dbx-table-full-summary-row></dbx-table-full-summary-row>\n </div>\n </div>\n }\n </div>\n</dbx-loading>\n", dependencies: [{ kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "diameter", "linear", "loading", "error", "context"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: InfiniteScrollDirective, selector: "[infiniteScroll], [infinite-scroll], [data-infinite-scroll]", inputs: ["infiniteScrollDistance", "infiniteScrollUpDistance", "infiniteScrollThrottle", "infiniteScrollDisabled", "infiniteScrollContainer", "scrollWindow", "immediateCheck", "horizontal", "alwaysCallback", "fromRoot"], outputs: ["scrolled", "scrolledUp"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i1$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i1$1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i1$1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i1$1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i1$1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i1$1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i1$1.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i1$1.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i1$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i1$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i1$1.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i1$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i1$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i1$1.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: DbxTableInputCellComponent, selector: "dbx-table-input-cell" }, { kind: "component", type: DbxTableItemHeaderComponent, selector: "dbx-table-item-header" }, { kind: "component", type: DbxTableItemCellComponent, selector: "dbx-table-item-cell", inputs: ["column"] }, { kind: "component", type: DbxTableItemActionComponent, selector: "dbx-table-item-action" }, { kind: "component", type: DbxTableActionCellComponent, selector: "dbx-table-action-cell" }, { kind: "component", type: DbxTableColumnHeaderComponent, selector: "dbx-table-column-header" }, { kind: "component", type: DbxTableColumnFooterComponent, selector: "dbx-table-column-footer" }, { kind: "component", type: DbxTableSummaryStartCellComponent, selector: "dbx-table-summary-start-cell" }, { kind: "component", type: DbxTableSummaryEndCellComponent, selector: "dbx-table-summary-end-cell" }, { kind: "component", type: DbxTableGroupHeaderComponent, selector: "dbx-table-group-header" }, { kind: "component", type: DbxTableGroupFooterComponent, selector: "dbx-table-group-footer" }, { kind: "component", type: DbxTableFullSummaryRowComponent, selector: "dbx-table-full-summary-row" }, { kind: "directive", type: DbxTableColumnSizeDirective, selector: "[dbxTableColumnSize]", exportAs: ["dbxTableColumnSize"] }, { kind: "directive", type: DbxColumnSizeColumnDirective, selector: "[dbx-column-size-column]", inputs: ["dbx-column-size-column"] }] });
|
|
887
876
|
}
|
|
888
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableViewComponent, decorators: [{
|
|
889
878
|
type: Component,
|
|
890
879
|
args: [{ selector: 'dbx-table-view', imports: [
|
|
891
880
|
DbxLoadingComponent,
|
|
@@ -911,7 +900,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
911
900
|
provide: DBX_TABLE_COLUMN_SIZE_PARENT_ELEMENT_REF_TOKEN,
|
|
912
901
|
useExisting: ElementRef
|
|
913
902
|
}
|
|
914
|
-
],
|
|
903
|
+
], template: "<dbx-loading [context]=\"context\">\n <dbx-loading class=\"dbx-table-view-loading\" [linear]=\"true\" [context]=\"dataLoadingContext\"></dbx-loading>\n <div class=\"dbx-table-view\" [ngClass]=\"tableCssClasses()\">\n <section class=\"dbx-table-view-table-wrapper\" dbxTableColumnSize #columnSize=\"dbxTableColumnSize\" infinite-scroll [infiniteScrollDistance]=\"scrollDistance()\" [infiniteScrollThrottle]=\"throttleScroll()\" [scrollWindow]=\"false\" (scrolled)=\"onScrollDown()\">\n <table class=\"dbx-table-view-table\" mat-table [dataSource]=\"elementsSignal()\" [trackBy]=\"trackElementByFunctionSignal()\" multiTemplateDataRows>\n <!-- Groups -->\n <!-- Group Header column -->\n <ng-container matColumnDef=\"groupHeaderColumn\" [sticky]=\"true\">\n <td mat-cell [attr.colspan]=\"columnSize.visibleColumnsSignal()\" *matCellDef=\"let element\">\n <dbx-table-group-header [group]=\"element.group\"></dbx-table-group-header>\n </td>\n </ng-container>\n\n <!-- Group Footer column -->\n <ng-container matColumnDef=\"groupFooterColumn\" [sticky]=\"true\">\n <td mat-cell [attr.colspan]=\"columnSize.visibleColumnsSignal()\" *matCellDef=\"let element\">\n <dbx-table-group-footer [group]=\"element.group\"></dbx-table-group-footer>\n </td>\n </ng-container>\n\n <!-- Items -->\n <!-- Header/Item column -->\n <ng-container [matColumnDef]=\"itemsColumnName\" [sticky]=\"true\">\n <th dbx-column-size-column=\"head\" mat-header-cell *matHeaderCellDef>\n <dbx-table-input-cell></dbx-table-input-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-header [item]=\"element.item\"></dbx-table-item-header>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-start-cell></dbx-table-summary-start-cell>\n </td>\n </ng-container>\n\n <!-- Column Definitions -->\n @for (column of innerColumnsSignal(); track column.columnName) {\n <ng-container [matColumnDef]=\"column.columnName\" [sticky]=\"false\">\n <th [dbx-column-size-column]=\"$index\" mat-header-cell *matHeaderCellDef>\n <dbx-table-column-header [column]=\"column\"></dbx-table-column-header>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-cell [item]=\"element.item\" [column]=\"column\"></dbx-table-item-cell>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-column-footer [column]=\"column\"></dbx-table-column-footer>\n </td>\n </ng-container>\n }\n\n <!-- Tail/Action column -->\n <ng-container [matColumnDef]=\"actionsColumnName\" [stickyEnd]=\"true\">\n <th dbx-column-size-column=\"tail\" mat-header-cell *matHeaderCellDef>\n <dbx-table-action-cell></dbx-table-action-cell>\n </th>\n <td mat-cell *matCellDef=\"let element\">\n <dbx-table-item-action [item]=\"element.item\"></dbx-table-item-action>\n </td>\n <td mat-footer-cell *matFooterCellDef>\n <dbx-table-summary-end-cell></dbx-table-summary-end-cell>\n </td>\n </ng-container>\n\n <!-- Table View -->\n <tr mat-header-row *matHeaderRowDef=\"displayedColumnsSignal(); sticky: true\"></tr>\n\n <tr mat-row *matRowDef=\"let row; columns: ['groupHeaderColumn']; when: showGroupHeaderRow\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumnsSignal(); when: showItemRow\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: ['groupFooterColumn']; when: showGroupFooterRow\"></tr>\n\n <tr [ngClass]=\"{ 'dbx-hide': !showFooterRowSignal() }\" mat-footer-row *matFooterRowDef=\"displayedColumnsSignal(); sticky: true\"></tr>\n </table>\n </section>\n <!-- Full summary row -->\n @if (showFullSummaryRowSignal()) {\n <div class=\"mat-mdc-table dbx-table-view-full-summary-row-container\">\n <div class=\"mdc-data-table__cell mat-mdc-row\">\n <dbx-table-full-summary-row></dbx-table-full-summary-row>\n </div>\n </div>\n }\n </div>\n</dbx-loading>\n" }]
|
|
915
904
|
}], propDecorators: { table: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MatTable), { isSignal: true }] }], scrollDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollDistance", required: false }] }], throttleScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "throttleScroll", required: false }] }] } });
|
|
916
905
|
|
|
917
906
|
/**
|
|
@@ -919,33 +908,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
|
|
|
919
908
|
*/
|
|
920
909
|
class DbxTableDirective {
|
|
921
910
|
tableStore = inject((DbxTableStore));
|
|
922
|
-
dbxTableInput = input(
|
|
923
|
-
|
|
924
|
-
|
|
911
|
+
dbxTableInput = input(/* @ts-ignore */
|
|
912
|
+
...(ngDevMode ? [undefined, { debugName: "dbxTableInput" }] : /* istanbul ignore next */ []));
|
|
913
|
+
dbxTableViewDelegate = input(/* @ts-ignore */
|
|
914
|
+
...(ngDevMode ? [undefined, { debugName: "dbxTableViewDelegate" }] : /* istanbul ignore next */ []));
|
|
915
|
+
dbxTableDataDelegate = input(/* @ts-ignore */
|
|
916
|
+
...(ngDevMode ? [undefined, { debugName: "dbxTableDataDelegate" }] : /* istanbul ignore next */ []));
|
|
925
917
|
_setOnTableStoreEffect = effect(() => {
|
|
926
918
|
this.tableStore.setInput(this.dbxTableInput());
|
|
927
919
|
this.tableStore.setViewDelegate(this.dbxTableViewDelegate());
|
|
928
920
|
this.tableStore.setDataDelegate(this.dbxTableDataDelegate());
|
|
929
|
-
},
|
|
930
|
-
|
|
931
|
-
static
|
|
921
|
+
}, /* @ts-ignore */
|
|
922
|
+
...(ngDevMode ? [{ debugName: "_setOnTableStoreEffect" }] : /* istanbul ignore next */ []));
|
|
923
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
924
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.4", type: DbxTableDirective, isStandalone: true, selector: "[dbxTable]", inputs: { dbxTableInput: { classPropertyName: "dbxTableInput", publicName: "dbxTableInput", isSignal: true, isRequired: false, transformFunction: null }, dbxTableViewDelegate: { classPropertyName: "dbxTableViewDelegate", publicName: "dbxTableViewDelegate", isSignal: true, isRequired: false, transformFunction: null }, dbxTableDataDelegate: { classPropertyName: "dbxTableDataDelegate", publicName: "dbxTableDataDelegate", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DbxTableStore], ngImport: i0 });
|
|
932
925
|
}
|
|
933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableDirective, decorators: [{
|
|
934
927
|
type: Directive,
|
|
935
928
|
args: [{
|
|
936
929
|
selector: '[dbxTable]',
|
|
937
|
-
providers: [DbxTableStore]
|
|
938
|
-
standalone: true
|
|
930
|
+
providers: [DbxTableStore]
|
|
939
931
|
}]
|
|
940
932
|
}], propDecorators: { dbxTableInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxTableInput", required: false }] }], dbxTableViewDelegate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxTableViewDelegate", required: false }] }], dbxTableDataDelegate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxTableDataDelegate", required: false }] }] } });
|
|
941
933
|
|
|
942
934
|
const importsAndExports = [DbxTableDirective, DbxTableViewComponent];
|
|
943
935
|
class DbxTableModule {
|
|
944
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
945
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
946
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
936
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
937
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.4", ngImport: i0, type: DbxTableModule, imports: [DbxTableDirective, DbxTableViewComponent], exports: [DbxTableDirective, DbxTableViewComponent] });
|
|
938
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableModule, imports: [DbxTableViewComponent] });
|
|
947
939
|
}
|
|
948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: DbxTableModule, decorators: [{
|
|
949
941
|
type: NgModule,
|
|
950
942
|
args: [{
|
|
951
943
|
imports: importsAndExports,
|