@skyux/ag-grid 5.7.2 → 5.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/skyux-ag-grid.umd.js +85 -43
- package/documentation.json +3432 -60
- package/esm2015/index.js +7 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-row-delete.directive.js +0 -3
- package/esm2015/lib/modules/ag-grid/ag-grid-row-delete.directive.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/ag-grid-wrapper.component.js +8 -4
- package/esm2015/lib/modules/ag-grid/ag-grid-wrapper.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/ag-grid.service.js +5 -3
- package/esm2015/lib/modules/ag-grid/ag-grid.service.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/apply-lookup-properties-defaults.js +29 -0
- package/esm2015/lib/modules/ag-grid/apply-lookup-properties-defaults.js.map +1 -0
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js +8 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.js +15 -4
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js +4 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js +3 -1
- package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.js +4 -1
- package/esm2015/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js +31 -24
- package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/autocomplete-properties.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-autocomplete-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-currency-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-datepicker-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-lookup-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-editor-number-params.js +2 -0
- package/esm2015/lib/modules/ag-grid/types/cell-editor-number-params.js.map +1 -0
- package/esm2015/lib/modules/ag-grid/types/cell-editor-text-params.js +2 -0
- package/esm2015/lib/modules/ag-grid/types/cell-editor-text-params.js.map +1 -0
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-currency-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-lookup-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/cell-renderer-validator-params.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/currency-properties.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/datepicker-properties.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/lookup-properties.js +1 -25
- package/esm2015/lib/modules/ag-grid/types/lookup-properties.js.map +1 -1
- package/esm2015/lib/modules/ag-grid/types/number-properties.js +2 -0
- package/esm2015/lib/modules/ag-grid/types/number-properties.js.map +1 -0
- package/esm2015/lib/modules/ag-grid/types/text-properties.js +2 -0
- package/esm2015/lib/modules/ag-grid/types/text-properties.js.map +1 -0
- package/esm2015/lib/modules/ag-grid/types/validator-properties.js +2 -0
- package/esm2015/lib/modules/ag-grid/types/validator-properties.js.map +1 -0
- package/fesm2015/skyux-ag-grid.js +78 -38
- package/fesm2015/skyux-ag-grid.js.map +1 -1
- package/index.d.ts +7 -0
- package/lib/modules/ag-grid/ag-grid-row-delete.directive.d.ts +0 -3
- package/lib/modules/ag-grid/ag-grid-wrapper.component.d.ts +4 -3
- package/lib/modules/ag-grid/apply-lookup-properties-defaults.d.ts +27 -0
- package/lib/modules/ag-grid/cell-editors/cell-editor-autocomplete/cell-editor-autocomplete.component.d.ts +2 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-currency/cell-editor-currency.component.d.ts +6 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-datepicker/cell-editor-datepicker.component.d.ts +2 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.d.ts +6 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.d.ts +4 -2
- package/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.d.ts +3 -2
- package/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.d.ts +2 -2
- package/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.d.ts +3 -0
- package/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.d.ts +5 -6
- package/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.d.ts +0 -1
- package/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.d.ts +0 -1
- package/lib/modules/ag-grid/types/autocomplete-properties.d.ts +6 -4
- package/lib/modules/ag-grid/types/cell-editor-autocomplete-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/cell-editor-currency-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/cell-editor-datepicker-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/cell-editor-lookup-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/cell-editor-number-params.d.ts +8 -0
- package/lib/modules/ag-grid/types/cell-editor-text-params.d.ts +8 -0
- package/lib/modules/ag-grid/types/cell-renderer-currency-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/cell-renderer-lookup-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/cell-renderer-validator-params.d.ts +5 -2
- package/lib/modules/ag-grid/types/currency-properties.d.ts +1 -1
- package/lib/modules/ag-grid/types/datepicker-properties.d.ts +6 -4
- package/lib/modules/ag-grid/types/lookup-properties.d.ts +1 -24
- package/lib/modules/ag-grid/types/number-properties.d.ts +4 -0
- package/lib/modules/ag-grid/types/text-properties.d.ts +3 -0
- package/lib/modules/ag-grid/types/{validator-options.d.ts → validator-properties.d.ts} +1 -1
- package/package.json +13 -13
- package/esm2015/lib/modules/ag-grid/types/validator-options.js +0 -2
- package/esm2015/lib/modules/ag-grid/types/validator-options.js.map +0 -1
package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.js
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, HostBinding, } from '@angular/core';
|
|
2
2
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { applySkyLookupPropertiesDefaults
|
|
3
|
+
import { applySkyLookupPropertiesDefaults } from '../../apply-lookup-properties-defaults';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@skyux/forms";
|
|
6
6
|
import * as i2 from "@skyux/lookup";
|
|
7
7
|
import * as i3 from "@angular/common";
|
|
8
8
|
import * as i4 from "@angular/forms";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
9
12
|
export class SkyAgGridCellEditorLookupComponent {
|
|
10
13
|
constructor(changeDetector, elementRef) {
|
|
11
14
|
this.changeDetector = changeDetector;
|
|
@@ -33,6 +36,11 @@ export class SkyAgGridCellEditorLookupComponent {
|
|
|
33
36
|
this.useAsyncSearch =
|
|
34
37
|
typeof this.skyComponentProperties.searchAsync === 'function';
|
|
35
38
|
this.isAlive = true;
|
|
39
|
+
this.width = this.params.column.getActualWidth();
|
|
40
|
+
this.params.column.addEventListener('uiColumnResized', (event) => {
|
|
41
|
+
this.width = event.column.getActualWidth();
|
|
42
|
+
this.changeDetector.markForCheck();
|
|
43
|
+
});
|
|
36
44
|
this.changeDetector.markForCheck();
|
|
37
45
|
}
|
|
38
46
|
isCancelAfterEnd() {
|
|
@@ -61,7 +69,7 @@ export class SkyAgGridCellEditorLookupComponent {
|
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
SkyAgGridCellEditorLookupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellEditorLookupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
64
|
-
SkyAgGridCellEditorLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorLookupComponent, selector: "sky-ag-grid-cell-editor-lookup", ngImport: i0, template: "<sky-input-box\n *ngIf=\"isAlive && useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n (searchAsync)=\"skyComponentProperties.searchAsync($event)\"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n<sky-input-box\n *ngIf=\"isAlive && !useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\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 >\n </sky-lookup>\n</sky-input-box>\n", styles: [":host{display:block}\n"], components: [{ type: i1.λ10, selector: "sky-input-box", inputs: ["hasErrors", "disabled"] }, { type: i2.λ4, selector: "sky-lookup", inputs: ["ariaLabel", "ariaLabelledBy", "autocompleteAttribute", "data", "disabled", "enableShowMore", "placeholderText", "idProperty", "showAddButton", "showMoreConfig", "selectMode", "wrapperClass"], outputs: ["addClick"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
|
+
SkyAgGridCellEditorLookupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorLookupComponent, selector: "sky-ag-grid-cell-editor-lookup", host: { properties: { "style.width.px": "this.width" } }, ngImport: i0, template: "<sky-input-box\n *ngIf=\"isAlive && useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n (searchAsync)=\"skyComponentProperties.searchAsync($event)\"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n<sky-input-box\n *ngIf=\"isAlive && !useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\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 >\n </sky-lookup>\n</sky-input-box>\n", styles: [":host{display:block}\n"], components: [{ type: i1.λ10, selector: "sky-input-box", inputs: ["hasErrors", "disabled"] }, { type: i2.λ4, selector: "sky-lookup", inputs: ["ariaLabel", "ariaLabelledBy", "autocompleteAttribute", "data", "disabled", "enableShowMore", "placeholderText", "idProperty", "showAddButton", "showMoreConfig", "selectMode", "wrapperClass"], outputs: ["addClick"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
65
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellEditorLookupComponent, decorators: [{
|
|
66
74
|
type: Component,
|
|
67
75
|
args: [{
|
|
@@ -70,5 +78,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
70
78
|
styleUrls: ['./cell-editor-lookup.component.scss'],
|
|
71
79
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
72
80
|
}]
|
|
73
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }
|
|
81
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { width: [{
|
|
82
|
+
type: HostBinding,
|
|
83
|
+
args: ['style.width.px']
|
|
84
|
+
}] } });
|
|
74
85
|
//# sourceMappingURL=cell-editor-lookup.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-lookup.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,UAAU,
|
|
1
|
+
{"version":3,"file":"cell-editor-lookup.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-lookup/cell-editor-lookup.component.html"],"names":[],"mappings":"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","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ElementRef,\n HostBinding,\n} from '@angular/core';\nimport { FormControl, FormGroup } from '@angular/forms';\n\nimport { ICellEditorAngularComp } from 'ag-grid-angular';\nimport { ColumnResizedEvent } from 'ag-grid-community';\nimport { IPopupComponent } from 'ag-grid-community/dist/lib/interfaces/iPopupComponent';\n\nimport { applySkyLookupPropertiesDefaults } from '../../apply-lookup-properties-defaults';\nimport { SkyCellEditorLookupParams } from '../../types/cell-editor-lookup-params';\nimport { SkyAgGridLookupProperties } from '../../types/lookup-properties';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-ag-grid-cell-editor-lookup',\n templateUrl: './cell-editor-lookup.component.html',\n styleUrls: ['./cell-editor-lookup.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyAgGridCellEditorLookupComponent\n implements ICellEditorAngularComp, IPopupComponent<any>\n{\n @HostBinding('style.width.px')\n public width: number;\n\n public skyComponentProperties?: SkyAgGridLookupProperties;\n public isAlive = false;\n public lookupForm = new FormGroup({\n currentSelection: new FormControl({\n value: [],\n disabled: false,\n }),\n });\n public useAsyncSearch = false;\n\n private params: SkyCellEditorLookupParams;\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n private elementRef: ElementRef\n ) {}\n\n public agInit(params: SkyCellEditorLookupParams): void {\n this.params = params;\n if (!Array.isArray(this.params.value)) {\n throw new Error(`Lookup value must be an array`);\n }\n const control = this.lookupForm.get('currentSelection');\n control.setValue(this.params.value);\n if (this.params.skyComponentProperties.disabled) {\n control.disable();\n }\n this.skyComponentProperties = this.updateComponentProperties(this.params);\n this.useAsyncSearch =\n typeof this.skyComponentProperties.searchAsync === 'function';\n this.isAlive = true;\n this.width = this.params.column.getActualWidth();\n this.params.column.addEventListener(\n 'uiColumnResized',\n (event: ColumnResizedEvent) => {\n this.width = event.column.getActualWidth();\n this.changeDetector.markForCheck();\n }\n );\n this.changeDetector.markForCheck();\n }\n\n public isCancelAfterEnd(): boolean {\n // Shut down components to commit values before final value syncs to grid.\n this.isAlive = false;\n this.changeDetector.detectChanges();\n return false;\n }\n\n public getGui(): HTMLElement {\n return this.elementRef.nativeElement;\n }\n\n public getValue(): any[] {\n return this.lookupForm.get('currentSelection').value;\n }\n\n public isPopup(): boolean {\n return true;\n }\n\n /*istanbul ignore next*/\n public afterGuiAttached(): void {\n this.elementRef.nativeElement.querySelector('.sky-lookup-input')?.focus();\n }\n\n private updateComponentProperties(\n params: SkyCellEditorLookupParams\n ): SkyAgGridLookupProperties {\n const skyLookupProperties = params.skyComponentProperties;\n return applySkyLookupPropertiesDefaults(skyLookupProperties);\n }\n}\n","<sky-input-box\n *ngIf=\"isAlive && useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\n [idProperty]=\"skyComponentProperties?.idProperty\"\n [placeholderText]=\"skyComponentProperties?.placeholderText\"\n [propertiesToSearch]=\"skyComponentProperties?.propertiesToSearch\"\n [searchFilters]=\"skyComponentProperties?.searchFilters\"\n [searchResultsLimit]=\"skyComponentProperties?.searchResultsLimit\"\n [searchResultTemplate]=\"skyComponentProperties?.searchResultTemplate\"\n [searchTextMinimumCharacters]=\"\n skyComponentProperties?.searchTextMinimumCharacters\n \"\n (searchAsync)=\"skyComponentProperties.searchAsync($event)\"\n [selectMode]=\"skyComponentProperties?.selectMode\"\n [showAddButton]=\"skyComponentProperties?.showAddButton\"\n [showMoreConfig]=\"skyComponentProperties?.showMoreConfig\"\n [wrapperClass]=\"skyComponentProperties?.wrapperClass\"\n >\n </sky-lookup>\n</sky-input-box>\n<sky-input-box\n *ngIf=\"isAlive && !useAsyncSearch\"\n [disabled]=\"skyComponentProperties?.disabled\"\n [formGroup]=\"lookupForm\"\n>\n <sky-lookup\n [ariaLabel]=\"skyComponentProperties?.ariaLabel\"\n [autocompleteAttribute]=\"skyComponentProperties?.autocompleteAttribute\"\n [data]=\"skyComponentProperties?.data\"\n [debounceTime]=\"skyComponentProperties?.debounceTime\"\n [descriptorProperty]=\"skyComponentProperties?.descriptorProperty\"\n [enableShowMore]=\"skyComponentProperties?.enableShowMore\"\n formControlName=\"currentSelection\"\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 >\n </sky-lookup>\n</sky-input-box>\n"]}
|
package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.js
CHANGED
|
@@ -11,8 +11,11 @@ export class SkyAgGridCellEditorNumberComponent {
|
|
|
11
11
|
* @param params The cell editor params that include data about the cell, column, row, and grid.
|
|
12
12
|
*/
|
|
13
13
|
agInit(params) {
|
|
14
|
+
var _a, _b;
|
|
14
15
|
this.params = params;
|
|
15
16
|
this.value = this.params.value;
|
|
17
|
+
this.max = (_a = params.skyComponentProperties) === null || _a === void 0 ? void 0 : _a.max;
|
|
18
|
+
this.min = (_b = params.skyComponentProperties) === null || _b === void 0 ? void 0 : _b.min;
|
|
16
19
|
this.columnHeader = this.params.colDef.headerName;
|
|
17
20
|
this.rowNumber = this.params.rowIndex + 1;
|
|
18
21
|
this.columnWidth = this.params.column.getActualWidth();
|
|
@@ -33,7 +36,7 @@ export class SkyAgGridCellEditorNumberComponent {
|
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
SkyAgGridCellEditorNumberComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
SkyAgGridCellEditorNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorNumberComponent, selector: "sky-ag-grid-cell-editor-number", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorNumber"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\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 [(ngModel)]=\"value\"\n #skyCellEditorNumber\n/>\n", styles: ["input{border:none;text-align:right}\n"], directives: [{ type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i2.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
39
|
+
SkyAgGridCellEditorNumberComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorNumberComponent, selector: "sky-ag-grid-cell-editor-number", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorNumber"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\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 [(ngModel)]=\"value\"\n [max]=\"max\"\n [min]=\"min\"\n #skyCellEditorNumber\n/>\n", styles: ["input{border:none;text-align:right}\n"], directives: [{ type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i2.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
40
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellEditorNumberComponent, decorators: [{
|
|
38
41
|
type: Component,
|
|
39
42
|
args: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-number.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"cell-editor-number.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-number/cell-editor-number.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAC;;;;AAQvB;;GAEG;AAOH,MAAM,OAAO,kCAAkC;IAgB7C;;;OAGG;IACI,MAAM,CAAC,MAAiC;;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QAC/B,IAAI,CAAC,GAAG,GAAG,MAAA,MAAM,CAAC,sBAAsB,0CAAE,GAAG,CAAC;QAC9C,IAAI,CAAC,GAAG,GAAG,MAAA,MAAM,CAAC,sBAAsB,0CAAE,GAAG,CAAC;QAC9C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACvD,IAAI,CAAC,uBAAuB;YAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACI,gBAAgB;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;IACnC,CAAC;IAED;;OAEG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;;gIA5CU,kCAAkC;oHAAlC,kCAAkC,+JAaH,UAAU,6BCnCtD,yUAaA;4FDSa,kCAAkC;kBAN9C,SAAS;mBAAC;oBACT,QAAQ,EAAE,gCAAgC;oBAC1C,WAAW,EAAE,qCAAqC;oBAClD,SAAS,EAAE,CAAC,qCAAqC,CAAC;oBAClD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAeS,KAAK;sBADZ,SAAS;uBAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewChild,\n} from '@angular/core';\n\nimport { ICellEditorAngularComp } from 'ag-grid-angular';\nimport { ICellEditorParams } from 'ag-grid-community';\n\nimport { SkyCellEditorDatepickerParams } from '../../types/cell-editor-datepicker-params';\nimport { SkyCellEditorNumberParams } from '../../types/cell-editor-number-params';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-ag-grid-cell-editor-number',\n templateUrl: './cell-editor-number.component.html',\n styleUrls: ['./cell-editor-number.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyAgGridCellEditorNumberComponent\n implements ICellEditorAngularComp\n{\n public value: number;\n public columnHeader: string;\n public columnWidth: number;\n public rowHeightWithoutBorders: number;\n public rowNumber: number;\n public max: number;\n public min: number;\n\n private params: ICellEditorParams;\n\n @ViewChild('skyCellEditorNumber', { read: ElementRef })\n private input: ElementRef;\n\n /**\n * agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.\n * @param params The cell editor params that include data about the cell, column, row, and grid.\n */\n public agInit(params: SkyCellEditorNumberParams): void {\n this.params = params;\n this.value = this.params.value;\n this.max = params.skyComponentProperties?.max;\n this.min = params.skyComponentProperties?.min;\n this.columnHeader = this.params.colDef.headerName;\n this.rowNumber = this.params.rowIndex + 1;\n this.columnWidth = this.params.column.getActualWidth();\n this.rowHeightWithoutBorders =\n this.params.node && this.params.node.rowHeight - 4;\n }\n\n /**\n * 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.\n */\n public afterGuiAttached(): void {\n this.input.nativeElement.focus();\n }\n\n /**\n * getValue is called by agGrid when editing is stopped to get the new value of the cell.\n */\n public getValue(): number {\n return this.value;\n }\n}\n","<input\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 [(ngModel)]=\"value\"\n [max]=\"max\"\n [min]=\"min\"\n #skyCellEditorNumber\n/>\n"]}
|
package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js
CHANGED
|
@@ -11,8 +11,10 @@ export class SkyAgGridCellEditorTextComponent {
|
|
|
11
11
|
* @param params The cell editor params that include data about the cell, column, row, and grid.
|
|
12
12
|
*/
|
|
13
13
|
agInit(params) {
|
|
14
|
+
var _a;
|
|
14
15
|
this.params = params;
|
|
15
16
|
this.value = this.params.charPress || this.params.value;
|
|
17
|
+
this.maxlength = (_a = params.skyComponentProperties) === null || _a === void 0 ? void 0 : _a.maxlength;
|
|
16
18
|
this.columnHeader = this.params.colDef.headerName;
|
|
17
19
|
this.rowNumber = this.params.rowIndex + 1;
|
|
18
20
|
this.columnWidth = this.params.column.getActualWidth();
|
|
@@ -33,7 +35,7 @@ export class SkyAgGridCellEditorTextComponent {
|
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
SkyAgGridCellEditorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellEditorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
SkyAgGridCellEditorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorTextComponent, selector: "sky-ag-grid-cell-editor-text", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorText"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n #skyCellEditorText\n/>\n", styles: ["input{border:none;padding-left:11px}\n"], directives: [{ type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "skyLibResources": i2.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
38
|
+
SkyAgGridCellEditorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellEditorTextComponent, selector: "sky-ag-grid-cell-editor-text", viewQueries: [{ propertyName: "input", first: true, predicate: ["skyCellEditorText"], descendants: true, read: ElementRef }], ngImport: i0, template: "<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n [maxlength]=\"maxlength\"\n #skyCellEditorText\n/>\n", styles: ["input{border:none;padding-left:11px}\n"], directives: [{ type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }], pipes: { "skyLibResources": i2.SkyLibResourcesPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
37
39
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellEditorTextComponent, decorators: [{
|
|
38
40
|
type: Component,
|
|
39
41
|
args: [{
|
package/esm2015/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-text.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"cell-editor-text.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-editors/cell-editor-text/cell-editor-text.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,eAAe,CAAC;;;;AAOvB;;GAEG;AAOH,MAAM,OAAO,gCAAgC;IAgB3C;;;OAGG;IACI,MAAM,CAAC,MAA+B;;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;QACxD,IAAI,CAAC,SAAS,GAAG,MAAA,MAAM,CAAC,sBAAsB,0CAAE,SAAS,CAAC;QAC1D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;QACvD,IAAI,CAAC,uBAAuB;YAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACI,gBAAgB;QACrB,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;IACnC,CAAC;IAED;;OAEG;IACI,QAAQ;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;;8HA3CU,gCAAgC;kHAAhC,gCAAgC,2JAaH,UAAU,6BClCpD,8TAYA;4FDSa,gCAAgC;kBAN5C,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,WAAW,EAAE,mCAAmC;oBAChD,SAAS,EAAE,CAAC,mCAAmC,CAAC;oBAChD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAeS,KAAK;sBADZ,SAAS;uBAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n ViewChild,\n} from '@angular/core';\n\nimport { ICellEditorAngularComp } from 'ag-grid-angular';\nimport { ICellEditorParams } from 'ag-grid-community';\n\nimport { SkyCellEditorTextParams } from '../../types/cell-editor-text-params';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-ag-grid-cell-editor-text',\n templateUrl: './cell-editor-text.component.html',\n styleUrls: ['./cell-editor-text.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyAgGridCellEditorTextComponent\n implements ICellEditorAngularComp\n{\n public value: string;\n public textInputLabel: string;\n public columnHeader: string;\n public columnWidth: number;\n public rowHeightWithoutBorders: number;\n public rowNumber: number;\n public maxlength: number;\n\n private params: ICellEditorParams;\n\n @ViewChild('skyCellEditorText', { read: ElementRef })\n private input: ElementRef;\n\n /**\n * agInit is called by agGrid once after the editor is created and provides the editor with the information it needs.\n * @param params The cell editor params that include data about the cell, column, row, and grid.\n */\n public agInit(params: SkyCellEditorTextParams): void {\n this.params = params;\n this.value = this.params.charPress || this.params.value;\n this.maxlength = params.skyComponentProperties?.maxlength;\n this.columnHeader = this.params.colDef.headerName;\n this.rowNumber = this.params.rowIndex + 1;\n this.columnWidth = this.params.column.getActualWidth();\n this.rowHeightWithoutBorders =\n this.params.node && this.params.node.rowHeight - 4;\n }\n\n /**\n * 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.\n */\n public afterGuiAttached(): void {\n this.input.nativeElement.focus();\n }\n\n /**\n * getValue is called by agGrid when editing is stopped to get the new value of the cell.\n */\n public getValue(): string {\n return this.value;\n }\n}\n","<input\n type=\"text\"\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_editor_text_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n [(ngModel)]=\"value\"\n [maxlength]=\"maxlength\"\n #skyCellEditorText\n/>\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer-currency.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;;;AAQ1E;;GAEG;AAOH,MAAM,OAAO,sCAAsC;IANnD;QAkBS,2BAAsB,
|
|
1
|
+
{"version":3,"file":"cell-renderer-currency.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-currency/cell-renderer-currency.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;;;;AAQ1E;;GAEG;AAOH,MAAM,OAAO,sCAAsC;IANnD;QAkBS,2BAAsB,GAC3B,EAAE,CAAC;QACE,mBAAc,GAAmB,EAAE,CAAC;KA8B5C;IAzCC,IACW,MAAM,CAAC,KAAoC;QACpD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,CAAC;IAaD;;;OAGG;IACI,MAAM,CAAC,MAAqC;QACjD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAEM,OAAO,CAAC,MAAqC;QAClD,OAAO,KAAK,CAAC;IACf,CAAC;IAEO,gBAAgB,CAAC,MAAqC;;QAC5D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;QAChC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;QAC1E,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,MAAA,IAAI,CAAC,OAAO,CAAC,MAAM,0CAAE,cAAc,EAAE,CAAC;QACzD,IAAI,CAAC,uBAAuB;YAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACvD,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,OAAO,CAAC,sBAAsB,IAAI,EAAE,CAAC;QACxE,IAAI,CAAC,sBAAsB,CAAC,MAAM,GAAG,UAAU,CAAC;QAChD,IAAI,CAAC,sBAAsB,CAAC,SAAS,GAAG,CAAC,CAAC;QAC1C,IAAI,CAAC,sBAAsB,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC/C,CAAC;;oIA3CU,sCAAsC;wHAAtC,sCAAsC,wGCjBnD,kSAUA;4FDOa,sCAAsC;kBANlD,SAAS;mBAAC;oBACT,QAAQ,EAAE,oCAAoC;oBAC9C,WAAW,EAAE,yCAAyC;oBACtD,SAAS,EAAE,CAAC,yCAAyC,CAAC;oBACtD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAKY,MAAM;sBADhB,KAAK","sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { NumericOptions } from '@skyux/core';\n\nimport { ICellRendererAngularComp } from 'ag-grid-angular';\n\nimport { SkyCellRendererCurrencyParams } from '../../types/cell-renderer-currency-params';\nimport { SkyAgGridValidatorProperties } from '../../types/validator-properties';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-ag-grid-cell-renderer-currency',\n templateUrl: './cell-renderer-currency.component.html',\n styleUrls: ['./cell-renderer-currency.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyAgGridCellRendererCurrencyComponent\n implements ICellRendererAngularComp\n{\n @Input()\n public set params(value: SkyCellRendererCurrencyParams) {\n this.agInit(value);\n }\n\n public columnHeader: string;\n public columnWidth: number;\n public rowHeightWithoutBorders: number;\n public rowNumber: number;\n public skyComponentProperties: NumericOptions & SkyAgGridValidatorProperties =\n {};\n public numericOptions: NumericOptions = {};\n public value: number;\n\n private _params: SkyCellRendererCurrencyParams;\n\n /**\n * agInit is called by agGrid once after the renderer is created and provides the renderer with the information it needs.\n * @param params The cell renderer params that include data about the cell, column, row, and grid.\n */\n public agInit(params: SkyCellRendererCurrencyParams) {\n this.updateProperties(params);\n }\n\n public refresh(params: SkyCellRendererCurrencyParams): boolean {\n return false;\n }\n\n private updateProperties(params: SkyCellRendererCurrencyParams) {\n this._params = params;\n this.value = this._params.value;\n this.columnHeader = this._params.colDef && this._params.colDef.headerName;\n this.rowNumber = this._params.rowIndex + 1;\n this.columnWidth = this._params.column?.getActualWidth();\n this.rowHeightWithoutBorders =\n this._params.node && this._params.node.rowHeight - 4;\n this.skyComponentProperties = this._params.skyComponentProperties || {};\n this.skyComponentProperties.format = 'currency';\n this.skyComponentProperties.minDigits = 2;\n this.skyComponentProperties.truncate = false;\n }\n}\n","<span\n [attr.aria-label]=\"\n 'sky_ag_grid_cell_renderer_currency_aria_label'\n | skyLibResources: columnHeader:rowNumber\n \"\n [style.width.px]=\"columnWidth\"\n [style.height.px]=\"rowHeightWithoutBorders\"\n>\n {{ value | skyNumeric: skyComponentProperties }}\n</span>\n"]}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, } from '@angular/core';
|
|
2
|
-
import { applySkyLookupPropertiesDefaults
|
|
2
|
+
import { applySkyLookupPropertiesDefaults } from '../../apply-lookup-properties-defaults';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
5
|
import * as i2 from "@skyux/i18n";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
6
9
|
export class SkyAgGridCellRendererLookupComponent {
|
|
7
10
|
constructor(changeDetector) {
|
|
8
11
|
this.changeDetector = changeDetector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer-lookup.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"cell-renderer-lookup.component.js","sourceRoot":"","sources":["../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.ts","../../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-renderers/cell-renderer-lookup/cell-renderer-lookup.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,GACV,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,gCAAgC,EAAE,MAAM,wCAAwC,CAAC;;;;AAI1F;;GAEG;AAOH,MAAM,OAAO,oCAAoC;IAO/C,YAAoB,cAAiC;QAAjC,mBAAc,GAAd,cAAc,CAAmB;QAJ9C,UAAK,GAAG,EAAE,CAAC;QACX,iBAAY,GAAG,CAAC,CAAC;IAGgC,CAAC;IAElD,MAAM,CAAC,MAAmC;;QAC/C,IAAI,CAAC,gBAAgB,GAAG,gCAAgC,CAAC,MAAM,CAAC,CAAC;QACjE,IAAI,CAAC,YAAY,GAAG,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,MAAM,KAAI,CAAC,CAAC;QAC9C,IAAI,CAAC,KAAK,GAAG,GAAG,MAAM,CAAC,cAAc,EAAE,CAAC;QACxC,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAEM,OAAO,CAAC,MAAmC;QAChD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;;kIAnBU,oCAAoC;sHAApC,oCAAoC,gECrBjD,wMAIA;4FDiBa,oCAAoC;kBANhD,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,WAAW,EAAE,uCAAuC;oBACpD,SAAS,EAAE,CAAC,uCAAuC,CAAC;oBACpD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n} from '@angular/core';\n\nimport { ICellRendererAngularComp } from 'ag-grid-angular';\n\nimport { applySkyLookupPropertiesDefaults } from '../../apply-lookup-properties-defaults';\nimport { SkyCellRendererLookupParams } from '../../types/cell-renderer-lookup-params';\nimport { SkyAgGridLookupProperties } from '../../types/lookup-properties';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-cell-renderer-lookup',\n templateUrl: './cell-renderer-lookup.component.html',\n styleUrls: ['./cell-renderer-lookup.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyAgGridCellRendererLookupComponent\n implements ICellRendererAngularComp\n{\n public value = '';\n public summaryCount = 0;\n private lookupProperties: SkyAgGridLookupProperties;\n\n constructor(private changeDetector: ChangeDetectorRef) {}\n\n public agInit(params: SkyCellRendererLookupParams): void {\n this.lookupProperties = applySkyLookupPropertiesDefaults(params);\n this.summaryCount = params.value?.length || 0;\n this.value = `${params.valueFormatted}`;\n this.changeDetector.markForCheck();\n }\n\n public refresh(params: SkyCellRendererLookupParams): boolean {\n this.agInit(params);\n return true;\n }\n}\n","<ng-container *ngIf=\"summaryCount > 5; else showValue\">\n {{ 'skyux_lookup_tokens_summary' | skyLibResources: summaryCount }}\n</ng-container>\n<ng-template #showValue>{{ value }}</ng-template>\n"]}
|
package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input,
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, } from '@angular/core';
|
|
2
2
|
import { SkyPopoverMessageType } from '@skyux/popovers';
|
|
3
3
|
import { Events } from 'ag-grid-community';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "@skyux/indicators";
|
|
7
7
|
import * as i2 from "@skyux/popovers";
|
|
8
|
-
import * as i3 from "@angular/common";
|
|
9
8
|
/**
|
|
10
9
|
* @internal
|
|
11
10
|
*/
|
|
12
11
|
export class SkyAgGridCellValidatorTooltipComponent {
|
|
13
|
-
constructor(changeDetector
|
|
12
|
+
constructor(changeDetector) {
|
|
14
13
|
this.changeDetector = changeDetector;
|
|
15
|
-
this.zone = zone;
|
|
16
|
-
this.indicatorShouldShow = true;
|
|
17
14
|
this.popoverMessageStream = new Subject();
|
|
18
15
|
}
|
|
19
16
|
set params(value) {
|
|
20
|
-
var _a, _b, _c, _d, _e;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
21
18
|
this.cellRendererParams = value;
|
|
22
19
|
/*istanbul ignore next*/
|
|
23
20
|
(_a = this.cellRendererParams.api) === null || _a === void 0 ? void 0 : _a.addEventListener(Events.EVENT_CELL_FOCUSED, (eventParams) => {
|
|
@@ -34,41 +31,51 @@ export class SkyAgGridCellValidatorTooltipComponent {
|
|
|
34
31
|
this.showPopover();
|
|
35
32
|
}
|
|
36
33
|
});
|
|
34
|
+
(_c = this.cellRendererParams.eGridCell) === null || _c === void 0 ? void 0 : _c.addEventListener('mouseenter', () => {
|
|
35
|
+
this.scheduleDelayedPopover();
|
|
36
|
+
});
|
|
37
|
+
(_d = this.cellRendererParams.eGridCell) === null || _d === void 0 ? void 0 : _d.addEventListener('mouseleave', () => {
|
|
38
|
+
this.hidePopover();
|
|
39
|
+
});
|
|
37
40
|
/*istanbul ignore next*/
|
|
38
|
-
(
|
|
41
|
+
(_e = this.cellRendererParams.api) === null || _e === void 0 ? void 0 : _e.addEventListener(Events.EVENT_CELL_EDITING_STARTED, () => {
|
|
39
42
|
this.hidePopover();
|
|
40
43
|
});
|
|
41
|
-
if (typeof ((
|
|
44
|
+
if (typeof ((_f = this.cellRendererParams.skyComponentProperties) === null || _f === void 0 ? void 0 : _f.validatorMessage) === 'function') {
|
|
42
45
|
this.validatorMessage =
|
|
43
46
|
this.cellRendererParams.skyComponentProperties.validatorMessage(this.cellRendererParams.value, this.cellRendererParams.data, this.cellRendererParams.rowIndex);
|
|
44
47
|
}
|
|
45
48
|
else {
|
|
46
49
|
this.validatorMessage =
|
|
47
|
-
(
|
|
50
|
+
(_g = this.cellRendererParams.skyComponentProperties) === null || _g === void 0 ? void 0 : _g.validatorMessage;
|
|
48
51
|
}
|
|
49
52
|
this.changeDetector.markForCheck();
|
|
50
53
|
}
|
|
51
|
-
hideIndicator() {
|
|
52
|
-
this.zone.run(() => {
|
|
53
|
-
this.indicatorShouldShow = false;
|
|
54
|
-
this.changeDetector.detectChanges();
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
54
|
hidePopover() {
|
|
55
|
+
this.cancelDelayedPopover();
|
|
58
56
|
this.popoverMessageStream.next({ type: SkyPopoverMessageType.Close });
|
|
59
57
|
}
|
|
60
|
-
showIndicator() {
|
|
61
|
-
this.zone.run(() => {
|
|
62
|
-
this.indicatorShouldShow = true;
|
|
63
|
-
this.changeDetector.detectChanges();
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
58
|
showPopover() {
|
|
59
|
+
this.cancelDelayedPopover();
|
|
67
60
|
this.popoverMessageStream.next({ type: SkyPopoverMessageType.Open });
|
|
68
61
|
}
|
|
62
|
+
scheduleDelayedPopover() {
|
|
63
|
+
/* istanbul ignore else */
|
|
64
|
+
if (!this._hoverTimeout) {
|
|
65
|
+
this._hoverTimeout = window.setTimeout(() => {
|
|
66
|
+
this.showPopover();
|
|
67
|
+
}, 300);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
cancelDelayedPopover() {
|
|
71
|
+
if (this._hoverTimeout) {
|
|
72
|
+
window.clearTimeout(this._hoverTimeout);
|
|
73
|
+
this._hoverTimeout = undefined;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
|
-
SkyAgGridCellValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }
|
|
71
|
-
SkyAgGridCellValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: { params: "params" }, ngImport: i0, template: "<div\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n class=\"sky-validator-cell\"\n>\n <ng-content></ng-content>\n <sky-status-indicator\n
|
|
77
|
+
SkyAgGridCellValidatorTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
SkyAgGridCellValidatorTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyAgGridCellValidatorTooltipComponent, selector: "sky-ag-grid-cell-validator-tooltip", inputs: { params: "params" }, ngImport: i0, template: "<div\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n class=\"sky-validator-cell\"\n>\n <ng-content></ng-content>\n <sky-status-indicator\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n ></sky-status-indicator>\n</div>\n<sky-popover #validatorPopover popoverType=\"danger\">\n {{ validatorMessage }}\n</sky-popover>\n", styles: [":host div.sky-validator-cell{height:100%;width:100%}:host div.sky-validator-cell:focus{outline:none}\n"], components: [{ type: i1.λ10, selector: "sky-status-indicator", inputs: ["indicatorType", "descriptionType", "customDescription"] }, { type: i2.λ6, selector: "sky-popover", inputs: ["alignment", "dismissOnBlur", "placement", "popoverTitle", "popoverType"], outputs: ["popoverClosed", "popoverOpened"] }], directives: [{ type: i2.λ7, selector: "[skyPopover]", inputs: ["skyPopover", "skyPopoverAlignment", "skyPopoverMessageStream", "skyPopoverPlacement", "skyPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
79
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyAgGridCellValidatorTooltipComponent, decorators: [{
|
|
73
80
|
type: Component,
|
|
74
81
|
args: [{
|
|
@@ -77,7 +84,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
77
84
|
templateUrl: 'ag-grid-cell-validator-tooltip.component.html',
|
|
78
85
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
79
86
|
}]
|
|
80
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }
|
|
87
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { params: [{
|
|
81
88
|
type: Input
|
|
82
89
|
}] } });
|
|
83
90
|
//# sourceMappingURL=ag-grid-cell-validator-tooltip.component.js.map
|
package/esm2015/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ag-grid-cell-validator-tooltip.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.ts","../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,KAAK,
|
|
1
|
+
{"version":3,"file":"ag-grid-cell-validator-tooltip.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.ts","../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/cell-validator/ag-grid-cell-validator-tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAqB,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,EAAoB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;;;AAI/B;;GAEG;AAOH,MAAM,OAAO,sCAAsC;IAuEjD,YAAoB,cAAiC;QAAjC,mBAAc,GAAd,cAAc,CAAmB;QAR9C,yBAAoB,GAAG,IAAI,OAAO,EAAqB,CAAC;IAQP,CAAC;IAtEzD,IACW,MAAM,CAAC,KAAqC;;QACrD,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAEhC,wBAAwB;QACxB,MAAA,IAAI,CAAC,kBAAkB,CAAC,GAAG,0CAAE,gBAAgB,CAC3C,MAAM,CAAC,kBAAkB,EACzB,CAAC,WAA6B,EAAE,EAAE;YAChC,iIAAiI;YACjI,IACE,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC3B,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,QAAQ,EAAE;gBAC3C,WAAW,CAAC,QAAQ,KAAK,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EACzD;gBACA,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,CACF,CAAC;QAEF,wBAAwB;QACxB,MAAA,IAAI,CAAC,kBAAkB,CAAC,SAAS,0CAAE,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;YACrE,IACE,CAAC,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EACvE;gBACA,IAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,CAAC,CAAC;QAEH,MAAA,IAAI,CAAC,kBAAkB,CAAC,SAAS,0CAAE,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;YACrE,IAAI,CAAC,sBAAsB,EAAE,CAAC;QAChC,CAAC,CAAC,CAAC;QAEH,MAAA,IAAI,CAAC,kBAAkB,CAAC,SAAS,0CAAE,gBAAgB,CAAC,YAAY,EAAE,GAAG,EAAE;YACrE,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC,CAAC,CAAC;QAEH,wBAAwB;QACxB,MAAA,IAAI,CAAC,kBAAkB,CAAC,GAAG,0CAAE,gBAAgB,CAC3C,MAAM,CAAC,0BAA0B,EACjC,GAAG,EAAE;YACH,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,CAAC,CACF,CAAC;QAEF,IACE,OAAO,CAAA,MAAA,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,0CACjD,gBAAgB,CAAA,KAAK,UAAU,EACnC;YACA,IAAI,CAAC,gBAAgB;gBACnB,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,gBAAgB,CAC7D,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAC7B,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAC5B,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CACjC,CAAC;SACL;aAAM;YACL,IAAI,CAAC,gBAAgB;gBACnB,MAAA,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,0CAAE,gBAAgB,CAAC;SACpE;QAED,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAYM,WAAW;QAChB,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,qBAAqB,CAAC,KAAK,EAAE,CAAC,CAAC;IACxE,CAAC;IAEM,WAAW;QAChB,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC;IACvE,CAAC;IAEO,sBAAsB;QAC5B,0BAA0B;QAC1B,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBAC1C,IAAI,CAAC,WAAW,EAAE,CAAC;YACrB,CAAC,EAAE,GAAG,CAAC,CAAC;SACT;IACH,CAAC;IAEO,oBAAoB;QAC1B,IAAI,IAAI,CAAC,aAAa,EAAE;YACtB,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YACxC,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC;SAChC;IACH,CAAC;;oIAjGU,sCAAsC;wHAAtC,sCAAsC,wGCtBnD,4ZAeA;4FDOa,sCAAsC;kBANlD,SAAS;mBAAC;oBACT,QAAQ,EAAE,oCAAoC;oBAC9C,SAAS,EAAE,CAAC,+CAA+C,CAAC;oBAC5D,WAAW,EAAE,+CAA+C;oBAC5D,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;wGAGY,MAAM;sBADhB,KAAK","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n} from '@angular/core';\nimport { SkyPopoverMessage, SkyPopoverMessageType } from '@skyux/popovers';\n\nimport { CellFocusedEvent, Events } from 'ag-grid-community';\nimport { Subject } from 'rxjs';\n\nimport { SkyCellRendererValidatorParams } from '../types/cell-renderer-validator-params';\n\n/**\n * @internal\n */\n@Component({\n selector: 'sky-ag-grid-cell-validator-tooltip',\n styleUrls: ['ag-grid-cell-validator-tooltip.component.scss'],\n templateUrl: 'ag-grid-cell-validator-tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyAgGridCellValidatorTooltipComponent {\n @Input()\n public set params(value: SkyCellRendererValidatorParams) {\n this.cellRendererParams = value;\n\n /*istanbul ignore next*/\n this.cellRendererParams.api?.addEventListener(\n Events.EVENT_CELL_FOCUSED,\n (eventParams: CellFocusedEvent) => {\n // We want to close any popovers that are opened when other cells are focused, but open a popover if the current cell is focused.\n if (\n eventParams.column.getColId() !==\n this.cellRendererParams.column.getColId() ||\n eventParams.rowIndex !== this.cellRendererParams.rowIndex\n ) {\n this.hidePopover();\n }\n }\n );\n\n /*istanbul ignore next*/\n this.cellRendererParams.eGridCell?.addEventListener('keyup', (event) => {\n if (\n ['ArrowDown', 'ArrowLeft', 'ArrowRight', 'ArrowUp'].includes(event.key)\n ) {\n this.showPopover();\n }\n });\n\n this.cellRendererParams.eGridCell?.addEventListener('mouseenter', () => {\n this.scheduleDelayedPopover();\n });\n\n this.cellRendererParams.eGridCell?.addEventListener('mouseleave', () => {\n this.hidePopover();\n });\n\n /*istanbul ignore next*/\n this.cellRendererParams.api?.addEventListener(\n Events.EVENT_CELL_EDITING_STARTED,\n () => {\n this.hidePopover();\n }\n );\n\n if (\n typeof this.cellRendererParams.skyComponentProperties\n ?.validatorMessage === 'function'\n ) {\n this.validatorMessage =\n this.cellRendererParams.skyComponentProperties.validatorMessage(\n this.cellRendererParams.value,\n this.cellRendererParams.data,\n this.cellRendererParams.rowIndex\n );\n } else {\n this.validatorMessage =\n this.cellRendererParams.skyComponentProperties?.validatorMessage;\n }\n\n this.changeDetector.markForCheck();\n }\n\n public popoverMessageStream = new Subject<SkyPopoverMessage>();\n\n public validatorMessage: string;\n\n public cellRendererParams: SkyCellRendererValidatorParams;\n\n private _hoverTimeout: number;\n\n constructor(private changeDetector: ChangeDetectorRef) {}\n\n public hidePopover(): void {\n this.cancelDelayedPopover();\n this.popoverMessageStream.next({ type: SkyPopoverMessageType.Close });\n }\n\n public showPopover(): void {\n this.cancelDelayedPopover();\n this.popoverMessageStream.next({ type: SkyPopoverMessageType.Open });\n }\n\n private scheduleDelayedPopover() {\n /* istanbul ignore else */\n if (!this._hoverTimeout) {\n this._hoverTimeout = window.setTimeout(() => {\n this.showPopover();\n }, 300);\n }\n }\n\n private cancelDelayedPopover() {\n if (this._hoverTimeout) {\n window.clearTimeout(this._hoverTimeout);\n this._hoverTimeout = undefined;\n }\n }\n}\n","<div\n [skyPopover]=\"validatorPopover\"\n [skyPopoverMessageStream]=\"popoverMessageStream\"\n class=\"sky-validator-cell\"\n>\n <ng-content></ng-content>\n <sky-status-indicator\n descriptionType=\"none\"\n indicatorType=\"danger\"\n class=\"sky-pull-right\"\n ></sky-status-indicator>\n</div>\n<sky-popover #validatorPopover popoverType=\"danger\">\n {{ validatorMessage }}\n</sky-popover>\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ag-grid-row-delete-cancel-args.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Information regarding a row whose deletion has been cancelled.\n
|
|
1
|
+
{"version":3,"file":"ag-grid-row-delete-cancel-args.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/ag-grid-row-delete-cancel-args.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Information regarding a row whose deletion has been cancelled.\n */\nexport interface SkyAgGridRowDeleteCancelArgs {\n /**\n * The id of the data in the row whose deletion has been cancelled.\n */\n id: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ag-grid-row-delete-confirm-args.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Information regarding a row whose deletion has been confirmed.\n
|
|
1
|
+
{"version":3,"file":"ag-grid-row-delete-confirm-args.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/ag-grid-row-delete-confirm-args.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Information regarding a row whose deletion has been confirmed.\n */\nexport interface SkyAgGridRowDeleteConfirmArgs {\n /**\n * The id of the data in the row whose deletion has been confirmed.\n */\n id: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/autocomplete-properties.ts"],"names":[],"mappings":"","sourcesContent":["import { TemplateRef } from '@angular/core';\n\
|
|
1
|
+
{"version":3,"file":"autocomplete-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/autocomplete-properties.ts"],"names":[],"mappings":"","sourcesContent":["import { TemplateRef } from '@angular/core';\n\nexport interface SkyAgGridAutocompleteProperties {\n data?: any[];\n debounceTime?: number;\n descriptorProperty?: string;\n propertiesToSearch?: string[];\n search?: (searchText: string, data?: any[]) => any[] | Promise<any[]>;\n searchFilters?: (searchText: string, item: any) => boolean;\n searchResultsLimit?: number;\n searchResultTemplate?: TemplateRef<any>;\n searchTextMinimumCharacters?: number;\n selectionChange?: Function;\n}\n\n/**\n * @deprecated Use SkyAgGridAutocompleteProperties instead.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface SkyAutocompleteProperties\n extends SkyAgGridAutocompleteProperties {}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-autocomplete-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-autocomplete-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-editor-autocomplete-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-autocomplete-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport {\n SkyAgGridAutocompleteProperties,\n SkyAutocompleteProperties,\n} from './autocomplete-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellEditorAutocompleteParams extends ICellEditorParams {\n skyComponentProperties?:\n | SkyAutocompleteProperties\n | SkyAgGridAutocompleteProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-currency-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-currency-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-editor-currency-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-currency-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport { SkyAgGridCurrencyProperties } from './currency-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellEditorCurrencyParams extends ICellEditorParams {\n skyComponentProperties?: SkyAgGridCurrencyProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-datepicker-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-datepicker-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-editor-datepicker-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-datepicker-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport {\n SkyAgGridDatepickerProperties,\n SkyDatepickerProperties,\n} from './datepicker-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellEditorDatepickerParams extends ICellEditorParams {\n skyComponentProperties?:\n | SkyDatepickerProperties\n | SkyAgGridDatepickerProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-editor-lookup-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-lookup-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-editor-lookup-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-lookup-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport { SkyAgGridLookupProperties } from './lookup-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellEditorLookupParams extends ICellEditorParams {\n skyComponentProperties?: SkyAgGridLookupProperties;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-editor-number-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-number-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport { SkyAgGridNumberProperties } from './number-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellEditorNumberParams extends ICellEditorParams {\n skyComponentProperties?: SkyAgGridNumberProperties;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell-editor-text-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-editor-text-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellEditorParams } from 'ag-grid-community';\n\nimport { SkyAgGridTextProperties } from './text-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellEditorTextParams extends ICellEditorParams {\n skyComponentProperties?: SkyAgGridTextProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer-currency-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-renderer-currency-params.ts"],"names":[],"mappings":"","sourcesContent":["import { NumericOptions } from '@skyux/core';\n\nimport { ICellRendererParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-renderer-currency-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-renderer-currency-params.ts"],"names":[],"mappings":"","sourcesContent":["import { NumericOptions } from '@skyux/core';\n\nimport { ICellRendererParams } from 'ag-grid-community';\n\nimport { SkyAgGridValidatorProperties } from './validator-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellRendererCurrencyParams extends ICellRendererParams {\n skyComponentProperties?: NumericOptions & SkyAgGridValidatorProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer-lookup-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-renderer-lookup-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellRendererParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-renderer-lookup-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-renderer-lookup-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellRendererParams } from 'ag-grid-community';\n\nimport { SkyAgGridLookupProperties } from './lookup-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellRendererLookupParams extends ICellRendererParams {\n skyComponentProperties?: SkyAgGridLookupProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-renderer-validator-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-renderer-validator-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellRendererParams } from 'ag-grid-community';\n\nimport {
|
|
1
|
+
{"version":3,"file":"cell-renderer-validator-params.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/cell-renderer-validator-params.ts"],"names":[],"mappings":"","sourcesContent":["import { ICellRendererParams } from 'ag-grid-community';\n\nimport { SkyAgGridValidatorProperties } from './validator-properties';\n\n/**\n * @internal\n */\nexport interface SkyCellRendererValidatorParams extends ICellRendererParams {\n skyComponentProperties: SkyAgGridValidatorProperties;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/currency-properties.ts"],"names":[],"mappings":"","sourcesContent":["export interface
|
|
1
|
+
{"version":3,"file":"currency-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/currency-properties.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkyAgGridCurrencyProperties {\n currencySymbol?: string;\n decimalPlaces?: number;\n negativeBracketsTypeOnBlur?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datepicker-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/datepicker-properties.ts"],"names":[],"mappings":"","sourcesContent":["
|
|
1
|
+
{"version":3,"file":"datepicker-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/datepicker-properties.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkyAgGridDatepickerProperties {\n dateFormat?: string;\n disabled?: boolean;\n maxDate?: Date;\n minDate?: Date;\n skyDatepickerNoValidate?: boolean;\n startingDay?: number;\n}\n\n/**\n * @deprecated Use SkyAgGridDatepickerProperties instead.\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface SkyDatepickerProperties\n extends SkyAgGridDatepickerProperties {}\n"]}
|
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
return {
|
|
3
|
-
addClick: skyLookupProperties.addClick || undefined,
|
|
4
|
-
ariaLabel: skyLookupProperties.ariaLabel || '',
|
|
5
|
-
autocompleteAttribute: skyLookupProperties.autocompleteAttribute || 'off',
|
|
6
|
-
data: skyLookupProperties.data || [],
|
|
7
|
-
debounceTime: skyLookupProperties.debounceTime || 0,
|
|
8
|
-
descriptorProperty: skyLookupProperties.descriptorProperty || 'name',
|
|
9
|
-
disabled: skyLookupProperties.disabled || false,
|
|
10
|
-
enableShowMore: skyLookupProperties.enableShowMore || false,
|
|
11
|
-
idProperty: skyLookupProperties.idProperty || undefined,
|
|
12
|
-
placeholderText: skyLookupProperties.placeholderText || '',
|
|
13
|
-
propertiesToSearch: skyLookupProperties.propertiesToSearch || undefined,
|
|
14
|
-
search: skyLookupProperties.search || undefined,
|
|
15
|
-
searchAsync: skyLookupProperties.searchAsync || undefined,
|
|
16
|
-
searchFilters: skyLookupProperties.searchFilters || [],
|
|
17
|
-
searchResultsLimit: skyLookupProperties.searchResultsLimit || undefined,
|
|
18
|
-
searchResultTemplate: skyLookupProperties.searchResultTemplate || undefined,
|
|
19
|
-
searchTextMinimumCharacters: skyLookupProperties.searchTextMinimumCharacters || 1,
|
|
20
|
-
selectMode: skyLookupProperties.selectMode || undefined,
|
|
21
|
-
showAddButton: skyLookupProperties.showAddButton || false,
|
|
22
|
-
showMoreConfig: skyLookupProperties.showMoreConfig || {},
|
|
23
|
-
wrapperClass: 'ag-custom-component-popup',
|
|
24
|
-
};
|
|
25
|
-
}
|
|
1
|
+
export {};
|
|
26
2
|
//# sourceMappingURL=lookup-properties.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lookup-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/lookup-properties.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lookup-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/lookup-properties.ts"],"names":[],"mappings":"","sourcesContent":["import { TemplateRef } from '@angular/core';\nimport {\n SkyAutocompleteSearchAsyncArgs,\n SkyAutocompleteSearchFunction,\n SkyAutocompleteSearchFunctionFilter,\n SkyLookupAddClickEventArgs,\n SkyLookupSelectModeType,\n SkyLookupShowMoreConfig,\n} from '@skyux/lookup';\n\nexport interface SkyAgGridLookupProperties {\n addClick?: (args: SkyLookupAddClickEventArgs) => {};\n ariaLabel?: string;\n autocompleteAttribute?: string;\n data: any[];\n debounceTime?: number;\n descriptorProperty?: string;\n disabled?: boolean;\n enableShowMore?: boolean;\n idProperty?: string;\n placeholderText?: string;\n propertiesToSearch?: string[];\n search?: SkyAutocompleteSearchFunction;\n searchAsync?: (args: SkyAutocompleteSearchAsyncArgs) => {};\n searchFilters?: SkyAutocompleteSearchFunctionFilter[];\n searchResultsLimit?: number;\n searchResultTemplate?: TemplateRef<any>;\n searchTextMinimumCharacters?: number;\n selectMode?: SkyLookupSelectModeType;\n showAddButton?: boolean;\n showMoreConfig?: SkyLookupShowMoreConfig;\n wrapperClass?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"number-properties.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/ag-grid/src/lib/modules/ag-grid/types/number-properties.ts"],"names":[],"mappings":"","sourcesContent":["export interface SkyAgGridNumberProperties {\n max?: number;\n min?: number;\n}\n"]}
|