@colijnit/corecomponents_v12 12.0.96 → 12.0.98
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/bundles/colijnit-corecomponents_v12.umd.js +323 -8
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +8 -3
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +9 -4
- package/esm2015/lib/components/base/base-input.component.js +2 -1
- package/esm2015/lib/components/input-search/input-search.component.js +2 -1
- package/esm2015/lib/components/input-text/input-text.component.js +21 -17
- package/esm2015/lib/components/tooltip/tooltip.component.js +77 -0
- package/esm2015/lib/components/tooltip/tooltip.module.js +19 -0
- package/esm2015/lib/core/model/core-components-icon-svg.js +2 -2
- package/esm2015/lib/directives/overlay/overlay-parent.directive.js +19 -0
- package/esm2015/lib/directives/overlay/overlay.directive.js +67 -0
- package/esm2015/lib/directives/overlay/overlay.module.js +18 -0
- package/esm2015/lib/directives/tooltip/tooltip-directive.module.js +19 -0
- package/esm2015/lib/directives/tooltip/tooltip.directive.js +78 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-corecomponents_v12.js +305 -18
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/base/base-input.component.d.ts +1 -0
- package/lib/components/input-search/style/_layout.scss +20 -21
- package/lib/components/input-search/style/_material-definition.scss +1 -0
- package/lib/components/input-search/style/_theme.scss +21 -1
- package/lib/components/input-text/input-text.component.d.ts +0 -1
- package/lib/components/input-text/style/_layout.scss +39 -33
- package/lib/components/input-text/style/_material-definition.scss +3 -0
- package/lib/components/input-text/style/_theme.scss +13 -1
- package/lib/components/list-of-values/style/_layout.scss +66 -0
- package/lib/components/list-of-values/style/_material-definition.scss +0 -0
- package/lib/components/list-of-values/style/_theme.scss +0 -0
- package/lib/components/list-of-values/style/material.scss +4 -0
- package/lib/components/simple-grid/style/_layout.scss +34 -1
- package/lib/components/simple-grid/style/_material-definition.scss +10 -1
- package/lib/components/tooltip/style/_layout.scss +52 -0
- package/lib/components/tooltip/style/_material-definition.scss +8 -0
- package/lib/components/tooltip/style/_theme.scss +33 -0
- package/lib/components/tooltip/style/material.scss +4 -0
- package/lib/components/tooltip/tooltip.component.d.ts +18 -0
- package/lib/components/tooltip/tooltip.module.d.ts +2 -0
- package/lib/directives/overlay/overlay-parent.directive.d.ts +6 -0
- package/lib/directives/overlay/overlay.directive.d.ts +14 -0
- package/lib/directives/overlay/overlay.module.d.ts +2 -0
- package/lib/directives/tooltip/tooltip-directive.module.d.ts +2 -0
- package/lib/directives/tooltip/tooltip.directive.d.ts +20 -0
- package/lib/style/_input.mixins.scss +14 -24
- package/lib/style/_variables.scss +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1091,7 +1091,7 @@
|
|
|
1091
1091
|
"logo": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"21.19\" width=\"2.04\" height=\"6.32\" fill=\"#484f60\"/><path d=\"M18.66,29.24a3.84,3.84,0,0,1-2.85-1.19,4.19,4.19,0,0,1,0-5.77,4,4,0,0,1,5.71,0,4.19,4.19,0,0,1,0,5.77A3.85,3.85,0,0,1,18.66,29.24Zm0-6.16a1.79,1.79,0,0,0-1.38.58,2.12,2.12,0,0,0-.57,1.51,2,2,0,0,0,.57,1.49,1.94,1.94,0,0,0,2.76,0,2.08,2.08,0,0,0,.56-1.5,2.15,2.15,0,0,0-.56-1.51A1.76,1.76,0,0,0,18.67,23.08Z\" fill=\"#484f60\"/><polygon points=\"31.05 29.18 27.33 25.02 27.33 29.14 25.29 29.14 25.29 21.15 26.57 21.15 30.29 25.33 30.29 21.19 32.33 21.19 32.33 29.18 31.05 29.18\" fill=\"#484f60\"/><polygon points=\"35.34 29.14 35.34 21.19 39.9 21.19 39.9 23.17 37.38 23.17 37.38 23.9 39.66 23.9 39.66 25.87 37.38 25.87 37.38 27.14 40 27.14 40 29.14 35.34 29.14\" fill=\"#484f60\"/></svg>",
|
|
1092
1092
|
"logout": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"27.33 34.17 12.33 34.17 12.33 11.17 27.33 11.17 27.33 17.63 28.33 17.63 28.33 10.17 11.33 10.17 11.33 35.17 28.33 35.17 28.33 27.71 27.33 27.71 27.33 34.17\" fill=\"#484f60\"/><polygon points=\"22.33 40.17 11.33 35.17 11.33 10.17 22.33 14.17 22.33 40.17\" fill=\"#484f60\"/><polygon points=\"38.67 22.66 30.63 14.63 30.63 19.63 24.33 19.63 24.33 25.71 30.63 25.71 30.63 30.71 38.67 22.66\" fill=\"#484f60\"/></svg>",
|
|
1093
1093
|
"magic_wand": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><g style=\"isolation:isolate\"><path d=\"M20.45,10.71a.28.28,0,0,1,.49-.19l1.4,1.25a.93.93,0,0,0,.83.23L25,11.62a.29.29,0,0,1,.34.41l-.76,1.71a.93.93,0,0,0,0,.86l.93,1.62c.12.26,0,.45-.29.45l-1.86-.2a1,1,0,0,0-.81.32l-1.26,1.38a.28.28,0,0,1-.5-.14l-.39-1.83a1,1,0,0,0-.55-.67l-1.71-.77a.28.28,0,0,1,0-.52l1.62-.94a1,1,0,0,0,.48-.73Z\" fill=\"#484f60\"/><g style=\"mix-blend-mode:lighten\"><path d=\"M23.3,16.21a1,1,0,0,0-.8.31l-1,1.13a.29.29,0,0,1-.51-.14L20.66,16a1,1,0,0,0-.55-.68l-1.39-.62a.28.28,0,0,1,0-.52L20,13.45a1,1,0,0,0,.48-.73l.16-1.5a.29.29,0,0,1,.49-.2l1.13,1a.93.93,0,0,0,.83.23L24.58,12a.29.29,0,0,1,.34.41l-.62,1.38a.91.91,0,0,0,.05.86l.75,1.32a.29.29,0,0,1-.29.44Z\" fill=\"#484f60\"/></g><path d=\"M33.57,36.76a.53.53,0,0,1,0,.72l-2.37,2.18a.48.48,0,0,1-.7,0L18,25.34a.51.51,0,0,1,0-.71l2.36-2.19a.49.49,0,0,1,.7,0Z\" fill=\"#484f60\"/><path d=\"M18.6,19.94a.51.51,0,0,1,0,.71L16.2,22.84a.48.48,0,0,1-.7,0l-2.76-3.13a.51.51,0,0,1,0-.71l2.37-2.19a.48.48,0,0,1,.7,0Z\" fill=\"#484f60\"/><path d=\"M30.67,10.55a.29.29,0,0,1,.47.24v1.12a1,1,0,0,0,.4.77l.9.66a.29.29,0,0,1-.08.52l-1.07.35a1,1,0,0,0-.61.61l-.35,1.06a.28.28,0,0,1-.51.09l-.67-.91a1,1,0,0,0-.77-.4H27.27a.29.29,0,0,1-.25-.47l.66-.9a.93.93,0,0,0,.14-.85l-.35-1.07a.29.29,0,0,1,.38-.38l1.07.35a1,1,0,0,0,.85-.13Z\" fill=\"#484f60\"/><g style=\"mix-blend-mode:lighten\"><path d=\"M29.25,14.88a1,1,0,0,0-.77-.4h-.86a.29.29,0,0,1-.24-.47l.5-.69a.93.93,0,0,0,.14-.85l-.26-.82c-.07-.27.1-.44.37-.37l.82.26a1,1,0,0,0,.85-.13l.69-.51a.29.29,0,0,1,.47.25V12a.94.94,0,0,0,.39.76l.7.51a.29.29,0,0,1-.09.52l-.81.26a1,1,0,0,0-.62.61l-.26.82a.29.29,0,0,1-.52.08Z\" fill=\"#484f60\"/></g><path d=\"M37,15.81a.29.29,0,0,1,.32.43l-.13.26a.91.91,0,0,0,0,.85l.15.26A.29.29,0,0,1,37,18l-.29,0a.93.93,0,0,0-.81.27l-.2.21a.28.28,0,0,1-.5-.16l0-.29a1,1,0,0,0-.52-.69l-.27-.13a.28.28,0,0,1,0-.52l.26-.13a.93.93,0,0,0,.5-.71l0-.29a.29.29,0,0,1,.5-.17l.21.21a.92.92,0,0,0,.82.26Z\" fill=\"#484f60\"/><g style=\"mix-blend-mode:lighten\"><path d=\"M35.25,18a1,1,0,0,0-.52-.7l-.12-.05a.28.28,0,0,1,0-.52l.12-.06a1,1,0,0,0,.51-.7V15.8a.29.29,0,0,1,.5-.18l.09.1a.92.92,0,0,0,.82.26l.13,0a.29.29,0,0,1,.32.42L37,16.5a.91.91,0,0,0,0,.85l.07.12a.29.29,0,0,1-.31.43l-.13,0a1,1,0,0,0-.82.28l-.09.1a.28.28,0,0,1-.5-.16Z\" fill=\"#484f60\"/></g></g></svg>",
|
|
1094
|
-
"magnifier": "<svg
|
|
1094
|
+
"magnifier": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/></svg>",
|
|
1095
1095
|
"manager": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><g><path fill=\"#484F5F\" d=\"M31.5,23h-0.5c-0.9,1.2-2.4,2.6-4.1,3.2c0.1,0.2,0.2,0.4,0.2,0.6c0,0.4-0.2,0.7-0.6,1l1.5,6.9l-2.5,2.5L23,34.7l1.5-6.9c-0.4-0.2-0.6-0.6-0.6-1c0-0.2,0.1-0.4,0.2-0.6c-1.7-0.6-3.2-2-4.1-3.2h-0.5c-2.2,0-4,2.1-4,3.9l2.7,3c0,1.8,1.8,8.1,4,8.1h6.7c2.2,0,4-6.4,4-8.1l2.7-3C35.6,25.1,33.8,23,31.5,23z\"/><path fill=\"#484F5F\" d=\"M31.7,18.1c0,2.7-2.8,5.8-6.2,5.8c-3.4,0-6.2-3.1-6.2-5.8c0-2.7,2.8-5.1,6.2-5.1C28.9,13,31.7,15.4,31.7,18.1z\"/></g></svg>",
|
|
1096
1096
|
"mask": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M30,11V30H11V11H30m1-1H10V31H31V10Z\" fill=\"#484f60\"/><rect x=\"19\" y=\"19\" width=\"21\" height=\"21\" fill=\"#484f60\" opacity=\"0.5\"/><rect x=\"19\" y=\"19\" width=\"12\" height=\"12\" fill=\"#484f60\"/><path d=\"M39,20V39H20V20H39m1-1H19V40H40V19Z\" fill=\"#484f60\" opacity=\"0.5\"/></svg>",
|
|
1097
1097
|
"master_detail": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"22\" y=\"32.17\" width=\"18\" height=\"4\" transform=\"translate(62 68.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"26.17\" width=\"18\" height=\"4\" transform=\"translate(62 56.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"20.17\" width=\"18\" height=\"4\" transform=\"translate(62 44.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"22\" y=\"14.17\" width=\"18\" height=\"4\" transform=\"translate(62 32.33) rotate(180)\" fill=\"#484f60\"/><rect x=\"10\" y=\"14.17\" width=\"10\" height=\"22\" transform=\"translate(30 50.33) rotate(180)\" fill=\"#484f60\"/></svg>",
|
|
@@ -5139,6 +5139,7 @@
|
|
|
5139
5139
|
hidden: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class." + BaseInputComponent.HiddenClass,] }],
|
|
5140
5140
|
decimals: [{ type: i0.Input }],
|
|
5141
5141
|
icon: [{ type: i0.Input }],
|
|
5142
|
+
customCssClass: [{ type: i0.Input }],
|
|
5142
5143
|
redErrorBackground: [{ type: i0.Input }, { type: i0.HostBinding, args: ["class.cc-red-error-background",] }],
|
|
5143
5144
|
myFormInputInstance: [{ type: i0.Input }],
|
|
5144
5145
|
nativeBlur: [{ type: i0.Output }],
|
|
@@ -7609,7 +7610,6 @@
|
|
|
7609
7610
|
_this.showPlaceholderOnFocus = true;
|
|
7610
7611
|
_this.noStyle = false;
|
|
7611
7612
|
_this.hideArrowButtons = false;
|
|
7612
|
-
_this.isSmall = false;
|
|
7613
7613
|
_this.leftIconClick = new i0.EventEmitter();
|
|
7614
7614
|
_this.rightIconClick = new i0.EventEmitter();
|
|
7615
7615
|
_this.hasOwnLabel = true;
|
|
@@ -7673,7 +7673,7 @@
|
|
|
7673
7673
|
InputTextComponent.decorators = [
|
|
7674
7674
|
{ type: i0.Component, args: [{
|
|
7675
7675
|
selector: "co-input-text",
|
|
7676
|
-
template: "\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\" (click)=\"handleLeftIconClick($event)\"></co-icon>\n
|
|
7676
|
+
template: "\n <div class=\"input-text-wrapper\">\n <co-icon *ngIf=\"leftIcon\" class=\"input-text-left-icon\" [icon]=\"leftIcon\" [iconData]=\"leftIconData\" (click)=\"handleLeftIconClick($event)\"></co-icon>\n <div *ngIf=\"leftIcon\" class=\"spacer\"></div>\n <div class=\"input-wrapper\">\n <label *ngIf=\"showPlaceholderOnFocus || (!showPlaceholderOnFocus && !hasValue && !focused)\"\n [textContent]=\"placeholder\"></label>\n <input #input\n [type]=\"digitsOnly ? 'number' : type\"\n [ngModel]=\"model\"\n [min]=\"type === 'number' && this.min ? this.min : undefined\"\n [max]=\"type === 'number' && this.max ? this.max : undefined\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n (ngModelChange)=\"modelChange.emit($event)\"\n (keydown)=\"digitsOnly ? excludeNonDigitChars($event) : true\"\n >\n </div>\n <div *ngIf=\"rightIcon\" class=\"spacer\"></div>\n <co-icon *ngIf=\"rightIcon\" class=\"input-text-right-icon\" [icon]=\"rightIcon\" [iconData]=\"rightIconData\" (click)=\"handleRightIconClick($event)\"></co-icon>\n </div>\n <co-commit-buttons *ngIf=\"showSaveCancel && focused && canSaveOrCancel\"\n [committing]=\"committing\"\n [commitFinished]=\"commitFinished\"\n (commitClick)=\"commitClick($event)\"\n (cancelClick)=\"cancelClick($event)\"\n >\n </co-commit-buttons>\n <div class=\"required-indicator\"></div>\n <ng-template #validationError></ng-template>\n ",
|
|
7677
7677
|
providers: [{
|
|
7678
7678
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
7679
7679
|
useExisting: i0.forwardRef(function () { return InputTextComponent; })
|
|
@@ -7708,7 +7708,6 @@
|
|
|
7708
7708
|
rightIconData: [{ type: i0.Input }],
|
|
7709
7709
|
noStyle: [{ type: i0.HostBinding, args: ['class.no-style',] }, { type: i0.Input }],
|
|
7710
7710
|
hideArrowButtons: [{ type: i0.Input }, { type: i0.HostBinding, args: ['class.hide-arrows',] }],
|
|
7711
|
-
isSmall: [{ type: i0.HostBinding, args: ['class.is-small',] }, { type: i0.Input }],
|
|
7712
7711
|
leftIconClick: [{ type: i0.Output }],
|
|
7713
7712
|
rightIconClick: [{ type: i0.Output }],
|
|
7714
7713
|
showClass: [{ type: i0.HostBinding, args: ["class.co-input-text",] }],
|
|
@@ -7898,7 +7897,7 @@
|
|
|
7898
7897
|
InputSearchComponent.decorators = [
|
|
7899
7898
|
{ type: i0.Component, args: [{
|
|
7900
7899
|
selector: 'co-input-search',
|
|
7901
|
-
template: "\n <co-input-text\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : undefined\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : undefined\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n ></co-input-text>\n ",
|
|
7900
|
+
template: "\n <co-input-text\n [ngClass]=\"customCssClass\"\n [model]=\"model\"\n [leftIcon]=\"useLeftIcon ? searchIcon : null\"\n [rightIcon]=\"useRightIcon ? searchIcon : null\"\n [leftIconData]=\"useLeftIcon && leftIconData ? leftIconData : undefined\"\n [rightIconData]=\"useRightIcon && rightIconData ? rightIconData : undefined\"\n [placeholder]=\"placeholder\"\n [customHeight]=\"true\"\n [showPlaceholderOnFocus]=\"false\"\n (modelChange)=\"modelChange.emit($event)\"\n (leftIconClick)=\"leftIconClick.emit($event)\"\n (rightIconClick)=\"rightIconClick.emit($event)\"\n ></co-input-text>\n ",
|
|
7902
7901
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7903
7902
|
encapsulation: i0.ViewEncapsulation.None
|
|
7904
7903
|
},] }
|
|
@@ -11484,6 +11483,315 @@
|
|
|
11484
11483
|
},] }
|
|
11485
11484
|
];
|
|
11486
11485
|
|
|
11486
|
+
var OverlayDirective = /** @class */ (function () {
|
|
11487
|
+
function OverlayDirective(elementRef) {
|
|
11488
|
+
this._elementRef = elementRef;
|
|
11489
|
+
}
|
|
11490
|
+
Object.defineProperty(OverlayDirective.prototype, "parent", {
|
|
11491
|
+
set: function (value) {
|
|
11492
|
+
if (value && value.elementRef) {
|
|
11493
|
+
this._parent = value.elementRef;
|
|
11494
|
+
}
|
|
11495
|
+
else {
|
|
11496
|
+
if (this._parent) {
|
|
11497
|
+
this._observer.disconnect();
|
|
11498
|
+
}
|
|
11499
|
+
}
|
|
11500
|
+
},
|
|
11501
|
+
enumerable: false,
|
|
11502
|
+
configurable: true
|
|
11503
|
+
});
|
|
11504
|
+
OverlayDirective.prototype.ngOnDestroy = function () {
|
|
11505
|
+
var _this = this;
|
|
11506
|
+
window.removeEventListener("scroll", function (event) { return _this._handleScroll; });
|
|
11507
|
+
this._observer.disconnect();
|
|
11508
|
+
this._elementRef = undefined;
|
|
11509
|
+
this._parent = undefined;
|
|
11510
|
+
};
|
|
11511
|
+
OverlayDirective.prototype.ngOnInit = function () {
|
|
11512
|
+
var _this = this;
|
|
11513
|
+
window.addEventListener("scroll", function (event) { return _this._handleScroll; });
|
|
11514
|
+
this._initiallyPlaceElement();
|
|
11515
|
+
this._observer = new ResizeObserver(function (entries) {
|
|
11516
|
+
var entry = entries[0];
|
|
11517
|
+
var elementRect = _this._elementRef.nativeElement.getBoundingClientRect();
|
|
11518
|
+
var parentRect = _this._parent.nativeElement.getBoundingClientRect();
|
|
11519
|
+
_this._placeElement(entry.contentRect.bottom, entry.contentRect.right, parentRect, elementRect);
|
|
11520
|
+
});
|
|
11521
|
+
this._observer.observe(document.body);
|
|
11522
|
+
};
|
|
11523
|
+
OverlayDirective.prototype._initiallyPlaceElement = function () {
|
|
11524
|
+
var elementRect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
11525
|
+
var parentRect = this._parent.nativeElement.getBoundingClientRect();
|
|
11526
|
+
this._placeElement(window.innerHeight, window.innerWidth, parentRect, elementRect);
|
|
11527
|
+
};
|
|
11528
|
+
OverlayDirective.prototype._placeElement = function (bottom, right, parentRect, elementRect) {
|
|
11529
|
+
if (bottom < parentRect.bottom + elementRect.height) { // make sure it fits at the bottom
|
|
11530
|
+
this._elementRef.nativeElement.style.top = (parentRect.top - elementRect.height) + "px";
|
|
11531
|
+
}
|
|
11532
|
+
else {
|
|
11533
|
+
this._elementRef.nativeElement.style.top = parentRect.bottom + "px";
|
|
11534
|
+
}
|
|
11535
|
+
if (right < parentRect.left + elementRect.width) { // make sure it fits at the right
|
|
11536
|
+
this._elementRef.nativeElement.style.left = (parentRect.right - elementRect.width) + "px";
|
|
11537
|
+
}
|
|
11538
|
+
else {
|
|
11539
|
+
this._elementRef.nativeElement.style.left = parentRect.left + "px";
|
|
11540
|
+
}
|
|
11541
|
+
};
|
|
11542
|
+
OverlayDirective.prototype._handleScroll = function (event) {
|
|
11543
|
+
console.log("scroll");
|
|
11544
|
+
};
|
|
11545
|
+
return OverlayDirective;
|
|
11546
|
+
}());
|
|
11547
|
+
OverlayDirective.decorators = [
|
|
11548
|
+
{ type: i0.Directive, args: [{
|
|
11549
|
+
selector: "[overlay]"
|
|
11550
|
+
},] }
|
|
11551
|
+
];
|
|
11552
|
+
OverlayDirective.ctorParameters = function () { return [
|
|
11553
|
+
{ type: i0.ElementRef }
|
|
11554
|
+
]; };
|
|
11555
|
+
OverlayDirective.propDecorators = {
|
|
11556
|
+
parent: [{ type: i0.Input, args: ["overlay",] }]
|
|
11557
|
+
};
|
|
11558
|
+
|
|
11559
|
+
var OverlayParentDirective = /** @class */ (function () {
|
|
11560
|
+
function OverlayParentDirective(elementRef) {
|
|
11561
|
+
this.elementRef = elementRef;
|
|
11562
|
+
}
|
|
11563
|
+
OverlayParentDirective.prototype.ngOnDestroy = function () {
|
|
11564
|
+
this.elementRef = undefined;
|
|
11565
|
+
};
|
|
11566
|
+
return OverlayParentDirective;
|
|
11567
|
+
}());
|
|
11568
|
+
OverlayParentDirective.decorators = [
|
|
11569
|
+
{ type: i0.Directive, args: [{
|
|
11570
|
+
selector: '[overlayParent]',
|
|
11571
|
+
exportAs: 'overlayParent'
|
|
11572
|
+
},] }
|
|
11573
|
+
];
|
|
11574
|
+
OverlayParentDirective.ctorParameters = function () { return [
|
|
11575
|
+
{ type: i0.ElementRef }
|
|
11576
|
+
]; };
|
|
11577
|
+
|
|
11578
|
+
var OverlayModule = /** @class */ (function () {
|
|
11579
|
+
function OverlayModule() {
|
|
11580
|
+
}
|
|
11581
|
+
return OverlayModule;
|
|
11582
|
+
}());
|
|
11583
|
+
OverlayModule.decorators = [
|
|
11584
|
+
{ type: i0.NgModule, args: [{
|
|
11585
|
+
declarations: [
|
|
11586
|
+
OverlayDirective,
|
|
11587
|
+
OverlayParentDirective
|
|
11588
|
+
],
|
|
11589
|
+
exports: [
|
|
11590
|
+
OverlayDirective,
|
|
11591
|
+
OverlayParentDirective
|
|
11592
|
+
]
|
|
11593
|
+
},] }
|
|
11594
|
+
];
|
|
11595
|
+
|
|
11596
|
+
var TooltipComponent = /** @class */ (function () {
|
|
11597
|
+
function TooltipComponent(_elementRef, _changeDetector) {
|
|
11598
|
+
this._elementRef = _elementRef;
|
|
11599
|
+
this._changeDetector = _changeDetector;
|
|
11600
|
+
this.top = -100;
|
|
11601
|
+
this.left = -100;
|
|
11602
|
+
this.bottom = false;
|
|
11603
|
+
this.animate = true;
|
|
11604
|
+
}
|
|
11605
|
+
Object.defineProperty(TooltipComponent.prototype, "hostElement", {
|
|
11606
|
+
get: function () {
|
|
11607
|
+
return this._hostElement;
|
|
11608
|
+
},
|
|
11609
|
+
set: function (value) {
|
|
11610
|
+
this._hostElement = value;
|
|
11611
|
+
// this._positionTooltip();
|
|
11612
|
+
},
|
|
11613
|
+
enumerable: false,
|
|
11614
|
+
configurable: true
|
|
11615
|
+
});
|
|
11616
|
+
TooltipComponent.prototype.showClass = function () {
|
|
11617
|
+
return true;
|
|
11618
|
+
};
|
|
11619
|
+
TooltipComponent.prototype.ngAfterViewInit = function () {
|
|
11620
|
+
var _this = this;
|
|
11621
|
+
setTimeout(function () {
|
|
11622
|
+
_this._positionTooltip();
|
|
11623
|
+
});
|
|
11624
|
+
};
|
|
11625
|
+
TooltipComponent.prototype._positionTooltip = function () {
|
|
11626
|
+
if (this.hostElement && this._elementRef && this._elementRef.nativeElement) {
|
|
11627
|
+
var rect = this.hostElement.getBoundingClientRect();
|
|
11628
|
+
var ownRect = this._elementRef.nativeElement.getBoundingClientRect();
|
|
11629
|
+
var wantedLeft = rect.left;
|
|
11630
|
+
var wantedTop = rect.top - ownRect.height;
|
|
11631
|
+
if (wantedTop < 0) { // out of view, move to bottom
|
|
11632
|
+
this.bottom = true;
|
|
11633
|
+
wantedTop = rect.bottom;
|
|
11634
|
+
}
|
|
11635
|
+
else {
|
|
11636
|
+
this.bottom = false;
|
|
11637
|
+
}
|
|
11638
|
+
this.left = wantedLeft;
|
|
11639
|
+
this.top = wantedTop;
|
|
11640
|
+
this._changeDetector.markForCheck();
|
|
11641
|
+
this._changeDetector.detectChanges();
|
|
11642
|
+
}
|
|
11643
|
+
};
|
|
11644
|
+
return TooltipComponent;
|
|
11645
|
+
}());
|
|
11646
|
+
TooltipComponent.decorators = [
|
|
11647
|
+
{ type: i0.Component, args: [{
|
|
11648
|
+
selector: 'co-tooltip',
|
|
11649
|
+
template: "\n <div class=\"tooltip\" [innerHTML]=\"toolTip\"></div>\n ",
|
|
11650
|
+
animations: [
|
|
11651
|
+
animations.trigger("showHide", [
|
|
11652
|
+
animations.state("void", animations.style({ opacity: 0 })),
|
|
11653
|
+
animations.state("*", animations.style({ opacity: 1 })),
|
|
11654
|
+
animations.transition("void <=> *", animations.animate("200ms ease-in-out")),
|
|
11655
|
+
])
|
|
11656
|
+
],
|
|
11657
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
11658
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
11659
|
+
},] }
|
|
11660
|
+
];
|
|
11661
|
+
TooltipComponent.ctorParameters = function () { return [
|
|
11662
|
+
{ type: i0.ElementRef },
|
|
11663
|
+
{ type: i0.ChangeDetectorRef }
|
|
11664
|
+
]; };
|
|
11665
|
+
TooltipComponent.propDecorators = {
|
|
11666
|
+
hostElement: [{ type: i0.Input }],
|
|
11667
|
+
toolTip: [{ type: i0.Input }],
|
|
11668
|
+
showClass: [{ type: i0.HostBinding, args: ['class.co-tooltip',] }],
|
|
11669
|
+
top: [{ type: i0.HostBinding, args: ["style.top.px",] }],
|
|
11670
|
+
left: [{ type: i0.HostBinding, args: ["style.left.px",] }],
|
|
11671
|
+
bottom: [{ type: i0.HostBinding, args: ["class.bottom",] }],
|
|
11672
|
+
animate: [{ type: i0.HostBinding, args: ['@showHide',] }]
|
|
11673
|
+
};
|
|
11674
|
+
|
|
11675
|
+
var TooltipDirective = /** @class */ (function () {
|
|
11676
|
+
function TooltipDirective(elementRef, _compFactoryResolver, _appRef, _injector, _sanitizer) {
|
|
11677
|
+
this._compFactoryResolver = _compFactoryResolver;
|
|
11678
|
+
this._appRef = _appRef;
|
|
11679
|
+
this._injector = _injector;
|
|
11680
|
+
this._sanitizer = _sanitizer;
|
|
11681
|
+
this._elementRef = elementRef;
|
|
11682
|
+
}
|
|
11683
|
+
Object.defineProperty(TooltipDirective.prototype, "tooltip", {
|
|
11684
|
+
set: function (str) {
|
|
11685
|
+
this._tooltipMessage = str;
|
|
11686
|
+
},
|
|
11687
|
+
enumerable: false,
|
|
11688
|
+
configurable: true
|
|
11689
|
+
});
|
|
11690
|
+
TooltipDirective.prototype.ngOnDestroy = function () {
|
|
11691
|
+
var _this = this;
|
|
11692
|
+
if (this._elementRef && this._elementRef.nativeElement) {
|
|
11693
|
+
this._elementRef.nativeElement.removeEventListener('mouseenter', function (event) { return _this._handleMouseMove(event); });
|
|
11694
|
+
this._elementRef.nativeElement.removeEventListener('mouseleave', function () { return _this._removeTooltip(); });
|
|
11695
|
+
}
|
|
11696
|
+
window.removeEventListener("scroll", function (event) { return _this._handleScroll; });
|
|
11697
|
+
this._elementRef = undefined;
|
|
11698
|
+
};
|
|
11699
|
+
TooltipDirective.prototype.ngOnInit = function () {
|
|
11700
|
+
var _this = this;
|
|
11701
|
+
window.addEventListener("scroll", function (event) { return _this._handleScroll; });
|
|
11702
|
+
if (this._elementRef && this._elementRef.nativeElement) {
|
|
11703
|
+
this._elementRef.nativeElement.addEventListener('mouseenter', function (event) { return _this._handleMouseMove(event); });
|
|
11704
|
+
this._elementRef.nativeElement.addEventListener('mouseleave', function () { return _this._removeTooltip(); });
|
|
11705
|
+
}
|
|
11706
|
+
};
|
|
11707
|
+
TooltipDirective.prototype._handleScroll = function () {
|
|
11708
|
+
this._removeTooltip();
|
|
11709
|
+
};
|
|
11710
|
+
TooltipDirective.prototype._handleMouseMove = function (event) {
|
|
11711
|
+
this._showTooltip(event.clientY, event.clientX);
|
|
11712
|
+
};
|
|
11713
|
+
TooltipDirective.prototype._showTooltip = function (top, left) {
|
|
11714
|
+
this._createTooltipComponent(top, left);
|
|
11715
|
+
};
|
|
11716
|
+
TooltipDirective.prototype._removeTooltip = function () {
|
|
11717
|
+
if (this._componentRef) {
|
|
11718
|
+
this._appRef.detachView(this._componentRef.hostView);
|
|
11719
|
+
this._componentRef.destroy();
|
|
11720
|
+
this._componentRef = undefined;
|
|
11721
|
+
}
|
|
11722
|
+
};
|
|
11723
|
+
TooltipDirective.prototype._createTooltipComponent = function (top, left) {
|
|
11724
|
+
if (!this._tooltipMessage) {
|
|
11725
|
+
return;
|
|
11726
|
+
}
|
|
11727
|
+
if (this._componentRef) {
|
|
11728
|
+
return;
|
|
11729
|
+
}
|
|
11730
|
+
this._componentRef = this._compFactoryResolver
|
|
11731
|
+
.resolveComponentFactory(TooltipComponent)
|
|
11732
|
+
.create(this._injector);
|
|
11733
|
+
this._componentRef.instance.hostElement = this._elementRef.nativeElement;
|
|
11734
|
+
this._componentRef.instance.toolTip = this._sanitizer.bypassSecurityTrustHtml(this._tooltipMessage);
|
|
11735
|
+
this._appRef.attachView(this._componentRef.hostView);
|
|
11736
|
+
var domElem = this._componentRef.hostView.rootNodes[0];
|
|
11737
|
+
document.body.appendChild(domElem);
|
|
11738
|
+
};
|
|
11739
|
+
return TooltipDirective;
|
|
11740
|
+
}());
|
|
11741
|
+
TooltipDirective.decorators = [
|
|
11742
|
+
{ type: i0.Directive, args: [{
|
|
11743
|
+
selector: "[tooltip]"
|
|
11744
|
+
},] }
|
|
11745
|
+
];
|
|
11746
|
+
TooltipDirective.ctorParameters = function () { return [
|
|
11747
|
+
{ type: i0.ElementRef },
|
|
11748
|
+
{ type: i0.ComponentFactoryResolver },
|
|
11749
|
+
{ type: i0.ApplicationRef },
|
|
11750
|
+
{ type: i0.Injector },
|
|
11751
|
+
{ type: platformBrowser.DomSanitizer }
|
|
11752
|
+
]; };
|
|
11753
|
+
TooltipDirective.propDecorators = {
|
|
11754
|
+
tooltip: [{ type: i0.Input, args: ["tooltip",] }]
|
|
11755
|
+
};
|
|
11756
|
+
|
|
11757
|
+
var TooltipModule = /** @class */ (function () {
|
|
11758
|
+
function TooltipModule() {
|
|
11759
|
+
}
|
|
11760
|
+
return TooltipModule;
|
|
11761
|
+
}());
|
|
11762
|
+
TooltipModule.decorators = [
|
|
11763
|
+
{ type: i0.NgModule, args: [{
|
|
11764
|
+
imports: [
|
|
11765
|
+
common.CommonModule
|
|
11766
|
+
],
|
|
11767
|
+
declarations: [
|
|
11768
|
+
TooltipComponent
|
|
11769
|
+
],
|
|
11770
|
+
exports: [
|
|
11771
|
+
TooltipComponent
|
|
11772
|
+
]
|
|
11773
|
+
},] }
|
|
11774
|
+
];
|
|
11775
|
+
|
|
11776
|
+
var TooltipDirectiveModule = /** @class */ (function () {
|
|
11777
|
+
function TooltipDirectiveModule() {
|
|
11778
|
+
}
|
|
11779
|
+
return TooltipDirectiveModule;
|
|
11780
|
+
}());
|
|
11781
|
+
TooltipDirectiveModule.decorators = [
|
|
11782
|
+
{ type: i0.NgModule, args: [{
|
|
11783
|
+
imports: [
|
|
11784
|
+
TooltipModule
|
|
11785
|
+
],
|
|
11786
|
+
declarations: [
|
|
11787
|
+
TooltipDirective
|
|
11788
|
+
],
|
|
11789
|
+
exports: [
|
|
11790
|
+
TooltipDirective
|
|
11791
|
+
]
|
|
11792
|
+
},] }
|
|
11793
|
+
];
|
|
11794
|
+
|
|
11487
11795
|
var CheckmarkOverlayComponent = /** @class */ (function () {
|
|
11488
11796
|
function CheckmarkOverlayComponent(_renderer) {
|
|
11489
11797
|
var _this = this;
|
|
@@ -11840,6 +12148,7 @@
|
|
|
11840
12148
|
exports.MultiSelectListModule = MultiSelectListModule;
|
|
11841
12149
|
exports.ObserveVisibilityModule = ObserveVisibilityModule;
|
|
11842
12150
|
exports.OrientationOfDirection = OrientationOfDirection;
|
|
12151
|
+
exports.OverlayModule = OverlayModule;
|
|
11843
12152
|
exports.PaginationBarComponent = PaginationBarComponent;
|
|
11844
12153
|
exports.PaginationBarModule = PaginationBarModule;
|
|
11845
12154
|
exports.PaginationComponent = PaginationComponent;
|
|
@@ -11859,6 +12168,7 @@
|
|
|
11859
12168
|
exports.TextInputPopupComponent = TextInputPopupComponent;
|
|
11860
12169
|
exports.TileComponent = TileComponent;
|
|
11861
12170
|
exports.TileModule = TileModule;
|
|
12171
|
+
exports.TooltipDirectiveModule = TooltipDirectiveModule;
|
|
11862
12172
|
exports.ViewModeButtonsComponent = ViewModeButtonsComponent;
|
|
11863
12173
|
exports.ViewModeButtonsModule = ViewModeButtonsModule;
|
|
11864
12174
|
exports.showHideDialogAnimation = showHideDialogAnimation;
|
|
@@ -11871,9 +12181,14 @@
|
|
|
11871
12181
|
exports["ɵbe"] = PrependPipe;
|
|
11872
12182
|
exports["ɵbf"] = ClickOutsideDirective;
|
|
11873
12183
|
exports["ɵbg"] = ClickOutsideMasterService;
|
|
11874
|
-
exports["ɵbh"] =
|
|
11875
|
-
exports["ɵbi"] =
|
|
11876
|
-
exports["ɵbj"] =
|
|
12184
|
+
exports["ɵbh"] = OverlayDirective;
|
|
12185
|
+
exports["ɵbi"] = OverlayParentDirective;
|
|
12186
|
+
exports["ɵbj"] = TooltipModule;
|
|
12187
|
+
exports["ɵbk"] = TooltipComponent;
|
|
12188
|
+
exports["ɵbl"] = TooltipDirective;
|
|
12189
|
+
exports["ɵbm"] = CheckmarkOverlayComponent;
|
|
12190
|
+
exports["ɵbn"] = ScreenConfigurationDirective;
|
|
12191
|
+
exports["ɵbo"] = ScreenConfigComponentWrapper;
|
|
11877
12192
|
exports["ɵc"] = CoRippleDirective;
|
|
11878
12193
|
exports["ɵd"] = CoViewportRulerService;
|
|
11879
12194
|
exports["ɵe"] = CoScrollDispatcherService;
|