@dereekb/dbx-web 12.6.21 → 12.7.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/esm2022/lib/action/snackbar/action.snackbar.component.mjs +10 -14
- package/esm2022/lib/action/snackbar/action.snackbar.directive.mjs +8 -7
- package/esm2022/lib/action/transition/transition.safety.dialog.component.mjs +1 -1
- package/esm2022/lib/button/progress/abstract.progress.button.directive.mjs +5 -5
- package/esm2022/lib/error/error.action.directive.mjs +9 -9
- package/esm2022/lib/error/error.loading.directive.mjs +7 -6
- package/esm2022/lib/error/error.snackbar.action.directive.mjs +6 -7
- package/esm2022/lib/error/error.snackbar.component.mjs +9 -13
- package/esm2022/lib/extension/download/blob/download.blob.button.component.mjs +6 -10
- package/esm2022/lib/extension/download/text/download.text.component.mjs +1 -6
- package/esm2022/lib/extension/help/help.context.service.mjs +3 -5
- package/esm2022/lib/extension/model/model.tracker.view.storage.mjs +3 -5
- package/esm2022/lib/extension/zip/zip.blob.preview.component.mjs +4 -7
- package/esm2022/lib/extension/zip/zip.preview.component.mjs +4 -7
- package/esm2022/lib/interaction/dialog/dialog.action.directive.mjs +1 -1
- package/esm2022/lib/interaction/filter/filter.popover.component.mjs +9 -12
- package/esm2022/lib/interaction/filter/filter.wrapper.component.mjs +3 -2
- package/esm2022/lib/interaction/iframe/embed.component.mjs +7 -12
- package/esm2022/lib/interaction/iframe/iframe.component.mjs +7 -12
- package/esm2022/lib/interaction/popover/abstract.popover.ref.directive.mjs +8 -7
- package/esm2022/lib/interaction/popover/popover.action.directive.mjs +1 -1
- package/esm2022/lib/interaction/popover/popover.component.mjs +1 -3
- package/esm2022/lib/interaction/popover/popover.coordinator.component.mjs +5 -6
- package/esm2022/lib/interaction/popover/popover.coordinator.service.mjs +3 -5
- package/esm2022/lib/interaction/popup/popup.component.mjs +4 -9
- package/esm2022/lib/interaction/popup/popup.coordinator.component.mjs +5 -6
- package/esm2022/lib/interaction/popup/popup.coordinator.service.mjs +3 -5
- package/esm2022/lib/interaction/prompt/prompt.confirm.dialog.component.mjs +1 -1
- package/esm2022/lib/interaction/upload/upload.action.directive.mjs +8 -15
- package/esm2022/lib/layout/column/two/two.column.back.directive.mjs +8 -8
- package/esm2022/lib/layout/column/two/two.column.component.mjs +4 -5
- package/esm2022/lib/layout/column/two/two.column.sref.showright.directive.mjs +5 -6
- package/esm2022/lib/layout/column/two/two.column.store.mjs +3 -7
- package/esm2022/lib/layout/flex/flex.group.directive.mjs +4 -5
- package/esm2022/lib/layout/list/list.view.directive.mjs +16 -21
- package/esm2022/lib/layout/list/modifier/list.view.value.modifier.directive.mjs +11 -15
- package/esm2022/lib/layout/list/modifier/list.view.value.modifier.ripple.directive.mjs +1 -1
- package/esm2022/lib/layout/list/modifier/list.view.value.modifier.selection.directive.mjs +1 -1
- package/esm2022/lib/layout/style/style.body.directive.mjs +9 -9
- package/esm2022/lib/layout/style/style.directive.mjs +9 -9
- package/esm2022/lib/layout/style/style.set.directive.mjs +10 -10
- package/esm2022/lib/loading/loading.action.directive.mjs +3 -7
- package/esm2022/mapbox/lib/mapbox.injection.store.mjs +1 -1
- package/esm2022/mapbox/lib/mapbox.layout.resize.sync.directive.mjs +8 -8
- package/esm2022/mapbox/lib/mapbox.menu.component.mjs +17 -19
- package/esm2022/mapbox/lib/mapbox.store.mjs +1 -1
- package/esm2022/table/lib/date/daterange.table.cell.input.component.mjs +8 -11
- package/esm2022/table/lib/table.column.size.directive.mjs +8 -9
- package/fesm2022/dereekb-dbx-web-mapbox.mjs +22 -24
- package/fesm2022/dereekb-dbx-web-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web-table.mjs +13 -19
- package/fesm2022/dereekb-dbx-web-table.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-web.mjs +150 -229
- package/fesm2022/dereekb-dbx-web.mjs.map +1 -1
- package/lib/action/snackbar/action.snackbar.component.d.ts +4 -5
- package/lib/action/snackbar/action.snackbar.directive.d.ts +3 -2
- package/lib/action/transition/transition.safety.dialog.component.d.ts +1 -2
- package/lib/button/progress/abstract.progress.button.directive.d.ts +3 -3
- package/lib/error/error.action.directive.d.ts +3 -4
- package/lib/error/error.loading.directive.d.ts +2 -2
- package/lib/error/error.snackbar.action.directive.d.ts +2 -2
- package/lib/error/error.snackbar.component.d.ts +2 -4
- package/lib/extension/download/blob/download.blob.button.component.d.ts +3 -4
- package/lib/extension/download/text/download.text.component.d.ts +2 -4
- package/lib/extension/help/help.context.service.d.ts +1 -3
- package/lib/extension/model/model.tracker.view.storage.d.ts +2 -3
- package/lib/extension/zip/zip.blob.preview.component.d.ts +2 -3
- package/lib/extension/zip/zip.preview.component.d.ts +1 -3
- package/lib/interaction/dialog/dialog.action.directive.d.ts +2 -2
- package/lib/interaction/filter/filter.popover.component.d.ts +3 -5
- package/lib/interaction/filter/filter.wrapper.component.d.ts +1 -1
- package/lib/interaction/iframe/embed.component.d.ts +2 -4
- package/lib/interaction/iframe/iframe.component.d.ts +2 -4
- package/lib/interaction/popover/abstract.popover.ref.directive.d.ts +4 -4
- package/lib/interaction/popover/popover.action.directive.d.ts +2 -2
- package/lib/interaction/popover/popover.coordinator.component.d.ts +2 -4
- package/lib/interaction/popover/popover.coordinator.service.d.ts +2 -4
- package/lib/interaction/popup/popup.component.d.ts +2 -3
- package/lib/interaction/popup/popup.coordinator.component.d.ts +2 -4
- package/lib/interaction/popup/popup.coordinator.service.d.ts +1 -3
- package/lib/interaction/prompt/prompt.confirm.dialog.component.d.ts +1 -2
- package/lib/interaction/upload/upload.action.directive.d.ts +2 -6
- package/lib/layout/column/two/two.column.back.directive.d.ts +2 -4
- package/lib/layout/column/two/two.column.component.d.ts +1 -3
- package/lib/layout/column/two/two.column.sref.showright.directive.d.ts +1 -2
- package/lib/layout/column/two/two.column.store.d.ts +2 -3
- package/lib/layout/flex/flex.group.directive.d.ts +1 -2
- package/lib/layout/list/list.view.directive.d.ts +9 -10
- package/lib/layout/list/modifier/list.view.value.modifier.directive.d.ts +3 -6
- package/lib/layout/list/modifier/list.view.value.modifier.ripple.directive.d.ts +1 -2
- package/lib/layout/list/modifier/list.view.value.modifier.selection.directive.d.ts +1 -2
- package/lib/layout/style/style.body.directive.d.ts +2 -4
- package/lib/layout/style/style.directive.d.ts +2 -4
- package/lib/layout/style/style.set.directive.d.ts +2 -4
- package/lib/loading/loading.action.directive.d.ts +1 -3
- package/mapbox/lib/mapbox.injection.store.d.ts +1 -2
- package/mapbox/lib/mapbox.layout.resize.sync.directive.d.ts +2 -4
- package/mapbox/lib/mapbox.menu.component.d.ts +5 -6
- package/mapbox/lib/mapbox.store.d.ts +1 -2
- package/package.json +1 -1
- package/table/lib/date/daterange.table.cell.input.component.d.ts +2 -4
- package/table/lib/table.column.size.directive.d.ts +4 -5
|
@@ -12,10 +12,10 @@ import { DateAdapter } from '@angular/material/core';
|
|
|
12
12
|
import * as i2 from '@angular/forms';
|
|
13
13
|
import { FormGroup, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
14
14
|
import { format, addDays } from 'date-fns';
|
|
15
|
+
import { cleanSubscription, DbxInjectionComponent, completeOnDestroy, clean } from '@dereekb/dbx-core';
|
|
15
16
|
import * as i3 from '@angular/material/button';
|
|
16
17
|
import { MatButtonModule } from '@angular/material/button';
|
|
17
18
|
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
18
|
-
import { DbxInjectionComponent } from '@dereekb/dbx-core';
|
|
19
19
|
import { resizeSignal, DbxLoadingComponent } from '@dereekb/dbx-web';
|
|
20
20
|
import { InfiniteScrollDirective } from 'ngx-infinite-scroll';
|
|
21
21
|
import * as i1$1 from '@angular/material/table';
|
|
@@ -199,26 +199,22 @@ class DbxTableDateRangeDayDistanceInputCellInputComponent {
|
|
|
199
199
|
return `Select Date`;
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
|
-
|
|
203
|
-
this.
|
|
202
|
+
constructor() {
|
|
203
|
+
cleanSubscription(this.tableStore.input$.subscribe((x) => {
|
|
204
204
|
const start = x?.date ?? null;
|
|
205
205
|
const end = start ? addDays(start, this.daysDistance) : undefined;
|
|
206
206
|
this.range.setValue({
|
|
207
207
|
start,
|
|
208
208
|
end
|
|
209
209
|
});
|
|
210
|
-
});
|
|
211
|
-
this.
|
|
210
|
+
}));
|
|
211
|
+
cleanSubscription(this.rangeValue$
|
|
212
212
|
.pipe(filter((x) => Boolean(x.start)), distinctUntilChanged((a, b) => isSameDateDay(a?.start, b?.start)), throttleTime(100, undefined, { trailing: true }))
|
|
213
213
|
.subscribe((x) => {
|
|
214
214
|
if (x.start) {
|
|
215
215
|
this.tableStore.setInput({ date: x.start, distance: this.daysDistance });
|
|
216
216
|
}
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
ngOnDestroy() {
|
|
220
|
-
this._syncSub.destroy();
|
|
221
|
-
this._valueSub.destroy();
|
|
217
|
+
}));
|
|
222
218
|
}
|
|
223
219
|
get daysDistance() {
|
|
224
220
|
return this._configSignal().daysDistance;
|
|
@@ -275,7 +271,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
275
271
|
standalone: true,
|
|
276
272
|
imports: [MatDatepickerModule, ReactiveFormsModule, MatButtonModule]
|
|
277
273
|
}]
|
|
278
|
-
}] });
|
|
274
|
+
}], ctorParameters: () => [] });
|
|
279
275
|
function dbxTableDateRangeDayDistanceInputCellInput(componentConfig) {
|
|
280
276
|
const config = {
|
|
281
277
|
componentClass: DbxTableDateRangeDayDistanceInputCellInputComponent,
|
|
@@ -469,7 +465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
469
465
|
class DbxTableColumnSizeDirective {
|
|
470
466
|
elementRef = inject(ElementRef);
|
|
471
467
|
resized = resizeSignal(this.elementRef);
|
|
472
|
-
_columnsMap = new BehaviorSubject(new Map());
|
|
468
|
+
_columnsMap = completeOnDestroy(new BehaviorSubject(new Map()));
|
|
473
469
|
columns$ = this._columnsMap.asObservable();
|
|
474
470
|
columnsSignal = toSignal(this.columns$);
|
|
475
471
|
visibleColumnsSignal = computed(() => {
|
|
@@ -523,9 +519,6 @@ class DbxTableColumnSizeDirective {
|
|
|
523
519
|
this._columnsMap.next(this._columnsMap.value);
|
|
524
520
|
}
|
|
525
521
|
}
|
|
526
|
-
ngOnDestroy() {
|
|
527
|
-
this._columnsMap.complete();
|
|
528
|
-
}
|
|
529
522
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxTableColumnSizeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
530
523
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxTableColumnSizeDirective, isStandalone: true, selector: "[dbx-table-column-size]", exportAs: ["dbxTableColumnSize"], ngImport: i0 });
|
|
531
524
|
}
|
|
@@ -544,12 +537,13 @@ class DbxColumnSizeColumnDirective {
|
|
|
544
537
|
dbxColumnSizeDirective = inject(DbxTableColumnSizeDirective);
|
|
545
538
|
elementRef = inject(ElementRef);
|
|
546
539
|
index = input.required({ alias: 'dbx-column-size-column' });
|
|
540
|
+
constructor() {
|
|
541
|
+
clean(() => this.dbxColumnSizeDirective.removeColumn(this));
|
|
542
|
+
}
|
|
547
543
|
ngOnInit() {
|
|
544
|
+
// called after the index value has been input/set. Indexes are unique and set only once.
|
|
548
545
|
this.dbxColumnSizeDirective.addColumn(this);
|
|
549
546
|
}
|
|
550
|
-
ngOnDestroy() {
|
|
551
|
-
this.dbxColumnSizeDirective.removeColumn(this);
|
|
552
|
-
}
|
|
553
547
|
get width() {
|
|
554
548
|
return this.elementRef.nativeElement.clientWidth;
|
|
555
549
|
}
|
|
@@ -562,7 +556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
562
556
|
selector: '[dbx-column-size-column]',
|
|
563
557
|
standalone: true
|
|
564
558
|
}]
|
|
565
|
-
}] });
|
|
559
|
+
}], ctorParameters: () => [] });
|
|
566
560
|
|
|
567
561
|
const DBX_TABLE_COLUMN_SIZE_PARENT_ELEMENT_REF_TOKEN = new InjectionToken('DBX_TABLE_COLUMN_SIZE_PARENT_ELEMENT_REF_TOKEN');
|
|
568
562
|
|