@testgorilla/tgo-ui 10.1.0 → 10.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testgorilla/tgo-ui",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "license": "proprietary-license",
5
5
  "lint-staged": {
6
6
  "{projects,components}/**/*.ts": [
@@ -115,6 +115,16 @@ declare class FilterButtonComponent implements OnChanges {
115
115
  * @memberof FilterButtonComponent
116
116
  */
117
117
  noOptionsMessage?: string | undefined;
118
+ /**
119
+ * Whether the button should stretch to fill its container, and the dropdown panel
120
+ * follow that width instead of the default 240px.
121
+ * The panel never shrinks below 240px, so a container narrower than that is safe.
122
+ * Default: false.
123
+ *
124
+ * @type {boolean}
125
+ * @memberof FilterButtonComponent
126
+ */
127
+ fullWidth: boolean;
118
128
  /**
119
129
  * Emits the list of selected values when the selection changes.
120
130
  *
@@ -137,11 +147,16 @@ declare class FilterButtonComponent implements OnChanges {
137
147
  * @memberof FilterButtonComponent
138
148
  */
139
149
  applicationTheme: ApplicationTheme;
150
+ get fullWidthClass(): boolean;
140
151
  overlayContainer: ElementRef<HTMLElement>;
141
152
  viewport?: CdkVirtualScrollViewport;
153
+ private readonly triggerOrigin?;
154
+ private readonly connectedOverlay?;
142
155
  /** Must match the `.item` height in the SCSS — the fixed-size viewport relies on it. */
143
156
  readonly ITEM_SIZE = 48;
144
157
  readonly MAX_LIST_HEIGHT = 290;
158
+ readonly PANEL_MIN_WIDTH = 240;
159
+ readonly MATCH_TRIGGER_PANEL_CLASS = "ui-filter-button-panel-match-trigger";
145
160
  isOpen: _angular_core.WritableSignal<boolean>;
146
161
  displayedLabel: _angular_core.WritableSignal<string>;
147
162
  tooltip: _angular_core.WritableSignal<string>;
@@ -167,6 +182,7 @@ declare class FilterButtonComponent implements OnChanges {
167
182
  protected translationContext: string;
168
183
  private readonly searchInput$;
169
184
  constructor(defaultAppTheme: ApplicationTheme, cdr: ChangeDetectorRef, destroyRef: DestroyRef);
185
+ private syncPanelWidth;
170
186
  ngOnChanges(changes: SimpleChanges): void;
171
187
  clearValue(): void;
172
188
  outsideClick(): void;
@@ -181,7 +197,8 @@ declare class FilterButtonComponent implements OnChanges {
181
197
  private toggleActiveOption;
182
198
  private updateLabel;
183
199
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterButtonComponent, [{ optional: true; }, null, null]>;
184
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterButtonComponent, "ui-filter-button", never, { "label": { "alias": "label"; "required": false; }; "message": { "alias": "message"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; }; "singleSelection": { "alias": "singleSelection"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "noOptionsMessage": { "alias": "noOptionsMessage"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, { "changed": "changed"; "optionChange": "optionChange"; }, never, never, true, never>;
200
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterButtonComponent, "ui-filter-button", never, { "label": { "alias": "label"; "required": false; }; "message": { "alias": "message"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "allowClear": { "alias": "allowClear"; "required": false; }; "singleSelection": { "alias": "singleSelection"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "noOptionsMessage": { "alias": "noOptionsMessage"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; "applicationTheme": { "alias": "applicationTheme"; "required": false; }; }, { "changed": "changed"; "optionChange": "optionChange"; }, never, never, true, never>;
201
+ static ngAcceptInputType_fullWidth: unknown;
185
202
  }
186
203
 
187
204
  declare class FilterButtonComponentModule {