@coolon/angular-ui-powerups 16.1.0-alpha.276 → 16.1.0-alpha.277

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.
@@ -81,6 +81,6 @@ import * as i79 from "ng-table-virtual-scroll";
81
81
  import * as i80 from "@angular/cdk/drag-drop";
82
82
  export declare class ComponentsModule {
83
83
  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 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]>;
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
85
  static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
86
86
  }
@@ -1,9 +1,9 @@
1
1
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
- import { AfterContentInit } from '@angular/core';
2
+ import { AfterContentInit, QueryList } from '@angular/core';
3
3
  import { Command, CommandFace, SubFormList, ValueModel } from '@coolon/pectin';
4
4
  import { Enum } from 'typescript-string-enums';
5
5
  import { DisposableComponent } from '../../disposable-component';
6
- import { SubFormListEmptyDirective, SubFormRowActionsDirective, SubFormRowContext, SubFormRowDirective } from './sub-form-row.directive';
6
+ import { SubFormListEmptyDirective, SubFormListFooterDirective, SubFormListHeaderDirective, SubFormRowActionsDirective, SubFormRowContext, SubFormRowDirective } from './sub-form-row.directive';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
9
9
  * Renders a pectin {@link SubFormList} as a stack of rows, each carrying its own remove and — when
@@ -80,6 +80,10 @@ export declare class SubFormListComponent<T extends object = any, B extends SubF
80
80
  rowTemplate: SubFormRowDirective;
81
81
  actionsTemplate: SubFormRowActionsDirective;
82
82
  emptyTemplate: SubFormListEmptyDirective;
83
+ /** Single, unlike the footer: a list has one set of columns, so it has one row that names them. */
84
+ headerTemplate: SubFormListHeaderDirective;
85
+ /** One row per template, in template order — see the directive for why it repeats. */
86
+ footerTemplates: QueryList<SubFormListFooterDirective>;
83
87
  /** The array `rows` was last built from — see the comment there. */
84
88
  private renderedSource;
85
89
  private renderedRows;
@@ -129,6 +133,11 @@ export declare class SubFormListComponent<T extends object = any, B extends SubF
129
133
  */
130
134
  get defaultActionsVisible(): boolean;
131
135
  get customActionsVisible(): boolean;
136
+ /**
137
+ * Only under `subgrid`. Every other layout lays a row out within itself, so there are no shared
138
+ * tracks for a header to sit above and its cells would line up with nothing.
139
+ */
140
+ get headerVisible(): boolean;
132
141
  /** Whether anything trails the content — drives the content cell's trailing spacing. */
133
142
  get hasActions(): boolean;
134
143
  /**
@@ -159,9 +168,10 @@ export declare class SubFormListComponent<T extends object = any, B extends SubF
159
168
  * layout the caller asked `fill` to change.
160
169
  */
161
170
  private warnAboutIgnoredSubgridInputs;
171
+ private warnAboutIgnoredHeader;
162
172
  private warnAboutUnsupportedReordering;
163
173
  static ɵfac: i0.ɵɵFactoryDeclaration<SubFormListComponent<any, any>, never>;
