@datarailsshared/datarailsshared 1.6.191 → 1.6.199
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/datarailsshared-datarailsshared-1.6.199.tgz +0 -0
- package/esm2022/lib/dr-tooltip/components/tooltip-default/tooltip-default.component.mjs +5 -4
- package/esm2022/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.mjs +6 -6
- package/esm2022/lib/dr-tooltip/dr-tooltip.component.mjs +6 -5
- package/esm2022/lib/dr-tooltip/dr-tooltip.directive.mjs +3 -2
- package/esm2022/lib/dr-tooltip/dr-tooltip.module.mjs +6 -9
- package/esm2022/lib/drawer/drawer-config.mjs +3 -1
- package/esm2022/lib/drawer/drawer-container.component.mjs +12 -9
- package/esm2022/lib/drawer/drawer-ref.mjs +5 -1
- package/esm2022/lib/drawer/drawer.service.mjs +82 -1
- package/esm2022/lib/filter-dropdown/filter-dropdown.component.mjs +3 -3
- package/fesm2022/datarailsshared-datarailsshared.mjs +115 -28
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/dr-tooltip/components/tooltip-default/tooltip-default.component.d.ts +1 -1
- package/lib/dr-tooltip/components/tooltip-info/tooltip-info.component.d.ts +1 -2
- package/lib/dr-tooltip/dr-tooltip.component.d.ts +1 -1
- package/lib/dr-tooltip/dr-tooltip.directive.d.ts +1 -1
- package/lib/dr-tooltip/dr-tooltip.module.d.ts +5 -6
- package/lib/drawer/drawer-config.d.ts +5 -0
- package/lib/drawer/drawer-container.component.d.ts +1 -1
- package/lib/drawer/drawer-ref.d.ts +2 -0
- package/lib/drawer/drawer.service.d.ts +17 -0
- package/package.json +1 -7
- package/datarailsshared-datarailsshared-1.6.191.tgz +0 -0
- package/esm2022/src/lib/drawer/drDrawer.mjs +0 -5
- package/esm2022/src/lib/drawer/drawer-animation.mjs +0 -18
- package/esm2022/src/lib/drawer/drawer-config.mjs +0 -35
- package/esm2022/src/lib/drawer/drawer-container.component.mjs +0 -179
- package/esm2022/src/lib/drawer/drawer-position-strategy.mjs +0 -14
- package/esm2022/src/lib/drawer/drawer-ref.mjs +0 -106
- package/esm2022/src/lib/drawer/drawer.module.mjs +0 -19
- package/esm2022/src/lib/drawer/drawer.service.mjs +0 -140
- package/esm2022/src/lib/drawer/public-api.mjs +0 -6
- package/fesm2022/drDrawer.mjs +0 -496
- package/fesm2022/drDrawer.mjs.map +0 -1
- package/src/lib/drawer/drawer-animation.d.ts +0 -5
- package/src/lib/drawer/drawer-config.d.ts +0 -68
- package/src/lib/drawer/drawer-container.component.d.ts +0 -45
- package/src/lib/drawer/drawer-position-strategy.d.ts +0 -10
- package/src/lib/drawer/drawer-ref.d.ts +0 -55
- package/src/lib/drawer/drawer.module.d.ts +0 -7
- package/src/lib/drawer/drawer.service.d.ts +0 -62
- package/src/lib/drawer/index.d.ts +0 -5
- package/src/lib/drawer/public-api.d.ts +0 -5
|
@@ -703,17 +703,17 @@ class TooltipDefaultComponent {
|
|
|
703
703
|
/** @nocollapse */ static { this.ɵfac = function TooltipDefaultComponent_Factory(t) { return new (t || TooltipDefaultComponent)(); }; }
|
|
704
704
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TooltipDefaultComponent, selectors: [["dr-tooltip-default"]], hostVars: 2, hostBindings: function TooltipDefaultComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
705
705
|
i0.ɵɵclassMap(ctx.theme);
|
|
706
|
-
} }, inputs: { content: "content", theme: "theme" }, ngContentSelectors: _c0$O, decls: 2, vars: 1, consts: [[1, "content", 3, "innerHTML"]], template: function TooltipDefaultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
706
|
+
} }, inputs: { content: "content", theme: "theme" }, standalone: true, features: [i0.ɵɵStandaloneFeature], ngContentSelectors: _c0$O, decls: 2, vars: 1, consts: [[1, "content", 3, "innerHTML"]], template: function TooltipDefaultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
707
707
|
i0.ɵɵprojectionDef();
|
|
708
708
|
i0.ɵɵelement(0, "span", 0);
|
|
709
709
|
i0.ɵɵprojection(1);
|
|
710
710
|
} if (rf & 2) {
|
|
711
711
|
i0.ɵɵproperty("innerHTML", ctx.content, i0.ɵɵsanitizeHtml);
|
|
712
|
-
} }, styles: ["[_nghost-%COMP%]{font-size:12px;line-height:16px;font-weight:400;display:flex;padding:6px 8px;white-space:pre;text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%] .content[_ngcontent-%COMP%]:empty{display:none}.dark[_nghost-%COMP%]{font-size:12px;line-height:16px;font-weight:400;padding:6px 8px}[_nghost-%COMP%] a{color:#4646ce}[_nghost-%COMP%] a:hover{cursor:pointer;text-decoration:underline!important}"], changeDetection: 0 }); }
|
|
712
|
+
} }, dependencies: [CommonModule], styles: ["[_nghost-%COMP%]{font-size:12px;line-height:16px;font-weight:400;display:flex;padding:6px 8px;white-space:pre;text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%] .content[_ngcontent-%COMP%]:empty{display:none}.dark[_nghost-%COMP%]{font-size:12px;line-height:16px;font-weight:400;padding:6px 8px}[_nghost-%COMP%] a{color:#4646ce}[_nghost-%COMP%] a:hover{cursor:pointer;text-decoration:underline!important}"], changeDetection: 0 }); }
|
|
713
713
|
}
|
|
714
714
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TooltipDefaultComponent, [{
|
|
715
715
|
type: Component,
|
|
716
|
-
args: [{ selector: 'dr-tooltip-default', template: '<span class="content" [innerHTML]="content"></span><ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{font-size:12px;line-height:16px;font-weight:400;display:flex;padding:6px 8px;white-space:pre;text-overflow:ellipsis;overflow:hidden}:host .content:empty{display:none}:host.dark{font-size:12px;line-height:16px;font-weight:400;padding:6px 8px}:host::ng-deep a{color:#4646ce}:host::ng-deep a:hover{cursor:pointer;text-decoration:underline!important}\n"] }]
|
|
716
|
+
args: [{ selector: 'dr-tooltip-default', template: '<span class="content" [innerHTML]="content"></span><ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule], styles: [":host{font-size:12px;line-height:16px;font-weight:400;display:flex;padding:6px 8px;white-space:pre;text-overflow:ellipsis;overflow:hidden}:host .content:empty{display:none}:host.dark{font-size:12px;line-height:16px;font-weight:400;padding:6px 8px}:host::ng-deep a{color:#4646ce}:host::ng-deep a:hover{cursor:pointer;text-decoration:underline!important}\n"] }]
|
|
717
717
|
}], null, { content: [{
|
|
718
718
|
type: Input
|
|
719
719
|
}], theme: [{
|
|
@@ -765,7 +765,7 @@ class TooltipComponent {
|
|
|
765
765
|
i0.ɵɵlistener("mouseenter", function TooltipComponent_mouseenter_HostBindingHandler() { return ctx.setMouseOn(); })("mouseleave", function TooltipComponent_mouseleave_HostBindingHandler() { return ctx.unsetMouseOn(); });
|
|
766
766
|
} if (rf & 2) {
|
|
767
767
|
i0.ɵɵattribute("role", ctx.role);
|
|
768
|
-
} }, inputs: { content: "content", contentContext: "contentContext", position: "position", options: "options", class: "class", theme: "theme" }, decls: 5, vars: 8, consts: [[3, "ngClass"], ["class", "dr-tooltip-arrow", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["defaultContent", ""], [1, "dr-tooltip-arrow"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "content", "theme"]], template: function TooltipComponent_Template(rf, ctx) { if (rf & 1) {
|
|
768
|
+
} }, inputs: { content: "content", contentContext: "contentContext", position: "position", options: "options", class: "class", theme: "theme" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 5, vars: 8, consts: [[3, "ngClass"], ["class", "dr-tooltip-arrow", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["defaultContent", ""], [1, "dr-tooltip-arrow"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "content", "theme"]], template: function TooltipComponent_Template(rf, ctx) { if (rf & 1) {
|
|
769
769
|
i0.ɵɵelementStart(0, "div", 0);
|
|
770
770
|
i0.ɵɵtemplate(1, TooltipComponent_div_1_Template, 1, 0, "div", 1);
|
|
771
771
|
i0.ɵɵtemplate(2, TooltipComponent_ng_container_2_Template, 2, 2, "ng-container", 2);
|
|
@@ -779,11 +779,11 @@ class TooltipComponent {
|
|
|
779
779
|
i0.ɵɵproperty("ngIf", !(ctx.options == null ? null : ctx.options.withoutArrow));
|
|
780
780
|
i0.ɵɵadvance(1);
|
|
781
781
|
i0.ɵɵproperty("ngIf", ctx.isContentTemplate)("ngIfElse", _r2);
|
|
782
|
-
} }, dependencies: [i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, TooltipDefaultComponent], styles: ["[_nghost-%COMP%]{display:block;font-family:Poppins,sans-serif}.top[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%], .top-right.dr-tooltip[_ngcontent-%COMP%]{transform:translateY(-8px)}.bottom[_ngcontent-%COMP%], .bottom-left[_ngcontent-%COMP%], .bottom-right.dr-tooltip[_ngcontent-%COMP%]{transform:translateY(8px)}.left[_ngcontent-%COMP%], .left-top[_ngcontent-%COMP%], .left-bottom.dr-tooltip[_ngcontent-%COMP%]{transform:translate(-8px)}.right[_ngcontent-%COMP%], .right-top[_ngcontent-%COMP%], .right-bottom.dr-tooltip[_ngcontent-%COMP%]{transform:translate(8px)}.dr-tooltip[_ngcontent-%COMP%]{background:#fff;border:1px solid #cfd7dd;box-sizing:border-box;border-radius:8px;font-size:12px;color:#545a6b;max-width:80vw!important;box-shadow:0 2px 4px #9199b440}.dr-tooltip-arrow[_ngcontent-%COMP%]{border-width:8px}.dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip-arrow[_ngcontent-%COMP%]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dr-tooltip-arrow[_ngcontent-%COMP%]:after{content:\"\";border-width:8px}.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{bottom:-16px;border-top-color:#cfd7dd!important}.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{bottom:-6px;left:-8px;border-top-color:#fff}.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{top:-7px;border-top:none;border-bottom-color:#cfd7dd!important}.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-top:none;top:1px;left:-8px;border-bottom-color:#fff}.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{right:-16px;border-left-color:#cfd7dd!important}.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{bottom:-8px;left:-9px;border-left-color:#fff}.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{left:-16px;border-right-color:#cfd7dd!important}.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{bottom:-8px;left:-7px;border-right-color:#fff}.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{left:calc(50% - 8px)}.bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{left:8px}.bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{right:8px}.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{top:calc(50% - 8px)}.left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip-arrow[_ngcontent-%COMP%] .right-top[_ngcontent-%COMP%]{top:8px}.right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{bottom:8px}.dr-tooltip.dark[_ngcontent-%COMP%]{background:#0c142bcc;border:none;border-radius:8px;color:#fff}.dr-tooltip.dark.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-top-color:#0c142bcc!important}.dr-tooltip.dark.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-top-color:transparent}.dr-tooltip.dark.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#0c142bcc!important}.dr-tooltip.dark.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-bottom-color:transparent}.dr-tooltip.dark.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-left-color:#0c142bcc!important}.dr-tooltip.dark.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-left-color:transparent}.dr-tooltip.dark.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-right-color:#0c142bcc!important}.dr-tooltip.dark.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-right-color:transparent}"], data: { animation: [trigger('tooltip', POPUP_ANIMATION)] } }); }
|
|
782
|
+
} }, dependencies: [CommonModule, i1.NgClass, i1.NgIf, i1.NgTemplateOutlet, TooltipDefaultComponent], styles: ["[_nghost-%COMP%]{display:block;font-family:Poppins,sans-serif}.top[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%], .top-right.dr-tooltip[_ngcontent-%COMP%]{transform:translateY(-8px)}.bottom[_ngcontent-%COMP%], .bottom-left[_ngcontent-%COMP%], .bottom-right.dr-tooltip[_ngcontent-%COMP%]{transform:translateY(8px)}.left[_ngcontent-%COMP%], .left-top[_ngcontent-%COMP%], .left-bottom.dr-tooltip[_ngcontent-%COMP%]{transform:translate(-8px)}.right[_ngcontent-%COMP%], .right-top[_ngcontent-%COMP%], .right-bottom.dr-tooltip[_ngcontent-%COMP%]{transform:translate(8px)}.dr-tooltip[_ngcontent-%COMP%]{background:#fff;border:1px solid #cfd7dd;box-sizing:border-box;border-radius:8px;font-size:12px;color:#545a6b;max-width:80vw!important;box-shadow:0 2px 4px #9199b440}.dr-tooltip-arrow[_ngcontent-%COMP%]{border-width:8px}.dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip-arrow[_ngcontent-%COMP%]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dr-tooltip-arrow[_ngcontent-%COMP%]:after{content:\"\";border-width:8px}.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{bottom:-16px;border-top-color:#cfd7dd!important}.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{bottom:-6px;left:-8px;border-top-color:#fff}.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{top:-7px;border-top:none;border-bottom-color:#cfd7dd!important}.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-top:none;top:1px;left:-8px;border-bottom-color:#fff}.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{right:-16px;border-left-color:#cfd7dd!important}.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{bottom:-8px;left:-9px;border-left-color:#fff}.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{left:-16px;border-right-color:#cfd7dd!important}.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{bottom:-8px;left:-7px;border-right-color:#fff}.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{left:calc(50% - 8px)}.bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{left:8px}.bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{right:8px}.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{top:calc(50% - 8px)}.left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip-arrow[_ngcontent-%COMP%] .right-top[_ngcontent-%COMP%]{top:8px}.right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{bottom:8px}.dr-tooltip.dark[_ngcontent-%COMP%]{background:#0c142bcc;border:none;border-radius:8px;color:#fff}.dr-tooltip.dark.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-top-color:#0c142bcc!important}.dr-tooltip.dark.top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.top-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.top-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-top-color:transparent}.dr-tooltip.dark.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#0c142bcc!important}.dr-tooltip.dark.bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.bottom-left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.bottom-right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-bottom-color:transparent}.dr-tooltip.dark.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-left-color:#0c142bcc!important}.dr-tooltip.dark.left[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.left-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.left-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-left-color:transparent}.dr-tooltip.dark.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%], .dr-tooltip.dark.right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]{border-right-color:#0c142bcc!important}.dr-tooltip.dark.right[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.right-top[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after, .dr-tooltip.dark.right-bottom[_ngcontent-%COMP%] .dr-tooltip-arrow[_ngcontent-%COMP%]:after{border-right-color:transparent}"], data: { animation: [trigger('tooltip', POPUP_ANIMATION)] } }); }
|
|
783
783
|
}
|
|
784
784
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TooltipComponent, [{
|
|
785
785
|
type: Component,
|
|
786
|
-
args: [{ selector: 'dr-tooltip', animations: [trigger('tooltip', POPUP_ANIMATION)], template: "<div [class]=\"position + ' ' + class + ' ' + theme\" [ngClass]=\"{ 'dr-tooltip': !options?.withoutContainerStyles }\">\n <div *ngIf=\"!options?.withoutArrow\" class=\"dr-tooltip-arrow\"></div>\n <ng-container *ngIf=\"isContentTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"content; context: contentContext\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <dr-tooltip-default [content]=\"content\" [theme]=\"theme\"></dr-tooltip-default>\n </ng-template>\n</div>\n", styles: [":host{display:block;font-family:Poppins,sans-serif}.top,.top-left,.top-right.dr-tooltip{transform:translateY(-8px)}.bottom,.bottom-left,.bottom-right.dr-tooltip{transform:translateY(8px)}.left,.left-top,.left-bottom.dr-tooltip{transform:translate(-8px)}.right,.right-top,.right-bottom.dr-tooltip{transform:translate(8px)}.dr-tooltip{background:#fff;border:1px solid #cfd7dd;box-sizing:border-box;border-radius:8px;font-size:12px;color:#545a6b;max-width:80vw!important;box-shadow:0 2px 4px #9199b440}.dr-tooltip-arrow{border-width:8px}.dr-tooltip-arrow,.dr-tooltip-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dr-tooltip-arrow:after{content:\"\";border-width:8px}.top .dr-tooltip-arrow,.top-left .dr-tooltip-arrow,.top-right .dr-tooltip-arrow{bottom:-16px;border-top-color:#cfd7dd!important}.top .dr-tooltip-arrow:after,.top-left .dr-tooltip-arrow:after,.top-right .dr-tooltip-arrow:after{bottom:-6px;left:-8px;border-top-color:#fff}.bottom .dr-tooltip-arrow,.bottom-left .dr-tooltip-arrow,.bottom-right .dr-tooltip-arrow{top:-7px;border-top:none;border-bottom-color:#cfd7dd!important}.bottom .dr-tooltip-arrow:after,.bottom-left .dr-tooltip-arrow:after,.bottom-right .dr-tooltip-arrow:after{border-top:none;top:1px;left:-8px;border-bottom-color:#fff}.left .dr-tooltip-arrow,.left-top .dr-tooltip-arrow,.left-bottom .dr-tooltip-arrow{right:-16px;border-left-color:#cfd7dd!important}.left .dr-tooltip-arrow:after,.left-top .dr-tooltip-arrow:after,.left-bottom .dr-tooltip-arrow:after{bottom:-8px;left:-9px;border-left-color:#fff}.right .dr-tooltip-arrow,.right-top .dr-tooltip-arrow,.right-bottom .dr-tooltip-arrow{left:-16px;border-right-color:#cfd7dd!important}.right .dr-tooltip-arrow:after,.right-top .dr-tooltip-arrow:after,.right-bottom .dr-tooltip-arrow:after{bottom:-8px;left:-7px;border-right-color:#fff}.top .dr-tooltip-arrow,.bottom .dr-tooltip-arrow{left:calc(50% - 8px)}.bottom-left .dr-tooltip-arrow,.top-left .dr-tooltip-arrow{left:8px}.bottom-right .dr-tooltip-arrow,.top-right .dr-tooltip-arrow{right:8px}.left .dr-tooltip-arrow,.right .dr-tooltip-arrow{top:calc(50% - 8px)}.left-top .dr-tooltip-arrow,.dr-tooltip-arrow .right-top{top:8px}.right-bottom .dr-tooltip-arrow,.left-bottom .dr-tooltip-arrow{bottom:8px}.dr-tooltip.dark{background:#0c142bcc;border:none;border-radius:8px;color:#fff}.dr-tooltip.dark.top .dr-tooltip-arrow,.dr-tooltip.dark.top-left .dr-tooltip-arrow,.dr-tooltip.dark.top-right .dr-tooltip-arrow{border-top-color:#0c142bcc!important}.dr-tooltip.dark.top .dr-tooltip-arrow:after,.dr-tooltip.dark.top-left .dr-tooltip-arrow:after,.dr-tooltip.dark.top-right .dr-tooltip-arrow:after{border-top-color:transparent}.dr-tooltip.dark.bottom .dr-tooltip-arrow,.dr-tooltip.dark.bottom-left .dr-tooltip-arrow,.dr-tooltip.dark.bottom-right .dr-tooltip-arrow{border-bottom-color:#0c142bcc!important}.dr-tooltip.dark.bottom .dr-tooltip-arrow:after,.dr-tooltip.dark.bottom-left .dr-tooltip-arrow:after,.dr-tooltip.dark.bottom-right .dr-tooltip-arrow:after{border-bottom-color:transparent}.dr-tooltip.dark.left .dr-tooltip-arrow,.dr-tooltip.dark.left-top .dr-tooltip-arrow,.dr-tooltip.dark.left-bottom .dr-tooltip-arrow{border-left-color:#0c142bcc!important}.dr-tooltip.dark.left .dr-tooltip-arrow:after,.dr-tooltip.dark.left-top .dr-tooltip-arrow:after,.dr-tooltip.dark.left-bottom .dr-tooltip-arrow:after{border-left-color:transparent}.dr-tooltip.dark.right .dr-tooltip-arrow,.dr-tooltip.dark.right-top .dr-tooltip-arrow,.dr-tooltip.dark.right-bottom .dr-tooltip-arrow{border-right-color:#0c142bcc!important}.dr-tooltip.dark.right .dr-tooltip-arrow:after,.dr-tooltip.dark.right-top .dr-tooltip-arrow:after,.dr-tooltip.dark.right-bottom .dr-tooltip-arrow:after{border-right-color:transparent}\n"] }]
|
|
786
|
+
args: [{ selector: 'dr-tooltip', animations: [trigger('tooltip', POPUP_ANIMATION)], standalone: true, imports: [CommonModule, TooltipDefaultComponent], template: "<div [class]=\"position + ' ' + class + ' ' + theme\" [ngClass]=\"{ 'dr-tooltip': !options?.withoutContainerStyles }\">\n <div *ngIf=\"!options?.withoutArrow\" class=\"dr-tooltip-arrow\"></div>\n <ng-container *ngIf=\"isContentTemplate; else defaultContent\">\n <ng-container *ngTemplateOutlet=\"content; context: contentContext\"></ng-container>\n </ng-container>\n <ng-template #defaultContent>\n <dr-tooltip-default [content]=\"content\" [theme]=\"theme\"></dr-tooltip-default>\n </ng-template>\n</div>\n", styles: [":host{display:block;font-family:Poppins,sans-serif}.top,.top-left,.top-right.dr-tooltip{transform:translateY(-8px)}.bottom,.bottom-left,.bottom-right.dr-tooltip{transform:translateY(8px)}.left,.left-top,.left-bottom.dr-tooltip{transform:translate(-8px)}.right,.right-top,.right-bottom.dr-tooltip{transform:translate(8px)}.dr-tooltip{background:#fff;border:1px solid #cfd7dd;box-sizing:border-box;border-radius:8px;font-size:12px;color:#545a6b;max-width:80vw!important;box-shadow:0 2px 4px #9199b440}.dr-tooltip-arrow{border-width:8px}.dr-tooltip-arrow,.dr-tooltip-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.dr-tooltip-arrow:after{content:\"\";border-width:8px}.top .dr-tooltip-arrow,.top-left .dr-tooltip-arrow,.top-right .dr-tooltip-arrow{bottom:-16px;border-top-color:#cfd7dd!important}.top .dr-tooltip-arrow:after,.top-left .dr-tooltip-arrow:after,.top-right .dr-tooltip-arrow:after{bottom:-6px;left:-8px;border-top-color:#fff}.bottom .dr-tooltip-arrow,.bottom-left .dr-tooltip-arrow,.bottom-right .dr-tooltip-arrow{top:-7px;border-top:none;border-bottom-color:#cfd7dd!important}.bottom .dr-tooltip-arrow:after,.bottom-left .dr-tooltip-arrow:after,.bottom-right .dr-tooltip-arrow:after{border-top:none;top:1px;left:-8px;border-bottom-color:#fff}.left .dr-tooltip-arrow,.left-top .dr-tooltip-arrow,.left-bottom .dr-tooltip-arrow{right:-16px;border-left-color:#cfd7dd!important}.left .dr-tooltip-arrow:after,.left-top .dr-tooltip-arrow:after,.left-bottom .dr-tooltip-arrow:after{bottom:-8px;left:-9px;border-left-color:#fff}.right .dr-tooltip-arrow,.right-top .dr-tooltip-arrow,.right-bottom .dr-tooltip-arrow{left:-16px;border-right-color:#cfd7dd!important}.right .dr-tooltip-arrow:after,.right-top .dr-tooltip-arrow:after,.right-bottom .dr-tooltip-arrow:after{bottom:-8px;left:-7px;border-right-color:#fff}.top .dr-tooltip-arrow,.bottom .dr-tooltip-arrow{left:calc(50% - 8px)}.bottom-left .dr-tooltip-arrow,.top-left .dr-tooltip-arrow{left:8px}.bottom-right .dr-tooltip-arrow,.top-right .dr-tooltip-arrow{right:8px}.left .dr-tooltip-arrow,.right .dr-tooltip-arrow{top:calc(50% - 8px)}.left-top .dr-tooltip-arrow,.dr-tooltip-arrow .right-top{top:8px}.right-bottom .dr-tooltip-arrow,.left-bottom .dr-tooltip-arrow{bottom:8px}.dr-tooltip.dark{background:#0c142bcc;border:none;border-radius:8px;color:#fff}.dr-tooltip.dark.top .dr-tooltip-arrow,.dr-tooltip.dark.top-left .dr-tooltip-arrow,.dr-tooltip.dark.top-right .dr-tooltip-arrow{border-top-color:#0c142bcc!important}.dr-tooltip.dark.top .dr-tooltip-arrow:after,.dr-tooltip.dark.top-left .dr-tooltip-arrow:after,.dr-tooltip.dark.top-right .dr-tooltip-arrow:after{border-top-color:transparent}.dr-tooltip.dark.bottom .dr-tooltip-arrow,.dr-tooltip.dark.bottom-left .dr-tooltip-arrow,.dr-tooltip.dark.bottom-right .dr-tooltip-arrow{border-bottom-color:#0c142bcc!important}.dr-tooltip.dark.bottom .dr-tooltip-arrow:after,.dr-tooltip.dark.bottom-left .dr-tooltip-arrow:after,.dr-tooltip.dark.bottom-right .dr-tooltip-arrow:after{border-bottom-color:transparent}.dr-tooltip.dark.left .dr-tooltip-arrow,.dr-tooltip.dark.left-top .dr-tooltip-arrow,.dr-tooltip.dark.left-bottom .dr-tooltip-arrow{border-left-color:#0c142bcc!important}.dr-tooltip.dark.left .dr-tooltip-arrow:after,.dr-tooltip.dark.left-top .dr-tooltip-arrow:after,.dr-tooltip.dark.left-bottom .dr-tooltip-arrow:after{border-left-color:transparent}.dr-tooltip.dark.right .dr-tooltip-arrow,.dr-tooltip.dark.right-top .dr-tooltip-arrow,.dr-tooltip.dark.right-bottom .dr-tooltip-arrow{border-right-color:#0c142bcc!important}.dr-tooltip.dark.right .dr-tooltip-arrow:after,.dr-tooltip.dark.right-top .dr-tooltip-arrow:after,.dr-tooltip.dark.right-bottom .dr-tooltip-arrow:after{border-right-color:transparent}\n"] }]
|
|
787
787
|
}], null, { content: [{
|
|
788
788
|
type: Input
|
|
789
789
|
}], contentContext: [{
|
|
@@ -952,12 +952,13 @@ class DrTooltipDirective {
|
|
|
952
952
|
/** @nocollapse */ static { this.ɵfac = function DrTooltipDirective_Factory(t) { return new (t || DrTooltipDirective)(i0.ɵɵdirectiveInject(i1$1.Overlay), i0.ɵɵdirectiveInject(i1$1.OverlayPositionBuilder), i0.ɵɵdirectiveInject(i0.ElementRef)); }; }
|
|
953
953
|
/** @nocollapse */ static { this.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: DrTooltipDirective, selectors: [["", "drTooltip", ""]], hostBindings: function DrTooltipDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
954
954
|
i0.ɵɵlistener("mouseenter", function DrTooltipDirective_mouseenter_HostBindingHandler() { return ctx.show(); })("mouseleave", function DrTooltipDirective_mouseleave_HostBindingHandler() { return ctx.hide(); });
|
|
955
|
-
} }, inputs: { content: ["drTooltip", "content"], contentContext: ["drTooltipContext", "contentContext"], position: ["drTooltipPosition", "position"], class: ["drTooltipClass", "class"], theme: ["drTooltipTheme", "theme"], drTooltipMousleaveTimeout: "drTooltipMousleaveTimeout", drTooltipMouseEnterTimeout: "drTooltipMouseEnterTimeout", drTooltipOptions: "drTooltipOptions", showTooltip: ["drTooltipShow", "showTooltip"], hideTooltip: ["drTooltipHide", "hideTooltip"] } }); }
|
|
955
|
+
} }, inputs: { content: ["drTooltip", "content"], contentContext: ["drTooltipContext", "contentContext"], position: ["drTooltipPosition", "position"], class: ["drTooltipClass", "class"], theme: ["drTooltipTheme", "theme"], drTooltipMousleaveTimeout: "drTooltipMousleaveTimeout", drTooltipMouseEnterTimeout: "drTooltipMouseEnterTimeout", drTooltipOptions: "drTooltipOptions", showTooltip: ["drTooltipShow", "showTooltip"], hideTooltip: ["drTooltipHide", "hideTooltip"] }, standalone: true }); }
|
|
956
956
|
}
|
|
957
957
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrTooltipDirective, [{
|
|
958
958
|
type: Directive,
|
|
959
959
|
args: [{
|
|
960
960
|
selector: '[drTooltip]',
|
|
961
|
+
standalone: true,
|
|
961
962
|
}]
|
|
962
963
|
}], function () { return [{ type: i1$1.Overlay }, { type: i1$1.OverlayPositionBuilder }, { type: i0.ElementRef }]; }, { content: [{
|
|
963
964
|
type: Input,
|
|
@@ -5858,9 +5859,8 @@ function TooltipInfoComponent_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
5858
5859
|
i0.ɵɵproperty("ngIf", ctx_r3.data.useDescriptionAsHTML);
|
|
5859
5860
|
} }
|
|
5860
5861
|
class TooltipInfoComponent {
|
|
5861
|
-
constructor() { }
|
|
5862
5862
|
/** @nocollapse */ static { this.ɵfac = function TooltipInfoComponent_Factory(t) { return new (t || TooltipInfoComponent)(); }; }
|
|
5863
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TooltipInfoComponent, selectors: [["dr-tooltip-info"]], inputs: { data: "data" }, decls: 6, vars: 8, consts: [[1, "tooltip-info"], ["class", "tooltip-info__icon", 3, "ngClass", 4, "ngIf"], [1, "tooltip-info__content"], ["class", "tooltip-info__content__header", 4, "ngIf"], ["class", "tooltip-info__content__divider", 4, "ngIf"], ["class", "tooltip-info__content__description", 4, "ngIf"], [1, "tooltip-info__icon", 3, "ngClass"], [3, "ngClass"], [1, "tooltip-info__content__header"], [1, "tooltip-info__content__divider"], [1, "tooltip-info__content__description"], [4, "ngIf"], [3, "innerHTML", 4, "ngIf"], [3, "innerHTML"]], template: function TooltipInfoComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5863
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TooltipInfoComponent, selectors: [["dr-tooltip-info"]], inputs: { data: "data" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 6, vars: 8, consts: [[1, "tooltip-info"], ["class", "tooltip-info__icon", 3, "ngClass", 4, "ngIf"], [1, "tooltip-info__content"], ["class", "tooltip-info__content__header", 4, "ngIf"], ["class", "tooltip-info__content__divider", 4, "ngIf"], ["class", "tooltip-info__content__description", 4, "ngIf"], [1, "tooltip-info__icon", 3, "ngClass"], [3, "ngClass"], [1, "tooltip-info__content__header"], [1, "tooltip-info__content__divider"], [1, "tooltip-info__content__description"], [4, "ngIf"], [3, "innerHTML", 4, "ngIf"], [3, "innerHTML"]], template: function TooltipInfoComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5864
5864
|
i0.ɵɵelementStart(0, "div", 0);
|
|
5865
5865
|
i0.ɵɵtemplate(1, TooltipInfoComponent_div_1_Template, 2, 2, "div", 1);
|
|
5866
5866
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -5878,31 +5878,29 @@ class TooltipInfoComponent {
|
|
|
5878
5878
|
i0.ɵɵproperty("ngIf", (ctx.data == null ? null : ctx.data.title) && (ctx.data == null ? null : ctx.data.description) && !(ctx.data == null ? null : ctx.data.hideDivider));
|
|
5879
5879
|
i0.ɵɵadvance(1);
|
|
5880
5880
|
i0.ɵɵproperty("ngIf", ctx.data == null ? null : ctx.data.description);
|
|
5881
|
-
} }, dependencies: [i1.NgClass, i1.NgIf], styles: [".tooltip-info[_ngcontent-%COMP%]{width:auto;display:flex;padding:10px 12px}.tooltip-info__icon[_ngcontent-%COMP%]{position:relative;padding-right:8px;color:#0b5af9}.tooltip-info__icon.info[_ngcontent-%COMP%]{color:#0b5af9}.tooltip-info__icon.success[_ngcontent-%COMP%]{color:#037c5a}.tooltip-info__icon.warning[_ngcontent-%COMP%]{color:#9e5f00}.tooltip-info__icon.error[_ngcontent-%COMP%]{color:#bf1d30}.tooltip-info__content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tooltip-info__content__header[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:600}.tooltip-info__content__divider[_ngcontent-%COMP%]{width:100%;margin:8px 0;border-top:1px solid #dfe0e3}.tooltip-info__content__description[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:400}.tooltip-info__content__description[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0}.tooltip-info__content__description[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style-position:inside;list-style-type:disc}"], changeDetection: 0 }); }
|
|
5881
|
+
} }, dependencies: [CommonModule, i1.NgClass, i1.NgIf], styles: [".tooltip-info[_ngcontent-%COMP%]{width:auto;display:flex;padding:10px 12px}.tooltip-info__icon[_ngcontent-%COMP%]{position:relative;padding-right:8px;color:#0b5af9}.tooltip-info__icon.info[_ngcontent-%COMP%]{color:#0b5af9}.tooltip-info__icon.success[_ngcontent-%COMP%]{color:#037c5a}.tooltip-info__icon.warning[_ngcontent-%COMP%]{color:#9e5f00}.tooltip-info__icon.error[_ngcontent-%COMP%]{color:#bf1d30}.tooltip-info__content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.tooltip-info__content__header[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:600}.tooltip-info__content__divider[_ngcontent-%COMP%]{width:100%;margin:8px 0;border-top:1px solid #dfe0e3}.tooltip-info__content__description[_ngcontent-%COMP%]{font-size:14px;line-height:24px;font-weight:400}.tooltip-info__content__description[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{padding:0}.tooltip-info__content__description[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style-position:inside;list-style-type:disc}"], changeDetection: 0 }); }
|
|
5882
5882
|
}
|
|
5883
5883
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TooltipInfoComponent, [{
|
|
5884
5884
|
type: Component,
|
|
5885
|
-
args: [{ selector: 'dr-tooltip-info', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tooltip-info\" [style.min-width]=\"data?.minWidth\" [style.max-width]=\"data?.maxWidth\">\n <div *ngIf=\"!data?.hideIcon\" class=\"tooltip-info__icon\" [ngClass]=\"data?.iconTheme\">\n <i [ngClass]=\"data?.icon || 'dr-icon-noty-notification'\"></i>\n </div>\n <div class=\"tooltip-info__content\">\n <div *ngIf=\"data?.title\" class=\"tooltip-info__content__header\">\n <span>{{ data.title }}</span>\n </div>\n <div *ngIf=\"data?.title && data?.description && !data?.hideDivider\" class=\"tooltip-info__content__divider\"></div>\n <div *ngIf=\"data?.description\" class=\"tooltip-info__content__description\">\n <span *ngIf=\"!data.useDescriptionAsHTML\">{{ data.description }}</span>\n <div *ngIf=\"data.useDescriptionAsHTML\" [innerHTML]=\"data.description\"></div>\n </div>\n </div>\n</div>\n", styles: [".tooltip-info{width:auto;display:flex;padding:10px 12px}.tooltip-info__icon{position:relative;padding-right:8px;color:#0b5af9}.tooltip-info__icon.info{color:#0b5af9}.tooltip-info__icon.success{color:#037c5a}.tooltip-info__icon.warning{color:#9e5f00}.tooltip-info__icon.error{color:#bf1d30}.tooltip-info__content{display:flex;flex-direction:column}.tooltip-info__content__header{font-size:14px;line-height:24px;font-weight:600}.tooltip-info__content__divider{width:100%;margin:8px 0;border-top:1px solid #dfe0e3}.tooltip-info__content__description{font-size:14px;line-height:24px;font-weight:400}.tooltip-info__content__description ul{padding:0}.tooltip-info__content__description ul>li{list-style-position:inside;list-style-type:disc}\n"] }]
|
|
5886
|
-
}],
|
|
5885
|
+
args: [{ selector: 'dr-tooltip-info', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule], template: "<div class=\"tooltip-info\" [style.min-width]=\"data?.minWidth\" [style.max-width]=\"data?.maxWidth\">\n <div *ngIf=\"!data?.hideIcon\" class=\"tooltip-info__icon\" [ngClass]=\"data?.iconTheme\">\n <i [ngClass]=\"data?.icon || 'dr-icon-noty-notification'\"></i>\n </div>\n <div class=\"tooltip-info__content\">\n <div *ngIf=\"data?.title\" class=\"tooltip-info__content__header\">\n <span>{{ data.title }}</span>\n </div>\n <div *ngIf=\"data?.title && data?.description && !data?.hideDivider\" class=\"tooltip-info__content__divider\"></div>\n <div *ngIf=\"data?.description\" class=\"tooltip-info__content__description\">\n <span *ngIf=\"!data.useDescriptionAsHTML\">{{ data.description }}</span>\n <div *ngIf=\"data.useDescriptionAsHTML\" [innerHTML]=\"data.description\"></div>\n </div>\n </div>\n</div>\n", styles: [".tooltip-info{width:auto;display:flex;padding:10px 12px}.tooltip-info__icon{position:relative;padding-right:8px;color:#0b5af9}.tooltip-info__icon.info{color:#0b5af9}.tooltip-info__icon.success{color:#037c5a}.tooltip-info__icon.warning{color:#9e5f00}.tooltip-info__icon.error{color:#bf1d30}.tooltip-info__content{display:flex;flex-direction:column}.tooltip-info__content__header{font-size:14px;line-height:24px;font-weight:600}.tooltip-info__content__divider{width:100%;margin:8px 0;border-top:1px solid #dfe0e3}.tooltip-info__content__description{font-size:14px;line-height:24px;font-weight:400}.tooltip-info__content__description ul{padding:0}.tooltip-info__content__description ul>li{list-style-position:inside;list-style-type:disc}\n"] }]
|
|
5886
|
+
}], null, { data: [{
|
|
5887
5887
|
type: Input
|
|
5888
5888
|
}] }); })();
|
|
5889
5889
|
|
|
5890
|
-
const TOOLTIP_COMPONENTS = [TooltipDefaultComponent, TooltipInfoComponent];
|
|
5890
|
+
const TOOLTIP_COMPONENTS = [TooltipDefaultComponent, TooltipInfoComponent, TooltipComponent, DrTooltipDirective];
|
|
5891
5891
|
class DrTooltipModule {
|
|
5892
5892
|
/** @nocollapse */ static { this.ɵfac = function DrTooltipModule_Factory(t) { return new (t || DrTooltipModule)(); }; }
|
|
5893
5893
|
/** @nocollapse */ static { this.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: DrTooltipModule }); }
|
|
5894
|
-
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [
|
|
5894
|
+
/** @nocollapse */ static { this.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [TooltipDefaultComponent, TooltipInfoComponent, TooltipComponent] }); }
|
|
5895
5895
|
}
|
|
5896
5896
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrTooltipModule, [{
|
|
5897
5897
|
type: NgModule,
|
|
5898
5898
|
args: [{
|
|
5899
|
-
imports: [
|
|
5900
|
-
exports: [
|
|
5901
|
-
providers: [],
|
|
5902
|
-
declarations: [TooltipComponent, DrTooltipDirective, ...TOOLTIP_COMPONENTS],
|
|
5899
|
+
imports: [...TOOLTIP_COMPONENTS],
|
|
5900
|
+
exports: [...TOOLTIP_COMPONENTS],
|
|
5903
5901
|
}]
|
|
5904
5902
|
}], null, null); })();
|
|
5905
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrTooltipModule, {
|
|
5903
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(DrTooltipModule, { imports: [TooltipDefaultComponent, TooltipInfoComponent, TooltipComponent, DrTooltipDirective], exports: [TooltipDefaultComponent, TooltipInfoComponent, TooltipComponent, DrTooltipDirective] }); })();
|
|
5906
5904
|
|
|
5907
5905
|
const components$3 = [DrSpinnerComponent];
|
|
5908
5906
|
const directives = [DrSpinnerDirective];
|
|
@@ -14688,6 +14686,8 @@ class DrawerConfig {
|
|
|
14688
14686
|
this.restoreFocus = true;
|
|
14689
14687
|
/** Position of the drawer. */
|
|
14690
14688
|
this.position = 'bottom';
|
|
14689
|
+
/** Whether to render the drawer without default container styles and handle. */
|
|
14690
|
+
this.unstyled = false;
|
|
14691
14691
|
}
|
|
14692
14692
|
}
|
|
14693
14693
|
|
|
@@ -14733,7 +14733,7 @@ function DrawerContainer_ng_template_2_Template(rf, ctx) { }
|
|
|
14733
14733
|
*/
|
|
14734
14734
|
class DrawerContainer extends CdkDialogContainer {
|
|
14735
14735
|
get _drawerPosition() {
|
|
14736
|
-
return `dr-drawer-${this._config.position}`;
|
|
14736
|
+
return this._config.unstyled ? '' : `dr-drawer-${this._config.position}`;
|
|
14737
14737
|
}
|
|
14738
14738
|
constructor(elementRef, focusTrapFactory, document, config, checker, ngZone, overlayRef, focusMonitor) {
|
|
14739
14739
|
super(elementRef, focusTrapFactory, document, config, checker, ngZone, overlayRef, focusMonitor);
|
|
@@ -14771,7 +14771,7 @@ class DrawerContainer extends CdkDialogContainer {
|
|
|
14771
14771
|
}
|
|
14772
14772
|
ngAfterViewInit() {
|
|
14773
14773
|
this.positionStrategy = this.resolvePositionStrategy();
|
|
14774
|
-
if (this.positionStrategy) {
|
|
14774
|
+
if (this.positionStrategy && !this._config.unstyled && this._handleRef) {
|
|
14775
14775
|
this.setupDragListener();
|
|
14776
14776
|
}
|
|
14777
14777
|
}
|
|
@@ -14841,26 +14841,29 @@ class DrawerContainer extends CdkDialogContainer {
|
|
|
14841
14841
|
let _t;
|
|
14842
14842
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._portalOutlet = _t.first);
|
|
14843
14843
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx._handleRef = _t.first);
|
|
14844
|
-
} }, hostAttrs: ["tabindex", "-1"
|
|
14844
|
+
} }, hostAttrs: ["tabindex", "-1"], hostVars: 9, hostBindings: function DrawerContainer_HostBindings(rf, ctx) { if (rf & 1) {
|
|
14845
14845
|
i0.ɵɵsyntheticHostListener("@state.start", function DrawerContainer_animation_state_start_HostBindingHandler($event) { return ctx._onAnimationStart($event); })("@state.done", function DrawerContainer_animation_state_done_HostBindingHandler($event) { return ctx._onAnimationDone($event); });
|
|
14846
14846
|
} if (rf & 2) {
|
|
14847
14847
|
i0.ɵɵhostProperty("id", ctx._config.id);
|
|
14848
14848
|
i0.ɵɵattribute("role", ctx._config.role)("aria-modal", ctx._config.isModal)("aria-label", ctx._config.ariaLabel);
|
|
14849
14849
|
i0.ɵɵsyntheticHostProperty("@state", ctx._animationState);
|
|
14850
14850
|
i0.ɵɵclassMap(ctx._drawerPosition);
|
|
14851
|
-
|
|
14851
|
+
i0.ɵɵclassProp("dr-drawer-container", !ctx._config.unstyled);
|
|
14852
|
+
} }, standalone: true, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 3, vars: 3, consts: [["class", "handle", 4, "ngIf"], [1, "dr-drawer-container__wrapper"], ["cdkPortalOutlet", ""], [1, "handle"], ["handleRef", ""]], template: function DrawerContainer_Template(rf, ctx) { if (rf & 1) {
|
|
14852
14853
|
i0.ɵɵtemplate(0, DrawerContainer_div_0_Template, 2, 0, "div", 0);
|
|
14853
14854
|
i0.ɵɵelementStart(1, "div", 1);
|
|
14854
14855
|
i0.ɵɵtemplate(2, DrawerContainer_ng_template_2_Template, 0, 0, "ng-template", 2);
|
|
14855
14856
|
i0.ɵɵelementEnd();
|
|
14856
14857
|
} if (rf & 2) {
|
|
14857
|
-
i0.ɵɵproperty("ngIf", ctx._config.position === "bottom");
|
|
14858
|
-
|
|
14858
|
+
i0.ɵɵproperty("ngIf", ctx._config.position === "bottom" && !ctx._config.unstyled);
|
|
14859
|
+
i0.ɵɵadvance(1);
|
|
14860
|
+
i0.ɵɵclassProp("unstyled-wrapper", ctx._config.unstyled);
|
|
14861
|
+
} }, dependencies: [PortalModule, i4.CdkPortalOutlet, DialogModule, MatCommonModule, CommonModule, i1.NgIf], styles: [".dr-drawer-container{display:flex;flex-direction:column;width:100%;overflow:auto;outline:0;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 14px #d8d9de80}.dr-drawer-container__wrapper{flex:1;overflow:auto}.dr-drawer-container__wrapper.unstyled-wrapper{flex:unset;overflow:unset}.cdk-high-contrast-active .dr-drawer-container{outline:1px solid}.handle{position:relative;height:24px;cursor:pointer}.handle:after{content:\"\";position:absolute;top:16px;left:50%;transform:translate(-50%,-50%);background-color:#dfe0e3;height:4px;width:64px;border-radius:16px}.dr-drawer-right{transform:translate(100%);border-top-left-radius:16px;border-bottom-left-radius:16px}.dr-drawer-left{transform:translate(-100%);border-top-right-radius:16px;border-bottom-right-radius:16px}.dr-drawer-bottom{transform:translateY(100%);border-top-left-radius:16px;border-top-right-radius:16px}.dr-drawer-top{transform:translateY(-100%);border-bottom-left-radius:16px;border-bottom-right-radius:16px}\n"], encapsulation: 2, data: { animation: [drDrawerAnimations.drawerState] } }); }
|
|
14859
14862
|
}
|
|
14860
14863
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DrawerContainer, [{
|
|
14861
14864
|
type: Component,
|
|
14862
14865
|
args: [{ selector: 'dr-drawer-container', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, animations: [drDrawerAnimations.drawerState], host: {
|
|
14863
|
-
class
|
|
14866
|
+
'[class.dr-drawer-container]': '!_config.unstyled',
|
|
14864
14867
|
'[class]': '_drawerPosition',
|
|
14865
14868
|
tabindex: '-1',
|
|
14866
14869
|
'[id]': '_config.id',
|
|
@@ -14870,7 +14873,7 @@ class DrawerContainer extends CdkDialogContainer {
|
|
|
14870
14873
|
'[@state]': '_animationState',
|
|
14871
14874
|
'(@state.start)': '_onAnimationStart($event)',
|
|
14872
14875
|
'(@state.done)': '_onAnimationDone($event)',
|
|
14873
|
-
}, standalone: true, imports: [PortalModule, DialogModule, MatCommonModule, CommonModule], template: "<div *ngIf=\"_config.position === 'bottom'\" #handleRef class=\"handle\"></div>\n<div class=\"dr-drawer-container__wrapper\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n", styles: [".dr-drawer-container{display:flex;flex-direction:column;width:100%;overflow:auto;outline:0;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 14px #d8d9de80}.dr-drawer-container__wrapper{flex:1;overflow:auto}.cdk-high-contrast-active .dr-drawer-container{outline:1px solid}.handle{position:relative;height:24px;cursor:pointer}.handle:after{content:\"\";position:absolute;top:16px;left:50%;transform:translate(-50%,-50%);background-color:#dfe0e3;height:4px;width:64px;border-radius:16px}.dr-drawer-right{transform:translate(100%);border-top-left-radius:16px;border-bottom-left-radius:16px}.dr-drawer-left{transform:translate(-100%);border-top-right-radius:16px;border-bottom-right-radius:16px}.dr-drawer-bottom{transform:translateY(100%);border-top-left-radius:16px;border-top-right-radius:16px}.dr-drawer-top{transform:translateY(-100%);border-bottom-left-radius:16px;border-bottom-right-radius:16px}\n"] }]
|
|
14876
|
+
}, standalone: true, imports: [PortalModule, DialogModule, MatCommonModule, CommonModule], template: "<div *ngIf=\"_config.position === 'bottom' && !_config.unstyled\" #handleRef class=\"handle\"></div>\n<div class=\"dr-drawer-container__wrapper\" [class.unstyled-wrapper]=\"_config.unstyled\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n", styles: [".dr-drawer-container{display:flex;flex-direction:column;width:100%;overflow:auto;outline:0;box-sizing:border-box;background-color:#fff;box-shadow:0 4px 14px #d8d9de80}.dr-drawer-container__wrapper{flex:1;overflow:auto}.dr-drawer-container__wrapper.unstyled-wrapper{flex:unset;overflow:unset}.cdk-high-contrast-active .dr-drawer-container{outline:1px solid}.handle{position:relative;height:24px;cursor:pointer}.handle:after{content:\"\";position:absolute;top:16px;left:50%;transform:translate(-50%,-50%);background-color:#dfe0e3;height:4px;width:64px;border-radius:16px}.dr-drawer-right{transform:translate(100%);border-top-left-radius:16px;border-bottom-left-radius:16px}.dr-drawer-left{transform:translate(-100%);border-top-right-radius:16px;border-bottom-right-radius:16px}.dr-drawer-bottom{transform:translateY(100%);border-top-left-radius:16px;border-top-right-radius:16px}.dr-drawer-top{transform:translateY(-100%);border-bottom-left-radius:16px;border-bottom-right-radius:16px}\n"] }]
|
|
14874
14877
|
}], function () { return [{ type: i0.ElementRef }, { type: i1$8.FocusTrapFactory }, { type: Document, decorators: [{
|
|
14875
14878
|
type: Optional
|
|
14876
14879
|
}, {
|
|
@@ -14899,6 +14902,10 @@ class DrawerRef {
|
|
|
14899
14902
|
get componentRef() {
|
|
14900
14903
|
return this._ref.componentRef;
|
|
14901
14904
|
}
|
|
14905
|
+
/** Gets the overlay element for the drawer. */
|
|
14906
|
+
get overlayElement() {
|
|
14907
|
+
return this._ref.overlayRef.overlayElement;
|
|
14908
|
+
}
|
|
14902
14909
|
constructor(_ref, config, containerInstance) {
|
|
14903
14910
|
this._ref = _ref;
|
|
14904
14911
|
/** Subject for notifying the user that the drawer has been dismissed. */
|
|
@@ -15017,6 +15024,7 @@ class Drawer {
|
|
|
15017
15024
|
this._openDrawersAtThisLevel = [];
|
|
15018
15025
|
this._afterAllDismissedAtThisLevel = new Subject();
|
|
15019
15026
|
this._afterOpenedAtThisLevel = new Subject();
|
|
15027
|
+
this._resizeSubscriptions = new Map();
|
|
15020
15028
|
/**
|
|
15021
15029
|
* Stream that emits when all open drawer have finished closing.
|
|
15022
15030
|
* Will emit on subscribe if there are no open drawers to begin with.
|
|
@@ -15061,10 +15069,17 @@ class Drawer {
|
|
|
15061
15069
|
});
|
|
15062
15070
|
this.openDrawers.push(drawerRef);
|
|
15063
15071
|
this.afterOpened.next(drawerRef);
|
|
15072
|
+
if (_config.observedElement) {
|
|
15073
|
+
this._setupResizeObservation(drawerRef, _config);
|
|
15074
|
+
}
|
|
15064
15075
|
drawerRef.afterDismissed().subscribe(() => {
|
|
15065
15076
|
const index = this.openDrawers.indexOf(drawerRef);
|
|
15066
15077
|
if (index > -1) {
|
|
15067
15078
|
this.openDrawers.splice(index, 1);
|
|
15079
|
+
if (drawerRef.id && this._resizeSubscriptions.has(drawerRef.id)) {
|
|
15080
|
+
this._resizeSubscriptions.get(drawerRef.id).unsubscribe();
|
|
15081
|
+
this._resizeSubscriptions.delete(drawerRef.id);
|
|
15082
|
+
}
|
|
15068
15083
|
if (!this.openDrawers.length) {
|
|
15069
15084
|
this._getAfterAllDismissed().next();
|
|
15070
15085
|
}
|
|
@@ -15089,9 +15104,81 @@ class Drawer {
|
|
|
15089
15104
|
// Only dismiss the drawers at this level on destroy
|
|
15090
15105
|
// since the parent service may still be active.
|
|
15091
15106
|
this._dismissDrawers(this._openDrawersAtThisLevel);
|
|
15107
|
+
this._resizeSubscriptions.forEach((subscription) => subscription.unsubscribe());
|
|
15108
|
+
this._resizeSubscriptions.clear();
|
|
15092
15109
|
this._afterAllDismissedAtThisLevel.complete();
|
|
15093
15110
|
this._afterOpenedAtThisLevel.complete();
|
|
15094
15111
|
}
|
|
15112
|
+
/**
|
|
15113
|
+
* Sets up resize observation for the specified element and updates drawer positioning.
|
|
15114
|
+
*/
|
|
15115
|
+
_setupResizeObservation(drawerRef, config) {
|
|
15116
|
+
if (!config.observedElement || !drawerRef.id) {
|
|
15117
|
+
return;
|
|
15118
|
+
}
|
|
15119
|
+
const resizeSubscription = DrSharedUtils.fromResizeObserver(config.observedElement).subscribe(() => {
|
|
15120
|
+
this._updateDrawerPosition(drawerRef, config);
|
|
15121
|
+
});
|
|
15122
|
+
this._resizeSubscriptions.set(drawerRef.id, resizeSubscription);
|
|
15123
|
+
// Defer initial position update to avoid conflicts with drawer initialization
|
|
15124
|
+
setTimeout(() => {
|
|
15125
|
+
this._updateDrawerPosition(drawerRef, config);
|
|
15126
|
+
}, 0);
|
|
15127
|
+
}
|
|
15128
|
+
/**
|
|
15129
|
+
* Calculates and applies margins to the drawer to fit within the observed element's boundaries.
|
|
15130
|
+
*/
|
|
15131
|
+
_updateDrawerPosition(drawerRef, config) {
|
|
15132
|
+
if (!config.observedElement || !config.position) {
|
|
15133
|
+
return;
|
|
15134
|
+
}
|
|
15135
|
+
const elementRect = config.observedElement.getBoundingClientRect();
|
|
15136
|
+
const margins = this._calculateMarginsToFitWithinElement(config.position, elementRect);
|
|
15137
|
+
const overlayElement = drawerRef.overlayElement;
|
|
15138
|
+
if (overlayElement) {
|
|
15139
|
+
this._applyMarginsToOverlay(overlayElement, margins);
|
|
15140
|
+
}
|
|
15141
|
+
}
|
|
15142
|
+
/**
|
|
15143
|
+
* Calculates margins to position drawer within the observed element's boundaries.
|
|
15144
|
+
*/
|
|
15145
|
+
_calculateMarginsToFitWithinElement(position, elementRect) {
|
|
15146
|
+
const margins = { top: 0, right: 0, bottom: 0, left: 0 };
|
|
15147
|
+
const viewportWidth = window.innerWidth;
|
|
15148
|
+
const viewportHeight = window.innerHeight;
|
|
15149
|
+
switch (position) {
|
|
15150
|
+
case 'left':
|
|
15151
|
+
margins.left = elementRect.left;
|
|
15152
|
+
margins.top = elementRect.top;
|
|
15153
|
+
margins.bottom = viewportHeight - elementRect.bottom;
|
|
15154
|
+
break;
|
|
15155
|
+
case 'right':
|
|
15156
|
+
margins.right = viewportWidth - elementRect.right;
|
|
15157
|
+
margins.top = elementRect.top;
|
|
15158
|
+
margins.bottom = viewportHeight - elementRect.bottom;
|
|
15159
|
+
break;
|
|
15160
|
+
case 'top':
|
|
15161
|
+
margins.top = elementRect.top;
|
|
15162
|
+
margins.left = elementRect.left;
|
|
15163
|
+
margins.right = viewportWidth - elementRect.right;
|
|
15164
|
+
break;
|
|
15165
|
+
case 'bottom':
|
|
15166
|
+
margins.bottom = viewportHeight - elementRect.bottom;
|
|
15167
|
+
margins.left = elementRect.left;
|
|
15168
|
+
margins.right = viewportWidth - elementRect.right;
|
|
15169
|
+
break;
|
|
15170
|
+
}
|
|
15171
|
+
return margins;
|
|
15172
|
+
}
|
|
15173
|
+
/**
|
|
15174
|
+
* Applies calculated margins to the overlay element.
|
|
15175
|
+
*/
|
|
15176
|
+
_applyMarginsToOverlay(overlayElement, margins) {
|
|
15177
|
+
overlayElement.style.marginTop = `${margins.top}px`;
|
|
15178
|
+
overlayElement.style.marginRight = `${margins.right}px`;
|
|
15179
|
+
overlayElement.style.marginBottom = `${margins.bottom}px`;
|
|
15180
|
+
overlayElement.style.marginLeft = `${margins.left}px`;
|
|
15181
|
+
}
|
|
15095
15182
|
_dismissDrawers(drawers) {
|
|
15096
15183
|
let i = drawers.length;
|
|
15097
15184
|
while (i--) {
|
|
@@ -16138,7 +16225,7 @@ class FilterDropdownComponent {
|
|
|
16138
16225
|
i0.ɵɵtextInterpolate1("", ctx.label, ":");
|
|
16139
16226
|
i0.ɵɵadvance(3);
|
|
16140
16227
|
i0.ɵɵproperty("ngIf", ctx.hasSelection)("ngIfElse", _r4);
|
|
16141
|
-
} }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, DrTooltipModule,
|
|
16228
|
+
} }, dependencies: [CommonModule, i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, DrTooltipModule, TooltipDefaultComponent, DrTooltipDirective, DrPopoverModule, DrPopoverDirective, DrDropdownModule, DrDropdownComponent, DrDropdownItemComponent, DrInputsModule, CheckboxComponent, DrInputComponent, DrButtonComponent, SearchPipe,
|
|
16142
16229
|
FormsModule, i1$2.NgControlStatus, i1$2.NgModel, LetDirective,
|
|
16143
16230
|
AutofocusDirective,
|
|
16144
16231
|
TextOverflowComponent,
|