asksuite-citrus 1.12.1 → 1.12.3

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.
Files changed (28) hide show
  1. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +6 -3
  2. package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
  3. package/esm2022/lib/components/box/box.component.mjs +2 -2
  4. package/esm2022/lib/components/button/button.component.mjs +2 -2
  5. package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
  6. package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
  7. package/esm2022/lib/components/chips/chips.component.mjs +2 -2
  8. package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
  9. package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
  10. package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
  11. package/esm2022/lib/components/input/input.component.mjs +7 -3
  12. package/esm2022/lib/components/modal/modal.component.mjs +2 -2
  13. package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
  14. package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +3 -3
  15. package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
  16. package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
  17. package/esm2022/lib/components/select/select.component.mjs +2 -2
  18. package/esm2022/lib/components/table/table.component.mjs +2 -2
  19. package/esm2022/lib/components/toast/toast.component.mjs +2 -2
  20. package/esm2022/lib/directives/autofocus/autofocus.directive.mjs +8 -5
  21. package/fesm2022/asksuite-citrus.mjs +66 -57
  22. package/fesm2022/asksuite-citrus.mjs.map +1 -1
  23. package/lib/components/autocomplete/autocomplete.component.d.ts +2 -1
  24. package/lib/components/input/input.component.d.ts +2 -1
  25. package/lib/directives/autofocus/autofocus.directive.d.ts +2 -1
  26. package/package.json +1 -1
  27. package/styles/material.scss +32 -6
  28. 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
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2ZvY3VzLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fza3N1aXRlLWNpdHJ1cy9zcmMvbGliL2RpcmVjdGl2ZXMvYXV0b2ZvY3VzL2F1dG9mb2N1cy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFnQixTQUFTLEVBQWEsTUFBTSxlQUFlLENBQUM7O0FBS25FLE1BQU0sT0FBTyxrQkFBa0I7SUFFN0IsWUFBb0IsS0FBaUI7UUFBakIsVUFBSyxHQUFMLEtBQUssQ0FBWTtJQUFJLENBQUM7SUFFMUMsZUFBZTtRQUNiLElBQUksSUFBSSxDQUFDLEtBQUs7WUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxLQUFLLEVBQUUsQ0FBQztJQUNuRCxDQUFDOzhHQU5VLGtCQUFrQjtrR0FBbEIsa0JBQWtCOzsyRkFBbEIsa0JBQWtCO2tCQUg5QixTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSxnQkFBZ0I7aUJBQzNCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtBZnRlclZpZXdJbml0LCBEaXJlY3RpdmUsIEVsZW1lbnRSZWZ9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ARGlyZWN0aXZlKHtcbiAgc2VsZWN0b3I6ICdbYXNrQXV0b2ZvY3VzXSdcbn0pXG5leHBvcnQgY2xhc3MgQXV0b2ZvY3VzRGlyZWN0aXZlIGltcGxlbWVudHMgQWZ0ZXJWaWV3SW5pdHtcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIGVsUmVmOiBFbGVtZW50UmVmKSB7IH1cblxuICBuZ0FmdGVyVmlld0luaXQoKSB7XG4gICAgaWYgKHRoaXMuZWxSZWYpIHRoaXMuZWxSZWYubmF0aXZlRWxlbWVudC5mb2N1cygpO1xuICB9XG5cbn1cbiJdfQ==
20
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { askAutofocus: [{
21
+ type: Input
22
+ }] } });
23
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXV0b2ZvY3VzLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy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