@coolon/angular-ui-powerups 16.1.0-aplpha.89 → 16.1.0-aplpha.9
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/assets/activities/input-activities.scss +2 -10
- package/assets/form.scss +27 -62
- package/assets/table.scss +24 -13
- package/assets/tabs.scss +6 -2
- package/esm2022/lib/animations/slide-animations.mjs +1 -6
- package/esm2022/lib/components/cards/card-container/card-container.component.mjs +4 -4
- package/esm2022/lib/components/commands/command/command.component.mjs +10 -24
- package/esm2022/lib/components/commands/command-face/command-face.component.mjs +3 -11
- package/esm2022/lib/components/commands/command-face.mjs +11 -11
- package/esm2022/lib/components/commands/group/popup-menu/abstract-popup-menu.component.mjs +11 -11
- package/esm2022/lib/components/commands/group/tool-bar/tool-bar.component.mjs +4 -6
- package/esm2022/lib/components/components.module.mjs +8 -22
- package/esm2022/lib/components/disposable-component.mjs +37 -19
- package/esm2022/lib/components/exports.mjs +2 -6
- package/esm2022/lib/components/forms/abstract-input.component.mjs +12 -55
- package/esm2022/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/checkbox-input/checkbox-input.component.mjs +3 -3
- package/esm2022/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +2 -2
- package/esm2022/lib/components/forms/number-input/number-input.component.mjs +10 -49
- package/esm2022/lib/components/forms/password-input/password-input.component.mjs +3 -40
- package/esm2022/lib/components/forms/select-input/select-input.component.mjs +10 -11
- package/esm2022/lib/components/forms/string-input/string-input.component.mjs +9 -21
- package/esm2022/lib/components/icon/icon.component.mjs +4 -7
- package/esm2022/lib/components/resize-aware.component.mjs +24 -61
- package/esm2022/lib/components/switch-case/switch-case.component.mjs +7 -5
- package/esm2022/lib/components/tables/abstract-table-model.mjs +25 -42
- package/esm2022/lib/components/tables/abstract-table.component.mjs +5 -19
- package/esm2022/lib/components/tables/column/column-list-model.mjs +44 -0
- package/esm2022/lib/components/tables/column/column-model.mjs +3 -13
- package/esm2022/lib/components/tables/column/custom-template-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/custom-value-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/editor-controls-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/list-propery-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/property-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/column/selection-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/editor/edit-session.mjs +2 -4
- package/esm2022/lib/components/tables/filter/table-filter-model.mjs +2 -4
- package/esm2022/lib/components/tables/filter/text-search-predicate.mjs +2 -16
- package/esm2022/lib/components/tables/renderer/default-cell-renderer/default-cell-renderer.component.mjs +3 -3
- package/esm2022/lib/components/tables/renderer/table-body/table-body.component.mjs +41 -132
- package/esm2022/lib/components/tables/renderer/table-more-menu/table-more-menu.component.mjs +2 -7
- package/esm2022/lib/components/tables/table/table.component.mjs +68 -19
- package/esm2022/lib/components/tables/tree-table/decorated-tree-node.mjs +4 -5
- package/esm2022/lib/components/tables/tree-table/tree-label-column-model.mjs +3 -3
- package/esm2022/lib/components/tables/tree-table/tree-table-component.mjs +4 -7
- package/esm2022/lib/components/tables/tree-table/tree-table-model.mjs +3 -3
- package/esm2022/lib/components/text/markdown/markdown.component.mjs +2 -2
- package/esm2022/lib/directives/directives.module.mjs +1 -1
- package/esm2022/lib/directives/exports.mjs +1 -2
- package/esm2022/lib/directives/highlight.pipe.mjs +2 -2
- package/esm2022/lib/interaction/activity.mjs +4 -3
- package/esm2022/lib/interaction/alert.mjs +2 -2
- package/esm2022/lib/interaction/components/abstract-confirm-dialog.component.mjs +4 -8
- package/esm2022/lib/interaction/components/activity-actions/activity-actions.component.mjs +9 -7
- package/esm2022/lib/interaction/components/activity-container/activity-container.component.mjs +11 -28
- package/esm2022/lib/interaction/components/activity-title/activity-title.component.mjs +4 -4
- package/esm2022/lib/interaction/components/editors/edit-context.mjs +1 -1
- package/esm2022/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +2 -2
- package/esm2022/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.mjs +3 -3
- package/esm2022/lib/interaction/components/input-activities/input-activity.mjs +2 -2
- package/esm2022/lib/interaction/components/input-activities/select-input-activity.mjs +1 -3
- package/esm2022/lib/interaction/components/input-activities/string-input-activity.mjs +4 -8
- package/esm2022/lib/interaction/directives/interaction-context-trigger-for.directive.mjs +2 -2
- package/esm2022/lib/interaction/exports.mjs +1 -2
- package/esm2022/lib/interaction/interaction.module.mjs +9 -7
- package/esm2022/lib/place/components/list-place-nav/list-place-nav.component.mjs +4 -3
- package/esm2022/lib/place/components/place-outlet/place-outlet.component.mjs +9 -7
- package/esm2022/lib/place/components/side-place-navigation/side-place-navigation.component.mjs +2 -2
- package/esm2022/lib/place/guards/consolidated-param-map.mjs +4 -4
- package/esm2022/lib/place/navigation/place-component-deactivation-handler.mjs +2 -2
- package/esm2022/lib/place/navigation/session/interactions/synchronise-interaction-context-ids-with-route.mjs +6 -3
- package/esm2022/lib/place/place-component.mjs +7 -7
- package/esm2022/lib/place/place-definition.mjs +3 -3
- package/esm2022/lib/place/place-history.mjs +2 -2
- package/esm2022/lib/place/place.decorator.mjs +2 -2
- package/esm2022/lib/place/place.module.mjs +5 -1
- package/esm2022/lib/place/route/formatter.mjs +2 -2
- package/esm2022/lib/place/route/parameter-decorators.mjs +50 -54
- package/esm2022/lib/place/route/parameter-definition.mjs +2 -2
- package/esm2022/lib/place/url-snapshot.mjs +3 -3
- package/esm2022/lib/place/visit-segment.mjs +2 -2
- package/esm2022/lib/place/visit.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +488 -1078
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/animations/slide-animations.d.ts +0 -1
- package/lib/components/cards/card-container/card-container.component.d.ts +1 -1
- package/lib/components/commands/command/command.component.d.ts +1 -2
- package/lib/components/commands/command-face/command-face.component.d.ts +0 -2
- package/lib/components/commands/command-face.d.ts +7 -5
- package/lib/components/commands/group/popup-menu/abstract-popup-menu.component.d.ts +2 -2
- package/lib/components/commands/group/tool-bar/tool-bar.component.d.ts +1 -1
- package/lib/components/components.module.d.ts +53 -55
- package/lib/components/disposable-component.d.ts +8 -11
- package/lib/components/exports.d.ts +1 -5
- package/lib/components/forms/abstract-input.component.d.ts +5 -13
- package/lib/components/forms/number-input/number-input.component.d.ts +4 -8
- package/lib/components/forms/password-input/password-input.component.d.ts +1 -7
- package/lib/components/forms/select-input/select-input.component.d.ts +3 -4
- package/lib/components/forms/string-input/string-input.component.d.ts +1 -3
- package/lib/components/resize-aware.component.d.ts +5 -24
- package/lib/components/switch-case/switch-case.component.d.ts +3 -2
- package/lib/components/tables/abstract-table-model.d.ts +5 -10
- package/lib/components/tables/abstract-table.component.d.ts +2 -3
- package/lib/components/tables/column/column-list-model.d.ts +13 -0
- package/lib/components/tables/column/column-model.d.ts +1 -5
- package/lib/components/tables/column/custom-template-column-model.d.ts +1 -2
- package/lib/components/tables/column/custom-value-column-model.d.ts +1 -2
- package/lib/components/tables/column/editor-controls-column-model.d.ts +1 -2
- package/lib/components/tables/column/list-propery-column-model.d.ts +1 -2
- package/lib/components/tables/column/property-column-model.d.ts +1 -2
- package/lib/components/tables/column/selection-column-model.d.ts +1 -2
- package/lib/components/tables/filter/text-search-predicate.d.ts +0 -9
- package/lib/components/tables/renderer/table-body/table-body.component.d.ts +16 -35
- package/lib/components/tables/renderer/table-more-menu/table-more-menu.component.d.ts +1 -2
- package/lib/components/tables/table/table.component.d.ts +10 -5
- package/lib/components/tables/tree-table/tree-label-column-model.d.ts +1 -2
- package/lib/components/tables/tree-table/tree-table-component.d.ts +0 -3
- package/lib/directives/exports.d.ts +0 -1
- package/lib/interaction/activity.d.ts +2 -2
- package/lib/interaction/components/abstract-confirm-dialog.component.d.ts +0 -1
- package/lib/interaction/components/activity-actions/activity-actions.component.d.ts +3 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -7
- package/lib/interaction/components/activity-title/activity-title.component.d.ts +1 -1
- package/lib/interaction/components/editors/edit-context.d.ts +1 -1
- package/lib/interaction/components/inplace-interaction-context/in-place-interaction-context.component.d.ts +1 -1
- package/lib/interaction/exports.d.ts +0 -1
- package/lib/interaction/interaction.module.d.ts +28 -28
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +4 -3
- package/lib/place/place-component.d.ts +4 -4
- package/lib/place/place.module.d.ts +5 -4
- package/package.json +5 -7
- package/esm2022/lib/components/forms/form-field.mjs +0 -2
- package/esm2022/lib/components/forms/search-input/search-input.component.mjs +0 -33
- package/esm2022/lib/components/loadable-component.mjs +0 -49
- package/esm2022/lib/components/tables/column/column-manager.mjs +0 -81
- package/esm2022/lib/components/tables/column/column-order-manager.mjs +0 -19
- package/esm2022/lib/directives/resize-observer.directive.mjs +0 -40
- package/esm2022/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.mjs +0 -129
- package/lib/components/forms/form-field.d.ts +0 -5
- package/lib/components/forms/search-input/search-input.component.d.ts +0 -10
- package/lib/components/loadable-component.d.ts +0 -17
- package/lib/components/tables/column/column-manager.d.ts +0 -19
- package/lib/components/tables/column/column-order-manager.d.ts +0 -20
- package/lib/directives/resize-observer.directive.d.ts +0 -16
- package/lib/interaction/components/slide-down-interaction-context/slide-down-interaction-context.component.d.ts +0 -53
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const slideDownOnEnterAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
|
-
export declare const slideDownWhenOpenAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
3
2
|
export declare const slideRightOnEnterAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
3
|
export declare const slideDownAndRightOnEnterAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
@@ -78,7 +78,7 @@ export declare class CardContainerComponent extends AbstractCardContainerCompone
|
|
|
78
78
|
get isSingleColumn(): boolean;
|
|
79
79
|
protected updateColumnCountStyles(): void;
|
|
80
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardContainerComponent, never>;
|
|
81
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CardContainerComponent, "aup-card-container", never, { "columnCount": { "alias": "columnCount"; "required": false; }; "enableScroll": { "alias": "enableScroll"; "required": false; }; }, {}, never, ["[card-container-header]
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardContainerComponent, "aup-card-container", never, { "columnCount": { "alias": "columnCount"; "required": false; }; "enableScroll": { "alias": "enableScroll"; "required": false; }; }, {}, never, ["[card-container-header]", "*", "[card-container-footer]"], false, never>;
|
|
82
82
|
}
|
|
83
83
|
export declare namespace CardContainerComponent {
|
|
84
84
|
interface ColumnConfiguration {
|
|
@@ -24,10 +24,9 @@ export declare class CommandComponent extends PopupAwareComponent {
|
|
|
24
24
|
private activeFace$;
|
|
25
25
|
readonly iconOnly$: BooleanValueModelChain;
|
|
26
26
|
readonly tooltip$: ValueModelChain<string>;
|
|
27
|
-
readonly visible$: ValueModelChain<boolean>;
|
|
28
27
|
constructor(element: ElementRef, parent?: PopupContainer);
|
|
29
|
-
get cssDisplayProperty(): string;
|
|
30
28
|
isActive(face: CommandFace): boolean;
|
|
29
|
+
getFace(): CommandFace | undefined;
|
|
31
30
|
requestFocus(): void;
|
|
32
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommandComponent, [null, { optional: true; }]>;
|
|
33
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommandComponent, "aup-command", never, { "command": { "alias": "command"; "required": false; }; "face$": { "alias": "face$"; "required": false; }; "face": { "alias": "face"; "required": false; }; "busyFace$": { "alias": "busyFace$"; "required": false; }; "busyFace": { "alias": "busyFace"; "required": false; }; "alignFace": { "alias": "alignFace"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -15,7 +15,6 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
export declare class CommandFaceComponent<T> extends DisposableComponent {
|
|
16
16
|
private readonly faces$;
|
|
17
17
|
accessor _rawFaces: CommandFace[] | ReadonlyArray<CommandFace>;
|
|
18
|
-
private hasTextAndLeadingIcon$;
|
|
19
18
|
set face(face: CommandFace);
|
|
20
19
|
ignoreIcon: boolean;
|
|
21
20
|
ignoreText: boolean;
|
|
@@ -29,7 +28,6 @@ export declare class CommandFaceComponent<T> extends DisposableComponent {
|
|
|
29
28
|
hasIconStart(face: CommandFace.Adapter): boolean;
|
|
30
29
|
hasIconEnd(face: CommandFace.Adapter): boolean;
|
|
31
30
|
get color(): string;
|
|
32
|
-
get hasTextAndIcon(): boolean;
|
|
33
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommandFaceComponent<any>, never>;
|
|
34
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<CommandFaceComponent<any>, "aup-command-face", never, { "_rawFaces": { "alias": "faces"; "required": false; }; "face": { "alias": "face"; "required": false; }; "ignoreIcon": { "alias": "ignoreIcon"; "required": false; }; "ignoreText": { "alias": "ignoreText"; "required": false; }; "includeMissingIconInLayout": { "alias": "includeMissingIconInLayout"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
33
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Enum } from 'typescript-string-enums';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export interface CommandFace {
|
|
3
|
+
text?(): string;
|
|
4
|
+
icon?(): string;
|
|
5
|
+
iconPosition?(): string;
|
|
6
|
+
tooltip?(): string;
|
|
7
|
+
color?(): string;
|
|
8
|
+
style?(): string;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace CommandFace {
|
|
9
11
|
enum Position {
|
|
@@ -15,8 +15,8 @@ export declare class AbstractPopupMenuComponent extends PopupAwareComponent impl
|
|
|
15
15
|
xPosition: 'before' | 'after';
|
|
16
16
|
yPosition: 'above' | 'below';
|
|
17
17
|
triggers: QueryList<MatMenuTrigger>;
|
|
18
|
-
accessor enabled$: ValueModel<boolean>;
|
|
19
18
|
accessor enabled: boolean;
|
|
19
|
+
accessor enabled$: ValueModel<boolean>;
|
|
20
20
|
readonly children: ListModelChain<PopupAwareComponent>;
|
|
21
21
|
readonly faces$: ListModelChain<CommandFace>;
|
|
22
22
|
constructor(element: ElementRef, parent?: PopupContainer);
|
|
@@ -27,5 +27,5 @@ export declare class AbstractPopupMenuComponent extends PopupAwareComponent impl
|
|
|
27
27
|
onCommandFired(): void;
|
|
28
28
|
getFace(): CommandFace | undefined;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractPopupMenuComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractPopupMenuComponent, "aup-abstract-popup-menu", never, { "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "enabled
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractPopupMenuComponent, "aup-abstract-popup-menu", never, { "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "enabled$": { "alias": "enabled$"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
31
|
}
|
|
@@ -6,6 +6,6 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class ToolBarComponent extends CommandContainer {
|
|
7
7
|
constructor(parent: CommandContainer);
|
|
8
8
|
get orientation(): CommandContainer.Orientation;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarComponent,
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolBarComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<ToolBarComponent, "aup-tool-bar", never, {}, {}, never, ["*"], false, never>;
|
|
11
11
|
}
|
|
@@ -18,64 +18,62 @@ import * as i16 from "./vertical-focus-container/vertical-focus-container.compon
|
|
|
18
18
|
import * as i17 from "./focusable.component";
|
|
19
19
|
import * as i18 from "./cards/card-container/card-container.component";
|
|
20
20
|
import * as i19 from "./tables/table/table.component";
|
|
21
|
-
import * as i20 from "./tables/
|
|
22
|
-
import * as i21 from "./tables/
|
|
23
|
-
import * as i22 from "./tables/
|
|
24
|
-
import * as i23 from "./tables/renderer/
|
|
25
|
-
import * as i24 from "./tables/renderer/
|
|
26
|
-
import * as i25 from "./tables/renderer/
|
|
27
|
-
import * as i26 from "./tables/renderer/
|
|
28
|
-
import * as i27 from "./tables/renderer/
|
|
29
|
-
import * as i28 from "./
|
|
30
|
-
import * as i29 from "./
|
|
31
|
-
import * as i30 from "./
|
|
32
|
-
import * as i31 from "./
|
|
33
|
-
import * as i32 from "./commands/
|
|
34
|
-
import * as i33 from "./commands/
|
|
35
|
-
import * as i34 from "./commands/
|
|
36
|
-
import * as i35 from "./commands/
|
|
37
|
-
import * as i36 from "./commands/
|
|
38
|
-
import * as i37 from "./commands/
|
|
39
|
-
import * as i38 from "./commands/
|
|
40
|
-
import * as i39 from "./commands/group/popup-menu/
|
|
41
|
-
import * as i40 from "./
|
|
42
|
-
import * as i41 from "./tables/tree-table/tree-
|
|
43
|
-
import * as i42 from "./tables/tree-table/tree-
|
|
44
|
-
import * as i43 from "./
|
|
45
|
-
import * as i44 from "./
|
|
46
|
-
import * as i45 from "./
|
|
47
|
-
import * as i46 from "./tables/
|
|
48
|
-
import * as i47 from "./
|
|
49
|
-
import * as i48 from "./
|
|
50
|
-
import * as i49 from "./
|
|
51
|
-
import * as i50 from "./
|
|
52
|
-
import * as i51 from "./
|
|
21
|
+
import * as i20 from "./tables/editor/edit-row-controls/edit-row-controls.component";
|
|
22
|
+
import * as i21 from "./tables/column/column-template/column-template.directive";
|
|
23
|
+
import * as i22 from "./tables/renderer/default-cell-renderer/default-cell-renderer.component";
|
|
24
|
+
import * as i23 from "./tables/renderer/table-cell/table-cell.component";
|
|
25
|
+
import * as i24 from "./tables/renderer/selection-cell/selection-cell.component";
|
|
26
|
+
import * as i25 from "./tables/renderer/select-header-cell/selection-header-cell.component";
|
|
27
|
+
import * as i26 from "./tables/renderer/default-header-cell-renderer/default-header-cell-renderer.component";
|
|
28
|
+
import * as i27 from "./tables/renderer/table-header-cell/table-header-cell.component";
|
|
29
|
+
import * as i28 from "./icon/icon.component";
|
|
30
|
+
import * as i29 from "./section-header/section-header.component";
|
|
31
|
+
import * as i30 from "./tables/table-row-menu/table-row-menu.component";
|
|
32
|
+
import * as i31 from "./commands/group/tool-bar/tool-bar.component";
|
|
33
|
+
import * as i32 from "./commands/command/command.component";
|
|
34
|
+
import * as i33 from "./commands/group/popup-menu/popup-menu.component";
|
|
35
|
+
import * as i34 from "./commands/command-face/command-face.component";
|
|
36
|
+
import * as i35 from "./commands/group/popup-menu/more-menu.component";
|
|
37
|
+
import * as i36 from "./commands/separator.component";
|
|
38
|
+
import * as i37 from "./commands/flex.component";
|
|
39
|
+
import * as i38 from "./commands/group/popup-menu/abstract-popup-menu.component";
|
|
40
|
+
import * as i39 from "./commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component";
|
|
41
|
+
import * as i40 from "./tables/tree-table/tree-table-component";
|
|
42
|
+
import * as i41 from "./tables/tree-table/tree-inheritance-icon/tree-inheritance-icon.component";
|
|
43
|
+
import * as i42 from "./tables/tree-table/tree-label-cell-renderer/tree-label-cell-renderer.component";
|
|
44
|
+
import * as i43 from "./busy-overlay/busy-overlay.component";
|
|
45
|
+
import * as i44 from "./empty-state/empty-state.component";
|
|
46
|
+
import * as i45 from "./tables/paginator/paginator.component";
|
|
47
|
+
import * as i46 from "./tables/abstract-table.component";
|
|
48
|
+
import * as i47 from "./cards/abstract-card-container.component";
|
|
49
|
+
import * as i48 from "./labelled-value/labelled-value.component";
|
|
50
|
+
import * as i49 from "./loading-container/loading-container.component";
|
|
51
|
+
import * as i50 from "./text/markdown/markdown.component";
|
|
52
|
+
import * as i51 from "./tables/renderer/table-body/table-body.component";
|
|
53
53
|
import * as i52 from "./tables/renderer/table-more-menu/table-more-menu.component";
|
|
54
54
|
import * as i53 from "./tables/renderer/table-more-menu/table-more-menu-popup/table-more-menu-popup.component";
|
|
55
|
-
import * as i54 from "
|
|
56
|
-
import * as i55 from "@angular/
|
|
57
|
-
import * as i56 from "@angular/
|
|
58
|
-
import * as i57 from "@angular/
|
|
59
|
-
import * as i58 from "@angular/material/
|
|
60
|
-
import * as i59 from "@angular/material/
|
|
61
|
-
import * as i60 from "@angular/material/
|
|
62
|
-
import * as i61 from "
|
|
63
|
-
import * as i62 from "
|
|
64
|
-
import * as i63 from "@angular/material/
|
|
65
|
-
import * as i64 from "@angular/material/
|
|
66
|
-
import * as i65 from "@angular/material/
|
|
67
|
-
import * as i66 from "@angular/
|
|
68
|
-
import * as i67 from "@angular/cdk/
|
|
69
|
-
import * as i68 from "@angular/
|
|
70
|
-
import * as i69 from "@angular/material/
|
|
71
|
-
import * as i70 from "@angular/material/
|
|
72
|
-
import * as i71 from "@angular/material/
|
|
73
|
-
import * as i72 from "@angular/material/
|
|
74
|
-
import * as i73 from "@angular/material/progress-
|
|
75
|
-
import * as i74 from "@angular/material/progress-bar";
|
|
76
|
-
import * as i75 from "ng-table-virtual-scroll";
|
|
55
|
+
import * as i54 from "@angular/common";
|
|
56
|
+
import * as i55 from "@angular/platform-browser/animations";
|
|
57
|
+
import * as i56 from "@angular/forms";
|
|
58
|
+
import * as i57 from "@angular/material/input";
|
|
59
|
+
import * as i58 from "@angular/material/form-field";
|
|
60
|
+
import * as i59 from "@angular/material/select";
|
|
61
|
+
import * as i60 from "@angular/material/tabs";
|
|
62
|
+
import * as i61 from "../directives/directives.module";
|
|
63
|
+
import * as i62 from "@angular/material/icon";
|
|
64
|
+
import * as i63 from "@angular/material/button";
|
|
65
|
+
import * as i64 from "@angular/material/checkbox";
|
|
66
|
+
import * as i65 from "@angular/material/table";
|
|
67
|
+
import * as i66 from "@angular/cdk/portal";
|
|
68
|
+
import * as i67 from "@angular/cdk/scrolling";
|
|
69
|
+
import * as i68 from "@angular/material/tooltip";
|
|
70
|
+
import * as i69 from "@angular/material/autocomplete";
|
|
71
|
+
import * as i70 from "@angular/material/menu";
|
|
72
|
+
import * as i71 from "@angular/material/divider";
|
|
73
|
+
import * as i72 from "@angular/material/progress-spinner";
|
|
74
|
+
import * as i73 from "@angular/material/progress-bar";
|
|
77
75
|
export declare class ComponentsModule {
|
|
78
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
|
79
|
-
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.
|
|
77
|
+
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.EditRowControlsComponent, 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.TableRowMenuComponent, 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 i51.TableBodyComponent, typeof i52.TableMoreMenuComponent, typeof i53.TableMoreMenuPopupComponent], [typeof i54.CommonModule, typeof i55.BrowserAnimationsModule, typeof i56.FormsModule, typeof i57.MatInputModule, typeof i58.MatFormFieldModule, typeof i59.MatSelectModule, typeof i60.MatTabsModule, typeof i61.DirectivesModule, typeof i62.MatIconModule, typeof i63.MatButtonModule, typeof i64.MatCheckboxModule, typeof i65.MatTableModule, typeof i66.PortalModule, typeof i67.CdkScrollableModule, typeof i68.MatTooltipModule, typeof i69.MatAutocompleteModule, typeof i70.MatMenuModule, typeof i71.MatDividerModule, typeof i72.MatProgressSpinnerModule, typeof i73.MatProgressBarModule], [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 i20.EditRowControlsComponent, typeof i21.ColumnTemplateDirective, typeof i28.IconComponent, typeof i29.SectionHeaderComponent, typeof i30.TableRowMenuComponent, 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 i52.TableMoreMenuComponent, typeof i53.TableMoreMenuPopupComponent]>;
|
|
80
78
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
|
81
79
|
}
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GarbageCollector
|
|
1
|
+
import { OnDestroy, OnInit, ProviderToken } from '@angular/core';
|
|
2
|
+
import { GarbageCollector } from '@coolon/pectin';
|
|
3
|
+
import { Loadable } from "./types/loadable";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DisposableComponent extends GarbageCollector implements OnInit, OnDestroy {
|
|
5
6
|
#private;
|
|
6
7
|
readonly trackById: import("@angular/core").TrackByFunction<any>;
|
|
7
|
-
protected readonly cdr: ChangeDetectorRef;
|
|
8
8
|
protected onInit(callback: () => void): void;
|
|
9
|
+
get loaded$(): import("@coolon/pectin").ValueModel<boolean>;
|
|
9
10
|
ngOnInit(): void;
|
|
10
|
-
ngOnDestroy(): void;
|
|
11
11
|
protected inject<T>(token: ProviderToken<T>): T;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* @protected
|
|
17
|
-
*/
|
|
18
|
-
protected trackChangesAndMarkForCheck(...models: HasValue<any>[]): void;
|
|
12
|
+
protected injectLoadable<T extends Loadable>(token: ProviderToken<T>, options?: {
|
|
13
|
+
wait: boolean;
|
|
14
|
+
}): T;
|
|
15
|
+
ngOnDestroy(): void;
|
|
19
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DisposableComponent, never>;
|
|
20
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DisposableComponent, never, never, {}, {}, never, never, false, never>;
|
|
21
18
|
}
|
|
@@ -5,7 +5,6 @@ export * from "./alignment";
|
|
|
5
5
|
export * from "./components.module";
|
|
6
6
|
export * from "./disposable-component";
|
|
7
7
|
export * from "./focusable.component";
|
|
8
|
-
export * from "./loadable-component";
|
|
9
8
|
export * from "./resize-aware.component";
|
|
10
9
|
export * from "./track";
|
|
11
10
|
export * from "./busy-overlay/busy-overlay.component";
|
|
@@ -29,13 +28,11 @@ export * from "./focus-container/focus-container.component";
|
|
|
29
28
|
export * from "./forms/abstract-input.component";
|
|
30
29
|
export * from "./forms/abstract-list-input.component";
|
|
31
30
|
export * from "./forms/abstract-value-input.component";
|
|
32
|
-
export * from "./forms/form-field";
|
|
33
31
|
export * from "./forms/autocomplete-input/autocomplete-input.component";
|
|
34
32
|
export * from "./forms/checkbox-input/checkbox-input.component";
|
|
35
33
|
export * from "./forms/multiple-select-input/multiple-select-input.component";
|
|
36
34
|
export * from "./forms/number-input/number-input.component";
|
|
37
35
|
export * from "./forms/password-input/password-input.component";
|
|
38
|
-
export * from "./forms/search-input/search-input.component";
|
|
39
36
|
export * from "./forms/select-input/select-input.component";
|
|
40
37
|
export * from "./forms/string-input/string-input.component";
|
|
41
38
|
export * from "./forms/text-input/text-input.component";
|
|
@@ -48,9 +45,8 @@ export * from "./section-header/section-header.component";
|
|
|
48
45
|
export * from "./switch-case/switch-case.component";
|
|
49
46
|
export * from "./tables/abstract-table-model";
|
|
50
47
|
export * from "./tables/abstract-table.component";
|
|
51
|
-
export * from "./tables/column/column-
|
|
48
|
+
export * from "./tables/column/column-list-model";
|
|
52
49
|
export * from "./tables/column/column-model";
|
|
53
|
-
export * from "./tables/column/column-order-manager";
|
|
54
50
|
export * from "./tables/column/column-text-properties";
|
|
55
51
|
export * from "./tables/column/custom-template-column-model";
|
|
56
52
|
export * from "./tables/column/custom-value-column-model";
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
3
|
import { FloatLabelType } from "@angular/material/form-field";
|
|
4
|
-
import { Command, Disposable, EventListenerList, FocusManager, IMutableHasValue, ListModel,
|
|
4
|
+
import { Command, Disposable, EventListenerList, FocusManager, IMutableHasValue, ListModel, ValueModel } from '@coolon/pectin';
|
|
5
5
|
import { DisposableComponent } from '../disposable-component';
|
|
6
|
-
import { FormField } from "./form-field";
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
interface InputModel<T> extends IMutableHasValue<T>, Disposable {
|
|
9
8
|
value: T;
|
|
@@ -24,12 +23,10 @@ export declare class AbstractInputComponent<T> extends DisposableComponent {
|
|
|
24
23
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
25
24
|
*/
|
|
26
25
|
protected readonly formValue$: InputModel<T>;
|
|
27
|
-
|
|
28
|
-
accessor i18n: FormField;
|
|
29
|
-
_label: string;
|
|
26
|
+
label: string;
|
|
30
27
|
userFloatLabel: FloatLabelType;
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
hint: string;
|
|
29
|
+
placeholder: string;
|
|
33
30
|
dense: boolean;
|
|
34
31
|
private readonly _enabled$;
|
|
35
32
|
set enabled$(condition$: ValueModel<boolean>);
|
|
@@ -53,14 +50,10 @@ export declare class AbstractInputComponent<T> extends DisposableComponent {
|
|
|
53
50
|
protected safelyInvoke(command: Command<any>): void;
|
|
54
51
|
constructor(formValue$: InputModel<T>);
|
|
55
52
|
isEnabled(): boolean;
|
|
56
|
-
get disabled(): boolean;
|
|
57
53
|
hasErrors(): boolean;
|
|
58
54
|
get errorList$(): ListModel<string>;
|
|
59
55
|
get firstError(): string;
|
|
60
56
|
get focusContext(): FocusManager.Context;
|
|
61
|
-
get label(): string;
|
|
62
|
-
get hint(): string;
|
|
63
|
-
get placeholder(): string;
|
|
64
57
|
get floatLabel(): FloatLabelType;
|
|
65
58
|
get showHint(): boolean;
|
|
66
59
|
/**
|
|
@@ -68,8 +61,7 @@ export declare class AbstractInputComponent<T> extends DisposableComponent {
|
|
|
68
61
|
* @param callback
|
|
69
62
|
*/
|
|
70
63
|
onValueEdited(callback: (is: T, was: T) => void): Disposable;
|
|
71
|
-
protected hackyGetI18n(key: keyof FormField): string;
|
|
72
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractInputComponent<any>, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractInputComponent<any>, "ng-component", never, { "
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractInputComponent<any>, "ng-component", never, { "label": { "alias": "label"; "required": false; }; "userFloatLabel": { "alias": "floatLabel"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "enabled$": { "alias": "enabled$"; "required": false; }; "focusCommand": { "alias": "command.focus"; "required": false; }; "blurCommand": { "alias": "command.blur"; "required": false; }; "enterCommand": { "alias": "command.enter"; "required": false; }; "escapeCommand": { "alias": "command.escape"; "required": false; }; "clickCommand": { "alias": "command.click"; "required": false; }; }, { "focus": "focus"; "blur": "blur"; "enterKey": "enterKey"; "escapeKey": "escapeKey"; }, never, never, false, never>;
|
|
74
66
|
}
|
|
75
67
|
export {};
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { Command, ValueModel } from "@coolon/pectin";
|
|
2
1
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class NumberInputComponent extends AbstractValueInputComponent<number> {
|
|
5
4
|
autocomplete: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
accessor max: number;
|
|
10
|
-
protected readonly incrementCommand: Command<void>;
|
|
11
|
-
protected readonly decrementCommand: Command<void>;
|
|
5
|
+
min: number;
|
|
6
|
+
max: number;
|
|
7
|
+
iconPrefix: string;
|
|
12
8
|
constructor();
|
|
13
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "aup-number-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "min
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "aup-number-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "iconPrefix": { "alias": "iconPrefix"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
11
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { Command, MutableValueModel, ValueModel } from "@coolon/pectin";
|
|
2
1
|
import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class PasswordInputComponent extends AbstractValueInputComponent<string> {
|
|
5
4
|
autocomplete: string;
|
|
6
|
-
accessor enableShowPassword$: ValueModel<boolean>;
|
|
7
|
-
accessor enableShowPassword: boolean;
|
|
8
|
-
protected readonly showPassword$: MutableValueModel<boolean>;
|
|
9
|
-
protected readonly toggleShowPasswordCommand: Command<void>;
|
|
10
5
|
constructor();
|
|
11
|
-
get fieldType(): "text" | "password";
|
|
12
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "aup-password-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; };
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "aup-password-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
8
|
}
|
|
@@ -4,10 +4,9 @@ import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* Using templates:
|
|
7
|
-
* <aup-select-input [
|
|
7
|
+
* <aup-select-input [valueModel]="myModel" [options]="myOptions">
|
|
8
8
|
* <ng-template #optionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
9
|
-
* <ng-template #
|
|
10
|
-
* <ng-template #nilOptionTemplate>Uses the placeholder by default but you can customise it</ng-template>
|
|
9
|
+
* <ng-template #nilOptionTemplate let-option>{{option.thePropertyYouWant}}</ng-template>
|
|
11
10
|
* </aup-select_input>
|
|
12
11
|
*/
|
|
13
12
|
export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
|
|
@@ -28,5 +27,5 @@ export declare class SelectInputComponent<T = any> extends AbstractValueInputCom
|
|
|
28
27
|
select(item: T): void;
|
|
29
28
|
ngOnInit(): void;
|
|
30
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectInputComponent<any>, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectInputComponent<any>, "aup-select-input", never, { "options$": { "alias": "options$"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "allowNil": { "alias": "allowNil"; "required": false; }; "optionLabelFormat": { "alias": "optionLabelFormat"; "required": false; }; }, {}, ["selectedOptionTemplateRef", "optionTemplateRef", "nilOptionTemplateRef"],
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectInputComponent<any>, "aup-select-input", never, { "options$": { "alias": "options$"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "allowNil": { "alias": "allowNil"; "required": false; }; "optionLabelFormat": { "alias": "optionLabelFormat"; "required": false; }; }, {}, ["selectedOptionTemplateRef", "optionTemplateRef", "nilOptionTemplateRef"], never, false, never>;
|
|
32
31
|
}
|
|
@@ -6,10 +6,8 @@ export declare class StringInputComponent extends AbstractValueInputComponent<st
|
|
|
6
6
|
accessor enableClear$: ValueModel<boolean>;
|
|
7
7
|
accessor enableClear: boolean;
|
|
8
8
|
iconPrefix: string;
|
|
9
|
-
accessor suffixCommand: Command;
|
|
10
9
|
readonly clearCommand: Command<void>;
|
|
11
10
|
constructor();
|
|
12
|
-
get hasSuffixCommand(): boolean;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringInputComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent, "aup-string-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "enableClear$": { "alias": "enableClear$"; "required": false; }; "enableClear": { "alias": "enableClear"; "required": false; }; "iconPrefix": { "alias": "iconPrefix"; "required": false; };
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent, "aup-string-input", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "enableClear$": { "alias": "enableClear$"; "required": false; }; "enableClear": { "alias": "enableClear"; "required": false; }; "iconPrefix": { "alias": "iconPrefix"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
13
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, NgZone } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from './disposable-component';
|
|
4
4
|
import { Bounds } from './types/bounds.class';
|
|
5
5
|
import { Point } from './types/point.class';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ResizeAwareComponent extends DisposableComponent implements AfterViewInit {
|
|
8
|
-
protected readonly elementRef: ElementRef
|
|
8
|
+
protected readonly elementRef: ElementRef;
|
|
9
9
|
protected readonly ngZone: NgZone;
|
|
10
|
-
|
|
10
|
+
private _bounds$;
|
|
11
|
+
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
11
12
|
ngAfterViewInit(): void;
|
|
12
13
|
get bounds$(): ValueModel<Bounds>;
|
|
13
14
|
get nativeElement(): any;
|
|
@@ -16,29 +17,9 @@ export declare class ResizeAwareComponent extends DisposableComponent implements
|
|
|
16
17
|
y: number;
|
|
17
18
|
} | MouseEvent): Point;
|
|
18
19
|
get bounds(): Bounds;
|
|
20
|
+
private _updateBounds;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeAwareComponent, never>;
|
|
20
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeAwareComponent, never, never, {}, {}, never, never, false, never>;
|
|
21
23
|
}
|
|
22
24
|
export declare namespace ResizeAwareComponent {
|
|
23
|
-
class ResizeTracker extends GarbageCollector {
|
|
24
|
-
protected readonly elementRef: ElementRef;
|
|
25
|
-
protected readonly ngZone: NgZone;
|
|
26
|
-
private _bounds$;
|
|
27
|
-
readonly width$: ValueModel<number>;
|
|
28
|
-
readonly height$: ValueModel<number>;
|
|
29
|
-
readonly top$: ValueModel<number>;
|
|
30
|
-
readonly left$: ValueModel<number>;
|
|
31
|
-
readonly bottom$: ValueModel<number>;
|
|
32
|
-
readonly right$: ValueModel<number>;
|
|
33
|
-
constructor(elementRef: ElementRef, ngZone: NgZone);
|
|
34
|
-
notifyViewReady(): void;
|
|
35
|
-
get bounds$(): ValueModel<Bounds>;
|
|
36
|
-
get nativeElement(): any;
|
|
37
|
-
relativePositionOf(point: {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
} | MouseEvent): Point;
|
|
41
|
-
get bounds(): Bounds;
|
|
42
|
-
private _updateBounds;
|
|
43
|
-
}
|
|
44
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ValueModel } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from '../disposable-component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -32,11 +32,12 @@ export declare class SwitchCaseDefaultDirective<T> extends SwitchCaseOption<T> {
|
|
|
32
32
|
* </aup-switch-case>
|
|
33
33
|
*/
|
|
34
34
|
export declare class SwitchCaseComponent<T> extends DisposableComponent implements AfterContentInit {
|
|
35
|
+
private cdr;
|
|
35
36
|
accessor switch$: ValueModel<T>;
|
|
36
37
|
accessor switch: T;
|
|
37
38
|
switchCaseOptions: QueryList<SwitchCaseOption<T>>;
|
|
38
39
|
selectedIndex: number;
|
|
39
|
-
constructor();
|
|
40
|
+
constructor(cdr: ChangeDetectorRef);
|
|
40
41
|
ngAfterContentInit(): void;
|
|
41
42
|
private updateSelection;
|
|
42
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchCaseComponent<any>, never>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { ComponentType } from "@angular/cdk/overlay";
|
|
2
2
|
import { Injector } from "@angular/core";
|
|
3
3
|
import { BooleanValueModelChain, Command, Constructable, DelegatingListModel, DirtyTrackingForm, Disposable, GarbageCollector, ListModel, SelectionModel, Types, ValueModel, ValueModelChain } from "@coolon/pectin";
|
|
4
|
-
import { ColumnManager } from "./column/column-manager";
|
|
5
4
|
import { CellRendererOptions, ColumnModel, OnComponentInit } from "./column/column-model";
|
|
6
|
-
import { ColumnOrderManager } from "./column/column-order-manager";
|
|
7
5
|
import { ColumnTextProperties } from "./column/column-text-properties";
|
|
8
6
|
import { CustomTemplateColumnModel } from "./column/custom-template-column-model";
|
|
9
7
|
import { CustomValueColumnModel } from "./column/custom-value-column-model";
|
|
@@ -19,13 +17,12 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
19
17
|
protected readonly _dataSource$: DelegatingListModel<Row>;
|
|
20
18
|
protected readonly _filteredRows$: DelegatingListModel<Row>;
|
|
21
19
|
protected readonly _visibleRows$: DelegatingListModel<Row>;
|
|
22
|
-
|
|
20
|
+
private readonly _columnList;
|
|
23
21
|
private _editorSessions;
|
|
24
22
|
private readonly _rowsBeingEdited$;
|
|
25
23
|
private saveCommandFactory;
|
|
26
24
|
private _editorSessionByRowId;
|
|
27
25
|
private readonly rowClassNamePredicates;
|
|
28
|
-
private readonly rowAttributeGenerators;
|
|
29
26
|
private _columnTextPropertiesLookup;
|
|
30
27
|
readonly editing$: BooleanValueModelChain;
|
|
31
28
|
readonly firstEditableColumn$: ValueModelChain<ColumnModel<Row>>;
|
|
@@ -66,8 +63,8 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
66
63
|
startEditSession(row: Row): EditSession<Row>;
|
|
67
64
|
getEditSessionFor(row: Row): EditSession<Row>;
|
|
68
65
|
cancelAllEditorSessions(): void;
|
|
69
|
-
get columns
|
|
70
|
-
get visibleColumns
|
|
66
|
+
get columns(): ListModel<ColumnModel<Row>>;
|
|
67
|
+
get visibleColumns(): ListModel<ColumnModel<Row>>;
|
|
71
68
|
pluck<P extends Types.ValuePropertiesOf<Row>>(property: P, options?: {
|
|
72
69
|
columnId: string;
|
|
73
70
|
}): PropertyColumnModel<Row, P>;
|
|
@@ -79,13 +76,11 @@ export declare abstract class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
79
76
|
addCustomColumn<V>(columnId: string, dataAccessor: (row: Row) => V): CustomValueColumnModel<Row, V>;
|
|
80
77
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, onInit?: OnComponentInit<C>): CustomValueColumnModel<Row, Row>;
|
|
81
78
|
addComponentColumn<C extends CellRenderer<Partial<Row>>>(columnId: string, component: ComponentType<C>, options?: CellRendererOptions<Row, C>): CustomValueColumnModel<Row, Row>;
|
|
82
|
-
addMoreMenu
|
|
79
|
+
addMoreMenu(componentClass: Constructable<TableMoreMenuPopupComponent<Row>>): CustomValueColumnModel<Row, Row>;
|
|
83
80
|
addTemplateColumn<V>(columnId: string): CustomTemplateColumnModel<Row>;
|
|
84
81
|
addRowClass(className: string, predicate: (row: Row) => boolean): void;
|
|
85
|
-
addRowAttribute(attributeName: string, getValue: (row: Row) => string): void;
|
|
86
82
|
getRowClasses(row: Row): string[];
|
|
87
|
-
|
|
88
|
-
protected addColumn<C extends ColumnModel<Row>>(column: C, position?: ColumnOrderManager.Position): C;
|
|
83
|
+
protected addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
|
|
89
84
|
columnTextProperties(columnTextProperties: {
|
|
90
85
|
[columnName: string]: ColumnTextProperties;
|
|
91
86
|
}): void;
|
|
@@ -72,8 +72,7 @@ export declare class AbstractTableComponent<Row> extends DisposableComponent imp
|
|
|
72
72
|
* need to set it explicitly e.g. height: 400px; or by using flex or grid layout to make it fill it's
|
|
73
73
|
* containment area.
|
|
74
74
|
*/
|
|
75
|
-
|
|
76
|
-
accessor enableScrolling: boolean;
|
|
75
|
+
enableScrolling: boolean;
|
|
77
76
|
columns: ListModelChain<ColumnModel<Row>>;
|
|
78
77
|
columnIds: ListModelChain<string>;
|
|
79
78
|
private columnsById;
|
|
@@ -92,5 +91,5 @@ export declare class AbstractTableComponent<Row> extends DisposableComponent imp
|
|
|
92
91
|
protected getModel(): AbstractTableModel<Row>;
|
|
93
92
|
registerColumnTemplate(columnId: string, templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, fillCell: boolean, padChild: boolean): void;
|
|
94
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTableComponent<any>, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTableComponent<any>, "aup-abstract-table", never, { "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "enableScrolling
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractTableComponent<any>, "aup-abstract-table", never, { "showHeader$": { "alias": "showHeader$"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "enableScrolling": { "alias": "enableScrolling"; "required": false; }; }, {}, never, never, false, never>;
|
|
96
95
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractComputedListModel, ListModel } from '@coolon/pectin';
|
|
2
|
+
import { ColumnModel } from './column-model';
|
|
3
|
+
export declare class ColumnListModel<Row> extends AbstractComputedListModel<ColumnModel<Row>, boolean> {
|
|
4
|
+
private readonly _allColumns$;
|
|
5
|
+
private readonly columnsById$;
|
|
6
|
+
constructor();
|
|
7
|
+
get allColumns$(): ListModel<ColumnModel<Row>>;
|
|
8
|
+
getColumn(id: string): ColumnModel<Row>;
|
|
9
|
+
hasColumn(id: string): boolean;
|
|
10
|
+
hasMatchingColumn(row: Row, regex: RegExp): boolean;
|
|
11
|
+
addColumn<C extends ColumnModel<Row>>(column: C, index?: number): C;
|
|
12
|
+
doComputeValue(): ColumnModel<Row>[];
|
|
13
|
+
}
|