@anglr/common 12.0.0-beta.20220414093434 → 12.0.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/changelog.md +29 -1
- package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js +3 -1
- package/es2015/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
- package/es2015/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +5 -15
- package/es2015/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
- package/es2015/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +2 -2
- package/es2015/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
- package/es2015/forms/src/components/index.js +1 -0
- package/es2015/forms/src/components/index.js.map +1 -1
- package/es2015/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +75 -0
- package/es2015/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -0
- package/es2015/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +31 -0
- package/es2015/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -0
- package/es2015/forms/src/directives/hasError/hasError.directive.js +25 -5
- package/es2015/forms/src/directives/hasError/hasError.directive.js.map +1 -1
- package/es2015/forms/src/directives/index.js +3 -0
- package/es2015/forms/src/directives/index.js.map +1 -0
- package/es2015/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +24 -0
- package/es2015/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -0
- package/es2015/forms/src/index.js +1 -0
- package/es2015/forms/src/index.js.map +1 -1
- package/es2015/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -2
- package/es2015/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
- package/es2015/forms/src/modules/hasError.module.js +14 -3
- package/es2015/forms/src/modules/hasError.module.js.map +1 -1
- package/es2015/positions/src/index.js +0 -7
- package/es2015/positions/src/index.js.map +1 -1
- package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js +12 -8
- package/es2015/src/modules/position/directives/positionTo/positionTo.directive.js.map +1 -1
- package/es2015/src/services/position/position.interface.js.map +1 -1
- package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js +3 -1
- package/es2020/floating-ui/src/services/floatingUiDomPosition.service.js.map +1 -1
- package/es2020/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js +5 -15
- package/es2020/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.js.map +1 -1
- package/es2020/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js +2 -2
- package/es2020/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.js.map +1 -1
- package/es2020/forms/src/components/index.js +1 -0
- package/es2020/forms/src/components/index.js.map +1 -1
- package/es2020/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js +75 -0
- package/es2020/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.js.map +1 -0
- package/es2020/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js +31 -0
- package/es2020/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.js.map +1 -0
- package/es2020/forms/src/directives/hasError/hasError.directive.js +25 -5
- package/es2020/forms/src/directives/hasError/hasError.directive.js.map +1 -1
- package/es2020/forms/src/directives/index.js +3 -0
- package/es2020/forms/src/directives/index.js.map +1 -0
- package/es2020/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js +24 -0
- package/es2020/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.js.map +1 -0
- package/es2020/forms/src/index.js +1 -0
- package/es2020/forms/src/index.js.map +1 -1
- package/es2020/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js +3 -2
- package/es2020/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.js.map +1 -1
- package/es2020/forms/src/modules/hasError.module.js +14 -3
- package/es2020/forms/src/modules/hasError.module.js.map +1 -1
- package/es2020/positions/src/index.js +0 -7
- package/es2020/positions/src/index.js.map +1 -1
- package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js +12 -8
- package/es2020/src/modules/position/directives/positionTo/positionTo.directive.js.map +1 -1
- package/es2020/src/services/position/position.interface.js.map +1 -1
- package/floating-ui/src/services/floatingUiDomPosition.service.d.ts.map +1 -1
- package/forms/src/components/defaultValidationErrors/defaultValidationErrors.component.d.ts.map +1 -1
- package/forms/src/components/index.d.ts +1 -0
- package/forms/src/components/index.d.ts.map +1 -1
- package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.css +4 -0
- package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.d.ts +53 -0
- package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.d.ts.map +1 -0
- package/forms/src/components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component.html +3 -0
- package/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.d.ts +10 -0
- package/forms/src/directives/groupHasErrorContainer/groupHasErrorContainer.directive.d.ts.map +1 -0
- package/forms/src/directives/hasError/hasError.directive.d.ts +16 -4
- package/forms/src/directives/hasError/hasError.directive.d.ts.map +1 -1
- package/forms/src/directives/index.d.ts +3 -0
- package/forms/src/directives/index.d.ts.map +1 -0
- package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts +12 -0
- package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts.map +1 -0
- package/forms/src/index.d.ts +1 -0
- package/forms/src/index.d.ts.map +1 -1
- package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts.map +1 -1
- package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.html +1 -1
- package/forms/src/modules/hasError.module.d.ts +7 -4
- package/forms/src/modules/hasError.module.d.ts.map +1 -1
- package/package.json +3 -3
- package/positions/src/index.d.ts +0 -7
- package/positions/src/index.d.ts.map +1 -1
- package/src/modules/position/directives/positionTo/positionTo.directive.d.ts +6 -2
- package/src/modules/position/directives/positionTo/positionTo.directive.d.ts.map +1 -1
- package/src/services/position/position.interface.d.ts +4 -0
- package/src/services/position/position.interface.d.ts.map +1 -1
- package/version.bak +1 -1
- package/es2015/positions/src/modules/positions/directives/positionTo/positionTo.directive.js +0 -58
- package/es2015/positions/src/modules/positions/directives/positionTo/positionTo.directive.js.map +0 -1
- package/es2015/positions/src/modules/positions/modules/positions.module.js +0 -24
- package/es2015/positions/src/modules/positions/modules/positions.module.js.map +0 -1
- package/es2015/positions/src/modules/tooltip/components/tooltip/tooltip.component.js +0 -98
- package/es2015/positions/src/modules/tooltip/components/tooltip/tooltip.component.js.map +0 -1
- package/es2015/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.js +0 -230
- package/es2015/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +0 -1
- package/es2015/positions/src/modules/tooltip/misc/tokens.js +0 -6
- package/es2015/positions/src/modules/tooltip/misc/tokens.js.map +0 -1
- package/es2015/positions/src/modules/tooltip/misc/tooltip.interface.js +0 -2
- package/es2015/positions/src/modules/tooltip/misc/tooltip.interface.js.map +0 -1
- package/es2015/positions/src/modules/tooltip/modules/tooltip.module.js +0 -32
- package/es2015/positions/src/modules/tooltip/modules/tooltip.module.js.map +0 -1
- package/es2020/positions/src/modules/positions/directives/positionTo/positionTo.directive.js +0 -58
- package/es2020/positions/src/modules/positions/directives/positionTo/positionTo.directive.js.map +0 -1
- package/es2020/positions/src/modules/positions/modules/positions.module.js +0 -24
- package/es2020/positions/src/modules/positions/modules/positions.module.js.map +0 -1
- package/es2020/positions/src/modules/tooltip/components/tooltip/tooltip.component.js +0 -98
- package/es2020/positions/src/modules/tooltip/components/tooltip/tooltip.component.js.map +0 -1
- package/es2020/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.js +0 -229
- package/es2020/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.js.map +0 -1
- package/es2020/positions/src/modules/tooltip/misc/tokens.js +0 -6
- package/es2020/positions/src/modules/tooltip/misc/tokens.js.map +0 -1
- package/es2020/positions/src/modules/tooltip/misc/tooltip.interface.js +0 -2
- package/es2020/positions/src/modules/tooltip/misc/tooltip.interface.js.map +0 -1
- package/es2020/positions/src/modules/tooltip/modules/tooltip.module.js +0 -32
- package/es2020/positions/src/modules/tooltip/modules/tooltip.module.js.map +0 -1
- package/forms/src/components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component.html +0 -0
- package/positions/src/modules/positions/directives/positionTo/positionTo.directive.d.ts +0 -34
- package/positions/src/modules/positions/directives/positionTo/positionTo.directive.d.ts.map +0 -1
- package/positions/src/modules/positions/modules/positions.module.d.ts +0 -11
- package/positions/src/modules/positions/modules/positions.module.d.ts.map +0 -1
- package/positions/src/modules/tooltip/components/tooltip/tooltip.component.css +0 -10
- package/positions/src/modules/tooltip/components/tooltip/tooltip.component.d.ts +0 -63
- package/positions/src/modules/tooltip/components/tooltip/tooltip.component.d.ts.map +0 -1
- package/positions/src/modules/tooltip/components/tooltip/tooltip.component.html +0 -6
- package/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts +0 -106
- package/positions/src/modules/tooltip/directives/tooltip/tooltip.directive.d.ts.map +0 -1
- package/positions/src/modules/tooltip/misc/tokens.d.ts +0 -7
- package/positions/src/modules/tooltip/misc/tokens.d.ts.map +0 -1
- package/positions/src/modules/tooltip/misc/tooltip.interface.d.ts +0 -71
- package/positions/src/modules/tooltip/misc/tooltip.interface.d.ts.map +0 -1
- package/positions/src/modules/tooltip/modules/tooltip.module.d.ts +0 -13
- package/positions/src/modules/tooltip/modules/tooltip.module.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasError.directive.d.ts","sourceRoot":"","sources":["hasError.direct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Ac,iEAAiE,CAAC"}
|
package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ValidationErrorsContainerView } from '../../misc/validationErrorsContainerView';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Directive that sets view container for validation errors for current element
|
|
6
|
+
*/
|
|
7
|
+
export declare class ValidationErrorsContainerDirective {
|
|
8
|
+
constructor(containerView: ValidationErrorsContainerView, viewContainer: ViewContainerRef);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsContainerDirective, [{ skipSelf: true; }, null]>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationErrorsContainerDirective, "[validationErrorsContainer]", never, {}, {}, never>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=validationErrorsContainer.directive.d.ts.map
|
package/forms/src/directives/validationErrorsContainer/validationErrorsContainer.directive.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validationErrorsContainer.directive.d.ts","sourceRoot":"","sources":["validationErrorsContainer.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEpE,OAAO,EAAC,6BAA6B,EAAC,MAAM,0CAA0C,CAAC;;AAEvF;;GAEG;AACH,qBAIa,kCAAkC;gBAGnB,aAAa,EAAE,6BAA6B,EACxD,aAAa,EAAE,gBAAgB;yCAJlC,kCAAkC;2CAAlC,kCAAkC;CAQ9C"}
|
package/forms/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './components';
|
|
2
|
+
export * from './directives';
|
|
2
3
|
export * from './directives/numberInput/maxValueNumberValidator.directive';
|
|
3
4
|
export * from './directives/numberInput/minValueNumberValidator.directive';
|
|
4
5
|
export * from './directives/numberInput/numberInputValidator.directive';
|
package/forms/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,oEAAoE,CAAC;AACnF,cAAc,0CAA0C,CAAC;AACzD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oDAAoD,CAAC;AACnE,cAAc,wCAAwC,CAAC;AACvD,cAAc,oEAAoE,CAAC;AACnF,cAAc,kEAAkE,CAAC;AACjF,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
package/forms/src/modules/errorMessage/components/groupErrors/groupErrors.component.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groupErrors.component.d.ts","sourceRoot":"","sources":["groupErrors.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAsB,MAAM,eAAe,CAAC;AACtI,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAE,kBAAkB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"groupErrors.component.d.ts","sourceRoot":"","sources":["groupErrors.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+C,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAsB,MAAM,eAAe,CAAC;AACtI,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAE,kBAAkB,EAAE,aAAa,EAAC,MAAM,gBAAgB,CAAC;AAE/F,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,4BAA4B,EAAC,MAAM,kBAAkB,CAAC;;AAE9D;;GAEG;AACH,qBAOa,oBAAqB,YAAW,MAAM,EAAE,SAAS;IA+ClC,SAAS,CAAC,kBAAkB,EAAE,kBAAkB;IAChD,SAAS,CAAC,aAAa,EAAE,aAAa;IAClD,SAAS,CAAC,eAAe,EAAE,iBAAiB;IA7CxD;;OAEG;IACH,SAAS,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC;IAEjC;;OAEG;IACH,SAAS,CAAC,kBAAkB,EAAE,YAAY,CAAsB;IAEhE;;OAEG;IACH,SAAS,CAAC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAIzC;;;OAGG;IACH,IAAW,SAAS,IAAI,SAAS,CAGhC;IAID;;OAEG;IAEI,QAAQ,EAAE,MAAM,CAAC;IAIxB;;OAEG;IAEI,QAAQ,CAAC,EAAE,4BAA4B,CAAC;gBAGb,kBAAkB,EAAE,kBAAkB,EACtC,aAAa,EAAE,aAAa,EACxC,eAAe,EAAE,iBAAiB;IAUxD;;OAEG;IACI,QAAQ,IAAI,IAAI;IAcvB;;OAEG;IACI,WAAW,IAAI,IAAI;yCA/EjB,oBAAoB;2CAApB,oBAAoB;CAoFhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<ng-template #defaultTemplate let-errorName>
|
|
2
|
-
<div [ngClass]="cssClass" [errorMessage]="errorName" [errors]="formGroup.errors"></div>
|
|
2
|
+
<div [ngClass]="cssClass" [errorMessage]="errorName" [errors]="formGroup.errors" @slideInOut></div>
|
|
3
3
|
</ng-template>
|
|
4
4
|
|
|
5
5
|
<ng-container *ngFor="let errorName of formGroup.errors | keys | withErrorMessage; let first=first; let last=last; let index=index">
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "../directives/hasError/hasError.directive";
|
|
3
3
|
import * as i2 from "../directives/groupHasError/groupHasError.directive";
|
|
4
|
-
import * as i3 from "../
|
|
5
|
-
import * as i4 from "../
|
|
6
|
-
import * as i5 from "
|
|
4
|
+
import * as i3 from "../directives/groupHasErrorContainer/groupHasErrorContainer.directive";
|
|
5
|
+
import * as i4 from "../directives/validationErrorsContainer/validationErrorsContainer.directive";
|
|
6
|
+
import * as i5 from "../components/defaultValidationErrors/defaultValidationErrors.component";
|
|
7
|
+
import * as i6 from "../components/defaultValidationErrorsContainer/defaultValidationErrorsContainer.component";
|
|
8
|
+
import * as i7 from "../components/reservedSpaceValidationErrorsContainer/reservedSpaceValidationErrorsContainer.component";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
7
10
|
/**
|
|
8
11
|
* Module for input validation directives
|
|
9
12
|
*/
|
|
10
13
|
export declare class HasErrorModule {
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<HasErrorModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HasErrorModule, [typeof i1.HasErrorDirective, typeof i2.GroupHasErrorDirective, typeof i3.
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HasErrorModule, [typeof i1.HasErrorDirective, typeof i2.GroupHasErrorDirective, typeof i3.GroupHasErrorContainerDirective, typeof i4.ValidationErrorsContainerDirective, typeof i5.DefaultValidationErrorsComponent, typeof i6.DefaultValidationErrorsContainerComponent, typeof i7.ReservedSpaceValidationErrorsContainerComponent], [typeof i8.CommonModule], [typeof i1.HasErrorDirective, typeof i2.GroupHasErrorDirective, typeof i3.GroupHasErrorContainerDirective, typeof i4.ValidationErrorsContainerDirective]>;
|
|
13
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<HasErrorModule>;
|
|
14
17
|
}
|
|
15
18
|
//# sourceMappingURL=hasError.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasError.module.d.ts","sourceRoot":"","sources":["hasError.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hasError.module.d.ts","sourceRoot":"","sources":["hasError.module.ts"],"names":[],"mappings":";;;;;;;;;AAQA;;GAEG;AACH,qBAwBa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAE1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anglr/common",
|
|
3
|
-
"version": "12.0.0
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Angular module for common angular stuff",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@angular/animations": ">=13.1.0",
|
|
103
103
|
"@angular/cdk": ">=13.1.0",
|
|
104
104
|
"@angular/material": ">=13.1.0",
|
|
105
|
-
"@anglr/animations": ">=9.
|
|
105
|
+
"@anglr/animations": ">=9.1.0",
|
|
106
106
|
"rxjs": ">=6.6.7",
|
|
107
107
|
"@jscrpt/common": ">=2.2.0",
|
|
108
108
|
"numeral": "^2.0.6",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@angular/animations": "^13.1.0",
|
|
125
125
|
"@angular/cdk": "^13.1.0",
|
|
126
126
|
"@angular/material": "^13.1.0",
|
|
127
|
-
"@anglr/animations": "^9.
|
|
127
|
+
"@anglr/animations": "^9.1.0",
|
|
128
128
|
"rxjs": "^6.6.7",
|
|
129
129
|
"@jscrpt/common": "^2.2.0",
|
|
130
130
|
"angular2-hotkeys": "^2.4.0",
|
package/positions/src/index.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
export * from './misc/utils';
|
|
2
|
-
export * from './modules/positions/directives/positionTo/positionTo.directive';
|
|
3
|
-
export * from './modules/positions/modules/positions.module';
|
|
4
|
-
export * from './modules/tooltip/components/tooltip/tooltip.component';
|
|
5
|
-
export * from './modules/tooltip/directives/tooltip/tooltip.directive';
|
|
6
|
-
export * from './modules/tooltip/misc/tokens';
|
|
7
|
-
export * from './modules/tooltip/misc/tooltip.interface';
|
|
8
|
-
export * from './modules/tooltip/modules/tooltip.module';
|
|
9
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { Position, PositionPlacement } from '../../../../services/position';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
@@ -25,6 +25,10 @@ export declare class PositionToDirective implements OnChanges {
|
|
|
25
25
|
*/
|
|
26
26
|
get placement(): PositionPlacement | null | undefined;
|
|
27
27
|
set placement(value: PositionPlacement | null | undefined);
|
|
28
|
+
/**
|
|
29
|
+
* Occurs when flip occurs during positioning
|
|
30
|
+
*/
|
|
31
|
+
flip: EventEmitter<void>;
|
|
28
32
|
constructor(_target: ElementRef<HTMLElement>, _position: Position);
|
|
29
33
|
/**
|
|
30
34
|
* Called when input value changes
|
|
@@ -43,6 +47,6 @@ export declare class PositionToDirective implements OnChanges {
|
|
|
43
47
|
*/
|
|
44
48
|
static ngAcceptInputType_positionTo: HTMLElement | ElementRef<HTMLElement>;
|
|
45
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<PositionToDirective, never>;
|
|
46
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "source": "positionTo"; "placement": "placement"; }, {}, never>;
|
|
50
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PositionToDirective, "[positionTo]", never, { "source": "positionTo"; "placement": "placement"; }, { "flip": "flip"; }, never>;
|
|
47
51
|
}
|
|
48
52
|
//# sourceMappingURL=positionTo.directive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positionTo.directive.d.ts","sourceRoot":"","sources":["positionTo.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"positionTo.directive.d.ts","sourceRoot":"","sources":["positionTo.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAE,aAAa,EAAkB,YAAY,EAAC,MAAM,eAAe,CAAC;AAGnH,OAAO,EAAsB,QAAQ,EAAE,iBAAiB,EAAkB,MAAM,+BAA+B,CAAC;;AAGhH;;GAEG;AACH,qBAIa,mBAAoB,YAAW,SAAS;IAiErC,SAAS,CAAC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC;IACxB,SAAS,CAAC,SAAS,EAAE,QAAQ;IA9D3D;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,iBAAiB,GAAC,IAAI,GAAC,SAAS,CAAC;IAEvD;;OAEG;IACH,SAAS,CAAC,OAAO,EAAG,WAAW,CAAC;IAIhC;;OAEG;IACH,IACW,MAAM,IAAI,WAAW,CAG/B;IACD,IAAW,MAAM,CAAC,KAAK,EAAE,WAAW,EAUnC;IAED;;OAEG;IACH,IACW,SAAS,IAAI,iBAAiB,GAAC,IAAI,GAAC,SAAS,CAGvD;IACD,IAAW,SAAS,CAAC,KAAK,EAAE,iBAAiB,GAAC,IAAI,GAAC,SAAS,EAU3D;IAID;;OAEG;IAEI,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;gBAGrC,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,EACd,SAAS,EAAE,QAAQ;IAM3D;;OAEG;IACI,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAYhD;;OAEG;cACa,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB/C;;OAEG;IACH,OAAc,2BAA2B,EAAE,iBAAiB,GAAC,SAAS,GAAC,IAAI,GAAC,MAAM,OAAO,iBAAiB,CAAC;IAI3G;;OAEG;IACH,OAAc,4BAA4B,EAAE,WAAW,GAAC,UAAU,CAAC,WAAW,CAAC,CAAC;yCA7HvE,mBAAmB;2CAAnB,mBAAmB;CA8H/B"}
|
|
@@ -58,6 +58,10 @@ export interface PositionResult<TElement extends Element = any> {
|
|
|
58
58
|
* Y coordinate of position of target
|
|
59
59
|
*/
|
|
60
60
|
y: number;
|
|
61
|
+
/**
|
|
62
|
+
* Indication whether there was flip applied
|
|
63
|
+
*/
|
|
64
|
+
flip: boolean;
|
|
61
65
|
/**
|
|
62
66
|
* Disposes instance of engine used for positioning
|
|
63
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.interface.d.ts","sourceRoot":"","sources":["position.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAE9B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAI5B;;OAEG;IACH,SAAS,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,OAAO,GAAC,iBAAiB,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG;IAE1D;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IAIrB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;CAClH"}
|
|
1
|
+
{"version":3,"file":"position.interface.d.ts","sourceRoot":"","sources":["position.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAE9B;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAI5B;;OAEG;IACH,SAAS,EAAE,iBAAiB,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,UAAU,EAAE,OAAO,GAAC,iBAAiB,CAAC;IAEtC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG;IAE1D;;OAEG;IACH,MAAM,EAAE,QAAQ,CAAC;IAEjB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAEV;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IAIrB;;;;;OAKG;IACH,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;CAClH"}
|
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
12.0.0
|
|
1
|
+
12.0.0
|
package/es2015/positions/src/modules/positions/directives/positionTo/positionTo.directive.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Directive, Input, ElementRef, Inject, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { nameof, isPresent } from '@jscrpt/common';
|
|
4
|
-
import { positionsWithFlip } from '../../../../misc/utils';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Sets position of attached element relative to provided element
|
|
8
|
-
*/
|
|
9
|
-
export class PositionToDirective {
|
|
10
|
-
//######################### constructor #########################
|
|
11
|
-
constructor(_element, _document) {
|
|
12
|
-
this._element = _element;
|
|
13
|
-
this._document = _document;
|
|
14
|
-
/**
|
|
15
|
-
* Relative coordinates of element
|
|
16
|
-
*/
|
|
17
|
-
this.elementCoordinates = 'top left';
|
|
18
|
-
/**
|
|
19
|
-
* Relative coordinates of target element
|
|
20
|
-
*/
|
|
21
|
-
this.targetCoordinates = 'bottom left';
|
|
22
|
-
//######################### public properties - outputs #########################
|
|
23
|
-
/**
|
|
24
|
-
* Occurs when flip occurs during positioning
|
|
25
|
-
*/
|
|
26
|
-
this.flip = new EventEmitter();
|
|
27
|
-
}
|
|
28
|
-
//######################### public methods - implementation of OnChanges #########################
|
|
29
|
-
/**
|
|
30
|
-
* Called when input value changes
|
|
31
|
-
*/
|
|
32
|
-
ngOnChanges(changes) {
|
|
33
|
-
if (nameof('target') in changes && isPresent(this.target)) {
|
|
34
|
-
positionsWithFlip(this._element.nativeElement, this.elementCoordinates, this.target, this.targetCoordinates, this._document, () => this.flip.emit());
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
PositionToDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: PositionToDirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
-
PositionToDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.2", type: PositionToDirective, selector: "[positionTo]", inputs: { target: ["positionTo", "target"], elementCoordinates: "elementCoordinates", targetCoordinates: "targetCoordinates" }, outputs: { flip: "flip" }, usesOnChanges: true, ngImport: i0 });
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: PositionToDirective, decorators: [{
|
|
41
|
-
type: Directive,
|
|
42
|
-
args: [{
|
|
43
|
-
selector: '[positionTo]'
|
|
44
|
-
}]
|
|
45
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: Document, decorators: [{
|
|
46
|
-
type: Inject,
|
|
47
|
-
args: [DOCUMENT]
|
|
48
|
-
}] }]; }, propDecorators: { target: [{
|
|
49
|
-
type: Input,
|
|
50
|
-
args: ['positionTo']
|
|
51
|
-
}], elementCoordinates: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], targetCoordinates: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], flip: [{
|
|
56
|
-
type: Output
|
|
57
|
-
}] } });
|
|
58
|
-
//# sourceMappingURL=positionTo.directive.js.map
|
package/es2015/positions/src/modules/positions/directives/positionTo/positionTo.directive.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positionTo.directive.js","sourceRoot":"","sources":["../../../../../../../positions/src/modules/positions/directives/positionTo/positionTo.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAA4B,MAAM,EAAE,MAAM,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACnH,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,MAAM,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;;AAEzD;;GAEG;AAKH,MAAM,OAAO,mBAAmB;IA8B5B,iEAAiE;IACjE,YAAoB,QAAiC,EACf,SAAmB;QADrC,aAAQ,GAAR,QAAQ,CAAyB;QACf,cAAS,GAAT,SAAS,CAAU;QAtBzD;;WAEG;QAEI,uBAAkB,GAAyB,UAAU,CAAC;QAE7D;;WAEG;QAEI,sBAAiB,GAAyB,aAAa,CAAC;QAE/D,iFAAiF;QAEjF;;WAEG;QAEI,SAAI,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAM3D,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW,CAAC,OAAsB;QAErC,IAAG,MAAM,CAAsB,QAAQ,CAAC,IAAI,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAC7E;YACI,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;SACxJ;IACL,CAAC;;gHA/CQ,mBAAmB,4CAgCR,QAAQ;oGAhCnB,mBAAmB;2FAAnB,mBAAmB;kBAJ/B,SAAS;mBACV;oBACI,QAAQ,EAAE,cAAc;iBAC3B;mFAiCoD,QAAQ;0BAA5C,MAAM;2BAAC,QAAQ;4CAxBrB,MAAM;sBADZ,KAAK;uBAAC,YAAY;gBAOZ,kBAAkB;sBADxB,KAAK;gBAOC,iBAAiB;sBADvB,KAAK;gBASC,IAAI;sBADV,MAAM","sourcesContent":["import {Directive, Input, ElementRef, OnChanges, SimpleChanges, Inject, Output, EventEmitter} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {nameof, isPresent} from '@jscrpt/common';\nimport type {PositionsCoordinates} from 'positions';\n\nimport {positionsWithFlip} from '../../../../misc/utils';\n\n/**\n * Sets position of attached element relative to provided element\n */\n@Directive(\n{\n selector: '[positionTo]'\n})\nexport class PositionToDirective implements OnChanges\n{\n //######################### public properties - inputs #########################\n\n /**\n * Html element which is used as target for positioning against it\n */\n @Input('positionTo')\n public target: HTMLElement;\n\n /**\n * Relative coordinates of element\n */\n @Input()\n public elementCoordinates: PositionsCoordinates = 'top left';\n\n /**\n * Relative coordinates of target element\n */\n @Input()\n public targetCoordinates: PositionsCoordinates = 'bottom left';\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when flip occurs during positioning\n */\n @Output()\n public flip: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(private _element: ElementRef<HTMLElement>,\n @Inject(DOCUMENT) private _document: Document)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n \n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(nameof<PositionToDirective>('target') in changes && isPresent(this.target))\n {\n positionsWithFlip(this._element.nativeElement, this.elementCoordinates, this.target, this.targetCoordinates, this._document, () => this.flip.emit());\n }\n }\n}"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { PositionToDirective } from '../directives/positionTo/positionTo.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Module for position to directive
|
|
6
|
-
*/
|
|
7
|
-
export class PositionsModule {
|
|
8
|
-
}
|
|
9
|
-
PositionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: PositionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
PositionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: PositionsModule, declarations: [PositionToDirective], exports: [PositionToDirective] });
|
|
11
|
-
PositionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: PositionsModule, imports: [[]] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: PositionsModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
imports: [],
|
|
16
|
-
declarations: [
|
|
17
|
-
PositionToDirective
|
|
18
|
-
],
|
|
19
|
-
exports: [
|
|
20
|
-
PositionToDirective
|
|
21
|
-
]
|
|
22
|
-
}]
|
|
23
|
-
}] });
|
|
24
|
-
//# sourceMappingURL=positions.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"positions.module.js","sourceRoot":"","sources":["../../../../../../positions/src/modules/positions/modules/positions.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,mBAAmB,EAAC,MAAM,+CAA+C,CAAC;;AAElF;;GAEG;AAeH,MAAM,OAAO,eAAe;;4GAAf,eAAe;6GAAf,eAAe,iBAPpB,mBAAmB,aAInB,mBAAmB;6GAGd,eAAe,YAXxB,EACC;2FAUQ,eAAe;kBAd3B,QAAQ;mBACT;oBACI,OAAO,EACP,EACC;oBACD,YAAY,EACZ;wBACI,mBAAmB;qBACtB;oBACD,OAAO,EACP;wBACI,mBAAmB;qBACtB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {PositionToDirective} from '../directives/positionTo/positionTo.directive';\n\n/**\n * Module for position to directive\n */\n@NgModule(\n{\n imports:\n [\n ],\n declarations:\n [\n PositionToDirective\n ],\n exports:\n [\n PositionToDirective\n ]\n})\nexport class PositionsModule\n{\n}\n"]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, HostBinding, ElementRef, HostListener } from '@angular/core';
|
|
2
|
-
import { transition, trigger, useAnimation } from '@angular/animations';
|
|
3
|
-
import { fadeInAnimation, fadeOutAnimation } from '@anglr/animations';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
/**
|
|
7
|
-
* Component used for displaying tooltip content
|
|
8
|
-
*/
|
|
9
|
-
export class TooltipComponent {
|
|
10
|
-
//######################### constructor #########################
|
|
11
|
-
constructor(_changeDetector, _element) {
|
|
12
|
-
this._changeDetector = _changeDetector;
|
|
13
|
-
this._element = _element;
|
|
14
|
-
//######################### protected fields #########################
|
|
15
|
-
/**
|
|
16
|
-
* Called when mouse enter tooltip component, hover
|
|
17
|
-
*/
|
|
18
|
-
this._enterFn = () => null;
|
|
19
|
-
/**
|
|
20
|
-
* Called when mouse leaves tooltip component
|
|
21
|
-
*/
|
|
22
|
-
this._leaveFn = () => null;
|
|
23
|
-
//######################### public properties - host #########################
|
|
24
|
-
/**
|
|
25
|
-
* Attach fade in/out animation to element
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
28
|
-
this.animation = true;
|
|
29
|
-
}
|
|
30
|
-
//######################### public methods - implementation of TooltipRenderer #########################
|
|
31
|
-
/**
|
|
32
|
-
* Registers handlers that allows reaction to entering or leaving tooltip
|
|
33
|
-
* @param enter - Called when mouse enter tooltip component, hover
|
|
34
|
-
* @param leave - Called when mouse leaves tooltip component
|
|
35
|
-
*/
|
|
36
|
-
registerHoverEvents(enter, leave) {
|
|
37
|
-
this._enterFn = enter;
|
|
38
|
-
this._leaveFn = leave;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Explicitly runs invalidation of content (change detection)
|
|
42
|
-
*/
|
|
43
|
-
invalidateVisuals() {
|
|
44
|
-
if (this.cssClass) {
|
|
45
|
-
this._element.nativeElement.classList.add(this.cssClass);
|
|
46
|
-
}
|
|
47
|
-
this._changeDetector.detectChanges();
|
|
48
|
-
}
|
|
49
|
-
//######################### public methods - host #########################
|
|
50
|
-
/**
|
|
51
|
-
* Handles mouse enter event over tooltip
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
mouseEnter() {
|
|
55
|
-
this._enterFn();
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Handles mouse leave event over tooltip
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
mouseLeave() {
|
|
62
|
-
this._leaveFn();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
-
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: TooltipComponent, selector: "tooltip-popup", host: { listeners: { "mouseenter": "mouseEnter()", "mouseleave": "mouseLeave()" }, properties: { "@fadeInOut": "this.animation" } }, ngImport: i0, template: "<div *ngIf=\"!template && !allowHtml\">{{data}}</div>\r\n<div *ngIf=\"!template && allowHtml\" [innerHTML]=\"data\"></div>\r\n\r\n<ng-template [ngIf]=\"template\">\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"></ng-container>\r\n</ng-template>", styles: [":host\r\n{\r\n display: block;\r\n position: absolute;\r\n padding: 2px 4px;\r\n border-radius: 3px;\r\n font-size: 0.9em;\r\n max-width: 300px;\r\n user-select: text;\r\n}"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
|
|
67
|
-
trigger('fadeInOut', [
|
|
68
|
-
transition(':enter', [
|
|
69
|
-
useAnimation(fadeInAnimation, { params: { duration: '260ms' } })
|
|
70
|
-
]),
|
|
71
|
-
transition(':leave', [
|
|
72
|
-
useAnimation(fadeOutAnimation, { params: { duration: '260ms' } })
|
|
73
|
-
])
|
|
74
|
-
])
|
|
75
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
77
|
-
type: Component,
|
|
78
|
-
args: [{ selector: 'tooltip-popup', animations: [
|
|
79
|
-
trigger('fadeInOut', [
|
|
80
|
-
transition(':enter', [
|
|
81
|
-
useAnimation(fadeInAnimation, { params: { duration: '260ms' } })
|
|
82
|
-
]),
|
|
83
|
-
transition(':leave', [
|
|
84
|
-
useAnimation(fadeOutAnimation, { params: { duration: '260ms' } })
|
|
85
|
-
])
|
|
86
|
-
])
|
|
87
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"!template && !allowHtml\">{{data}}</div>\r\n<div *ngIf=\"!template && allowHtml\" [innerHTML]=\"data\"></div>\r\n\r\n<ng-template [ngIf]=\"template\">\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"></ng-container>\r\n</ng-template>", styles: [":host\r\n{\r\n display: block;\r\n position: absolute;\r\n padding: 2px 4px;\r\n border-radius: 3px;\r\n font-size: 0.9em;\r\n max-width: 300px;\r\n user-select: text;\r\n}"] }]
|
|
88
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { animation: [{
|
|
89
|
-
type: HostBinding,
|
|
90
|
-
args: ['@fadeInOut']
|
|
91
|
-
}], mouseEnter: [{
|
|
92
|
-
type: HostListener,
|
|
93
|
-
args: ['mouseenter']
|
|
94
|
-
}], mouseLeave: [{
|
|
95
|
-
type: HostListener,
|
|
96
|
-
args: ['mouseleave']
|
|
97
|
-
}] } });
|
|
98
|
-
//# sourceMappingURL=tooltip.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.component.js","sourceRoot":"","sources":["../../../../../../../positions/src/modules/tooltip/components/tooltip/tooltip.component.ts","../../../../../../../positions/src/modules/tooltip/components/tooltip/tooltip.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,S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;QACI,OAAO,CAAC,WAAW,EACnB;YACI,UAAU,CAAC,QAAQ,EACnB;gBACI,YAAY,CAAC,eAAe,EAAE,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,EAAC,CAAC;aAC/D,CAAC;YACF,UAAU,CAAC,QAAQ,EACnB;gBACI,YAAY,CAAC,gBAAgB,EAAE,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,EAAC,CAAC;aAChE,CAAC;SACL,CAAC;KACL;2FAGQ,gBAAgB;kBArB5B,SAAS;+BAEI,eAAe,cAIzB;wBACI,OAAO,CAAC,WAAW,EACnB;4BACI,UAAU,CAAC,QAAQ,EACnB;gCACI,YAAY,CAAC,eAAe,EAAE,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,EAAC,CAAC;6BAC/D,CAAC;4BACF,UAAU,CAAC,QAAQ,EACnB;gCACI,YAAY,CAAC,gBAAgB,EAAE,EAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,OAAO,EAAC,EAAC,CAAC;6BAChE,CAAC;yBACL,CAAC;qBACL,mBACgB,uBAAuB,CAAC,MAAM;iIA6CxC,SAAS;sBADf,WAAW;uBAAC,YAAY;gBA0ClB,UAAU;sBADhB,YAAY;uBAAC,YAAY;gBAWnB,UAAU;sBADhB,YAAY;uBAAC,YAAY","sourcesContent":["import {Component, ChangeDetectionStrategy, TemplateRef, ChangeDetectorRef, HostBinding, ElementRef, HostListener} from '@angular/core';\nimport {transition, trigger, useAnimation} from '@angular/animations';\nimport {fadeInAnimation, fadeOutAnimation} from '@anglr/animations';\n\nimport {TooltipRenderer} from '../../misc/tooltip.interface';\n\n/**\n * Component used for displaying tooltip content\n */\n@Component(\n{\n selector: 'tooltip-popup',\n templateUrl: 'tooltip.component.html',\n styleUrls: ['tooltip.component.css'],\n animations:\n [\n trigger('fadeInOut',\n [\n transition(':enter', \n [\n useAnimation(fadeInAnimation, {params: {duration: '260ms'}})\n ]),\n transition(':leave', \n [\n useAnimation(fadeOutAnimation, {params: {duration: '260ms'}})\n ])\n ])\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class TooltipComponent<TData = any> implements TooltipRenderer<TData>\n{\n //######################### protected fields #########################\n\n /**\n * Called when mouse enter tooltip component, hover\n */\n protected _enterFn: () => void = () => null;\n\n /**\n * Called when mouse leaves tooltip component\n */\n protected _leaveFn: () => void = () => null;\n\n //######################### public properties - implementation of TooltipRenderer #########################\n\n /**\n * Data that are rendered in tooltip\n */\n public data: TData|null;\n\n /**\n * Template used for rendering tooltip\n */\n public template: TemplateRef<TData>|null;\n\n /**\n * Indication whether are html tags allowed in tooltip text\n */\n public allowHtml: boolean;\n\n /**\n * Css class that is applied to tooltip renderer component\n */\n public cssClass: string|null;\n\n //######################### public properties - host #########################\n\n /**\n * Attach fade in/out animation to element\n * @internal\n */\n @HostBinding('@fadeInOut')\n public animation: boolean = true;\n\n //######################### constructor #########################\n constructor(protected _changeDetector: ChangeDetectorRef,\n protected _element: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of TooltipRenderer #########################\n\n /**\n * Registers handlers that allows reaction to entering or leaving tooltip\n * @param enter - Called when mouse enter tooltip component, hover\n * @param leave - Called when mouse leaves tooltip component\n */\n public registerHoverEvents(enter: () => void, leave: () => void): void\n {\n this._enterFn = enter;\n this._leaveFn = leave;\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n if(this.cssClass)\n {\n this._element.nativeElement.classList.add(this.cssClass);\n }\n\n this._changeDetector.detectChanges();\n }\n\n //######################### public methods - host #########################\n\n /**\n * Handles mouse enter event over tooltip\n * @internal\n */\n @HostListener('mouseenter')\n public mouseEnter(): void\n {\n this._enterFn();\n }\n\n /**\n * Handles mouse leave event over tooltip\n * @internal\n */\n @HostListener('mouseleave')\n public mouseLeave(): void\n {\n this._leaveFn();\n }\n}","<div *ngIf=\"!template && !allowHtml\">{{data}}</div>\r\n<div *ngIf=\"!template && allowHtml\" [innerHTML]=\"data\"></div>\r\n\r\n<ng-template [ngIf]=\"template\">\r\n <ng-container *ngTemplateOutlet=\"template; context: {$implicit: data}\"></ng-container>\r\n</ng-template>"]}
|