@coolon/angular-ui-powerups 14.7.0 → 14.9.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/cards/card-container/card-container.component.mjs +3 -3
- package/esm2020/lib/components/cards/card-stack/card-stack.component.mjs +3 -3
- package/esm2020/lib/components/commands/command/command.component.mjs +4 -4
- package/esm2020/lib/components/commands/group/popup-menu/popup-menu-renderer/popup-menu-renderer.component.mjs +2 -2
- package/esm2020/lib/components/forms/abstract-input.component.mjs +13 -13
- package/esm2020/lib/components/forms/abstract-list-input.component.mjs +22 -16
- package/esm2020/lib/components/forms/abstract-value-input.component.mjs +23 -17
- package/esm2020/lib/components/forms/autocomplete-input/autocomplete-input.component.mjs +14 -7
- package/esm2020/lib/components/forms/checkbox-input/checkbox-input.component.mjs +3 -3
- package/esm2020/lib/components/forms/multiple-select-input/multiple-select-input.component.mjs +13 -6
- package/esm2020/lib/components/forms/number-input/number-input.component.mjs +3 -3
- package/esm2020/lib/components/forms/password-input/password-input.component.mjs +3 -3
- package/esm2020/lib/components/forms/select-input/select-input.component.mjs +13 -6
- package/esm2020/lib/components/forms/string-input/string-input.component.mjs +8 -8
- package/esm2020/lib/components/forms/text-input/text-input.component.mjs +3 -3
- package/esm2020/lib/components/tables/abstract-table-model.mjs +8 -5
- package/esm2020/lib/components/tables/column/column-model.mjs +10 -7
- package/esm2020/lib/components/tables/column/selection-column-model.mjs +2 -1
- package/esm2020/lib/components/tables/editor/edit-row-controls/edit-row-controls.component.mjs +3 -3
- package/esm2020/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.mjs +22 -6
- package/esm2020/lib/components/tables/renderer/selection-cell/selection-cell.component.mjs +11 -6
- package/esm2020/lib/components/tables/renderer/table-body/table-body.component.mjs +3 -3
- package/esm2020/lib/components/tables/table/table-model.mjs +6 -1
- package/esm2020/lib/components/tables/table-row-menu/table-row-menu.component.mjs +2 -2
- package/esm2020/lib/components/vertical-focus-container/vertical-focus-container.component.mjs +3 -3
- package/esm2020/lib/directives/command.directive.mjs +3 -3
- package/esm2020/lib/interaction/activity.mjs +2 -2
- package/esm2020/lib/interaction/components/editors/inline-string-editor/inline-string-editor.component.mjs +5 -5
- package/esm2020/lib/interaction/components/input-activities/input-activity.mjs +3 -3
- package/esm2020/lib/interaction/components/input-activities/select-input-activity.mjs +4 -4
- package/esm2020/lib/interaction/components/input-activities/string-input-activity.mjs +4 -4
- package/fesm2015/coolon-angular-ui-powerups.mjs +183 -123
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +183 -119
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/forms/abstract-input.component.d.ts +5 -5
- package/lib/components/forms/abstract-list-input.component.d.ts +9 -5
- package/lib/components/forms/abstract-value-input.component.d.ts +10 -6
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +6 -1
- package/lib/components/forms/multiple-select-input/multiple-select-input.component.d.ts +6 -1
- package/lib/components/forms/select-input/select-input.component.d.ts +6 -1
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -2
- package/lib/components/tables/abstract-table-model.d.ts +1 -1
- package/lib/components/tables/column/column-model.d.ts +4 -2
- package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts +5 -3
- package/lib/components/tables/renderer/selection-cell/selection-cell.component.d.ts +2 -2
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ interface InputModel<T> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class AbstractInputComponent<T> extends DisposableComponent implements OnInit {
|
|
13
13
|
protected onValueEditedListeners: EventListenerList<(is: T, was: T) => void>;
|
|
14
|
-
protected
|
|
14
|
+
protected formValue$: InputModel<T>;
|
|
15
15
|
label: string;
|
|
16
16
|
userFloatLabel: 'auto' | 'always' | 'never';
|
|
17
17
|
hint: string;
|
|
@@ -37,10 +37,10 @@ export declare class AbstractInputComponent<T> extends DisposableComponent imple
|
|
|
37
37
|
constructor();
|
|
38
38
|
ngOnInit(): void;
|
|
39
39
|
isEnabled(): boolean;
|
|
40
|
-
get enabled(): ValueModel<boolean>;
|
|
41
|
-
hasErrors(): boolean;
|
|
42
|
-
get errorList(): ListModel<string>;
|
|
43
|
-
get firstError(): string;
|
|
40
|
+
get enabled$(): ValueModel<boolean>;
|
|
41
|
+
hasErrors$(): boolean;
|
|
42
|
+
get errorList$(): ListModel<string>;
|
|
43
|
+
get firstError$(): string;
|
|
44
44
|
get focusContext(): FocusManager.Context;
|
|
45
45
|
get floatLabel(): 'auto' | 'always' | 'never';
|
|
46
46
|
get showHint(): boolean;
|
|
@@ -3,6 +3,10 @@ import { ConvertedFormListModel, Form, MutableListModel } from "@coolon/pectin";
|
|
|
3
3
|
import { AbstractInputComponent } from "./abstract-input.component";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AbstractListInputComponent<T> extends AbstractInputComponent<T[]> implements OnInit {
|
|
6
|
+
list$: Form.ListModelBase<T> | ConvertedFormListModel<T, any> | MutableListModel<T>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use #list$ instead
|
|
9
|
+
*/
|
|
6
10
|
listModel: Form.ListModelBase<T> | ConvertedFormListModel<T, any> | MutableListModel<T>;
|
|
7
11
|
/**
|
|
8
12
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
@@ -14,13 +18,13 @@ export declare class AbstractListInputComponent<T> extends AbstractInputComponen
|
|
|
14
18
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
15
19
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
16
20
|
*/
|
|
17
|
-
protected readonly
|
|
18
|
-
readonly
|
|
19
|
-
private setValueIsInProgress
|
|
20
|
-
private listHolder
|
|
21
|
+
protected readonly formValue$: Form.DelegatingFormListModel<T>;
|
|
22
|
+
readonly componentList$: MutableListModel<T>;
|
|
23
|
+
private setValueIsInProgress$;
|
|
24
|
+
private listHolder$;
|
|
21
25
|
set value(value: T[]);
|
|
22
26
|
readonly valueChange: EventEmitter<T[]>;
|
|
23
27
|
constructor();
|
|
24
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractListInputComponent<any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractListInputComponent<any>, "ng-component", never, { "listModel": "listModel"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractListInputComponent<any>, "ng-component", never, { "list$": "list$"; "listModel": "listModel"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
26
30
|
}
|
|
@@ -3,24 +3,28 @@ import { ConvertedFormValueModel, Form, Guard, MutableValueModel } from "@coolon
|
|
|
3
3
|
import { AbstractInputComponent } from './abstract-input.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AbstractValueInputComponent<T> extends AbstractInputComponent<T> implements OnInit {
|
|
6
|
+
value$: Form.ValueModelBase<T> | ConvertedFormValueModel<T, any> | MutableValueModel<T>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use #value$ instead.
|
|
9
|
+
*/
|
|
6
10
|
valueModel: Form.ValueModelBase<T> | ConvertedFormValueModel<T, any> | MutableValueModel<T>;
|
|
7
11
|
/**
|
|
8
12
|
* A backing model for all our @Input() valueModel properties which should be defined as follows.
|
|
9
13
|
*
|
|
10
14
|
* @Input() @TrackExternal({useExisting: "inputModel"})
|
|
11
|
-
*
|
|
15
|
+
* value$: DirtyTrackingForm.ValueModel<string> | MutableValueModel<string>;
|
|
12
16
|
*
|
|
13
17
|
* This approach allows the input to accept plain or form models but all backed by a form
|
|
14
18
|
* friendly delegate. We have to use an existing delegate for union types as pectin just
|
|
15
19
|
* gets told it's an Object and can't scan for a base type annotated with @DelegateUsing(..).
|
|
16
20
|
*/
|
|
17
|
-
protected readonly
|
|
18
|
-
protected setValueInProgress
|
|
19
|
-
readonly
|
|
20
|
-
private plainValueHolder
|
|
21
|
+
protected readonly formValue$: Form.DelegatingFormValueModel<T>;
|
|
22
|
+
protected setValueInProgress$: Guard;
|
|
23
|
+
readonly componentValue$: MutableValueModel<T>;
|
|
24
|
+
private plainValueHolder$;
|
|
21
25
|
set value(value: T);
|
|
22
26
|
readonly valueChange: EventEmitter<T>;
|
|
23
27
|
constructor();
|
|
24
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractValueInputComponent<any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractValueInputComponent<any>, "ng-component", never, { "valueModel": "valueModel"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AbstractValueInputComponent<any>, "ng-component", never, { "value$": "value$"; "valueModel": "valueModel"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
26
30
|
}
|
|
@@ -12,6 +12,11 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class AutocompleteInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit, AfterViewInit {
|
|
14
14
|
rawTextContent$: MutableValueModel<string>;
|
|
15
|
+
private readonly _options$;
|
|
16
|
+
options$: ListModel<T>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated use #options$ instead.
|
|
19
|
+
*/
|
|
15
20
|
optionsModel: ListModel<T>;
|
|
16
21
|
options: T[];
|
|
17
22
|
optionLabel: keyof T;
|
|
@@ -33,5 +38,5 @@ export declare class AutocompleteInputComponent<T = any> extends AbstractValueIn
|
|
|
33
38
|
updateFilter($event: string): void;
|
|
34
39
|
onSelect($event: MatAutocompleteSelectedEvent): void;
|
|
35
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteInputComponent<any>, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteInputComponent<any>, "aup-autocomplete-input", never, { "rawTextContent$": "rawTextContent$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "autoActiveFirstOption": "autoActiveFirstOption"; "autoFilter": "autoFilter"; "optionLabelFormat": "optionLabelFormat"; "filterFactory": "filterFactory"; }, {}, ["optionTemplateRef", "nilOptionTemplateRef"], never, false>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteInputComponent<any>, "aup-autocomplete-input", never, { "rawTextContent$": "rawTextContent$"; "options$": "options$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "autoActiveFirstOption": "autoActiveFirstOption"; "autoFilter": "autoFilter"; "optionLabelFormat": "optionLabelFormat"; "filterFactory": "filterFactory"; }, {}, ["optionTemplateRef", "nilOptionTemplateRef"], never, false>;
|
|
37
42
|
}
|
|
@@ -10,6 +10,11 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* </aup-multiple-select_input>
|
|
11
11
|
*/
|
|
12
12
|
export declare class MultipleSelectInputComponent<T = any> extends AbstractListInputComponent<T> implements OnInit {
|
|
13
|
+
private readonly _options$;
|
|
14
|
+
options$: ListModel<T>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use #options$ instead.
|
|
17
|
+
*/
|
|
13
18
|
optionsModel: ListModel<T>;
|
|
14
19
|
options: T[];
|
|
15
20
|
optionLabel: keyof T;
|
|
@@ -18,5 +23,5 @@ export declare class MultipleSelectInputComponent<T = any> extends AbstractListI
|
|
|
18
23
|
constructor();
|
|
19
24
|
ngOnInit(): void;
|
|
20
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultipleSelectInputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MultipleSelectInputComponent<any>, "aup-multiple-select-input", never, { "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "optionLabelFormat": "optionLabelFormat"; }, {}, ["optionTemplateRef"], never, false>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultipleSelectInputComponent<any>, "aup-multiple-select-input", never, { "options$": "options$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "optionLabelFormat": "optionLabelFormat"; }, {}, ["optionTemplateRef"], never, false>;
|
|
22
27
|
}
|
|
@@ -10,6 +10,11 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* </aup-select_input>
|
|
11
11
|
*/
|
|
12
12
|
export declare class SelectInputComponent<T = any> extends AbstractValueInputComponent<T> implements OnInit {
|
|
13
|
+
private readonly _options$;
|
|
14
|
+
options$: ListModel<T>;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use #options$ instead.
|
|
17
|
+
*/
|
|
13
18
|
optionsModel: ListModel<T>;
|
|
14
19
|
options: T[];
|
|
15
20
|
optionLabel: keyof T;
|
|
@@ -22,5 +27,5 @@ export declare class SelectInputComponent<T = any> extends AbstractValueInputCom
|
|
|
22
27
|
constructor();
|
|
23
28
|
ngOnInit(): void;
|
|
24
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectInputComponent<any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectInputComponent<any>, "aup-select-input", never, { "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "optionLabelFormat": "optionLabelFormat"; }, {}, ["selectedOptionTemplateRef", "optionTemplateRef", "nilOptionTemplateRef"], never, false>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectInputComponent<any>, "aup-select-input", never, { "options$": "options$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "optionLabelFormat": "optionLabelFormat"; }, {}, ["selectedOptionTemplateRef", "optionTemplateRef", "nilOptionTemplateRef"], never, false>;
|
|
26
31
|
}
|
|
@@ -4,12 +4,12 @@ import { AbstractValueInputComponent } from '../abstract-value-input.component';
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class StringInputComponent extends AbstractValueInputComponent<string> implements OnInit {
|
|
6
6
|
autocomplete: string;
|
|
7
|
-
|
|
7
|
+
enableClear$: ValueModel<boolean>;
|
|
8
8
|
enableClear: boolean;
|
|
9
9
|
iconPrefix: string;
|
|
10
10
|
readonly clearCommand: Command<void>;
|
|
11
11
|
constructor();
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringInputComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent, "aup-string-input", never, { "autocomplete": "autocomplete"; "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent, "aup-string-input", never, { "autocomplete": "autocomplete"; "enableClear$": "enableClear$"; "enableClear": "enableClear"; "iconPrefix": "iconPrefix"; }, {}, never, never, false>;
|
|
15
15
|
}
|
|
@@ -66,7 +66,7 @@ export declare class AbstractTableModel<Row> extends GarbageCollector {
|
|
|
66
66
|
cancelAllEditorSessions(): void;
|
|
67
67
|
isRowSelectionEnabledFor(column: ColumnModel<Row>): boolean;
|
|
68
68
|
isRowSelectionEnabled(): boolean;
|
|
69
|
-
|
|
69
|
+
hasUserSelectionModelThatIsEnabled(): boolean;
|
|
70
70
|
getSelectionModel(): SelectionModel<Row> | undefined;
|
|
71
71
|
isHoverEnabled(): boolean;
|
|
72
72
|
isCursorEnabled(column: ColumnModel<Row>): boolean;
|
|
@@ -31,16 +31,18 @@ export declare class ColumnModel<Row> extends GarbageCollector {
|
|
|
31
31
|
private _enableRowSelection;
|
|
32
32
|
private _flex;
|
|
33
33
|
private _defaultVisibility$;
|
|
34
|
-
private
|
|
34
|
+
private _masterVisibility$;
|
|
35
|
+
private _userVisible$;
|
|
35
36
|
readonly dasherisedColumnId: string;
|
|
36
37
|
private readonly textSearchDelegate;
|
|
38
|
+
readonly visible$: ValueModel<boolean>;
|
|
37
39
|
constructor(columnId: string, textPropertiesProvider: ColumnModel.TextPropertiesProvider);
|
|
38
40
|
protected installHeaderRenderer(): void;
|
|
39
41
|
getHeaderText(): string;
|
|
40
42
|
isVisible(): boolean;
|
|
41
|
-
get visible$(): ValueModel<boolean>;
|
|
42
43
|
visibleWhile(visible: ValueModel<boolean>): this;
|
|
43
44
|
protected setDefaultVisibility(visible: ValueModel<boolean>): void;
|
|
45
|
+
protected setMasterVisibility(visible: ValueModel<boolean>): void;
|
|
44
46
|
protected getDefaultHeaderText(): string;
|
|
45
47
|
getColumnTextProperties(): ColumnTextProperties;
|
|
46
48
|
/**
|
package/lib/components/tables/renderer/select-header-cell/selection-header-cell.component.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { ThemePalette } from "@angular/material/core";
|
|
2
|
-
import { Command,
|
|
2
|
+
import { Command, MultipleSelectionModel, SelectionModel } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from '../../../disposable-component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SelectionHeaderCellComponent<Row> extends DisposableComponent {
|
|
6
6
|
readonly selectCommand: Command<void>;
|
|
7
|
-
selectionModel:
|
|
7
|
+
selectionModel: SelectionModel<Row>;
|
|
8
8
|
color: ThemePalette;
|
|
9
9
|
enableHeaderControls: boolean;
|
|
10
10
|
constructor();
|
|
11
11
|
isSelected(): boolean;
|
|
12
|
-
isIntermediate():
|
|
12
|
+
isIntermediate(): boolean;
|
|
13
13
|
isVisible(): boolean;
|
|
14
|
+
isMultiSelectionModel(): boolean;
|
|
15
|
+
ifMultiSelectionModel<T>(runnable: (model$: MultipleSelectionModel<Row, any>) => T, otherwise?: T): T;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionHeaderCellComponent<any>, never>;
|
|
15
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionHeaderCellComponent<any>, "aup-selection-header-cell", never, {}, {}, never, never, false>;
|
|
16
18
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ThemePalette } from "@angular/material/core";
|
|
2
|
-
import { Command,
|
|
2
|
+
import { Command, SelectionModel } from '@coolon/pectin';
|
|
3
3
|
import { DisposableComponent } from '../../../disposable-component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SelectionCellComponent<Row> extends DisposableComponent {
|
|
6
6
|
readonly selectCommand: Command<void>;
|
|
7
7
|
row: Row;
|
|
8
|
-
selectionModel:
|
|
8
|
+
selectionModel: SelectionModel<Row>;
|
|
9
9
|
color: ThemePalette;
|
|
10
10
|
constructor();
|
|
11
11
|
isSelected(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.9.0",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/animations": "^14.1.2",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/material": "^14.1.2",
|
|
12
12
|
"@angular/platform-browser": "^14.1.2",
|
|
13
13
|
"@angular/router": "^14.1.2",
|
|
14
|
-
"@coolon/pectin": "^3.
|
|
14
|
+
"@coolon/pectin": "^3.26.0",
|
|
15
15
|
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
16
16
|
"lodash-es": "^4.17.21",
|
|
17
17
|
"marked": "4.0.2",
|