@skyux/ag-grid 13.10.0 → 13.11.1
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/skyux-ag-grid.mjs +268 -174
- package/fesm2022/skyux-ag-grid.mjs.map +1 -1
- package/index.d.ts +7 -8
- package/package.json +16 -16
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { NgClass, AsyncPipe, CommonModule, NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { NgModule, Injectable, input, numberAttribute, viewChild, inject, ChangeDetectorRef, ElementRef, DOCUMENT, effect, booleanAttribute, Input, HostBinding, ContentChild, ChangeDetectionStrategy, Component, contentChildren,
|
|
3
|
+
import { NgModule, Injectable, input, numberAttribute, viewChild, inject, ChangeDetectorRef, ElementRef, DOCUMENT, effect, booleanAttribute, Input, HostBinding, ContentChild, ChangeDetectionStrategy, Component, contentChildren, signal, linkedSignal, computed, untracked, Directive, InjectionToken, model, output, contentChild, EnvironmentInjector, HostListener, ViewChild, ViewEncapsulation, isSignal, DestroyRef, CSP_NONCE, Optional } from '@angular/core';
|
|
4
4
|
import { AgGridAngular } from 'ag-grid-angular';
|
|
5
5
|
import * as i3 from '@skyux/i18n';
|
|
6
6
|
import { SkyLibResourcesService, SkyI18nModule } from '@skyux/i18n';
|
|
7
7
|
import { toSignal, toObservable, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
8
|
import * as i1 from '@skyux/core';
|
|
9
9
|
import { SkyMutationObserverService, SkyIdModule, SkyViewkeeperModule, SkyMediaQueryService, SkyResizeObserverService, SkyAffixModule, SkyOverlayService, SkyScrollableHostService, SKY_STACKING_CONTEXT, SkyNumericModule, SkyDynamicComponentService, SkyDynamicComponentLocation, SkyLogService } from '@skyux/core';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { SkyDataManagerService } from '@skyux/data-manager';
|
|
11
|
+
import { Subject, BehaviorSubject, ReplaySubject, takeUntil, combineLatest, of, distinctUntilChanged, take, switchMap, filter, fromEvent, Subscription, merge, startWith, map, scan, fromEventPattern, isObservable, observeOn, asyncScheduler } from 'rxjs';
|
|
12
12
|
import * as i2$4 from '@skyux/theme';
|
|
13
13
|
import { SkyThemeService, SkyThemeModule } from '@skyux/theme';
|
|
14
14
|
import { themeQuartz, colorSchemeLight, KeyCode } from 'ag-grid-community';
|
|
15
|
-
import * as i1$1 from '@skyux/
|
|
16
|
-
import * as i1$2 from '@skyux/layout';
|
|
15
|
+
import * as i1$1 from '@skyux/layout';
|
|
17
16
|
import { SkyInlineDeleteModule } from '@skyux/layout';
|
|
18
17
|
import * as i2$2 from '@skyux/datetime';
|
|
19
18
|
import { SkyDatepickerModule, SkyDateService } from '@skyux/datetime';
|
|
20
|
-
import * as i1$
|
|
19
|
+
import * as i1$2 from '@angular/forms';
|
|
21
20
|
import { UntypedFormGroup, UntypedFormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
22
21
|
import * as i2 from '@skyux/lookup';
|
|
23
22
|
import { SkyAutocompleteModule, SkyLookupModule } from '@skyux/lookup';
|
|
24
23
|
import * as i2$1 from '@skyux/autonumeric';
|
|
25
24
|
import { SkyAutonumericModule } from '@skyux/autonumeric';
|
|
26
|
-
import
|
|
25
|
+
import { first } from 'rxjs/operators';
|
|
26
|
+
import * as i1$3 from '@skyux/forms';
|
|
27
27
|
import { SkyInputBoxModule, SkyCheckboxModule } from '@skyux/forms';
|
|
28
28
|
import * as i2$3 from '@skyux/indicators';
|
|
29
29
|
import { SkyStatusIndicatorModule, SkyWaitModule } from '@skyux/indicators';
|
|
30
|
-
import * as i1$
|
|
30
|
+
import * as i1$4 from '@skyux/popovers';
|
|
31
31
|
import { SkyPopoverMessageType, SkyPopoverModule } from '@skyux/popovers';
|
|
32
32
|
import * as i2$5 from '@skyux/icon';
|
|
33
33
|
import { SkyIconModule } from '@skyux/icon';
|
|
@@ -140,11 +140,11 @@ SkyLibResourcesService.addResources(RESOURCES);
|
|
|
140
140
|
* Import into any component library module that needs to use resource strings.
|
|
141
141
|
*/
|
|
142
142
|
class SkyAgGridResourcesModule {
|
|
143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
144
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
145
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
143
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridResourcesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
144
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridResourcesModule, exports: [SkyI18nModule] }); }
|
|
145
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridResourcesModule, imports: [SkyI18nModule] }); }
|
|
146
146
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridResourcesModule, decorators: [{
|
|
148
148
|
type: NgModule,
|
|
149
149
|
args: [{
|
|
150
150
|
exports: [SkyI18nModule],
|
|
@@ -285,10 +285,10 @@ class SkyAgGridAdapterService {
|
|
|
285
285
|
focusChild.focus();
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
289
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridAdapterService, deps: [{ token: i1.SkyCoreAdapterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridAdapterService, providedIn: 'root' }); }
|
|
290
290
|
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridAdapterService, decorators: [{
|
|
292
292
|
type: Injectable,
|
|
293
293
|
args: [{
|
|
294
294
|
providedIn: 'root',
|
|
@@ -674,10 +674,10 @@ class SkyAgGridWrapperComponent {
|
|
|
674
674
|
return false;
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.
|
|
677
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
678
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.15", type: SkyAgGridWrapperComponent, isStandalone: true, selector: "sky-ag-grid-wrapper", inputs: { compact: { classPropertyName: "compact", publicName: "compact", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.sky-ag-grid-layout-normal": "this.isNormalLayout" } }, queries: [{ propertyName: "agGrid", first: true, predicate: AgGridAngular, descendants: true, static: true }], viewQueries: [{ propertyName: "skyAgGridDiv", first: true, predicate: ["skyAgGridDiv"], descendants: true, isSignal: true }], ngImport: i0, template: "<span\n class=\"nav-anchor\"\n tabindex=\"0\"\n [id]=\"beforeAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n<div\n #skyAgGridDiv\n class=\"sky-ag-grid\"\n skyViewkeeperOmitShadow=\".ag-body-horizontal-scroll\"\n tabindex=\"0\"\n [class.sky-ag-grid-top-scrollbar]=\"\n agGrid?.gridOptions?.context &&\n agGrid?.gridOptions?.context['enableTopScroll']\n \"\n [ngClass]=\"wrapperClasses$ | async\"\n [id]=\"gridId\"\n [skyViewkeeper]=\"viewkeeperClasses\"\n (keydown)=\"onGridKeydown($event)\"\n (keyup.escape)=\"onKeyUpEscape($event)\"\n>\n <ng-content />\n</div>\n<span\n tabindex=\"0\"\n class=\"nav-anchor\"\n [id]=\"afterAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n", dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: SkyIdModule }, { kind: "ngmodule", type: SkyViewkeeperModule }, { kind: "directive", type: i1.λ3, selector: "[skyViewkeeper]", inputs: ["skyViewkeeper", "skyViewkeeperOmitShadow"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
679
679
|
}
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridWrapperComponent, decorators: [{
|
|
681
681
|
type: Component,
|
|
682
682
|
args: [{ selector: 'sky-ag-grid-wrapper', changeDetection: ChangeDetectionStrategy.OnPush, imports: [AsyncPipe, NgClass, SkyIdModule, SkyViewkeeperModule], template: "<span\n class=\"nav-anchor\"\n tabindex=\"0\"\n [id]=\"beforeAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n<div\n #skyAgGridDiv\n class=\"sky-ag-grid\"\n skyViewkeeperOmitShadow=\".ag-body-horizontal-scroll\"\n tabindex=\"0\"\n [class.sky-ag-grid-top-scrollbar]=\"\n agGrid?.gridOptions?.context &&\n agGrid?.gridOptions?.context['enableTopScroll']\n \"\n [ngClass]=\"wrapperClasses$ | async\"\n [id]=\"gridId\"\n [skyViewkeeper]=\"viewkeeperClasses\"\n (keydown)=\"onGridKeydown($event)\"\n (keyup.escape)=\"onKeyUpEscape($event)\"\n>\n <ng-content />\n</div>\n<span\n tabindex=\"0\"\n class=\"nav-anchor\"\n [id]=\"afterAnchorId\"\n (focusin)=\"onAnchorFocus($event)\"\n>\n</span>\n" }]
|
|
683
683
|
}], ctorParameters: () => [], propDecorators: { agGrid: [{
|
|
@@ -691,7 +691,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
691
691
|
}], compact: [{
|
|
692
692
|
type: Input,
|
|
693
693
|
args: [{ transform: booleanAttribute }]
|
|
694
|
-
}] } });
|
|
694
|
+
}], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeight", required: false }] }], skyAgGridDiv: [{ type: i0.ViewChild, args: ['skyAgGridDiv', { isSignal: true }] }] } });
|
|
695
695
|
|
|
696
696
|
function toColumnWidthName(breakpoint) {
|
|
697
697
|
return breakpoint === 'xs' ? 'xs' : 'sm';
|
|
@@ -701,25 +701,55 @@ function toColumnWidthName(breakpoint) {
|
|
|
701
701
|
*/
|
|
702
702
|
class SkyAgGridDataManagerAdapterDirective {
|
|
703
703
|
#currentAgGrid;
|
|
704
|
+
#isAgGridReady;
|
|
705
|
+
#currentAgGridReady;
|
|
704
706
|
#currentDataState;
|
|
705
707
|
#currentSkyAgGridWrapper;
|
|
706
|
-
#dataStateSub;
|
|
707
|
-
#viewConfig;
|
|
708
708
|
#ngUnsubscribe;
|
|
709
709
|
#changeDetector;
|
|
710
710
|
#dataManagerSvc;
|
|
711
|
+
#viewConfigs;
|
|
712
|
+
#viewConfig;
|
|
713
|
+
#activeView;
|
|
714
|
+
#isActiveView;
|
|
711
715
|
#breakpoint;
|
|
712
|
-
constructor(
|
|
716
|
+
constructor() {
|
|
717
|
+
this.viewId = input(...(ngDevMode ? [undefined, { debugName: "viewId" }] : []));
|
|
713
718
|
this.agGridList = contentChildren(AgGridAngular, ...(ngDevMode ? [{ debugName: "agGridList", descendants: true }] : [{
|
|
714
719
|
descendants: true,
|
|
715
720
|
}]));
|
|
716
721
|
this.skyAgGridWrapperList = contentChildren(SkyAgGridWrapperComponent, ...(ngDevMode ? [{ debugName: "skyAgGridWrapperList", descendants: true }] : [{
|
|
717
722
|
descendants: true,
|
|
718
723
|
}]));
|
|
724
|
+
this.#currentAgGrid = signal(undefined, ...(ngDevMode ? [{ debugName: "#currentAgGrid" }] : []));
|
|
725
|
+
this.#isAgGridReady = linkedSignal(computed(() => {
|
|
726
|
+
this.#currentAgGrid();
|
|
727
|
+
return false;
|
|
728
|
+
}), ...(ngDevMode ? [{ debugName: "#isAgGridReady" }] : []));
|
|
729
|
+
this.#currentAgGridReady = computed(() => {
|
|
730
|
+
const agGrid = this.#currentAgGrid();
|
|
731
|
+
if (this.#isAgGridReady()) {
|
|
732
|
+
return agGrid;
|
|
733
|
+
}
|
|
734
|
+
return undefined;
|
|
735
|
+
}, ...(ngDevMode ? [{ debugName: "#currentAgGridReady" }] : []));
|
|
719
736
|
this.#ngUnsubscribe = new Subject();
|
|
737
|
+
this.#changeDetector = inject(ChangeDetectorRef);
|
|
738
|
+
this.#dataManagerSvc = inject(SkyDataManagerService);
|
|
739
|
+
this.#viewConfigs = toSignal(this.#dataManagerSvc.getDataViewsUpdates(), {
|
|
740
|
+
initialValue: [],
|
|
741
|
+
});
|
|
742
|
+
this.#viewConfig = computed(() => {
|
|
743
|
+
const viewId = this.viewId();
|
|
744
|
+
return this.#viewConfigs().find((vc) => vc.id === viewId);
|
|
745
|
+
}, ...(ngDevMode ? [{ debugName: "#viewConfig" }] : []));
|
|
746
|
+
this.#activeView = toSignal(this.#dataManagerSvc.getActiveViewIdUpdates());
|
|
747
|
+
this.#isActiveView = computed(() => {
|
|
748
|
+
const activeViewId = this.#activeView();
|
|
749
|
+
const viewId = this.viewId();
|
|
750
|
+
return activeViewId === viewId;
|
|
751
|
+
}, ...(ngDevMode ? [{ debugName: "#isActiveView" }] : []));
|
|
720
752
|
this.#breakpoint = toSignal(inject(SkyMediaQueryService).breakpointChange);
|
|
721
|
-
this.#changeDetector = changeDetector;
|
|
722
|
-
this.#dataManagerSvc = dataManagerSvc;
|
|
723
753
|
effect(() => {
|
|
724
754
|
const list = this.agGridList();
|
|
725
755
|
this.#checkForAgGrid(list);
|
|
@@ -734,12 +764,28 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
734
764
|
this.#applyColumnWidths(breakpoint);
|
|
735
765
|
}
|
|
736
766
|
});
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
767
|
+
effect(() => {
|
|
768
|
+
const viewId = this.viewId();
|
|
769
|
+
const agGrid = this.#currentAgGridReady();
|
|
770
|
+
if (viewId && agGrid) {
|
|
771
|
+
if (agGrid.api.getGridOption('context')?.enableTopScroll) {
|
|
772
|
+
this.#dataManagerSvc.setViewkeeperClasses(viewId, [
|
|
773
|
+
'.ag-header',
|
|
774
|
+
'.ag-body-horizontal-scroll',
|
|
775
|
+
]);
|
|
776
|
+
}
|
|
777
|
+
else {
|
|
778
|
+
this.#dataManagerSvc.setViewkeeperClasses(viewId, ['.ag-header']);
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
effect(() => {
|
|
783
|
+
const isActiveView = this.#isActiveView();
|
|
784
|
+
const agGrid = untracked(this.#currentAgGridReady);
|
|
785
|
+
if (isActiveView && agGrid) {
|
|
786
|
+
agGrid.api.refreshCells();
|
|
787
|
+
}
|
|
788
|
+
});
|
|
743
789
|
}
|
|
744
790
|
ngOnDestroy() {
|
|
745
791
|
this.#unregisterAgGrid();
|
|
@@ -749,7 +795,7 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
749
795
|
const agGrid = agGridList[0];
|
|
750
796
|
const agGridCount = agGridList.length;
|
|
751
797
|
if (agGrid) {
|
|
752
|
-
if (agGrid !== this.#currentAgGrid) {
|
|
798
|
+
if (agGrid !== this.#currentAgGrid()) {
|
|
753
799
|
this.#registerAgGrid(agGrid);
|
|
754
800
|
}
|
|
755
801
|
if (agGridCount > 1) {
|
|
@@ -770,11 +816,7 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
770
816
|
}
|
|
771
817
|
#unregisterAgGrid() {
|
|
772
818
|
this.#ngUnsubscribe.next();
|
|
773
|
-
this.#currentAgGrid
|
|
774
|
-
/* istanbul ignore if */
|
|
775
|
-
if (this.#dataStateSub) {
|
|
776
|
-
this.#dataStateSub.unsubscribe();
|
|
777
|
-
}
|
|
819
|
+
this.#currentAgGrid.set(undefined);
|
|
778
820
|
}
|
|
779
821
|
#unregisterSkyAgGridWrapper() {
|
|
780
822
|
this.#currentSkyAgGridWrapper = undefined;
|
|
@@ -790,22 +832,17 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
790
832
|
}
|
|
791
833
|
#registerAgGrid(agGrid) {
|
|
792
834
|
this.#unregisterAgGrid();
|
|
793
|
-
this.#currentAgGrid
|
|
835
|
+
this.#currentAgGrid.set(agGrid);
|
|
794
836
|
if (agGrid) {
|
|
795
|
-
|
|
796
|
-
.pipe(takeUntil
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
this.#dataManagerSvc.setViewkeeperClasses(this.viewId, [
|
|
803
|
-
'.ag-header',
|
|
804
|
-
'.ag-body-horizontal-scroll',
|
|
805
|
-
]);
|
|
806
|
-
}
|
|
837
|
+
agGrid.gridReady
|
|
838
|
+
.pipe(takeUntil(this.#ngUnsubscribe), switchMap(() => {
|
|
839
|
+
const viewConfig = this.#viewConfig();
|
|
840
|
+
if (viewConfig) {
|
|
841
|
+
viewConfig.onSelectAllClick = () => agGrid.api.selectAll();
|
|
842
|
+
viewConfig.onClearAllClick = () => agGrid.api.deselectAll();
|
|
843
|
+
this.#dataManagerSvc.updateViewConfig(viewConfig);
|
|
807
844
|
this.#applyColumnWidths();
|
|
808
|
-
return this.#dataManagerSvc.getDataStateUpdates(
|
|
845
|
+
return this.#dataManagerSvc.getDataStateUpdates(viewConfig.id);
|
|
809
846
|
}
|
|
810
847
|
/* istanbul ignore next */
|
|
811
848
|
return of(undefined);
|
|
@@ -814,14 +851,15 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
814
851
|
this.#currentDataState = dataState;
|
|
815
852
|
this.#displayColumns(dataState);
|
|
816
853
|
this.#applySort(dataState);
|
|
854
|
+
this.#isAgGridReady.set(true);
|
|
817
855
|
});
|
|
818
856
|
agGrid.gridReady
|
|
819
|
-
.pipe(takeUntil
|
|
857
|
+
.pipe(takeUntil(this.#ngUnsubscribe), switchMap(() => fromEvent(agGrid.api, 'gridPreDestroyed')))
|
|
820
858
|
.subscribe(() => {
|
|
821
859
|
this.#unregisterAgGrid();
|
|
822
860
|
});
|
|
823
861
|
agGrid.columnMoved
|
|
824
|
-
.pipe(takeUntil
|
|
862
|
+
.pipe(takeUntil(this.#ngUnsubscribe), filter((event) => ![
|
|
825
863
|
'gridInitializing',
|
|
826
864
|
'uiColumnResized',
|
|
827
865
|
'uiColumnDragged',
|
|
@@ -831,7 +869,7 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
831
869
|
this.#updateColumnsInCurrentDataState(value.api);
|
|
832
870
|
});
|
|
833
871
|
agGrid.columnResized
|
|
834
|
-
.pipe(takeUntil
|
|
872
|
+
.pipe(takeUntil(this.#ngUnsubscribe), filter((event) => event.source === 'uiColumnResized'))
|
|
835
873
|
.subscribe((event) => {
|
|
836
874
|
const colId = event.column?.getColId();
|
|
837
875
|
const width = event.column?.getActualWidth();
|
|
@@ -841,14 +879,15 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
841
879
|
}
|
|
842
880
|
});
|
|
843
881
|
agGrid.dragStopped
|
|
844
|
-
.pipe(takeUntil
|
|
882
|
+
.pipe(takeUntil(this.#ngUnsubscribe))
|
|
845
883
|
.subscribe((value) => {
|
|
846
884
|
this.#updateColumnsInCurrentDataState(value.api);
|
|
847
885
|
});
|
|
848
886
|
agGrid.rowSelected
|
|
849
|
-
.pipe(takeUntil
|
|
887
|
+
.pipe(takeUntil(this.#ngUnsubscribe))
|
|
850
888
|
.subscribe((event) => {
|
|
851
|
-
|
|
889
|
+
const viewConfig = this.#viewConfig();
|
|
890
|
+
if (viewConfig && this.#currentDataState) {
|
|
852
891
|
const row = event.node;
|
|
853
892
|
const selectedIds = this.#currentDataState.selectedIds || [];
|
|
854
893
|
const rowIndex = selectedIds.indexOf(row.data.id);
|
|
@@ -859,15 +898,16 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
859
898
|
selectedIds.splice(rowIndex, 1);
|
|
860
899
|
}
|
|
861
900
|
this.#currentDataState.selectedIds = selectedIds;
|
|
862
|
-
this.#dataManagerSvc.updateDataState(this.#currentDataState,
|
|
901
|
+
this.#dataManagerSvc.updateDataState(this.#currentDataState, viewConfig.id);
|
|
863
902
|
this.#changeDetector.markForCheck();
|
|
864
903
|
}
|
|
865
904
|
});
|
|
866
|
-
agGrid.sortChanged.pipe(takeUntil
|
|
905
|
+
agGrid.sortChanged.pipe(takeUntil(this.#ngUnsubscribe)).subscribe(() => {
|
|
867
906
|
const gridColumnStates = agGrid.api.getColumnState();
|
|
907
|
+
const viewConfig = this.#viewConfig();
|
|
868
908
|
const activeSortColumnState = gridColumnStates?.find((aGridColumnState) => aGridColumnState.sortIndex === 0) ??
|
|
869
909
|
gridColumnStates?.find((aGridColumnState) => aGridColumnState.sort);
|
|
870
|
-
if (
|
|
910
|
+
if (viewConfig && this.#currentDataState) {
|
|
871
911
|
if (activeSortColumnState) {
|
|
872
912
|
const activeSortColumnDef = agGrid.api.getColumnDef(activeSortColumnState.colId);
|
|
873
913
|
this.#currentDataState.activeSortOption = {
|
|
@@ -880,20 +920,21 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
880
920
|
else {
|
|
881
921
|
this.#currentDataState.activeSortOption = undefined;
|
|
882
922
|
}
|
|
883
|
-
this.#dataManagerSvc.updateDataState(this.#currentDataState,
|
|
923
|
+
this.#dataManagerSvc.updateDataState(this.#currentDataState, viewConfig.id);
|
|
884
924
|
}
|
|
885
925
|
});
|
|
886
926
|
}
|
|
887
927
|
}
|
|
888
928
|
#updateColumnsInCurrentDataState(api) {
|
|
889
|
-
|
|
929
|
+
const viewConfig = this.#viewConfig();
|
|
930
|
+
if (viewConfig && this.#currentDataState) {
|
|
890
931
|
const columnOrder = this.#getColumnOrder(api);
|
|
891
|
-
const viewState = this.#currentDataState.getViewStateById(
|
|
932
|
+
const viewState = this.#currentDataState.getViewStateById(viewConfig.id);
|
|
892
933
|
if (viewState &&
|
|
893
934
|
(viewState.displayedColumnIds.length !== columnOrder.length ||
|
|
894
935
|
viewState.displayedColumnIds.some((col, i) => col !== columnOrder[i]))) {
|
|
895
936
|
viewState.displayedColumnIds = columnOrder;
|
|
896
|
-
this.#dataManagerSvc.updateDataState(this.#currentDataState.addOrUpdateView(
|
|
937
|
+
this.#dataManagerSvc.updateDataState(this.#currentDataState.addOrUpdateView(viewConfig.id, viewState), viewConfig.id);
|
|
897
938
|
}
|
|
898
939
|
}
|
|
899
940
|
}
|
|
@@ -904,9 +945,10 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
904
945
|
.map((state) => state.colId);
|
|
905
946
|
}
|
|
906
947
|
#displayColumns(dataState) {
|
|
907
|
-
const agGrid = this.#currentAgGrid;
|
|
908
|
-
|
|
909
|
-
|
|
948
|
+
const agGrid = this.#currentAgGrid();
|
|
949
|
+
const viewConfig = this.#viewConfig();
|
|
950
|
+
if (agGrid && viewConfig) {
|
|
951
|
+
const viewState = dataState.getViewStateById(viewConfig.id);
|
|
910
952
|
let displayedColumnIds = [];
|
|
911
953
|
/*istanbul ignore else*/
|
|
912
954
|
if (viewState?.displayedColumnIds) {
|
|
@@ -928,7 +970,7 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
928
970
|
}
|
|
929
971
|
}
|
|
930
972
|
#applySort(dataState) {
|
|
931
|
-
const agGrid = this.#currentAgGrid;
|
|
973
|
+
const agGrid = this.#currentAgGrid();
|
|
932
974
|
const activeSort = dataState.activeSortOption;
|
|
933
975
|
if (activeSort) {
|
|
934
976
|
agGrid?.api.applyColumnState({
|
|
@@ -943,33 +985,37 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
943
985
|
}
|
|
944
986
|
}
|
|
945
987
|
#updateColumnWidth(colId, width, breakpoint) {
|
|
946
|
-
const
|
|
947
|
-
|
|
988
|
+
const viewId = this.viewId();
|
|
989
|
+
const viewState = viewId && this.#currentDataState?.getViewStateById(viewId);
|
|
990
|
+
if (viewState && viewId && this.#currentDataState) {
|
|
948
991
|
const currentWidths = viewState?.columnWidths;
|
|
949
992
|
currentWidths[toColumnWidthName(breakpoint)][colId] = width;
|
|
950
993
|
viewState.columnWidths = currentWidths;
|
|
951
|
-
this.#dataManagerSvc.updateDataState(this.#currentDataState.addOrUpdateView(
|
|
994
|
+
this.#dataManagerSvc.updateDataState(this.#currentDataState.addOrUpdateView(viewId, viewState), viewId);
|
|
952
995
|
}
|
|
953
996
|
}
|
|
954
997
|
#removeColumnWidths(colIds) {
|
|
955
|
-
const
|
|
956
|
-
|
|
998
|
+
const viewId = this.viewId();
|
|
999
|
+
const viewState = viewId && this.#currentDataState?.getViewStateById(viewId);
|
|
1000
|
+
if (viewState && viewId && this.#currentDataState) {
|
|
957
1001
|
const currentWidths = viewState?.columnWidths;
|
|
958
1002
|
for (const colId of colIds) {
|
|
959
1003
|
delete currentWidths['xs'][colId];
|
|
960
1004
|
delete currentWidths['sm'][colId];
|
|
961
1005
|
}
|
|
962
1006
|
viewState.columnWidths = currentWidths;
|
|
963
|
-
this.#dataManagerSvc.updateDataState(this.#currentDataState.addOrUpdateView(
|
|
1007
|
+
this.#dataManagerSvc.updateDataState(this.#currentDataState.addOrUpdateView(viewId, viewState), viewId);
|
|
964
1008
|
}
|
|
965
1009
|
}
|
|
966
1010
|
#applyColumnWidths(breakpoint) {
|
|
967
1011
|
breakpoint ??= this.#breakpoint();
|
|
1012
|
+
const currentAgGrid = this.#currentAgGrid();
|
|
1013
|
+
const viewId = this.viewId();
|
|
968
1014
|
if (breakpoint) {
|
|
969
|
-
const viewState =
|
|
1015
|
+
const viewState = viewId && this.#currentDataState?.getViewStateById(viewId);
|
|
970
1016
|
if (viewState && viewState.columnWidths && viewState.displayedColumnIds) {
|
|
971
1017
|
const columnLimits = this.#getGridColumnLimits(viewState.displayedColumnIds, viewState.columnWidths, toColumnWidthName(breakpoint));
|
|
972
|
-
|
|
1018
|
+
currentAgGrid?.api.sizeColumnsToFit({ columnLimits });
|
|
973
1019
|
}
|
|
974
1020
|
}
|
|
975
1021
|
}
|
|
@@ -987,15 +1033,17 @@ class SkyAgGridDataManagerAdapterDirective {
|
|
|
987
1033
|
}
|
|
988
1034
|
return gridColumnLimits;
|
|
989
1035
|
}
|
|
990
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
991
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.3.
|
|
1036
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridDataManagerAdapterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1037
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.3.15", type: SkyAgGridDataManagerAdapterDirective, isStandalone: true, selector: "[skyAgGridDataManagerAdapter]", inputs: { viewId: { classPropertyName: "viewId", publicName: "viewId", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "agGridList", predicate: AgGridAngular, descendants: true, isSignal: true }, { propertyName: "skyAgGridWrapperList", predicate: SkyAgGridWrapperComponent, descendants: true, isSignal: true }], ngImport: i0 }); }
|
|
992
1038
|
}
|
|
993
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridDataManagerAdapterDirective, decorators: [{
|
|
994
1040
|
type: Directive,
|
|
995
1041
|
args: [{ selector: '[skyAgGridDataManagerAdapter]' }]
|
|
996
|
-
}], ctorParameters: () => [{ type: i0.
|
|
997
|
-
|
|
998
|
-
|
|
1042
|
+
}], ctorParameters: () => [], propDecorators: { viewId: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewId", required: false }] }], agGridList: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AgGridAngular), { ...{
|
|
1043
|
+
descendants: true,
|
|
1044
|
+
}, isSignal: true }] }], skyAgGridWrapperList: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => SkyAgGridWrapperComponent), { ...{
|
|
1045
|
+
descendants: true,
|
|
1046
|
+
}, isSignal: true }] }] } });
|
|
999
1047
|
|
|
1000
1048
|
/**
|
|
1001
1049
|
* @internal
|
|
@@ -1063,7 +1111,7 @@ class SkyAgGridRowDeleteComponent {
|
|
|
1063
1111
|
this.#resizeObserverSvc = inject(SkyResizeObserverService);
|
|
1064
1112
|
// Maintain table width when the grid is resized.
|
|
1065
1113
|
toObservable(this.service.gridElement)
|
|
1066
|
-
.pipe(filter
|
|
1114
|
+
.pipe(filter((el) => Array.isArray(el) && !!el[0]), switchMap((gridElement) => this.#resizeObserverSvc
|
|
1067
1115
|
.observe(gridElement[0])
|
|
1068
1116
|
.pipe(map(() => gridElement[0].nativeElement.offsetWidth))), takeUntilDestroyed())
|
|
1069
1117
|
.subscribe((tableWidth) => {
|
|
@@ -1071,7 +1119,7 @@ class SkyAgGridRowDeleteComponent {
|
|
|
1071
1119
|
});
|
|
1072
1120
|
// Clean up pending rows when the grid data is updated.
|
|
1073
1121
|
toObservable(this.service.gridApi)
|
|
1074
|
-
.pipe(filter
|
|
1122
|
+
.pipe(filter((gridApi) => !!gridApi), switchMap((gridApi) => fromEvent(gridApi, 'rowDataUpdated').pipe(takeUntil(fromEvent(gridApi, 'gridPreDestroyed')), map(() => gridApi))), takeUntilDestroyed())
|
|
1075
1123
|
.subscribe((gridApi) => {
|
|
1076
1124
|
this.pending.update((pending) => pending.filter((rowId) => !!gridApi.getRowNode(rowId)));
|
|
1077
1125
|
});
|
|
@@ -1083,10 +1131,10 @@ class SkyAgGridRowDeleteComponent {
|
|
|
1083
1131
|
this.pending.update((pending) => pending.concat(rowId));
|
|
1084
1132
|
this.service.confirmRowDelete.next(rowId);
|
|
1085
1133
|
}
|
|
1086
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1087
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1134
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridRowDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridRowDeleteComponent, isStandalone: true, selector: "sky-ag-grid-row-delete", host: { properties: { "style": "\"--table-width: \" + tableWidthStyle()" } }, ngImport: i0, template: "@for (row of rowsWithElements(); track row.increment) {\n @if (row.element?.offsetParent && row.element; as element) {\n <div\n class=\"sky-ag-grid-row-delete\"\n affixPlacement=\"above\"\n affixVerticalAlignment=\"top\"\n affixHorizontalAlignment=\"left\"\n [id]=\"'row-delete-ref-' + row.rowId\"\n [style.height]=\"element.offsetHeight + 'px'\"\n [skyAffixTo]=\"element\"\n [affixIsSticky]=\"true\"\n >\n <sky-inline-delete\n [pending]=\"pending().includes(row.rowId ?? '')\"\n (cancelTriggered)=\"cancelDelete(row.rowId)\"\n (deleteTriggered)=\"confirmDelete(row.rowId)\"\n />\n </div>\n }\n}\n", styles: [":host{display:block}.sky-ag-grid-row-delete{position:fixed;top:-100vh;width:var(--table-width, 100%)}\n"], dependencies: [{ kind: "ngmodule", type: SkyInlineDeleteModule }, { kind: "component", type: i1$1.λ8, selector: "sky-inline-delete", inputs: ["pending"], outputs: ["cancelTriggered", "deleteTriggered"] }, { kind: "ngmodule", type: SkyAffixModule }, { kind: "directive", type: i1.λ1, selector: "[skyAffixTo]", inputs: ["skyAffixTo", "affixAutoFitContext", "affixAutoFitOverflowOffset", "affixEnableAutoFit", "affixHorizontalAlignment", "affixIsSticky", "affixPlacement", "affixPosition", "affixVerticalAlignment"], outputs: ["affixOffsetChange", "affixOverflowScroll", "affixPlacementChange"] }] }); }
|
|
1088
1136
|
}
|
|
1089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridRowDeleteComponent, decorators: [{
|
|
1090
1138
|
type: Component,
|
|
1091
1139
|
args: [{ selector: 'sky-ag-grid-row-delete', imports: [SkyInlineDeleteModule, SkyAffixModule], host: {
|
|
1092
1140
|
'[style]': '"--table-width: " + tableWidthStyle()',
|
|
@@ -1124,14 +1172,19 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1124
1172
|
this.#agGridBodyViewport = new BehaviorSubject([]);
|
|
1125
1173
|
this.#agGridBodyClipElements = new BehaviorSubject([]);
|
|
1126
1174
|
this.#ngUnsubscribe = new Subject();
|
|
1127
|
-
this.#rowDeleteIdsInternal = linkedSignal({
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1175
|
+
this.#rowDeleteIdsInternal = linkedSignal(...(ngDevMode ? [{ debugName: "#rowDeleteIdsInternal", source: this.rowDeleteIds,
|
|
1176
|
+
computation: (value) => [...new Set(value)]
|
|
1177
|
+
.filter(Boolean)
|
|
1178
|
+
.map(String)
|
|
1179
|
+
.sort((a, b) => a.localeCompare(b)),
|
|
1180
|
+
equal: (a, b) => a.length === b.length && a.every((v, i) => v === b[i]) }] : [{
|
|
1181
|
+
source: this.rowDeleteIds,
|
|
1182
|
+
computation: (value) => [...new Set(value)]
|
|
1183
|
+
.filter(Boolean)
|
|
1184
|
+
.map(String)
|
|
1185
|
+
.sort((a, b) => a.localeCompare(b)),
|
|
1186
|
+
equal: (a, b) => a.length === b.length && a.every((v, i) => v === b[i]),
|
|
1187
|
+
}]));
|
|
1135
1188
|
this.#clipPath = new BehaviorSubject(undefined);
|
|
1136
1189
|
this.#zIndex = new BehaviorSubject(998);
|
|
1137
1190
|
this.#elementRef = inject((ElementRef));
|
|
@@ -1163,7 +1216,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1163
1216
|
}
|
|
1164
1217
|
});
|
|
1165
1218
|
const agGrid = toObservable(this.agGrid);
|
|
1166
|
-
const agGridReady = agGrid.pipe(filter
|
|
1219
|
+
const agGridReady = agGrid.pipe(filter((agGrid) => !!agGrid), switchMap((agGrid) => agGrid.gridReady), take(1), takeUntil(this.#ngUnsubscribe));
|
|
1167
1220
|
agGridReady.subscribe((ready) => {
|
|
1168
1221
|
this.#agGridBodyViewport.next([
|
|
1169
1222
|
new ElementRef(this.#elementRef.nativeElement.querySelector('div.ag-root-wrapper')),
|
|
@@ -1171,7 +1224,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1171
1224
|
this.#rowDeleteSvc.gridApi.set(ready.api);
|
|
1172
1225
|
});
|
|
1173
1226
|
agGrid
|
|
1174
|
-
.pipe(filter
|
|
1227
|
+
.pipe(filter((grid) => !!grid), switchMap((grid) => merge(grid.firstDataRendered.asObservable(), grid.rowDataUpdated.asObservable(), agGridReady.pipe(switchMap(() => fromEvent(grid.api, 'gridOptionsChanged')))).pipe(takeUntil(this.#ngUnsubscribe), takeUntil(agGridReady.pipe(switchMap(() => fromEvent(grid.api, 'gridPreDestroyed').pipe(take(1))))), startWith(grid.api?.getGridOption('domLayout')), map(() => grid.api?.getGridOption('domLayout')), switchMap((domLayout) => {
|
|
1175
1228
|
if (domLayout === 'normal') {
|
|
1176
1229
|
return this.#agGridBodyViewport.asObservable();
|
|
1177
1230
|
}
|
|
@@ -1185,7 +1238,7 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1185
1238
|
this.#agGridBodyClipElements.next(agGridBodyClipElements);
|
|
1186
1239
|
});
|
|
1187
1240
|
agGrid
|
|
1188
|
-
.pipe(filter
|
|
1241
|
+
.pipe(filter((agGrid) => !!agGrid), switchMap((agGrid) => agGrid.rowDataUpdated), takeUntil(this.#ngUnsubscribe))
|
|
1189
1242
|
.subscribe((evt) => {
|
|
1190
1243
|
this.rowDeleteIds.update((rowIds) => (rowIds ?? []).filter((id) => !!evt.api.getRowNode(id)));
|
|
1191
1244
|
});
|
|
@@ -1234,19 +1287,19 @@ class SkyAgGridRowDeleteDirective {
|
|
|
1234
1287
|
this.#overlayService.close(this.#overlay);
|
|
1235
1288
|
}
|
|
1236
1289
|
}
|
|
1237
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1238
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.3.
|
|
1290
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridRowDeleteDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1291
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.3.15", type: SkyAgGridRowDeleteDirective, isStandalone: true, selector: "[skyAgGridRowDelete]", inputs: { rowDeleteIds: { classPropertyName: "rowDeleteIds", publicName: "rowDeleteIds", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowDeleteIds: "rowDeleteIdsChange", rowDeleteCancel: "rowDeleteCancel", rowDeleteConfirm: "rowDeleteConfirm" }, queries: [{ propertyName: "agGrid", first: true, predicate: AgGridAngular, descendants: true, isSignal: true }], ngImport: i0 }); }
|
|
1239
1292
|
}
|
|
1240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridRowDeleteDirective, decorators: [{
|
|
1241
1294
|
type: Directive,
|
|
1242
1295
|
args: [{
|
|
1243
1296
|
selector: '[skyAgGridRowDelete]',
|
|
1244
1297
|
}]
|
|
1245
|
-
}], ctorParameters: () => [] });
|
|
1298
|
+
}], ctorParameters: () => [], propDecorators: { rowDeleteIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowDeleteIds", required: false }] }, { type: i0.Output, args: ["rowDeleteIdsChange"] }], rowDeleteCancel: [{ type: i0.Output, args: ["rowDeleteCancel"] }], rowDeleteConfirm: [{ type: i0.Output, args: ["rowDeleteConfirm"] }], agGrid: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AgGridAngular), { isSignal: true }] }] } });
|
|
1246
1299
|
|
|
1247
1300
|
class SkyAgGridModule {
|
|
1248
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1249
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
1301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1302
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridModule, imports: [AgGridAngular,
|
|
1250
1303
|
CommonModule,
|
|
1251
1304
|
SkyAgGridDataManagerAdapterDirective,
|
|
1252
1305
|
SkyAgGridResourcesModule,
|
|
@@ -1254,12 +1307,12 @@ class SkyAgGridModule {
|
|
|
1254
1307
|
SkyAgGridWrapperComponent], exports: [SkyAgGridDataManagerAdapterDirective,
|
|
1255
1308
|
SkyAgGridRowDeleteDirective,
|
|
1256
1309
|
SkyAgGridWrapperComponent] }); }
|
|
1257
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
1310
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridModule, imports: [AgGridAngular,
|
|
1258
1311
|
CommonModule,
|
|
1259
1312
|
SkyAgGridResourcesModule,
|
|
1260
1313
|
SkyAgGridWrapperComponent] }); }
|
|
1261
1314
|
}
|
|
1262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridModule, decorators: [{
|
|
1263
1316
|
type: NgModule,
|
|
1264
1317
|
args: [{
|
|
1265
1318
|
imports: [
|
|
@@ -1445,10 +1498,10 @@ class SkyAgGridCellEditorAutocompleteComponent {
|
|
|
1445
1498
|
this.#params?.api.stopEditing();
|
|
1446
1499
|
}
|
|
1447
1500
|
}
|
|
1448
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1449
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1501
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1502
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellEditorAutocompleteComponent, isStandalone: true, selector: "sky-ag-grid-cell-editor-autocomplete", host: { listeners: { "focusout": "onBlur($event)" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorAutocomplete"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div class=\"sky-ag-grid-cell-editor-autocomplete\" [formGroup]=\"editorForm\">\n <sky-autocomplete\n [allowAnyValue]=\"skyComponentProperties.allowAnyValue\"\n [data]=\"skyComponentProperties.data\"\n [debounceTime]=\"skyComponentProperties.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties.descriptorProperty\"\n [highlightSearchText]=\"skyComponentProperties.highlightSearchText ?? true\"\n [propertiesToSearch]=\"skyComponentProperties.propertiesToSearch\"\n [search]=\"skyComponentProperties.search\"\n [searchFilters]=\"skyComponentProperties.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties.searchTextMinimumCharacters\n \"\n (selectionChange)=\"\n skyComponentProperties.selectionChange &&\n skyComponentProperties.selectionChange($event)\n \"\n (openChange)=\"onAutocompleteOpenChange($event)\"\n >\n <input\n #skyCellEditorAutocomplete\n formControlName=\"selection\"\n skyAutocomplete\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_autocomplete_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n />\n </sky-autocomplete>\n</div>\n", styles: ["sky-autocomplete input{background-color:transparent;border:none;box-shadow:none}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyAutocompleteModule }, { kind: "component", type: i2.λ2, selector: "sky-autocomplete", inputs: ["ariaLabelledBy", "data", "debounceTime", "descriptorProperty", "dropdownHintText", "enableShowMore", "messageStream", "wrapperClass", "propertiesToSearch", "search", "searchResultTemplate", "searchTextMinimumCharacters", "searchFilters", "searchResultsLimit", "showAddButton", "noResultsFoundText", "searchAsyncDisabled", "allowAnyValue", "highlightSearchText"], outputs: ["addClick", "showMoreClick", "selectionChange", "searchAsync", "openChange"] }, { kind: "directive", type: i2.λ1, selector: "input[skyAutocomplete], textarea[skyAutocomplete]", inputs: ["autocompleteAttribute", "disabled"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1450
1503
|
}
|
|
1451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorAutocompleteComponent, decorators: [{
|
|
1452
1505
|
type: Component,
|
|
1453
1506
|
args: [{ selector: 'sky-ag-grid-cell-editor-autocomplete', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1454
1507
|
FormsModule,
|
|
@@ -1485,6 +1538,9 @@ class SkyAgGridCellEditorCurrencyComponent {
|
|
|
1485
1538
|
// This happens when the refreshCells API is called.
|
|
1486
1539
|
this.afterGuiAttached();
|
|
1487
1540
|
}
|
|
1541
|
+
else if (event.target === this.input?.nativeElement) {
|
|
1542
|
+
this.#stopEditingOnBlur();
|
|
1543
|
+
}
|
|
1488
1544
|
}
|
|
1489
1545
|
#triggerType;
|
|
1490
1546
|
#changeDetector;
|
|
@@ -1564,10 +1620,15 @@ class SkyAgGridCellEditorCurrencyComponent {
|
|
|
1564
1620
|
}
|
|
1565
1621
|
this.#initialized = true;
|
|
1566
1622
|
}
|
|
1567
|
-
|
|
1568
|
-
|
|
1623
|
+
#stopEditingOnBlur() {
|
|
1624
|
+
if (this.params?.api.getGridOption('stopEditingWhenCellsLoseFocus')) {
|
|
1625
|
+
this.params?.api.stopEditing();
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1629
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellEditorCurrencyComponent, isStandalone: true, selector: "sky-ag-grid-cell-editor-currency", host: { listeners: { "focusout": "onFocusOut($event)" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorCurrency"], descendants: true, read: ElementRef }], ngImport: i0, template: "<ng-container [formGroup]=\"editorForm\">\n <input\n #skyCellEditorCurrency\n type=\"text\"\n [formControl]=\"currency\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_currency_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n [skyAutonumeric]=\"skyComponentProperties\"\n [skyAutonumericFormChangesUnformatted]=\"params?.eventKey?.length === 1\"\n (keyup.enter)=\"onPressEnter()\"\n (keyup.escape)=\"onPressEscape()\"\n />\n</ng-container>\n", styles: ["input:not(.sky-theme-modern *){--sky-override-ag-grid-currency-editor-left-padding: 9px}:host{height:100%;width:100%}input{background-color:transparent;border:none;height:100%;width:100%;padding-left:var(--sky-override-ag-grid-currency-editor-left-padding, calc(var(--sky-comp-grid-cell-space-inset-left) - var(--sky-border-width-input-focus)))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: SkyAutonumericModule }, { kind: "directive", type: i2$1.λ1, selector: "input[skyAutonumeric]", inputs: ["skyAutonumeric", "skyAutonumericFormChangesUnformatted"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1569
1630
|
}
|
|
1570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorCurrencyComponent, decorators: [{
|
|
1571
1632
|
type: Component,
|
|
1572
1633
|
args: [{ selector: 'sky-ag-grid-cell-editor-currency', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1573
1634
|
FormsModule,
|
|
@@ -1719,10 +1780,10 @@ class SkyAgGridCellEditorDatepickerComponent {
|
|
|
1719
1780
|
this.#params?.api.stopEditing();
|
|
1720
1781
|
}
|
|
1721
1782
|
}
|
|
1722
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1723
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1783
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1784
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellEditorDatepickerComponent, isStandalone: true, selector: "sky-ag-grid-cell-editor-datepicker", host: { listeners: { "focusout": "onFocusOut($event)" } }, viewQueries: [{ propertyName: "datepickerInput", first: true, predicate: ["skyCellEditorDatepickerInput"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n class=\"sky-ag-grid-cell-editor-datepicker\"\n [formGroup]=\"editorForm\"\n [style.width.px]=\"columnWidthWithoutBorders\"\n>\n <sky-datepicker\n data-sky-id=\"cell-datepicker\"\n pickerClass=\"ag-custom-component-popup\"\n (dateFormatChange)=\"onDateFormatChange($event)\"\n (openChange)=\"onCalendarOpenChange($event)\"\n >\n <input\n #skyCellEditorDatepickerInput\n formControlName=\"date\"\n skyDatepickerInput\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_datepicker_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n [attr.title]=\"\n resolvedDateFormat\n ? ('skyux_datepicker_format_hint_text'\n | skyLibResources: resolvedDateFormat)\n : null\n \"\n [minDate]=\"skyComponentProperties.minDate\"\n [maxDate]=\"skyComponentProperties.maxDate\"\n [dateFormat]=\"skyComponentProperties.dateFormat\"\n [startingDay]=\"skyComponentProperties.startingDay\"\n [skyDatepickerNoValidate]=\"skyComponentProperties.skyDatepickerNoValidate\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n />\n </sky-datepicker>\n</div>\n", styles: [".sky-ag-grid-cell-editor-datepicker:not(.sky-theme-modern *){--sky-override-ag-grid-datepicker-editor-border-width: 1px;--sky-override-ag-grid-datepicker-editor-border-color: transparent #cdcfd2 transparent transparent;--sky-override-ag-grid-datepicker-editor-position: relative;--sky-override-ag-grid-datepicker-editor-top-left: 1px}.sky-ag-grid-cell-editor-datepicker{position:var(--sky-override-ag-grid-datepicker-editor-position, static);top:var(--sky-override-ag-grid-datepicker-editor-top-left, initial);left:var(--sky-override-ag-grid-datepicker-editor-top-left, initial)}.sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control{background-color:var(--ag-background-color);box-shadow:none;border-width:var(--sky-override-ag-grid-datepicker-editor-border-width, var(--sky-border-width-input-base));border-style:solid;border-color:var(--sky-override-ag-grid-datepicker-editor-border-color, var(--sky-color-border-input-focus))}.sky-ag-grid-cell-editor-datepicker sky-datepicker input.sky-form-control:focus{border-width:var(--sky-override-ag-grid-datepicker-editor-border-width, var(--sky-border-width-input-focus))}.sky-ag-grid-cell-editor-datepicker sky-datepicker .sky-input-group-datepicker-btn{border-radius:0}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyDatepickerModule }, { kind: "component", type: i2$2.λ2, selector: "sky-datepicker", inputs: ["pickerClass"], outputs: ["calendarDateRangeChange", "dateFormatChange", "openChange", "calendarDateChange"] }, { kind: "directive", type: i2$2.λ3, selector: "[skyDatepickerInput]", inputs: ["dateFormat", "disabled", "maxDate", "minDate", "startAtDate", "skyDatepickerInput", "skyDatepickerNoValidate", "startingDay", "strict"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1724
1785
|
}
|
|
1725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1786
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorDatepickerComponent, decorators: [{
|
|
1726
1787
|
type: Component,
|
|
1727
1788
|
args: [{ selector: 'sky-ag-grid-cell-editor-datepicker', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [
|
|
1728
1789
|
FormsModule,
|
|
@@ -1875,10 +1936,10 @@ class SkyAgGridCellEditorLookupComponent {
|
|
|
1875
1936
|
this.#params?.api.stopEditing();
|
|
1876
1937
|
}
|
|
1877
1938
|
}
|
|
1878
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1879
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1939
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorLookupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1940
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridCellEditorLookupComponent, isStandalone: true, selector: "sky-ag-grid-cell-editor-lookup", host: { listeners: { "focusout": "onBlur($event)" }, properties: { "style.width.px": "this.width" } }, ngImport: i0, template: "@if (isAlive && useAsyncSearch) {\n <sky-input-box\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"editorForm\"\n >\n <sky-lookup\n formControlName=\"selection\"\n [ariaLabelledBy]=\"\n skyComponentProperties?.ariaLabelledBy ?? screenReaderLabel.id\n \"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [search]=\"skyComponentProperties?.search\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n (searchAsync)=\"skyComponentProperties?.searchAsync?.($event)\"\n (addClick)=\"skyComponentProperties?.addClick?.($event)\"\n (openChange)=\"onLookupOpenChange($event)\"\n (selectionModalOpenChange)=\"onSelectionModalOpenChange($event)\"\n />\n </sky-input-box>\n}\n@if (isAlive && !useAsyncSearch) {\n <sky-input-box\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"editorForm\"\n >\n <sky-lookup\n formControlName=\"selection\"\n [ariaLabelledBy]=\"\n skyComponentProperties?.ariaLabelledBy ?? screenReaderLabel.id\n \"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [search]=\"skyComponentProperties?.search\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n (addClick)=\"skyComponentProperties?.addClick?.($event)\"\n (openChange)=\"onLookupOpenChange($event)\"\n (selectionModalOpenChange)=\"onSelectionModalOpenChange($event)\"\n />\n </sky-input-box>\n}\n<div #screenReaderLabel=\"skyId\" class=\"sky-screen-reader-only\" skyId>\n {{ labelText }}\n</div>\n", styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: SkyInputBoxModule }, { kind: "component", type: i1$3.λ10, selector: "sky-input-box", inputs: ["hasErrors", "disabled", "labelText", "characterLimit", "stacked", "helpPopoverTitle", "helpPopoverContent", "helpKey", "hintText"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyLookupModule }, { kind: "component", type: i2.λ4, selector: "sky-lookup", inputs: ["ariaLabel", "ariaLabelledBy", "autocompleteAttribute", "data", "disabled", "required", "enableShowMore", "placeholderText", "idProperty", "showAddButton", "showMoreConfig", "selectMode", "wrapperClass"], outputs: ["addClick", "openChange", "selectionModalOpenChange"] }, { kind: "ngmodule", type: SkyIdModule }, { kind: "directive", type: i1.λ2, selector: "[skyId]", exportAs: ["skyId"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1880
1941
|
}
|
|
1881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorLookupComponent, decorators: [{
|
|
1882
1943
|
type: Component,
|
|
1883
1944
|
args: [{ selector: 'sky-ag-grid-cell-editor-lookup', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1884
1945
|
SkyInputBoxModule,
|
|
@@ -1911,6 +1972,9 @@ class SkyAgGridCellEditorNumberComponent {
|
|
|
1911
1972
|
// This happens when the refreshCells API is called.
|
|
1912
1973
|
this.afterGuiAttached();
|
|
1913
1974
|
}
|
|
1975
|
+
else if (event.target === this.input?.nativeElement) {
|
|
1976
|
+
this.#stopEditingOnBlur();
|
|
1977
|
+
}
|
|
1914
1978
|
}
|
|
1915
1979
|
#params;
|
|
1916
1980
|
#triggerType;
|
|
@@ -1944,6 +2008,9 @@ class SkyAgGridCellEditorNumberComponent {
|
|
|
1944
2008
|
this.columnWidth = this.#params.column.getActualWidth();
|
|
1945
2009
|
this.rowHeightWithoutBorders = this.#params.node.rowHeight - 4;
|
|
1946
2010
|
}
|
|
2011
|
+
refresh(params) {
|
|
2012
|
+
this.agInit(params);
|
|
2013
|
+
}
|
|
1947
2014
|
/**
|
|
1948
2015
|
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
1949
2016
|
*/
|
|
@@ -1965,10 +2032,15 @@ class SkyAgGridCellEditorNumberComponent {
|
|
|
1965
2032
|
const val = this.editorForm.get('number')?.value;
|
|
1966
2033
|
return val !== undefined && val !== null ? val : undefined;
|
|
1967
2034
|
}
|
|
1968
|
-
|
|
1969
|
-
|
|
2035
|
+
#stopEditingOnBlur() {
|
|
2036
|
+
if (this.#params?.api.getGridOption('stopEditingWhenCellsLoseFocus')) {
|
|
2037
|
+
this.#params?.api.stopEditing();
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2041
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellEditorNumberComponent, isStandalone: true, selector: "sky-ag-grid-cell-editor-number", host: { listeners: { "focusout": "onFocusOut($event)" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorNumber"], descendants: true, read: ElementRef }], ngImport: i0, template: "<ng-container [formGroup]=\"editorForm\">\n <input\n #skyCellEditorNumber\n formControlName=\"number\"\n type=\"number\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_number_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [max]=\"max ?? null\"\n [min]=\"min ?? null\"\n />\n</ng-container>\n", styles: ["input{background-color:transparent;border:none;text-align:right}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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: i1$2.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1$2.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1970
2042
|
}
|
|
1971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2043
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, decorators: [{
|
|
1972
2044
|
type: Component,
|
|
1973
2045
|
args: [{ selector: 'sky-ag-grid-cell-editor-number', changeDetection: ChangeDetectionStrategy.OnPush, imports: [FormsModule, ReactiveFormsModule, SkyI18nModule], template: "<ng-container [formGroup]=\"editorForm\">\n <input\n #skyCellEditorNumber\n formControlName=\"number\"\n type=\"number\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_number_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [max]=\"max ?? null\"\n [min]=\"min ?? null\"\n />\n</ng-container>\n", styles: ["input{background-color:transparent;border:none;text-align:right}\n"] }]
|
|
1974
2046
|
}], propDecorators: { input: [{
|
|
@@ -1995,6 +2067,9 @@ class SkyAgGridCellEditorTextComponent {
|
|
|
1995
2067
|
// This happens when the refreshCells API is called.
|
|
1996
2068
|
this.afterGuiAttached();
|
|
1997
2069
|
}
|
|
2070
|
+
else if (event.target === this.input?.nativeElement) {
|
|
2071
|
+
this.#stopEditingOnBlur();
|
|
2072
|
+
}
|
|
1998
2073
|
}
|
|
1999
2074
|
#params;
|
|
2000
2075
|
#triggerType;
|
|
@@ -2025,6 +2100,9 @@ class SkyAgGridCellEditorTextComponent {
|
|
|
2025
2100
|
this.columnHeader = this.#params.api.getDisplayNameForColumn(this.#params.column, 'header');
|
|
2026
2101
|
this.rowNumber = this.#params.rowIndex + 1;
|
|
2027
2102
|
}
|
|
2103
|
+
refresh(params) {
|
|
2104
|
+
this.agInit(params);
|
|
2105
|
+
}
|
|
2028
2106
|
/**
|
|
2029
2107
|
* afterGuiAttached is called by agGrid after the editor is rendered in the DOM. Once it is attached the editor is ready to be focused on.
|
|
2030
2108
|
*/
|
|
@@ -2045,10 +2123,15 @@ class SkyAgGridCellEditorTextComponent {
|
|
|
2045
2123
|
getValue() {
|
|
2046
2124
|
return this.editorForm.get('text')?.value || undefined;
|
|
2047
2125
|
}
|
|
2048
|
-
|
|
2049
|
-
|
|
2126
|
+
#stopEditingOnBlur() {
|
|
2127
|
+
if (this.#params?.api.getGridOption('stopEditingWhenCellsLoseFocus')) {
|
|
2128
|
+
this.#params?.api.stopEditing();
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2132
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellEditorTextComponent, isStandalone: true, selector: "sky-ag-grid-cell-editor-text", host: { listeners: { "focusout": "onFocusOut($event)" } }, viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorText"], descendants: true, read: ElementRef }], ngImport: i0, template: "<ng-container [formGroup]=\"editorForm\">\n <input\n #skyCellEditorText\n formControlName=\"text\"\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n [maxlength]=\"maxlength ?? null\"\n />\n</ng-container>\n", styles: ["input:not(.sky-theme-modern *){--sky-override-ag-grid-text-editor-left-padding: 9px}:host{height:100%;width:100%;display:flex}input{background-color:transparent;border:none;height:100%;width:100%;padding-left:var(--sky-override-ag-grid-text-editor-left-padding, calc(var(--sky-comp-grid-cell-space-inset-left) - var(--sky-border-width-input-focus)))}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$2.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: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2050
2133
|
}
|
|
2051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellEditorTextComponent, decorators: [{
|
|
2052
2135
|
type: Component,
|
|
2053
2136
|
args: [{ selector: 'sky-ag-grid-cell-editor-text', changeDetection: ChangeDetectionStrategy.OnPush, imports: [FormsModule, ReactiveFormsModule, SkyI18nModule], template: "<ng-container [formGroup]=\"editorForm\">\n <input\n #skyCellEditorText\n formControlName=\"text\"\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader : rowNumber\n \"\n [maxlength]=\"maxlength ?? null\"\n />\n</ng-container>\n", styles: ["input:not(.sky-theme-modern *){--sky-override-ag-grid-text-editor-left-padding: 9px}:host{height:100%;width:100%;display:flex}input{background-color:transparent;border:none;height:100%;width:100%;padding-left:var(--sky-override-ag-grid-text-editor-left-padding, calc(var(--sky-comp-grid-cell-space-inset-left) - var(--sky-border-width-input-focus)))}\n"] }]
|
|
2054
2137
|
}], propDecorators: { input: [{
|
|
@@ -2151,10 +2234,10 @@ class SkyAgGridCellValidatorTooltipComponent {
|
|
|
2151
2234
|
const editingCells = this.cellRendererParams?.api.getEditingCells() ?? [];
|
|
2152
2235
|
return editingCells.length === 0;
|
|
2153
2236
|
}
|
|
2154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2155
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2238
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridCellValidatorTooltipComponent, isStandalone: true, selector: "sky-ag-grid-cell-validator-tooltip", inputs: { params: "params" }, ngImport: i0, template: "<ng-template #displayValue>\n <ng-content />\n</ng-template>\n\n@if (showValidatorMessage()) {\n <div\n skyPopoverTrigger=\"mouseenter\"\n class=\"sky-validator-cell\"\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n >\n <ng-container *ngTemplateOutlet=\"displayValue\" />\n <sky-status-indicator\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n />\n </div>\n <sky-popover\n #validatorPopover\n data-sky-id=\"validatorPopover\"\n popoverType=\"danger\"\n >\n {{ validatorMessage }}\n </sky-popover>\n} @else {\n <ng-container *ngTemplateOutlet=\"displayValue\" />\n}\n", styles: [".sky-validator-cell:not(.sky-theme-modern *){--sky-override-cell-validator-space: 5px}:host{--sky-staus-indicator-padding-right: 0;display:contents}:host div.sky-validator-cell{height:100%;min-height:var(--ag-row-height);width:100%}:host div.sky-validator-cell:focus{outline:none}sky-status-indicator{margin-left:var(--sky-override-cell-validator-space, var(--sky-space-gap-icon-s))}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: SkyPopoverModule }, { kind: "component", type: i1$4.λ6, selector: "sky-popover", inputs: ["alignment", "placement", "popoverTitle", "popoverType"], outputs: ["popoverClosed", "popoverOpened"] }, { kind: "directive", type: i1$4.λ7, selector: "[skyPopover]", inputs: ["skyPopover", "skyPopoverAlignment", "skyPopoverMessageStream", "skyPopoverPlacement", "skyPopoverTrigger"] }, { kind: "ngmodule", type: SkyStatusIndicatorModule }, { kind: "component", type: i2$3.λ10, selector: "sky-status-indicator", inputs: ["indicatorType", "descriptionType", "customDescription", "helpPopoverContent", "helpPopoverTitle", "helpKey"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2156
2239
|
}
|
|
2157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, decorators: [{
|
|
2158
2241
|
type: Component,
|
|
2159
2242
|
args: [{ selector: 'sky-ag-grid-cell-validator-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, imports: [NgTemplateOutlet, SkyPopoverModule, SkyStatusIndicatorModule], template: "<ng-template #displayValue>\n <ng-content />\n</ng-template>\n\n@if (showValidatorMessage()) {\n <div\n skyPopoverTrigger=\"mouseenter\"\n class=\"sky-validator-cell\"\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n >\n <ng-container *ngTemplateOutlet=\"displayValue\" />\n <sky-status-indicator\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n />\n </div>\n <sky-popover\n #validatorPopover\n data-sky-id=\"validatorPopover\"\n popoverType=\"danger\"\n >\n {{ validatorMessage }}\n </sky-popover>\n} @else {\n <ng-container *ngTemplateOutlet=\"displayValue\" />\n}\n", styles: [".sky-validator-cell:not(.sky-theme-modern *){--sky-override-cell-validator-space: 5px}:host{--sky-staus-indicator-padding-right: 0;display:contents}:host div.sky-validator-cell{height:100%;min-height:var(--ag-row-height);width:100%}:host div.sky-validator-cell:focus{outline:none}sky-status-indicator{margin-left:var(--sky-override-cell-validator-space, var(--sky-space-gap-icon-s))}\n"] }]
|
|
2160
2243
|
}], propDecorators: { params: [{
|
|
@@ -2192,10 +2275,10 @@ class SkyAgGridCellRendererCurrencyComponent {
|
|
|
2192
2275
|
this.skyComponentProperties.minDigits = 2;
|
|
2193
2276
|
this.skyComponentProperties.truncate = false;
|
|
2194
2277
|
}
|
|
2195
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2196
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2278
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2279
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellRendererCurrencyComponent, isStandalone: true, selector: "sky-ag-grid-cell-renderer-currency", inputs: { params: "params" }, ngImport: i0, template: "{{\n value === undefined ? undefined : (value | skyNumeric: skyComponentProperties)\n}}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: SkyNumericModule }, { kind: "pipe", type: i1.SkyNumericPipe, name: "skyNumeric" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2197
2280
|
}
|
|
2198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyComponent, decorators: [{
|
|
2199
2282
|
type: Component,
|
|
2200
2283
|
args: [{ selector: 'sky-ag-grid-cell-renderer-currency', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyNumericModule], template: "{{\n value === undefined ? undefined : (value | skyNumeric: skyComponentProperties)\n}}\n" }]
|
|
2201
2284
|
}], propDecorators: { params: [{
|
|
@@ -2229,10 +2312,10 @@ class SkyAgGridCellRendererCurrencyValidatorComponent {
|
|
|
2229
2312
|
refresh(params) {
|
|
2230
2313
|
return false;
|
|
2231
2314
|
}
|
|
2232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2233
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyValidatorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2316
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridCellRendererCurrencyValidatorComponent, isStandalone: true, selector: "sky-ag-grid-cell-renderer-currency-validator", inputs: { parameters: "parameters" }, ngImport: i0, template: "@if (cellRendererParams) {\n <sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n @if (isNumeric(cellRendererParams.value)) {\n <sky-ag-grid-cell-renderer-currency [params]=\"cellRendererParams\" />\n } @else {\n {{ cellRendererParams.value }}\n }\n </sky-ag-grid-cell-validator-tooltip>\n}\n", styles: [":host{display:contents}\n"], dependencies: [{ kind: "component", type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: ["params"] }, { kind: "component", type: SkyAgGridCellRendererCurrencyComponent, selector: "sky-ag-grid-cell-renderer-currency", inputs: ["params"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2234
2317
|
}
|
|
2235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererCurrencyValidatorComponent, decorators: [{
|
|
2236
2319
|
type: Component,
|
|
2237
2320
|
args: [{ selector: 'sky-ag-grid-cell-renderer-currency-validator', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
2238
2321
|
SkyAgGridCellValidatorTooltipComponent,
|
|
@@ -2261,10 +2344,10 @@ class SkyAgGridCellRendererLookupComponent {
|
|
|
2261
2344
|
this.agInit(params);
|
|
2262
2345
|
return true;
|
|
2263
2346
|
}
|
|
2264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2265
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererLookupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2348
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridCellRendererLookupComponent, isStandalone: true, selector: "sky-cell-renderer-lookup", ngImport: i0, template: "@if (summaryCount > 5) {\n {{ 'skyux_lookup_tokens_summary' | skyLibResources: summaryCount }}\n} @else {\n {{ value }}\n}\n", styles: [":host{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], dependencies: [{ kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2266
2349
|
}
|
|
2267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererLookupComponent, decorators: [{
|
|
2268
2351
|
type: Component,
|
|
2269
2352
|
args: [{ selector: 'sky-cell-renderer-lookup', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyI18nModule], template: "@if (summaryCount > 5) {\n {{ 'skyux_lookup_tokens_summary' | skyLibResources: summaryCount }}\n} @else {\n {{ value }}\n}\n", styles: [":host{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"] }]
|
|
2270
2353
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }] });
|
|
@@ -2365,10 +2448,10 @@ class SkyAgGridCellRendererRowSelectorComponent {
|
|
|
2365
2448
|
this.rowNode.data[this.dataField] = this.checked.value;
|
|
2366
2449
|
}
|
|
2367
2450
|
}
|
|
2368
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2369
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2451
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2452
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellRendererRowSelectorComponent, isStandalone: true, selector: "sky-ag-grid-cell-renderer-row-selector", ngImport: i0, template: "<sky-checkbox\n data-sky-id=\"row-checkbox\"\n class=\"sky-ag-grid-row-selector\"\n [disabled]=\"(disabled | async) || false\"\n [tabindex]=\"0\"\n [labelHidden]=\"true\"\n [labelText]=\"(label | async) || ''\"\n [checked]=\"(checked | async) || false\"\n (change)=\"updateRow(!!$event.checked)\"\n/>\n", styles: ["sky-checkbox.sky-ag-grid-row-selector{display:block!important;margin-top:var(--sky-override-ag-grid-row-selector-margin-top, var(--sky-comp-grid-cell-space-inset-top))}\n"], dependencies: [{ kind: "ngmodule", type: SkyCheckboxModule }, { kind: "component", type: i1$3.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "helpPopoverContent", "helpPopoverTitle", "iconName", "checkboxType", "checked", "indeterminate", "required", "labelText", "labelHidden", "hintText", "stacked", "helpKey"], outputs: ["change", "checkedChange", "disabledChange", "indeterminateChange"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
2370
2453
|
}
|
|
2371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererRowSelectorComponent, decorators: [{
|
|
2372
2455
|
type: Component,
|
|
2373
2456
|
args: [{ selector: 'sky-ag-grid-cell-renderer-row-selector', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [SkyCheckboxModule, AsyncPipe], template: "<sky-checkbox\n data-sky-id=\"row-checkbox\"\n class=\"sky-ag-grid-row-selector\"\n [disabled]=\"(disabled | async) || false\"\n [tabindex]=\"0\"\n [labelHidden]=\"true\"\n [labelText]=\"(label | async) || ''\"\n [checked]=\"(checked | async) || false\"\n (change)=\"updateRow(!!$event.checked)\"\n/>\n", styles: ["sky-checkbox.sky-ag-grid-row-selector{display:block!important;margin-top:var(--sky-override-ag-grid-row-selector-margin-top, var(--sky-comp-grid-cell-space-inset-top))}\n"] }]
|
|
2374
2457
|
}], ctorParameters: () => [] });
|
|
@@ -2386,11 +2469,10 @@ class SkyAgGridCellRendererTemplateComponent {
|
|
|
2386
2469
|
'template' in params.colDef.cellRendererParams &&
|
|
2387
2470
|
params.colDef.cellRendererParams.template);
|
|
2388
2471
|
const template = hasTemplate
|
|
2389
|
-
? params.colDef?.cellRendererParams
|
|
2390
|
-
.template
|
|
2472
|
+
? params.colDef?.cellRendererParams.template
|
|
2391
2473
|
: undefined;
|
|
2392
2474
|
this.state = {
|
|
2393
|
-
hasTemplate,
|
|
2475
|
+
hasTemplate: isSignal(template) ? 'signal' : hasTemplate,
|
|
2394
2476
|
template,
|
|
2395
2477
|
context: { value: params.value, row: params.data },
|
|
2396
2478
|
};
|
|
@@ -2399,18 +2481,30 @@ class SkyAgGridCellRendererTemplateComponent {
|
|
|
2399
2481
|
this.agInit(params);
|
|
2400
2482
|
return false;
|
|
2401
2483
|
}
|
|
2402
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2403
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2404
|
-
|
|
2405
|
-
|
|
2484
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2485
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridCellRendererTemplateComponent, isStandalone: true, selector: "sky-ag-grid-cell-renderer-template", ngImport: i0, template: `@if (state.hasTemplate === 'signal') {
|
|
2486
|
+
<ng-container
|
|
2487
|
+
*ngTemplateOutlet="state.template(); context: state.context"
|
|
2488
|
+
/>
|
|
2489
|
+
} @else if (state.hasTemplate) {
|
|
2490
|
+
<ng-container
|
|
2491
|
+
*ngTemplateOutlet="state.template; context: state.context"
|
|
2492
|
+
/>
|
|
2493
|
+
}`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
2406
2494
|
}
|
|
2407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererTemplateComponent, decorators: [{
|
|
2408
2496
|
type: Component,
|
|
2409
2497
|
args: [{
|
|
2410
2498
|
selector: 'sky-ag-grid-cell-renderer-template',
|
|
2411
|
-
template: `@if (state.hasTemplate) {
|
|
2412
|
-
|
|
2413
|
-
|
|
2499
|
+
template: `@if (state.hasTemplate === 'signal') {
|
|
2500
|
+
<ng-container
|
|
2501
|
+
*ngTemplateOutlet="state.template(); context: state.context"
|
|
2502
|
+
/>
|
|
2503
|
+
} @else if (state.hasTemplate) {
|
|
2504
|
+
<ng-container
|
|
2505
|
+
*ngTemplateOutlet="state.template; context: state.context"
|
|
2506
|
+
/>
|
|
2507
|
+
}`,
|
|
2414
2508
|
imports: [NgTemplateOutlet],
|
|
2415
2509
|
}]
|
|
2416
2510
|
}] });
|
|
@@ -2453,10 +2547,10 @@ class SkyAgGridCellRendererValidatorTooltipComponent {
|
|
|
2453
2547
|
this.agInit(params);
|
|
2454
2548
|
return false;
|
|
2455
2549
|
}
|
|
2456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2457
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
2550
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2551
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridCellRendererValidatorTooltipComponent, isStandalone: true, selector: "sky-ag-grid-cell-renderer-validator-tooltip", inputs: { params: "params" }, ngImport: i0, template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n {{ valueObservable | async }}\n</sky-ag-grid-cell-validator-tooltip>\n", dependencies: [{ kind: "component", type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: ["params"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2458
2552
|
}
|
|
2459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridCellRendererValidatorTooltipComponent, decorators: [{
|
|
2460
2554
|
type: Component,
|
|
2461
2555
|
args: [{ selector: 'sky-ag-grid-cell-renderer-validator-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyAgGridCellValidatorTooltipComponent, AsyncPipe], template: "<sky-ag-grid-cell-validator-tooltip [params]=\"cellRendererParams\">\n {{ valueObservable | async }}\n</sky-ag-grid-cell-validator-tooltip>\n" }]
|
|
2462
2556
|
}], propDecorators: { params: [{
|
|
@@ -2473,10 +2567,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
2473
2567
|
* @see SkyAgGridHeaderGroupParams
|
|
2474
2568
|
*/
|
|
2475
2569
|
class SkyAgGridHeaderGroupInfo {
|
|
2476
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2477
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2570
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderGroupInfo, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2571
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderGroupInfo }); }
|
|
2478
2572
|
}
|
|
2479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderGroupInfo, decorators: [{
|
|
2480
2574
|
type: Injectable
|
|
2481
2575
|
}] });
|
|
2482
2576
|
|
|
@@ -2565,10 +2659,10 @@ class SkyAgGridHeaderGroupComponent {
|
|
|
2565
2659
|
});
|
|
2566
2660
|
}
|
|
2567
2661
|
}
|
|
2568
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2569
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2663
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridHeaderGroupComponent, isStandalone: true, selector: "sky-header-group", viewQueries: [{ propertyName: "inlineHelpContainer", first: true, predicate: ["inlineHelpContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "@if (params?.displayName) {\n <span\n class=\"header-group-text\"\n role=\"presentation\"\n [skyThemeClass]=\"{ 'sky-font-heading-4': 'modern' }\"\n >{{ params?.displayName }}</span\n >\n}\n@if (isExpandable$ | async) {\n @if (isExpanded$ | async) {\n <button\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n [attr.aria-label]=\"\n 'sky_ag_grid_column_group_header_collapse_aria_label'\n | skyLibResources: params?.displayName\n \"\n (click)=\"setExpanded(false)\"\n >\n <sky-icon iconName=\"chevron-double-left\" />\n </button>\n } @else {\n <button\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n [attr.aria-label]=\"\n 'sky_ag_grid_column_group_header_expand_aria_label'\n | skyLibResources: params?.displayName\n \"\n (click)=\"setExpanded(true)\"\n >\n <sky-icon iconName=\"chevron-double-right\" />\n </button>\n }\n}\n<span #inlineHelpContainer class=\"sky-control-help-container\"></span>\n", styles: ["button:not(.sky-theme-modern *){--sky-override-ag-grid-header-button-margin-left: var(--sky-margin-inline-sm)}:host{display:flex;max-width:100%;align-items:center;align-content:center}.header-group-text{flex-grow:0;flex-shrink:1;overflow:hidden;text-overflow:ellipsis}button{cursor:pointer;margin-left:var(--sky-override-ag-grid-header-button-margin-left, var(--sky-space-gap-text_action-xs));flex-grow:0;flex-shrink:1}\n"], dependencies: [{ kind: "ngmodule", type: SkyThemeModule }, { kind: "directive", type: i2$4.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { kind: "ngmodule", type: SkyIconModule }, { kind: "component", type: i2$5.λ1, selector: "sky-icon", inputs: ["iconName", "variant", "iconSize"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2570
2664
|
}
|
|
2571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderGroupComponent, decorators: [{
|
|
2572
2666
|
type: Component,
|
|
2573
2667
|
args: [{ selector: 'sky-header-group', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SkyThemeModule, SkyIconModule, AsyncPipe, SkyI18nModule], template: "@if (params?.displayName) {\n <span\n class=\"header-group-text\"\n role=\"presentation\"\n [skyThemeClass]=\"{ 'sky-font-heading-4': 'modern' }\"\n >{{ params?.displayName }}</span\n >\n}\n@if (isExpandable$ | async) {\n @if (isExpanded$ | async) {\n <button\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n [attr.aria-label]=\"\n 'sky_ag_grid_column_group_header_collapse_aria_label'\n | skyLibResources: params?.displayName\n \"\n (click)=\"setExpanded(false)\"\n >\n <sky-icon iconName=\"chevron-double-left\" />\n </button>\n } @else {\n <button\n class=\"sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n [attr.aria-label]=\"\n 'sky_ag_grid_column_group_header_expand_aria_label'\n | skyLibResources: params?.displayName\n \"\n (click)=\"setExpanded(true)\"\n >\n <sky-icon iconName=\"chevron-double-right\" />\n </button>\n }\n}\n<span #inlineHelpContainer class=\"sky-control-help-container\"></span>\n", styles: ["button:not(.sky-theme-modern *){--sky-override-ag-grid-header-button-margin-left: var(--sky-margin-inline-sm)}:host{display:flex;max-width:100%;align-items:center;align-content:center}.header-group-text{flex-grow:0;flex-shrink:1;overflow:hidden;text-overflow:ellipsis}button{cursor:pointer;margin-left:var(--sky-override-ag-grid-header-button-margin-left, var(--sky-space-gap-text_action-xs));flex-grow:0;flex-shrink:1}\n"] }]
|
|
2574
2668
|
}], ctorParameters: () => [], propDecorators: { inlineHelpContainer: [{
|
|
@@ -2631,16 +2725,16 @@ class SkyAgGridHeaderRowSelectorComponent {
|
|
|
2631
2725
|
this.#api?.deselectAll();
|
|
2632
2726
|
}
|
|
2633
2727
|
}
|
|
2634
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2635
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderRowSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2729
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridHeaderRowSelectorComponent, isStandalone: true, selector: "sky-ag-grid-row-selector-header", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, host: { properties: { "attr.title": "label()", "attr.role": "\"note\"" } }, ngImport: i0, template: "@if (multiSelect()) {\n <sky-checkbox\n labelHidden\n data-sky-id=\"header-row-selector\"\n [checked]=\"checked()\"\n [labelText]=\"label()\"\n [indeterminate]=\"indeterminate()\"\n (change)=\"toggleCheckbox($event)\"\n />\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: SkyCheckboxModule }, { kind: "component", type: i1$3.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "helpPopoverContent", "helpPopoverTitle", "iconName", "checkboxType", "checked", "indeterminate", "required", "labelText", "labelHidden", "hintText", "stacked", "helpKey"], outputs: ["change", "checkedChange", "disabledChange", "indeterminateChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2636
2730
|
}
|
|
2637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderRowSelectorComponent, decorators: [{
|
|
2638
2732
|
type: Component,
|
|
2639
2733
|
args: [{ selector: 'sky-ag-grid-row-selector-header', imports: [SkyCheckboxModule], changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2640
2734
|
'[attr.title]': 'label()',
|
|
2641
2735
|
'[attr.role]': '"note"',
|
|
2642
2736
|
}, template: "@if (multiSelect()) {\n <sky-checkbox\n labelHidden\n data-sky-id=\"header-row-selector\"\n [checked]=\"checked()\"\n [labelText]=\"label()\"\n [indeterminate]=\"indeterminate()\"\n (change)=\"toggleCheckbox($event)\"\n />\n}\n" }]
|
|
2643
|
-
}] });
|
|
2737
|
+
}], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }] } });
|
|
2644
2738
|
|
|
2645
2739
|
/**
|
|
2646
2740
|
* To display a help button beside the column header, create a component containing
|
|
@@ -2652,10 +2746,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
2652
2746
|
* @see SkyAgGridHeaderParams
|
|
2653
2747
|
*/
|
|
2654
2748
|
class SkyAgGridHeaderInfo {
|
|
2655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2656
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderInfo, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2750
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderInfo }); }
|
|
2657
2751
|
}
|
|
2658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderInfo, decorators: [{
|
|
2659
2753
|
type: Injectable
|
|
2660
2754
|
}] });
|
|
2661
2755
|
|
|
@@ -2824,10 +2918,10 @@ class SkyAgGridHeaderComponent {
|
|
|
2824
2918
|
this.sortIndexDisplay$.next('');
|
|
2825
2919
|
}
|
|
2826
2920
|
}
|
|
2827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2828
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
2921
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2922
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.15", type: SkyAgGridHeaderComponent, isStandalone: true, selector: "sky-ag-grid-header", host: { properties: { "attr.title": "accessibleHeaderText()", "attr.aria-label": "displayName() || accessibleHeaderText()", "attr.role": "\"note\"" } }, viewQueries: [{ propertyName: "inlineHelpContainer", first: true, predicate: ["inlineHelpContainer"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: "<div class=\"ag-cell-label-container\" role=\"presentation\">\n @if (params()?.enableMenu) {\n <span\n class=\"ag-header-icon ag-header-cell-menu-button\"\n aria-hidden=\"true\"\n (click)=\"onMenuClick($event)\"\n >\n <sky-icon iconName=\"more-actions\" />\n </span>\n }\n <div class=\"ag-header-cell-label\" role=\"presentation\">\n <span class=\"ag-header-cell-label-and-icons\">\n @if (params()?.enableSorting) {\n <button\n aria-hidden=\"true\"\n class=\"ag-header-cell-text ag-header-cell-label-sortable sky-btn-link-inline\"\n tabindex=\"-1\"\n type=\"button\"\n [attr.aria-label]=\"accessibleHeaderText()\"\n [innerText]=\"displayName() ?? ''\"\n [skyThemeClass]=\"{ 'sky-font-heading-4': 'modern' }\"\n (click)=\"onSortRequested($event)\"\n ></button>\n } @else if (displayName()) {\n <span\n aria-hidden=\"true\"\n class=\"ag-header-cell-text\"\n [skyThemeClass]=\"{ 'sky-font-heading-4': 'modern' }\"\n >{{ displayName() }}</span\n >\n }\n @if (filterEnabled$ | async) {\n <span\n aria-hidden=\"true\"\n class=\"ag-header-icon ag-header-label-icon ag-filter-icon\"\n ><sky-icon iconName=\"filter\"\n /></span>\n }\n @if (params()?.enableSorting) {\n @if (sortOrder$ | async; as sortDirection) {\n <button\n class=\"ag-sort-indicator-container sky-btn sky-btn-icon-borderless\"\n type=\"button\"\n (click)=\"onSortRequested($event)\"\n >\n @if (sortDirection === 'desc') {\n <span class=\"ag-header-icon ag-header-label-icon\">\n <sky-icon iconName=\"chevron-down\" iconSize=\"s\" />\n <span class=\"sky-screen-reader-only\">{{\n 'sky_ag_grid_column_header_sort_button_aria_label_currently_desc'\n | skyLibResources: displayName() ?? accessibleHeaderText()\n }}</span></span\n >\n }\n @if (sortDirection === 'asc') {\n <span class=\"ag-header-icon ag-header-label-icon\">\n <sky-icon iconName=\"chevron-up\" iconSize=\"s\" />\n <span class=\"sky-screen-reader-only\">{{\n 'sky_ag_grid_column_header_sort_button_aria_label_currently_asc'\n | skyLibResources: displayName() ?? accessibleHeaderText()\n }}</span></span\n >\n }\n\n @if (sortIndexDisplay$ | async; as sortIndexDisplay) {\n <span\n aria-hidden=\"true\"\n class=\"ag-sort-indicator-icon ag-sort-order\"\n >{{ sortIndexDisplay }}</span\n >\n }\n </button>\n } @else {\n <span class=\"sky-screen-reader-only\">{{\n 'sky_ag_grid_column_header_sort_button_aria_label_currently_not_sorted'\n | skyLibResources: displayName() ?? accessibleHeaderText()\n }}</span>\n }\n }\n </span>\n <span #inlineHelpContainer class=\"sky-control-help-container\"></span>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:row;flex-wrap:nowrap;width:100%;max-width:100%;height:100%;align-items:center;align-content:center}:host-context(.ag-header-cell.ag-right-aligned-header,.ag-header-cell.sky-ag-grid-header-right-aligned){flex-direction:row-reverse}:host-context(.ag-header-cell.ag-right-aligned-header,.ag-header-cell.sky-ag-grid-header-right-aligned) .ag-header-cell-label .sky-control-help-container{order:0}:host-context(.ag-header-cell.ag-right-aligned-header,.ag-header-cell.sky-ag-grid-header-right-aligned) .ag-header-cell-label .ag-header-cell-label-and-icons{order:1}.ag-header-cell-label .ag-header-cell-label-and-icons .ag-header-label-icon,.ag-header-cell-label .ag-header-cell-label-and-icons .ag-header-menu-icon,.ag-header-cell-label .ag-header-cell-label-and-icons .ag-header-icon{line-height:0;margin-left:var(--sky-override-ag-grid-header-icon-spacing, var(--sky-space-gap-text_action-xs))}.ag-header-cell-label .ag-header-cell-label-and-icons .sky-btn.sky-btn-icon-borderless{margin-left:var(--sky-override-ag-grid-header-icon-spacing, var(--sky-space-gap-text_action-xs))}.ag-header-cell-label .ag-header-cell-label-and-icons .sky-btn.sky-btn-icon-borderless .ag-header-label-icon,.ag-header-cell-label .ag-header-cell-label-and-icons .sky-btn.sky-btn-icon-borderless .ag-header-menu-icon,.ag-header-cell-label .ag-header-cell-label-and-icons .sky-btn.sky-btn-icon-borderless .ag-header-icon{margin-left:0}button.ag-header-cell-label{max-width:100%}.ag-cell-label-container{padding:0;gap:var(--sky-override-ag-grid-header-icon-spacing, var(--sky-space-gap-text_action-xs))}.ag-header-cell-label{padding-right:0;padding-left:0}.ag-header-cell-label .ag-header-cell-label-and-icons{display:flex;flex-wrap:nowrap;flex-direction:row;overflow:hidden;align-items:center}.ag-header-cell-label .ag-header-cell-label-and-icons .ag-header-cell-text{flex-grow:0;flex-shrink:1}.ag-header-cell-label .ag-header-cell-label-and-icons .ag-sort-indicator-container{color:var(--sky-override-ag-grid-sort-color, var(--sky-color-text-deemphasized));width:initial;height:initial}.ag-header-cell-label .ag-header-cell-label-and-icons .ag-sort-indicator-container:hover{border:none}button{cursor:pointer;flex-grow:0;flex-shrink:1}\n"], dependencies: [{ kind: "ngmodule", type: SkyIconModule }, { kind: "component", type: i2$5.λ1, selector: "sky-icon", inputs: ["iconName", "variant", "iconSize"] }, { kind: "ngmodule", type: SkyThemeModule }, { kind: "directive", type: i2$4.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }, { kind: "ngmodule", type: SkyI18nModule }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: i3.SkyLibResourcesPipe, name: "skyLibResources" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2829
2923
|
}
|
|
2830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridHeaderComponent, decorators: [{
|
|
2831
2925
|
type: Component,
|
|
2832
2926
|
args: [{ selector: 'sky-ag-grid-header', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2833
2927
|
'[attr.title]': 'accessibleHeaderText()',
|
|
@@ -3299,10 +3393,10 @@ class SkyAgGridLoadingComponent {
|
|
|
3299
3393
|
refresh(_params) {
|
|
3300
3394
|
// Do nothing.
|
|
3301
3395
|
}
|
|
3302
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3303
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3396
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridLoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3397
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.15", type: SkyAgGridLoadingComponent, isStandalone: true, selector: "sky-ag-grid-loading", ngImport: i0, template: "<sky-wait [isWaiting]=\"true\" />\n", dependencies: [{ kind: "ngmodule", type: SkyWaitModule }, { kind: "component", type: i2$3.λ14, selector: "sky-wait", inputs: ["ariaLabel", "isWaiting", "isFullPage", "isNonBlocking", "screenReaderCompletedText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3304
3398
|
}
|
|
3305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridLoadingComponent, decorators: [{
|
|
3306
3400
|
type: Component,
|
|
3307
3401
|
args: [{ selector: 'sky-ag-grid-loading', imports: [SkyWaitModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<sky-wait [isWaiting]=\"true\" />\n" }]
|
|
3308
3402
|
}] });
|
|
@@ -3869,10 +3963,10 @@ class SkyAgGridService {
|
|
|
3869
3963
|
}
|
|
3870
3964
|
return false;
|
|
3871
3965
|
}
|
|
3872
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3873
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3966
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridService, deps: [{ token: SkyAgGridAdapterService }, { token: i2$4.SkyThemeService, optional: true }, { token: i3.SkyLibResourcesService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3967
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridService, providedIn: 'root' }); }
|
|
3874
3968
|
}
|
|
3875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: SkyAgGridService, decorators: [{
|
|
3876
3970
|
type: Injectable,
|
|
3877
3971
|
args: [{
|
|
3878
3972
|
providedIn: 'root',
|