@testgorilla/tgo-ui 2.21.18 → 2.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/autocomplete/autocomplete.component.d.ts +16 -2
- package/components/autocomplete/autocomplete.component.module.d.ts +2 -1
- package/components/autocomplete/autocomplete.model.d.ts +1 -0
- package/components/autocomplete/prevent-input.directive.d.ts +7 -0
- package/components/checkbox/checkbox.component.d.ts +20 -1
- package/components/checkbox/checkbox.component.module.d.ts +4 -1
- package/components/checkbox/focus-visible.directive.d.ts +12 -0
- package/components/table/table.component.d.ts +1 -1
- package/components/table/table.model.d.ts +1 -0
- package/esm2022/components/autocomplete/autocomplete.component.mjs +29 -8
- package/esm2022/components/autocomplete/autocomplete.component.module.mjs +5 -2
- package/esm2022/components/autocomplete/autocomplete.model.mjs +1 -1
- package/esm2022/components/autocomplete/prevent-input.directive.mjs +27 -0
- package/esm2022/components/checkbox/checkbox.component.mjs +38 -5
- package/esm2022/components/checkbox/checkbox.component.module.mjs +7 -4
- package/esm2022/components/checkbox/focus-visible.directive.mjs +40 -0
- package/esm2022/components/snackbar/snackbar.component.mjs +3 -3
- package/esm2022/components/table/table.component.mjs +5 -5
- package/esm2022/components/table/table.model.mjs +1 -1
- package/fesm2022/testgorilla-tgo-ui.mjs +166 -51
- package/fesm2022/testgorilla-tgo-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/projects/tgo-canopy-ui/theme/_input.scss +2 -1
|
@@ -3,7 +3,7 @@ import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
|
3
3
|
import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
4
4
|
import { ReplaySubject } from 'rxjs';
|
|
5
5
|
import { AutocompleteUtils } from '../../utils/autocomplete-utils';
|
|
6
|
-
import { Autocomplete, AutocompleteType, DropdownVariation } from './autocomplete.model';
|
|
6
|
+
import { Autocomplete, AutocompleteSize, AutocompleteType, DropdownVariation } from './autocomplete.model';
|
|
7
7
|
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
8
8
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
9
9
|
import { CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
|
|
@@ -179,6 +179,19 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
179
179
|
* @memberof AutocompleteComponent
|
|
180
180
|
*/
|
|
181
181
|
closeOnScroll: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* @property AutocompleteSize
|
|
184
|
+
* @description Defines the size of the autocomplete. Small changes the tags to counter; medium is default.
|
|
185
|
+
* @memberof AutocompleteComponent
|
|
186
|
+
*/
|
|
187
|
+
size: AutocompleteSize;
|
|
188
|
+
/**
|
|
189
|
+
* @property allowUserInput
|
|
190
|
+
* @description If `true`, allows the user to input custom values in the autocomplete.
|
|
191
|
+
* @type {boolean}
|
|
192
|
+
* @memberof AutocompleteComponent
|
|
193
|
+
*/
|
|
194
|
+
allowUserInput: boolean;
|
|
182
195
|
selectionChange: EventEmitter<any>;
|
|
183
196
|
searchTextChange: EventEmitter<string>;
|
|
184
197
|
blur: EventEmitter<void>;
|
|
@@ -243,7 +256,8 @@ export declare class AutocompleteComponent implements ControlValueAccessor, OnCh
|
|
|
243
256
|
*/
|
|
244
257
|
private setCompanyColorVariable;
|
|
245
258
|
private subscriberDisplayChange;
|
|
259
|
+
protected get hasObjectValue(): boolean;
|
|
246
260
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, [{ optional: true; }, null, null, { optional: true; self: true; }, null, null, null]>;
|
|
247
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ui-autocomplete", never, { "itemsList": { "alias": "itemsList"; "required": false; }; "suggestionsList": { "alias": "suggestionsList"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowAdd": { "alias": "allowAdd"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "label": { "alias": "label"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "type": { "alias": "type"; "required": false; }; "minCharactersSearch": { "alias": "minCharactersSearch"; "required": false; }; "variant": { "alias": "variant"; "required": true; }; "language": { "alias": "language"; "required": false; }; "showBottomContent": { "alias": "showBottomContent"; "required": false; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "hideBuiltInErrors": { "alias": "hideBuiltInErrors"; "required": false; }; "hideLabelInErrors": { "alias": "hideLabelInErrors"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "dropdownPanelClass": { "alias": "dropdownPanelClass"; "required": false; }; "closeOnScroll": { "alias": "closeOnScroll"; "required": false; }; }, { "selectionChange": "selectionChange"; "searchTextChange": "searchTextChange"; "blur": "blur"; "focus": "focus"; }, never, never, false, never>;
|
|
261
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ui-autocomplete", never, { "itemsList": { "alias": "itemsList"; "required": false; }; "suggestionsList": { "alias": "suggestionsList"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "allowAdd": { "alias": "allowAdd"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "label": { "alias": "label"; "required": false; }; "itemValue": { "alias": "itemValue"; "required": false; }; "type": { "alias": "type"; "required": false; }; "minCharactersSearch": { "alias": "minCharactersSearch"; "required": false; }; "variant": { "alias": "variant"; "required": true; }; "language": { "alias": "language"; "required": false; }; "showBottomContent": { "alias": "showBottomContent"; "required": false; }; "valuePrimitive": { "alias": "valuePrimitive"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "hideBuiltInErrors": { "alias": "hideBuiltInErrors"; "required": false; }; "hideLabelInErrors": { "alias": "hideLabelInErrors"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "dropdownPanelClass": { "alias": "dropdownPanelClass"; "required": false; }; "closeOnScroll": { "alias": "closeOnScroll"; "required": false; }; "size": { "alias": "size"; "required": false; }; "allowUserInput": { "alias": "allowUserInput"; "required": false; }; }, { "selectionChange": "selectionChange"; "searchTextChange": "searchTextChange"; "blur": "blur"; "focus": "focus"; }, never, never, false, never>;
|
|
248
262
|
static ngAcceptInputType_virtualScroll: unknown;
|
|
249
263
|
}
|
|
@@ -15,8 +15,9 @@ import * as i13 from "../../pipes/ui-translate.pipe";
|
|
|
15
15
|
import * as i14 from "../validation-error/validation-error.module";
|
|
16
16
|
import * as i15 from "../../pipes/has-validation-error.pipe";
|
|
17
17
|
import * as i16 from "@angular/cdk/scrolling";
|
|
18
|
+
import * as i17 from "./prevent-input.directive";
|
|
18
19
|
export declare class AutocompleteComponentModule {
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponentModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteComponentModule, [typeof i1.AutocompleteComponent, typeof i2.TransformItemPipe, typeof i3.IncludesPipe, typeof i4.SelectTextDirective], [typeof i5.CommonModule, typeof i6.MatFormFieldModule, typeof i7.MatAutocompleteModule, typeof i8.MatInputModule, typeof i9.FormsModule, typeof i10.TagComponentModule, typeof i11.MatChipsModule, typeof i12.IconComponentModule, typeof i13.UiTranslatePipe, typeof i14.ValidationErrorModule, typeof i15.HasValidationErrorPipe, typeof i16.CdkVirtualForOf, typeof i16.CdkVirtualScrollViewport, typeof i16.CdkFixedSizeVirtualScroll], [typeof i1.AutocompleteComponent]>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AutocompleteComponentModule, [typeof i1.AutocompleteComponent, typeof i2.TransformItemPipe, typeof i3.IncludesPipe, typeof i4.SelectTextDirective], [typeof i5.CommonModule, typeof i6.MatFormFieldModule, typeof i7.MatAutocompleteModule, typeof i8.MatInputModule, typeof i9.FormsModule, typeof i10.TagComponentModule, typeof i11.MatChipsModule, typeof i12.IconComponentModule, typeof i13.UiTranslatePipe, typeof i14.ValidationErrorModule, typeof i15.HasValidationErrorPipe, typeof i16.CdkVirtualForOf, typeof i16.CdkVirtualScrollViewport, typeof i16.CdkFixedSizeVirtualScroll, typeof i17.PreventInputDirective], [typeof i1.AutocompleteComponent]>;
|
|
21
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<AutocompleteComponentModule>;
|
|
22
23
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PreventInputDirective {
|
|
3
|
+
uiPreventInput: boolean;
|
|
4
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreventInputDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PreventInputDirective, "[uiPreventInput]", never, { "uiPreventInput": { "alias": "uiPreventInput"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -2,6 +2,7 @@ import { ChangeDetectorRef, DoCheck, EventEmitter, OnChanges, OnInit } from '@an
|
|
|
2
2
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
3
|
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
4
4
|
import { ApplicationTheme } from '../../models/application-theme.model';
|
|
5
|
+
import { MatTooltip } from "@angular/material/tooltip";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class CheckboxComponent implements OnInit, ControlValueAccessor, DoCheck, OnChanges {
|
|
7
8
|
private readonly defaultAppTheme;
|
|
@@ -112,6 +113,20 @@ export declare class CheckboxComponent implements OnInit, ControlValueAccessor,
|
|
|
112
113
|
* @memberof CheckboxComponent
|
|
113
114
|
*/
|
|
114
115
|
hideLabelInErrors: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* A string representing the ARIA requirement for accessibility.
|
|
118
|
+
* This attribute is used to indicate whether an input field is required for form submission.
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof CheckboxComponent
|
|
121
|
+
*/
|
|
122
|
+
ariaLabelledby: string;
|
|
123
|
+
/**
|
|
124
|
+
* A string representing the ARIA requirement for accessibility.
|
|
125
|
+
* This attribute is used to indicate whether an input field is required for form submission.
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof CheckboxComponent
|
|
128
|
+
*/
|
|
129
|
+
ariaDescribedby: string;
|
|
115
130
|
/**
|
|
116
131
|
* Event emitted when the checkbox's checked value changes.
|
|
117
132
|
*
|
|
@@ -127,7 +142,9 @@ export declare class CheckboxComponent implements OnInit, ControlValueAccessor,
|
|
|
127
142
|
* @ignore
|
|
128
143
|
*/
|
|
129
144
|
onTouch: () => void;
|
|
145
|
+
showTooltip: boolean;
|
|
130
146
|
classMultiple: string;
|
|
147
|
+
tooltipElement: MatTooltip;
|
|
131
148
|
constructor(defaultAppTheme: ApplicationTheme, cdr: ChangeDetectorRef, ngControl: NgControl);
|
|
132
149
|
ngOnChanges(): void;
|
|
133
150
|
/**
|
|
@@ -143,7 +160,9 @@ export declare class CheckboxComponent implements OnInit, ControlValueAccessor,
|
|
|
143
160
|
registerOnChange(fn: any): void;
|
|
144
161
|
registerOnTouched(fn: any): void;
|
|
145
162
|
setDisabledState(isDisabled: boolean): void;
|
|
163
|
+
onLabelEllipsisChange(isEllipsis: boolean): void;
|
|
164
|
+
onFocus(showTooltip: boolean): void;
|
|
146
165
|
private setCompanyColor;
|
|
147
166
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [{ optional: true; }, null, { optional: true; self: true; }]>;
|
|
148
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "language": { "alias": "language"; "required": false; }; "hideBuiltInErrors": { "alias": "hideBuiltInErrors"; "required": false; }; "hideLabelInErrors": { "alias": "hideLabelInErrors"; "required": false; }; }, { "changed": "changed"; }, never, ["[checkbox-label]"], false, never>;
|
|
167
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox", never, { "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "companyColor": { "alias": "companyColor"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "ariaRequired": { "alias": "ariaRequired"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "language": { "alias": "language"; "required": false; }; "hideBuiltInErrors": { "alias": "hideBuiltInErrors"; "required": false; }; "hideLabelInErrors": { "alias": "hideLabelInErrors"; "required": false; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; }; "ariaDescribedby": { "alias": "ariaDescribedby"; "required": false; }; }, { "changed": "changed"; }, never, ["[checkbox-label]"], false, never>;
|
|
149
168
|
}
|
|
@@ -8,8 +8,11 @@ import * as i6 from "../icon/icon.component.module";
|
|
|
8
8
|
import * as i7 from "../../pipes/ui-translate.pipe";
|
|
9
9
|
import * as i8 from "../validation-error/validation-error.module";
|
|
10
10
|
import * as i9 from "../../pipes/has-validation-error.pipe";
|
|
11
|
+
import * as i10 from "../../directives/ellipse-text.directive";
|
|
12
|
+
import * as i11 from "@angular/material/tooltip";
|
|
13
|
+
import * as i12 from "./focus-visible.directive";
|
|
11
14
|
export declare class CheckboxComponentModule {
|
|
12
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponentModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxComponentModule, [typeof i1.CheckboxComponent], [typeof i2.CommonModule, typeof i3.MatCheckboxModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatInputModule, typeof i6.IconComponentModule, typeof i7.UiTranslatePipe, typeof i8.ValidationErrorModule, typeof i9.HasValidationErrorPipe], [typeof i1.CheckboxComponent]>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CheckboxComponentModule, [typeof i1.CheckboxComponent], [typeof i2.CommonModule, typeof i3.MatCheckboxModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatInputModule, typeof i6.IconComponentModule, typeof i7.UiTranslatePipe, typeof i8.ValidationErrorModule, typeof i9.HasValidationErrorPipe, typeof i10.EllipseTextDirective, typeof i11.MatTooltipModule, typeof i12.FocusVisibleDirective], [typeof i1.CheckboxComponent]>;
|
|
14
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<CheckboxComponentModule>;
|
|
15
18
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FocusVisibleDirective {
|
|
4
|
+
uiFocusVisible: EventEmitter<boolean>;
|
|
5
|
+
private hadKeyboardEvent;
|
|
6
|
+
constructor();
|
|
7
|
+
handleKeyboardEvent(): void;
|
|
8
|
+
onFocus(): void;
|
|
9
|
+
onBlur(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusVisibleDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusVisibleDirective, "[uiFocusVisible]", never, {}, { "uiFocusVisible": "uiFocusVisible"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -88,7 +88,7 @@ export declare class TableComponent<T extends DataSource, TDetail extends DataSo
|
|
|
88
88
|
protected toggleRow(element: T): void;
|
|
89
89
|
private setTableDetailDataSource;
|
|
90
90
|
private defaultPaginationConfig;
|
|
91
|
-
|
|
91
|
+
trackColumnUniqueId: (index: number, column: TableColumn<T>) => string;
|
|
92
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any, any>, [{ optional: true; }, null, null]>;
|
|
93
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any, any>, "ui-table", never, { "config": { "alias": "config"; "required": true; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; "tableDetailColumns": { "alias": "tableDetailColumns"; "required": false; }; "tableDetails": { "alias": "tableDetails"; "required": false; }; "disableBorderRadius": { "alias": "disableBorderRadius"; "required": false; }; }, { "onRowClickEvent": "onRowClickEvent"; "onDetailRowClickEvent": "onDetailRowClickEvent"; "paginatorChange": "paginatorChange"; "sortChange": "sortChange"; }, never, ["[title-actions]"], false, never>;
|
|
94
94
|
}
|