@quadrel-enterprise-ui/framework 19.3.0 → 19.3.2
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/quadrel-enterprise-ui-framework.mjs +12 -17
- package/fesm2022/quadrel-enterprise-ui-framework.mjs.map +1 -1
- package/lib/table/store/table-store.service.d.ts +1 -1
- package/lib/tree/row/actions/secondary/menu/tree-row-actions-secondary-menu.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -23400,9 +23400,7 @@ class QdTableResolverService {
|
|
|
23400
23400
|
// TODO: Add Error handling
|
|
23401
23401
|
this.tableStoreService
|
|
23402
23402
|
.selectDataResolutionCriteria$()
|
|
23403
|
-
.pipe(takeUntil(this._destroyed$), distinctUntilChanged(isEqual$1), filter((resolutionCriteria) => {
|
|
23404
|
-
return !!resolutionCriteria && this.shouldDataBeResolved(resolutionCriteria);
|
|
23405
|
-
}), map(({ tableParams, connectorParams }) => {
|
|
23403
|
+
.pipe(takeUntil(this._destroyed$), distinctUntilChanged(isEqual$1), filter((resolutionCriteria) => !!resolutionCriteria && this.shouldDataBeResolved(resolutionCriteria)), map(({ tableParams, connectorParams }) => {
|
|
23406
23404
|
return {
|
|
23407
23405
|
...(this._hasPagination ? tableParams : {}),
|
|
23408
23406
|
...connectorParams
|
|
@@ -23420,7 +23418,7 @@ class QdTableResolverService {
|
|
|
23420
23418
|
this._refreshSubscription.unsubscribe();
|
|
23421
23419
|
this._refreshSubscription = this.tableStoreService
|
|
23422
23420
|
.selectDataResolutionCriteria$()
|
|
23423
|
-
.pipe(first(), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.PENDING)), switchMap(resolutionCriteria => this.tableDataResolver.resolve({
|
|
23421
|
+
.pipe(filter((criteria) => !!criteria), first(), tap(() => this.tableStoreService.setRequestState(QdTableRequestState.PENDING)), switchMap(resolutionCriteria => this.tableDataResolver.resolve({
|
|
23424
23422
|
...resolutionCriteria.tableParams,
|
|
23425
23423
|
...resolutionCriteria.connectorParams,
|
|
23426
23424
|
...(this._hasPagination && pageIndex !== undefined ? { page: pageIndex } : {})
|
|
@@ -24704,11 +24702,11 @@ class QdTableComponent {
|
|
|
24704
24702
|
}
|
|
24705
24703
|
ngOnInit() {
|
|
24706
24704
|
this.tableStoreService.tableId = this.config.uid || v4();
|
|
24707
|
-
this.resolverService.init(this.config.refreshOnLanguageChange, this.hasPagination);
|
|
24708
24705
|
this.tableStoreService.init();
|
|
24709
24706
|
this.tableStoreService.initTableState(this._data, this.hasResolver, this._connectors, this.hasPagination);
|
|
24710
24707
|
this.tableStoreService.updateTableStateRecentSecondaryAction(undefined);
|
|
24711
24708
|
this.tableStoreService.setupSort(this.config.columns);
|
|
24709
|
+
this.resolverService.init(this.config.refreshOnLanguageChange, this.hasPagination);
|
|
24712
24710
|
this.data$ = this.tableStoreService.tableDataEntries$();
|
|
24713
24711
|
this.mapColumnFillsWidth();
|
|
24714
24712
|
this.validateConfig();
|
|
@@ -26246,16 +26244,13 @@ class QdTreeRowActionsSecondaryMenuComponent {
|
|
|
26246
26244
|
this._destroy$.next();
|
|
26247
26245
|
this._destroy$.complete();
|
|
26248
26246
|
}
|
|
26249
|
-
handleSecondaryAction(type, index,
|
|
26250
|
-
|
|
26251
|
-
|
|
26252
|
-
|
|
26253
|
-
|
|
26254
|
-
|
|
26255
|
-
|
|
26256
|
-
index,
|
|
26257
|
-
rowData: this.rowData
|
|
26258
|
-
});
|
|
26247
|
+
handleSecondaryAction(type, index, isHidden) {
|
|
26248
|
+
if (isHidden)
|
|
26249
|
+
return;
|
|
26250
|
+
this.tableStoreService.updateTableStateRecentSecondaryAction({
|
|
26251
|
+
type,
|
|
26252
|
+
index,
|
|
26253
|
+
rowData: this.rowData
|
|
26259
26254
|
});
|
|
26260
26255
|
}
|
|
26261
26256
|
initViewMode() {
|
|
@@ -26269,11 +26264,11 @@ class QdTreeRowActionsSecondaryMenuComponent {
|
|
|
26269
26264
|
.subscribe(({ payload }) => this._viewonly$.next(payload.isViewonly));
|
|
26270
26265
|
}
|
|
26271
26266
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: QdTreeRowActionsSecondaryMenuComponent, deps: [{ token: QdTableStoreService }, { token: QdEventBrokerService, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
26272
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: QdTreeRowActionsSecondaryMenuComponent, isStandalone: false, selector: "[qd-tree-row-actions-secondary-menu]", inputs: { rowIndex: "rowIndex", rowData: "rowData", config: "config", testId: "testId" }, ngImport: i0, template: "<ng-container *ngIf=\"hasVisibleActions$ | async\">\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"200\"\n class=\"menu-button\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n >\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n\n <ng-template #menu>\n <ng-container *ngFor=\"let action of actions$ | async; let i = index\">\n <button\n *ngIf=\"!action.isHidden\"\n class=\"action-button\"\n (click)=\"handleSecondaryAction(action.type, rowIndex,
|
|
26267
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: QdTreeRowActionsSecondaryMenuComponent, isStandalone: false, selector: "[qd-tree-row-actions-secondary-menu]", inputs: { rowIndex: "rowIndex", rowData: "rowData", config: "config", testId: "testId" }, ngImport: i0, template: "<ng-container *ngIf=\"hasVisibleActions$ | async\">\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"200\"\n class=\"menu-button\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n >\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n\n <ng-template #menu>\n <ng-container *ngFor=\"let action of actions$ | async; let i = index\">\n <button\n *ngIf=\"!action.isHidden\"\n class=\"action-button\"\n (click)=\"handleSecondaryAction(action.type, rowIndex, action.isHidden)\"\n [attr.data-test-id]=\"testId + '-' + i\"\n >\n {{ action.i18n | translate }}\n </button>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [".menu-button{display:flex;padding:0 .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem;vertical-align:middle}.menu-button:hover,.menu-button:focus{color:#000}.action-button{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.action-button:hover{background-color:#f2f7fa}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: QdIconComponent, selector: "qd-icon", inputs: ["icon"] }, { kind: "directive", type: QdPopoverOnClickDirective, selector: "[qdPopoverOnClick]", inputs: ["qdPopoverOnClick", "positionStrategy", "qdPopoverCloseStrategy", "qdPopoverDisabled", "qdPopoverStopPropagation", "qdPopoverBackgroundColor", "qdPopoverMaxHeight", "qdPopoverMinWidth", "qdPopoverMaxWidth", "qdPopoverAutoSize", "qdPopoverEnableKeyControl"], outputs: ["opened", "closed"], exportAs: ["qdPopoverOnClick"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26273
26268
|
}
|
|
26274
26269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: QdTreeRowActionsSecondaryMenuComponent, decorators: [{
|
|
26275
26270
|
type: Component,
|
|
26276
|
-
args: [{ selector: '[qd-tree-row-actions-secondary-menu]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"hasVisibleActions$ | async\">\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"200\"\n class=\"menu-button\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n >\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n\n <ng-template #menu>\n <ng-container *ngFor=\"let action of actions$ | async; let i = index\">\n <button\n *ngIf=\"!action.isHidden\"\n class=\"action-button\"\n (click)=\"handleSecondaryAction(action.type, rowIndex,
|
|
26271
|
+
args: [{ selector: '[qd-tree-row-actions-secondary-menu]', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<ng-container *ngIf=\"hasVisibleActions$ | async\">\n <button\n type=\"button\"\n [qdPopoverOnClick]=\"menu\"\n [qdPopoverCloseStrategy]=\"'onEveryClick'\"\n [qdPopoverStopPropagation]=\"true\"\n [qdPopoverMinWidth]=\"200\"\n class=\"menu-button\"\n [attr.data-test-id]=\"testId + '-toggler'\"\n >\n <qd-icon icon=\"overflowMenuHorizontal\"></qd-icon>\n </button>\n\n <ng-template #menu>\n <ng-container *ngFor=\"let action of actions$ | async; let i = index\">\n <button\n *ngIf=\"!action.isHidden\"\n class=\"action-button\"\n (click)=\"handleSecondaryAction(action.type, rowIndex, action.isHidden)\"\n [attr.data-test-id]=\"testId + '-' + i\"\n >\n {{ action.i18n | translate }}\n </button>\n </ng-container>\n </ng-template>\n</ng-container>\n", styles: [".menu-button{display:flex;padding:0 .625rem 0 .375rem;background:unset;color:#454545;font-size:2rem;vertical-align:middle}.menu-button:hover,.menu-button:focus{color:#000}.action-button{display:block;width:100%;min-height:2rem;padding:0 1rem;background:#fff0;font-size:.75rem;text-align:left}.action-button:hover{background-color:#f2f7fa}\n"] }]
|
|
26277
26272
|
}], ctorParameters: () => [{ type: QdTableStoreService }, { type: QdEventBrokerService, decorators: [{
|
|
26278
26273
|
type: Optional
|
|
26279
26274
|
}] }], propDecorators: { rowIndex: [{
|