@coolon/angular-ui-powerups 16.1.0-alpha.266 → 16.1.0-alpha.268
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/esm2022/lib/components/components.module.mjs +27 -5
- package/esm2022/lib/components/exports.mjs +3 -1
- package/esm2022/lib/components/forms/sub-form-list/sub-form-list.component.mjs +260 -0
- package/esm2022/lib/components/forms/sub-form-list/sub-form-row.directive.mjs +63 -0
- package/esm2022/lib/components/tables/abstract-table-model.mjs +8 -4
- package/esm2022/lib/components/tables/column/column-model.mjs +13 -1
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +5 -1
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +5 -1
- package/esm2022/lib/components/tables/column/property-column-model.mjs +5 -1
- package/esm2022/lib/components/tables/filter/enable-cell-text-search.decorator.mjs +8 -2
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +8 -6
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -17
- package/fesm2022/coolon-angular-ui-powerups.mjs +384 -35
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/components.module.d.ts +25 -22
- package/lib/components/exports.d.ts +2 -0
- package/lib/components/forms/sub-form-list/sub-form-list.component.d.ts +127 -0
- package/lib/components/forms/sub-form-list/sub-form-row.directive.d.ts +61 -0
- package/lib/components/tables/abstract-table-model.d.ts +1 -1
- package/lib/components/tables/column/column-model.d.ts +7 -0
- package/lib/components/tables/filter/enable-cell-text-search.decorator.d.ts +16 -1
- package/lib/components/tables/filter/text-search-predicate.d.ts +16 -10
- package/package.json +3 -3
|
@@ -14,6 +14,8 @@ import { MatSelectModule, MatSelect } from '@angular/material/select';
|
|
|
14
14
|
import * as i3$2 from '@angular/material/tabs';
|
|
15
15
|
import { MatTabsModule, MAT_TABS_CONFIG } from '@angular/material/tabs';
|
|
16
16
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
17
|
+
import * as i2$7 from '@angular/cdk/drag-drop';
|
|
18
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
17
19
|
import * as i1$4 from '@angular/cdk/portal';
|
|
18
20
|
import { ComponentPortal, TemplatePortal, PortalModule } from '@angular/cdk/portal';
|
|
19
21
|
import * as i1$2 from '@angular/cdk/scrolling';
|
|
@@ -30,11 +32,11 @@ import * as i2$3 from '@angular/material/icon';
|
|
|
30
32
|
import { MatIconModule } from '@angular/material/icon';
|
|
31
33
|
import * as i2$1 from '@angular/material/menu';
|
|
32
34
|
import { MatMenu, MatMenuTrigger, MatMenuModule } from '@angular/material/menu';
|
|
33
|
-
import * as i2$
|
|
35
|
+
import * as i2$8 from '@angular/material/progress-bar';
|
|
34
36
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
35
37
|
import * as i2$2 from '@angular/material/progress-spinner';
|
|
36
38
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
37
|
-
import * as i2$
|
|
39
|
+
import * as i2$9 from '@angular/material/table';
|
|
38
40
|
import { MatTableModule } from '@angular/material/table';
|
|
39
41
|
import * as i3 from '@angular/material/tooltip';
|
|
40
42
|
import { MatTooltip, MatTooltipModule } from '@angular/material/tooltip';
|
|
@@ -3349,6 +3351,315 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
3349
3351
|
type: Input
|
|
3350
3352
|
}] } });
|
|
3351
3353
|
|
|
3354
|
+
/* eslint-disable @typescript-eslint/no-explicit-any -- the row type is the caller's ItemSubForm, which these directives cannot name */
|
|
3355
|
+
/**
|
|
3356
|
+
* Marks the template rendered as the body of each sub-form row.
|
|
3357
|
+
*
|
|
3358
|
+
* @example
|
|
3359
|
+
* ```html
|
|
3360
|
+
* <aup-sub-form-list [list]="levels">
|
|
3361
|
+
* <ng-template aupSubFormRow let-row>
|
|
3362
|
+
* <aup-string-input label="Name" [dense]="true" [value$]="row.name$"></aup-string-input>
|
|
3363
|
+
* </ng-template>
|
|
3364
|
+
* </aup-sub-form-list>
|
|
3365
|
+
* ```
|
|
3366
|
+
*/
|
|
3367
|
+
class SubFormRowDirective {
|
|
3368
|
+
templateRef;
|
|
3369
|
+
constructor(templateRef) {
|
|
3370
|
+
this.templateRef = templateRef;
|
|
3371
|
+
}
|
|
3372
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormRowDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3373
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: SubFormRowDirective, selector: "[aupSubFormRow]", ngImport: i0 });
|
|
3374
|
+
}
|
|
3375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormRowDirective, decorators: [{
|
|
3376
|
+
type: Directive,
|
|
3377
|
+
args: [{ selector: '[aupSubFormRow]' }]
|
|
3378
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
3379
|
+
/**
|
|
3380
|
+
* Replaces the whole per-row action cluster (move up / move down / remove).
|
|
3381
|
+
*
|
|
3382
|
+
* Reach for this only when the default cluster's *composition* is wrong — an extra per-row command,
|
|
3383
|
+
* or a menu instead of buttons. To change how the standard three look, bind `removeFace`,
|
|
3384
|
+
* `moveUpFace` and `moveDownFace` instead and keep the layout, gating and drag interop.
|
|
3385
|
+
*
|
|
3386
|
+
* The commands are on the row sub-form itself (`removeItemCommand`, `moveUpCommand`,
|
|
3387
|
+
* `moveDownCommand`), so the context is the same one the row template gets.
|
|
3388
|
+
*/
|
|
3389
|
+
class SubFormRowActionsDirective {
|
|
3390
|
+
templateRef;
|
|
3391
|
+
constructor(templateRef) {
|
|
3392
|
+
this.templateRef = templateRef;
|
|
3393
|
+
}
|
|
3394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormRowActionsDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3395
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: SubFormRowActionsDirective, selector: "[aupSubFormRowActions]", ngImport: i0 });
|
|
3396
|
+
}
|
|
3397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormRowActionsDirective, decorators: [{
|
|
3398
|
+
type: Directive,
|
|
3399
|
+
args: [{ selector: '[aupSubFormRowActions]' }]
|
|
3400
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
3401
|
+
/** Replaces the default empty state, shown while the list has no rows. */
|
|
3402
|
+
class SubFormListEmptyDirective {
|
|
3403
|
+
templateRef;
|
|
3404
|
+
constructor(templateRef) {
|
|
3405
|
+
this.templateRef = templateRef;
|
|
3406
|
+
}
|
|
3407
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormListEmptyDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3408
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.9", type: SubFormListEmptyDirective, selector: "[aupSubFormListEmpty]", ngImport: i0 });
|
|
3409
|
+
}
|
|
3410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormListEmptyDirective, decorators: [{
|
|
3411
|
+
type: Directive,
|
|
3412
|
+
args: [{ selector: '[aupSubFormListEmpty]' }]
|
|
3413
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
|
|
3414
|
+
|
|
3415
|
+
/**
|
|
3416
|
+
* Renders a pectin {@link SubFormList} as a stack of rows, each carrying its own remove and — when
|
|
3417
|
+
* the list is user-ordered — reordering affordances.
|
|
3418
|
+
*
|
|
3419
|
+
* The list already owns the behaviour: one sub-form per array element, per-row `removeItemCommand`
|
|
3420
|
+
* / `moveUpCommand` / `moveDownCommand` gated at the ends, and `move(subForm, toIndex)`. What this
|
|
3421
|
+
* component removes is the boilerplate that was otherwise copied into every consumer — the
|
|
3422
|
+
* `*ngFor` over `subForms$.value`, three hand-wired `aup-command`s per row with hand-held
|
|
3423
|
+
* {@link CommandFace} constants, and the empty state.
|
|
3424
|
+
*
|
|
3425
|
+
* @example
|
|
3426
|
+
* ```html
|
|
3427
|
+
* <aup-sub-form-list [list]="levels" [addCommand]="addLevelCommand" emptyText="No levels">
|
|
3428
|
+
* <ng-template aupSubFormRow let-row>
|
|
3429
|
+
* <aup-string-input label="Name" [dense]="true" [value$]="row.name$"></aup-string-input>
|
|
3430
|
+
* </ng-template>
|
|
3431
|
+
* </aup-sub-form-list>
|
|
3432
|
+
* ```
|
|
3433
|
+
*
|
|
3434
|
+
* Bind `list` once. Re-binding it after init leaves the change-detection wiring pointed at the
|
|
3435
|
+
* previous list, which is not a scenario a form has — the list is built in the component's
|
|
3436
|
+
* constructor and lives as long as the form does.
|
|
3437
|
+
*/
|
|
3438
|
+
class SubFormListComponent extends DisposableComponent {
|
|
3439
|
+
list;
|
|
3440
|
+
/**
|
|
3441
|
+
* Which reordering affordances to offer. `AUTO` — the default — resolves to {@link Reorder.BOTH}
|
|
3442
|
+
* for a user-ordered list and {@link Reorder.NONE} otherwise.
|
|
3443
|
+
*
|
|
3444
|
+
* Every mode is additionally gated on `list.reorderable`: asking for drag or buttons on a list
|
|
3445
|
+
* whose order is *derived* (`orderBy`) is refused with a console warning, because the next load
|
|
3446
|
+
* would re-derive the order and silently undo the move.
|
|
3447
|
+
*/
|
|
3448
|
+
reorder = SubFormListComponent.Reorder.AUTO;
|
|
3449
|
+
#removable$_accessor_storage = proxify((ValueModel));
|
|
3450
|
+
get removable$() { return this.#removable$_accessor_storage; }
|
|
3451
|
+
set removable$(value) { this.#removable$_accessor_storage = value; }
|
|
3452
|
+
#removable_accessor_storage = true;
|
|
3453
|
+
/** Whether rows can be removed — the seam for permission-gating removal via `removable$`. */
|
|
3454
|
+
get removable() { return this.#removable_accessor_storage; }
|
|
3455
|
+
set removable(value) { this.#removable_accessor_storage = value; }
|
|
3456
|
+
/**
|
|
3457
|
+
* Faces for the default action cluster. They ship icon-only with a tooltip, which is what makes
|
|
3458
|
+
* `aup-command` render them as `mat-icon-button`s; supply text as well to get labelled buttons.
|
|
3459
|
+
* The defaults are English — aup has no i18n, so a localised app overrides them here.
|
|
3460
|
+
*/
|
|
3461
|
+
removeFace = SubFormListComponent.DEFAULT_REMOVE_FACE;
|
|
3462
|
+
moveUpFace = SubFormListComponent.DEFAULT_MOVE_UP_FACE;
|
|
3463
|
+
moveDownFace = SubFormListComponent.DEFAULT_MOVE_DOWN_FACE;
|
|
3464
|
+
dragHandleIcon = 'mat:drag_indicator';
|
|
3465
|
+
#addCommand_accessor_storage = proxify(Command);
|
|
3466
|
+
/** Rendered in the footer below the rows. Optional — callers who site their own add button omit it. */
|
|
3467
|
+
get addCommand() { return this.#addCommand_accessor_storage; }
|
|
3468
|
+
set addCommand(value) { this.#addCommand_accessor_storage = value; }
|
|
3469
|
+
/** Shown when the list is empty. Omit both this and an `aupSubFormListEmpty` template for no empty state. */
|
|
3470
|
+
emptyText;
|
|
3471
|
+
dense = false;
|
|
3472
|
+
/**
|
|
3473
|
+
* Gives the row's content the remaining width instead of sizing it to its fields. Off by
|
|
3474
|
+
* default, so a row of dense inputs hugs them rather than stranding the action cluster at the
|
|
3475
|
+
* far edge of the list; turn it on for a row whose single field should span the width.
|
|
3476
|
+
*/
|
|
3477
|
+
fill = false;
|
|
3478
|
+
rowTemplate;
|
|
3479
|
+
actionsTemplate;
|
|
3480
|
+
emptyTemplate;
|
|
3481
|
+
/** The array `rows` was last built from — see the comment there. */
|
|
3482
|
+
renderedSource;
|
|
3483
|
+
renderedRows = [];
|
|
3484
|
+
constructor() {
|
|
3485
|
+
super();
|
|
3486
|
+
this.onInit(() => {
|
|
3487
|
+
assert.notNil(this.list, 'aup-sub-form-list [list]');
|
|
3488
|
+
// The list's own models are the only thing that moves the view, so this is what lets the
|
|
3489
|
+
// component work inside a detached/OnPush parent (aup-table and friends).
|
|
3490
|
+
this.viewStateDependsOn(this.list.subForms$, this.list.empty$, this.list.listErrors$);
|
|
3491
|
+
this.warnAboutUnsupportedReordering();
|
|
3492
|
+
});
|
|
3493
|
+
}
|
|
3494
|
+
/**
|
|
3495
|
+
* The row contexts, rebuilt only when the list's shape changes.
|
|
3496
|
+
*
|
|
3497
|
+
* `subForms$` publishes a fresh array on every membership/order change and never otherwise, so
|
|
3498
|
+
* array identity is an exact shape-change signal. Memoising on it keeps the context objects
|
|
3499
|
+
* stable across the change-detection passes a keystroke causes, which stops `ngTemplateOutlet`
|
|
3500
|
+
* from churning the row's bindings while the user is typing in it.
|
|
3501
|
+
*/
|
|
3502
|
+
get rows() {
|
|
3503
|
+
const source = this.list?.subForms$.value ?? [];
|
|
3504
|
+
if (source !== this.renderedSource) {
|
|
3505
|
+
this.renderedSource = source;
|
|
3506
|
+
this.renderedRows = source.map((row, index) => ({
|
|
3507
|
+
$implicit: row,
|
|
3508
|
+
row,
|
|
3509
|
+
index,
|
|
3510
|
+
first: index === 0,
|
|
3511
|
+
last: index === source.length - 1,
|
|
3512
|
+
count: source.length,
|
|
3513
|
+
}));
|
|
3514
|
+
}
|
|
3515
|
+
return this.renderedRows;
|
|
3516
|
+
}
|
|
3517
|
+
get listErrors() {
|
|
3518
|
+
return this.list?.listErrors$.value ?? [];
|
|
3519
|
+
}
|
|
3520
|
+
get empty() {
|
|
3521
|
+
return this.list?.empty$.value ?? true;
|
|
3522
|
+
}
|
|
3523
|
+
get hasAddCommand() {
|
|
3524
|
+
return Proxify.hasTarget(this.addCommand);
|
|
3525
|
+
}
|
|
3526
|
+
/** `AUTO` resolved against the list; every other mode passes through for the gates below. */
|
|
3527
|
+
get resolvedReorder() {
|
|
3528
|
+
if (this.reorder !== SubFormListComponent.Reorder.AUTO) {
|
|
3529
|
+
return this.reorder;
|
|
3530
|
+
}
|
|
3531
|
+
return this.list?.reorderable ? SubFormListComponent.Reorder.BOTH : SubFormListComponent.Reorder.NONE;
|
|
3532
|
+
}
|
|
3533
|
+
/**
|
|
3534
|
+
* True for every mode that reorders at all, {@link Reorder.DRAG} included — see
|
|
3535
|
+
* {@link dragEnabled} for why drag never stands alone. `DRAG` only changes how prominent the
|
|
3536
|
+
* buttons are, via {@link buttonsOnDemand}.
|
|
3537
|
+
*/
|
|
3538
|
+
get moveButtonsVisible() {
|
|
3539
|
+
const mode = this.resolvedReorder;
|
|
3540
|
+
return !!this.list?.reorderable && mode !== SubFormListComponent.Reorder.NONE;
|
|
3541
|
+
}
|
|
3542
|
+
/**
|
|
3543
|
+
* Drag stays off unless the order is the data. It is also *never* the only reordering affordance
|
|
3544
|
+
* offered by the default cluster: CDK drag is pointer-only, so removing the move buttons in
|
|
3545
|
+
* {@link Reorder.DRAG} mode would leave keyboard and screen-reader users unable to reorder at
|
|
3546
|
+
* all. `DRAG` hides the buttons until the row is hovered or holds focus; it does not delete them.
|
|
3547
|
+
*/
|
|
3548
|
+
get dragEnabled() {
|
|
3549
|
+
const mode = this.resolvedReorder;
|
|
3550
|
+
return !!this.list?.reorderable
|
|
3551
|
+
&& (mode === SubFormListComponent.Reorder.DRAG || mode === SubFormListComponent.Reorder.BOTH);
|
|
3552
|
+
}
|
|
3553
|
+
get buttonsOnDemand() {
|
|
3554
|
+
return this.resolvedReorder === SubFormListComponent.Reorder.DRAG;
|
|
3555
|
+
}
|
|
3556
|
+
get hasActions() {
|
|
3557
|
+
return !!this.actionsTemplate || this.moveButtonsVisible || this.removable;
|
|
3558
|
+
}
|
|
3559
|
+
trackByRow(index, context) {
|
|
3560
|
+
return context.row;
|
|
3561
|
+
}
|
|
3562
|
+
/**
|
|
3563
|
+
* CDK reports `currentIndex` after the dragged row has been taken out of the list, which is the
|
|
3564
|
+
* same convention {@link SubFormList#move} splices with — so the index passes straight through,
|
|
3565
|
+
* with no local array to keep in step. The list republishes `subForms$` itself; the explicit
|
|
3566
|
+
* `markForCheck` is what gets that repaint scheduled before CDK's drop animation settles, so the
|
|
3567
|
+
* row does not visibly snap back to where it started.
|
|
3568
|
+
*/
|
|
3569
|
+
onDropped(event) {
|
|
3570
|
+
const moved = this.rows[event.previousIndex]?.row;
|
|
3571
|
+
if (!moved || event.currentIndex === event.previousIndex) {
|
|
3572
|
+
return;
|
|
3573
|
+
}
|
|
3574
|
+
this.list.move(moved, event.currentIndex);
|
|
3575
|
+
this.markForCheck();
|
|
3576
|
+
}
|
|
3577
|
+
warnAboutUnsupportedReordering() {
|
|
3578
|
+
const asked = this.reorder;
|
|
3579
|
+
if (asked !== SubFormListComponent.Reorder.AUTO
|
|
3580
|
+
&& asked !== SubFormListComponent.Reorder.NONE
|
|
3581
|
+
&& !this.list?.reorderable) {
|
|
3582
|
+
console.warn(`aup-sub-form-list: reorder="${asked}" was ignored — the list is not user-ordered, so a move would be undone by the next load. Pass the 'userOrdered' option to createSubForms to make the order part of the data.`);
|
|
3583
|
+
}
|
|
3584
|
+
}
|
|
3585
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3586
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: SubFormListComponent, selector: "aup-sub-form-list", inputs: { list: "list", reorder: "reorder", removable$: "removable$", removable: "removable", removeFace: "removeFace", moveUpFace: "moveUpFace", moveDownFace: "moveDownFace", dragHandleIcon: "dragHandleIcon", addCommand: "addCommand", emptyText: "emptyText", dense: "dense", fill: "fill" }, host: { properties: { "class.dense": "this.dense", "class.fill": "this.fill", "class.buttons-on-demand": "this.buttonsOnDemand" } }, queries: [{ propertyName: "rowTemplate", first: true, predicate: SubFormRowDirective, descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: SubFormRowActionsDirective, descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: SubFormListEmptyDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"rows\"\n role=\"list\"\n cdkDropList\n [cdkDropListDisabled]=\"!dragEnabled\"\n (cdkDropListDropped)=\"onDropped($event)\"\n data-cy=\"sub-form-rows\">\n\n <div class=\"row\"\n role=\"listitem\"\n *ngFor=\"let context of rows; trackBy: trackByRow\"\n cdkDrag\n [cdkDragDisabled]=\"!dragEnabled\"\n data-cy=\"sub-form-row\">\n\n <!-- Deliberately not focusable and hidden from assistive tech: CDK drag is pointer-only, so a\n focusable handle would take a tab stop and then do nothing. The move buttons are the\n keyboard path, which is why they survive even in reorder=\"drag\". -->\n <span class=\"drag-handle\" *ngIf=\"dragEnabled\" cdkDragHandle aria-hidden=\"true\"\n data-cy=\"sub-form-drag-handle\">\n <aup-icon [icon]=\"dragHandleIcon\"></aup-icon>\n </span>\n\n <div class=\"content\">\n <ng-container *ngIf=\"rowTemplate\"\n [ngTemplateOutlet]=\"rowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n </div>\n\n <div class=\"actions\" *ngIf=\"hasActions\">\n <ng-container *ngIf=\"actionsTemplate; else defaultActions\"\n [ngTemplateOutlet]=\"actionsTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n <ng-template #defaultActions>\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command\"\n [command]=\"context.row.moveUpCommand\"\n [face]=\"moveUpFace\" data-cy=\"sub-form-move-up\"></aup-command>\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command\"\n [command]=\"context.row.moveDownCommand\"\n [face]=\"moveDownFace\" data-cy=\"sub-form-move-down\"></aup-command>\n <aup-command *ngIf=\"removable\" [command]=\"context.row.removeItemCommand\"\n [face]=\"removeFace\" data-cy=\"sub-form-remove\"></aup-command>\n </ng-template>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"empty\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"\n [ngTemplateOutlet]=\"emptyTemplate.templateRef\"></ng-container>\n <ng-template #defaultEmpty>\n <aup-empty-state *ngIf=\"emptyText\" data-cy=\"sub-form-list-empty\">{{emptyText}}</aup-empty-state>\n </ng-template>\n</ng-container>\n\n<ul class=\"list-errors\" *ngIf=\"listErrors.length\" data-cy=\"sub-form-list-errors\">\n <li *ngFor=\"let error of listErrors\">{{error}}</li>\n</ul>\n\n<div class=\"footer\" *ngIf=\"hasAddCommand\">\n <aup-command [command]=\"addCommand\" data-cy=\"sub-form-list-add\"></aup-command>\n</div>\n", styles: [":host{display:block;--aup-sub-form-row-gap: 8px}.rows{display:flex;flex-direction:column;gap:var(--aup-sub-form-row-gap)}.row{display:grid;grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:var(--aup-sub-form-row-gap);background:var(--aup-sub-form-row-background, transparent)}.drag-handle{grid-column:1}.content{grid-column:2}.actions{grid-column:3}:host(.fill) .row{grid-template-columns:auto 1fr auto;justify-content:stretch}.drag-handle{display:flex;align-items:center;cursor:grab;color:#00000061}.drag-handle:active{cursor:grabbing}.content{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--aup-sub-form-row-gap);min-width:0}.actions{display:flex;align-items:center;gap:0;white-space:nowrap}:host(.buttons-on-demand) .row .move-command{opacity:0;transition:opacity .15s ease-in-out}:host(.buttons-on-demand) .row:hover .move-command,:host(.buttons-on-demand) .row:focus-within .move-command{opacity:1}.list-errors{margin:var(--aup-sub-form-row-gap) 0 0;padding-left:1.2em;color:var(--aup-error-color, #f44336);font-size:12px}.footer{display:flex;margin-top:var(--aup-sub-form-row-gap)}.row.cdk-drag-preview{box-sizing:border-box;border-radius:4px;background:var(--aup-sub-form-row-background, #fff);box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;padding:4px}.row.cdk-drag-placeholder{opacity:.4}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.rows.cdk-drop-list-dragging .row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$7.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2$7.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2$7.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: IconComponent, selector: "aup-icon", inputs: ["icon"] }, { kind: "component", type: CommandComponent, selector: "aup-command", inputs: ["command", "face$", "face", "busyFace$", "busyFace", "alignFace"] }, { kind: "component", type: EmptyStateComponent, selector: "aup-empty-state" }] });
|
|
3587
|
+
}
|
|
3588
|
+
__decorate([
|
|
3589
|
+
Proxify(),
|
|
3590
|
+
__metadata("design:type", Object)
|
|
3591
|
+
], SubFormListComponent.prototype, "removable$", null);
|
|
3592
|
+
__decorate([
|
|
3593
|
+
StoreInValueModel(),
|
|
3594
|
+
__metadata("design:type", Object)
|
|
3595
|
+
], SubFormListComponent.prototype, "removable", null);
|
|
3596
|
+
__decorate([
|
|
3597
|
+
Proxify(),
|
|
3598
|
+
__metadata("design:type", Command)
|
|
3599
|
+
], SubFormListComponent.prototype, "addCommand", null);
|
|
3600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: SubFormListComponent, decorators: [{
|
|
3601
|
+
type: Component,
|
|
3602
|
+
args: [{ selector: 'aup-sub-form-list', template: "<div class=\"rows\"\n role=\"list\"\n cdkDropList\n [cdkDropListDisabled]=\"!dragEnabled\"\n (cdkDropListDropped)=\"onDropped($event)\"\n data-cy=\"sub-form-rows\">\n\n <div class=\"row\"\n role=\"listitem\"\n *ngFor=\"let context of rows; trackBy: trackByRow\"\n cdkDrag\n [cdkDragDisabled]=\"!dragEnabled\"\n data-cy=\"sub-form-row\">\n\n <!-- Deliberately not focusable and hidden from assistive tech: CDK drag is pointer-only, so a\n focusable handle would take a tab stop and then do nothing. The move buttons are the\n keyboard path, which is why they survive even in reorder=\"drag\". -->\n <span class=\"drag-handle\" *ngIf=\"dragEnabled\" cdkDragHandle aria-hidden=\"true\"\n data-cy=\"sub-form-drag-handle\">\n <aup-icon [icon]=\"dragHandleIcon\"></aup-icon>\n </span>\n\n <div class=\"content\">\n <ng-container *ngIf=\"rowTemplate\"\n [ngTemplateOutlet]=\"rowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n </div>\n\n <div class=\"actions\" *ngIf=\"hasActions\">\n <ng-container *ngIf=\"actionsTemplate; else defaultActions\"\n [ngTemplateOutlet]=\"actionsTemplate.templateRef\"\n [ngTemplateOutletContext]=\"context\"></ng-container>\n <ng-template #defaultActions>\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command\"\n [command]=\"context.row.moveUpCommand\"\n [face]=\"moveUpFace\" data-cy=\"sub-form-move-up\"></aup-command>\n <aup-command *ngIf=\"moveButtonsVisible\" class=\"move-command\"\n [command]=\"context.row.moveDownCommand\"\n [face]=\"moveDownFace\" data-cy=\"sub-form-move-down\"></aup-command>\n <aup-command *ngIf=\"removable\" [command]=\"context.row.removeItemCommand\"\n [face]=\"removeFace\" data-cy=\"sub-form-remove\"></aup-command>\n </ng-template>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"empty\">\n <ng-container *ngIf=\"emptyTemplate; else defaultEmpty\"\n [ngTemplateOutlet]=\"emptyTemplate.templateRef\"></ng-container>\n <ng-template #defaultEmpty>\n <aup-empty-state *ngIf=\"emptyText\" data-cy=\"sub-form-list-empty\">{{emptyText}}</aup-empty-state>\n </ng-template>\n</ng-container>\n\n<ul class=\"list-errors\" *ngIf=\"listErrors.length\" data-cy=\"sub-form-list-errors\">\n <li *ngFor=\"let error of listErrors\">{{error}}</li>\n</ul>\n\n<div class=\"footer\" *ngIf=\"hasAddCommand\">\n <aup-command [command]=\"addCommand\" data-cy=\"sub-form-list-add\"></aup-command>\n</div>\n", styles: [":host{display:block;--aup-sub-form-row-gap: 8px}.rows{display:flex;flex-direction:column;gap:var(--aup-sub-form-row-gap)}.row{display:grid;grid-template-columns:auto auto auto;justify-content:start;align-items:center;gap:var(--aup-sub-form-row-gap);background:var(--aup-sub-form-row-background, transparent)}.drag-handle{grid-column:1}.content{grid-column:2}.actions{grid-column:3}:host(.fill) .row{grid-template-columns:auto 1fr auto;justify-content:stretch}.drag-handle{display:flex;align-items:center;cursor:grab;color:#00000061}.drag-handle:active{cursor:grabbing}.content{display:flex;flex-wrap:wrap;align-items:flex-start;gap:var(--aup-sub-form-row-gap);min-width:0}.actions{display:flex;align-items:center;gap:0;white-space:nowrap}:host(.buttons-on-demand) .row .move-command{opacity:0;transition:opacity .15s ease-in-out}:host(.buttons-on-demand) .row:hover .move-command,:host(.buttons-on-demand) .row:focus-within .move-command{opacity:1}.list-errors{margin:var(--aup-sub-form-row-gap) 0 0;padding-left:1.2em;color:var(--aup-error-color, #f44336);font-size:12px}.footer{display:flex;margin-top:var(--aup-sub-form-row-gap)}.row.cdk-drag-preview{box-sizing:border-box;border-radius:4px;background:var(--aup-sub-form-row-background, #fff);box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;padding:4px}.row.cdk-drag-placeholder{opacity:.4}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.rows.cdk-drop-list-dragging .row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
3603
|
+
}], ctorParameters: function () { return []; }, propDecorators: { list: [{
|
|
3604
|
+
type: Input
|
|
3605
|
+
}], reorder: [{
|
|
3606
|
+
type: Input
|
|
3607
|
+
}], removable$: [{
|
|
3608
|
+
type: Input
|
|
3609
|
+
}], removable: [{
|
|
3610
|
+
type: Input
|
|
3611
|
+
}], removeFace: [{
|
|
3612
|
+
type: Input
|
|
3613
|
+
}], moveUpFace: [{
|
|
3614
|
+
type: Input
|
|
3615
|
+
}], moveDownFace: [{
|
|
3616
|
+
type: Input
|
|
3617
|
+
}], dragHandleIcon: [{
|
|
3618
|
+
type: Input
|
|
3619
|
+
}], addCommand: [{
|
|
3620
|
+
type: Input
|
|
3621
|
+
}], emptyText: [{
|
|
3622
|
+
type: Input
|
|
3623
|
+
}], dense: [{
|
|
3624
|
+
type: HostBinding,
|
|
3625
|
+
args: ['class.dense']
|
|
3626
|
+
}, {
|
|
3627
|
+
type: Input
|
|
3628
|
+
}], fill: [{
|
|
3629
|
+
type: HostBinding,
|
|
3630
|
+
args: ['class.fill']
|
|
3631
|
+
}, {
|
|
3632
|
+
type: Input
|
|
3633
|
+
}], rowTemplate: [{
|
|
3634
|
+
type: ContentChild,
|
|
3635
|
+
args: [SubFormRowDirective]
|
|
3636
|
+
}], actionsTemplate: [{
|
|
3637
|
+
type: ContentChild,
|
|
3638
|
+
args: [SubFormRowActionsDirective]
|
|
3639
|
+
}], emptyTemplate: [{
|
|
3640
|
+
type: ContentChild,
|
|
3641
|
+
args: [SubFormListEmptyDirective]
|
|
3642
|
+
}], buttonsOnDemand: [{
|
|
3643
|
+
type: HostBinding,
|
|
3644
|
+
args: ['class.buttons-on-demand']
|
|
3645
|
+
}] } });
|
|
3646
|
+
(function (SubFormListComponent) {
|
|
3647
|
+
SubFormListComponent.Reorder = Enum({
|
|
3648
|
+
/** Buttons and drag when the list is user-ordered; nothing when it isn't. */
|
|
3649
|
+
AUTO: 'auto',
|
|
3650
|
+
NONE: 'none',
|
|
3651
|
+
BUTTONS: 'buttons',
|
|
3652
|
+
/** Drag handles, with the move buttons revealed on hover/focus as the keyboard path. */
|
|
3653
|
+
DRAG: 'drag',
|
|
3654
|
+
BOTH: 'both',
|
|
3655
|
+
});
|
|
3656
|
+
// Held as constants rather than object literals in the template: CommandFace members are
|
|
3657
|
+
// functions and these bind once per row, so a literal would allocate a new face on every pass.
|
|
3658
|
+
SubFormListComponent.DEFAULT_REMOVE_FACE = { icon: () => 'mat:delete', tooltip: () => 'Remove' };
|
|
3659
|
+
SubFormListComponent.DEFAULT_MOVE_UP_FACE = { icon: () => 'mat:arrow_upward', tooltip: () => 'Move up' };
|
|
3660
|
+
SubFormListComponent.DEFAULT_MOVE_DOWN_FACE = { icon: () => 'mat:arrow_downward', tooltip: () => 'Move down' };
|
|
3661
|
+
})(SubFormListComponent || (SubFormListComponent = {}));
|
|
3662
|
+
|
|
3352
3663
|
class TextInputComponent extends AbstractValueInputComponent {
|
|
3353
3664
|
// @Input() @Proxify({ delegateTo: 'inputModel' })
|
|
3354
3665
|
// valueModel: Form.ValueModelBase<string> | MutableValueModel<string>;
|
|
@@ -3408,7 +3719,7 @@ class LoadingContainerComponent extends GarbageCollector {
|
|
|
3408
3719
|
return this.loading$.value ? "loaded" : "loading";
|
|
3409
3720
|
}
|
|
3410
3721
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: LoadingContainerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3411
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: LoadingContainerComponent, selector: "aup-loading-container", inputs: { loading$: "loading$", loading: "loading", message$: "message$", message: "message" }, host: { properties: { "class": "this.state" } }, usesInheritance: true, ngImport: i0, template: "<ng-content *ngIf=\"!loading$.value\"></ng-content>\n<section *ngIf=\"loading$.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{message$.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n", styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
3722
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: LoadingContainerComponent, selector: "aup-loading-container", inputs: { loading$: "loading$", loading: "loading", message$: "message$", message: "message" }, host: { properties: { "class": "this.state" } }, usesInheritance: true, ngImport: i0, template: "<ng-content *ngIf=\"!loading$.value\"></ng-content>\n<section *ngIf=\"loading$.value\" class=\"loading-indicator-overlay\">\n <div class=\"loading-message\">\n <p>{{message$.value}}</p>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n</section>\n", styles: [":host{display:block;position:relative}section.loading-indicator-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-message{display:inline-block;text-align:center;width:10em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$8.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
3412
3723
|
}
|
|
3413
3724
|
__decorate([
|
|
3414
3725
|
Proxify(),
|
|
@@ -3805,6 +4116,8 @@ class ColumnModel extends GarbageCollector {
|
|
|
3805
4116
|
_userVisible$ = this.registerDisposable(new DelegatingValueModel().withDefault(this._defaultVisibility$));
|
|
3806
4117
|
dasherisedColumnId;
|
|
3807
4118
|
textSearchDelegate = new ColumnTextSearchWrapper();
|
|
4119
|
+
_textMatcher;
|
|
4120
|
+
_textMatcherMap = Functions.identity;
|
|
3808
4121
|
visible$;
|
|
3809
4122
|
constructor(columnId, order, textPropertiesProvider) {
|
|
3810
4123
|
super();
|
|
@@ -3871,6 +4184,16 @@ class ColumnModel extends GarbageCollector {
|
|
|
3871
4184
|
this.textSearchDelegate.setDelegate(formatter, mapper);
|
|
3872
4185
|
return this;
|
|
3873
4186
|
}
|
|
4187
|
+
/** False for a column without a matcher — it contributes only its search text. */
|
|
4188
|
+
matchesSearchFor(row, searchText) {
|
|
4189
|
+
return this._textMatcher ? this._textMatcher(this._textMatcherMap(row), searchText) : false;
|
|
4190
|
+
}
|
|
4191
|
+
configureColumnTextMatch(matcher, mapper) {
|
|
4192
|
+
assert$1.notNil(matcher);
|
|
4193
|
+
this._textMatcher = matcher;
|
|
4194
|
+
this._textMatcherMap = mapper ?? Functions.identity;
|
|
4195
|
+
return this;
|
|
4196
|
+
}
|
|
3874
4197
|
configureHeaderRenderer(config) {
|
|
3875
4198
|
this._columnHeaderPortalRef = config;
|
|
3876
4199
|
}
|
|
@@ -4552,7 +4875,7 @@ class ColumnManager extends GarbageCollector {
|
|
|
4552
4875
|
}
|
|
4553
4876
|
|
|
4554
4877
|
const TEXT_SEARCH_FORMATTER_KEY = `aup:table:textSearchFormatter`;
|
|
4555
|
-
const Keys = Enum("useFunction", "useInstance", "useClass");
|
|
4878
|
+
const Keys = Enum("useFunction", "useInstance", "useClass", "useMatcher");
|
|
4556
4879
|
function EnableCellTextSearch(options) {
|
|
4557
4880
|
assert$1.notNil(options);
|
|
4558
4881
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
@@ -4577,6 +4900,12 @@ function EnableCellTextSearch(options) {
|
|
|
4577
4900
|
return useDefault();
|
|
4578
4901
|
}
|
|
4579
4902
|
EnableCellTextSearch.getFormatter = getFormatter;
|
|
4903
|
+
/** Undefined unless the renderer declared `useMatcher` — the column then matches on text alone. */
|
|
4904
|
+
function getMatcher(renderer) {
|
|
4905
|
+
const options = Klass.get(renderer).getMetadata(TEXT_SEARCH_FORMATTER_KEY) ?? {};
|
|
4906
|
+
return options[Keys.useMatcher];
|
|
4907
|
+
}
|
|
4908
|
+
EnableCellTextSearch.getMatcher = getMatcher;
|
|
4580
4909
|
})(EnableCellTextSearch || (EnableCellTextSearch = {}));
|
|
4581
4910
|
|
|
4582
4911
|
class CustomValueColumnModel extends ColumnModel {
|
|
@@ -4588,6 +4917,10 @@ class CustomValueColumnModel extends ColumnModel {
|
|
|
4588
4917
|
}
|
|
4589
4918
|
cellRenderer(componentType, onComponentInitOrOptions) {
|
|
4590
4919
|
this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => new ColumnTextSearchFormatter.Null()), row => this.getValue(row));
|
|
4920
|
+
const matcher = EnableCellTextSearch.getMatcher(componentType);
|
|
4921
|
+
if (matcher) {
|
|
4922
|
+
this.configureColumnTextMatch(matcher, row => this.getValue(row));
|
|
4923
|
+
}
|
|
4591
4924
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
|
|
4592
4925
|
if (firstTime) {
|
|
4593
4926
|
if (isFunction(onComponentInitOrOptions)) {
|
|
@@ -4628,6 +4961,10 @@ class ListPropertyColumnModel extends ColumnModel {
|
|
|
4628
4961
|
}
|
|
4629
4962
|
cellRenderer(componentType) {
|
|
4630
4963
|
this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => ColumnTextSearchFormatter.forFormatter(this._defaultSearchTextFormat)), row => row[this.property]);
|
|
4964
|
+
const matcher = EnableCellTextSearch.getMatcher(componentType);
|
|
4965
|
+
if (matcher) {
|
|
4966
|
+
this.configureColumnTextMatch(matcher, row => row[this.property]);
|
|
4967
|
+
}
|
|
4631
4968
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData) => {
|
|
4632
4969
|
const rowValue = rowData.row[this.property];
|
|
4633
4970
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -4661,6 +4998,10 @@ class PropertyColumnModel extends ColumnModel {
|
|
|
4661
4998
|
}
|
|
4662
4999
|
cellRenderer(componentType, onComponentInitOrOptions) {
|
|
4663
5000
|
this.configureColumnTextSearch(EnableCellTextSearch.getFormatter(componentType, () => ColumnTextSearchFormatter.forFormatter(this._defaultSearchTextFormatter)), row => row[this.property]);
|
|
5001
|
+
const matcher = EnableCellTextSearch.getMatcher(componentType);
|
|
5002
|
+
if (matcher) {
|
|
5003
|
+
this.configureColumnTextMatch(matcher, row => row[this.property]);
|
|
5004
|
+
}
|
|
4664
5005
|
this.configureCellRenderer(new ComponentCellRendererPortalRef(componentType, (component, rowData, firstTime) => {
|
|
4665
5006
|
if (firstTime) {
|
|
4666
5007
|
if (isFunction(onComponentInitOrOptions)) {
|
|
@@ -5197,7 +5538,7 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
5197
5538
|
this._visibleRows$.setDelegate(this._filteredRows$);
|
|
5198
5539
|
this.textSearchPredicate$ = chain(this.visibleColumns$).reduceAll(columns => {
|
|
5199
5540
|
const cache = new WeakMap();
|
|
5200
|
-
return (row, regex) => {
|
|
5541
|
+
return (row, regex, searchText) => {
|
|
5201
5542
|
if (!regex)
|
|
5202
5543
|
return true;
|
|
5203
5544
|
let text = cache.get(row);
|
|
@@ -5205,7 +5546,11 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
5205
5546
|
text = columns.map(c => c.getSearchTextFor(row)).join('\0');
|
|
5206
5547
|
cache.set(row, text);
|
|
5207
5548
|
}
|
|
5208
|
-
|
|
5549
|
+
// Columns with a matcher answer the raw query themselves (false when they have none). Not
|
|
5550
|
+
// pre-filtered to the matcher columns: a column joins this list when it is ADDED, before
|
|
5551
|
+
// its renderer configures a matcher, so any such snapshot is stale.
|
|
5552
|
+
return regex.test(text)
|
|
5553
|
+
|| (searchText != null && columns.some(c => c.matchesSearchFor(row, searchText)));
|
|
5209
5554
|
};
|
|
5210
5555
|
});
|
|
5211
5556
|
this.selectionColumnModel = new SelectionColumnModel('selection-column', this.columnManager, () => this.getColumnTextProperties('selection-column'));
|
|
@@ -5387,7 +5732,7 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
5387
5732
|
isCursorEnabled(column) {
|
|
5388
5733
|
return this.isRowSelectionEnabledFor(column) || this.rowClickListeners.listenerCount > 0;
|
|
5389
5734
|
}
|
|
5390
|
-
/** Whether the selection model will accept this row (see MultipleSelectionModel
|
|
5735
|
+
/** Whether the selection model will accept this row (see MultipleSelectionModel.disableSelectionIf). */
|
|
5391
5736
|
isRowSelectable(row) {
|
|
5392
5737
|
return this.selectionColumnModel.selectionModel.isSelectable(row);
|
|
5393
5738
|
}
|
|
@@ -5798,7 +6143,7 @@ class TableBodyComponent extends ResizeAwareComponent {
|
|
|
5798
6143
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: TableBodyComponent, deps: [{ token: AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5799
6144
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.9", type: TableBodyComponent, selector: "aup-table-body", inputs: { data$: "data$", tableModel: "tableModel", footerRows: "footerRows", showHeader$: "showHeader$", showHeader: "showHeader", trackBy: "trackBy", scrollMode$: "scrollMode$", scrollMode: "scrollMode" }, host: { properties: { "attr.scrollMode": "this.scrollMode", "class": "this.baseCssClass", "class.aup-animations-disabled": "this.animationsDisabledClass", "class.hide-header": "this.hideHeader", "style.--aup-table-header-height": "this.headerHeightCssVar", "style.--aup-table-row-height": "this.rowHeightCssVar" } }, providers: [
|
|
5800
6145
|
{ provide: AUP_DETACHED_PARENT_CDR, useFactory: () => inject(AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, { optional: true }) ? inject(ChangeDetectorRef) : null }
|
|
5801
|
-
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-scroll-container\" *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$
|
|
6146
|
+
], viewQueries: [{ propertyName: "scrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], usesInheritance: true, ngImport: i0, template: "\n<div class=\"classic-scroll-container\" *ngIf=\"scrollMode$.value !== 'virtual'\">\n <table mat-table [dataSource]=\"data$.value\" [trackBy]=\"trackBy\" [multiTemplateDataRows]>\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"$any(column)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n </table>\n</div>\n\n<cdk-virtual-scroll-viewport *ngIf=\"scrollMode$.value === 'virtual'\"\n [@.disabled]=\"animationsDisabled$.value\"\n [tvsItemSize]=\"rowHeight$.value\"\n [headerHeight]=\"headerHeight$.value\"\n [footerEnabled]=\"(footerRowDefs$?.value?.length ?? 0) > 0\"\n [footerHeight]=\"48 * (footerRowDefs$?.value?.length ?? 0)\"\n [bufferMultiplier]=\"bufferMultiplier\"\n>\n <table mat-table [dataSource]=\"virtualScrollDataSource\" [trackBy]=\"trackBy\">\n\n <ng-container *ngFor=\"let column of columns$.value; index as index; first as first; last as last\"\n matColumnDef=\"{{column.columnId}}\">\n <th mat-header-cell *matHeaderCellDef [class.flex]=\"column.isFlex()\" [class.hide]=\"!column.isVisible()\">\n <aup-table-header-cell [column]=\"column\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-header-cell>\n </th>\n <td mat-cell *matCellDef=\"let row\" (click)=\"notifyCellClicked(column, row)\"\n [class.enable-cursor]=\"tableModel.isCursorEnabledForRow(column, row)\"\n [class.flex]=\"column.isFlex()\"\n [class.hide]=\"!column.isVisible()\"\n >\n <aup-table-cell [column]=\"$any(column)\"\n [row]=\"row\"\n [tableModel]=\"$any(tableModel)\"\n [attr.column-index]=\"index\"\n [attr.column-id]=\"column.columnId\"\n [class]=\"getColumnClasses(column.columnId)\"\n ></aup-table-cell>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"columnIds$.value; sticky: true\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: columnIds$.value; let i = index\"\n [ngClass]=\"tableModel.getRowClasses(row)\"\n [class.enable-hover]=\"tableModel.isHoverEnabledForRow(row)\"\n [aupTableRowAttributes]=\"tableModel.getRowAttributes(row)\"\n [attr.aup-row-id]=\"trackBy(i, row)\"\n ></tr>\n\n <ng-container *ngFor=\"let footer of footerRowDefs$.value\">\n <ng-container *ngFor=\"let cell of footer.cells\" [matColumnDef]=\"cell.defId\">\n <td mat-footer-cell *matFooterCellDef [attr.colspan]=\"cell.colspan\"\n [attr.column-id]=\"cell.columnId\" class=\"footer-cell\">\n <aup-table-footer-row *ngIf=\"!cell.filler\" [cell]=\"cell\"></aup-table-footer-row>\n </td>\n </ng-container>\n <tr mat-footer-row *matFooterRowDef=\"footer.defIds; sticky: true\" [ngClass]=\"footer.rowClasses\"\n [class.aup-footer-row-hidden]=\"footer.visible$ && !footer.visible$.value\"></tr>\n </ng-container>\n\n\n </table>\n</cdk-virtual-scroll-viewport>\n\n", styles: [":host{--enter-animation-duration: .1s;display:flex;flex-direction:column;align-items:stretch}:host.aup-animations-disabled{--enter-animation-duration: 0ms}:host table{width:100%}:host tr.aup-footer-row-hidden{display:none}:host td.footer-cell{border-top:0!important;box-shadow:0 -1px 0 0 var(--mat-table-row-item-outline-color, rgba(0, 0, 0, .12))}:host[scrollMode=virtual] cdk-virtual-scroll-viewport{flex:1}:host[scrollMode=virtual] table th{height:var(--aup-table-header-height);max-height:var(--aup-table-header-height);min-height:var(--aup-table-header-height)}:host[scrollMode=virtual] table td{height:var(--aup-table-row-height);max-height:var(--aup-table-row-height);min-height:var(--aup-table-row-height)}:host[scrollMode=classic]{min-height:0}:host[scrollMode=classic] .classic-scroll-container{flex:1;flex-basis:0;overflow-y:auto;display:flex;flex-direction:column;align-items:stretch}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$9.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$9.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$9.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$9.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i2$9.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$9.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$9.MatFooterCellDef, selector: "[matFooterCellDef]" }, { kind: "directive", type: i2$9.MatFooterRowDef, selector: "[matFooterRowDef]", inputs: ["matFooterRowDef", "matFooterRowDefSticky"] }, { kind: "directive", type: i2$9.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$9.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: i2$9.MatFooterCell, selector: "mat-footer-cell, td[mat-footer-cell]" }, { kind: "component", type: i2$9.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$9.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i2$9.MatFooterRow, selector: "mat-footer-row, tr[mat-footer-row]", exportAs: ["matFooterRow"] }, { kind: "component", type: i1$2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: i4$2.TableItemSizeDirective, selector: "cdk-virtual-scroll-viewport[tvsItemSize]", inputs: ["tvsItemSize", "headerEnabled", "headerHeight", "footerEnabled", "footerHeight", "bufferMultiplier"] }, { kind: "directive", type: TableRowAttributesDirective, selector: "[aupTableRowAttributes]", inputs: ["aupTableRowAttributes"] }, { kind: "component", type: TableCellComponent, selector: "aup-table-cell", inputs: ["row", "column", "tableModel"] }, { kind: "component", type: TableHeaderCellComponent, selector: "aup-table-header-cell", inputs: ["column"] }, { kind: "component", type: TableFooterRow, selector: "aup-table-footer-row", inputs: ["cell"] }] });
|
|
5802
6147
|
}
|
|
5803
6148
|
__decorate([
|
|
5804
6149
|
Proxify(),
|
|
@@ -6057,18 +6402,20 @@ class TableFilterModel extends GarbageCollector {
|
|
|
6057
6402
|
this.useSearchText(options.searchText$);
|
|
6058
6403
|
this.useRowPredicate(options.predicate$);
|
|
6059
6404
|
const { chain } = Dsl.disposeWith(this);
|
|
6060
|
-
|
|
6405
|
+
// Raw text and its escaped regex travel together, so a predicate can never see the regex of
|
|
6406
|
+
// one search with the text of another.
|
|
6407
|
+
const textSearch$ = chain(this._searchText$)
|
|
6061
6408
|
.debounce(250)
|
|
6062
6409
|
.mapWithNil(text => {
|
|
6063
|
-
return isEmpty(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
|
|
6410
|
+
return isEmpty(text) ? undefined : { text, regex: new RegExp(escapeStringRegexp(text), "i") };
|
|
6064
6411
|
});
|
|
6065
6412
|
this._rowPredicate = chain(this._rowPredicate$)
|
|
6066
6413
|
.mapWithNil(predicate => {
|
|
6067
|
-
const
|
|
6414
|
+
const search = textSearch$.value;
|
|
6068
6415
|
const textSearchPredicate = this._textSearchPredicate$.value;
|
|
6069
|
-
return (row) => (!predicate || predicate(row)) && (!
|
|
6416
|
+
return (row) => (!predicate || predicate(row)) && (!search || !textSearchPredicate || textSearchPredicate(row, search.regex, search.text));
|
|
6070
6417
|
}, {
|
|
6071
|
-
dependsOn: [
|
|
6418
|
+
dependsOn: [textSearch$, this._textSearchPredicate$],
|
|
6072
6419
|
postponeWhile: this.inUpdate
|
|
6073
6420
|
});
|
|
6074
6421
|
this.filteredRows$ = chain(this._source$).select(row => {
|
|
@@ -7228,7 +7575,11 @@ class ComponentsModule {
|
|
|
7228
7575
|
SearchInputComponent,
|
|
7229
7576
|
TableFooterRow,
|
|
7230
7577
|
FileDownloadComponent,
|
|
7231
|
-
ButtonRendererComponent
|
|
7578
|
+
ButtonRendererComponent,
|
|
7579
|
+
SubFormListComponent,
|
|
7580
|
+
SubFormRowDirective,
|
|
7581
|
+
SubFormRowActionsDirective,
|
|
7582
|
+
SubFormListEmptyDirective], imports: [CommonModule,
|
|
7232
7583
|
BrowserAnimationsModule,
|
|
7233
7584
|
FormsModule,
|
|
7234
7585
|
MatInputModule,
|
|
@@ -7249,7 +7600,8 @@ class ComponentsModule {
|
|
|
7249
7600
|
MatProgressSpinnerModule,
|
|
7250
7601
|
MatProgressBarModule,
|
|
7251
7602
|
ScrollingModule,
|
|
7252
|
-
TableVirtualScrollModule
|
|
7603
|
+
TableVirtualScrollModule,
|
|
7604
|
+
DragDropModule], exports: [ButtonRendererComponent,
|
|
7253
7605
|
FileDownloadComponent,
|
|
7254
7606
|
TableFooterRow,
|
|
7255
7607
|
NumberInputComponent,
|
|
@@ -7291,7 +7643,11 @@ class ComponentsModule {
|
|
|
7291
7643
|
TableCustomMoreMenuComponent,
|
|
7292
7644
|
TableCustomMoreMenuPopupComponent,
|
|
7293
7645
|
SearchInputComponent,
|
|
7294
|
-
ButtonRendererComponent
|
|
7646
|
+
ButtonRendererComponent,
|
|
7647
|
+
SubFormListComponent,
|
|
7648
|
+
SubFormRowDirective,
|
|
7649
|
+
SubFormRowActionsDirective,
|
|
7650
|
+
SubFormListEmptyDirective] });
|
|
7295
7651
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ComponentsModule, providers: [FocusBindingFactory, MarkdownService], imports: [CommonModule,
|
|
7296
7652
|
BrowserAnimationsModule,
|
|
7297
7653
|
FormsModule,
|
|
@@ -7313,7 +7669,8 @@ class ComponentsModule {
|
|
|
7313
7669
|
MatProgressSpinnerModule,
|
|
7314
7670
|
MatProgressBarModule,
|
|
7315
7671
|
ScrollingModule,
|
|
7316
|
-
TableVirtualScrollModule
|
|
7672
|
+
TableVirtualScrollModule,
|
|
7673
|
+
DragDropModule] });
|
|
7317
7674
|
}
|
|
7318
7675
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImport: i0, type: ComponentsModule, decorators: [{
|
|
7319
7676
|
type: NgModule,
|
|
@@ -7341,6 +7698,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7341
7698
|
MatProgressBarModule,
|
|
7342
7699
|
ScrollingModule,
|
|
7343
7700
|
TableVirtualScrollModule,
|
|
7701
|
+
DragDropModule,
|
|
7344
7702
|
],
|
|
7345
7703
|
declarations: [
|
|
7346
7704
|
AbstractInputComponent,
|
|
@@ -7402,6 +7760,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7402
7760
|
TableFooterRow,
|
|
7403
7761
|
FileDownloadComponent,
|
|
7404
7762
|
ButtonRendererComponent,
|
|
7763
|
+
SubFormListComponent,
|
|
7764
|
+
SubFormRowDirective,
|
|
7765
|
+
SubFormRowActionsDirective,
|
|
7766
|
+
SubFormListEmptyDirective,
|
|
7405
7767
|
],
|
|
7406
7768
|
exports: [
|
|
7407
7769
|
ButtonRendererComponent,
|
|
@@ -7447,6 +7809,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
7447
7809
|
TableCustomMoreMenuPopupComponent,
|
|
7448
7810
|
SearchInputComponent,
|
|
7449
7811
|
ButtonRendererComponent,
|
|
7812
|
+
SubFormListComponent,
|
|
7813
|
+
SubFormRowDirective,
|
|
7814
|
+
SubFormRowActionsDirective,
|
|
7815
|
+
SubFormListEmptyDirective,
|
|
7450
7816
|
],
|
|
7451
7817
|
providers: [FocusBindingFactory, MarkdownService],
|
|
7452
7818
|
}]
|
|
@@ -13460,23 +13826,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
13460
13826
|
* @file Automatically generated by barrelsby.
|
|
13461
13827
|
*/
|
|
13462
13828
|
|
|
13463
|
-
class TextSearchContext {
|
|
13464
|
-
row;
|
|
13465
|
-
searchText;
|
|
13466
|
-
searchRegex;
|
|
13467
|
-
constructor(row, searchText, searchRegex) {
|
|
13468
|
-
this.row = row;
|
|
13469
|
-
this.searchText = searchText;
|
|
13470
|
-
this.searchRegex = searchRegex;
|
|
13471
|
-
}
|
|
13472
|
-
getOrCreate(type, create) {
|
|
13473
|
-
// TODO: stub awaiting per-context cache implementation
|
|
13474
|
-
}
|
|
13475
|
-
matchesText(text) {
|
|
13476
|
-
return this.searchRegex.test(text);
|
|
13477
|
-
}
|
|
13478
|
-
}
|
|
13479
|
-
|
|
13480
13829
|
class AbstractCellRenderer extends LoadableComponent {
|
|
13481
13830
|
constructor() {
|
|
13482
13831
|
super();
|
|
@@ -14123,5 +14472,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.9", ngImpor
|
|
|
14123
14472
|
* Generated bundle index. Do not edit.
|
|
14124
14473
|
*/
|
|
14125
14474
|
|
|
14126
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent,
|
|
14475
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_DETACHED_PARENT_CDR, AUP_PLACE_CONFIG, AUP_TABLE_OPTIMIZED_CHANGE_DETECTION, AUP_TABLE_VIRTUAL_SCROLL_BUFFER_MULTIPLIER, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractCellRenderer, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityContext, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AlertRendererComponent, AngularUiPowerupsModule, AupTooltipDirective, AutocompleteInputComponent, Bounds, BusyOverlayComponent, ButtonRendererComponent, CELL_RENDERER_PORTAL, CardContainerComponent, CellFooterPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnManager, ColumnModel, ColumnOrderManager, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, Confirm, ConfirmRendererComponent, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FOOTER_CELL_RENDERER_PORTAL, FileDownloadComponent, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, FooterRowCellsBuilder, FooterRowModel, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, INTERACTION_CONTEXT, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextProvider, InteractionContextTriggerForDirective, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadableComponent, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, ParameterSanitiser, PasswordInputComponent, Place, PlaceAccessGuard, PlaceAuthService, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, ResizeObserverDirective, RouteId, ScrollContainerComponent, SearchInputComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, SlideDownInteractionContextComponent, StringInputActivity, StringInputComponent, SubFormListComponent, SubFormListEmptyDirective, SubFormRowActionsDirective, SubFormRowDirective, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableActionColumnComponent, TableBodyComponent, TableCellComponent, TableComponent, TableCustomMoreMenuComponent, TableCustomMoreMenuPopupComponent, TableFilterModel, TableFooterRow, TableHeaderCellComponent, TableModel, TableRowAttributesDirective, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, Track, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSegment, VisitSegmentSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, collapseOrphanSeparators, getPlaceDefinition, leftRightPlaceAnimation, markdownPillExtension, setPlaceDefinition, slideDownAndRightOnEnterAnimation, slideDownOnEnterAnimation, slideDownWhenOpenAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
14127
14476
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|