@coolon/angular-ui-powerups 16.1.0-alpha.279 → 16.1.0-alpha.281

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.
@@ -7,80 +7,81 @@ import * as i5 from "./forms/string-input/string-input.component";
7
7
  import * as i6 from "./forms/text-input/text-input.component";
8
8
  import * as i7 from "./forms/password-input/password-input.component";
9
9
  import * as i8 from "./forms/select-input/select-input.component";
10
- import * as i9 from "./forms/multiple-select-input/multiple-select-input.component";
11
- import * as i10 from "./forms/autocomplete-input/autocomplete-input.component";
12
- import * as i11 from "./forms/checkbox-input/checkbox-input.component";
13
- import * as i12 from "./scroll-container/scroll-container.component";
14
- import * as i13 from "./noop/noop.component";
15
- import * as i14 from "./switch-case/switch-case.component";
16
- import * as i15 from "./focus-container/focus-container.component";
17
- import * as i16 from "./vertical-focus-container/vertical-focus-container.component";
18
- import * as i17 from "./focusable.component";
19
- import * as i18 from "./cards/card-container/card-container.component";
20
- import * as i19 from "./tables/table/table.component";
21
- import * as i20 from "./tables/renderer/table-body/table-body.component";
22
- import * as i21 from "./tables/column/column-template/column-template.directive";
23
- import * as i22 from "./tables/renderer/default-cell-renderer/default-cell-renderer.component";
24
- import * as i23 from "./tables/renderer/table-cell/table-cell.component";
25
- import * as i24 from "./tables/renderer/selection-cell/selection-cell.component";
26
- import * as i25 from "./tables/renderer/select-header-cell/selection-header-cell.component";
27
- import * as i26 from "./tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component";
28
- import * as i27 from "./tables/renderer/table-header-cell/table-header-cell.component";
29
- import * as i28 from "./icon/icon.component";
30
- import * as i29 from "./section-header/section-header.component";
31
- import * as i30 from "./tables/renderer/table-action-column/table-action-column.component";
32
- import * as i31 from "./commands/group/tool-bar/tool-bar.component";
33
- import * as i32 from "./commands/command/command.component";
34
- import * as i33 from "./commands/group/popup-menu/popup-menu.component";
35
- import * as i34 from "./commands/command-face/command-face.component";
36
- import * as i35 from "./commands/group/popup-menu/more-menu.component";
37
- import * as i36 from "./commands/separator.component";
38
- import * as i37 from "./commands/flex.component";
39
- import * as i38 from "./commands/group/popup-menu/abstract-popup-menu.component";
40
- import * as i39 from "./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component";
41
- import * as i40 from "./tables/tree-table/tree-table-component";
42
- import * as i41 from "./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
43
- import * as i42 from "./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
44
- import * as i43 from "./busy-overlay/busy-overlay.component";
45
- import * as i44 from "./empty-state/empty-state.component";
46
- import * as i45 from "./tables/paginator/paginator.component";
47
- import * as i46 from "./tables/abstract-table.component";
48
- import * as i47 from "./cards/abstract-card-container.component";
49
- import * as i48 from "./labelled-value/labelled-value.component";
50
- import * as i49 from "./loading-container/loading-container.component";
51
- import * as i50 from "./text/markdown/markdown.component";
52
- import * as i51 from "./tables/renderer/table-custom-more-menu/table-custom-more-menu.component";
53
- import * as i52 from "./tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component";
54
- import * as i53 from "./forms/search-input/search-input.component";
55
- import * as i54 from "./tables/renderer/table-footer-row/table-footer-row.component";
56
- import * as i55 from "./file/file-download/file-download.component";
57
- import * as i56 from "./commands/button-renderer/button-renderer.component";
58
- import * as i57 from "./forms/sub-form-list/sub-form-list.component";
59
- import * as i58 from "./forms/sub-form-list/sub-form-row.directive";
60
- import * as i59 from "@angular/common";
61
- import * as i60 from "@angular/platform-browser/animations";
62
- import * as i61 from "@angular/forms";
63
- import * as i62 from "@angular/material/input";
64
- import * as i63 from "@angular/material/form-field";
65
- import * as i64 from "@angular/material/select";
66
- import * as i65 from "@angular/material/tabs";
67
- import * as i66 from "../directives/directives.module";
68
- import * as i67 from "@angular/material/icon";
69
- import * as i68 from "@angular/material/button";
70
- import * as i69 from "@angular/material/checkbox";
71
- import * as i70 from "@angular/material/table";
72
- import * as i71 from "@angular/cdk/portal";
73
- import * as i72 from "@angular/cdk/scrolling";
74
- import * as i73 from "@angular/material/tooltip";
75
- import * as i74 from "@angular/material/autocomplete";
76
- import * as i75 from "@angular/material/menu";
77
- import * as i76 from "@angular/material/divider";
78
- import * as i77 from "@angular/material/progress-spinner";
79
- import * as i78 from "@angular/material/progress-bar";
80
- import * as i79 from "ng-table-virtual-scroll";
81
- import * as i80 from "@angular/cdk/drag-drop";
10
+ import * as i9 from "./forms/select-input/select-overlay-origin.directive";
11
+ import * as i10 from "./forms/multiple-select-input/multiple-select-input.component";
12
+ import * as i11 from "./forms/autocomplete-input/autocomplete-input.component";
13
+ import * as i12 from "./forms/checkbox-input/checkbox-input.component";
14
+ import * as i13 from "./scroll-container/scroll-container.component";
15
+ import * as i14 from "./noop/noop.component";
16
+ import * as i15 from "./switch-case/switch-case.component";
17
+ import * as i16 from "./focus-container/focus-container.component";
18
+ import * as i17 from "./vertical-focus-container/vertical-focus-container.component";
19
+ import * as i18 from "./focusable.component";
20
+ import * as i19 from "./cards/card-container/card-container.component";
21
+ import * as i20 from "./tables/table/table.component";
22
+ import * as i21 from "./tables/renderer/table-body/table-body.component";
23
+ import * as i22 from "./tables/column/column-template/column-template.directive";
24
+ import * as i23 from "./tables/renderer/default-cell-renderer/default-cell-renderer.component";
25
+ import * as i24 from "./tables/renderer/table-cell/table-cell.component";
26
+ import * as i25 from "./tables/renderer/selection-cell/selection-cell.component";
27
+ import * as i26 from "./tables/renderer/select-header-cell/selection-header-cell.component";
28
+ import * as i27 from "./tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component";
29
+ import * as i28 from "./tables/renderer/table-header-cell/table-header-cell.component";
30
+ import * as i29 from "./icon/icon.component";
31
+ import * as i30 from "./section-header/section-header.component";
32
+ import * as i31 from "./tables/renderer/table-action-column/table-action-column.component";
33
+ import * as i32 from "./commands/group/tool-bar/tool-bar.component";
34
+ import * as i33 from "./commands/command/command.component";
35
+ import * as i34 from "./commands/group/popup-menu/popup-menu.component";
36
+ import * as i35 from "./commands/command-face/command-face.component";
37
+ import * as i36 from "./commands/group/popup-menu/more-menu.component";
38
+ import * as i37 from "./commands/separator.component";
39
+ import * as i38 from "./commands/flex.component";
40
+ import * as i39 from "./commands/group/popup-menu/abstract-popup-menu.component";
41
+ import * as i40 from "./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component";
42
+ import * as i41 from "./tables/tree-table/tree-table-component";
43
+ import * as i42 from "./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
44
+ import * as i43 from "./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
45
+ import * as i44 from "./busy-overlay/busy-overlay.component";
46
+ import * as i45 from "./empty-state/empty-state.component";
47
+ import * as i46 from "./tables/paginator/paginator.component";
48
+ import * as i47 from "./tables/abstract-table.component";
49
+ import * as i48 from "./cards/abstract-card-container.component";
50
+ import * as i49 from "./labelled-value/labelled-value.component";
51
+ import * as i50 from "./loading-container/loading-container.component";
52
+ import * as i51 from "./text/markdown/markdown.component";
53
+ import * as i52 from "./tables/renderer/table-custom-more-menu/table-custom-more-menu.component";
54
+ import * as i53 from "./tables/renderer/table-custom-more-menu/table-custom-more-menu-popup.component";
55
+ import * as i54 from "./forms/search-input/search-input.component";
56
+ import * as i55 from "./tables/renderer/table-footer-row/table-footer-row.component";
57
+ import * as i56 from "./file/file-download/file-download.component";
58
+ import * as i57 from "./commands/button-renderer/button-renderer.component";
59
+ import * as i58 from "./forms/sub-form-list/sub-form-list.component";
60
+ import * as i59 from "./forms/sub-form-list/sub-form-row.directive";
61
+ import * as i60 from "@angular/common";
62
+ import * as i61 from "@angular/platform-browser/animations";
63
+ import * as i62 from "@angular/forms";
64
+ import * as i63 from "@angular/material/input";
65
+ import * as i64 from "@angular/material/form-field";
66
+ import * as i65 from "@angular/material/select";
67
+ import * as i66 from "@angular/material/tabs";
68
+ import * as i67 from "../directives/directives.module";
69
+ import * as i68 from "@angular/material/icon";
70
+ import * as i69 from "@angular/material/button";
71
+ import * as i70 from "@angular/material/checkbox";
72
+ import * as i71 from "@angular/material/table";
73
+ import * as i72 from "@angular/cdk/portal";
74
+ import * as i73 from "@angular/cdk/scrolling";
75
+ import * as i74 from "@angular/material/tooltip";
76
+ import * as i75 from "@angular/material/autocomplete";
77
+ import * as i76 from "@angular/material/menu";
78
+ import * as i77 from "@angular/material/divider";
79
+ import * as i78 from "@angular/material/progress-spinner";
80
+ import * as i79 from "@angular/material/progress-bar";
81
+ import * as i80 from "ng-table-virtual-scroll";
82
+ import * as i81 from "@angular/cdk/drag-drop";
82
83
  export declare class ComponentsModule {
83
84
  static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
84
- static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractInputComponent, typeof i2.AbstractValueInputComponent, typeof i3.AbstractListInputComponent, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i8.SelectInputComponent, typeof i9.MultipleSelectInputComponent, typeof i10.AutocompleteInputComponent, typeof i11.CheckboxInputComponent, typeof i12.ScrollContainerComponent, typeof i13.NoopComponent, typeof i14.SwitchCaseComponent, typeof i14.SwitchCaseWhenDirective, typeof i14.SwitchCaseDefaultDirective, typeof i15.FocusContainerComponent, typeof i16.VerticalFocusContainerComponent, typeof i17.FocusableComponent, typeof i18.CardContainerComponent, typeof i19.TableComponent, typeof i20.TableRowAttributesDirective, typeof i21.ColumnTemplateDirective, typeof i22.DefaultCellRendererComponent, typeof i23.TableCellComponent, typeof i24.SelectionCellComponent, typeof i25.SelectionHeaderCellComponent, typeof i26.DefaultHeaderCellRendererComponent, typeof i27.TableHeaderCellComponent, typeof i28.IconComponent, typeof i29.SectionHeaderComponent, typeof i30.TableActionColumnComponent, typeof i31.ToolBarComponent, typeof i32.CommandComponent, typeof i33.PopupMenuComponent, typeof i34.CommandFaceComponent, typeof i35.MoreMenuComponent, typeof i36.SeparatorComponent, typeof i37.FlexComponent, typeof i38.AbstractPopupMenuComponent, typeof i39.PopupMenuRendererComponent, typeof i40.TreeTableComponent, typeof i41.TreeInheritanceIconComponent, typeof i42.TreeLabelCellRendererComponent, typeof i43.BusyOverlayComponent, typeof i44.EmptyStateComponent, typeof i45.PaginatorComponent, typeof i46.AbstractTableComponent, typeof i47.AbstractCardContainerComponent, typeof i48.LabelledValueComponent, typeof i49.LoadingContainerComponent, typeof i50.MarkdownComponent, typeof i20.TableBodyComponent, typeof i51.TableCustomMoreMenuComponent, typeof i52.TableCustomMoreMenuPopupComponent, typeof i53.SearchInputComponent, typeof i54.TableFooterRow, typeof i55.FileDownloadComponent, typeof i56.ButtonRendererComponent, typeof i57.SubFormListComponent, typeof i58.SubFormRowDirective, typeof i58.SubFormRowActionsDirective, typeof i58.SubFormListEmptyDirective, typeof i58.SubFormListFooterDirective, typeof i58.SubFormListHeaderDirective], [typeof i59.CommonModule, typeof i60.BrowserAnimationsModule, typeof i61.FormsModule, typeof i62.MatInputModule, typeof i63.MatFormFieldModule, typeof i64.MatSelectModule, typeof i65.MatTabsModule, typeof i66.DirectivesModule, typeof i67.MatIconModule, typeof i68.MatButtonModule, typeof i69.MatCheckboxModule, typeof i70.MatTableModule, typeof i71.PortalModule, typeof i72.CdkScrollableModule, typeof i73.MatTooltipModule, typeof i74.MatAutocompleteModule, typeof i75.MatMenuModule, typeof i76.MatDividerModule, typeof i77.MatProgressSpinnerModule, typeof i78.MatProgressBarModule, typeof i72.ScrollingModule, typeof i79.TableVirtualScrollModule, typeof i80.DragDropModule], [typeof i56.ButtonRendererComponent, typeof i55.FileDownloadComponent, typeof i54.TableFooterRow, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i11.CheckboxInputComponent, typeof i8.SelectInputComponent, typeof i9.MultipleSelectInputComponent, typeof i10.AutocompleteInputComponent, typeof i12.ScrollContainerComponent, typeof i13.NoopComponent, typeof i14.SwitchCaseComponent, typeof i14.SwitchCaseWhenDirective, typeof i14.SwitchCaseDefaultDirective, typeof i15.FocusContainerComponent, typeof i16.VerticalFocusContainerComponent, typeof i17.FocusableComponent, typeof i18.CardContainerComponent, typeof i19.TableComponent, typeof i21.ColumnTemplateDirective, typeof i28.IconComponent, typeof i29.SectionHeaderComponent, typeof i30.TableActionColumnComponent, typeof i31.ToolBarComponent, typeof i32.CommandComponent, typeof i33.PopupMenuComponent, typeof i34.CommandFaceComponent, typeof i35.MoreMenuComponent, typeof i36.SeparatorComponent, typeof i37.FlexComponent, typeof i40.TreeTableComponent, typeof i43.BusyOverlayComponent, typeof i44.EmptyStateComponent, typeof i45.PaginatorComponent, typeof i48.LabelledValueComponent, typeof i49.LoadingContainerComponent, typeof i50.MarkdownComponent, typeof i51.TableCustomMoreMenuComponent, typeof i52.TableCustomMoreMenuPopupComponent, typeof i53.SearchInputComponent, typeof i56.ButtonRendererComponent, typeof i57.SubFormListComponent, typeof i58.SubFormRowDirective, typeof i58.SubFormRowActionsDirective, typeof i58.SubFormListEmptyDirective, typeof i58.SubFormListFooterDirective, typeof i58.SubFormListHeaderDirective]>;
85
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.AbstractInputComponent, typeof i2.AbstractValueInputComponent, typeof i3.AbstractListInputComponent, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i8.SelectInputComponent, typeof i9.SelectOverlayOriginDirective, typeof i10.MultipleSelectInputComponent, typeof i11.AutocompleteInputComponent, typeof i12.CheckboxInputComponent, typeof i13.ScrollContainerComponent, typeof i14.NoopComponent, typeof i15.SwitchCaseComponent, typeof i15.SwitchCaseWhenDirective, typeof i15.SwitchCaseDefaultDirective, typeof i16.FocusContainerComponent, typeof i17.VerticalFocusContainerComponent, typeof i18.FocusableComponent, typeof i19.CardContainerComponent, typeof i20.TableComponent, typeof i21.TableRowAttributesDirective, typeof i22.ColumnTemplateDirective, typeof i23.DefaultCellRendererComponent, typeof i24.TableCellComponent, typeof i25.SelectionCellComponent, typeof i26.SelectionHeaderCellComponent, typeof i27.DefaultHeaderCellRendererComponent, typeof i28.TableHeaderCellComponent, typeof i29.IconComponent, typeof i30.SectionHeaderComponent, typeof i31.TableActionColumnComponent, typeof i32.ToolBarComponent, typeof i33.CommandComponent, typeof i34.PopupMenuComponent, typeof i35.CommandFaceComponent, typeof i36.MoreMenuComponent, typeof i37.SeparatorComponent, typeof i38.FlexComponent, typeof i39.AbstractPopupMenuComponent, typeof i40.PopupMenuRendererComponent, typeof i41.TreeTableComponent, typeof i42.TreeInheritanceIconComponent, typeof i43.TreeLabelCellRendererComponent, typeof i44.BusyOverlayComponent, typeof i45.EmptyStateComponent, typeof i46.PaginatorComponent, typeof i47.AbstractTableComponent, typeof i48.AbstractCardContainerComponent, typeof i49.LabelledValueComponent, typeof i50.LoadingContainerComponent, typeof i51.MarkdownComponent, typeof i21.TableBodyComponent, typeof i52.TableCustomMoreMenuComponent, typeof i53.TableCustomMoreMenuPopupComponent, typeof i54.SearchInputComponent, typeof i55.TableFooterRow, typeof i56.FileDownloadComponent, typeof i57.ButtonRendererComponent, typeof i58.SubFormListComponent, typeof i59.SubFormRowDirective, typeof i59.SubFormRowActionsDirective, typeof i59.SubFormListEmptyDirective, typeof i59.SubFormListFooterDirective, typeof i59.SubFormListHeaderDirective], [typeof i60.CommonModule, typeof i61.BrowserAnimationsModule, typeof i62.FormsModule, typeof i63.MatInputModule, typeof i64.MatFormFieldModule, typeof i65.MatSelectModule, typeof i66.MatTabsModule, typeof i67.DirectivesModule, typeof i68.MatIconModule, typeof i69.MatButtonModule, typeof i70.MatCheckboxModule, typeof i71.MatTableModule, typeof i72.PortalModule, typeof i73.CdkScrollableModule, typeof i74.MatTooltipModule, typeof i75.MatAutocompleteModule, typeof i76.MatMenuModule, typeof i77.MatDividerModule, typeof i78.MatProgressSpinnerModule, typeof i79.MatProgressBarModule, typeof i73.ScrollingModule, typeof i80.TableVirtualScrollModule, typeof i81.DragDropModule], [typeof i57.ButtonRendererComponent, typeof i56.FileDownloadComponent, typeof i55.TableFooterRow, typeof i4.NumberInputComponent, typeof i5.StringInputComponent, typeof i6.TextInputComponent, typeof i7.PasswordInputComponent, typeof i12.CheckboxInputComponent, typeof i8.SelectInputComponent, typeof i9.SelectOverlayOriginDirective, typeof i10.MultipleSelectInputComponent, typeof i11.AutocompleteInputComponent, typeof i13.ScrollContainerComponent, typeof i14.NoopComponent, typeof i15.SwitchCaseComponent, typeof i15.SwitchCaseWhenDirective, typeof i15.SwitchCaseDefaultDirective, typeof i16.FocusContainerComponent, typeof i17.VerticalFocusContainerComponent, typeof i18.FocusableComponent, typeof i19.CardContainerComponent, typeof i20.TableComponent, typeof i22.ColumnTemplateDirective, typeof i29.IconComponent, typeof i30.SectionHeaderComponent, typeof i31.TableActionColumnComponent, typeof i32.ToolBarComponent, typeof i33.CommandComponent, typeof i34.PopupMenuComponent, typeof i35.CommandFaceComponent, typeof i36.MoreMenuComponent, typeof i37.SeparatorComponent, typeof i38.FlexComponent, typeof i41.TreeTableComponent, typeof i44.BusyOverlayComponent, typeof i45.EmptyStateComponent, typeof i46.PaginatorComponent, typeof i49.LabelledValueComponent, typeof i50.LoadingContainerComponent, typeof i51.MarkdownComponent, typeof i52.TableCustomMoreMenuComponent, typeof i53.TableCustomMoreMenuPopupComponent, typeof i54.SearchInputComponent, typeof i57.ButtonRendererComponent, typeof i58.SubFormListComponent, typeof i59.SubFormRowDirective, typeof i59.SubFormRowActionsDirective, typeof i59.SubFormListEmptyDirective, typeof i59.SubFormListFooterDirective, typeof i59.SubFormListHeaderDirective]>;
85
86
  static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