164
- static ɵcmp: i0.ɵɵComponentDeclaration<SubFormListComponent<any, any>, "aup-sub-form-list", never, { "list": { "alias": "list"; "required": false; }; "reorder": { "alias": "reorder"; "required": false; }; "removable$": { "alias": "removable$"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeFace": { "alias": "removeFace"; "required": false; }; "moveUpFace": { "alias": "moveUpFace"; "required": false; }; "moveDownFace": { "alias": "moveDownFace"; "required": false; }; "dragHandleIcon": { "alias": "dragHandleIcon"; "required": false; }; "addCommand": { "alias": "addCommand"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "rowLayout": { "alias": "rowLayout"; "required": false; }; }, {}, ["rowTemplate", "actionsTemplate", "emptyTemplate"], never, false, never>;
174
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubFormListComponent<any, any>, "aup-sub-form-list", never, { "list": { "alias": "list"; "required": false; }; "reorder": { "alias": "reorder"; "required": false; }; "removable$": { "alias": "removable$"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "removeFace": { "alias": "removeFace"; "required": false; }; "moveUpFace": { "alias": "moveUpFace"; "required": false; }; "moveDownFace": { "alias": "moveDownFace"; "required": false; }; "dragHandleIcon": { "alias": "dragHandleIcon"; "required": false; }; "addCommand": { "alias": "addCommand"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "rowLayout": { "alias": "rowLayout"; "required": false; }; }, {}, ["rowTemplate", "actionsTemplate", "emptyTemplate", "headerTemplate", "footerTemplates"], never, false, never>;
165
175
  }
166
176
  export declare namespace SubFormListComponent {
167
177
  const Reorder: {
@@ -64,3 +64,73 @@ export declare class SubFormListEmptyDirective {
64
64
  static ɵfac: i0.ɵɵFactoryDeclaration<SubFormListEmptyDirective, never>;
65
65
  static ɵdir: i0.ɵɵDirectiveDeclaration<SubFormListEmptyDirective, "[aupSubFormListEmpty]", never, {}, {}, never, never, false, never>;
66
66
  }
67
+ /**
68
+ * The row that names the list's columns, drawn above the items.
69
+ *
70
+ * Rendered inside the rows container for the same reason the footer is: only a child of the grid
71
+ * can adopt its tracks, so the titles size against — and line up with — the very cells they name.
72
+ * A caller drawing this above the list instead would have to restate
73
+ * `--aup-sub-form-list-columns`, and would still miss the handle and action tracks the list sizes
74
+ * from its own content.
75
+ *
76
+ * Single, unlike the footer: a list has one set of columns, so it has one row that names them.
77
+ *
78
+ * `rowLayout="subgrid"` only — every other layout lays each row out within itself, so there are no
79
+ * shared columns for a header to title and its cells would align with nothing. Supplying one under
80
+ * another layout is ignored, with a warning.
81
+ *
82
+ * Hidden from assistive tech, and not a listitem: it labels the columns rather than standing for an
83
+ * item, and a screen reader walking the list should not have to step over it. Give the cells inside
84
+ * it the same order the row template gives its own.
85
+ *
86
+ * @example
87
+ * ```html
88
+ * <aup-sub-form-list [list]="levels" rowLayout="subgrid">
89
+ * <ng-template aupSubFormListHeader>
90
+ * <span>Priority</span>
91
+ * <span>Colour</span>
92
+ * <span>Description</span>
93
+ * </ng-template>
94
+ * <ng-template aupSubFormRow let-row>…</ng-template>
95
+ * </aup-sub-form-list>
96
+ * ```
97
+ */
98
+ export declare class SubFormListHeaderDirective {
99
+ readonly templateRef: TemplateRef<void>;
100
+ constructor(templateRef: TemplateRef<void>);
101
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubFormListHeaderDirective, never>;
102
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SubFormListHeaderDirective, "[aupSubFormListHeader]", never, {}, {}, never, never, false, never>;
103
+ }
104
+ /**
105
+ * A trailing row that belongs to the list rather than to the data — the states a list of items
106
+ * cannot express, read in the same columns as the items above them.
107
+ *
108
+ * Rendered inside the rows container, so under `rowLayout="subgrid"` its top-level elements land in
109
+ * the very tracks the row cells do. That is the whole point of it: aligning such a thing from
110
+ * *outside* the list means restating `--aup-sub-form-list-columns` in the caller's stylesheet, which
111
+ * then drifts the moment the list's columns change.
112
+ *
113
+ * Not a row of the list: it carries no sub-form, no reordering and no remove, and the list's own
114
+ * `addCommand` footer still sits below it.
115
+ *
116
+ * Repeatable — supply one per trailing state, and each renders as its own row, in template order.
117
+ * That is what lets several of them line up with each other as well as with the rows: two states
118
+ * crammed side by side into one footer row could not both sit under the same column.
119
+ *
120
+ * @example
121
+ * ```html
122
+ * <aup-sub-form-list [list]="levels" rowLayout="subgrid">
123
+ * <ng-template aupSubFormRow let-row>…</ng-template>
124
+ * <ng-template aupSubFormListFooter>
125
+ * <span>When nothing matches</span>
126
+ * <aup-command [command]="editFallbackCommand"></aup-command>
127
+ * </ng-template>
128
+ * </aup-sub-form-list>
129
+ * ```
130
+ */
131
+ export declare class SubFormListFooterDirective {
132
+ readonly templateRef: TemplateRef<void>;
133
+ constructor(templateRef: TemplateRef<void>);
134
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubFormListFooterDirective, never>;
135
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SubFormListFooterDirective, "[aupSubFormListFooter]", never, {}, {}, never, never, false, never>;
136
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "16.1.0-alpha.276",
3
+ "version": "16.1.0-alpha.277",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.2.9",
6
6
  "@angular/common": "^16.2.9",