asksuite-citrus 1.12.1 → 1.12.2
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/autocomplete/autocomplete.component.mjs +6 -3
- package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
- package/esm2022/lib/components/box/box.component.mjs +2 -2
- package/esm2022/lib/components/button/button.component.mjs +2 -2
- package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/lib/components/chips/chips.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
- package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
- package/esm2022/lib/components/input/input.component.mjs +7 -3
- package/esm2022/lib/components/modal/modal.component.mjs +2 -2
- package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
- package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +3 -3
- package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
- package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/components/table/table.component.mjs +2 -2
- package/esm2022/lib/components/toast/toast.component.mjs +2 -2
- package/esm2022/lib/directives/autofocus/autofocus.directive.mjs +8 -5
- package/fesm2022/asksuite-citrus.mjs +66 -57
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/components/autocomplete/autocomplete.component.d.ts +2 -1
- package/lib/components/input/input.component.d.ts +2 -1
- package/lib/directives/autofocus/autofocus.directive.d.ts +2 -1
- package/package.json +1 -1
- package/styles/material.scss +32 -6
- package/styles/tooltip.scss +7 -3
@@ -1,20 +1,23 @@
|
|
1
|
-
import { Directive } from '@angular/core';
|
1
|
+
import { Directive, Input } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export class AutofocusDirective {
|
4
4
|
constructor(elRef) {
|
5
5
|
this.elRef = elRef;
|
6
|
+
this.askAutofocus = true;
|
6
7
|
}
|
7
8
|
ngAfterViewInit() {
|
8
|
-
if (this.elRef)
|
9
|
+
if (this.elRef && (this.askAutofocus || this.askAutofocus === ''))
|
9
10
|
this.elRef.nativeElement.focus();
|
10
11
|
}
|
11
12
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
12
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: AutofocusDirective, selector: "[askAutofocus]", ngImport: i0 }); }
|
13
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: AutofocusDirective, selector: "[askAutofocus]", inputs: { askAutofocus: "askAutofocus" }, ngImport: i0 }); }
|
13
14
|
}
|
14
15
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: AutofocusDirective, decorators: [{
|
15
16
|
type: Directive,
|
16
17
|
args: [{
|
17
18
|
selector: '[askAutofocus]'
|
18
19
|
}]
|
19
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }
|
20
|
-
|
20
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { askAutofocus: [{
|
21
|
+
type: Input
|
22
|
+
}] } });
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2ZvY3VzLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fza3N1aXRlLWNpdHJ1cy9zcmMvbGliL2Rpc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