@coolon/angular-ui-powerups 14.5.7 → 14.6.1
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/forms/autocomplete-input/autocomplete-input.component.mjs +6 -3
- package/esm2020/lib/components/forms/select-input/select-input.component.mjs +2 -6
- package/esm2020/lib/interaction/activity.mjs +3 -2
- package/esm2020/lib/interaction/components/input-activities/input-activity.mjs +16 -20
- package/esm2020/lib/interaction/components/input-activities/select-input-activity.mjs +8 -8
- package/esm2020/lib/interaction/components/input-activities/string-input-activity.mjs +5 -5
- package/fesm2015/coolon-angular-ui-powerups.mjs +32 -38
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +32 -36
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/components/forms/autocomplete-input/autocomplete-input.component.d.ts +2 -1
- package/lib/interaction/activity.d.ts +1 -0
- package/lib/interaction/components/input-activities/input-activity.d.ts +1 -2
- package/package.json +1 -1
- package/schematics/activity/templates/component/__name@dasherize__.component.ts.template +5 -2
- package/schematics/activity/templates/component/__name@dasherize__.i18n.yml.template +0 -2
- package/schematics/component/templates/component/__name@dasherize__.component.scss.template +0 -1
|
@@ -16,6 +16,7 @@ export declare class AutocompleteInputComponent<T = any> extends AbstractValueIn
|
|
|
16
16
|
options: T[];
|
|
17
17
|
optionLabel: keyof T;
|
|
18
18
|
allowNil: boolean;
|
|
19
|
+
autoActiveFirstOption: boolean;
|
|
19
20
|
autoFilter: boolean;
|
|
20
21
|
matInputComponent: MatInput;
|
|
21
22
|
optionTemplateRef: TemplateRef<any>;
|
|
@@ -32,5 +33,5 @@ export declare class AutocompleteInputComponent<T = any> extends AbstractValueIn
|
|
|
32
33
|
updateFilter($event: string): void;
|
|
33
34
|
onSelect($event: MatAutocompleteSelectedEvent): void;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteInputComponent<any>, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteInputComponent<any>, "aup-autocomplete-input", never, { "rawTextContent$": "rawTextContent$"; "optionsModel": "optionsModel"; "options": "options"; "optionLabel": "optionLabel"; "allowNil": "allowNil"; "autoFilter": "autoFilter"; "optionLabelFormat": "optionLabelFormat"; "filterFactory": "filterFactory"; }, {}, ["optionTemplateRef", "nilOptionTemplateRef"], never, false>;
|
|
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>;
|
|
36
37
|
}
|
|
@@ -7,6 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
8
8
|
declare type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
|
|
9
9
|
export declare class Activity<D, R, E = any> extends DisposableComponent implements AfterViewInit {
|
|
10
|
+
readonly activityData: D;
|
|
10
11
|
private readonly activityReadyListeners;
|
|
11
12
|
private readonly _busy$;
|
|
12
13
|
private _focused$;
|
|
@@ -4,7 +4,6 @@ import { CommandFace } from '../../../components/commands/command-face';
|
|
|
4
4
|
import { Activity } from '../../activity';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class InputActivity<T, D extends InputActivity.Data<T> = InputActivity.Data<T>> extends Activity<D, T> {
|
|
7
|
-
readonly data: D;
|
|
8
7
|
readonly confirmCommand: Command<void>;
|
|
9
8
|
readonly cancelCommand: Command<void>;
|
|
10
9
|
readonly valueModel: Form.ValueModelBase<T>;
|
|
@@ -12,7 +11,7 @@ export declare class InputActivity<T, D extends InputActivity.Data<T> = InputAct
|
|
|
12
11
|
readonly confirmFace: CommandFace;
|
|
13
12
|
readonly cancelFace: CommandFace;
|
|
14
13
|
get layout(): InputActivity.Layout;
|
|
15
|
-
constructor(
|
|
14
|
+
constructor();
|
|
16
15
|
get additionalCssClassName(): string;
|
|
17
16
|
onEscape(): void;
|
|
18
17
|
shouldCancelOnEscape(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {Component, Inject, OnInit} from '@angular/core';
|
|
2
2
|
import { Dsl, Command } from '@coolon/pectin';
|
|
3
|
-
import {Activity
|
|
3
|
+
import {Activity} from "@coolon/angular-ui-powerups";
|
|
4
4
|
import { I18n } from '<%=pathToRoot%>/i18n';
|
|
5
5
|
|
|
6
6
|
@Component({
|
|
@@ -12,10 +12,13 @@ export class <%=capitalize(camelize(name))%>Component extends Activity<<%=capita
|
|
|
12
12
|
|
|
13
13
|
readonly i18n = <%=i18nNamespace%>;
|
|
14
14
|
|
|
15
|
-
constructor(
|
|
15
|
+
constructor() {
|
|
16
16
|
super();
|
|
17
17
|
const {chain} = Dsl.disposeWith(this);
|
|
18
18
|
|
|
19
|
+
// Actity data is pre injected into...
|
|
20
|
+
// this.activityData
|
|
21
|
+
|
|
19
22
|
this.confirmCommand = Command.create(() => {
|
|
20
23
|
this.done();
|
|
21
24
|
});
|