86
87
  }
@@ -40,6 +40,7 @@ export * from "./forms/number-input/number-input.component";
40
40
  export * from "./forms/password-input/password-input.component";
41
41
  export * from "./forms/search-input/search-input.component";
42
42
  export * from "./forms/select-input/select-input.component";
43
+ export * from "./forms/select-input/select-overlay-origin.directive";
43
44
  export * from "./forms/string-input/string-input.component";
44
45
  export * from "./forms/sub-form-list/sub-form-list-column";
45
46
  export * from "./forms/sub-form-list/sub-form-list-columns";
@@ -38,6 +38,13 @@ export declare class AbstractInputComponent<T> extends DisposableComponent {
38
38
  private readonly _enabled$;
39
39
  set enabled$(condition$: ValueModel<boolean>);
40
40
  get enabled$(): ValueModel<boolean>;
41
+ /**
42
+ * The inverse of {@link enabled$}, for a caller whose model already reads as a reason to disable -
43
+ * "no groups to choose from", say. Hand-inverting such a model at the call site reads correctly
44
+ * and behaves backwards, and nothing in the template says which way it runs; bind it as it is.
45
+ * A nil model restores the default (the form value's own enabled state).
46
+ */
47
+ set disable$(condition$: ValueModel<boolean> | null | undefined);
41
48
  focusCommand: Command<any>;
42
49
  blurCommand: Command<any>;
43
50
  enterCommand: Command<any>;
@@ -112,7 +119,7 @@ export declare class AbstractInputComponent<T> extends DisposableComponent {
112
119
  onValueEdited(callback: (is: T, was: T) => void): Disposable;
113
120
  protected hackyGetI18n(key: keyof FormField): string;
114
121
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractInputComponent<any>, never>;
115
- static ɵcmp: i0.ɵɵComponentDeclaration<AbstractInputComponent<any>, "ng-component", never, { "i18n$": { "alias": "i18n$"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "_label": { "alias": "label"; "required": false; }; "userFloatLabel": { "alias": "floatLabel"; "required": false; }; "_hint": { "alias": "hint"; "required": false; }; "_placeholder": { "alias": "placeholder"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "enabled$": { "alias": "enabled$"; "required": false; }; "focusCommand": { "alias": "command.focus"; "required": false; }; "blurCommand": { "alias": "command.blur"; "required": false; }; "enterCommand": { "alias": "command.enter"; "required": false; }; "escapeCommand": { "alias": "command.escape"; "required": false; }; "clickCommand": { "alias": "command.click"; "required": false; }; }, { "focus": "focus"; "blur": "blur"; "enterKey": "enterKey"; "escapeKey": "escapeKey"; }, never, never, false, never>;
122
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbstractInputComponent<any>, "ng-component", never, { "i18n$": { "alias": "i18n$"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "_label": { "alias": "label"; "required": false; }; "userFloatLabel": { "alias": "floatLabel"; "required": false; }; "_hint": { "alias": "hint"; "required": false; }; "_placeholder": { "alias": "placeholder"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "enabled$": { "alias": "enabled$"; "required": false; }; "disable$": { "alias": "disable$"; "required": false; }; "focusCommand": { "alias": "command.focus"; "required": false; }; "blurCommand": { "alias": "command.blur"; "required": false; }; "enterCommand": { "alias": "command.enter"; "required": false; }; "escapeCommand": { "alias": "command.escape"; "required": false; }; "clickCommand": { "alias": "command.click"; "required": false; }; }, { "focus": "focus"; "blur": "blur"; "enterKey": "enterKey"; "escapeKey": "escapeKey"; }, never, never, false, never>;
116
123
  }
117
124
  export declare namespace AbstractInputComponent {
118
125
  /** 'hint' is the plain, non-validation hint — it has no severity of its own. */
@@ -1,5 +1,5 @@
1
- import { AfterViewChecked, DoCheck, OnInit, TemplateRef, TrackByFunction } from '@angular/core';
2
- import { BooleanValueModelChain, ListModel, ListModelChain, MutableValueModel, Predicate } from '@coolon/pectin';
1
+ import { AfterContentInit, AfterViewChecked, DoCheck, OnInit, TemplateRef, TrackByFunction } from '@angular/core';
2
+ import { BooleanValueModelChain, ListModel, ListModelChain, MutableValueModel, Predicate, ValueModel } from '@coolon/pectin';
3
3
  import { AbstractValueInputComponent } from '../abstract-value-input.component';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -14,17 +14,47 @@ import * as i0 from "@angular/core";
14
14
  * <aup-select-input [value$]="myModel" [options]="myOptions" [searchable]="true"
15
15
  * searchPlaceholder="Find a hero…" noResultsText="No heros match"></aup-select-input>
16
16
  * A search box is rendered at the top of the dropdown panel and filters the options client side on
17
- * optionLabelFormat. Override {@link filterFactory} for different matching, and bind
18
- * {@link searchText$} to observe or pre-seed the text (it is cleared whenever the panel closes).
19
- * The nil option is never filtered - it is a clear-the-selection affordance, not a data option.
17
+ * the rows {@link optionSearchText} returns - by default the single row optionLabelFormat produces.
18
+ * An option that renders more than optionLabelFormat through #optionTemplate must return every row
19
+ * it shows, or the user can read text the search cannot find:
20
+ *
21
+ * <aup-select-input ... [searchable]="true" [optionSearchText]="hero => [hero.name, hero.alias]">
22
+ * <ng-template #optionTemplate let-hero>{{hero.name}}<br>{{hero.alias}}</ng-template>
23
+ * </aup-select-input>
24
+ *
25
+ * Rows are matched one at a time, so a term cannot straddle two of them. In development mode a
26
+ * searchable select with an #optionTemplate and neither optionSearchText nor filterFactory warns.
27
+ * Override {@link filterFactory} only for matching that is genuinely different - fuzzy, tokenised,
28
+ * remote. Bind {@link searchText$} to observe or pre-seed the text (it is cleared whenever the panel
29
+ * closes). The nil option is never filtered - it is a clear-the-selection affordance, not a data
30
+ * option.
31
+ *
32
+ * Appearance:
33
+ * <aup-select-input appearance="button" placeholder="All heros" [allowNil]="true" ...></aup-select-input>
34
+ * `field` (the default) is a mat-form-field: label, hint, error, validation icon, notched outline.
35
+ * `button` drops the form field for a compact bordered trigger suited to a toolbar or filter bar - a
36
+ * selector rather than a form field, so label, hint and error do not exist there (binding label or
37
+ * hint warns in development mode) and the panel sizes to its longest option. The option list, search
38
+ * box, nil row, templates and footer slot are the same in both. See {@link appearance}.
20
39
  */
21
- export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit, DoCheck, AfterViewChecked {
40
+ export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit, AfterContentInit, DoCheck, AfterViewChecked {
22
41
  /** Keys the search box hands back to MatSelect's key manager instead of consuming itself. */
23
42
  private static readonly NAVIGATION_KEYS;
24
43
  accessor options$: ListModel<T>;
25
44
  accessor options: readonly T[];
26
45
  optionLabel: keyof T;
27
- allowNil: boolean;
46
+ accessor allowNil$: ValueModel<boolean>;
47
+ accessor allowNil: boolean;
48
+ /** `field` wraps the select in a mat-form-field; `button` renders a compact bordered trigger with no form field. */
49
+ appearance: SelectInputComponent.Appearance;
50
+ get buttonAppearance(): boolean;
51
+ private readonly matSelectConfig;
52
+ /**
53
+ * What the field appearance binds to mat-select's panelWidth: whatever the app configured, else
54
+ * Material's own default - so no existing consumer moves. (Binding undefined would NOT be a
55
+ * no-op: mat-select reads it as "size to content".) The button appearance binds null directly.
56
+ */
57
+ get fieldPanelWidth(): string | number | null;
28
58
  selectedOptionTemplateRef: TemplateRef<any>;
29
59
  optionTemplateRef: TemplateRef<any>;
30
60
  nilOptionTemplateRef: TemplateRef<any>;
@@ -37,11 +67,21 @@ export declare class SelectInputComponent<T = any> extends AbstractValueInputCom
37
67
  noResultsText: string;
38
68
  /** Bindable so a host can pre-seed or observe the search text. Cleared when the panel closes. */
39
69
  accessor searchText$: MutableValueModel<string>;
70
+ private readonly defaultOptionSearchText;
71
+ /**
72
+ * The text the default filter searches, one entry per row the option renders. Defaults to the
73
+ * single row optionLabelFormat produces. Return every row an #optionTemplate shows - a second line
74
+ * the search cannot see is the bug this input exists to prevent. Nil entries are skipped and
75
+ * non-strings are matched by their text.
76
+ */
77
+ optionSearchText: (option: T) => SelectInputComponent.SearchText | readonly SelectInputComponent.SearchText[];
40
78
  /**
41
79
  * NOTE: deliberately NOT the AutocompleteInputComponent default - there an empty filter matches
42
80
  * nothing, here it must match everything or the panel opens blank. It also guards a nil or
43
- * non-string optionLabelFormat result, which the autocomplete version does not.
81
+ * non-string row, which the autocomplete version does not.
44
82
  */
83
+ private readonly defaultFilterFactory;
84
+ /** Escape hatch for matching that is genuinely different; the default consults {@link optionSearchText}. */
45
85
  filterFactory: (filterText: string) => Predicate<T>;
46
86
  readonly isNil$: BooleanValueModelChain;
47
87
  private readonly id$;
@@ -67,6 +107,13 @@ export declare class SelectInputComponent<T = any> extends AbstractValueInputCom
67
107
  readonly trackByIdentity: TrackByFunction<T>;
68
108
  constructor();
69
109
  select(item: T): void;
110
+ /** Lower-cased, nil-free rows for one option. Matched row by row so a term cannot straddle two. */
111
+ private searchRows;
112
+ /**
113
+ * The trap this guards is silent in production: the option renders text the search box cannot
114
+ * reach, and the user's search for what they can plainly see finds nothing.
115
+ */
116
+ ngAfterContentInit(): void;
70
117
  /**
71
118
  * True when the option is only in {@link panelOptions$} to keep MatSelect's selection model
72
119
  * populated. The template renders it disabled and display:none.
@@ -100,5 +147,11 @@ export declare class SelectInputComponent<T = any> extends AbstractValueInputCom
100
147
  private isSelectedOption;
101
148
  ngOnInit(): void;
102
149
  static ɵfac: i0.ɵɵFactoryDeclaration<SelectInputComponent<any>, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectInputComponent<any>, "aup-select-input", never, { "options$": { "alias": "options$"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "allowNil": { "alias": "allowNil"; "required": false; }; "optionLabelFormat": { "alias": "optionLabelFormat"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "searchText$": { "alias": "searchText$"; "required": false; }; "filterFactory": { "alias": "filterFactory"; "required": false; }; }, {}, ["selectedOptionTemplateRef", "optionTemplateRef", "nilOptionTemplateRef"], ["[select-option-footer]"], false, never>;
150
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectInputComponent<any>, "aup-select-input", never, { "options$": { "alias": "options$"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "allowNil$": { "alias": "allowNil$"; "required": false; }; "allowNil": { "alias": "allowNil"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "optionLabelFormat": { "alias": "optionLabelFormat"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "noResultsText": { "alias": "noResultsText"; "required": false; }; "searchText$": { "alias": "searchText$"; "required": false; }; "optionSearchText": { "alias": "optionSearchText"; "required": false; }; "filterFactory": { "alias": "filterFactory"; "required": false; }; }, {}, ["selectedOptionTemplateRef", "optionTemplateRef", "nilOptionTemplateRef"], ["[select-option-footer]"], false, never>;
151
+ }
152
+ export declare namespace SelectInputComponent {
153
+ /** One row of an option's searchable text. Nil rows are skipped; numbers are matched by their text. */
154
+ type SearchText = string | number | null | undefined;
155
+ /** See the class docs: `field` is a mat-form-field, `button` a compact bordered trigger without one. */
156
+ type Appearance = 'field' | 'button';
104
157
  }
@@ -0,0 +1,25 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Stands in for the mat-form-field a bare mat-select would otherwise look for, so its dropdown
5
+ * anchors to THIS element's border box. Without a form field, mat-select falls back to its inner
6
+ * `.mat-mdc-select-trigger` div as the overlay origin, and that div sits inside whatever padding and
7
+ * border the box around it carries - the panel then opens that many pixels in from the box's edge,
8
+ * and no CSS on an element we own can close a gap that IS the padding.
9
+ *
10
+ * mat-select reads exactly three members off MAT_FORM_FIELD in Material 16.2:
11
+ * getConnectedOverlayOrigin(), getLabelId() and color. Check `_parentFormField` in
12
+ * @angular/material's select.mjs on every Material bump: a fourth member would surface at runtime as
13
+ * "is not a function" on open, not as a type error, because the token is typed MatFormField and this
14
+ * is a partial.
15
+ */
16
+ export declare class SelectOverlayOriginDirective {
17
+ readonly elementRef: ElementRef<HTMLElement>;
18
+ /** Gives the panel its `mat-primary` theme class, as a form field would. */
19
+ readonly color = "primary";
20
+ constructor(elementRef: ElementRef<HTMLElement>);
21
+ getConnectedOverlayOrigin(): ElementRef<HTMLElement>;
22
+ getLabelId(): string | null;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectOverlayOriginDirective, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SelectOverlayOriginDirective, "[aupSelectOverlayOrigin]", never, {}, {}, never, never, false, never>;
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.279",
3
+ "version": "16.1.0-alpha.281",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",