@coolon/angular-ui-powerups 14.15.0 → 14.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/exports.mjs +2 -2
- package/esm2020/lib/components/tables/abstract-table-model.mjs +4 -4
- package/esm2020/lib/components/tables/abstract-table.component.mjs +1 -1
- package/esm2020/lib/components/tables/column/selection-column-model.mjs +4 -3
- package/esm2020/lib/components/tables/filter/default-table-filter-model.mjs +55 -0
- package/esm2020/lib/components/tables/filter/table-filter-model.mjs +10 -77
- package/fesm2015/coolon-angular-ui-powerups.mjs +17 -39
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +17 -39
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/exports.d.ts +1 -1
- package/lib/components/tables/abstract-table-model.d.ts +2 -2
- package/lib/components/tables/filter/default-table-filter-model.d.ts +19 -0
- package/lib/components/tables/filter/table-filter-model.d.ts +7 -21
- package/package.json +2 -2
- package/esm2020/lib/components/tables/filter/abstract-table-filter-model.mjs +0 -11
- package/lib/components/tables/filter/abstract-table-filter-model.d.ts +0 -11
|
@@ -3540,6 +3540,7 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
3540
3540
|
this._enableHeaderControls = true;
|
|
3541
3541
|
this._color = "accent";
|
|
3542
3542
|
this.selectionModel = DelegatingSelectionModel.createDelegate();
|
|
3543
|
+
const { chain } = Dsl.disposeWith(this);
|
|
3543
3544
|
this._selectRowOnClick(false);
|
|
3544
3545
|
this.cellHeaderRenderer(SelectionHeaderCellComponent, (component) => {
|
|
3545
3546
|
component.selectionModel = this.selectionModel;
|
|
@@ -3553,10 +3554,10 @@ class SelectionColumnModel extends ColumnModel {
|
|
|
3553
3554
|
}));
|
|
3554
3555
|
this.setSelectionModel(selectionModel);
|
|
3555
3556
|
this.setMasterVisibility(this.selectionModel.enabled$);
|
|
3557
|
+
this.setDefaultVisibility(chain(this.selectionModel.mode$).equals(SelectionModel.Mode.MULTIPLE));
|
|
3556
3558
|
}
|
|
3557
3559
|
setSelectionModel(selectionModel) {
|
|
3558
3560
|
this.selectionModel.setDelegate(selectionModel);
|
|
3559
|
-
this.setDefaultVisibility(selectionModel instanceof MultipleSelectionModel ? ValueModel.TRUE : ValueModel.FALSE);
|
|
3560
3561
|
}
|
|
3561
3562
|
getDefaultHeaderText() {
|
|
3562
3563
|
return '';
|
|
@@ -3601,9 +3602,9 @@ class EditSession extends GarbageCollector {
|
|
|
3601
3602
|
}
|
|
3602
3603
|
|
|
3603
3604
|
// TODO: Merge MarsUi FilterRegistry into this.
|
|
3604
|
-
class
|
|
3605
|
+
class TableFilterModel extends GarbageCollector {
|
|
3605
3606
|
}
|
|
3606
|
-
TrackExternal.useDelegate(
|
|
3607
|
+
TrackExternal.useDelegate(TableFilterModel, options => {
|
|
3607
3608
|
return DelegateProxyHandler.create("AbstractTableFilterModel", b => {
|
|
3608
3609
|
b.forProperty("rowFilter$", () => new DelegatingValueModel());
|
|
3609
3610
|
b.forProperty("highlightText$", () => new DelegatingValueModel());
|
|
@@ -3820,9 +3821,9 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
3820
3821
|
}
|
|
3821
3822
|
}
|
|
3822
3823
|
__decorate([
|
|
3823
|
-
TrackExternal() // hack instead of creating a delegating one from scratch.
|
|
3824
|
+
TrackExternal() // hack instead of creating a delegating one from scratch.
|
|
3824
3825
|
,
|
|
3825
|
-
__metadata("design:type",
|
|
3826
|
+
__metadata("design:type", TableFilterModel)
|
|
3826
3827
|
], AbstractTableModel.prototype, "filterModel", void 0);
|
|
3827
3828
|
TrackExternal.oneTimeBinding(AbstractTableModel);
|
|
3828
3829
|
|
|
@@ -8545,15 +8546,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
8545
8546
|
}]
|
|
8546
8547
|
}] });
|
|
8547
8548
|
|
|
8548
|
-
class
|
|
8549
|
-
constructor(
|
|
8549
|
+
class DefaultTableFilterModel extends TableFilterModel {
|
|
8550
|
+
constructor(configuration) {
|
|
8550
8551
|
super();
|
|
8551
8552
|
this._rowPredicate$ = this.registerDisposable(new DelegatingValueModel());
|
|
8552
8553
|
this._searchText$ = this.registerDisposable(new DelegatingValueModel());
|
|
8553
8554
|
this.inUpdate = new Guard();
|
|
8554
8555
|
const { chain } = Dsl.disposeWith(this);
|
|
8555
|
-
if (
|
|
8556
|
-
this.
|
|
8556
|
+
if (configuration) {
|
|
8557
|
+
this.configure(Object.assign(Object.assign({}, configuration), { disposedWith: this }));
|
|
8557
8558
|
}
|
|
8558
8559
|
const textSearchRegex$ = chain(this._searchText$).map(text => {
|
|
8559
8560
|
return isEmpty$1(text) ? undefined : new RegExp(escapeStringRegexp(text), "i");
|
|
@@ -8578,25 +8579,15 @@ class TableFilterModel extends AbstractTableFilterModel {
|
|
|
8578
8579
|
get highlightText$() {
|
|
8579
8580
|
return this._searchText$.readonly;
|
|
8580
8581
|
}
|
|
8581
|
-
|
|
8582
|
-
// TODO: calling this twice without disposing woudl result in confusion... I should probably
|
|
8583
|
-
// change how this works...
|
|
8584
|
-
const self = this;
|
|
8582
|
+
configure(configuration) {
|
|
8585
8583
|
this.inUpdate.whileTrue(() => {
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
self._rowPredicate$.setDelegate(predicate$);
|
|
8589
|
-
return this;
|
|
8590
|
-
},
|
|
8591
|
-
useSearchText(searchText$) {
|
|
8592
|
-
self._searchText$.setDelegate(searchText$);
|
|
8593
|
-
return this;
|
|
8594
|
-
}
|
|
8595
|
-
});
|
|
8584
|
+
this._rowPredicate$.setDelegate(configuration.predicate$);
|
|
8585
|
+
this._searchText$.setDelegate(configuration.searchText$);
|
|
8596
8586
|
});
|
|
8597
|
-
|
|
8587
|
+
const self = this;
|
|
8588
|
+
configuration.disposedWith.registerDisposable({
|
|
8598
8589
|
dispose: () => self.clear()
|
|
8599
|
-
};
|
|
8590
|
+
});
|
|
8600
8591
|
}
|
|
8601
8592
|
clear() {
|
|
8602
8593
|
this.inUpdate.whileTrue(() => {
|
|
@@ -8605,19 +8596,6 @@ class TableFilterModel extends AbstractTableFilterModel {
|
|
|
8605
8596
|
});
|
|
8606
8597
|
}
|
|
8607
8598
|
}
|
|
8608
|
-
(function (TableFilterModel) {
|
|
8609
|
-
class BuilderImp {
|
|
8610
|
-
usePredicate(predicate$) {
|
|
8611
|
-
this.rowPredicate$ = predicate$;
|
|
8612
|
-
return this;
|
|
8613
|
-
}
|
|
8614
|
-
useSearchText(searchText$) {
|
|
8615
|
-
this.searchText$ = searchText$;
|
|
8616
|
-
return this;
|
|
8617
|
-
}
|
|
8618
|
-
}
|
|
8619
|
-
TableFilterModel.BuilderImp = BuilderImp;
|
|
8620
|
-
})(TableFilterModel || (TableFilterModel = {}));
|
|
8621
8599
|
|
|
8622
8600
|
/**
|
|
8623
8601
|
* @file Automatically generated by barrelsby.
|
|
@@ -10585,5 +10563,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
10585
10563
|
* Generated bundle index. Do not edit.
|
|
10586
10564
|
*/
|
|
10587
10565
|
|
|
10588
|
-
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent,
|
|
10566
|
+
export { ACTIVITY_DATA, ALERT_CONFIG, AUP_PLACE_CONFIG, AUP_UNAUTHORISED_PLACE_NOTICE_COMPONENT, AbstractActivityTriggerComponent, AbstractCardContainerComponent, AbstractConfirmDialogComponent, AbstractDialogComponent, AbstractInputComponent, AbstractInteractionContext, AbstractListInputComponent, AbstractPlaceNavigationComponent, AbstractPopStateNavigation, AbstractPopupMenuComponent, AbstractTableComponent, AbstractTableModel, AbstractValueInputComponent, Activity, ActivityActionsComponent, ActivityBodyComponent, ActivityContainerComponent, ActivityOutletComponent, ActivityRef, ActivityTitleComponent, AddCardActivityComponent, AddItemInteractionContextComponent, Alert, AlertDialogComponent, AngularUiPowerupsModule, AutocompleteInputComponent, Bounds, BusyOverlayComponent, CELL_EDITOR_PORTAL, CELL_RENDERER_PORTAL, CardContainerComponent, CardStackComponent, CellEditorPortalRef, CellHeaderPortalRef, CellPortalRef, CellRendererPortalRef, CheckboxInputComponent, ColumnListModel, ColumnModel, ColumnTemplateDirective, ColumnTextSearchFormatter, CommandComponent, CommandContainer, CommandDirective, CommandFace, CommandFaceComponent, ComponentCellRendererPortalRef, ComponentsModule, ConfirmThenDialogComponent, ConfirmThenExecuteDialogComponent, ConfirmationDialogComponent, ConsolidatedParameterMap, CustomTemplateColumnModel, CustomValueColumnModel, DEFINITION_META_DATA_KEY, DIALOG_INTERACTION_SERVICE_DEFAULTS, DecoratedTreeNode, DefaultCellRendererComponent, DefaultHeaderCellRendererComponent, DefaultTableFilterModel, DialogInteractionContext, DialogInteractionContextFactory, Dimension, DirectivesModule, DisposableComponent, EditRowControls, EditSession, EditorControlColumnModel, EmptyStateComponent, EnableCellTextSearch, EventCleanUpSession, FlattenedTreeListModel, FlexComponent, FocusBinding, FocusBindingDirective, FocusBindingFactory, FocusContainerComponent, FocusableComponent, Formatter, GarbageCollectorDirective, HEADER_CELL_RENDERER_PORTAL, HighlightPipe, HighlightTextModelDirective, HorizontalAlignment, IconComponent, InPlaceInteractionContextComponent, InlineActivityTriggerComponent, InlineEditorModel, InlineStringEditorComponent, InputActivity, InteractionContextTriggerFor, InteractionModule, InteractionService, InteractionServiceRoutingAdapter, Keys, LEFT_RIGHT_PLACE_ANIMATION, LabelledValueComponent, ListPlaceNavComponent, ListPropertyColumnModel, LoadingContainerComponent, MarkdownComponent, MarkdownService, ModalActivityTriggerComponent, ModalInteractionContextFactory, MoreMenuComponent, MultipleSelectInputComponent, Navigating, NavigatingDuringInteraction, NavigationContext, NavigationSession, NoopAuthGuard, NoopComponent, NotAuthorisedNoticeComponent, NumberInputComponent, POPUP_CONTAINER, PORTAL_EDITOR_COMPONENT, PORTAL_RENDERER_COMPONENT, PaginatorComponent, ParameterDefinition, PasswordInputComponent, Place, PlaceAccessGuard, PlaceComponent, PlaceComponentDeactivationHandler, PlaceDefinition, PlaceGuard, PlaceHistory, PlaceModule, PlaceOutletComponent, PlaceRouter, Point, PopStateDuringInteractionNavigation, PopStateNavigation, PopupActivityTriggerComponent, PopupAwareComponent, PopupInteractionContextComponent, PopupMenuComponent, PopupMenuRendererComponent, PropertyColumnModel, ROUTE_PARAMETER_LIST_KEY, RemoveLastInteractionFromUrlNavigationSession, ResizeAwareComponent, RouteId, ScrollContainerComponent, SectionHeaderComponent, SelectInputActivity, SelectInputComponent, SelectionCellComponent, SelectionColumnModel, SelectionHeaderCellComponent, SeparatorComponent, SidePlaceNavigationComponent, StringInputActivity, StringInputComponent, SwitchCaseComponent, SwitchCaseDefaultDirective, SwitchCaseOption, SwitchCaseWhenDirective, SynchroniseInteractionContextIdsWithRoute, TabbedPlaceNavigationComponent, TableBodyComponent, TableCellComponent, TableComponent, TableFilterModel, TableHeaderCellComponent, TableModel, TableRowMenuComponent, TemplateCellRendererPortalRef, TextInputComponent, ToolBarComponent, TrackBy, TreeExpansionModel, TreeInheritanceIconComponent, TreeLabelCellRendererComponent, TreeLabelColumnModel, TreeTableComponent, TreeTableModel, UrlService, UrlSnapshot, VerticalFocusContainerComponent, VisibilityService, Visit, VisitParameter, VisitParameterList, VisitSanitiser, WaitUntilLeavingInteractionTransitionCancelled, WaitUntilLinkTriggeredNavigationInteractionCancellationTypeDetermined, WaitUntilPopStateDuringCanDeactivateInteractionFinishes, leftRightPlaceAnimation, markdownPillExtension, slideDownOnEnterAnimation, slideRightOnEnterAnimation, treeNodeDecorator };
|
|
10589
10567
|
//# sourceMappingURL=coolon-angular-ui-powerups.mjs.map
|